From 3ce2d50102929e6e245249ce61bbadd300f3e24e Mon Sep 17 00:00:00 2001 From: Lius <Lius2225@163.com> Date: 星期三, 14 八月 2024 16:12:28 +0800 Subject: [PATCH] 设备维护校验调整 OEE列表间距调整 --- src/views/mdc/base/modules/EquipmentList/UserModal.vue | 26 +++++++++++++++++--------- src/views/mdc/base/modules/OEEAnalysis/OEEAnalysisList.vue | 34 +++++++++++++++++----------------- 2 files changed, 34 insertions(+), 26 deletions(-) diff --git a/src/views/mdc/base/modules/EquipmentList/UserModal.vue b/src/views/mdc/base/modules/EquipmentList/UserModal.vue index 7bc3c27..1908396 100644 --- a/src/views/mdc/base/modules/EquipmentList/UserModal.vue +++ b/src/views/mdc/base/modules/EquipmentList/UserModal.vue @@ -29,8 +29,8 @@ </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> @@ -109,8 +109,8 @@ </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> @@ -222,12 +222,19 @@ { required: true, message: '璇烽�夋嫨璁惧缂栧彿!' }, - // { - // validator: this.validatequipmentId - // } ], - // trigger: 'blur' // 瑙﹀彂鏂瑰紡 - + equipmentName: + [ + { + required: true, message: '璇疯緭鍏ヨ澶囧悕绉�!' + }, + ], + equipmentModel: + [ + { + required: true, message: '璇疯緭鍏ヨ澶囧瀷鍙�!' + }, + ], selectedProduction: [ { @@ -330,6 +337,7 @@ 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 diff --git a/src/views/mdc/base/modules/OEEAnalysis/OEEAnalysisList.vue b/src/views/mdc/base/modules/OEEAnalysis/OEEAnalysisList.vue index 67b8784..0833281 100644 --- a/src/views/mdc/base/modules/OEEAnalysis/OEEAnalysisList.vue +++ b/src/views/mdc/base/modules/OEEAnalysis/OEEAnalysisList.vue @@ -163,7 +163,7 @@ title: '搴忓彿', dataIndex: '', key: 'rowIndex', - width: 70, + width: 60, align: 'center', customRender: function(t, r, index) { return parseInt(index) + 1 @@ -173,10 +173,10 @@ title: '杞﹂棿', align: 'center', dataIndex: 'productionName', - width: 200 + width: 110 }, { - title: '璁惧缁熶竴缂栧彿', + title: '璁惧缂栧彿', align: 'center', dataIndex: 'equipmentId', width: 120 @@ -184,13 +184,13 @@ { title: '璁惧鍚嶇О', align: 'center', - width: 200, + width: 120, dataIndex: 'equipmentName' }, { title: '璁惧鍨嬪彿', align: 'center', - width: 200, + width: 120, dataIndex: 'equipmentModel', scopedSlots: { customRender: 'equipmentModel' } }, @@ -203,32 +203,32 @@ { 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: '闈炶鍒掑仠鏈烘崯澶憋紙鍒嗛挓锛夛紙涓�涓湀锛�', @@ -255,7 +255,7 @@ title: '璁″垝绛変换鍔�', dataIndex: 'plannedTaskDuration', align: 'center', - width: 110 + width: 100 }, { title: '妫�楠�', @@ -284,26 +284,26 @@ 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 }, // { @@ -322,7 +322,7 @@ title: '鎬ц兘寮�鍔ㄧ巼', dataIndex: 'performanceRate', align: 'center', - width: 110, + width: 100, customRender: text => text != 0 ? parseFloat((text * 100).toFixed(2)) + '%' : 0 }, { @@ -342,7 +342,7 @@ title: '璁惧缁煎悎鏁堢巼', dataIndex: 'overallEquipmentEfficiency', align: 'center', - width: 120, + width: 100, customRender: text => text != 0 ? parseFloat((text * 100).toFixed(2)) + '%' : 0 } ], -- Gitblit v1.9.3