浏览代码

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

howie 2 年之前
父节点
当前提交
83e691b1fe
共有 1 个文件被更改,包括 4 次插入0 次删除
  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