lilei 8 달 전
부모
커밋
871f610bc5
2개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/views/salesManagement/waitDispatchNew/edit.vue
  2. 5 0
      src/views/salesManagement/waitDispatchNew/queryPart.vue

+ 3 - 1
src/views/salesManagement/waitDispatchNew/edit.vue

@@ -122,7 +122,9 @@ export default {
     // 禁用库存类型选项
     upStockType (hasLt) {
       this.$refs.partQuery.stockDisabled = hasLt
-      this.$refs.partQuery.stockType = this.totalData.stockType
+      if (hasLt) {
+        this.$refs.partQuery.stockType = this.totalData.stockType
+      }
     },
     // 添加产品
     insterProduct (list) {

+ 5 - 0
src/views/salesManagement/waitDispatchNew/queryPart.vue

@@ -635,6 +635,11 @@ export default {
         // 判断是否有箭冠轮胎产品
         if (productBrand && productBrand.indexOf('箭冠') >= 0 && productBrand && productType3.indexOf('轮胎') >= 0) {
           this.hasJGtire = true
+          // 默认锁定库存类型
+          if (!this.stockType) {
+            this.stockType = 'LOCK_STOCK'
+            this.stockTypeChange('LOCK_STOCK')
+          }
         }
 
         // 转采购额数量