diff --git a/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue b/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue index 284817860..2ef30eb73 100644 --- a/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue +++ b/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue @@ -300,6 +300,9 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => } } else { const setV = {} + if(formField == 'workshopCode'){ + tableData.value = [] + } setV[formField] = val[0][searchField] formRef.setValues(setV) } diff --git a/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue b/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue index ff47b78c7..d84487ae8 100644 --- a/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue +++ b/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue @@ -542,6 +542,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => setV['costCenterType'] = val[0]['costcentreType'] }else if(formField == 'productionLineCode'){ tableData.value = [] + } else if(formField == 'workshopCode'){ + tableData.value = [] } formRef.setValues(setV) }