Explorar el Código

盘点列表页面不需要显示花材价格

jf hace 5 años
padre
commit
f4dfce0ce0

+ 6 - 1
ghsApp/src/components/module/app-commodity.vue

@@ -7,7 +7,8 @@
 			<view class="tit" @click="addEvents">{{ info.itemName || "" }}</view>
 			<view class="kc" @click="addEvents">库存 {{ info.stock }}</view>
 			<view class="num-open_bx">
-				<view class="price">¥{{ showPrice }}</view>
+				<view class="price" v-if="!offPrice">¥{{ showPrice }}</view>
+				<view class="price" v-else></view>
 				<view class="open-bx" v-if="type == COMMODITY_TYPE.COMMON">
 					<i class="iconfont iconjian" :class="delAnimationData?'animation':''" @click="delEvent" v-if="bigCount > 0 || smallCount > 0"></i>
 					<text class="num" @click="customNum">
@@ -66,6 +67,10 @@ export default {
 			default: 0
 		},
 		autoPrice: {},
+		offPrice: {
+			type: Boolean,
+			default: false
+		},
 	},
 	data() {
 		return {

+ 1 - 0
ghsApp/src/pagesStorehouse/inventory/select.vue

@@ -73,6 +73,7 @@
 						</view>
 						<template v-for="(productItem, productIndex) in classItem.child">
 							<Commondity
+								:offPrice="true"
 								:key="productIndex"
 								:info="productItem"
 								:bigCount="