From 05053e06a979f4daadef62d9751cadf47d0b6da9 Mon Sep 17 00:00:00 2001 From: zhangdi <15053473693@163.com> Date: Thu, 15 Jan 2026 17:15:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E4=BA=A7=E7=AE=A1=E7=90=86=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E8=83=BD=E5=8A=9B=E4=BF=AE=E6=94=B9=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../basic/equipmentCapacity.vue | 47 +++++++++++-------- 1 file changed, 27 insertions(+), 20 deletions(-) diff --git a/src/views/productionSchedulingPlan/basic/equipmentCapacity.vue b/src/views/productionSchedulingPlan/basic/equipmentCapacity.vue index 6e4d90d..da760d8 100644 --- a/src/views/productionSchedulingPlan/basic/equipmentCapacity.vue +++ b/src/views/productionSchedulingPlan/basic/equipmentCapacity.vue @@ -143,7 +143,7 @@ export default { sortable: true, span: 12, width: 120, - disabled:true, + disabled: true, // display:false, }, // { @@ -189,18 +189,18 @@ export default { label: 'caName', value: 'id', }, - change: val => { + change: val => { this.onChangeData(val.item, 'craftId'); }, }, - { + { label: '工艺能力', prop: 'craftName', search: false, sortable: true, span: 12, - hide:true, - display:false + hide: true, + display: false, }, { label: '额定加工能力(烧结-个/热表-面积)', @@ -209,8 +209,8 @@ export default { sortable: true, span: 24, width: 270, - labelWidth:270, - type: 'number' + labelWidth: 270, + type: 'number', }, { label: '额定工时(分钟)', @@ -219,8 +219,8 @@ export default { sortable: true, span: 12, width: 180, - labelWidth:180, - type: 'number' + labelWidth: 180, + type: 'number', }, { label: '准备工时(分钟)', @@ -229,8 +229,8 @@ export default { sortable: true, span: 12, width: 180, - labelWidth:180, - type: 'number' + labelWidth: 180, + type: 'number', }, { label: '轮次间隔(分钟)', @@ -239,10 +239,17 @@ export default { sortable: true, span: 12, width: 180, - labelWidth:180, - type: 'number' + labelWidth: 180, + type: 'number', + rules: [ + { + required: true, + message: '请输入', + trigger: 'blur', + }, + ], }, - + { label: '指定使用', prop: 'assignUse', @@ -266,23 +273,23 @@ export default { }; }, methods: { - beforeOpen(done, type) { + beforeOpen(done, type) { if (['edit', 'view'].includes(type)) { // this.form.processId = this.form.processId+'' // this.form.craftId = this.form.craftId+'' - this.form.workCenterId = this.form.workCenterId+'' + this.form.workCenterId = this.form.workCenterId + ''; } done(); }, onChangeData(val, type) { - if (val&&type == 'workCenterId') { + if (val && type == 'workCenterId') { this.form.workCenterName = val.wcCode; } - if (val&&type == 'equipName') { + if (val && type == 'equipName') { this.form.equipName = val.deviceName; } - if(val&&type=='craftId'){ - this.form.craftName=val.caName + if (val && type == 'craftId') { + this.form.craftName = val.caName; } }, rowSave(row, done, loading) {