shish 3 lat temu
rodzic
commit
c93656dc75

+ 20 - 3
ghsApp/src/pagesPurchase/components/pageSuccess.vue

@@ -10,14 +10,17 @@
 						确认销售价:
 						确认销售价:
 					</view>
 					</view>
 					<view class="flex title">
 					<view class="flex title">
-						<text style="font-size:34upx;font-weight:bold;color:red;">下方红色价格为成本价(进货价+运费)</text>
+						<text style="font-size:30upx;font-weight:bold;color:red;">
+							下方红色为采购价,<text style="color:blue;">蓝色为成本价(含运费)</text>
+						</text>
 					</view>
 					</view>
 					<checkbox-group @change="checkboxChange">
 					<checkbox-group @change="checkboxChange">
 						<view v-for="(res,i) in flowersList" :key="i">
 						<view v-for="(res,i) in flowersList" :key="i">
 							<view class="product-area">
 							<view class="product-area">
 								<view class="first-area">
 								<view class="first-area">
 									<text class="name">{{res.name}}</text>
 									<text class="name">{{res.name}}</text>
-									<text class="cost">¥{{res.cost?parseFloat(res.cost):0}}</text>
+									<text class="cost">¥{{costList[res.id]?parseFloat(costList[res.id]):0}}</text>
+									<text class="cgPrice">¥{{res.cost?parseFloat(res.cost):0}}</text>
 									<input type="digit" v-model="res.autoPrice" placeholder="花店价" @focus="priceFocus(i,res)" @input="modifyPrice(i,res)" />
 									<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)" />
 									<input type="digit" v-model="res.autoSkPrice" placeholder="散客价" @focus="skPriceFocus(i,res)" @input="modifySkPrice(res)" />
 								</view>
 								</view>
@@ -41,7 +44,8 @@ export default {
 		return {
 		return {
 			flowersItemInfo:'',
 			flowersItemInfo:'',
 			flowersList:[],
 			flowersList:[],
-			productList:[]
+			productList:[],
+			costList:[]
 		};
 		};
 	},
 	},
 	onShow(){
 	onShow(){
@@ -79,6 +83,7 @@ export default {
 			let that = this
 			let that = this
 			this.flowersItemInfo.forEach((ele)=>{
 			this.flowersItemInfo.forEach((ele)=>{
 				productIdArr += ele.productId+','
 				productIdArr += ele.productId+','
+				this.costList[ele.productId] = ele.itemPrice
 			})
 			})
 			getAllProductDataApi({ids : productIdArr.substring(0, productIdArr.lastIndexOf(',')),}).then((res)=>{
 			getAllProductDataApi({ids : productIdArr.substring(0, productIdArr.lastIndexOf(',')),}).then((res)=>{
 				that.flowersList = res.data.list;
 				that.flowersList = res.data.list;
@@ -153,6 +158,7 @@ export default {
 	align-items:center;
 	align-items:center;
 	.first-area{
 	.first-area{
 		border-bottom:1upx solid #e4e2e2;
 		border-bottom:1upx solid #e4e2e2;
+		position:relative;
 		.name{
 		.name{
 			width:180upx;
 			width:180upx;
 			overflow: hidden;
 			overflow: hidden;
@@ -166,6 +172,17 @@ export default {
 			font-weight:bold;
 			font-weight:bold;
 			font-size:28upx;
 			font-size:28upx;
 			color:red;
 			color:red;
+			position:absolute;
+			left:0upx;
+			top:-10upx;
+		}
+		.cgPrice{
+			font-weight:bold;
+			font-size:28upx;
+			color:blue;
+			position:absolute;
+			left:90upx;
+			top:-10upx;
 		}
 		}
 		input{
 		input{
 			border:1upx solid #cccccc;
 			border:1upx solid #cccccc;