lilei 4 月之前
父節點
當前提交
2e22fe3d66

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

@@ -92,12 +92,12 @@ export default {
     },
     // 统计查询
     getTotalData (flag) {
+      const _this = this
       findBySalesBillSn({ salesBillSn: this.$route.params.salesBillSn }).then(res => {
         if (res.status == 200) {
           this.totalData = res.data || null
           if (res.data && Object.keys(res.data).length > 0) {
             this.productForm.dispatchBillSn = res.data.dispatchBillSn
-            const _this = this
             if (flag) {
               _this.$refs.waitProduct.pageInit(this.productForm, this.detailData, this.$refs.partQuery.activeList)
             } else {
@@ -149,8 +149,7 @@ export default {
     upStockType (hasLt, stockType) {
       console.log(hasLt, stockType)
       this.$refs.partQuery.stockDisabled = hasLt
-      this.$refs.partQuery.hasJGtire = hasLt
-      this.$refs.partQuery.stockType = stockType
+      this.$refs.partQuery.stockType = this.totalData.stockType
     },
     // 整单取消
     cancelAll () {

+ 1 - 2
src/views/salesManagement/waitDispatchNew/queryPart.vue

@@ -633,9 +633,8 @@ export default {
         }
 
         // 判断是否有箭冠轮胎产品
-        if (productBrand && productBrand.indexOf('箭冠') >= 0 && productBrand && productType3.indexOf('轮胎') >= 0 && !this.stockType) {
+        if (productBrand && productBrand.indexOf('箭冠') >= 0 && productBrand && productType3.indexOf('轮胎') >= 0) {
           this.hasJGtire = true
-          this.stockType = 'LOCK_STOCK'
         }
 
         // 转采购额数量