Commit 6f5467b7 authored by dragondean@qq.com's avatar dragondean@qq.com

阶梯价为空兼容

parent 352f4694
......@@ -139,7 +139,7 @@
<el-table-column prop="price" :label="$t('价格')" align="center">
<template slot-scope="scope">
<template v-if="scope.row.stepPrice == 1">
<template v-if="scope.row.stepPrice == 1 && scope.row.priceStepList && scope.row.priceStepList.length">
{{$t("第{no}阶梯({start}~{end}{weightUnit}", {
no: 1,
start: scope.row.priceStepList[0].startNum,
......@@ -171,6 +171,9 @@
</div>
<el-button type="text" @click="showMoreStepPriceItem=scope.row">{{$t('查看更多')}}</el-button>
</template>
<template v-else-if="scope.row.stepPrice">
{{$t('缺少阶梯价格设置')}}
</template>
<template v-else>
<div v-if="scope.row.priceType == 0">
{{$t('运费')}}:{{ getCurrencySymbol(scope.row.transportPriceUnit) + scope.row.transportPrice}}&nbsp;
......
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