增加订单搜索

This commit is contained in:
TOP糯米 2023-03-19 14:06:17 +08:00
parent 1a1545c495
commit 6ef7608dbe
1 changed files with 9 additions and 0 deletions

View File

@ -9,6 +9,7 @@
v-model="keywords" v-model="keywords"
placeholder="输入订单编号/客户姓名/电话" placeholder="输入订单编号/客户姓名/电话"
placeholder-class="placeholder-style-3" placeholder-class="placeholder-style-3"
@input="inputKeywords"
/> />
</view> </view>
<view class="scroll-box"> <view class="scroll-box">
@ -94,6 +95,7 @@ export default {
}, },
], ],
currentId: 0, currentId: 0,
keywordsTimer: null,
keywords: "", keywords: "",
}; };
}, },
@ -179,6 +181,7 @@ export default {
data: { data: {
page: currentTab.page, page: currentTab.page,
status: currentTab.status, status: currentTab.status,
key: this.keywords,
}, },
}, },
listType: currentTab.listType, listType: currentTab.listType,
@ -203,6 +206,12 @@ export default {
refresh() { refresh() {
this.switchTab(this.tabIndex); this.switchTab(this.tabIndex);
}, },
inputKeywords(e) {
clearTimeout(this.keywordsTimer);
this.keywordsTimer = setTimeout(() => {
this.loadData();
}, 1000);
},
}, },
}; };
</script> </script>