Commit 933f641d authored by dragondean@qq.com's avatar dragondean@qq.com

优化空运批量加价无有效内容提示

parent f0b0bd14
......@@ -279,6 +279,9 @@ export default {
if(ignoreAll){
msgArr.push(this.$t("{n}个全包阶梯价", {n: ignoreAll}))
}
if(!data.fullPriceStepList?.length){
return this.$message.error(this.$t('请设置全包价'))
}
}else{
const ignoreFreight = this.form.freightPriceStepList.length - data.freightPriceStepList.length
const ignoreClearance = this.form.clearancePriceStepList.length - data.clearancePriceStepList.length
......@@ -289,6 +292,10 @@ export default {
if(ignoreClearance){
msgArr.push(this.$t("{n}个清关费阶梯价", {n: ignoreClearance}))
}
if(!data.freightPriceStepList?.length && !data.clearancePriceStepList?.length){
return this.$message.error(this.$t('请设置运费或清关费'))
}
}
let msg = this.$t('已选择{route}条路线,{product}个商品', {
route: data.lineChannelList.length,
......
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