Pārlūkot izejas kodu

fix: 政策订单

zh 2 gadi atpakaļ
vecāks
revīzija
b8d729fdaa
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 3 2
      src/views/supply/policy/components/retail_form.vue

+ 3 - 2
src/views/supply/policy/components/retail_form.vue

@@ -868,8 +868,9 @@ export default {
             if (this.mainForm.isAllDirect) {
               this.$set(this.goodsList[index], 'isDirectTransfer', true)
             }
-            this.goodsList[index].policyConditionId = this.policyConditionId
-            this.goodsList[index].policyConditionId = this.policyConditionId || this.goodsList[index].policyConditionId
+            if (this.policyConditionId) {
+              this.$set(this.goodsList[index], 'policyConditionId', this.policyConditionId || this.goodsList[index].policyConditionId)
+            }
             if (this.correspondId) {
               this.goodsList[index].correspondName = this.correspondName
               this.goodsList[index].correspondId = this.correspondId