|
@@ -7,12 +7,13 @@
|
|
|
<view class="result-title">采购成功</view>
|
|
<view class="result-title">采购成功</view>
|
|
|
|
|
|
|
|
<view style="margin-left:150upx;">
|
|
<view style="margin-left:150upx;">
|
|
|
- <view class="flex title">建议修改以下花材售价:</view>
|
|
|
|
|
|
|
+ <view class="flex title">建议修改销售价:</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">¥{{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.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>
|
|
@@ -36,7 +37,8 @@ export default {
|
|
|
return {
|
|
return {
|
|
|
flowersItemInfo:'',
|
|
flowersItemInfo:'',
|
|
|
flowersList:[],
|
|
flowersList:[],
|
|
|
- productList:[]
|
|
|
|
|
|
|
+ productList:[],
|
|
|
|
|
+ costList:[]
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
onShow(){
|
|
onShow(){
|
|
@@ -72,7 +74,10 @@ export default {
|
|
|
getList(){
|
|
getList(){
|
|
|
let productIdArr = '';
|
|
let productIdArr = '';
|
|
|
let that = this
|
|
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)=>{
|
|
getAllProductDataApi({ids : productIdArr.substring(0, productIdArr.lastIndexOf(',')),}).then((res)=>{
|
|
|
that.flowersList = res.data.list;
|
|
that.flowersList = res.data.list;
|
|
|
that.productList = [];
|
|
that.productList = [];
|
|
@@ -139,7 +144,7 @@ export default {
|
|
|
margin-bottom:30upx;
|
|
margin-bottom:30upx;
|
|
|
}
|
|
}
|
|
|
.product-area{
|
|
.product-area{
|
|
|
- width:680upx;
|
|
|
|
|
|
|
+ width:750upx;
|
|
|
height:90upx;
|
|
height:90upx;
|
|
|
display:flex;
|
|
display:flex;
|
|
|
align-items:center;
|
|
align-items:center;
|
|
@@ -151,6 +156,10 @@ export default {
|
|
|
text-overflow:ellipsis;
|
|
text-overflow:ellipsis;
|
|
|
white-space: nowrap;
|
|
white-space: nowrap;
|
|
|
display:inline-block;
|
|
display:inline-block;
|
|
|
|
|
+ font-weight:bold;
|
|
|
|
|
+ }
|
|
|
|
|
+ .cost{
|
|
|
|
|
+ font-weight:bold;
|
|
|
}
|
|
}
|
|
|
input{
|
|
input{
|
|
|
border:1upx solid #cccccc;
|
|
border:1upx solid #cccccc;
|
|
@@ -159,6 +168,7 @@ export default {
|
|
|
margin-left:10upx;
|
|
margin-left:10upx;
|
|
|
margin-right:30upx;
|
|
margin-right:30upx;
|
|
|
text-align:center;
|
|
text-align:center;
|
|
|
|
|
+ font-size:30upx;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
.second-area{
|
|
.second-area{
|