| | |
| | | <template> |
| | | <a-card |
| | | :bordered="false" |
| | | title="二级保养工单" |
| | | title="二级保养" |
| | | > |
| | | <!-- 查询区域 --> |
| | | <div class="table-page-search-wrapper"> |
| | |
| | | slot-scope="text, record" |
| | | > |
| | | <a-popconfirm |
| | | title="确定下发工单吗?" |
| | | title="确定接收工单吗?" |
| | | @confirm="() => handleOrderIssue(record)" |
| | | v-has="'dailyMaintenanceOrder:issue'" |
| | | > |
| | | <a v-if="record.status == '1'">下发</a> |
| | | <a v-if="record.status == '1'">接收</a> |
| | | </a-popconfirm> |
| | | <a-divider |
| | | v-if="record.status == '1'" |
| | |
| | | v-if="record.status == '2'" |
| | | type="vertical" |
| | | /> |
| | | <a-popconfirm |
| | | <!-- <a-popconfirm |
| | | title="确定恢复工单吗?" |
| | | @confirm="() => handleOrderRecover(record)" |
| | | v-has="'dailyMaintenanceOrder:recover'" |
| | |
| | | <a-divider |
| | | v-if="record.status == '7'" |
| | | type="vertical" |
| | | /> |
| | | <a-popconfirm |
| | | /> --> |
| | | <!-- <a-popconfirm |
| | | title="确定作废工单吗?" |
| | | @confirm="() => handleOrderCancel(record)" |
| | | v-has="'dailyMaintenanceOrder:recover'" |
| | | > |
| | | <a v-if="record.status == '2'">作废</a> |
| | | </a-popconfirm> |
| | | </a-popconfirm> --> |
| | | <a-divider |
| | | v-if="record.status == '2'" |
| | | type="vertical" |
| | |
| | | @click="handleAssignOrder(record)" |
| | | v-has="'dailyMaintenanceOrder:assign'" |
| | | >派工</a> |
| | | <a |
| | | <!-- <a |
| | | v-if="record.status == '3'&& record.assignMode == '2' && record.maintenanceUserName != null " |
| | | @click="handleAssignOrder(record)" |
| | | v-has="'dailyMaintenanceOrder:assign'" |
| | | >改派</a> |
| | | >改派</a> --> |
| | | <!-- <a |
| | | v-if="record.status == '3'" |
| | | @click="handleAssignOrder(record)" |
| | |
| | | type="vertical" |
| | | /> |
| | | <a |
| | | v-if="record.status === '5'" |
| | | v-if="record.status === '5' || record.status === '8'" |
| | | @click="handleFinish(record)" |
| | | >确认</a> |
| | | >完工移交单</a> |
| | | <a-divider |
| | | v-if="record.status === '5'" |
| | | v-if="record.status === '5' || record.status === '8'" |
| | | type="vertical" |
| | | /> |
| | | <a-dropdown> |
| | |
| | | { |
| | | title: '状态', |
| | | align: "center", |
| | | width: 100, |
| | | dataIndex: 'statusName' |
| | | }, |
| | | // { |
| | |
| | | // align: "center", |
| | | // dataIndex: 'maintenanceTypeName', |
| | | // }, |
| | | { |
| | | title: '保养周期', |
| | | align: "center", |
| | | dataIndex: 'maintenanceCycleName', |
| | | }, |
| | | // { |
| | | // title: '保养周期', |
| | | // align: "center", |
| | | // dataIndex: 'maintenanceCycleName', |
| | | // }, |
| | | { |
| | | title: '派工方式', |
| | | align: "center", |
| | | dataIndex: 'assignModeName' |
| | | dataIndex: 'assignModeName', |
| | | width: 100, |
| | | }, |
| | | { |
| | | title: '设备编码', |
| | | title: '统一编码', |
| | | align: "center", |
| | | dataIndex: 'equipmentNum', |
| | | }, |
| | |
| | | align: "center", |
| | | dataIndex: 'equipmentModel', |
| | | }, |
| | | { |
| | | title: '保养标准编码', |
| | | align: "center", |
| | | dataIndex: 'maintenanceStandardNum', |
| | | }, |
| | | // { |
| | | // title: '保养标准编码', |
| | | // align: "center", |
| | | // dataIndex: 'maintenanceStandardNum', |
| | | // }, |
| | | |
| | | { |
| | | title: '使用部门', |
| | |
| | | align: "center", |
| | | dataIndex: 'teamName' |
| | | }, |
| | | { |
| | | title: '工时定额', |
| | | align: "center", |
| | | dataIndex: 'workingHourQuota' |
| | | }, |
| | | { |
| | | title: '计划开始时间', |
| | | align: "center", |
| | | dataIndex: 'planStartTime', |
| | | //width: '120px', |
| | | }, |
| | | { |
| | | title: '计划结束时间', |
| | | align: "center", |
| | | dataIndex: 'planEndTime', |
| | | //width: '120px', |
| | | }, |
| | | // { |
| | | // title: '工时定额', |
| | | // align: "center", |
| | | // dataIndex: 'workingHourQuota' |
| | | // }, |
| | | // { |
| | | // title: '计划开始时间', |
| | | // align: "center", |
| | | // dataIndex: 'planStartTime', |
| | | // //width: '120px', |
| | | // }, |
| | | // { |
| | | // title: '计划结束时间', |
| | | // align: "center", |
| | | // dataIndex: 'planEndTime', |
| | | // //width: '120px', |
| | | // }, |
| | | { |
| | | title: '实际开始时间', |
| | | align: "center", |
| | |
| | | dataIndex: 'actualEndTime', |
| | | //width: '120px', |
| | | }, |
| | | { |
| | | title: '实际用时', |
| | | align: "center", |
| | | dataIndex: 'actualWorkingHourQuota', |
| | | }, |
| | | // { |
| | | // title: '实际用时', |
| | | // align: "center", |
| | | // dataIndex: 'actualWorkingHourQuota', |
| | | // }, |
| | | { |
| | | title: '执行人', |
| | | align: "center", |
| | |
| | | |
| | | handleOrderExe(record) { |
| | | this.$refs.DailyMaintenanceOrderExeDrawer.visible = true |
| | | this.$refs.DailyMaintenanceOrderExeDrawer.title = '日常保养工单执行' |
| | | this.$refs.DailyMaintenanceOrderExeDrawer.title = '二级保养工单执行' |
| | | this.$refs.DailyMaintenanceOrderExeDrawer.handleShow(record) |
| | | if (record.status === '3') { |
| | | this.$refs.DailyMaintenanceOrderExeDrawer.buttonDistable = true//保存、暂存、报工 |