|
@@ -448,16 +448,21 @@ export default {
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
+ this.loading = true
|
|
|
locking({ id: row.id }).then(res => {
|
|
|
if (res.data.msg == '审核未通过') {
|
|
|
+ this.loading = false
|
|
|
this.openDialog2 = true
|
|
|
this.dialogData=res.data.data
|
|
|
}else if(res.data.msg=='凭证未记账'){
|
|
|
+ this.loading = false
|
|
|
this.openDialog3 = true
|
|
|
this.dialogData2=res.data.data
|
|
|
} else {
|
|
|
+ this.loading = false
|
|
|
this.$message.success("锁定成功");
|
|
|
this.handleClick(this.activeName)
|
|
|
+
|
|
|
}
|
|
|
|
|
|
})
|
|
@@ -468,7 +473,9 @@ export default {
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
+ this.loading = true
|
|
|
revokeLocking({ id: row.id }).then(res => {
|
|
|
+ this.loading = false
|
|
|
this.$message.success("撤销锁定");
|
|
|
this.handleClick(this.activeName)
|
|
|
})
|
|
@@ -482,7 +489,9 @@ export default {
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
+ this.loading = true
|
|
|
close({ id: row.id }).then(res => {
|
|
|
+ this.loading = false
|
|
|
this.$message.success("结转成功");
|
|
|
this.handleClick(this.activeName)
|
|
|
})
|
|
@@ -493,7 +502,9 @@ export default {
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
+ this.loading = true
|
|
|
unclose({ id: row.id }).then(res => {
|
|
|
+ this.loading = false
|
|
|
this.$message.success("反结转成功");
|
|
|
this.handleClick(this.activeName)
|
|
|
})
|
|
@@ -508,11 +519,10 @@ export default {
|
|
|
}).then(() => {
|
|
|
this.loading = true
|
|
|
open({ beginDate: this.openDate }).then(res => {
|
|
|
+ this.loading = false
|
|
|
this.$message.success("开账成功");
|
|
|
this.handleClick(this.activeName)
|
|
|
this.handleClose()
|
|
|
- }).finally(() => {
|
|
|
- this.loading = false
|
|
|
})
|
|
|
})
|
|
|
},
|
|
@@ -541,11 +551,10 @@ export default {
|
|
|
}).then(() => {
|
|
|
this.loading = true
|
|
|
init({ beginDate: this.openDate }).then(res => {
|
|
|
+ this.loading = false
|
|
|
this.$message.success("初始化成功");
|
|
|
this.handleClick(this.activeName)
|
|
|
this.handleClose()
|
|
|
- }).finally(() => {
|
|
|
- this.loading = false
|
|
|
})
|
|
|
})
|
|
|
},
|