|
@@ -185,7 +185,11 @@ export default {
|
|
|
this.resetForm();
|
|
|
this.$api[
|
|
|
this.info.orderSn ? "systemtoporderdividedetail" : "dividelogdata"
|
|
|
- ](this.info.orderSn ? {orderSn:this.info.orderSn,checkFrom:this.info.checkFrom} : this.info.id).then((res) => {
|
|
|
+ ](
|
|
|
+ this.info.orderSn
|
|
|
+ ? { orderSn: this.info.orderSn, checkFrom: this.info.checkFrom }
|
|
|
+ : this.info.id
|
|
|
+ ).then((res) => {
|
|
|
this.form = res.data;
|
|
|
this.$api.systemtenantbankId(res.data.tenantId).then((e) => {
|
|
|
this.bankList = e.data || [];
|
|
@@ -193,9 +197,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
close() {
|
|
|
- this.$refs[
|
|
|
- this.info.orderSn? "formData" : "rulesPay"
|
|
|
- ].resetFields();
|
|
|
+ this.$refs[this.info.orderSn ? "formData" : "rulesPay"].resetFields();
|
|
|
},
|
|
|
resetForm() {
|
|
|
this.form = {
|
|
@@ -218,7 +220,7 @@ export default {
|
|
|
})
|
|
|
.then(() => {
|
|
|
let c = {
|
|
|
- divideModel: this.form.divideModel,
|
|
|
+ divideModel: this.info.checkFrom - 1,
|
|
|
divideLogId: this.form.id,
|
|
|
tenantId: this.form.tenantId,
|
|
|
...this.formPay,
|
|
@@ -248,13 +250,13 @@ export default {
|
|
|
this.disabledBtn = true;
|
|
|
this.$api
|
|
|
.checkorderlogeditDivide({
|
|
|
- checkFrom: this.form.divideModel+1,
|
|
|
+ checkFrom: this.info.checkFrom,
|
|
|
orderSn: this.form.orderSn,
|
|
|
...this.formData,
|
|
|
})
|
|
|
.then((res) => {
|
|
|
this.isShow = false;
|
|
|
- this.$emit("update",this.info.divideLogId)
|
|
|
+ this.$emit("update", this.info.divideLogId);
|
|
|
this.$emit("search");
|
|
|
})
|
|
|
.finally(() => {
|