diff --git a/src/views/erp/mold/index.vue b/src/views/erp/mold/index.vue index 346271a1..01b999d6 100644 --- a/src/views/erp/mold/index.vue +++ b/src/views/erp/mold/index.vue @@ -182,10 +182,8 @@ const counters = reactive({ const queryParams = reactive({ pageNo: 1, pageSize: 10, - code: undefined as string | undefined, - name: undefined as string | undefined, + keyword: undefined as string | undefined, productIds: [] as number[], - productName: undefined as string | undefined, status: undefined as number | undefined, currentDevice: undefined as string | undefined, currentPosition: undefined as string | undefined @@ -208,10 +206,7 @@ const moldMaintainViewRef = ref() const inputKeyword = ref('') watch(inputKeyword, (val) => { - const v = val?.trim() || undefined - queryParams.code = v - queryParams.name = v - queryParams.productName = v + queryParams.keyword = val?.trim() || undefined }) const onKeywordClear = () => {