|
|
@@ -3,7 +3,7 @@
|
|
|
<app-tabs :tabs="tabs" :currentTab="tabIndex" @change="change" itemWidth="50%"/>
|
|
|
<view class="input-wrap">
|
|
|
<view class="search-bar">
|
|
|
- <app-search-module v-if="tabs[tabIndex].name=='库存预警'" v-model="py" placeholder="输入拼音首字母查询" @input="searchFnContrapose"/>
|
|
|
+ <app-search-module v-if="tabs[tabIndex].key==STOCK_TYPE.WARN" v-model="py" placeholder="输入拼音首字母查询" @input="searchFnContrapose"/>
|
|
|
<app-search-module v-else v-model="py" placeholder="输入拼音首字母查询" @input="searchFn"/>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -110,17 +110,13 @@ export default {
|
|
|
},
|
|
|
onLoad() {
|
|
|
let type = this.tabs[this.tabIndex].key == STOCK_TYPE.WARN ? "waring" : "";
|
|
|
- // 当前门店
|
|
|
- // this.shopId = this.userInfo.id;
|
|
|
this.shopId = this.getMyShopInfo.id;
|
|
|
if(type=="waring"){
|
|
|
- this.initDataContrapose({ type, shopId: this.shopId });
|
|
|
+ this.initDataContrapose({ type, shopId: this.shopId,status:0});
|
|
|
}else{
|
|
|
this.initData({ type, shopId: this.shopId,status:0});
|
|
|
}
|
|
|
-
|
|
|
},
|
|
|
-
|
|
|
methods: {
|
|
|
affirm(val) {
|
|
|
if (val.index === 0) {
|
|
|
@@ -141,23 +137,11 @@ export default {
|
|
|
if(type=="waring"){
|
|
|
this.filterProductInfoContrapose = this.allFilterProductInfoContrapose;
|
|
|
uni.hideLoading();
|
|
|
- // this.initDataContrapose({ type, shopId: this.shopId });
|
|
|
}else{
|
|
|
this.initData({ type, shopId: this.shopId,status:0});
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- // searchFn() {
|
|
|
- // // uni.showLoading({
|
|
|
- // // title: "加载中"
|
|
|
- // // });
|
|
|
- // // if(type=="waring"){
|
|
|
- // // this.initDataContrapose({ type, shopId: this.shopId });
|
|
|
- // // }else{
|
|
|
- // // this.initData({ type, shopId: this.shopId });
|
|
|
- // // }
|
|
|
- // // this.initData({ shopId: this.shopId });
|
|
|
- // },
|
|
|
scrollTop() {},
|
|
|
initProductInfo() {
|
|
|
this.filterProductInfoContrapose = [];
|
|
|
@@ -171,11 +155,10 @@ export default {
|
|
|
this.initProductInfo();
|
|
|
let type = this.tabs[this.tabIndex].key == STOCK_TYPE.WARN ? "waring" : "";
|
|
|
this.shopId = val.selectItem.id;
|
|
|
- // this.initData({ type, shopId: this.shopId });
|
|
|
if(type=="waring"){
|
|
|
- this.initDataContrapose({ type, shopId: this.shopId });
|
|
|
+ this.initDataContrapose({ type, shopId: this.shopId,status:0});
|
|
|
}else{
|
|
|
- this.initData({ type, shopId: this.shopId });
|
|
|
+ this.initData({ type, shopId: this.shopId,status:0});
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -242,18 +225,16 @@ export default {
|
|
|
color: #fff;
|
|
|
font-size: 20px;
|
|
|
}
|
|
|
- &:last-child{
|
|
|
- margin-bottom: 110upx;
|
|
|
- }
|
|
|
+ &:last-child{
|
|
|
+ margin-bottom: 110upx;
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
.active {
|
|
|
position: relative;
|
|
|
color: $mainColor;
|
|
|
font-size: 26px;
|
|
|
background: #fff;
|
|
|
}
|
|
|
-
|
|
|
.active::before {
|
|
|
content: "";
|
|
|
position: absolute;
|
|
|
@@ -269,9 +250,6 @@ export default {
|
|
|
}
|
|
|
.item_list_bx {
|
|
|
padding: 40px 16px;
|
|
|
- //&:last-child{
|
|
|
- // margin-bottom: 70upx;
|
|
|
- //}
|
|
|
}
|
|
|
.item_list_title {
|
|
|
margin-bottom: 20px;
|