From 0fbad131d3e4b8970755b31aa7dad9a2373f224a Mon Sep 17 00:00:00 2001 From: TengXF <302828528@qq.com> Date: Wed, 22 May 2024 13:03:47 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=BC=80=E5=85=B3?= =?UTF-8?q?=E5=85=B3=E9=97=AD=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mes/item/index.vue | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/src/views/mes/item/index.vue b/src/views/mes/item/index.vue index 148c77cae..81515d30d 100644 --- a/src/views/mes/item/index.vue +++ b/src/views/mes/item/index.vue @@ -152,7 +152,7 @@ const basicFormRef = ref() const openForm = (type: string, row?: any) => { if(type == "update"){ Item.allSchemas.formSchema.forEach((item) => { - + if (item.field == 'itemCode') { item.componentProps.disabled = true } @@ -168,7 +168,7 @@ const openForm = (type: string, row?: any) => { item.componentProps.disabled = false } - } + } if(row.dataType == 'SWITCH'){ if (item.field == 'dataVerify') { item.componentProps.disabled = true @@ -177,7 +177,7 @@ const openForm = (type: string, row?: any) => { item.componentProps.disabled = true } - } + } if(row.dataType == 'TEXT'){ if (item.field == 'dataVerify') { item.componentProps.disabled = true @@ -186,8 +186,8 @@ const openForm = (type: string, row?: any) => { item.componentProps.disabled = true } - } - }) + } + }) }else{ Item.allSchemas.formSchema.forEach((item) => { if (item.field == 'itemCode') { @@ -202,9 +202,12 @@ const openForm = (type: string, row?: any) => { if (item.field == 'dataStandvalue') { item.componentProps.disabled = false } + if (item.field == 'status') { + item.componentProps.disabled = true + } }) - } + } basicFormRef.value.open(type, row) } @@ -293,9 +296,9 @@ const searchFormClick = (searchData) => { //数据类型切换 const onChangeQG = (field, cur, item) => { - + console.log('cur'+cur) - + Item.allSchemas.formSchema.forEach((item) => { if(cur == 'SWITCH'){ if (item.field == 'dataVerify') { @@ -306,8 +309,8 @@ const onChangeQG = (field, cur, item) => { } if (item.field == 'status') { item.componentProps.disabled = false - } - } + } + } if(cur == 'TEXT'){ if (item.field == 'dataVerify') { item.componentProps.disabled = true @@ -317,7 +320,7 @@ const onChangeQG = (field, cur, item) => { } if (item.field == 'status') { item.componentProps.disabled = true - } + } } if(cur == 'NUMBER'){ if (item.field == 'dataVerify') { @@ -328,13 +331,13 @@ const onChangeQG = (field, cur, item) => { } if (item.field == 'status') { item.componentProps.disabled = true - } + } } - }) - - + }) + + } - + /** 初始化 **/ onMounted(async () => { From 7472665f054ba00ef562d515b5615e98308bbc9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Wed, 22 May 2024 13:14:49 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E9=9A=90=E8=97=8F=E5=BA=93=E5=AD=98?= =?UTF-8?q?=E4=BD=99=E9=A2=9D=E6=A0=87=E7=AD=BE=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wms/inventoryManage/balance/index.vue | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/views/wms/inventoryManage/balance/index.vue b/src/views/wms/inventoryManage/balance/index.vue index e4a619623..beead66f4 100644 --- a/src/views/wms/inventoryManage/balance/index.vue +++ b/src/views/wms/inventoryManage/balance/index.vue @@ -133,17 +133,17 @@ const buttonBaseClick = (val, item) => { // 列表-操作按钮 const butttondata = [ - { - label: '标签信息', - name: 'bqxx', - hide: false, - type: 'primary', - icon: '', - color: '', - link: true, - float:'right', - hasPermi: '' - }, + // { + // label: '标签信息', + // name: 'bqxx', + // hide: false, + // type: 'primary', + // icon: '', + // color: '', + // link: true, + // float:'right', + // hasPermi: '' + // }, defaultButtons.mainListPointBtn(null), // 标签打印 // defaultButtons.mainListEditBtn({hasPermi:'wms:balance:update'}), // 编辑 // defaultButtons.mainListDeleteBtn({hasPermi:'wms:balance:delete'}), // 删除