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

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

parent 446a923c
......@@ -637,7 +637,7 @@ export default {
if (this.form.freightPricePackagingList?.length) {
this.form.freightPricePackagingList.forEach((item) => {
if (!item.packagingTypes) {
this.$set(item, "packagingTypes", []);
this.$set(item, "packagingTypes", "");
} else if (typeof item.packagingTypes == "string") {
item.packagingTypes = item.packagingTypes.split(",");
}
......@@ -874,7 +874,11 @@ 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;
});
},
......
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