Browse Source

修改客户月台前端样式

master_hella_20240701
chenfang 5 months ago
parent
commit
871dd0e446
  1. 71
      src/views/wms/basicDataManage/customerManage/customerdock/customerdock.data.ts
  2. 3
      src/views/wms/basicDataManage/customerManage/customerdock/index.vue
  3. 2
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts

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

@ -26,27 +26,8 @@ export const Customerdock = useCrudSchemas(reactive<CrudSchema[]>([
field: 'code', field: 'code',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150, width: 150
fixed: 'left'
}, },
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择月台代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '月台基础信息', // 查询弹窗标题
searchAllSchemas: Dock.allSchemas, // 查询弹窗所需类
searchPage: DockApi.getDockPage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',
action: '==',
isSearch: true,
isMainValue: false
}]
}
}
}, },
{ {
label: '客户代码', label: '客户代码',
@ -130,6 +111,17 @@ export const Customerdock = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true,
searchListPlaceholder: '请选择从仓库代码',
searchField: 'code',
searchTitle: '仓库基础信息',
searchAllSchemas: Warehouse.allSchemas,
searchPage: WarehouseApi.getWarehousePage,
}
}
}, },
{ {
label: '默认库位', label: '默认库位',
@ -142,20 +134,25 @@ export const Customerdock = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
// // labelMessage: '信息提示说明!!!', // // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
// disabled:true disabled:true,
// isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
// searchListPlaceholder: '请选择库位代码', // 输入框占位文本 searchListPlaceholder: '请选择库位代码', // 输入框占位文本
// searchField: 'code', // 查询弹窗赋值字段 searchField: 'code', // 查询弹窗赋值字段
// searchTitle: '库位基础信息', // 查询弹窗标题 searchTitle: '库位基础信息', // 查询弹窗标题
// searchAllSchemas: Location.allSchemas, // 查询弹窗所需类 searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
// searchPage: LocationApi.getLocationPage, // 查询弹窗所需分页方法 searchPage: LocationApi.selectConfigToLocation, // 查询弹窗所需分页方法
// searchCondition: [{ searchCondition: [{
// key: 'available', key: 'available',
// value: 'TRUE', value: 'TRUE',
// action: '==', isSearch: true,
// isSearch: true, isMainValue: false
// isMainValue: false },
// }] {
key: 'warehouseCode',
value: 'warehouseCode',
message: '请选择仓库',
isMainValue: true
}]
} }
} }
}, },
@ -313,6 +310,12 @@ export const CustomerdockRules = reactive({
customerCode: [ customerCode: [
{ required: true, message: '请输入客户代码', trigger: 'blur' } { required: true, message: '请输入客户代码', trigger: 'blur' }
], ],
warehouseCode: [
{ required: true, message: '请选择仓库', trigger: 'blur' }
],
defaultLocationCode: [
{ required: true, message: '请选择默认库位', trigger: 'blur' }
],
available: [ available: [
{ required: true, message: '请选择是否可用', trigger: 'change' } { required: true, message: '请选择是否可用', trigger: 'change' }
], ],

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

@ -156,15 +156,12 @@ const openForm = (type: string, row?: any) => {
} }
if (item.field == 'customerCode') { if (item.field == 'customerCode') {
item.componentProps.disabled = true item.componentProps.disabled = true
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
item.componentProps.isSearchList = true
} }
if (item.field == 'customerCode') { if (item.field == 'customerCode') {
item.componentProps.disabled = false item.componentProps.disabled = false

2
src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts

@ -112,7 +112,7 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
searchField: 'code', // 查询弹窗赋值字段 searchField: 'code', // 查询弹窗赋值字段
searchTitle: '客户月台信息', // 查询弹窗标题 searchTitle: '客户月台信息', // 查询弹窗标题
searchAllSchemas: Customerdock.allSchemas, // 查询弹窗所需类 searchAllSchemas: Customerdock.allSchemas, // 查询弹窗所需类
searchPage: CustomerdockApi.pageCustomerCodeToCustomerDock, // 查询弹窗所需分页方法 searchPage: CustomerdockApi.getCustomerdockPage, // 查询弹窗所需分页方法
searchCondition: [{ searchCondition: [{
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',

Loading…
Cancel
Save