Commit 9a503042 authored by Smile's avatar Smile Committed by wux

需求100:空运屏蔽已关闭的渠道价格

parent ad32a0da
...@@ -4939,6 +4939,7 @@ ...@@ -4939,6 +4939,7 @@
"标题(中文)": "Title (Chinese)", "标题(中文)": "Title (Chinese)",
"标题(英文)": "Title (English)", "标题(英文)": "Title (English)",
"标题(法文)": "Title (French)", "标题(法文)": "Title (French)",
"是否确认删除广告设置编号为'{0}'的数据项?": "Are you sure you want to delete the advertisement setting with ID '{0}'?" "是否确认删除广告设置编号为'{0}'的数据项?": "Are you sure you want to delete the advertisement setting with ID '{0}'?",
"渠道已关闭,禁止下单": "The channel has been closed and orders are prohibited"
} }
...@@ -437,13 +437,18 @@ ...@@ -437,13 +437,18 @@
<el-table-column prop="price" :label="$t('价格')" align="center"> <el-table-column prop="price" :label="$t('价格')" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="scope.row.needOrderInquiry == 1"> <template v-if="!isChannelClosed(scope.row.shippingChannelId)">
<div v-if="scope.row.needOrderInquiry == 1"> <div style="color: red" v-if="!isChannelClosed(scope.row.shippingChannelId)">
{{ $t("单询无价格,请联系市场部") }} {{ $t("渠道已关闭,禁止下单") }}
</div> </div>
</template> </template>
<template v-else> <template v-else>
<template v-if="scope.row.stepPrice == 1"> <template v-if="scope.row.needOrderInquiry == 1">
<div v-if="scope.row.needOrderInquiry == 1">
{{ $t("单询无价格,请联系市场部") }}
</div>
</template>
<template v-else-if="scope.row.stepPrice == 1">
<!--全包价--> <!--全包价-->
<div v-if="scope.row.priceType"> <div v-if="scope.row.priceType">
<div <div
...@@ -1052,6 +1057,12 @@ export default { ...@@ -1052,6 +1057,12 @@ export default {
return this.keyedChannel[id] ? this.keyedChannel[id].nameZh : null; return this.keyedChannel[id] ? this.keyedChannel[id].nameZh : null;
}; };
}, },
// 根据渠道id获取渠道是否关闭
isChannelClosed() {
return (id) => {
return this.keyedChannel[id] ? this.keyedChannel[id].status : null;
};
},
// 根据类型获取类型名称 // 根据类型获取类型名称
getTypeName() { getTypeName() {
return (typeId) => { return (typeId) => {
......
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