|
|
|
@ -12,7 +12,7 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="content-right"> |
|
|
|
<view class="right-box" v-for="(item,index) in goodsList" :key="index"> |
|
|
|
<view class="right-box" v-for="(item,index) in goodsList" :key="index" v-if="item.delFlag"> |
|
|
|
<!-- 当商品的delFlag=0和未入库状态时,显示此遮罩,点击弹出弹窗提示不能操作 --> |
|
|
|
<view class="shop-mask" v-if="item.delFlag == 0 || item.purchasePrice==null || item.inStorageStatus == 0" @tap.stop="clickMask"></view> |
|
|
|
<view class="box-left"> |
|
|
|
@ -163,13 +163,18 @@ |
|
|
|
uni.redirectTo({ |
|
|
|
url: "/pages/index/downStearmList?khid=" + options.khid |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
this.type = uni.getStorageSync('type') |
|
|
|
this.getGategoryList() |
|
|
|
} |
|
|
|
this.type = uni.getStorageSync('type') |
|
|
|
this.getGategoryList() |
|
|
|
|
|
|
|
}, |
|
|
|
methods: { |
|
|
|
//初始化获取分类列表 |
|
|
|
getGategoryList() { |
|
|
|
getGategoryList() { |
|
|
|
this.shopList = [] |
|
|
|
this.indexList = [] |
|
|
|
this.goodsList = [] |
|
|
|
this.tui.request("/app/productCategory/list", "get", {}, false, true).then((res) => { |
|
|
|
if (res.code == 200) { |
|
|
|
this.indexList = res.result; |
|
|
|
@ -220,7 +225,7 @@ |
|
|
|
//顶部搜索框 |
|
|
|
search(res) { |
|
|
|
this.searchName = res.value |
|
|
|
this.getShareList() |
|
|
|
this.getGategoryList() |
|
|
|
}, |
|
|
|
//未入库遮罩 |
|
|
|
clickMask() { |
|
|
|
@ -239,7 +244,8 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
this.categoryId = this.shopList[index].id |
|
|
|
this.goodsList = this.shopList[index] |
|
|
|
this.goodsList = this.shopList[index] |
|
|
|
console.log(this.goodsList) |
|
|
|
}, |
|
|
|
//选中商品 |
|
|
|
checkboxChange(item) { |
|
|
|
|