|
|
@@ -5,15 +5,19 @@
|
|
|
<view class="result-view">
|
|
|
<view class="iconfont iconchenggong"></view>
|
|
|
<view class="result-title">采购成功</view>
|
|
|
-
|
|
|
<view style="margin-left:150upx;">
|
|
|
- <view class="flex title">建议修改销售价:</view>
|
|
|
+ <view class="flex title">
|
|
|
+ 确认销售价:
|
|
|
+ </view>
|
|
|
+ <view class="flex title">
|
|
|
+ <text style="font-size:34upx;font-weight:bold;color:red;">下方红色价格为成本价(进货价+运费)</text>
|
|
|
+ </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>
|
|
|
+ <text class="cost">¥{{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.autoSkPrice" placeholder="散客价" @focus="skPriceFocus(i,res)" @input="modifySkPrice(res)" />
|
|
|
</view>
|
|
|
@@ -37,8 +41,7 @@ export default {
|
|
|
return {
|
|
|
flowersItemInfo:'',
|
|
|
flowersList:[],
|
|
|
- productList:[],
|
|
|
- costList:[]
|
|
|
+ productList:[]
|
|
|
};
|
|
|
},
|
|
|
onShow(){
|
|
|
@@ -76,7 +79,6 @@ export default {
|
|
|
let that = this
|
|
|
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;
|