|
|
@@ -6,18 +6,10 @@
|
|
|
<app-search-module v-if="tabs[tabIndex].name=='库存预警'" v-model="py" placeholder="输入拼音首字母查询" @input="searchFnContrapose"/>
|
|
|
<app-search-module v-else v-model="py" placeholder="输入拼音首字母查询" @input="searchFn"/>
|
|
|
</view>
|
|
|
- <!--<view v-if="loginInfo.super" class="city-select text-line">-->
|
|
|
- <!--<DorpdownSelect :menuObj.sync="menuObj" :selectItemId.sync="shopId" top="0" @selectSussess="selectSussess"></DorpdownSelect>-->
|
|
|
- <!--</view>-->
|
|
|
</view>
|
|
|
|
|
|
<view v-if="tabs[tabIndex].name=='库存预警'" class="scroll-middle_bx">
|
|
|
- <!--内容部分 start -->
|
|
|
- <!--内容部分 start -->
|
|
|
<block v-if="!$util.isEmpty(filterProductInfoContrapose)">
|
|
|
-<!-- <view class="item_list_bx" v-for="(classItem, classIndex) in filterProductInfoContrapose" :key="classIndex" :id="`class_${classItem.classId}`">-->
|
|
|
-<!-- </view>-->
|
|
|
- <!-- <text v-else>当前库存充足</text>-->
|
|
|
<scroll-view scroll-y class="item_list_bx" @scrolltolower="loadMore" lower-threshold="100" style="width: 100%">
|
|
|
<template v-for="(productItem, productIndex) in filterProductInfoContrapose">
|
|
|
<view style="padding: 20rpx 0">
|
|
|
@@ -26,6 +18,7 @@
|
|
|
:type="tabs[tabIndex].key"
|
|
|
:key="productIndex"
|
|
|
:info="productItem"
|
|
|
+ :isEdit="true"
|
|
|
></CommodityStock>
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -38,21 +31,14 @@
|
|
|
</block>
|
|
|
</view>
|
|
|
|
|
|
-
|
|
|
-
|
|
|
<view v-else class="scroll-middle_bx">
|
|
|
<scroll-view scroll-y scroll-with-animation class="tab-view" :scroll-top="scrollTop">
|
|
|
<div v-for="(item, index) in filterProductInfo" :key="index" class="tab-bar-item" :class="[classIndex == index ? 'active' : '']" :data-current="index" @tap.stop="swichClass(index)">
|
|
|
<text>{{ item.className || "" }}</text>
|
|
|
</div>
|
|
|
</scroll-view>
|
|
|
-<!-- <scroll-view scroll-y class="right-box" v-if="currentTab == index" :scroll-into-view="scrollClassId">-->
|
|
|
- <scroll-view scroll-y class="right-box" :scroll-into-view="scroll_into_view" scroll-with-animation="true"
|
|
|
- @scroll="scroll_detail"
|
|
|
- lower-threshold="100"
|
|
|
- @scrolltolower="scroll_bottom">
|
|
|
- <!--内容部分 start -->
|
|
|
- <!--内容部分 start -->
|
|
|
+ <scroll-view scroll-y class="right-box" :scroll-into-view="scroll_into_view"
|
|
|
+ scroll-with-animation="true" @scroll="scroll_detail" lower-threshold="100" @scrolltolower="scroll_bottom">
|
|
|
<block v-if="!$util.isEmpty(filterProductInfo)">
|
|
|
<view class="item_list_bx selectAll" v-for="(classItem, classIndex) in filterProductInfo" :key="classIndex" :id="`class_${classIndex}`">
|
|
|
<view class="item_list_title" v-if="!$util.isEmpty(classItem.child)"> {{ classItem.className }}</view>
|
|
|
@@ -63,6 +49,7 @@
|
|
|
:isPrice="false"
|
|
|
:type="tabs[tabIndex].key"
|
|
|
:info="productItem"
|
|
|
+ :isEdit="true"
|
|
|
></CommodityStock>
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -76,8 +63,6 @@
|
|
|
<!--内容部分 end -->
|
|
|
</scroll-view>
|
|
|
</view>
|
|
|
- <!-- :maskClosable="false" -->
|
|
|
- <!-- <kd-entrance></kd-entrance> -->
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
@@ -110,7 +95,7 @@ export default {
|
|
|
tabIndex: 0,
|
|
|
tabs: [
|
|
|
{
|
|
|
- name: "库存不足",
|
|
|
+ name: "库存预警",
|
|
|
key: STOCK_TYPE.WARN
|
|
|
},
|
|
|
{
|
|
|
@@ -131,7 +116,7 @@ export default {
|
|
|
if(type=="waring"){
|
|
|
this.initDataContrapose({ type, shopId: this.shopId });
|
|
|
}else{
|
|
|
- this.initData({ type, shopId: this.shopId,delStatus:2});
|
|
|
+ this.initData({ type, shopId: this.shopId,status:0});
|
|
|
}
|
|
|
|
|
|
},
|
|
|
@@ -158,7 +143,7 @@ export default {
|
|
|
uni.hideLoading();
|
|
|
// this.initDataContrapose({ type, shopId: this.shopId });
|
|
|
}else{
|
|
|
- this.initData({ type, shopId: this.shopId,delStatus:2 });
|
|
|
+ this.initData({ type, shopId: this.shopId,status:0});
|
|
|
}
|
|
|
}
|
|
|
},
|