Browse Source

修复

master_hella_20240701
赵雪冰 8 months ago
parent
commit
84410026d4
  1. 25
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue
  2. 48
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/productreceiptAssembleRequestMain.data.ts

25
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue

@ -201,6 +201,9 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
if (formField == 'secondPackUnit') { if (formField == 'secondPackUnit') {
row['secondPackUnit'] = val[0]['packUnit'] row['secondPackUnit'] = val[0]['packUnit']
row['secondPackQty'] = val[0]['packQty'] row['secondPackQty'] = val[0]['packQty']
}else if(formField == 'packUnit'){
row['packUnit'] = val[0]['packUnit']
row['packQty'] = val[0]['packQty']
}else if (formField == 'itemCode') { }else if (formField == 'itemCode') {
row['uom'] = val[0]['uom'] row['uom'] = val[0]['uom']
row['produceDate'] = dayjs().valueOf() row['produceDate'] = dayjs().valueOf()
@ -616,18 +619,16 @@ const searchFormClick = (searchData) => {
// //
const submitFormLabel = async (formType, data) => { const submitFormLabel = async (formType, data) => {
try { try {
detatableData.tableList.forEach(async (item) => { console.log("aaaaa",data);
// data.subList=detatableData.tableList
item.packUnit = null console.log("bbbbb",data);
item.inOfOut = 'in' await ProductreceiptRequestMainApi.productCreateLabel(data).then(res => {
await PackageApi.createPackageLabel(item).then(res => { isCreateLabel.value = true
isCreateLabel.value = true message.success('创建标签成功')
message.success('创建标签成功') }).catch(err => {
}).catch(err => { isCreateLabel.value = false
isCreateLabel.value = false console.log(err)
console.log(err) message.error('创建标签失败')
message.error('创建标签失败')
})
}) })
} finally { } finally {
formLabelRef.value.formLoading = false formLabelRef.value.formLoading = false

48
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/productreceiptAssembleRequestMain.data.ts

@ -1781,11 +1781,52 @@ export const ProductreceiptRequestLabel = useCrudSchemas(reactive<CrudSchema[]>(
field: 'packUnit', field: 'packUnit',
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 150,
componentProps: {
disabled: true,
isSearchList: true,
searchListPlaceholder: '请选择包装',
searchField: 'packUnit',
searchTitle: '物品包装信息',
searchAllSchemas: Itempackaging.allSchemas,
searchPage: ItemPackageApi.getItempackagingPageByProductreceipt,
searchCondition: [
{
key: 'itemCode',
value: 'itemCode',
message: '请选择订单行',
isMainValue: true
},
{
key: 'available',
value: 'TRUE',
isMainValue: false
}
]
}
}, },
tableForm: { tableForm: {
disabled: true disabled: true,
}, isInpuFocusShow: true,
searchListPlaceholder: '请选择包装',
searchField: 'packUnit',
searchTitle: '物品包装信息',
searchAllSchemas: Itempackaging.allSchemas,
searchPage: ItemPackageApi.getItempackagingPageByProductreceipt,
searchCondition: [
{
key: 'itemCode',
value: 'itemCode',
message: '请选择订单行',
isMainValue: true
},
{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}
}, },
{ {
label: '包装数量1', label: '包装数量1',
@ -1806,7 +1847,6 @@ export const ProductreceiptRequestLabel = useCrudSchemas(reactive<CrudSchema[]>(
{ {
label: '包装规格2', label: '包装规格2',
field: 'secondPackUnit', field: 'secondPackUnit',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150, width: 150,

Loading…
Cancel
Save