|
|
@@ -6,15 +6,13 @@
|
|
|
@change="change"
|
|
|
itemWidth="50%"
|
|
|
/>
|
|
|
- <view
|
|
|
- class="input-wrap">
|
|
|
- <view
|
|
|
- v-if="loginInfo.super == 1"
|
|
|
- class="city-select text-line">
|
|
|
+ <view class="input-wrap">
|
|
|
+ <view v-if="loginInfo.super == 1" class="city-select text-line">
|
|
|
瑞经典<text class="iconfont iconsanjiao_xia"></text>
|
|
|
</view>
|
|
|
<view class="search-bar">
|
|
|
<app-search-module
|
|
|
+ v-model="py"
|
|
|
placeholder="输入商品名拼音首字母查询"
|
|
|
@search="searchFn"
|
|
|
/>
|
|
|
@@ -28,7 +26,7 @@
|
|
|
:scroll-top="scrollTop"
|
|
|
>
|
|
|
<div
|
|
|
- v-for="(item, index) in productInfo"
|
|
|
+ v-for="(item, index) in filterProductInfo"
|
|
|
:key="index"
|
|
|
class="tab-bar-item"
|
|
|
:class="[classIndex == index ? 'active' : '']"
|
|
|
@@ -46,10 +44,10 @@
|
|
|
>
|
|
|
<!--内容部分 start -->
|
|
|
<!--内容部分 start -->
|
|
|
- <block v-if="!$util.isEmpty(productInfo)">
|
|
|
+ <block v-if="!$util.isEmpty(filterProductInfo)">
|
|
|
<view
|
|
|
class="item_list_bx"
|
|
|
- v-for="(classItem, classIndex) in productInfo"
|
|
|
+ v-for="(classItem, classIndex) in filterProductInfo"
|
|
|
:key="classIndex"
|
|
|
:id="`class_${classItem.classId}`"
|
|
|
>
|
|
|
@@ -68,7 +66,7 @@
|
|
|
<block v-else>
|
|
|
<app-wrapper-empty
|
|
|
title="暂无数据"
|
|
|
- :is-empty="$util.isEmpty(productInfo)"
|
|
|
+ :is-empty="$util.isEmpty(filterProductInfo)"
|
|
|
/>
|
|
|
</block>
|
|
|
<!--内容部分 end -->
|
|
|
@@ -85,7 +83,7 @@ import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
import CommodityStock from "../components/CommodityStock";
|
|
|
import { STOCK_TYPE } from "@/utils/declare";
|
|
|
import productMins from "@/mixins/product";
|
|
|
-import { mapGetters } from 'vuex'
|
|
|
+import { mapGetters } from "vuex";
|
|
|
export default {
|
|
|
name: "stock_manage", // 开单
|
|
|
components: {
|
|
|
@@ -139,9 +137,6 @@ export default {
|
|
|
this.initData({ type });
|
|
|
}
|
|
|
},
|
|
|
- searchFn() {
|
|
|
- this.initData();
|
|
|
- },
|
|
|
scrollTop() {}
|
|
|
}
|
|
|
};
|