md
This commit is contained in:
parent
39b2c95bb3
commit
3abdeff242
@ -377,7 +377,7 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div style="text-align: center;margin-bottom: 10px;">
|
<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>
|
<el-button @click="cancel">取 消</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -413,6 +413,7 @@ export default {
|
|||||||
settleBillItem:this.settleBillObj,
|
settleBillItem:this.settleBillObj,
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
loading: true,
|
loading: true,
|
||||||
|
isDoing:false,
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {},
|
form: {},
|
||||||
|
|
||||||
@ -666,14 +667,6 @@ export default {
|
|||||||
submitForm() {
|
submitForm() {
|
||||||
this.$refs["form"].validate(valid => {
|
this.$refs["form"].validate(valid => {
|
||||||
if (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){
|
if(this.form.tradeDate){
|
||||||
this.form.tradeDate = this.form.tradeDate + " 00:00:00";
|
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.form.refundDate = this.form.refundDate + " 00:00:00";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.isDoing=true;
|
||||||
addEmisSettlePayRecord(this.form).then(response => {
|
addEmisSettlePayRecord(this.form).then(response => {
|
||||||
|
this.isDoing=false;
|
||||||
this.$modal.msgSuccess("新增成功");
|
this.$modal.msgSuccess("新增成功");
|
||||||
this.$emit("on-changed");
|
this.$emit("on-changed");
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user