Explorar el Código

库存列表优化

jf hace 5 años
padre
commit
0847a2959e

+ 3 - 1
ghsApp/src/pagesStorehouse/stockWarn/manage.vue

@@ -56,12 +56,14 @@
 						<view class="item_list_title" v-if="!$util.isEmpty(classItem.child)"> {{ classItem.className }}</view>
 						<view class="item_list_title" v-if="!$util.isEmpty(classItem.child)"> {{ classItem.className }}</view>
 						<text v-if="tabs[tabIndex].name=='库存预警'&&$util.isEmpty(classItem.child)">当前库存充足</text>
 						<text v-if="tabs[tabIndex].name=='库存预警'&&$util.isEmpty(classItem.child)">当前库存充足</text>
 						<template v-for="(productItem, productIndex) in classItem.child">
 						<template v-for="(productItem, productIndex) in classItem.child">
-							<CommodityStock
+							<view style="height: 160rpx" :id="`class_${classIndex}`" :key="classIndex">
+								<CommodityStock v-if="classItem.isActive"
 								:isPrice="false"
 								:isPrice="false"
 								:type="tabs[tabIndex].key"
 								:type="tabs[tabIndex].key"
 								:key="productIndex"
 								:key="productIndex"
 								:info="productItem"
 								:info="productItem"
 							></CommodityStock>
 							></CommodityStock>
+							</view>
 						</template>
 						</template>
 					</view>
 					</view>
 				</block>
 				</block>

+ 3 - 1
hdApp/src/pagesStorehouse/stockWarn/manage.vue

@@ -56,12 +56,14 @@
 						<view class="item_list_title" v-if="!$util.isEmpty(classItem.child)"> {{ classItem.className }}</view>
 						<view class="item_list_title" v-if="!$util.isEmpty(classItem.child)"> {{ classItem.className }}</view>
 						<text v-if="tabs[tabIndex].name=='库存预警'&&$util.isEmpty(classItem.child)">当前库存充足</text>
 						<text v-if="tabs[tabIndex].name=='库存预警'&&$util.isEmpty(classItem.child)">当前库存充足</text>
 						<template v-for="(productItem, productIndex) in classItem.child">
 						<template v-for="(productItem, productIndex) in classItem.child">
-							<CommodityStock
+							<view style="height: 160rpx" :id="`class_${classIndex}`" :key="classIndex">
+							<CommodityStock v-if="classItem.isActive"
 								:isPrice="false"
 								:isPrice="false"
 								:type="tabs[tabIndex].key"
 								:type="tabs[tabIndex].key"
 								:key="productIndex"
 								:key="productIndex"
 								:info="productItem"
 								:info="productItem"
 							></CommodityStock>
 							></CommodityStock>
+							</view>
 						</template>
 						</template>
 					</view>
 					</view>
 				</block>
 				</block>