| | |
| | | <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="'dailyInspectionOrder:issue'" |
| | | > |
| | | <a v-if="record.status == '1'">下发</a> |
| | | <a v-if="record.status == '1'">接收</a> |
| | | </a-popconfirm> |
| | | <a-divider |
| | | v-if="record.status == '1'" |
| | |
| | | return parseInt(index) + 1; |
| | | } |
| | | }, |
| | | { |
| | | title: '状态', |
| | | align: "center", |
| | | dataIndex: 'statusName' |
| | | }, |
| | | |
| | | { |
| | | title: '点检工单号', |
| | | align: "center", |
| | |
| | | scopedSlots: { customRender: 'num' } |
| | | }, |
| | | { |
| | | title: '点检日期', |
| | | title: '状态', |
| | | align: "center", |
| | | dataIndex: 'inspectionDate', |
| | | customRender: function (text) { |
| | | return !text ? "" : (text.length > 10 ? text.substr(0, 10) : text) |
| | | } |
| | | dataIndex: 'statusName' |
| | | }, |
| | | // { |
| | | // title: '点检日期', |
| | | // align: "center", |
| | | // dataIndex: 'inspectionDate', |
| | | // customRender: function (text) { |
| | | // return !text ? "" : (text.length > 10 ? text.substr(0, 10) : text) |
| | | // } |
| | | // }, |
| | | { |
| | | title: '点检时间', |
| | | align: "center", |
| | | dataIndex: 'inspectionTime', |
| | | customRender: function (text) { |
| | | return !text ? "" : (text.length > 10 ? text.substr(11, 20) : text) |
| | | } |
| | | // customRender: function (text) { |
| | | // return !text ? "" : (text.length > 10 ? text.substr(11, 20) : text) |
| | | // } |
| | | }, |
| | | { |
| | | title: '截止时间', |
| | |
| | | dataIndex: 'inspectionDeadline', |
| | | }, |
| | | { |
| | | title: '设备编码', |
| | | title: '统一编码', |
| | | align: "center", |
| | | dataIndex: 'equipmentNum' |
| | | }, |
| | |
| | | dataIndex: 'equipmentModel' |
| | | }, |
| | | { |
| | | title: '对象部门', |
| | | title: '使用部门', |
| | | align: "center", |
| | | dataIndex: 'useDepartName' |
| | | }, |
| | |
| | | align: "center", |
| | | dataIndex: 'teamName' |
| | | }, |
| | | { |
| | | title: '开工条件', |
| | | align: "center", |
| | | dataIndex: 'startWorkCondition', |
| | | customRender: (text) => { |
| | | if (text == '1') { |
| | | return "是"; |
| | | } else if (text == '0') { |
| | | return "否"; |
| | | } |
| | | }, |
| | | }, |
| | | // { |
| | | // title: '开工条件', |
| | | // align: "center", |
| | | // dataIndex: 'startWorkCondition', |
| | | // customRender: (text) => { |
| | | // if (text == '1') { |
| | | // return "是"; |
| | | // } else if (text == '0') { |
| | | // return "否"; |
| | | // } |
| | | // }, |
| | | // }, |
| | | { |
| | | title: '点检标准编码', |
| | | align: "center", |