审批
This commit is contained in:
@@ -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 = "群发审批"
|
||||
|
||||
Reference in New Issue
Block a user