| | |
| | | </a-dropdown> |
| | | </template> |
| | | |
| | | <a v-else @click="handleDetail(record)">详情</a> |
| | | <template v-else> |
| | | <template v-if="record.inspectionStatus=='COMPLETE'"> |
| | | <a @click="handlePrint(record)">预览</a> |
| | | <a-divider type="vertical"/> |
| | | </template> |
| | | |
| | | <a @click="handleDetail(record)">详情</a> |
| | | </template> |
| | | </span> |
| | | </a-table> |
| | | </div> |
| | |
| | | align: 'center', |
| | | customRender: function(t, r, index) { |
| | | return parseInt(index) + 1 |
| | | } |
| | | }, |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '统一编码', |
| | | align: 'center', |
| | | dataIndex: 'equipmentCode' |
| | | dataIndex: 'equipmentCode', |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '设备名称', |
| | | align: 'center', |
| | | dataIndex: 'equipmentName' |
| | | dataIndex: 'equipmentName', |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '设备型号', |
| | | align: 'center', |
| | | dataIndex: 'equipmentModel' |
| | | dataIndex: 'equipmentModel', |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '工单号', |
| | |
| | | dataIndex: 'inspectionDate', |
| | | customRender: function(text) { |
| | | return !text ? '' : (text.length > 10 ? text.substr(0, 10) : text) |
| | | } |
| | | }, |
| | | width: 150 |
| | | }, |
| | | { |
| | | title: '点检过期日期', |
| | |
| | | dataIndex: 'expirationTime', |
| | | customRender: function(text) { |
| | | return !text ? '' : (text.length > 10 ? text.substr(0, 10) : text) |
| | | } |
| | | }, |
| | | width: 150 |
| | | }, |
| | | { |
| | | title: '创建方式', |
| | |
| | | { |
| | | title: '点检时间', |
| | | align: 'center', |
| | | dataIndex: 'operateTime' |
| | | dataIndex: 'operateTime', |
| | | width: 150 |
| | | }, |
| | | { |
| | | title: '维修工', |
| | |
| | | { |
| | | title: '确认时间', |
| | | align: 'center', |
| | | dataIndex: 'confirmTime' |
| | | dataIndex: 'confirmTime', |
| | | width: 150 |
| | | }, |
| | | { |
| | | title: 'HF编码', |
| | | align: 'center', |
| | | dataIndex: 'hfCode' |
| | | dataIndex: 'hfCode', |
| | | width: 250 |
| | | } |
| | | ], |
| | | url: { |
| | |
| | | title: '操作', |
| | | dataIndex: 'action', |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'action' } |
| | | scopedSlots: { customRender: 'action' }, |
| | | fixed: 'right' |
| | | } |
| | | this.columns = [...this.columns, operationColumn] |
| | | this.loadData(1) |
| | |
| | | this.$refs.modalFormXq.visible = true |
| | | this.$refs.modalFormXq.title = '详情' |
| | | this.$refs.modalFormXq.disableSubmit = true |
| | | this.$refs.modalFormXq.getAllApproveData(record) |
| | | this.$refs.modalFormXq.getBasicInformation({ ...record, dataId: record.id }) |
| | | this.$refs.modalFormXq.handleDetail(record) |
| | | }, |
| | | |
| | | handleInspection(id) { |
| | |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | batchZf(type) { |
| | | var ids = '' |
| | | for (var a = 0; a < this.selectedRowKeys.length; a++) { |
| | |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | batchLq(type) { |
| | | var ids = '' |
| | | for (var a = 0; a < this.selectedRowKeys.length; a++) { |
| | |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | handlePrint(record) { |
| | | let href = `${window._CONFIG['domianURL']}/jmreport/view/1105664887569121280?equipmentCode=` + record.equipmentCode |
| | | window.open(href, '_blank') |
| | | }, |
| | | |
| | | onInspectionDateChange: function(value, dateString) { |
| | | this.queryParam.inspectionDateBegin = dateString[0] |
| | | this.queryParam.inspectionDateEnd = dateString[1] |