diff --git a/src/components/Form/src/Form.vue b/src/components/Form/src/Form.vue index 55e4e7726..0daccf3aa 100644 --- a/src/components/Form/src/Form.vue +++ b/src/components/Form/src/Form.vue @@ -126,7 +126,7 @@ export default defineComponent({ } const clearSearchInput = (field) => { - emit('clearSearchInput') + emit('clearSearchInput',field) } expose({ setValues, diff --git a/src/views/wms/issueManage/issue/issueRequestMain/index.vue b/src/views/wms/issueManage/issue/issueRequestMain/index.vue index 1bb24f9f6..df1f3f87a 100644 --- a/src/views/wms/issueManage/issue/issueRequestMain/index.vue +++ b/src/views/wms/issueManage/issue/issueRequestMain/index.vue @@ -61,6 +61,7 @@ @submitForm="submitForm" @onEnter="onEnter" @onChange="onChange" + @clearSearchInput="onChange" /> @@ -117,8 +118,15 @@ const onChange = async (field,value) => { setV['productionLineCode'] = '' setV['workStationCode'] = '' formRef.value.formRef.setValues(setV) + }else if(field== 'productionLineCode'){ + //生产线 + const setV = {} + setV['workStationCode'] = '' + formRef.value.formRef.setValues(setV) } } + + const onEnter = async (field,value) => { if (field == 'productionLineCode') { //生产线