|
|
@ -464,6 +464,17 @@ export const StockupDetailRequestRules = reactive({ |
|
|
|
|
|
|
|
// //子表
|
|
|
|
export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '单据号', |
|
|
|
field: 'number', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
isForm: false, |
|
|
|
isTableForm: false, |
|
|
|
table: { |
|
|
|
width: 100 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '包装号', |
|
|
|
field: 'packingNumber', |
|
|
@ -511,6 +522,9 @@ export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
label: '器具号', |
|
|
|
field: 'containerNumber', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 100 |
|
|
|
}, |
|
|
|
isSearch: true, |
|
|
|
}, |
|
|
|
{ |
|
|
@ -535,7 +549,7 @@ export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
width: 120 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
disabled: true, |
|
|
@ -547,82 +561,14 @@ export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '到货主代码', |
|
|
|
field: 'toOwnerCode', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
isTableForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '到库位代码', |
|
|
|
field: 'toLocationCode', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
tableForm:{ |
|
|
|
isInpuFocusShow: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择库位代码', |
|
|
|
searchField: 'location', |
|
|
|
searchTitle: '库位基础信息', |
|
|
|
searchAllSchemas: Location.allSchemas, |
|
|
|
searchPage: locationApi.getLocationPage, |
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
isSearchList: true, |
|
|
|
searchListPlaceholder: '请选择库位代码', |
|
|
|
searchField: 'location', |
|
|
|
searchTitle: '库位基础信息', |
|
|
|
searchAllSchemas: Location.allSchemas, |
|
|
|
searchPage: locationApi.getLocationPage, |
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '主表ID', |
|
|
|
field: 'masterId', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
isTableForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '单据号', |
|
|
|
field: 'number', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
isTableForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建时间', |
|
|
|
field: 'createTime', |
|
|
|
sort: 'custom', |
|
|
|
formatter: dateFormatter, |
|
|
|
isSearch: true, |
|
|
|
search: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
valueFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
type: 'daterange', |
|
|
|
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] |
|
|
|
} |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '物品代码', |
|
|
|
field: 'itemCode', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
table: { |
|
|
|
width: 120 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
disabled: true |
|
|
|
}, |
|
|
@ -638,6 +584,9 @@ export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
isTableForm: false, |
|
|
|
table: { |
|
|
|
width: 120 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '物品描述1', |
|
|
@ -645,6 +594,9 @@ export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
isTableForm: false, |
|
|
|
table: { |
|
|
|
width: 120 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '物品描述2', |
|
|
@ -652,6 +604,9 @@ export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
isTableForm: false, |
|
|
|
table: { |
|
|
|
width: 120 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '项目代码', |
|
|
@ -659,6 +614,9 @@ export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
isTableForm: false, |
|
|
|
table: { |
|
|
|
width: 120 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '数量', |
|
|
@ -685,6 +643,43 @@ export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '到库位代码', |
|
|
|
field: 'toLocationCode', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
table: { |
|
|
|
width: 120 |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
isInpuFocusShow: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择库位代码', |
|
|
|
searchField: 'location', |
|
|
|
searchTitle: '库位基础信息', |
|
|
|
searchAllSchemas: Location.allSchemas, |
|
|
|
searchPage: locationApi.getLocationPage, |
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
isSearchList: true, |
|
|
|
searchListPlaceholder: '请选择库位代码', |
|
|
|
searchField: 'location', |
|
|
|
searchTitle: '库位基础信息', |
|
|
|
searchAllSchemas: Location.allSchemas, |
|
|
|
searchPage: locationApi.getLocationPage, |
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '备注', |
|
|
|
field: 'remark', |
|
|
@ -692,11 +687,23 @@ export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isSearch: true, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '从货主代码', |
|
|
|
field: 'fromOwnerCode', |
|
|
|
label: '创建时间', |
|
|
|
field: 'createTime', |
|
|
|
sort: 'custom', |
|
|
|
formatter: dateFormatter, |
|
|
|
isSearch: true, |
|
|
|
isTableForm: false, |
|
|
|
table: { |
|
|
|
width: 120 |
|
|
|
}, |
|
|
|
search: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
valueFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
type: 'daterange', |
|
|
|
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] |
|
|
|
} |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
}, |
|
|
|
])) |
|
|
|
|
|
|
|