Commit 79999e6c authored by dragondean@qq.com's avatar dragondean@qq.com

几个bug

parent 5c0d0d47
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
<el-table-column prop="brand" :label="$t('品牌')" width="90px"> <el-table-column prop="brand" :label="$t('品牌')" width="90px">
<template slot-scope="{row}"> <template slot-scope="{row}">
<template v-if="row.brandName">{{row.brandName}}</template> <template v-if="row.brandName">{{row.brandName}}</template>
<dict-tagv-else :type="DICT_TYPE.ECW_IS_BRAND" :value="row.brandType" /> <dict-tag v-else :type="DICT_TYPE.ECW_IS_BRAND" :value="row.brandType" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="num" :label="$t('填单件数')" width="90px"/> <el-table-column prop="num" :label="$t('填单件数')" width="90px"/>
...@@ -170,7 +170,7 @@ ...@@ -170,7 +170,7 @@
<template v-if="row.charging ==1"> <template v-if="row.charging ==1">
<template v-if="!row.seaFreight">未报价</template> <template v-if="!row.seaFreight">未报价</template>
<div @click="showFeeDetail(row, 'clearance')" v-else>{{$t('全包价')}} {{row.oneSeaFreight}} {{currencyMap[row.seaFreightCurrency]}} / {{unitMap[row.seaFreightVolume]}}</div> <el-link type="primary" @click="showFeeDetail(row, 'clearance')" v-else>{{$t('全包价')}} {{row.oneSeaFreight}} {{currencyMap[row.seaFreightCurrency]}} / {{unitMap[row.seaFreightVolume]}}</el-link>
</template> </template>
<template v-else-if="!row.seaFreight && !row.clearanceFreight">未报价</template> <template v-else-if="!row.seaFreight && !row.clearanceFreight">未报价</template>
<template v-else> <template v-else>
...@@ -271,7 +271,7 @@ ...@@ -271,7 +271,7 @@
<el-dialog :title="$t('费用详情')" :visible="!!showFeeDetailDialog" :before-close="closeFeeDetail"> <el-dialog :title="$t('费用详情')" :visible="!!showFeeDetailDialog" :before-close="closeFeeDetail">
<el-row v-if="feeDetail"> <el-row v-if="feeDetail">
<el-col :span="12"> <el-col :span="12">
<div>{{$t('运费')}}</div> <div>{{feeDetail.charging ? $t('全包价') : $t('运费')}}</div>
<div v-for="item in feeDetail.freight"> <div v-for="item in feeDetail.freight">
{{item.label}}: {{item.value}} {{item.label}}: {{item.value}}
<template v-if="item.currency"> <template v-if="item.currency">
...@@ -279,7 +279,7 @@ ...@@ -279,7 +279,7 @@
</template> </template>
</div> </div>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12" v-if="feeDetail.charging != 1">
<div>{{$t('清关费')}}</div> <div>{{$t('清关费')}}</div>
<div v-for="item in feeDetail.clearance"> <div v-for="item in feeDetail.clearance">
{{item.label}}: {{item.value}} {{item.label}}: {{item.value}}
...@@ -417,16 +417,21 @@ export default { ...@@ -417,16 +417,21 @@ export default {
let clearanceFields = [{field: 'oneClearanceFreight', label: this.$t('成交单价')}] let clearanceFields = [{field: 'oneClearanceFreight', label: this.$t('成交单价')}]
// 不是特价则显示其他字段 // 不是特价则显示其他字段
if(!row.specialPriceType){ if(!row.specialPriceType){
freightFields = freightFields.concat([ freightFields = [
// {field: 'oneSeaFreight', label: '成交单价'}, // {field: 'oneSeaFreight', label: '成交单价'},
{field: 'originalSeaFreight', label: this.$t('默认单价(无牌无液无电)')}, {field: 'originalSeaFreight', label: this.$t('默认单价(无牌无液无电)')},
{field: 'brandFreightPrice', label: this.$t('品牌加价')}, {field: 'brandFreightPrice', label: this.$t('品牌加价')},
{field: 'liquidFreightPrice', label: this.$t('液体加价')}, {field: 'liquidFreightPrice', label: this.$t('液体加价')},
{field: 'electrifiedFreightPrice', label: this.$t('带电加价')}, {field: 'electrifiedFreightPrice', label: this.$t('带电加价')},
{field: 'discountFreightPrice', label: this.$t('优惠活动减免')}, {field: 'discountFreightPrice', label: this.$t('优惠活动减免')},
{field: 'plainCommission', label: this.$t('明佣')}, {field: 'plainCommission', label: this.$t('明佣')}
{field: 'afterDiscountSeaFreight', label: this.$t('优惠后单价')} ].concat(freightFields)
]).forEach(item => {
// 有减免金额才显示优惠后单价
if(row['discountFreightPrice'] && row['discountFreightPrice'] > 0){
freightFields.push({field: 'afterDiscountSeaFreight', label: this.$t('优惠后单价')})
}
freightFields.forEach(item => {
if(row[item.field]){ if(row[item.field]){
freight.push({ freight.push({
label: item.label, label: item.label,
...@@ -438,14 +443,17 @@ export default { ...@@ -438,14 +443,17 @@ export default {
} }
}) })
clearanceFields = clearanceFields.concat([ clearanceFields = [
{field: 'originalClearanceFreight', label: this.$t('默认单价(无牌无液无电)')}, {field: 'originalClearanceFreight', label: this.$t('默认单价(无牌无液无电)')},
{field: 'brandClearanceFeePrice', label: this.$t('品牌加价')}, {field: 'brandClearanceFeePrice', label: this.$t('品牌加价')},
{field: 'liquidClearanceFeePrice', label: this.$t('液体加价')}, {field: 'liquidClearanceFeePrice', label: this.$t('液体加价')},
{field: 'electrifiedClearanceFeePrice', label: this.$t('带电加价')}, {field: 'electrifiedClearanceFeePrice', label: this.$t('带电加价')},
{field: 'discountClearanceFeePrice', label: this.$t('优惠活动减免')}, {field: 'discountClearanceFeePrice', label: this.$t('优惠活动减免')}
{field: 'afterDiscountClearanceFreight', label: this.$t('优惠后单价')} ].concat(clearanceFields)
]).forEach(item => { if(row['discountClearanceFeePrice'] && row['discountClearanceFeePrice'] > 0){
clearanceFields.push({field: 'afterDiscountClearanceFreight', label: this.$t('优惠后单价')})
}
clearanceFields.forEach(item => {
if(row[item.field]){ if(row[item.field]){
clearance.push({ clearance.push({
label: item.label, label: item.label,
...@@ -466,7 +474,7 @@ export default { ...@@ -466,7 +474,7 @@ export default {
label: '价格更新时间', label: '价格更新时间',
value: parseTime(row.updateTime) value: parseTime(row.updateTime)
}) })
this.feeDetail = {freight, clearance} this.feeDetail = {freight, clearance, charging: row.charging}
}, },
closeFeeDetail(){ closeFeeDetail(){
......
...@@ -492,6 +492,9 @@ export default { ...@@ -492,6 +492,9 @@ export default {
if(this.form.needPay){ if(this.form.needPay){
this.needPay = true this.needPay = true
} }
if(this.form.stepPrice == 1){
this.stepPrice = true
}
if(res.data.validateStartDate){ if(res.data.validateStartDate){
this.form.validateStartDate = parseTime(res.data.validateStartDate) this.form.validateStartDate = parseTime(res.data.validateStartDate)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment