Commit 3de041ee authored by Smile's avatar Smile

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

parent 7a7ed0aa
......@@ -4939,6 +4939,7 @@
"标题(中文)": "Title (Chinese)",
"标题(英文)": "Title (English)",
"标题(法文)": "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 @@
<el-table-column prop="price" :label="$t('价格')" align="center">
<template slot-scope="scope">
<template v-if="scope.row.needOrderInquiry == 1">
<div v-if="scope.row.needOrderInquiry == 1">
{{ $t("单询无价格,请联系市场部") }}
<template v-if="!isChannelClosed(scope.row.shippingChannelId)">
<div style="color: red" v-if="!isChannelClosed(scope.row.shippingChannelId)">
{{ $t("渠道已关闭,禁止下单") }}
</div>
</template>
<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
......@@ -1052,6 +1057,12 @@ export default {
return this.keyedChannel[id] ? this.keyedChannel[id].nameZh : null;
};
},
// 根据渠道id获取渠道是否关闭
isChannelClosed() {
return (id) => {
return this.keyedChannel[id] ? this.keyedChannel[id].status : null;
};
},
// 根据类型获取类型名称
getTypeName() {
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