|
@@ -1287,7 +1287,11 @@ const clickSaveShippingPackage = () => {
|
|
|
if (formData.data.id) {
|
|
|
type = "edit";
|
|
|
}
|
|
|
- proxy.post("/orderInfo/" + type, formData.data).then(() => {
|
|
|
+ let bodyData = proxy.deepClone(formData.data);
|
|
|
+ if (bodyData.departmentId == "0") {
|
|
|
+ delete bodyData.orderPackageBomList;
|
|
|
+ }
|
|
|
+ proxy.post("/orderInfo/" + type, bodyData).then(() => {
|
|
|
ElMessage({
|
|
|
message: type == "add" ? "添加成功" : "编辑成功",
|
|
|
type: "success",
|
|
@@ -1310,7 +1314,11 @@ const clickSaveShippingPackage = () => {
|
|
|
if (formData.data.id) {
|
|
|
type = "edit";
|
|
|
}
|
|
|
- proxy.post("/orderInfo/" + type, formData.data).then(() => {
|
|
|
+ let bodyData = proxy.deepClone(formData.data);
|
|
|
+ if (bodyData.departmentId == "0") {
|
|
|
+ delete bodyData.orderPackageBomList;
|
|
|
+ }
|
|
|
+ proxy.post("/orderInfo/" + type, bodyData).then(() => {
|
|
|
ElMessage({
|
|
|
message: type == "add" ? "添加成功" : "编辑成功",
|
|
|
type: "success",
|