Browse Source

修改客户月台前端样式

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

Loading…
Cancel
Save