diff --git a/src/components/costCenter/index.vue b/src/components/costCenter/index.vue index 42fec11..ea78aaf 100644 --- a/src/components/costCenter/index.vue +++ b/src/components/costCenter/index.vue @@ -85,6 +85,7 @@ function showFullText(text) { function sure() { isShowSelectItem.value = false emits('sure', form1.value) + keyword.value = '' } function searchItem() { @@ -101,7 +102,8 @@ function chooseItem(item) { defineExpose({ isShowSelectItem, open, - singleColumnList + singleColumnList, + keyword }) diff --git a/src/pages/outLocation/addForm.vue b/src/pages/outLocation/addForm.vue index 4f0d29c..7a62800 100644 --- a/src/pages/outLocation/addForm.vue +++ b/src/pages/outLocation/addForm.vue @@ -421,6 +421,7 @@ async function openSingleNewColumn(fieldName, val, list) { } await getSparePartsList() costCenterRef.value.open(singleColumnList.value) + costCenterRef.value.keyword = '' } async function searchItem(keywords) {