1、调整凭证
2、调整运单
This commit is contained in:
@@ -610,12 +610,30 @@
|
||||
</div>
|
||||
<template v-if="!pageMode" #footer>
|
||||
<el-button @click="visible = false">取消</el-button>
|
||||
<el-button
|
||||
v-if="editable && !recordId"
|
||||
type="primary"
|
||||
plain
|
||||
:loading="draftSaving"
|
||||
@click="handleDraftSave"
|
||||
>
|
||||
保存
|
||||
</el-button>
|
||||
<el-button v-if="editable" type="primary" :loading="saving" @click="handleSave"
|
||||
>提交</el-button
|
||||
>
|
||||
</template>
|
||||
<div v-if="pageMode" class="formal-editor__page-actions">
|
||||
<el-button @click="visible = false">取消</el-button>
|
||||
<el-button
|
||||
v-if="editable && !recordId"
|
||||
type="primary"
|
||||
plain
|
||||
:loading="draftSaving"
|
||||
@click="handleDraftSave"
|
||||
>
|
||||
保存
|
||||
</el-button>
|
||||
<el-button v-if="editable" type="primary" :loading="saving" @click="handleSave">
|
||||
提交
|
||||
</el-button>
|
||||
@@ -964,6 +982,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
draftSaving: false,
|
||||
saving: false,
|
||||
form: createFormalSettlementForm(),
|
||||
sources: [],
|
||||
@@ -2396,6 +2415,20 @@ export default {
|
||||
remark: this.form.remark,
|
||||
};
|
||||
},
|
||||
async handleDraftSave() {
|
||||
this.draftSaving = true;
|
||||
try {
|
||||
await save({
|
||||
...this.buildSavePayload(),
|
||||
approvalStatus: 'draft',
|
||||
});
|
||||
this.$message.success('保存成功');
|
||||
this.visible = false;
|
||||
this.$emit('success');
|
||||
} finally {
|
||||
this.draftSaving = false;
|
||||
}
|
||||
},
|
||||
async handleSave() {
|
||||
await this.$refs.formRef.validate();
|
||||
if (!this.form.sourcePreSettlementIds.length && !this.form.sourceDetailIds.length) {
|
||||
|
||||
Reference in New Issue
Block a user