|
@ -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' } |
|
|
], |
|
|
], |
|
|