|
@@ -13,7 +13,9 @@
|
|
<view class="freight-left">运费:</view>
|
|
<view class="freight-left">运费:</view>
|
|
<view class="freight-right">
|
|
<view class="freight-right">
|
|
<view class="freight-text">¥{{ handleTotalPostage | NumFormat }}</view>
|
|
<view class="freight-text">¥{{ handleTotalPostage | NumFormat }}</view>
|
|
- <!-- <view class="select"><text class="iconfont icon-xiayibu"></text></view> -->
|
|
|
|
|
|
+ <view class="select" v-if="supplier.coldChain > 0" @click="handlePupShow">
|
|
|
|
+ <text class="iconfont icon-xiayibu"></text>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
@@ -23,17 +25,21 @@
|
|
(supplier.postageFlag === 1 && supplier.designatedFlag === 3)
|
|
(supplier.postageFlag === 1 && supplier.designatedFlag === 3)
|
|
"
|
|
"
|
|
>
|
|
>
|
|
- <view class="freight-main">
|
|
|
|
|
|
+ <view class="freight-main">
|
|
<view class="freight-left">运费:</view>
|
|
<view class="freight-left">运费:</view>
|
|
<view class="freight-right">
|
|
<view class="freight-right">
|
|
<template v-if="handlePostageFlag === 1">
|
|
<template v-if="handlePostageFlag === 1">
|
|
<view class="freight-text">¥{{ handleTotalPostage | NumFormat }}</view>
|
|
<view class="freight-text">¥{{ handleTotalPostage | NumFormat }}</view>
|
|
</template>
|
|
</template>
|
|
<template v-if="handlePostageFlag === 2">
|
|
<template v-if="handlePostageFlag === 2">
|
|
- <view v-if="handleSupplier.isColdChina" class="freight-text" >¥{{ handleTotalPostage | NumFormat }}</view>
|
|
|
|
|
|
+ <view v-if="handleSupplier.isColdChina" class="freight-text"
|
|
|
|
+ >¥{{ handleTotalPostage | NumFormat }}</view
|
|
|
|
+ >
|
|
<view v-else class="freight-text">到付</view>
|
|
<view v-else class="freight-text">到付</view>
|
|
</template>
|
|
</template>
|
|
- <!-- <view class="select"><text class="iconfont icon-xiayibu"></text></view> -->
|
|
|
|
|
|
+ <view class="select" v-if="supplier.coldChain > 0" @click="handlePupShow">
|
|
|
|
+ <text class="iconfont icon-xiayibu"></text>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
@@ -46,7 +52,7 @@
|
|
<tui-bottom-popup :radius="true" :show="popupShow" @close="hidePopup">
|
|
<tui-bottom-popup :radius="true" :show="popupShow" @close="hidePopup">
|
|
<view class="freight-title">运费设置</view>
|
|
<view class="freight-title">运费设置</view>
|
|
<view class="freight-content">
|
|
<view class="freight-content">
|
|
- <radio-group @change="radioChange" v-if="handleDesignatedFlag!=1">
|
|
|
|
|
|
+ <!-- <radio-group @change="radioChange" v-if="handleDesignatedFlag != 1">
|
|
<label v-for="(item, index) in radioItems" :key="index">
|
|
<label v-for="(item, index) in radioItems" :key="index">
|
|
<radio
|
|
<radio
|
|
style="transform:scale(0.7)"
|
|
style="transform:scale(0.7)"
|
|
@@ -54,12 +60,12 @@
|
|
:id="item.value"
|
|
:id="item.value"
|
|
:value="item.value"
|
|
:value="item.value"
|
|
:checked="item.checked"
|
|
:checked="item.checked"
|
|
- ></radio>
|
|
|
|
|
|
+ />
|
|
<label :for="item.value" class="label">
|
|
<label :for="item.value" class="label">
|
|
<text>{{ item.name }}</text>
|
|
<text>{{ item.name }}</text>
|
|
</label>
|
|
</label>
|
|
</label>
|
|
</label>
|
|
- </radio-group>
|
|
|
|
|
|
+ </radio-group> -->
|
|
<template v-if="handlePostageFlag === 1">
|
|
<template v-if="handlePostageFlag === 1">
|
|
<view class="freight-form">
|
|
<view class="freight-form">
|
|
<view class="freight-form-item" v-if="handleSupplier.coldChain > 0">
|
|
<view class="freight-form-item" v-if="handleSupplier.coldChain > 0">
|
|
@@ -74,7 +80,7 @@
|
|
</text>
|
|
</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="freight-form-item" v-if="handleDesignatedFlag!=1">
|
|
|
|
|
|
+ <view class="freight-form-item" v-if="handleDesignatedFlag != 1">
|
|
<view class="label">其他运费 </view>
|
|
<view class="label">其他运费 </view>
|
|
<view class="texts red">¥{{ handleSupplier.postage | NumFormat }} </view>
|
|
<view class="texts red">¥{{ handleSupplier.postage | NumFormat }} </view>
|
|
</view>
|
|
</view>
|
|
@@ -132,19 +138,19 @@ export default {
|
|
return {
|
|
return {
|
|
popupShow: false,
|
|
popupShow: false,
|
|
isColdChina: false,
|
|
isColdChina: false,
|
|
- handlePostage:0,
|
|
|
|
|
|
+ handlePostage: 0,
|
|
handlePostageFlag: 1,
|
|
handlePostageFlag: 1,
|
|
- handleDesignatedFlag:0,
|
|
|
|
|
|
+ handleDesignatedFlag: 0,
|
|
radioItems: [
|
|
radioItems: [
|
|
{
|
|
{
|
|
name: '不包邮',
|
|
name: '不包邮',
|
|
value: 1,
|
|
value: 1,
|
|
checked: true
|
|
checked: true
|
|
- },
|
|
|
|
- {
|
|
|
|
- name: '到付',
|
|
|
|
- value: 2
|
|
|
|
}
|
|
}
|
|
|
|
+ // {
|
|
|
|
+ // name: '到付',
|
|
|
|
+ // value: 2
|
|
|
|
+ // }
|
|
],
|
|
],
|
|
handleSupplier: {}
|
|
handleSupplier: {}
|
|
}
|
|
}
|
|
@@ -206,7 +212,7 @@ export default {
|
|
radioChange($event) {
|
|
radioChange($event) {
|
|
// const postage = this.isColdChina ? ( this.handleSupplier.postage + this.handleSupplier.coldChain ) : this.handleSupplier.postage
|
|
// const postage = this.isColdChina ? ( this.handleSupplier.postage + this.handleSupplier.coldChain ) : this.handleSupplier.postage
|
|
this.handlePostageFlag = this.handleSupplier.handlePostageFlag = $event.detail.value * 1
|
|
this.handlePostageFlag = this.handleSupplier.handlePostageFlag = $event.detail.value * 1
|
|
- console.log('handlePostageFlag',this.handlePostageFlag)
|
|
|
|
|
|
+ console.log('handlePostageFlag', this.handlePostageFlag)
|
|
if (this.handlePostageFlag === 1) {
|
|
if (this.handlePostageFlag === 1) {
|
|
this.handleSupplier.postage = this.handlePostage
|
|
this.handleSupplier.postage = this.handlePostage
|
|
this.handleSupplier.totalPrice = Number(
|
|
this.handleSupplier.totalPrice = Number(
|
|
@@ -218,7 +224,7 @@ export default {
|
|
this.repiceNumSub(this.handleSupplier.totalPrice, this.handleSupplier.postage)
|
|
this.repiceNumSub(this.handleSupplier.totalPrice, this.handleSupplier.postage)
|
|
)
|
|
)
|
|
this.handleSupplier.postage = 0
|
|
this.handleSupplier.postage = 0
|
|
- console.log('2222222222',this.handleSupplier.totalPrice)
|
|
|
|
|
|
+ console.log('2222222222', this.handleSupplier.totalPrice)
|
|
this.$emit('changePostage', this.handleSupplier, this.index)
|
|
this.$emit('changePostage', this.handleSupplier, this.index)
|
|
}
|
|
}
|
|
},
|
|
},
|