From a07bda0f35b985ce50b94ffcdcb5ea3e6c0d8d43 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Fri, 14 Jun 2024 09:06:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E6=9C=88=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../customerdock/customerdock.data.ts | 1 + .../customerManage/customerdock/index.vue | 25 +++++++++++-------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/src/views/wms/basicDataManage/customerManage/customerdock/customerdock.data.ts b/src/views/wms/basicDataManage/customerManage/customerdock/customerdock.data.ts index 50709ae3a..11ceb2ccb 100644 --- a/src/views/wms/basicDataManage/customerManage/customerdock/customerdock.data.ts +++ b/src/views/wms/basicDataManage/customerManage/customerdock/customerdock.data.ts @@ -39,6 +39,7 @@ export const Customerdock = useCrudSchemas(reactive([ form: { // labelMessage: '信息提示说明!!!', componentProps: { + enterSearch:true, isSearchList: true, // 开启查询弹窗 searchListPlaceholder: '请选择客户代码', // 输入框占位文本 searchField: 'code', // 查询弹窗赋值字段 diff --git a/src/views/wms/basicDataManage/customerManage/customerdock/index.vue b/src/views/wms/basicDataManage/customerManage/customerdock/index.vue index 06a9aaea8..76c7d12aa 100644 --- a/src/views/wms/basicDataManage/customerManage/customerdock/index.vue +++ b/src/views/wms/basicDataManage/customerManage/customerdock/index.vue @@ -150,23 +150,26 @@ const basicFormRef = ref() const openForm = (type: string, row?: any) => { if(type == "update"){ Customerdock.allSchemas.formSchema.forEach((item) => { - if (item.field == 'code') { - item.componentProps.disabled = true - item.componentProps.isSearchList = false - } - if (item.field == 'customerCode') { - item.componentProps.disabled = true - } - }) + if (item.field == 'code') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + if (item.field == 'customerCode') { + item.componentProps.disabled = true + item.componentProps.enterSearch = false + item.componentProps.isSearchList = false + } + }) }else { Customerdock.allSchemas.formSchema.forEach((item) => { if (item.field == 'code') { item.componentProps.disabled = false } if (item.field == 'customerCode') { - item.componentProps.disabled = false - item.componentProps.isSearchList = true - } + item.componentProps.disabled = false + item.componentProps.enterSearch = true + item.componentProps.isSearchList = true + } }) } basicFormRef.value.open(type, row)