| | |
| | | <el-button type="primary" @click="complete(ids)">完成作业</el-button> |
| | | <el-button :loading="exLoading" @click="handleEx" |
| | | v-permissions="['business:platformjob:exportExcel']">导出</el-button> |
| | | <el-button :loading="updateLoading" @click="updateTotalNum" |
| | | v-permissions="['business:platformjob:updateTotalNum']">重置总作业量</el-button> |
| | | </div> |
| | | <el-table :height="tableHeightNew" v-loading="loading" :data="list" @selection-change="handleSelectionChange" stripe> |
| | | <el-table-column type="selection" width="55"></el-table-column> |
| | | <el-table-column prop="billCode" label="运单号" min-width="100" show-overflow-tooltip /> |
| | | <el-table-column prop="totalNum" label="总作业量(万只)" min-width="130" show-overflow-tooltip /> |
| | | <el-table-column prop="totalNum" label="总作业量(万支)" min-width="130" show-overflow-tooltip /> |
| | | <el-table-column prop="carCodeFront" label="车牌前照号" min-width="100" show-overflow-tooltip /> |
| | | <!-- <el-table-column prop="carCodeBack" label="车牌后照号" min-width="100" show-overflow-tooltip /> --> |
| | | <el-table-column prop="taskOrigin" label="任务来源" min-width="100" show-overflow-tooltip /> |
| | |
| | | <span>{{ statusMap[scope.row.status] }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="editUserName" label="最后操作人员" min-width="150" show-overflow-tooltip /> |
| | | <el-table-column prop="name" label="操作" min-width="170" align="center" fixed="right" show-overflow-tooltip> |
| | | <template v-slot="scope"> |
| | | <el-button type="text" @click="complete([scope.row.id])" v-if="[0,1,2].includes(scope.row.status)">完成作业</el-button> |
| | |
| | | <script> |
| | | import Pagination from '@/components/common/Pagination' |
| | | import QueryForm from '@/components/common/QueryForm' |
| | | import { platformJobPage, platformJobExport, platformJobDel, dealJobFinish } from '@/api' |
| | | import { platformJobPage, platformJobExport, platformJobDel, dealJobFinish ,updateTotalNum} from '@/api' |
| | | import { statusMap } from '../config' |
| | | import WaybillDetailRef from "../components/WaybillDetail.vue" |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | |
| | | statusMap, |
| | | isShowDetail: false, |
| | | exLoading: false, |
| | | updateLoading: false, |
| | | loading: false, |
| | | pagination: { |
| | | pageSize: 10, |
| | |
| | | }) |
| | | }) |
| | | }, |
| | | updateTotalNum() { |
| | | this.$dialog.actionConfirm('确认进行该操作吗?','操作提示') |
| | | .then(() => { |
| | | this.updateLoading = true |
| | | updateTotalNum('') |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.updateLoading = false |
| | | }) |
| | | }) |
| | | }, |
| | | clear() { |
| | | this.pagination.page = 1 |
| | | this.filters = {} |