Browse Source

bug update

anderx 4 years ago
parent
commit
709b6e7ada

+ 10 - 2
js/component/manageCenter/order/orderNew/changeComponent/changeApply.js

@@ -1209,7 +1209,11 @@ class ChangeApply extends Component {
           appropriationRatio: record.appropriationRatio,
           waitDay: record.waitDay,
           effectiveCount: record.effectiveCount,
-          cid: this.state.data.id //变更ID
+          cid: this.state.changeId, //变更ID
+          customizeTimes:
+            record.dunType == 0 ? record.customizeTimes : undefined,
+          customizeName:
+            record.dunType == 0 ? record.customizeName : undefined,
         }
       }).done(
         function (data) {
@@ -1241,7 +1245,11 @@ class ChangeApply extends Component {
           money: record.money,
           waitDay: record.waitDay,
           effectiveCount: record.effectiveCount,
-          cid: this.state.data.id //变更ID
+          cid: this.state.changeId, //变更ID
+          customizeTimes:
+            record.dunType == 0 ? record.customizeTimes : undefined,
+          customizeName:
+            record.dunType == 0 ? record.customizeName : undefined,
         }
       }).done(
         function (data) {