QuKatie 3 سال پیش
والد
کامیت
6f96ddd0c1

+ 5 - 2
src/views/exportTrade/customerInquiry/detailsPage.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="borderless" v-loading="loading">
+  <div class="borderless" v-loading="pageLoading">
     <div class="customer-head">
       <div class="customer-back">
         <!--        <i class="back-icon el-icon-arrow-left"></i><i style="font-style:normal">返回管理列表</i>-->
@@ -657,7 +657,6 @@ export default {
         currentPage: 1,
         total: 0
       },
-      loading: false,
       goodsOption: {},
       data: [],
       goodsList: [],
@@ -670,7 +669,9 @@ export default {
       olddata: [],
       oldorderFeesList: [],
       reData: null,
+      loading:false,
       subLoading: false,
+      pageLoading:true,
       showBut: true
     };
   },
@@ -993,6 +994,7 @@ export default {
     getDetail(id) {
       this.loading = true;
       this.showBut = false;
+      this.pageLoading= true;
       detail(id)
         .then(res => {
           this.form = res.data.data;
@@ -1006,6 +1008,7 @@ export default {
         .finally(() => {
           this.loading = false;
           this.showBut = true;
+          this.pageLoading=false;
         });
     },
     //修改提交触发

+ 53 - 35
src/views/exportTrade/invoice/detailsPage.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="borderless" v-loading="loading">
+  <div class="borderless" v-loading="pageLoading">
     <div class="customer-head">
       <div class="customer-back">
         <!--        <i class="back-icon el-icon-arrow-left"></i><i style="font-style:normal">返回管理列表</i>-->
@@ -11,7 +11,7 @@
           >返回列表
         </el-button>
       </div>
-      <div class="add-customer-btn">
+      <div class="add-customer-btn" v-if="showBut">
         <el-button
           type="info"
           @click.stop="editCustomer('save')"
@@ -31,6 +31,7 @@
           type="primary"
           :disabled="disabled"
           @click="editCustomer('submit')"
+          :loading="subLoading"
           v-if="detailData.status != 1"
           >{{ form.id ? "确认修改" : "确认新增" }}
         </el-button>
@@ -431,7 +432,6 @@ export default {
         currentPage: 1,
         total: 0
       },
-      loading: false,
       goodsOption: {},
       data: [],
       goodsList: [],
@@ -447,8 +447,10 @@ export default {
       oldorderFeesList: [],
       oldorderFilesList: [],
       reData: null,
+      loading: false,
       subLoading: false,
-      showBut:true,
+      pageLoading: true,
+      showBut: true
     };
   },
   props: {
@@ -676,19 +678,30 @@ export default {
       this.dialogVisible = !this.dialogVisible;
     },
     getDetail(id) {
-      detail(id).then(res => {
-        this.form = res.data.data;
-        this.data = res.data.data.deliveryItemsList;
-        this.orderFeesList = res.data.data.deliveryFeesList;
-        this.orderFilesList = res.data.data.deliveryFilesList;
-        this.configuration.dicData = this.form.corpName;
-        this.oldform = res.data.data;
-        this.olddata = this.deepClone(res.data.data.deliveryItemsList);
-        this.oldorderFeesList = this.deepClone(res.data.data.deliveryFeesList);
-        this.oldorderFilesList = this.deepClone(
-          res.data.data.deliveryFilesList
-        );
-      });
+      this.loading = true;
+      this.showBut = false;
+      this.pageLoading = true;
+      detail(id)
+        .then(res => {
+          this.form = res.data.data;
+          this.data = res.data.data.deliveryItemsList;
+          this.orderFeesList = res.data.data.deliveryFeesList;
+          this.orderFilesList = res.data.data.deliveryFilesList;
+          this.configuration.dicData = this.form.corpName;
+          this.oldform = res.data.data;
+          this.olddata = this.deepClone(res.data.data.deliveryItemsList);
+          this.oldorderFeesList = this.deepClone(
+            res.data.data.deliveryFeesList
+          );
+          this.oldorderFilesList = this.deepClone(
+            res.data.data.deliveryFilesList
+          );
+        })
+        .finally(() => {
+          this.loading = false;
+          this.showBut = true;
+          this.pageLoading = false;
+        });
     },
     getGenerate(data) {
       this.form = data;
@@ -715,29 +728,34 @@ export default {
           }
           const orderFilesList = this.$refs.uploadFile.submitData();
           if (status == "submit") {
+            this.subLoading = true;
             submit({
               ...this.form,
               deliveryItemsList: this.data,
               deliveryFeesList: orderFeesList,
               deliveryFilesList: orderFilesList
-            }).then(res => {
-              this.$message.success(this.form.id ? "修改成功" : "提交成功");
-              this.form = res.data.data;
-              this.data = res.data.data.deliveryItemsList;
-              this.orderFeesList = res.data.data.deliveryFeesList;
-              this.orderFilesList = res.data.data.deliveryFilesList;
-              this.oldform = res.data.data;
-              this.olddata = this.deepClone(res.data.data.deliveryItemsList);
-              this.oldorderFeesList = this.deepClone(
-                res.data.data.deliveryFeesList
-              );
-              this.oldorderFilesList = this.deepClone(
-                res.data.data.deliveryFilesList
-              );
-              if (status2 == "goBack") {
-                this.$emit("goBack");
-              }
-            });
+            })
+              .then(res => {
+                this.$message.success(this.form.id ? "修改成功" : "提交成功");
+                this.form = res.data.data;
+                this.data = res.data.data.deliveryItemsList;
+                this.orderFeesList = res.data.data.deliveryFeesList;
+                this.orderFilesList = res.data.data.deliveryFilesList;
+                this.oldform = res.data.data;
+                this.olddata = this.deepClone(res.data.data.deliveryItemsList);
+                this.oldorderFeesList = this.deepClone(
+                  res.data.data.deliveryFeesList
+                );
+                this.oldorderFilesList = this.deepClone(
+                  res.data.data.deliveryFilesList
+                );
+                if (status2 == "goBack") {
+                  this.$emit("goBack");
+                }
+              })
+              .finally(() => {
+                this.subLoading = false;
+              });
           }
           if (status == "save") {
             this.$confirm("此操作将确认发货, 是否继续?", "提示", {

+ 18 - 11
src/views/exportTrade/purchaseContract/detailsPage.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="borderless" v-loading="loading">
+  <div class="borderless" v-loading="pageLoading">
     <div class="customer-head">
       <div class="customer-back">
         <el-button
@@ -18,6 +18,7 @@
           type="primary"
           :disabled="disabled"
           @click="editCustomer"
+          :loading="subLoading"
           v-if="detailData.status != 1"
           >{{ form.id ? "确认修改" : "确认新增" }}
         </el-button>
@@ -49,7 +50,7 @@
             <el-input
               size="mini"
               v-model="form.orderNo"
-              oninput='this.value=this.value.toUpperCase()'
+              oninput="this.value=this.value.toUpperCase()"
               placeholder="请输入 "
               :disabled="detailData.status == 1"
             />
@@ -548,6 +549,7 @@ export default {
       oldorderFeesList: [],
       oldorderFilesList: [],
       subLoading: false,
+      pageLoading: true,
       showBut: true
     };
   },
@@ -776,8 +778,8 @@ export default {
       this.dialogVisible = !this.dialogVisible;
     },
     getDetail(id) {
-      this.loading = true;
       this.showBut = false;
+      this.pageLoading = true;
       detail(id)
         .then(res => {
           this.form = res.data.data;
@@ -803,8 +805,8 @@ export default {
           );
         })
         .finally(() => {
-          this.loading = false;
           this.showBut = true;
+          this.pageLoading = false;
         });
     },
     //修改提交触发
@@ -825,6 +827,7 @@ export default {
             }
           }
           const orderFilesList = this.$refs.uploadFile.submitData();
+          this.subLoading = true;
           submit({
             ...this.form,
             itemsVOList: this.data,
@@ -832,13 +835,17 @@ export default {
             orderFilesList: orderFilesList,
             tradeType: "CK",
             billType: "CG"
-          }).then(res => {
-            this.$message.success(this.form.id ? "修改成功" : "提交成功");
-            this.getDetail(res.data.data);
-            if (status == "goBack") {
-              this.$emit("goBack");
-            }
-          });
+          })
+            .then(res => {
+              this.$message.success(this.form.id ? "修改成功" : "提交成功");
+              this.getDetail(res.data.data);
+              if (status == "goBack") {
+                this.$emit("goBack");
+              }
+            })
+            .finally(() => {
+              this.subLoading = false;
+            });
         } else {
           return false;
         }

+ 45 - 29
src/views/exportTrade/purchaseInquiry/detailsPage.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="borderless" v-loading="loading">
+  <div class="borderless" v-loading="pageLoading">
     <div class="customer-head">
       <div class="customer-back">
         <!--        <i class="back-icon el-icon-arrow-left"></i><i style="font-style:normal">返回管理列表</i>-->
@@ -11,7 +11,7 @@
           >返回列表
         </el-button>
       </div>
-      <div class="add-customer-btn">
+      <div class="add-customer-btn" v-if="showBut">
         <el-button
           type="primary"
           :disabled="detailData.status == 1"
@@ -23,6 +23,7 @@
           type="primary"
           :disabled="detailData.status == 1"
           @click="editCustomer('save')"
+          :loading="subLoading"
           v-if="detailData.status != 1"
           >{{ form.id ? "确认修改" : "确认新增" }}
         </el-button>
@@ -410,7 +411,8 @@ export default {
       },
       olddata: [],
       subLoading: false,
-      showBut:true,
+      pageLoading: true,
+      showBut: true
     };
   },
   props: {
@@ -621,17 +623,24 @@ export default {
       this.dialogVisible = !this.dialogVisible;
     },
     getDetail(id) {
-      detail(id).then(res => {
-        this.form = res.data.data;
-        this.data = res.data.data.orderItemsList
-          ? res.data.data.orderItemsList
-          : [];
-        this.configuration.dicData = this.form.corpsName;
-        this.oldform = res.data.data;
-        this.olddata = this.deepClone(
-          res.data.data.orderItemsList ? res.data.data.orderItemsList : []
-        );
-      });
+      this.showBut = false;
+      this.pageLoading = true;
+      detail(id)
+        .then(res => {
+          this.form = res.data.data;
+          this.data = res.data.data.orderItemsList
+            ? res.data.data.orderItemsList
+            : [];
+          this.configuration.dicData = this.form.corpsName;
+          this.oldform = res.data.data;
+          this.olddata = this.deepClone(
+            res.data.data.orderItemsList ? res.data.data.orderItemsList : []
+          );
+        })
+        .finally(() => {
+          this.showBut = true;
+          this.pageLoading = false;
+        });
     },
     //修改提交触发
     editCustomer(status, status2) {
@@ -639,24 +648,31 @@ export default {
         done();
         if (valid) {
           if (status == "save") {
+            this.subLoading = true;
             submit({
               ...this.form,
               orderItemsList: this.data
-            }).then(res => {
-              this.form = res.data.data;
-              this.data = res.data.data.orderItemsList
-                ? res.data.data.orderItemsList
-                : [];
-              this.configuration.dicData = this.form.corpsName;
-              this.$message.success("修改成功");
-              this.oldform = res.data.data;
-              this.olddata = this.deepClone(
-                res.data.data.orderItemsList ? res.data.data.orderItemsList : []
-              );
-              if (status2 == "goBack") {
-                this.$emit("goBack");
-              }
-            });
+            })
+              .then(res => {
+                this.form = res.data.data;
+                this.data = res.data.data.orderItemsList
+                  ? res.data.data.orderItemsList
+                  : [];
+                this.configuration.dicData = this.form.corpsName;
+                this.$message.success("修改成功");
+                this.oldform = res.data.data;
+                this.olddata = this.deepClone(
+                  res.data.data.orderItemsList
+                    ? res.data.data.orderItemsList
+                    : []
+                );
+                if (status2 == "goBack") {
+                  this.$emit("goBack");
+                }
+              })
+              .finally(() => {
+                this.subLoading = false;
+              });
           }
           if (status == "submit") {
             submitMessage({

+ 51 - 35
src/views/exportTrade/receipt/detailsPage.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="borderless" v-loading="loading">
+  <div class="borderless" v-loading="pageLoading">
     <div class="customer-head">
       <div class="customer-back">
         <!--        <i class="back-icon el-icon-arrow-left"></i><i style="font-style:normal">返回管理列表</i>-->
@@ -11,7 +11,7 @@
           >返回列表
         </el-button>
       </div>
-      <div class="add-customer-btn">
+      <div class="add-customer-btn" v-if="showBut">
         <el-button
           type="info"
           @click.stop="editCustomer('save')"
@@ -31,6 +31,7 @@
           type="primary"
           :disabled="disabled"
           @click="editCustomer('submit')"
+          :loading="subLoading"
           v-if="detailData.status != 1"
           >{{ form.id ? "确认修改" : "确认新增" }}
         </el-button>
@@ -459,7 +460,8 @@ export default {
       oldorderFeesList: [],
       oldorderFilesList: [],
       subLoading: false,
-      showBut:true,
+      pageLoading: true,
+      showBut: true
     };
   },
   props: {
@@ -692,19 +694,28 @@ export default {
       this.dialogVisible = !this.dialogVisible;
     },
     getDetail(id) {
-      detail(id).then(res => {
-        this.form = res.data.data;
-        this.data = res.data.data.deliveryItemsList;
-        this.orderFeesList = res.data.data.deliveryFeesList;
-        this.orderFilesList = res.data.data.deliveryFilesList;
-        this.configuration.dicData = this.form.corpName;
-        this.oldform = res.data.data;
-        this.olddata = this.deepClone(res.data.data.deliveryItemsList);
-        this.oldorderFeesList = this.deepClone(res.data.data.deliveryFeesList);
-        this.oldorderFilesList = this.deepClone(
-          res.data.data.deliveryFilesList
-        );
-      });
+      this.showBut = false;
+      this.pageLoading = true;
+      detail(id)
+        .then(res => {
+          this.form = res.data.data;
+          this.data = res.data.data.deliveryItemsList;
+          this.orderFeesList = res.data.data.deliveryFeesList;
+          this.orderFilesList = res.data.data.deliveryFilesList;
+          this.configuration.dicData = this.form.corpName;
+          this.oldform = res.data.data;
+          this.olddata = this.deepClone(res.data.data.deliveryItemsList);
+          this.oldorderFeesList = this.deepClone(
+            res.data.data.deliveryFeesList
+          );
+          this.oldorderFilesList = this.deepClone(
+            res.data.data.deliveryFilesList
+          );
+        })
+        .finally(() => {
+          this.showBut = true;
+          this.pageLoading = false;
+        });
     },
     //修改提交触发
     editCustomer(status, status2) {
@@ -725,30 +736,35 @@ export default {
           }
           const orderFilesList = this.$refs.uploadFile.submitData();
           if (status == "submit") {
+            this.subLoading = true;
             submit({
               ...this.form,
               deliveryItemsList: this.data,
               deliveryFeesList: orderFeesList,
               deliveryFilesList: orderFilesList
-            }).then(res => {
-              this.form = res.data.data;
-              this.data = res.data.data.deliveryItemsList;
-              this.orderFeesList = res.data.data.deliveryFeesList;
-              this.orderFilesList = res.data.data.deliveryFilesList;
-              this.oldform = res.data.data;
-              this.olddata = this.deepClone(res.data.data.deliveryItemsList);
-              this.oldorderFeesList = this.deepClone(
-                res.data.data.deliveryFeesList
-              );
-              this.oldorderFilesList = this.deepClone(
-                res.data.data.deliveryFilesList
-              );
-              this.configuration.dicData = this.form.corpName;
-              this.$message.success(this.form.id ? "修改成功" : "提交成功");
-              if (status2 == "goBack") {
-                this.$emit("goBack");
-              }
-            });
+            })
+              .then(res => {
+                this.form = res.data.data;
+                this.data = res.data.data.deliveryItemsList;
+                this.orderFeesList = res.data.data.deliveryFeesList;
+                this.orderFilesList = res.data.data.deliveryFilesList;
+                this.oldform = res.data.data;
+                this.olddata = this.deepClone(res.data.data.deliveryItemsList);
+                this.oldorderFeesList = this.deepClone(
+                  res.data.data.deliveryFeesList
+                );
+                this.oldorderFilesList = this.deepClone(
+                  res.data.data.deliveryFilesList
+                );
+                this.configuration.dicData = this.form.corpName;
+                this.$message.success(this.form.id ? "修改成功" : "提交成功");
+                if (status2 == "goBack") {
+                  this.$emit("goBack");
+                }
+              })
+              .finally(() => {
+                this.subLoading = false;
+              });
           }
           if (status == "save") {
             this.$confirm("此操作将确认收货, 是否继续?", "提示", {

+ 45 - 29
src/views/exportTrade/salesContract/detailsPage.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="borderless" v-loading="loading">
+  <div class="borderless" v-loading="pageLoading">
     <div class="customer-head">
       <div class="customer-back">
         <el-button
@@ -10,7 +10,7 @@
           >返回列表
         </el-button>
       </div>
-      <div class="add-customer-btn">
+      <div class="add-customer-btn" v-if="showBut">
         <el-button type="info" @click="saveSell">生成采购单</el-button>
         <el-button type="success" disabled>
           复制新单
@@ -19,6 +19,7 @@
           type="primary"
           :disabled="disabled"
           @click="editCustomer"
+          :loading="subLoading"
           v-if="detailData.status != 1"
           >{{ form.id ? "确认修改" : "确认新增" }}
         </el-button>
@@ -745,6 +746,7 @@ export default {
       oldorderFeesList: [],
       oldorderFilesList: [],
       subLoading: false,
+      pageLoading: true,
       showBut: true
     };
   },
@@ -1047,17 +1049,24 @@ export default {
       this.dialogVisible = !this.dialogVisible;
     },
     getDetail(id) {
-      detail(id).then(res => {
-        this.form = res.data.data;
-        this.data = res.data.data.orderItemsList;
-        this.orderFeesList = res.data.data.orderFeesList;
-        this.orderFilesList = res.data.data.orderFilesList;
-        this.configuration.dicData = this.form.corpName;
-        this.oldform = res.data.data;
-        this.olddata = this.deepClone(res.data.data.orderItemsList);
-        this.oldorderFeesList = this.deepClone(res.data.data.orderFeesList);
-        this.oldorderFilesList = this.deepClone(res.data.data.orderFilesList);
-      });
+      this.showBut = false;
+      this.pageLoading = true;
+      detail(id)
+        .then(res => {
+          this.form = res.data.data;
+          this.data = res.data.data.orderItemsList;
+          this.orderFeesList = res.data.data.orderFeesList;
+          this.orderFilesList = res.data.data.orderFilesList;
+          this.configuration.dicData = this.form.corpName;
+          this.oldform = res.data.data;
+          this.olddata = this.deepClone(res.data.data.orderItemsList);
+          this.oldorderFeesList = this.deepClone(res.data.data.orderFeesList);
+          this.oldorderFilesList = this.deepClone(res.data.data.orderFilesList);
+        })
+        .finally(() => {
+          this.showBut = true;
+          this.pageLoading = false;
+        });
     },
     //修改提交触发
     editCustomer(status) {
@@ -1084,27 +1093,34 @@ export default {
             }
           }
           const orderFilesList = this.$refs.uploadFile.submitData();
+          this.subLoading = true;
           submit({
             ...this.form,
             orderItemsList: this.data,
             orderFeesList: orderFeesList,
             orderFilesList: orderFilesList
-          }).then(res => {
-            this.form = res.data.data;
-            this.data = res.data.data.orderItemsList;
-            this.orderFeesList = res.data.data.orderFeesList;
-            this.orderFilesList = res.data.data.orderFilesList;
-            this.$message.success(this.form.id ? "修改成功" : "提交成功");
-            this.oldform = res.data.data;
-            this.olddata = this.deepClone(res.data.data.orderItemsList);
-            this.oldorderFeesList = this.deepClone(res.data.data.orderFeesList);
-            this.oldorderFilesList = this.deepClone(
-              res.data.data.orderFilesList
-            );
-            if (status == "goBack") {
-              this.$emit("goBack");
-            }
-          });
+          })
+            .then(res => {
+              this.form = res.data.data;
+              this.data = res.data.data.orderItemsList;
+              this.orderFeesList = res.data.data.orderFeesList;
+              this.orderFilesList = res.data.data.orderFilesList;
+              this.$message.success(this.form.id ? "修改成功" : "提交成功");
+              this.oldform = res.data.data;
+              this.olddata = this.deepClone(res.data.data.orderItemsList);
+              this.oldorderFeesList = this.deepClone(
+                res.data.data.orderFeesList
+              );
+              this.oldorderFilesList = this.deepClone(
+                res.data.data.orderFilesList
+              );
+              if (status == "goBack") {
+                this.$emit("goBack");
+              }
+            })
+            .finally(() => {
+              this.subLoading = false;
+            });
         } else {
           return false;
         }

+ 56 - 40
src/views/exportTrade/shippingInquiry/detailsPage.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="borderless" v-loading="loading">
+  <div class="borderless" v-loading="pageLoading">
     <div class="customer-head">
       <div class="customer-back">
         <!--        <i class="back-icon el-icon-arrow-left"></i><i style="font-style:normal">返回管理列表</i>-->
@@ -11,12 +11,13 @@
           >返回列表
         </el-button>
       </div>
-      <div class="add-customer-btn">
+      <div class="add-customer-btn" v-if="showBut">
         <el-button
           type="primary"
           :disabled="disabled && detailData.status == 1"
           @click="editCustomer('submit')"
           v-if="form.id && detailData.status != 1"
+          :loading="subLoading"
           >确认修改
         </el-button>
         <el-button
@@ -330,7 +331,8 @@ export default {
       olddata: [],
       oldfreightData: [],
       subLoading: false,
-      showBut:true,
+      pageLoading: true,
+      showBut: true
     };
   },
   props: {
@@ -474,21 +476,30 @@ export default {
       });
     },
     getDetail(id) {
-      detail(id).then(res => {
-        this.form = res.data.data;
-        this.data = res.data.data.itemsVOList ? res.data.data.itemsVOList : [];
-        this.freightData = res.data.data.orderFreightList
-          ? res.data.data.orderFreightList
-          : [];
-        this.configuration.dicData = this.form.corpsName;
-        this.oldform = res.data.data;
-        this.olddata = this.deepClone(
-          res.data.data.itemsVOList ? res.data.data.itemsVOList : []
-        );
-        this.oldfreightData = this.deepClone(
-          res.data.data.orderFreightList ? res.data.data.orderFreightList : []
-        );
-      });
+      this.showBut = false;
+      this.pageLoading = true;
+      detail(id)
+        .then(res => {
+          this.form = res.data.data;
+          this.data = res.data.data.itemsVOList
+            ? res.data.data.itemsVOList
+            : [];
+          this.freightData = res.data.data.orderFreightList
+            ? res.data.data.orderFreightList
+            : [];
+          this.configuration.dicData = this.form.corpsName;
+          this.oldform = res.data.data;
+          this.olddata = this.deepClone(
+            res.data.data.itemsVOList ? res.data.data.itemsVOList : []
+          );
+          this.oldfreightData = this.deepClone(
+            res.data.data.orderFreightList ? res.data.data.orderFreightList : []
+          );
+        })
+        .finally(() => {
+          this.showBut = true;
+          this.pageLoading = false;
+        });
     },
     addFreight() {
       this.freightData.push({ $cellEdit: true });
@@ -499,32 +510,37 @@ export default {
         done();
         if (valid) {
           if (status == "submit") {
+            this.subLoading = true;
             submit({
               id: this.form.id,
               orderFreightList: this.freightData
-            }).then(res => {
-              this.$message.success("修改成功");
-              this.form = res.data.data;
-              this.data = res.data.data.itemsVOList
-                ? res.data.data.itemsVOList
-                : [];
-              this.freightData = res.data.data.orderFreightList
-                ? res.data.data.orderFreightList
-                : [];
-              this.configuration.dicData = this.form.corpsName;
-              this.oldform = res.data.data;
-              this.olddata = this.deepClone(
-                res.data.data.itemsVOList ? res.data.data.itemsVOList : []
-              );
-              this.oldfreightData = this.deepClone(
-                res.data.data.orderFreightList
+            })
+              .then(res => {
+                this.$message.success("修改成功");
+                this.form = res.data.data;
+                this.data = res.data.data.itemsVOList
+                  ? res.data.data.itemsVOList
+                  : [];
+                this.freightData = res.data.data.orderFreightList
                   ? res.data.data.orderFreightList
-                  : []
-              );
-              if (status2 == "goBack") {
-                this.$emit("goBack");
-              }
-            });
+                  : [];
+                this.configuration.dicData = this.form.corpsName;
+                this.oldform = res.data.data;
+                this.olddata = this.deepClone(
+                  res.data.data.itemsVOList ? res.data.data.itemsVOList : []
+                );
+                this.oldfreightData = this.deepClone(
+                  res.data.data.orderFreightList
+                    ? res.data.data.orderFreightList
+                    : []
+                );
+                if (status2 == "goBack") {
+                  this.$emit("goBack");
+                }
+              })
+              .finally(() => {
+                this.subLoading = false;
+              });
           }
           if (status == "fix") {
             commit({