lilei 1 gadu atpakaļ
vecāks
revīzija
c2f441e7e1
1 mainītis faili ar 7 papildinājumiem un 4 dzēšanām
  1. 7 4
      pagesA/digitalShelf/choosePart.vue

+ 7 - 4
pagesA/digitalShelf/choosePart.vue

@@ -57,7 +57,7 @@
 										</view>
 										<view class="flex justify_between">
 											<view class="item-detail-text flex_1">
-												<view @click="openPriceModal(item)">
+												<view @click="openPriceModal(item,1)">
 													<text class="item-price" :style="{color:!item.price?'#666':''}" v-if="showCarPrice">{{item.price?'¥'+item.price:'暂无价格'}}</text>
 													<text class="item-price" :style="{color:!item.cost?'#666':''}" v-if="showCostPrice&&item.affiliation=='SHELF'">{{item.cost?'¥'+item.cost:'暂无价格'}}</text>
 													<u-icon name="arrow-right" v-if="priceShowVal"></u-icon>
@@ -109,7 +109,7 @@
 										<text class="item-detail-text">库存:{{item.currentInven?item.currentInven:0}} {{item.unit}}</text>
 									</view>
 									<view class="flex justify_between">
-										<view class="item-detail-text flex_1" @click="openPriceModal(item)">
+										<view class="item-detail-text flex_1" @click="openPriceModal(item,0)">
 											<text class="item-price" :style="{color:!item.price?'#666':''}" v-if="showCarPrice">{{item.price?'¥'+item.price:'暂无价格'}}</text>
 											<text class="item-price" :style="{color:!item.cost?'#666':''}" v-if="showCostPrice">{{item.cost?'¥'+item.cost:'暂无价格'}}</text>
 											<u-icon name="arrow-right" v-if="priceShowVal"></u-icon>
@@ -216,7 +216,7 @@
 					<text>产品名称</text>
 					<text>{{tempData.name||'--'}}</text>
 				</view>
-				<view>
+				<view v-if="tempData.affiliation=='SHELF'">
 					<text>进货价</text>
 					<text>{{tempData.cost?'¥'+tempData.cost:'暂无价格'}}</text>
 				</view>
@@ -344,9 +344,12 @@
 				})
 			},
 			// 打开价格信息弹框
-			openPriceModal(row){
+			openPriceModal(row,type){
 				console.log(row)
 				if(this.priceShowVal){
+					if(type == 0){
+						row.affiliation = "SHELF"
+					}
 					this.tempData = row
 					this.showPriceModal = true
 				}