增加返回弹窗
This commit is contained in:
@@ -17,8 +17,8 @@
|
||||
</AiGroup>
|
||||
<AiBottomBtn>
|
||||
<div flex>
|
||||
<div class="fill reject" @click="handleReject">审批拒绝</div>
|
||||
<div class="fill text" @click="handlePass">审批通过</div>
|
||||
<div class="fill reject" @click="handleExamine(false)">审批拒绝</div>
|
||||
<div class="fill text" @click="handleExamine(true)">审批通过</div>
|
||||
</div>
|
||||
</AiBottomBtn>
|
||||
</section>
|
||||
@@ -72,33 +72,18 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
handleReject() {
|
||||
handleExamine(pass) {
|
||||
if (this.check()) {
|
||||
uni.showLoading({title: "提交中..."})
|
||||
const {$route: {query: {taskDetailId}}, detail: fields} = this
|
||||
this.$http.post("/app/appassessmentscorev2task/examine", {
|
||||
taskDetailId, pass: false, fields
|
||||
}).then(res => {
|
||||
if (res?.code == 0) {
|
||||
this.$u.toast("提交成功!")
|
||||
setTimeout(() => uni.reLaunch({url: "./AppRecoScore"}), 1500)
|
||||
|
||||
}
|
||||
}).finally(uni.hideLoading)
|
||||
}
|
||||
},
|
||||
handlePass() {
|
||||
if (this.check()) {
|
||||
uni.showLoading({title: "提交中..."})
|
||||
const {$route: {query: {taskDetailId}}, detail: fields} = this
|
||||
this.$http.post("/app/appassessmentscorev2task/examine", {
|
||||
taskDetailId, pass: true, fields
|
||||
taskDetailId, pass, fields
|
||||
}).then(res => {
|
||||
if (res?.code == 0) {
|
||||
this.$u.toast("提交成功!")
|
||||
setTimeout(() => uni.reLaunch({url: "./AppRecoScore"}), 1500)
|
||||
}
|
||||
}).finally(uni.hideLoading)
|
||||
}).catch(err => this.$u.toast(err)).finally(uni.hideLoading)
|
||||
}
|
||||
},
|
||||
check() {
|
||||
|
||||
Reference in New Issue
Block a user