Browse Source

生成托和箱

hella_online_20241011
zhaoxuebing 2 months ago
parent
commit
85737408b7
  1. 2
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue
  2. 80
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts

2
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue

@ -218,7 +218,7 @@ const searchTableSuccessLabel = (formField, searchField, val, formRef, type, row
row['packUnit'] = val[0]['packUnit']
row['packQty'] = val[0]['packQty']
}
if (formField == 'secondPackUnit') {
if (formField == 'secondPackUnit' || formField == 'secondPackQty') {
row['secondPackUnit'] = val[0]['packUnit']
row['secondPackQty'] = val[0]['packQty']
}

80
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts

@ -2351,7 +2351,7 @@ export const PurchasereceiptRequestDetailLabel = useCrudSchemas(reactive<CrudSch
}
},
{
label: '包装数量',
label: '包装数量1',
field: 'packQty',
sort: 'custom',
table: {
@ -2409,7 +2409,7 @@ export const PurchasereceiptRequestDetailLabel = useCrudSchemas(reactive<CrudSch
isForm: true
},
{
label: '包装规格',
label: '包装规格1',
field: 'packUnit',
dictClass: 'string',
isTable: true,
@ -2426,6 +2426,82 @@ export const PurchasereceiptRequestDetailLabel = useCrudSchemas(reactive<CrudSch
isTableForm: true,
isForm: true
},
{
label: '包装数量2',
field: 'secondPackQty',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled: true,
isSearchList: true,
searchListPlaceholder: '请选择包装',
searchField: 'packQty',
searchTitle: '物品包装信息',
searchAllSchemas: Itempackaging.allSchemas,
searchPage: ItemPackageApi.getItempackagingPageBySupplierdeliver,
searchCondition: [
{
key: 'itemCode',
value: 'itemCode',
message: '请选择订单行',
isTableRowValue: true, //查询当前searchTable表中行数据的值
isMainValue: false
},
{
key: 'available',
value: 'TRUE',
isMainValue: false
}
]
}
},
tableForm: {
disabled: true,
isInpuFocusShow: true,
searchListPlaceholder: '请选择包装',
searchField: 'packQty',
searchTitle: '物品包装信息',
searchAllSchemas: Itempackaging.allSchemas,
searchPage: ItemPackageApi.getItempackagingPageBySupplierdeliver,
searchCondition: [
{
key: 'itemCode',
value: 'itemCode',
message: '请选择订单行',
isTableRowValue: true, //查询当前searchTable表中行数据的值
isMainValue: false
},
{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
},
isTableForm: true,
isForm: true
},
{
label: '包装规格2',
field: 'secondPackUnit',
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150,
componentProps: {
disabled: true
}
},
tableForm:{
disabled:true
},
isTableForm: true,
isForm: true
},
{
label: '供应商计量数量',
field: 'supplierPackQty',

Loading…
Cancel
Save