diff --git a/src/views/emis/emisSettleSubBill/subBillMergeMgnt.vue b/src/views/emis/emisSettleSubBill/subBillMergeMgnt.vue index a0153672..c5cd0807 100644 --- a/src/views/emis/emisSettleSubBill/subBillMergeMgnt.vue +++ b/src/views/emis/emisSettleSubBill/subBillMergeMgnt.vue @@ -848,8 +848,11 @@ export default { settleEndDate:parseTime(endDate), subBillList:this.selectBillList, } + this.loading = true; // 生成合账单号 addEmisSettleBill(postData).then(response => { + this.loading=false; + this.$modal.msgSuccess("合账成功"); this.$emit("on-changed"); this.handleQuery(); @@ -883,7 +886,7 @@ export default { let startDate = new Date(this.billMonth+"-01 00:00:00"); let endDate= this.getMonthLast(startDate); endDate.setHours(23,59,59,0) - + this.loading = true; for(let i=0;i {}); }, - // handleAutoMergeBill(){ - - // if(!this.billMonth){ - // this.$modal.msgError("账单月不能为空!"); - // return; - // } - - // this.$confirm("确定自动合账吗?", "提示", { - // cancelButtonText: "否", - // confirmButtonText: "确定", - // type: "warning", - // distinguishCancelAndClose: true, - // closeOnClickModal: false - // }).then(() => { - - // this.currentSettleBillNo=genJsSeqNo(); - - // let startDate = new Date(this.billMonth+"-01 00:00:00"); - // let endDate= this.getMonthLast(startDate); - // endDate.setHours(23,59,59,0) - - // let settleBillForm={ - // settleBillNo: this.currentSettleBillNo, - // settleBillName: this.billName, - // billMonth: this.billMonth, - // settleStartDate:parseTime(startDate), - // settleEndDate:parseTime(endDate), - // subBillList:this.selectBillList, - // } - - - // // 生成合账单号 - // addEmisSettleBill(settleBillForm).then(response => { - // this.$modal.msgSuccess("合并成功"); - // this.$emit("on-changed"); - // this.titleMergeForm="账单-"+this.currentSettleBillNo; - // this.openMergeForm=true; - // this.handleQuery(); - // }); - - - // }).catch(() => {}); - // }, - // 获取当前月的最后一天 getMonthLast(date) { var currentMonth = date.getMonth()