调整 合同、运力、基础配置、客商
This commit is contained in:
@@ -1840,10 +1840,14 @@ export default {
|
||||
submitEdit() {
|
||||
if (this.submitAction || !this.validateBase('edit')) return;
|
||||
this.submitAction = 'edit';
|
||||
this.api
|
||||
.submit(this.normalizeSubmit())
|
||||
const isChangeRejected = this.form.approvalStatus === 'change_rejected';
|
||||
const payload = this.normalizeSubmit();
|
||||
const request = isChangeRejected
|
||||
? this.api.submitChange(payload)
|
||||
: this.api.submit(payload);
|
||||
request
|
||||
.then(() => {
|
||||
this.$message.success('修改成功');
|
||||
this.$message.success(isChangeRejected ? '已重新提交变更审批' : '修改成功');
|
||||
this.closeForm();
|
||||
})
|
||||
.finally(() => {
|
||||
|
||||
Reference in New Issue
Block a user