|
|
@ -17,53 +17,53 @@ const { t } = useI18n() // 国际化 |
|
|
|
* @returns {Array} 生产线物料关系 |
|
|
|
*/ |
|
|
|
export const Productionlineitem = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '完工收货库位', |
|
|
|
field: 'fgLocationCode', |
|
|
|
isSearch: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150, |
|
|
|
fixed: 'left' |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
isSearchList: true, |
|
|
|
searchListPlaceholder: '请选择库位代码', |
|
|
|
searchField: 'code', |
|
|
|
searchTitle: '库位信息', |
|
|
|
searchAllSchemas: Location.allSchemas, |
|
|
|
searchPage: LocationApi.getLocationPage, |
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '原料库位', |
|
|
|
field: 'rawLocationCode', |
|
|
|
isSearch: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150, |
|
|
|
fixed: 'left' |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
isSearchList: true, |
|
|
|
searchListPlaceholder: '请选择库位代码', |
|
|
|
searchField: 'code', |
|
|
|
searchTitle: '库位信息', |
|
|
|
searchAllSchemas: Location.allSchemas, |
|
|
|
searchPage: LocationApi.getLocationPage |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// label: '完工收货库位',
|
|
|
|
// field: 'fgLocationCode',
|
|
|
|
// isSearch: true,
|
|
|
|
// sort: 'custom',
|
|
|
|
// table: {
|
|
|
|
// width: 150,
|
|
|
|
// fixed: 'left'
|
|
|
|
// },
|
|
|
|
// form: {
|
|
|
|
// // labelMessage: '信息提示说明!!!',
|
|
|
|
// componentProps: {
|
|
|
|
// isSearchList: true,
|
|
|
|
// searchListPlaceholder: '请选择库位代码',
|
|
|
|
// searchField: 'code',
|
|
|
|
// searchTitle: '库位信息',
|
|
|
|
// searchAllSchemas: Location.allSchemas,
|
|
|
|
// searchPage: LocationApi.getLocationPage,
|
|
|
|
// searchCondition: [{
|
|
|
|
// key: 'available',
|
|
|
|
// value: 'TRUE',
|
|
|
|
// isMainValue: false
|
|
|
|
// }]
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: '原料库位',
|
|
|
|
// field: 'rawLocationCode',
|
|
|
|
// isSearch: true,
|
|
|
|
// sort: 'custom',
|
|
|
|
// table: {
|
|
|
|
// width: 150,
|
|
|
|
// fixed: 'left'
|
|
|
|
// },
|
|
|
|
// form: {
|
|
|
|
// // labelMessage: '信息提示说明!!!',
|
|
|
|
// componentProps: {
|
|
|
|
// isSearchList: true,
|
|
|
|
// searchListPlaceholder: '请选择库位代码',
|
|
|
|
// searchField: 'code',
|
|
|
|
// searchTitle: '库位信息',
|
|
|
|
// searchAllSchemas: Location.allSchemas,
|
|
|
|
// searchPage: LocationApi.getLocationPage
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
{ |
|
|
|
label: '产线代码' , |
|
|
|
field: 'productionLineCode', |
|
|
@ -237,9 +237,9 @@ export const Productionlineitem = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
|
|
|
|
//表单校验
|
|
|
|
export const ProductionlineitemRules = reactive({ |
|
|
|
fgLocationCode: [ |
|
|
|
{ required: true, message: '请输入完工收货库位', trigger: 'change' } |
|
|
|
], |
|
|
|
// fgLocationCode: [
|
|
|
|
// { required: true, message: '请输入完工收货库位', trigger: 'change' }
|
|
|
|
// ],
|
|
|
|
productionLineCode: [ |
|
|
|
{ required: true, message: '请输入产线代码', trigger: 'change' } |
|
|
|
], |
|
|
|