Commit 77dab022 authored by dragondean@qq.com's avatar dragondean@qq.com Committed by 332784038@qq.com

修复海运价格编辑全包阶梯价提交异常

parent eb4e04ab
......@@ -874,11 +874,7 @@ export default {
return packging
.filter((item) => !!item.packagingTypes)
.map((item) => {
if (item.packagingTypes.length === 0){
item.packagingTypes = "";
} else {
item.packagingTypes = item.packagingTypes?.join(",") || "";
}
return item;
});
},
......@@ -956,10 +952,10 @@ export default {
isAllProduct: 0,
});
if (this.form.needOrderInquiry == 0) {
//不是单询价才校验价格参数 lanbm 2024-06-17
// 阶梯价
if (this.form.stepPrice) {
// 单询不校验
if (this.form.needOrderInquiry == 0) {
let isValid = true;
for (let stepPrice of this.$refs.stepPrice) {
if (!stepPrice.validate()) {
......@@ -968,6 +964,7 @@ export default {
}
}
if (!isValid) return;
}
// 全包价
if (this.form.priceType == 1) {
......@@ -985,9 +982,16 @@ export default {
);
delete data.fullPriceStepList;
}
// 删除非阶梯价 包装费字段
delete data.clearancePricePackagingList
delete data.freightPricePackagingList
delete data.fullPricePackagingList
}
//海运非阶梯价校验
else {
// 单询不校验
if (this.form.needOrderInquiry == 0) {
// 有多个组件则表示清关费 + 运费
if (this.$refs.seaPrice?.length) {
let isValid = true;
......@@ -1003,6 +1007,7 @@ export default {
else if (this.$refs.seaPrice && !this.$refs.seaPrice.validate()) {
return;
}
}
// 格式化
if (this.form.priceType === 1) {
......@@ -1045,8 +1050,6 @@ export default {
}
}
}
// 修改单条路线
if (this.$route.query.action == "update") {
this.loading = true;
......
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