| | |
| | | <template> |
| | | <a-card |
| | | :bordered="false" |
| | | title="专业保养工单" |
| | | title="预防性保养工单" |
| | | > |
| | | <!-- 查询区域 --> |
| | | <div class="table-page-search-wrapper"> |
| | |
| | | :loading="loading" |
| | | class="j-table-force-nowrap" |
| | | @change="handleTableChange" |
| | | :rowClassName="tableRowClass" |
| | | > |
| | | <!-- :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" --> |
| | | <span |
| | |
| | | v-has="'specialtyMaintenanceOrder:assign'" |
| | | >派工</a> |
| | | <a |
| | | v-if="record.status == '2'&& record.assignMode == '3' && record.inspectionUserName != null " |
| | | v-if="record.status == '2'&& record.assignMode == '3' && record.maintenanceUserName != null " |
| | | @click="handleAssignOrder(record)" |
| | | v-has="'specialtyMaintenanceOrder:assign'" |
| | | >改派</a> |
| | |
| | | return parseInt(index) + 1; |
| | | } |
| | | }, |
| | | { |
| | | title: '状态', |
| | | align: "center", |
| | | dataIndex: 'statusName' |
| | | }, |
| | | { |
| | | title: '维保方式', |
| | | align: "center", |
| | | dataIndex: 'maintenanceMode' |
| | | }, |
| | | |
| | | { |
| | | title: '保养工单号', |
| | | align: "center", |
| | |
| | | scopedSlots: { customRender: 'num' } |
| | | }, |
| | | { |
| | | title: '对象部门', |
| | | title: '使用部门', |
| | | align: "center", |
| | | dataIndex: 'departName', |
| | | }, |
| | |
| | | title: '责任班组', |
| | | align: "center", |
| | | dataIndex: 'teamName', |
| | | }, |
| | | { |
| | | title: '状态', |
| | | align: "center", |
| | | dataIndex: 'statusName' |
| | | }, |
| | | { |
| | | title: '维保方式', |
| | | align: "center", |
| | | dataIndex: 'maintenanceMode' |
| | | }, |
| | | // { |
| | | // title: '工时定额/每小时', |
| | |
| | | // //清空列表选中 |
| | | // this.onClearSelected() |
| | | // }, |
| | | |
| | | //预警颜色 |
| | | tableRowClass(record, index) { |
| | | if ("1" == record.status || "2" == record.status) { |
| | | if (record.yellowWarningTime < record.currentDateTime && record.currentDateTime < record.redWarningTime) { |
| | | return 'yellow' |
| | | } else if (record.redWarningTime < record.currentDateTime && record.currentDateTime < record.planStartTime) { |
| | | return 'error' |
| | | } else if (record.planStartTime < record.currentDateTime) { |
| | | return 'frozenRowClass' |
| | | } |
| | | } |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | <style > |
| | | @import '~@assets/less/common.less'; |
| | | .frozenRowClass { |
| | | color: #c9c9c9; |
| | | font-weight: bold; |
| | | } |
| | | .success { |
| | | color: green; |
| | | } |
| | | .error { |
| | | color: red; |
| | | font-weight: bold; |
| | | } |
| | | .yellow { |
| | | color: yellow; |
| | | font-weight: bold; |
| | | } |
| | | .fontweight { |
| | | font-weight: bold; |
| | | } |
| | | |
| | | .ant-table-tbody .red { |
| | | background-color: red !important; |
| | | } |
| | | </style> |