diff --git a/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue b/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue index d4c53011a..7949496c0 100644 --- a/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue +++ b/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'] } else { row[formField] = val[0][searchField] + row['toLocationCode'] = val[0]['rawLocationCode'] } - row['toLocationCode'] = val[0]['rawLocationCode'] } else { const setV = {} setV[formField] = val[0][searchField] @@ -169,7 +169,11 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { nextTick(() => { const setV = {} setV[formField] = val[0][searchField] - setV['toLocationCode'] = val[0]['rawLocationCode'] + if (formField == 'itemCode') { + setV['itemCode'] = val[0]['componentItemCode'] + } else { + setV['toLocationCode'] = val[0]['rawLocationCode'] + } formRef.setValues(setV) }) }