lilei 4 hónapja
szülő
commit
871f610bc5

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

@@ -122,7 +122,9 @@ export default {
     // 禁用库存类型选项
     // 禁用库存类型选项
     upStockType (hasLt) {
     upStockType (hasLt) {
       this.$refs.partQuery.stockDisabled = hasLt
       this.$refs.partQuery.stockDisabled = hasLt
-      this.$refs.partQuery.stockType = this.totalData.stockType
+      if (hasLt) {
+        this.$refs.partQuery.stockType = this.totalData.stockType
+      }
     },
     },
     // 添加产品
     // 添加产品
     insterProduct (list) {
     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) {
         if (productBrand && productBrand.indexOf('箭冠') >= 0 && productBrand && productType3.indexOf('轮胎') >= 0) {
           this.hasJGtire = true
           this.hasJGtire = true
+          // 默认锁定库存类型
+          if (!this.stockType) {
+            this.stockType = 'LOCK_STOCK'
+            this.stockTypeChange('LOCK_STOCK')
+          }
         }
         }
 
 
         // 转采购额数量
         // 转采购额数量