Browse Source

库存初始化功能改进:建议去掉包装规格2,入库包装规格,是否线边字段及相关逻辑(与英泰功能需求不符) YT-594

intex_online20241111
叶佳兴 3 months ago
parent
commit
04cff1dc6d
  1. 16
      src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRecordMain/inventoryinitRecordMain.data.ts
  2. 478
      src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts

16
src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRecordMain/inventoryinitRecordMain.data.ts

@ -488,14 +488,14 @@ export const InventoryinitRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
width: 150
},
},
{
label: '货主代码',
field: 'ownerCode',
sort: 'custom',
table: {
width: 150
},
},
// {
// label: '货主代码',
// field: 'ownerCode',
// sort: 'custom',
// table: {
// width: 150
// },
// },
// {
// label: '替代批次',
// field: 'altBatch',

478
src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts

@ -543,28 +543,28 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
disabled: true
}
},
{
label: '包装数量',
field: 'packQty',
sort: 'custom',
table: {
width: 150
},
form: {
component: 'InputNumber',
componentProps: {
min: 1,
precision: 6
}
},
tableForm: {
type: 'InputNumber',
min: 1,
precision: 6
},
isTableForm: false,
isForm: false,
},
// {
// label: '包装数量',
// field: 'packQty',
// sort: 'custom',
// table: {
// width: 150
// },
// form: {
// component: 'InputNumber',
// componentProps: {
// min: 1,
// precision: 6
// }
// },
// tableForm: {
// type: 'InputNumber',
// min: 1,
// precision: 6
// },
// isTableForm: false,
// isForm: false,
// },
{
label: '包装规格',
field: 'packUnit',
@ -680,61 +680,61 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
isTableForm: false,
isForm: false,
},
{
label: '货主代码',
field: 'ownerCode',
sort: 'custom',
table: {
width: 150
},
tableForm: {
enterSearch: true,
isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择货主代码',
searchField: 'code',
searchTitle: '货主信息',
searchAllSchemas: Owner.allSchemas,
searchPage: OwnerApi.getOwnerPage,
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: 'true',
isFormModel: true
}], // 失去焦点校验参数
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
enterSearch: true,
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择货主代码',
searchField: 'code',
searchTitle: '货主信息',
searchAllSchemas: Owner.allSchemas,
searchPage: OwnerApi.getOwnerPage,
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: 'true',
isFormModel: true
}], // 失去焦点校验参数
}
}
},
// {
// label: '货主代码',
// field: 'ownerCode',
// sort: 'custom',
// table: {
// width: 150
// },
// tableForm: {
// enterSearch: true,
// isInpuFocusShow: true, // 开启查询弹窗
// searchListPlaceholder: '请选择货主代码',
// searchField: 'code',
// searchTitle: '货主信息',
// searchAllSchemas: Owner.allSchemas,
// searchPage: OwnerApi.getOwnerPage,
// searchCondition: [{
// key: 'available',
// value: 'TRUE',
// isMainValue: false
// }],
// verificationParams: [{
// key: 'code',
// action: '==',
// value: '',
// isMainValue: false,
// isSearch: 'true',
// isFormModel: true
// }], // 失去焦点校验参数
// },
// form: {
// // labelMessage: '信息提示说明!!!',
// componentProps: {
// enterSearch: true,
// isSearchList: true, // 开启查询弹窗
// searchListPlaceholder: '请选择货主代码',
// searchField: 'code',
// searchTitle: '货主信息',
// searchAllSchemas: Owner.allSchemas,
// searchPage: OwnerApi.getOwnerPage,
// searchCondition: [{
// key: 'available',
// value: 'TRUE',
// isMainValue: false
// }],
// verificationParams: [{
// key: 'code',
// action: '==',
// value: '',
// isMainValue: false,
// isSearch: 'true',
// isFormModel: true
// }], // 失去焦点校验参数
// }
// }
// },
{
label: '项目代码',
field: 'projectCode',
@ -832,7 +832,7 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
}
},
{
label: '包装规格1',
label: '默认包装规格',
field: 'packUnit',
isTable: true,
sort: 'custom',
@ -906,7 +906,7 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
}
},
{
label: '包装数量1',
label: '默认包装数量',
field: 'packQty',
sort: 'custom',
table: {
@ -919,168 +919,168 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
tableForm: {
}
},
{
label: '包装规格2',
field: 'secondPackUnit',
isTable: true,
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
enterSearch: true,
disabled: true,
isSearchList: true,
searchListPlaceholder: '请选择包装',
searchField: 'packUnit',
searchTitle: '物品包装信息',
searchAllSchemas: Itempackaging.allSchemas,
searchPage: ItemPackageApi.getItempackagingPage,
searchCondition: [
{
key: 'itemCode',
value: 'itemCode',
message: '请选择订单行',
isMainValue: true
},
{
key: 'available',
value: 'TRUE',
isMainValue: false
}
],
verificationParams: [{
key: 'packUnit',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
// {
// label: '包装规格2',
// field: 'secondPackUnit',
// isTable: true,
// sort: 'custom',
// table: {
// width: 150
// },
// form: {
// componentProps: {
// enterSearch: true,
// disabled: true,
// isSearchList: true,
// searchListPlaceholder: '请选择包装',
// searchField: 'packUnit',
// searchTitle: '物品包装信息',
// searchAllSchemas: Itempackaging.allSchemas,
// searchPage: ItemPackageApi.getItempackagingPage,
// searchCondition: [
// {
// key: 'itemCode',
// value: 'itemCode',
// message: '请选择订单行',
// isMainValue: true
// },
// {
// key: 'available',
// value: 'TRUE',
// isMainValue: false
// }
// ],
// verificationParams: [{
// key: 'packUnit',
// action: '==',
// value: '',
// isMainValue: false,
// isSearch: true,
// isFormModel: true,
// }], // 失去焦点校验参数
}
},
tableForm: {
enterSearch: true,
clearable: true,
disabled: true,
isInpuFocusShow: true,
searchListPlaceholder: '请选择包装',
searchField: 'packUnit',
searchTitle: '物品包装信息',
searchAllSchemas: Itempackaging.allSchemas,
searchPage: ItemPackageApi.getItempackagingPage,
searchCondition: [
{
key: 'itemCode',
value: 'itemCode',
message: '请选择订单行',
isTableRowValue: true,
isMainValue:false
},
{
key: 'available',
value: 'TRUE',
isMainValue: false
}],
verificationParams: [{
key: 'packUnit',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}
},
{
label: '包装数量2',
field: 'secondPackQty',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
}
},
tableForm: {
}
},
{
label: '入库存包装规格',
field: 'balancePackUnit',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
enterSearch: true,
disabled: true,
isSearchList: true,
searchListPlaceholder: '请选择包装',
searchField: 'packUnit',
searchTitle: '物品包装信息',
searchAllSchemas: Itempackaging.allSchemas,
searchPage: ItemPackageApi.getItempackagingPage,
searchCondition: [
{
key: 'itemCode',
value: 'itemCode',
message: '请选择订单行',
isMainValue: true
},
{
key: 'available',
value: 'TRUE',
isMainValue: false
}
],
verificationParams: [{
key: 'packUnit',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
// }
// },
// tableForm: {
// enterSearch: true,
// clearable: true,
// disabled: true,
// isInpuFocusShow: true,
// searchListPlaceholder: '请选择包装',
// searchField: 'packUnit',
// searchTitle: '物品包装信息',
// searchAllSchemas: Itempackaging.allSchemas,
// searchPage: ItemPackageApi.getItempackagingPage,
// searchCondition: [
// {
// key: 'itemCode',
// value: 'itemCode',
// message: '请选择订单行',
// isTableRowValue: true,
// isMainValue:false
// },
// {
// key: 'available',
// value: 'TRUE',
// isMainValue: false
// }],
// verificationParams: [{
// key: 'packUnit',
// action: '==',
// value: '',
// isMainValue: false,
// isSearch: true,
// isFormModel: true,
// }], // 失去焦点校验参数
// }
// },
// {
// label: '包装数量2',
// field: 'secondPackQty',
// sort: 'custom',
// table: {
// width: 150
// },
// form: {
// componentProps: {
// }
// },
// tableForm: {
// }
// },
// {
// label: '入库存包装规格',
// field: 'balancePackUnit',
// sort: 'custom',
// table: {
// width: 150
// },
// form: {
// componentProps: {
// enterSearch: true,
// disabled: true,
// isSearchList: true,
// searchListPlaceholder: '请选择包装',
// searchField: 'packUnit',
// searchTitle: '物品包装信息',
// searchAllSchemas: Itempackaging.allSchemas,
// searchPage: ItemPackageApi.getItempackagingPage,
// searchCondition: [
// {
// key: 'itemCode',
// value: 'itemCode',
// message: '请选择订单行',
// isMainValue: true
// },
// {
// key: 'available',
// value: 'TRUE',
// isMainValue: false
// }
// ],
// verificationParams: [{
// key: 'packUnit',
// action: '==',
// value: '',
// isMainValue: false,
// isSearch: true,
// isFormModel: true,
// }], // 失去焦点校验参数
}
},
tableForm: {
enterSearch: true,
disabled: true,
isInpuFocusShow: true,
searchListPlaceholder: '请选择包装',
searchField: 'packUnit',
searchTitle: '物品包装信息',
searchAllSchemas: Itempackaging.allSchemas,
searchPage: ItemPackageApi.getItempackagingPage,
searchCondition: [
{
key: 'itemCode',
value: 'itemCode',
message: '请选择订单行',
isTableRowValue: true,
isMainValue:false
},
{
key: 'available',
value: 'TRUE',
isMainValue: false
}],
verificationParams: [{
key: 'packUnit',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}
},
// }
// },
// tableForm: {
// enterSearch: true,
// disabled: true,
// isInpuFocusShow: true,
// searchListPlaceholder: '请选择包装',
// searchField: 'packUnit',
// searchTitle: '物品包装信息',
// searchAllSchemas: Itempackaging.allSchemas,
// searchPage: ItemPackageApi.getItempackagingPage,
// searchCondition: [
// {
// key: 'itemCode',
// value: 'itemCode',
// message: '请选择订单行',
// isTableRowValue: true,
// isMainValue:false
// },
// {
// key: 'available',
// value: 'TRUE',
// isMainValue: false
// }],
// verificationParams: [{
// key: 'packUnit',
// action: '==',
// value: '',
// isMainValue: false,
// isSearch: true,
// isFormModel: true,
// }], // 失去焦点校验参数
// }
// },
{
label: '是否线边',
field: 'dataTypeLine',

Loading…
Cancel
Save