| | |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label="工单状态"> |
| | | <a-input readOnly v-model="tableRowRecord.inspectionStatus_dictText"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label="设备编号"> |
| | | <MaintenanceEquipmentSelect v-model="tableRowRecord.equipmentId" |
| | | :maintenanceCategory="'POINT_INSPECTION'" disabled |
| | | @autocompleteForm="autoCompleteForm"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label="安装位置"> |
| | | <a-input readOnly v-model="tableRowRecord.installationPosition_dictText"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span='span'> |
| | |
| | | <a-input readOnly v-model="tableRowRecord.standardName"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label="标准编码"> |
| | | <a-input readOnly v-model="tableRowRecord.standardCode"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label="标准编码"> |
| | | <a-input readOnly v-model="tableRowRecord.standardCode"/> |
| | | <a-form-model-item label="保养周期"> |
| | | <a-input v-model="tableRowRecord.maintenancePeriod" readOnly/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span='span'> |
| | |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label="保养周期"> |
| | | <a-input v-model="tableRowRecord.maintenancePeriod" readOnly/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | |
| | | <a-col :span='span'> |
| | | <a-form-model-item label="点检人"> |
| | | <a-input v-model="tableRowRecord.operator_dictText" readOnly/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label="点检人电话"> |
| | | <a-input v-model="tableRowRecord.operatorPhone_dictText" readOnly/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label="作业指导"> |
| | | <a-button @click="handlePreview(tableRowRecord.referenceFile)" type="primary" icon="eye">预览</a-button> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | </a-tab-pane> |
| | | |
| | | <a-tab-pane key='3' tab='流程图'> |
| | | <img :src="imageSrc" alt="Fetched Image"/>--> |
| | | <img :src="imageSrc" alt="Fetched Image"/> |
| | | </a-tab-pane> |
| | | </template> |
| | | |
| | |
| | | </template> |
| | | </a-form-model> |
| | | </a-spin> |
| | | |
| | | <lx-file-preview ref="lxFilePreview" :fileUrl="fileUrl"></lx-file-preview> |
| | | </j-modal> |
| | | </template> |
| | | |
| | |
| | | selectedRowKeys: [], |
| | | disableSubmit: false, |
| | | activeTabKey: '1', |
| | | title: '' |
| | | title: '', |
| | | fileUrl: '', |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | const param = { id: record.dataId } |
| | | let res = await getAction(this.url.queryById, param); |
| | | this.tableRowRecord = Object.assign({}, res.result); |
| | | debugger |
| | | if (this.tableRowRecord.imageFiles) { |
| | | let obj = JSON.parse(this.tableRowRecord.imageFiles) |
| | | this.tableRowRecord.fileList = [...obj] |
| | |
| | | }) |
| | | }, |
| | | |
| | | autoCompleteForm({ standardName, maintenancePeriod, standardCode }) { |
| | | autoCompleteForm({ standardName, maintenancePeriod, standardCode, referenceFile }) { |
| | | this.$set(this.tableRowRecord, 'standardName', standardName) |
| | | this.$set(this.tableRowRecord, 'maintenancePeriod', maintenancePeriod) |
| | | this.$set(this.tableRowRecord, 'standardCode', standardCode) |
| | | this.$set(this.tableRowRecord, 'referenceFile', referenceFile) |
| | | }, |
| | | |
| | | // 批量选择所有点检结果 |
| | |
| | | }) |
| | | } |
| | | }, |
| | | handlePreview: function (fileJson) { |
| | | if(fileJson) { |
| | | let obj = JSON.parse(fileJson) |
| | | if(obj.filePath) { |
| | | this.$refs.lxFilePreview.preview(obj.filePath); |
| | | }else { |
| | | that.$message.warning('没有上传操作指导图片') |
| | | } |
| | | }else { |
| | | that.$message.warning('没有上传操作指导图片') |
| | | } |
| | | |
| | | }, |
| | | } |
| | | } |
| | | </script> |