shish 3 лет назад
Родитель
Сommit
d8a1c9e3b9
1 измененных файлов с 14 добавлено и 4 удалено
  1. 14 4
      ghsApp/src/pagesPurchase/components/pageSuccess.vue

+ 14 - 4
ghsApp/src/pagesPurchase/components/pageSuccess.vue

@@ -7,12 +7,13 @@
 				<view class="result-title">采购成功</view>
 
 				<view style="margin-left:150upx;">
-					<view class="flex title">建议修改以下花材售价:</view>
+					<view class="flex title">建议修改售价:</view>
 					<checkbox-group @change="checkboxChange">
 						<view v-for="(res,i) in flowersList" :key="i">
 							<view class="product-area">
 								<view class="first-area">
 									<text class="name">{{res.name}}</text>
+									<text class="cost">¥{{costList[res.id]?parseFloat(costList[res.id]):0}}</text>
 									<input type="digit" v-model="res.autoPrice" placeholder="花店价" @focus="priceFocus(i,res)" @input="modifyPrice(i,res)" />
 									<input type="digit" v-model="res.autoSkPrice" placeholder="散客价" @focus="skPriceFocus(i,res)" @input="modifySkPrice(res)" />
 								</view>
@@ -36,7 +37,8 @@ export default {
 		return {
 			flowersItemInfo:'',
 			flowersList:[],
-			productList:[]
+			productList:[],
+			costList:[]
 		};
 	},
 	onShow(){
@@ -72,7 +74,10 @@ export default {
 		getList(){
 			let productIdArr = '';
 			let that = this
-			this.flowersItemInfo.forEach((ele)=>{productIdArr += ele.productId+','})
+			this.flowersItemInfo.forEach((ele)=>{
+				productIdArr += ele.productId+','
+				this.costList[ele.productId] = ele.itemPrice
+			})
 			getAllProductDataApi({ids : productIdArr.substring(0, productIdArr.lastIndexOf(',')),}).then((res)=>{
 				that.flowersList = res.data.list;
 				that.productList = [];
@@ -139,7 +144,7 @@ export default {
 	margin-bottom:30upx;
 }
 .product-area{
-	width:680upx;
+	width:750upx;
 	height:90upx;
 	display:flex;
 	align-items:center;
@@ -151,6 +156,10 @@ export default {
 			text-overflow:ellipsis;
 			white-space: nowrap;
 			display:inline-block;
+			font-weight:bold;
+		}
+		.cost{
+			font-weight:bold;
 		}
 		input{
 			border:1upx solid #cccccc;
@@ -159,6 +168,7 @@ export default {
 			margin-left:10upx;
 			margin-right:30upx;
 			text-align:center;
+			font-size:30upx;
 		}
 	}
 	.second-area{