From aec078880b41a4fe730a79237150d2191850e495 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Wed, 24 Jul 2024 17:13:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=A6=E9=97=B4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../labelManage/callmaterials/index.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) 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']