support pinyin search
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
type="search"
|
||||
borderless
|
||||
clearable
|
||||
placeholder="搜索产品名称或编码"
|
||||
placeholder="搜索产品名称(拼音)或编码"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -161,7 +161,7 @@ async function fetch(reset = false, preserveScroll = false): Promise<void> {
|
||||
const result = await ProductAPI.stockProductList({
|
||||
index,
|
||||
size: pageSize,
|
||||
keyword: keyword.value || undefined
|
||||
keyword: keyword.value.trim() || undefined
|
||||
});
|
||||
if (token !== requestToken) {
|
||||
return;
|
||||
@@ -182,7 +182,7 @@ async function fetch(reset = false, preserveScroll = false): Promise<void> {
|
||||
const result = await ProductAPI.stockProductList({
|
||||
index: pageIndex.value,
|
||||
size: pageSize,
|
||||
keyword: keyword.value || undefined
|
||||
keyword: keyword.value.trim() || undefined
|
||||
});
|
||||
if (token !== requestToken) {
|
||||
return;
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
<div v-can="permissionCodes.productStock.read" class="product-stock-record-list">
|
||||
<div class="filters bg-white">
|
||||
<t-input
|
||||
v-model.trim="keyword"
|
||||
v-model="keyword"
|
||||
class="keyword"
|
||||
type="search"
|
||||
borderless
|
||||
clearable
|
||||
placeholder="搜索产品名称或编码"
|
||||
placeholder="搜索产品名称(拼音)或编码"
|
||||
/>
|
||||
<t-dropdown-menu class="menus">
|
||||
<t-dropdown-item v-model="operationType" label="操作类型" :options="operationOptions" @change="selectOperationType" />
|
||||
|
||||
Reference in New Issue
Block a user