|
|
@ -1,5 +1,7 @@ |
|
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
|
import { dateFormatter, dateFormatter2 } from '@/utils/formatTime' |
|
|
|
import * as CustomerApi from '@/api/wms/customer' |
|
|
|
import { Customer } from '../../../basicDataManage/customerManage/customer/customer.data' |
|
|
|
import * as LocationApi from '@/api/wms/location' |
|
|
|
import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data' |
|
|
|
|
|
|
@ -640,40 +642,92 @@ export const DeliverRecordDetailRules = reactive({ |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
// export const ExtendColumn = useCrudSchemas(
|
|
|
|
// reactive<CrudSchema[]>([
|
|
|
|
// {
|
|
|
|
// label: '从库位',
|
|
|
|
// field: 'fromLocationCode',
|
|
|
|
// sort: 'custom',
|
|
|
|
// table: {
|
|
|
|
// colProps: {
|
|
|
|
// span: 24
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
// form: {
|
|
|
|
// // labelMessage: '信息提示说明!!!',
|
|
|
|
// componentProps: {
|
|
|
|
// isSearchList: true, // 开启查询弹窗
|
|
|
|
// searchListPlaceholder: '请选择库位编号', // 输入框占位文本
|
|
|
|
// searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
// searchTitle: '库位信息', // 查询弹窗标题
|
|
|
|
// searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
|
|
|
|
// searchPage: LocationApi.getLocationListByBusinesstype, // 查询弹窗所需分页方法
|
|
|
|
// searchCondition: [
|
|
|
|
// {
|
|
|
|
// key: 'isIn',
|
|
|
|
// value: false,
|
|
|
|
// isMainValue: false
|
|
|
|
// },{
|
|
|
|
// key: 'businessType',
|
|
|
|
// value: 'Deliver',
|
|
|
|
// isMainValue: false
|
|
|
|
// }
|
|
|
|
// ]
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
// isSearch: true
|
|
|
|
// },
|
|
|
|
|
|
|
|
// ])
|
|
|
|
// )
|
|
|
|
|
|
|
|
// //表单校验
|
|
|
|
// export const ExtendColumnRules = reactive({
|
|
|
|
// fromLocationCode: [
|
|
|
|
// { required: true, message: '请选择从库位', trigger: 'change' }
|
|
|
|
// ],
|
|
|
|
// })
|
|
|
|
|
|
|
|
export const ExtendColumn = useCrudSchemas( |
|
|
|
reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '从库位', |
|
|
|
field: 'fromLocationCode', |
|
|
|
label: '客户代码', |
|
|
|
field: 'customerCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
colProps: { |
|
|
|
span: 24 |
|
|
|
} |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
enterSearch: true, |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择库位编号', // 输入框占位文本
|
|
|
|
searchListPlaceholder: '请选择客户代码', // 输入框占位文本
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '库位信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: LocationApi.getLocationListByBusinesstype, // 查询弹窗所需分页方法
|
|
|
|
searchTitle: '客户信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Customer.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: CustomerApi.getCustomerPage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [ |
|
|
|
{ |
|
|
|
key: 'isIn', |
|
|
|
value: false, |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
},{ |
|
|
|
key: 'businessType', |
|
|
|
value: 'Deliver', |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'type', |
|
|
|
value: 'DEFAULT', |
|
|
|
isMainValue: false |
|
|
|
} |
|
|
|
] |
|
|
|
], |
|
|
|
verificationParams: [ |
|
|
|
{ |
|
|
|
key: 'code', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: true, |
|
|
|
isFormModel: true |
|
|
|
} |
|
|
|
] // 失去焦点校验参数
|
|
|
|
} |
|
|
|
}, |
|
|
|
isSearch: true |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
]) |
|
|
@ -681,7 +735,7 @@ export const ExtendColumn = useCrudSchemas( |
|
|
|
|
|
|
|
//表单校验
|
|
|
|
export const ExtendColumnRules = reactive({ |
|
|
|
fromLocationCode: [ |
|
|
|
{ required: true, message: '请选择从库位', trigger: 'change' } |
|
|
|
customerCode: [ |
|
|
|
{ required: true, message: '请选择客户代码', trigger: 'change' } |
|
|
|
], |
|
|
|
}) |
|
|
|