Jelajahi Sumber

【修改】二次添加货品没展示仓库

howie 2 tahun lalu
induk
melakukan
83e691b1fe
1 mengubah file dengan 4 tambahan dan 0 penghapusan
  1. 4 0
      src/views/supply/policy/components/retail_form.vue

+ 4 - 0
src/views/supply/policy/components/retail_form.vue

@@ -825,6 +825,10 @@ export default {
       handler(newValue, oldValue) {
         if (newValue && newValue.length) {
           newValue.forEach((item, index) => {
+            if (this.correspondId) {
+              this.goodsList[index].correspondName = this.correspondName
+              this.goodsList[index].correspondId = this.correspondId
+            }
             this.goodsList[index].compute_amount = item.price * item.qty
             this.goodsList[index].compute_flAmount =
               ((item.price - item.discAmount) * item.qty * (item.rebateRate * 100)) / 100