Browse Source

客户月台

master_hella_20240701
wangyufei 5 months ago
parent
commit
a07bda0f35
  1. 1
      src/views/wms/basicDataManage/customerManage/customerdock/customerdock.data.ts
  2. 23
      src/views/wms/basicDataManage/customerManage/customerdock/index.vue

1
src/views/wms/basicDataManage/customerManage/customerdock/customerdock.data.ts

@ -39,6 +39,7 @@ export const Customerdock = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
enterSearch:true,
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择客户代码', // 输入框占位文本 searchListPlaceholder: '请选择客户代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段 searchField: 'code', // 查询弹窗赋值字段

23
src/views/wms/basicDataManage/customerManage/customerdock/index.vue

@ -151,22 +151,25 @@ const openForm = (type: string, row?: any) => {
if(type == "update"){ if(type == "update"){
Customerdock.allSchemas.formSchema.forEach((item) => { Customerdock.allSchemas.formSchema.forEach((item) => {
if (item.field == 'code') { if (item.field == 'code') {
item.componentProps.disabled = true item.componentProps.disabled = true
item.componentProps.isSearchList = false item.componentProps.isSearchList = false
} }
if (item.field == 'customerCode') { if (item.field == 'customerCode') {
item.componentProps.disabled = true item.componentProps.disabled = true
} item.componentProps.enterSearch = false
}) item.componentProps.isSearchList = false
}
})
}else { }else {
Customerdock.allSchemas.formSchema.forEach((item) => { Customerdock.allSchemas.formSchema.forEach((item) => {
if (item.field == 'code') { if (item.field == 'code') {
item.componentProps.disabled = false item.componentProps.disabled = false
} }
if (item.field == 'customerCode') { if (item.field == 'customerCode') {
item.componentProps.disabled = false item.componentProps.disabled = false
item.componentProps.isSearchList = true item.componentProps.enterSearch = true
} item.componentProps.isSearchList = true
}
}) })
} }
basicFormRef.value.open(type, row) basicFormRef.value.open(type, row)

Loading…
Cancel
Save