| | |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="设备名称" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input :disabled="disSeach" :readOnly="disableSubmit" allow-clear placeholder="请输入设备名称" |
| | | <a-form-model-item label="设备名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="equipmentName"> |
| | | <a-input :disabled="disSeach" allow-clear placeholder="请输入设备名称" |
| | | v-model="model.equipmentName"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="设备型号" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input :disabled="true" :readOnly="disableSubmit" allow-clear placeholder="请输入设备型号" |
| | | <a-form-model-item label="设备型号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="equipmentModel"> |
| | | <a-input :disabled="disSeach" allow-clear placeholder="请输入设备型号" |
| | | v-model="model.equipmentModel"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | |
| | | { |
| | | required: true, message: '请选择设备编号!' |
| | | }, |
| | | // { |
| | | // validator: this.validatequipmentId |
| | | // } |
| | | ], |
| | | // trigger: 'blur' // 触发方式 |
| | | |
| | | equipmentName: |
| | | [ |
| | | { |
| | | required: true, message: '请输入设备名称!' |
| | | }, |
| | | ], |
| | | equipmentModel: |
| | | [ |
| | | { |
| | | required: true, message: '请输入设备型号!' |
| | | }, |
| | | ], |
| | | selectedProduction: |
| | | [ |
| | | { |
| | |
| | | getDeviceRows(val) { |
| | | console.log(val) |
| | | if(val.equipmentid ){ |
| | | this.removeValidate() |
| | | this.model.equipmentId = val.equipmentid |
| | | this.model.equipmentName = val.equipmentname |
| | | this.model.equipmentModel = val.equipmentmodel |
| | |
| | | title: '序号', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | width: 70, |
| | | width: 60, |
| | | align: 'center', |
| | | customRender: function(t, r, index) { |
| | | return parseInt(index) + 1 |
| | |
| | | title: '车间', |
| | | align: 'center', |
| | | dataIndex: 'productionName', |
| | | width: 200 |
| | | width: 110 |
| | | }, |
| | | { |
| | | title: '设备统一编号', |
| | | title: '设备编号', |
| | | align: 'center', |
| | | dataIndex: 'equipmentId', |
| | | width: 120 |
| | |
| | | { |
| | | title: '设备名称', |
| | | align: 'center', |
| | | width: 200, |
| | | width: 120, |
| | | dataIndex: 'equipmentName' |
| | | }, |
| | | { |
| | | title: '设备型号', |
| | | align: 'center', |
| | | width: 200, |
| | | width: 120, |
| | | dataIndex: 'equipmentModel', |
| | | scopedSlots: { customRender: 'equipmentModel' } |
| | | }, |
| | |
| | | { |
| | | title: '班次', |
| | | align: 'center', |
| | | width: 300, |
| | | width: 100, |
| | | dataIndex: 'shift' |
| | | }, |
| | | { |
| | | title: '每班小时', |
| | | dataIndex: 'shiftTimeCount', |
| | | align: 'center', |
| | | width: 110 |
| | | width: 100 |
| | | }, |
| | | { |
| | | title: '加班时间(分钟)', |
| | | dataIndex: 'overtime', |
| | | align: 'center', |
| | | width: 110 |
| | | width: 100 |
| | | }, |
| | | { |
| | | title: '实际班产天数', |
| | | dataIndex: 'actualWorkDayCount', |
| | | align: 'center', |
| | | width: 120 |
| | | width: 100 |
| | | }, |
| | | { |
| | | title: '月度实际班产总时间(分钟)', |
| | | dataIndex: 'monthActualWorkDayTimeCount', |
| | | align: 'center', |
| | | width: 110 |
| | | width: 100 |
| | | }, |
| | | { |
| | | title: '非计划停机损失(分钟)(一个月)', |
| | |
| | | title: '计划等任务', |
| | | dataIndex: 'plannedTaskDuration', |
| | | align: 'center', |
| | | width: 110 |
| | | width: 100 |
| | | }, |
| | | { |
| | | title: '检验', |
| | |
| | | title: '会议/培训', |
| | | dataIndex: 'conferenceTrainingDuration', |
| | | align: 'center', |
| | | width: 110 |
| | | width: 100 |
| | | }, |
| | | { |
| | | title: '其他休息等', |
| | | dataIndex: 'otherRestDuration', |
| | | align: 'center', |
| | | width: 110 |
| | | width: 100 |
| | | }] |
| | | }, |
| | | { |
| | | title: '负荷时间(小时)', |
| | | dataIndex: 'loadTime', |
| | | align: 'center', |
| | | width: 110 |
| | | width: 100 |
| | | }, |
| | | { |
| | | title: '时间开动率', |
| | | dataIndex: 'timeActuationRate', |
| | | align: 'center', |
| | | width: 110, |
| | | width: 100, |
| | | customRender: text => text != 0 ? parseFloat((text * 100).toFixed(2)) + '%' : 0 |
| | | }, |
| | | // { |
| | |
| | | title: '性能开动率', |
| | | dataIndex: 'performanceRate', |
| | | align: 'center', |
| | | width: 110, |
| | | width: 100, |
| | | customRender: text => text != 0 ? parseFloat((text * 100).toFixed(2)) + '%' : 0 |
| | | }, |
| | | { |
| | |
| | | title: '设备综合效率', |
| | | dataIndex: 'overallEquipmentEfficiency', |
| | | align: 'center', |
| | | width: 120, |
| | | width: 100, |
| | | customRender: text => text != 0 ? parseFloat((text * 100).toFixed(2)) + '%' : 0 |
| | | } |
| | | ], |