Commit 14b81c4c authored by 332784038@qq.com's avatar 332784038@qq.com

编辑线路价格得包装类型转换bug修复

parent 446a923c
...@@ -637,7 +637,7 @@ export default { ...@@ -637,7 +637,7 @@ export default {
if (this.form.freightPricePackagingList?.length) { if (this.form.freightPricePackagingList?.length) {
this.form.freightPricePackagingList.forEach((item) => { this.form.freightPricePackagingList.forEach((item) => {
if (!item.packagingTypes) { if (!item.packagingTypes) {
this.$set(item, "packagingTypes", []); this.$set(item, "packagingTypes", "");
} else if (typeof item.packagingTypes == "string") { } else if (typeof item.packagingTypes == "string") {
item.packagingTypes = item.packagingTypes.split(","); item.packagingTypes = item.packagingTypes.split(",");
} }
...@@ -874,7 +874,11 @@ export default { ...@@ -874,7 +874,11 @@ export default {
return packging return packging
.filter((item) => !!item.packagingTypes) .filter((item) => !!item.packagingTypes)
.map((item) => { .map((item) => {
item.packagingTypes = item.packagingTypes?.join(",") || ""; if (item.packagingTypes.length === 0){
item.packagingTypes = "";
} else {
item.packagingTypes = item.packagingTypes?.join(",") || "";
}
return item; return item;
}); });
}, },
...@@ -953,7 +957,7 @@ export default { ...@@ -953,7 +957,7 @@ export default {
}); });
if (this.form.needOrderInquiry == 0) { if (this.form.needOrderInquiry == 0) {
//不是单询价才校验价格参数 lanbm 2024-06-17 //不是单询价才校验价格参数 lanbm 2024-06-17
// 阶梯价 // 阶梯价
if (this.form.stepPrice) { if (this.form.stepPrice) {
let isValid = true; let isValid = true;
...@@ -1040,7 +1044,7 @@ export default { ...@@ -1040,7 +1044,7 @@ export default {
}); });
} }
} }
} }
// 修改单条路线 // 修改单条路线
......
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