This commit is contained in:
shijingjing
2022-07-15 17:07:56 +08:00
parent 034e0e463a
commit 1a1af84b1a
2 changed files with 37 additions and 8 deletions

View File

@@ -38,7 +38,7 @@
</div>
</div>
</div>
<div class="btn">
<div class="btn" v-if="data.status==0 && data.haveExaminPower">
<div class="refuse" @click="refuseBtn">拒绝通过</div>
<div class="pass" @click="passBtn">审核通过</div>
</div>
@@ -68,9 +68,36 @@ export default {
}
})
},
// 拒绝通过
refuseBtn() {},
// 审核通过
// 拒绝
refuseBtn() {
this.pass = 0
this.$confirm('确定要审核拒绝该数据?').then(() => {
this.examine()
})
},
// 通过
passBtn() {
this.pass = 1
this.$confirm('确定审核通过该数据?').then(() => {
this.examine()
})
},
examine() {
this.$http.post(`/app/appmasssendingtask/examine`,null,{
params: {
pass: this.pass,
id: this.id,
options: this.options
}
}).then(res => {
if(res?.code == 0) {
this.$u.toast('审批成功')
this.getDetail()
}
}).catch(err=> {
console.log(err);
})
},
},
onShow() {
document.title = "群发审批"