Ver Fonte

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

howie há 2 anos atrás
pai
commit
83e691b1fe
1 ficheiros alterados com 4 adições e 0 exclusões
  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