Browse Source

备料计划 新增修改

master
陈薪名 11 months ago
parent
commit
76e561bb8b
  1. 6
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue

6
src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue

@ -110,8 +110,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
row['itemCode'] = val[0]['componentItemCode'] row['itemCode'] = val[0]['componentItemCode']
} else { } else {
row[formField] = val[0][searchField] row[formField] = val[0][searchField]
}
row['toLocationCode'] = val[0]['rawLocationCode'] row['toLocationCode'] = val[0]['rawLocationCode']
}
} else { } else {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
@ -169,7 +169,11 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
nextTick(() => { nextTick(() => {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
if (formField == 'itemCode') {
setV['itemCode'] = val[0]['componentItemCode']
} else {
setV['toLocationCode'] = val[0]['rawLocationCode'] setV['toLocationCode'] = val[0]['rawLocationCode']
}
formRef.setValues(setV) formRef.setValues(setV)
}) })
} }

Loading…
Cancel
Save