|
@@ -11,12 +11,11 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view class="scroll-middle_bx">
|
|
<view class="scroll-middle_bx">
|
|
|
<block v-if="!$util.isEmpty(globalClassItemListContrapose)">
|
|
<block v-if="!$util.isEmpty(globalClassItemListContrapose)">
|
|
|
- <scroll-view scroll-y class="item_list_bx" @scrolltolower="loadMore" lower-threshold="100" style="width: 100%">
|
|
|
|
|
|
|
+ <view scroll-y class="item_list_bx" style="width: 100%">
|
|
|
<template v-for="(productItem, productIndex) in globalClassItemListContrapose">
|
|
<template v-for="(productItem, productIndex) in globalClassItemListContrapose">
|
|
|
<view style="padding: 20upx 0">
|
|
<view style="padding: 20upx 0">
|
|
|
<ptItemInfo
|
|
<ptItemInfo
|
|
|
:isPrice="false"
|
|
:isPrice="false"
|
|
|
- :type="STOCK_TYPE.WARN"
|
|
|
|
|
:key="productIndex"
|
|
:key="productIndex"
|
|
|
:info="productItem"
|
|
:info="productItem"
|
|
|
:isEdit="true"
|
|
:isEdit="true"
|
|
@@ -25,7 +24,7 @@
|
|
|
></ptItemInfo>
|
|
></ptItemInfo>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
- </scroll-view>
|
|
|
|
|
|
|
+ </view>
|
|
|
</block>
|
|
</block>
|
|
|
<block v-else>
|
|
<block v-else>
|
|
|
<view style="width: 100%">
|
|
<view style="width: 100%">
|
|
@@ -39,7 +38,6 @@
|
|
|
import AppSearchModule from "@/components/module/app-search";
|
|
import AppSearchModule from "@/components/module/app-search";
|
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
import ptItemInfo from "./components/Item";
|
|
import ptItemInfo from "./components/Item";
|
|
|
-import { STOCK_TYPE } from "@/utils/declare";
|
|
|
|
|
import productMins from "@/mixins/product";
|
|
import productMins from "@/mixins/product";
|
|
|
import productContraposeMins from "@/mixins/ptProductContrapose";
|
|
import productContraposeMins from "@/mixins/ptProductContrapose";
|
|
|
import { selectShop } from "@/mixins";
|
|
import { selectShop } from "@/mixins";
|
|
@@ -58,17 +56,10 @@ export default {
|
|
|
mixins: [productMins, selectShop,productContraposeMins],
|
|
mixins: [productMins, selectShop,productContraposeMins],
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- STOCK_TYPE,
|
|
|
|
|
autoLoad: false,
|
|
autoLoad: false,
|
|
|
pageType: "getPtItem",
|
|
pageType: "getPtItem",
|
|
|
tabIndex: 0,
|
|
tabIndex: 0,
|
|
|
modifyStock:{},
|
|
modifyStock:{},
|
|
|
- tabs: [
|
|
|
|
|
- {
|
|
|
|
|
- name: "库存预警",
|
|
|
|
|
- key: STOCK_TYPE.WARN
|
|
|
|
|
- }
|
|
|
|
|
- ],
|
|
|
|
|
allClass:[]
|
|
allClass:[]
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
@@ -76,20 +67,20 @@ export default {
|
|
|
...mapGetters(["getMyShopInfo","getLoginInfo"]),
|
|
...mapGetters(["getMyShopInfo","getLoginInfo"]),
|
|
|
},
|
|
},
|
|
|
onLoad() {
|
|
onLoad() {
|
|
|
- let type = "waring";
|
|
|
|
|
- this.shopId = this.getMyShopInfo.id;
|
|
|
|
|
- this.initDataContrapose({ type, shopId: this.shopId,status:0,delStatus:0});
|
|
|
|
|
|
|
+ this.ptItemInit()
|
|
|
},
|
|
},
|
|
|
- onPullDownRefresh() {
|
|
|
|
|
- this.page = 1
|
|
|
|
|
- this.globalClassItemListContrapose = []
|
|
|
|
|
- let type = "waring";
|
|
|
|
|
|
|
+ onReachBottom(){
|
|
|
|
|
+ this.page++
|
|
|
this.shopId = this.getMyShopInfo.id;
|
|
this.shopId = this.getMyShopInfo.id;
|
|
|
- this.initDataContrapose({ type, shopId: this.shopId,status:0,delStatus:0});
|
|
|
|
|
|
|
+ this.initDataContrapose({ type:'waring', shopId: this.shopId,status:0,delStatus:0})
|
|
|
},
|
|
},
|
|
|
onShow(){
|
|
onShow(){
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ ptItemInit(){
|
|
|
|
|
+ this.shopId = this.getMyShopInfo.id;
|
|
|
|
|
+ this.initDataContrapose({ type:'waring', shopId: this.shopId,status:0,delStatus:0})
|
|
|
|
|
+ },
|
|
|
init() {
|
|
init() {
|
|
|
let that = this
|
|
let that = this
|
|
|
getAllItemClass().then(res => {
|
|
getAllItemClass().then(res => {
|
|
@@ -141,7 +132,6 @@ export default {
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
-
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
.billing_box_bg {
|
|
.billing_box_bg {
|
|
|
height: 100%;
|
|
height: 100%;
|