Browse Source

修复

master_hella_20240701
赵雪冰 10 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 { } else {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
//setV['supplierCode'] = val[0]['supplierCode'] //setV['supplierCode'] = val[0]['supplierCode']
formRef.setValues(setV) formRef.setValues(setV)
@ -139,6 +140,21 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
nextTick(() => { nextTick(() => {
const setV = {} 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] setV[formField] = val[0][searchField]
formRef.setValues(setV) 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', valueFormat: 'x',
} }
}, },
{ {
label: '包装规格1', label: '包装规格1',
field: 'packUnit', field: 'packUnit',
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: { form: {
width: 150,
componentProps: { componentProps: {
disabled: true, disabled: true,
isSearchList: true, isSearchList: true,
@ -825,8 +823,7 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
field: 'secondPackUnit', field: 'secondPackUnit',
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: { form: {
width: 150,
componentProps: { componentProps: {
disabled: true, disabled: true,
isSearchList: true, isSearchList: true,
@ -893,7 +890,7 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
label: '入库存包装规格', label: '入库存包装规格',
field: 'balancePackUnit', field: 'balancePackUnit',
sort: 'custom', sort: 'custom',
table: { form: {
width: 150, width: 150,
componentProps: { componentProps: {
disabled: true, disabled: true,
@ -948,7 +945,6 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
dictType: DICT_TYPE.IS_LINE_ITEM, dictType: DICT_TYPE.IS_LINE_ITEM,
dictClass: 'string', dictClass: 'string',
isSearch: false, isSearch: false,
isForm: false,
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {

Loading…
Cancel
Save