Browse Source

车间代码

hella_online_20240829
wangyufei 4 months ago
parent
commit
aec078880b
  1. 10
      src/views/wms/basicDataManage/labelManage/callmaterials/index.vue

10
src/views/wms/basicDataManage/labelManage/callmaterials/index.vue

@ -112,6 +112,9 @@ const onEnter = async (field,value)=>{
//
const searchTableSuccess = (formField, searchField, val, formRef) => {
nextTick(() => {
console.log('searchTableSuccess',formField, searchField, val)
const setV = {}
if (formField == 'itemCode') {
setV['itemCode'] = val[0]['code']
@ -120,6 +123,13 @@ const searchTableSuccess = (formField, searchField, val, formRef) => {
setV['uom'] = val[0]['uom']
setV['packUnit'] = val[0]['packUnit']
setV['callmaterialQty'] = val[0]['packQty']
} else if (formField == 'productionLineCode'|| formField == 'workshopCode') {
//线
if(val[0][searchField]!=formRef.formModel[formField]){
setV['workStationCode'] = ''
setV['location'] = ''
setV[formField] = val[0][searchField]
}
} else if (formField == 'workStationCode') {
//
setV['location'] = val[0]['rawLocationCode']

Loading…
Cancel
Save