|
@@ -40,6 +40,8 @@
|
|
{{pros.retailPrice?pros.retailPrice.toFixed(2):''}}
|
|
{{pros.retailPrice?pros.retailPrice.toFixed(2):''}}
|
|
</view>
|
|
</view>
|
|
<view class="count" v-if="pros.validFlag == '2'" :class="[isshowDelbtn ? 'none':'show']">
|
|
<view class="count" v-if="pros.validFlag == '2'" :class="[isshowDelbtn ? 'none':'show']">
|
|
|
|
+ <text class="count-tips" v-if="pros.productCount<pros.minBuyNumber">起订量:{{pros.minBuyNumber}}</text>
|
|
|
|
+ <text class="count-tips step" v-if="pros.isStep">购买量必须为起订量的整数倍</text>
|
|
<view class="number-box">
|
|
<view class="number-box">
|
|
<view class="iconfont icon-jianhao" :class="[pros.validFlag == '3'?'disabled':'']" @click="changeCountSub(item,pros)"></view>
|
|
<view class="iconfont icon-jianhao" :class="[pros.validFlag == '3'?'disabled':'']" @click="changeCountSub(item,pros)"></view>
|
|
<input class="btn-input" type="number" maxlength='4' v-model="pros.productCount" @blur="changeNnmber($event,item,pros)" @focus="changeInput(pros)">
|
|
<input class="btn-input" type="number" maxlength='4' v-model="pros.productCount" @blur="changeNnmber($event,item,pros)" @focus="changeInput(pros)">
|
|
@@ -162,6 +164,7 @@
|
|
skeletonShow:true,
|
|
skeletonShow:true,
|
|
isshowDelbtn:false,
|
|
isshowDelbtn:false,
|
|
isDisabled: false, // 供应商/店铺全选是否禁用状态
|
|
isDisabled: false, // 供应商/店铺全选是否禁用状态
|
|
|
|
+ isNoConfim:false,
|
|
isEmpty:false,//显示空购物车
|
|
isEmpty:false,//显示空购物车
|
|
scrollHeight: 'auto',
|
|
scrollHeight: 'auto',
|
|
nomoreText: '上拉显示更多',
|
|
nomoreText: '上拉显示更多',
|
|
@@ -237,6 +240,11 @@
|
|
pros.shopID = item.shopID;
|
|
pros.shopID = item.shopID;
|
|
pros.isStep = false
|
|
pros.isStep = false
|
|
if(pros.validFlag == '3' ) {invalidLength++;}
|
|
if(pros.validFlag == '3' ) {invalidLength++;}
|
|
|
|
+ if(pros.step === 2){
|
|
|
|
+ pros.productCount = pros.minBuyNumber
|
|
|
|
+ this.totalShopPeice()
|
|
|
|
+ this.updateShoppogNum(pros)
|
|
|
|
+ }
|
|
})
|
|
})
|
|
item.isDisabled = invalidLength === productsListLength;
|
|
item.isDisabled = invalidLength === productsListLength;
|
|
})
|
|
})
|
|
@@ -540,23 +548,22 @@
|
|
if(this.isNoConfim){
|
|
if(this.isNoConfim){
|
|
this.$util.modal('','有商品的购买量没达到最小起订量,请修改数量后再次提交结算','去修改','',false,() =>{})
|
|
this.$util.modal('','有商品的购买量没达到最小起订量,请修改数量后再次提交结算','去修改','',false,() =>{})
|
|
return;
|
|
return;
|
|
- }else{
|
|
|
|
- let productID = '';
|
|
|
|
- this.goodsList.forEach(el=>{//获取勾选的商品ID拼接字符串逗号隔开,最后一个逗号去掉
|
|
|
|
- el.productsList.forEach(pros=>{
|
|
|
|
- if(pros.productsChecked){
|
|
|
|
- productID += pros.productID+','
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- })
|
|
|
|
- let cartPramsData={
|
|
|
|
- allPrice:this.allPrice,
|
|
|
|
- allCount:this.allCount,
|
|
|
|
- productID:productID.substring(0,productID.lastIndexOf(',')),
|
|
|
|
- productCount:''
|
|
|
|
- }
|
|
|
|
- this.$api.navigateTo(`/pages/user/order/create-order?data=${JSON.stringify({data:cartPramsData})}`)
|
|
|
|
}
|
|
}
|
|
|
|
+ let productID = '';
|
|
|
|
+ this.goodsList.forEach(el=>{//获取勾选的商品ID拼接字符串逗号隔开,最后一个逗号去掉
|
|
|
|
+ el.productsList.forEach(pros=>{
|
|
|
|
+ if(pros.productsChecked){
|
|
|
|
+ productID += pros.productID+','
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ let cartPramsData={
|
|
|
|
+ allPrice:this.allPrice,
|
|
|
|
+ allCount:this.allCount,
|
|
|
|
+ productID:productID.substring(0,productID.lastIndexOf(',')),
|
|
|
|
+ productCount:''
|
|
|
|
+ }
|
|
|
|
+ this.$api.navigateTo(`/pages/user/order/create-order?data=${JSON.stringify({data:cartPramsData})}`)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
showDelManager(){//显示删除商品管理
|
|
showDelManager(){//显示删除商品管理
|
|
@@ -820,6 +827,11 @@
|
|
padding: 10rpx;
|
|
padding: 10rpx;
|
|
}
|
|
}
|
|
.text{
|
|
.text{
|
|
|
|
+ display: block;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ text-overflow:ellipsis;
|
|
|
|
+ white-space: nowrap;
|
|
|
|
+ text-align: right;
|
|
margin-left: 37rpx;
|
|
margin-left: 37rpx;
|
|
font-size: $font-size-28;
|
|
font-size: $font-size-28;
|
|
color: $text-color;
|
|
color: $text-color;
|