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 width: 150
}, },
}, },
{ // {
label: '货主代码', // label: '货主代码',
field: 'ownerCode', // field: 'ownerCode',
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150 // width: 150
}, // },
}, // },
// { // {
// label: '替代批次', // label: '替代批次',
// field: 'altBatch', // field: 'altBatch',

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

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

Loading…
Cancel
Save