|
@@ -283,12 +283,16 @@
|
|
|
this.$api.msg('驳回意见不能为空')
|
|
|
return
|
|
|
}
|
|
|
+ uni.showLoading({
|
|
|
+ title: "审核中"
|
|
|
+ })
|
|
|
this.$api.doRequest('post', '/newWorkflow/api/handle', {
|
|
|
taskId: this.tradeList.taskId,
|
|
|
approved: false,
|
|
|
auditMind: this.auditMind,
|
|
|
needReapply: true,
|
|
|
}).then(res => {
|
|
|
+ uni.hideLoading()
|
|
|
if (res.data.code == 200) {
|
|
|
uni.showToast({
|
|
|
title: "驳回成功",
|
|
@@ -298,6 +302,7 @@
|
|
|
uni.navigateBack()
|
|
|
}
|
|
|
}).catch(res => {
|
|
|
+ uni.hideLoading()
|
|
|
if (res.errmsg) {
|
|
|
uni.showToast({
|
|
|
title: res.errmsg,
|
|
@@ -306,7 +311,10 @@
|
|
|
})
|
|
|
}
|
|
|
});
|
|
|
- } else {//通过
|
|
|
+ } else {
|
|
|
+ uni.showLoading({
|
|
|
+ title: "审核中"
|
|
|
+ })//通过
|
|
|
if(this.tradeList.approveStatus == "待银行审批"){
|
|
|
this.tradeList.amountToRepaid = this.tradeList.amountDue//设置待还金额 = 应还金额
|
|
|
this.$api.doRequest('post', '/tradeWarehouseReceiptAppl/api/editTradeWarehouseReceiptAppl', this.tradeList)
|
|
@@ -318,6 +326,7 @@
|
|
|
auditMind: this.auditMind ? this.auditMind : "审核通过",
|
|
|
needReapply: false,
|
|
|
}).then(res => {
|
|
|
+ uni.hideLoading()
|
|
|
if (res.data.code == 200) {
|
|
|
uni.showToast({
|
|
|
title: "审核成功",
|
|
@@ -327,6 +336,7 @@
|
|
|
uni.navigateBack()
|
|
|
}
|
|
|
}).catch(res => {
|
|
|
+ uni.hideLoading()
|
|
|
if (res.errmsg) {
|
|
|
uni.showToast({
|
|
|
title: res.errmsg,
|
|
@@ -344,6 +354,7 @@
|
|
|
auditMind: this.auditMind ? this.auditMind : "审核通过",
|
|
|
needReapply: false,
|
|
|
}).then(res => {
|
|
|
+ uni.hideLoading()
|
|
|
if (res.data.code == 200) {
|
|
|
uni.showToast({
|
|
|
title: "审核成功",
|
|
@@ -353,6 +364,7 @@
|
|
|
uni.navigateBack()
|
|
|
}
|
|
|
}).catch(res => {
|
|
|
+ uni.hideLoading()
|
|
|
if (res.errmsg) {
|
|
|
uni.showToast({
|
|
|
title: res.errmsg,
|