diff --git a/src/views/wms/basicDataManage/labelManage/callmaterials/index.vue b/src/views/wms/basicDataManage/labelManage/callmaterials/index.vue index 5ba0f8ebc..72dec50cb 100644 --- a/src/views/wms/basicDataManage/labelManage/callmaterials/index.vue +++ b/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']