| | |
| | | <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="4"></el-option> |
| | | <el-option label="已撤销" value="4"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="目的地类型" prop="type"> |
| | |
| | | <el-table-column label="状态" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <span class="status-blue" v-if="row.status === 0">申请中</span> |
| | | <span class="status-blue" v-if="row.status === 1">待审批</span> |
| | | <span class="status-blue" v-if="row.status === 1">审核中</span> |
| | | <span class="status-green" v-if="row.status === 2">审批通过</span> |
| | | <span class="status-red" v-if="row.status === 3">审批不通过</span> |
| | | <span class="status-red" v-if="row.status === 4">已取消</span> |
| | | <span class="status-red" v-if="row.status === 4">已撤销</span> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | |
| | | <el-table-column prop="editDate" label="操作时间" min-width="150px"></el-table-column> |
| | | <el-table-column |
| | | label="操作" |
| | | min-width="100" |
| | | min-width="140" |
| | | align="center" |
| | | fixed="right" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" icon="el-icon-edit" @click="$refs.OperaDetailsWindow.open('公务车申请详情',row)" >查看详情</el-button> |
| | | <el-button v-if="(row.status === 1 || row.status === 2) && new Date().getTime() < new Date(row.startTime).getTime()" type="text" icon="el-icon-delete" @click="rowRevokeClick(row)" >撤销</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | import OperaCarUseBookParamWindow from '@/components/operation/OperCarUseBookParamWindow.vue' |
| | | import { timeForMat } from '@/utils/util' |
| | | import { allList } from '@/api/business/hiddenDangerParam' |
| | | import { carUseBookRecordEx } from '@/api/business/carUseBook' |
| | | import { carUseBookRecordEx, revokeById } from '@/api/business/carUseBook' |
| | | export default { |
| | | name: 'Empower', |
| | | extends: BaseTable, |
| | |
| | | this.loadParams() |
| | | }, |
| | | methods: { |
| | | rowRevokeClick (row) { |
| | | revokeById(row.id) |
| | | }, |
| | | handleEx () { |
| | | this.$dialog.exportConfirm('确认导出吗?') |
| | | .then(() => { |