|
@@ -1061,7 +1061,6 @@ const typeList = ref([
|
|
|
},
|
|
|
]);
|
|
|
const selectProduct = (row, SKU) => {
|
|
|
- console.log(row, SKU, "222");
|
|
|
if (row.id) {
|
|
|
let list = formData.data.orderSkuList.filter((item) => item.skuSpecId === row.id && item.bomSpecId === row.bomSpecId);
|
|
|
if (list && list.length > 0) {
|
|
@@ -1355,29 +1354,21 @@ const clickSaveShippingPackage = () => {
|
|
|
formData.data.totalAmount = calculatedTotalAmount();
|
|
|
formData.data.proofingFee = 0;
|
|
|
let type = "add";
|
|
|
- if (formData.data.id && status == "20") {
|
|
|
- proxy.post("/orderInfo/confirmation", formData.data).then(() => {
|
|
|
- ElMessage({ message: "提交成功", type: "success" });
|
|
|
- refreshStore().setRefresh("order");
|
|
|
- clickCancel();
|
|
|
- });
|
|
|
- } else {
|
|
|
- if (formData.data.id) {
|
|
|
- type = "edit";
|
|
|
- }
|
|
|
- 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",
|
|
|
- });
|
|
|
- refreshStore().setRefresh("order");
|
|
|
- clickCancel();
|
|
|
- });
|
|
|
+ if (formData.data.id) {
|
|
|
+ type = "edit";
|
|
|
}
|
|
|
+ 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",
|
|
|
+ });
|
|
|
+ refreshStore().setRefresh("order");
|
|
|
+ clickCancel();
|
|
|
+ });
|
|
|
} else {
|
|
|
ElMessageBox.confirm("是否确认无产品发货包装", "提示", {
|
|
|
confirmButtonText: "确定",
|