| | |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="保养周期"> |
| | | <a-input placeholder="选择设备后自动带出" v-model="model.maintenancePeriod" disabled/> |
| | | <a-input v-model="model.maintenancePeriod" disabled/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | |
| | | { |
| | | title: '序号', |
| | | key: 'itemCode', |
| | | type: JVXETypes.inputNumber, |
| | | type: JVXETypes.normal, |
| | | width: 100, |
| | | align: 'center', |
| | | disabled: true |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '保养项', |
| | | key: 'itemName', |
| | | type: JVXETypes.textarea, |
| | | align: 'center', |
| | | disabled: true |
| | | type: JVXETypes.normal, |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '保养规范或要求', |
| | | key: 'itemDemand', |
| | | type: JVXETypes.textarea, |
| | | align: 'center', |
| | | disabled: true |
| | | type: JVXETypes.normal, |
| | | align: 'center' |
| | | } |
| | | ], |
| | | weekInspectionColumns: [], |
| | |
| | | key: 'itemCode', |
| | | type: JVXETypes.normal, |
| | | width: 60, |
| | | align: 'center', |
| | | fixed: 'left' |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '保养项', |
| | | key: 'itemName', |
| | | type: JVXETypes.textarea, |
| | | align: 'center', |
| | | fixed: 'left' |
| | | type: JVXETypes.normal, |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '保养要求', |
| | | key: 'itemDemand', |
| | | type: JVXETypes.textarea, |
| | | align: 'center', |
| | | fixed: 'left' |
| | | type: JVXETypes.normal, |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '点检结果', |
| | | key: 'inspectionResult', |
| | | type: JVXETypes.slot, |
| | | slotName: 'inspectionResult', |
| | | align: 'center' |
| | | type: JVXETypes.select, |
| | | dictCode: 'inspection_project_result', |
| | | align: 'center', |
| | | disabled: true |
| | | }, |
| | | { |
| | | title: '异常描述', |
| | | key: 'exceptionDescription', |
| | | type: JVXETypes.slot, |
| | | slotName: 'exceptionDescription', |
| | | type: JVXETypes.normal, |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '异常是否报修', |
| | | key: 'reportFlag', |
| | | type: JVXETypes.slot, |
| | | slotName: 'reportFlag', |
| | | align: 'center' |
| | | type: JVXETypes.select, |
| | | ditCode: 'yn', |
| | | align: 'center', |
| | | disabled: true |
| | | } |
| | | ] |
| | | } |
| | |
| | | }, |
| | | methods: { |
| | | add() { |
| | | this.model = {} |
| | | this.model = { maintenancePeriod: 1 } |
| | | this.visible = true |
| | | this.editable = true |
| | | this.detail.dayInspectionList = [] |
| | |
| | | }, |
| | | |
| | | edit(record) { |
| | | this.model = Object.assign({}, record) |
| | | this.model = Object.assign({ maintenancePeriod: 1 }, record) |
| | | this.editable = false |
| | | this.visible = true |
| | | this.spinning = true |
| | |
| | | |
| | | autocompleteForm(selectObj) { |
| | | this.model.standardName = selectObj.standardName |
| | | this.model.maintenancePeriod = selectObj.maintenancePeriod |
| | | this.model.standardCode = selectObj.standardCode |
| | | this.standardId = selectObj.id |
| | | this.detail.dayInspectionList = [] |
| | |
| | | }) |
| | | .then(res => { |
| | | if (res.success) { |
| | | if (res.result.length > 0) { |
| | | this.detail.weekInspectionList = res.result |
| | | if (res.result.list.length > 0) { |
| | | this.detail.weekInspectionList = res.result.list |
| | | this.detail.weekInspectionColumns = this.detail.weekInspectionOrderColumns |
| | | } |
| | | } |