Commit 8a37c6bc authored by liwenhong's avatar liwenhong

fix:审核

parent ca501c86
......@@ -33,19 +33,15 @@
prop="take_place_name"
align="center"
></el-table-column>
<el-table-column>
<template #default="scope">
{{scope.row.province}}-{{scope.row.city}}-{{scope.row.area}}
</template>
</el-table-column>
<el-table-column label="自提点地址" prop="location"></el-table-column>
<el-table-column label="操作" align="center" fixed="right" width="200">
<!-- <el-button type="primary" size="small">审核</el-button> -->
<template #default="scope">
<el-button type="primary" size="mini" @click="apply(scope.row)">审核</el-button>
<el-button type="text" size="small">通过</el-button>
<el-button type="text" size="small" v-if="scope.row.audit_status==1">通过</el-button>
<el-button type="primary" size="small" @click="addPoint(scope.row.colonel_apply_id)">添加自提点</el-button>
<!-- v-if="scope.row.take_place_status==1" -->
<el-button type="text" size="small">拒绝</el-button>
<el-button type="text" size="small" v-if="scope.row.audit_status==2">拒绝</el-button>
</template>
</el-table-column>
</el-table>
......@@ -210,12 +206,13 @@ export default {
},
apply(item) {
// this.applyPopTitle = `您确认通过(${name})的团长申请吗`
this.$confirm(`您确认通过(${item.contact_name})的团长申请吗`, '团长审核', {
this.$confirm(`您确认${item.audit_status ==2?'通过': '驳回'}(${item.contact_name})的团长申请吗`, '团长审核', {
confirmButtonText: '确定',
cancelButtonText: '取消',
center: true
}).then(async () => {
let res = await colonelAudit({colonel_apply_id: item.colonel_apply_id, audit_status: item.audit_status})
let res = await colonelAudit({colonel_apply_id: item.colonel_apply_id, audit_status: item.audit_status ==1?2:1})
await this.getColoneApplyList();
if (res.code !== 0) return this.$message.error(res.reason);
else this.$message.success('操作成功');
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment