|
@ -112,40 +112,7 @@ export const SparePartsInLocationMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
|
|
|
label: '库位编号', |
|
|
|
|
|
field: 'locationCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
form: { |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '请选择库位编号', // 输入框占位文本
|
|
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
|
|
searchTitle: '库位信息', // 查询弹窗标题
|
|
|
|
|
|
searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
|
|
|
|
|
|
searchPage: LocationApi.getLocationPage, // 查询弹窗所需分页方法
|
|
|
|
|
|
searchCondition: [ |
|
|
|
|
|
{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
} |
|
|
|
|
|
] |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '库区编号', |
|
|
|
|
|
field: 'areaCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
form: { |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
disabled: true |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
label: '备注', |
|
|
label: '备注', |
|
@ -187,6 +154,8 @@ export const SparePartsInLocationMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const SparePartsInLocationDetailRules = reactive({ |
|
|
export const SparePartsInLocationDetailRules = reactive({ |
|
|
number: [required], |
|
|
number: [required], |
|
|
masterId: [required], |
|
|
masterId: [required], |
|
|
|
|
|
locationCode: [required], |
|
|
|
|
|
areaCode: [required], |
|
|
sparePartsCode: [required], |
|
|
sparePartsCode: [required], |
|
|
applyQty: [required], |
|
|
applyQty: [required], |
|
|
concurrencyStamp: [required], |
|
|
concurrencyStamp: [required], |
|
@ -228,21 +197,18 @@ export const SparePartsInLocationDetail = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
isTableForm:false |
|
|
isTableForm:false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '备件编号', |
|
|
label: '库位编号', |
|
|
field: 'sparePartsCode', |
|
|
field: 'locationCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
isSearch: false, |
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
form: { |
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
|
|
componentProps: { |
|
|
componentProps: { |
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
searchListPlaceholder: '请选择备件编号', // 输入框占位文本
|
|
|
searchListPlaceholder: '请选择库位编号', // 输入框占位文本
|
|
|
searchField: 'itemNumber', // 查询弹窗赋值字段
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
searchTitle: '备件信息', // 查询弹窗标题
|
|
|
searchTitle: '库位信息', // 查询弹窗标题
|
|
|
searchAllSchemas: ItemAccounts.allSchemas, // 查询弹窗所需类
|
|
|
searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
|
|
|
searchPage: ItemAccountsApi.getItemAccountsPage, // 查询弹窗所需分页方法
|
|
|
searchPage: LocationApi.getLocationPage, // 查询弹窗所需分页方法
|
|
|
searchCondition: [ |
|
|
searchCondition: [ |
|
|
{ |
|
|
{ |
|
|
key: 'available', |
|
|
key: 'available', |
|
@ -257,8 +223,8 @@ export const SparePartsInLocationDetail = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
searchListPlaceholder: '请选择备件编号', // 输入框占位文本
|
|
|
searchListPlaceholder: '请选择备件编号', // 输入框占位文本
|
|
|
searchField: 'itemNumber', // 查询弹窗赋值字段
|
|
|
searchField: 'itemNumber', // 查询弹窗赋值字段
|
|
|
searchTitle: '备件信息', // 查询弹窗标题
|
|
|
searchTitle: '备件信息', // 查询弹窗标题
|
|
|
searchAllSchemas: ItemAccounts.allSchemas, // 查询弹窗所需类
|
|
|
searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
|
|
|
searchPage: ItemAccountsApi.getItemAccountsPage, // 查询弹窗所需分页方法
|
|
|
searchPage: LocationApi.getLocationPage, // 查询弹窗所需分页方法
|
|
|
searchCondition: [ |
|
|
searchCondition: [ |
|
|
{ |
|
|
{ |
|
|
key: 'available', |
|
|
key: 'available', |
|
@ -268,6 +234,36 @@ export const SparePartsInLocationDetail = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '库区编号', |
|
|
|
|
|
field: 'areaCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
form: { |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
disabled: true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
disabled: true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '备件编号', |
|
|
|
|
|
field: 'sparePartsCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
disabled: true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
disabled: true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '库存数量', |
|
|
label: '库存数量', |
|
|
field: 'currentQty', |
|
|
field: 'currentQty', |
|
@ -321,7 +317,8 @@ export const SparePartsInLocationDetail = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
width: 150, |
|
|
width: 150, |
|
|
fixed: 'right' |
|
|
fixed: 'right' |
|
|
}, |
|
|
}, |
|
|
isTableForm:false |
|
|
isTableForm:false, |
|
|
|
|
|
isTable:false |
|
|
} |
|
|
} |
|
|
])) |
|
|
])) |
|
|
|
|
|
|
|
|