| | |
| | | <el-option label="待提交审批" value="0"></el-option> |
| | | <el-option label="审批中" value="1"></el-option> |
| | | <el-option label="审核通过" value="2"></el-option> |
| | | <el-option label="审核不通过" value="3"></el-option> |
| | | <el-option label="审批驳回" value="3"></el-option> |
| | | <el-option label="取消" value="4"></el-option> |
| | | <el-option label="预约成功" value="5"></el-option> |
| | | <el-option label="预约失败" value="6"></el-option> |
| | | <el-option label="下发成功" value="5"></el-option> |
| | | <el-option label="下发失败" value="6"></el-option> |
| | | <el-option label="拜访中" value="7"></el-option> |
| | | <el-option label="已签离" value="8"></el-option> |
| | | <el-option label="已失效" value="9"></el-option> |
| | |
| | | <span v-else>-</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="施工人员" min-width="100px"> |
| | | <el-table-column label="是否涉及施工作业" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.type == 0">否</span> |
| | | <span v-if="row.type == 1">是</span> |
| | |
| | | <el-table-column prop="status" fixed="right" label="状态" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <span style="color: rgba(245, 154, 35, 0.996);" v-if="row.status === 0">待提交审批</span> |
| | | <span v-if="row.status === 1" style="color: rgba(245, 154, 35, 0.996);">处理中</span> |
| | | <span v-if="row.status === 2" style="color: rgba(245, 154, 35, 0.996);">已同意</span> |
| | | <span style="color: gray;" v-if="row.status === 3">已拒绝</span> |
| | | <span v-if="row.status === 1" style="color: rgba(245, 154, 35, 0.996);">审批中</span> |
| | | <span v-if="row.status === 2" style="color: rgba(245, 154, 35, 0.996);">审核通过</span> |
| | | <span style="color: gray;" v-if="row.status === 3">审批驳回</span> |
| | | <span v-if="row.status === 4" style="color: gray">取消</span> |
| | | <span v-if="row.status === 5" style="color: green">下发成功</span> |
| | | <span v-if="row.status === 6" style="color: gray">下发失败</span> |
| | |
| | | <el-table-column v-if="containPermissions(['business:visits:update', 'business:visits:delete'])" label="操作" |
| | | min-width="200" fixed="right"> |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="departure(row.id)" icon="el-icon-delete" style="color: red" v-if="row.status == 7">离厂</el-button> |
| | | <el-button type="text" @click="cancel(row.id)" v-permissions="['business:visits:cancel']" |
| | | icon="el-icon-delete" style="color: red" v-if="row.status == 5">取消预约</el-button> |
| | | <el-button type="text" @click="departure(row.id)" icon="el-icon-delete" style="color: red" v-if="row.status == 7">离场</el-button> |
| | | <!-- <el-button type="text" @click="cancel(row.id)" v-permissions="['business:visits:cancel']" |
| | | icon="el-icon-delete" style="color: red" v-if="row.status == 5">取消预约</el-button>--> |
| | | <el-button type="text" @click="resend(row.id)" v-permissions="['business:visits:update']" |
| | | icon="el-icon-edit" v-if="row.status == 6">重新下发</el-button> |
| | | <!-- <el-button type="text" @click="$refs.OperaVisitsDesWindow.open('详情', row.id)" icon="el-icon-view">详情</el-button> --> |
| | | <el-button type="text" @click="handleDetail(row)" icon="el-icon-view">详情</el-button> |
| | | <!-- <el-button type="text" @click="deleteById(row)" icon="el-icon-delete" v-permissions="['business:visits:delete']">查询审批结果</el-button>--> |
| | | <el-button type="text" icon="el-icon-delete" @click="deleteById(row)" style="color: red" v-permissions="['business:visits:delete']">删除</el-button> |
| | | <!-- <el-button type="text" @click="deleteById(row)" icon="el-icon-delete" v-permissions="['business:visits:delete']">查询审批结果</el-button>--> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | }) |
| | | }, |
| | | departure(id) { |
| | | this.$confirm('确定离厂吗, 是否继续?', '提示', { |
| | | this.$confirm('确定进行离场操作吗,该操作不可逆请谨慎操作, 是否继续?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | level(id) |
| | | this.api.level(id) |
| | | .then(res => { |
| | | this.$message.success('操作成功') |
| | | this.page = 1 |
| | | this.getData() |
| | | this.search() |
| | | }) |
| | | }).catch(() => { |
| | | |
| | |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | visitCancel(id) |
| | | this.api.visitCancel(id) |
| | | .then(res => { |
| | | this.page = 1 |
| | | this.getData() |
| | | this.search() |
| | | }) |
| | | }).catch(() => { |
| | | |
| | |
| | | this.api.visitResend(id) |
| | | .then(res => { |
| | | this.page = 1 |
| | | this.getData() |
| | | this.search() |
| | | }) |
| | | }).catch(() => { |
| | | |