| | |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" @change="handleTableChange" |
| | | :scroll="{x:'max-content'}"> |
| | | <span slot="action" slot-scope="text, record"> |
| | | <template v-if="record.repairStatus=='PENDING_REPAIR'||record.repairStatus=='UNDER_MAINTENANCE'"> |
| | | <template v-if="record.repairStatus=='PENDING_REPAIR'||record.repairStatus=='UNDER_MAINTENANCE' ||record.repairStatus=='REJECTED'"> |
| | | <a @click="handleFillIn(record)">填报</a> |
| | | <a-divider type="vertical"/> |
| | | <a-popconfirm title="确定提交吗?" @confirm="() => handleSubmit(record.id)"> |
| | |
| | | </template> |
| | | |
| | | <a v-else @click="handleDetail(record)">详情</a> |
| | | </span> |
| | | |
| | | <!--字符串超长截取省略号显示--> |
| | | <span slot="faultPhenomenon" slot-scope="text"> |
| | | <j-ellipsis :value="text" :length="8"/> |
| | | </span> |
| | | <span slot="faultReason" slot-scope="text"> |
| | | <j-ellipsis :value="text" :length="8"/> |
| | | </span> |
| | | <span slot="faultAnalysis" slot-scope="text"> |
| | | <j-ellipsis :value="text" :length="8"/> |
| | | </span> |
| | | <span slot="faultProcess" slot-scope="text"> |
| | | <j-ellipsis :value="text" :length="8"/> |
| | | </span> |
| | | <span slot="faultPrevent" slot-scope="text"> |
| | | <j-ellipsis :value="text" :length="8"/> |
| | | </span> |
| | | </a-table> |
| | | </div> |
| | |
| | | { |
| | | title: '工单号', |
| | | align: 'center', |
| | | dataIndex: 'repairCode' |
| | | dataIndex: 'repairCode', |
| | | }, |
| | | { |
| | | title: '故障类型', |
| | | align: 'center', |
| | | dataIndex: 'faultType_dictText', |
| | | }, |
| | | { |
| | | title: '报修人', |
| | | align: 'center', |
| | | dataIndex: 'reportPerson_dictText', |
| | | }, |
| | | { |
| | | title: '维修开始时间', |
| | |
| | | width: 200 |
| | | }, |
| | | { |
| | | title: '故障现象', |
| | | align: 'center', |
| | | dataIndex: 'faultPhenomenon', |
| | | scopedSlots: {customRender: 'faultPhenomenon'}, |
| | | }, |
| | | { |
| | | title: '故障原因', |
| | | align: 'center', |
| | | dataIndex: 'faultReason' |
| | | dataIndex: 'faultReason', |
| | | scopedSlots: {customRender: 'faultReason'}, |
| | | }, |
| | | { |
| | | title: '故障分析', |
| | | align: 'center', |
| | | dataIndex: 'faultAnalysis' |
| | | dataIndex: 'faultAnalysis', |
| | | scopedSlots: {customRender: 'faultAnalysis'}, |
| | | }, |
| | | { |
| | | title: '排故过程', |
| | | align: 'center', |
| | | dataIndex: 'faultProcess' |
| | | dataIndex: 'faultProcess', |
| | | scopedSlots: {customRender: 'faultProcess'}, |
| | | }, |
| | | { |
| | | title: '预防措施', |
| | | align: 'center', |
| | | dataIndex: 'faultPrevent' |
| | | dataIndex: 'faultPrevent', |
| | | scopedSlots: {customRender: 'faultPrevent'}, |
| | | }, |
| | | { |
| | | title: '操作工', |