Parcourir la source

fix: 调拨单参数少了jiaxianOrderId

zh il y a 2 ans
Parent
commit
01ec0817e4
1 fichiers modifiés avec 19 ajouts et 19 suppressions
  1. 19 19
      src/views/supply/transferOrder/transferOrderForm.vue

+ 19 - 19
src/views/supply/transferOrder/transferOrderForm.vue

@@ -836,25 +836,25 @@ export default {
           return k
         })
         delete this.formData.orders
-      })
-    }
-    if (this.detailsId && this.moduleType === 2) {
-      getListCostBillV2({
-        pageNum: 1,
-        pageSize: -1,
-        params: [
-          {
-            param: 'order_code',
-            compare: '=',
-            value: this.jiaxianOrderId
-          }
-        ]
-      }).then(res => {
-        res.data.records.forEach(item => {
-          item.sums1 = ['orderHasSendQty', 'subsidyCoefficient', 'unloadUpstairsCoefficient', 'coefficient']
-          item.sums2 = ['cost', 'unitPrice', 'totalCost', 'allowanceCost']
-        })
-        this.logisticsData = res.data.records
+        if (this.detailsId && this.moduleType === 2) {
+          getListCostBillV2({
+            pageNum: 1,
+            pageSize: -1,
+            params: [
+              {
+                param: 'order_code',
+                compare: '=',
+                value: this.formData.jiaxianOrderId
+              }
+            ]
+          }).then(res => {
+            res.data.records.forEach(item => {
+              item.sums1 = ['orderHasSendQty', 'subsidyCoefficient', 'unloadUpstairsCoefficient', 'coefficient']
+              item.sums2 = ['cost', 'unitPrice', 'totalCost', 'allowanceCost']
+            })
+            this.logisticsData = res.data.records
+          })
+        }
       })
     }
   },