From 7f0a3c853366d6bf13d4a737cb5807a3fdd1cdb6 Mon Sep 17 00:00:00 2001 From: chenfang Date: Mon, 22 Jan 2024 15:21:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=89=A9=E6=96=99=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../customerManage/customeritem/customeritem.data.ts | 8 +++++++- .../basicDataManage/customerManage/customeritem/index.vue | 4 ++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts b/src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts index db261dc08..b3e7f1d7e 100644 --- a/src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts +++ b/src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts @@ -85,6 +85,11 @@ export const Customeritem = useCrudSchemas(reactive([ table: { width: 150 }, + form: { + componentProps:{ + disabled: true + } + } }, { label: '转换率', @@ -183,7 +188,8 @@ export const Customeritem = useCrudSchemas(reactive([ value: 'TRUE', componentProps: { inactiveValue: 'FALSE', - activeValue: 'TRUE' + activeValue: 'TRUE', + disabled: true } }, isSearch: true diff --git a/src/views/wms/basicDataManage/customerManage/customeritem/index.vue b/src/views/wms/basicDataManage/customerManage/customeritem/index.vue index bfbb6924a..4078b7a75 100644 --- a/src/views/wms/basicDataManage/customerManage/customeritem/index.vue +++ b/src/views/wms/basicDataManage/customerManage/customeritem/index.vue @@ -179,6 +179,10 @@ const formsSuccess = async (formType,data) => { const searchTableSuccess = (formField, searchField, val, formRef) => { nextTick(() => { const setV = {} + if(formField == 'itemCode'){ + console.log(val); + setV['cusotmerUom'] = val[0]['uom'] + } setV[formField] = val[0][searchField] formRef.setValues(setV) })