Browse Source

修复

master_hella_20240701
zhaoxuebing 5 months ago
parent
commit
af518b36ce
  1. 16
      src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue
  2. 10
      src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts

16
src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue

@ -129,6 +129,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
}
} else {
const setV = {}
setV[formField] = val[0][searchField]
//setV['supplierCode'] = val[0]['supplierCode']
formRef.setValues(setV)
@ -139,6 +140,21 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
nextTick(() => {
const setV = {}
if(formField=='itemCode'){
//
setV['uom'] = val[0]['uom']
}else if(formField=='packUnit'){
//1
setV['packUnit'] = val[0]['packUnit']
setV['packQty'] = val[0]['packQty']
}else if(formField=='secondPackUnit'){
//2
setV['secondPackUnit'] = val[0]['packUnit']
setV['secondPackQty'] = val[0]['packQty']
}else if(formField == 'balancePackUnit'){
//
setV['balancePackUnit'] = val[0]['packUnit']
}
setV[formField] = val[0][searchField]
formRef.setValues(setV)
})

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

@ -751,14 +751,12 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
valueFormat: 'x',
}
},
{
label: '包装规格1',
field: 'packUnit',
isTable: true,
sort: 'custom',
table: {
width: 150,
form: {
componentProps: {
disabled: true,
isSearchList: true,
@ -825,8 +823,7 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
field: 'secondPackUnit',
isTable: true,
sort: 'custom',
table: {
width: 150,
form: {
componentProps: {
disabled: true,
isSearchList: true,
@ -893,7 +890,7 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
label: '入库存包装规格',
field: 'balancePackUnit',
sort: 'custom',
table: {
form: {
width: 150,
componentProps: {
disabled: true,
@ -948,7 +945,6 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
dictType: DICT_TYPE.IS_LINE_ITEM,
dictClass: 'string',
isSearch: false,
isForm: false,
isTable: true,
sort: 'custom',
table: {

Loading…
Cancel
Save