Commit 14b9fb7d by cen

fix: loading取消

1 parent 37745a5a
......@@ -399,31 +399,36 @@ export default {
})
.then(async res => {
console.log('res:', res)
if (!res.false) {
that.$refs.signAgreementPopup.open().then(() => {
uni.$api.evaluationApi.sendCustodyAgreement({ ...that.signAgreementObj, evalOrderNo: e.evalOrderNo }).then(res => {
if (res.data.code == 0) {
uni.hideLoading()
uni.showToast({
title: '代保管协议已发送',
icon: 'none'
})
that.currentPage = 1
that.search()
}
if (res.data.code == 0) {
uni.hideLoading()
if (!res.data.data.false) {
that.$refs.signAgreementPopup.open().then(() => {
uni.showLoading()
uni.$api.evaluationApi.sendCustodyAgreement({ ...that.signAgreementObj, evalOrderNo: e.evalOrderNo }).then(res => {
console.log(res, 'res')
if (res.data.code == 0) {
uni.hideLoading()
uni.showToast({
title: '代保管协议已发送',
icon: 'none'
})
that.currentPage = 1
that.search()
}
})
})
})
} else {
uni.showLoading()
const res = await uni.$api.evaluationApi.signAgreement({
evalOrderNo: e.evalOrderNo
})
if (res.data.code == 0) {
uni.hideLoading()
uni.showToast({
title: e.status == 40 && e.paymentType == 1 ? '尾款款项已申请,完成代保管协议电子签约后将安排支付尾款' : '全款款项已申请,完成代保管协议电子签约后将安排支付全款',
icon: 'none'
} else {
uni.showLoading()
const res = await uni.$api.evaluationApi.signAgreement({
evalOrderNo: e.evalOrderNo
})
if (res.data.code == 0) {
uni.hideLoading()
uni.showToast({
title: e.status == 40 && e.paymentType == 1 ? '尾款款项已申请,完成代保管协议电子签约后将安排支付尾款' : '全款款项已申请,完成代保管协议电子签约后将安排支付全款',
icon: 'none'
})
}
}
}
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!