| | |
| | | </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"> |
| | |
| | | key: 'itemCode', |
| | | type: JVXETypes.normal, |
| | | width: 100, |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '保养项', |
| | | key: 'itemName', |
| | | type: JVXETypes.normal, |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '保养规范或要求', |
| | | key: 'itemDemand', |
| | | type: JVXETypes.normal, |
| | | align: 'center', |
| | | align: 'center' |
| | | } |
| | | ], |
| | | weekInspectionColumns: [], |
| | |
| | | key: 'itemCode', |
| | | type: JVXETypes.normal, |
| | | width: 60, |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '保养项', |
| | | key: 'itemName', |
| | | type: JVXETypes.normal, |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '保养要求', |
| | | key: 'itemDemand', |
| | | type: JVXETypes.normal, |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '点检结果', |
| | |
| | | title: '异常描述', |
| | | key: 'exceptionDescription', |
| | | type: JVXETypes.normal, |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '异常是否报修', |
| | |
| | | }, |
| | | 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 = [] |