This commit is contained in:
linfso 2025-01-06 19:33:07 +08:00
parent 39b2c95bb3
commit 3abdeff242

View File

@ -377,7 +377,7 @@
</el-row>
</el-form>
<div style="text-align: center;margin-bottom: 10px;">
<el-button type="primary" @click="submitForm">确 定</el-button>
<el-button type="primary" :loading="isDoing" @click="submitForm">确 定</el-button>
<el-button @click="cancel">取 消</el-button>
</div>
@ -413,6 +413,7 @@ export default {
settleBillItem:this.settleBillObj,
// 遮罩层
loading: true,
isDoing:false,
// 表单参数
form: {},
@ -666,14 +667,6 @@ export default {
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
// if (this.form.id != null) {
// updateEmisSettlePayRecord(this.form).then(response => {
// this.$modal.msgSuccess("修改成功");
// this.$emit("on-changed");
// });
// } else {
// }
if(this.form.tradeDate){
this.form.tradeDate = this.form.tradeDate + " 00:00:00";
}
@ -682,8 +675,9 @@ export default {
this.form.refundDate = this.form.refundDate + " 00:00:00";
}
this.isDoing=true;
addEmisSettlePayRecord(this.form).then(response => {
this.isDoing=false;
this.$modal.msgSuccess("新增成功");
this.$emit("on-changed");
});