Browse Source

内贸修改问题

lichao 3 years ago
parent
commit
ea83fe9b28

+ 6 - 0
src/views/businessManagement/deliveryNotice/detailsPageEdit.vue

@@ -1776,6 +1776,9 @@ export default {
           this.$message.success("保存成功");
           //关闭窗口
           this.$refs.crudContact.$refs.dialogColumn.columnBox = false;
+          this.$nextTick(() => {
+            this.$refs.crudContact.doLayout()
+          })
         }
       } else if (name === 'fees') {
         const inSave = await this.saveColumnData(
@@ -1796,6 +1799,9 @@ export default {
         customerContact
       );
       if (inSave) {
+        this.$nextTick(() => {
+          this.$refs.crudContact.doLayout()
+        })
         this.$message.success("重置成功");
         //关闭窗口
         this.$refs.crudContact.$refs.dialogColumn.columnBox = false;

+ 10 - 0
src/views/businessManagement/deliveryNotice/index.vue

@@ -103,6 +103,7 @@ import {customerList, typeSave, deleteDetails} from "@/api/basicData/deliveryNot
 import detailPage from "./detailsPageEdit";
 import { defaultDate } from "@/util/date";
 import reportDialog from "@/components/report-dialog/main";
+import { gainUser } from "@/api/basicData/customerInquiry";
 
 export default {
   name: "customerInformation",
@@ -154,6 +155,9 @@ export default {
     this.search.businessDate = defaultDate(1)
     this.option = option
       // this.option = await this.getColumnData(this.getColumnName(20), option);
+    gainUser().then(res => {
+      this.findObject(this.option.column, "createUser").dicData = res.data.data;
+    })
     let i = 0;
     this.option.column.forEach(item => {
       if (item.search) i++
@@ -436,6 +440,9 @@ export default {
         this.$message.success("保存成功");
         //关闭窗口
         this.$refs.crud.$refs.dialogColumn.columnBox = false;
+        this.$nextTick(() => {
+          this.$refs.crud.doLayout()
+        })
       }
     },
     async resetColumn() {
@@ -445,6 +452,9 @@ export default {
         option
       );
       if (inSave) {
+        this.$nextTick(() => {
+          this.$refs.crud.doLayout()
+        })
         this.$message.success("重置成功");
         //关闭窗口
         this.$refs.crud.$refs.dialogColumn.columnBox = false;

+ 6 - 0
src/views/businessManagement/purchaseOrder/detailsPageEdit.vue

@@ -1580,6 +1580,9 @@ export default {
           this.$message.success("保存成功");
           //关闭窗口
           this.$refs.crudContact.$refs.dialogColumn.columnBox = false;
+          this.$nextTick(() => {
+            this.$refs.crudContact.doLayout()
+          })
         }
       } else if (name === 'fees') {
         const inSave = await this.saveColumnData(
@@ -1600,6 +1603,9 @@ export default {
         customerContact
       );
       if (inSave) {
+        this.$nextTick(() => {
+          this.$refs.crudContact.doLayout()
+        })
         this.$message.success("重置成功");
         //关闭窗口
         this.$refs.crudContact.$refs.dialogColumn.columnBox = false;

+ 14 - 0
src/views/businessManagement/purchaseOrder/index.vue

@@ -124,6 +124,7 @@ import detailPage from "./detailsPageEdit";
 import { defaultDate } from "@/util/date";
 import ApplyPayment from "@/components/finance/applyPayment";
 import financialAccount from "../../../components/finance/financialAccount";
+import { gainUser } from "@/api/basicData/customerInquiry";
 
 export default {
   name: "customerInformation",
@@ -183,6 +184,13 @@ export default {
     this.search.requiredArrivalDate = defaultDate(1)
     // this.option = option
     this.option = await this.getColumnData(this.getColumnName(17), option);
+    this.getWorkDicts("payment_term").then(res => {
+      this.findObject(this.option.column, "paymentType").dicData =
+        res.data.data;
+    });
+    gainUser().then(res => {
+      this.findObject(this.option.column, "createUser").dicData = res.data.data;
+    })
     let i = 0;
     this.option.column.forEach(item => {
       if (item.search) i++
@@ -459,6 +467,9 @@ export default {
         this.$message.success("保存成功");
         //关闭窗口
         this.$refs.crud.$refs.dialogColumn.columnBox = false;
+        this.$nextTick(() => {
+          this.$refs.crud.doLayout()
+        })
       }
     },
     async resetColumn() {
@@ -468,6 +479,9 @@ export default {
         option
       );
       if (inSave) {
+        this.$nextTick(() => {
+          this.$refs.crud.doLayout()
+        })
         this.$message.success("重置成功");
         //关闭窗口
         this.$refs.crud.$refs.dialogColumn.columnBox = false;

+ 6 - 0
src/views/businessManagement/receipt/detailsPageEdit.vue

@@ -1321,6 +1321,9 @@ export default {
           this.$message.success("保存成功");
           //关闭窗口
           this.$refs.crudContact.$refs.dialogColumn.columnBox = false;
+          this.$nextTick(() => {
+            this.$refs.crudContact.doLayout()
+          })
         }
       } else if (name === 'fees') {
         const inSave = await this.saveColumnData(
@@ -1341,6 +1344,9 @@ export default {
         customerContact
       );
       if (inSave) {
+        this.$nextTick(() => {
+          this.$refs.crudContact.doLayout()
+        })
         this.$message.success("重置成功");
         //关闭窗口
         this.$refs.crudContact.$refs.dialogColumn.columnBox = false;

+ 14 - 0
src/views/businessManagement/receipt/index.vue

@@ -95,6 +95,7 @@ import option from "./configuration/mainList.json";
 import {customerList, typeSave, deleteDetails} from "@/api/basicData/receipt"
 import detailPage from "./detailsPageEdit";
 import { defaultDate } from "@/util/date";
+import { gainUser } from "@/api/basicData/customerInquiry";
 
 export default {
   name: "customerInformation",
@@ -144,6 +145,13 @@ export default {
     this.search.businessDate = defaultDate(1)
     this.option = option
       // this.option = await this.getColumnData(this.getColumnName(23), option);
+    gainUser().then(res => {
+      this.findObject(this.option.column, "createUser").dicData = res.data.data;
+    })
+    this.getWorkDicts("procurement_method").then(res => {
+      this.findObject(this.option.column, "purchaseMode").dicData =
+        res.data.data;
+    });
     let i = 0;
     this.option.column.forEach(item => {
       if (item.search) i++
@@ -420,6 +428,9 @@ export default {
         this.$message.success("保存成功");
         //关闭窗口
         this.$refs.crud.$refs.dialogColumn.columnBox = false;
+        this.$nextTick(() => {
+          this.$refs.crud.doLayout()
+        })
       }
     },
     async resetColumn() {
@@ -429,6 +440,9 @@ export default {
         option
       );
       if (inSave) {
+        this.$nextTick(() => {
+          this.$refs.crud.doLayout()
+        })
         this.$message.success("重置成功");
         //关闭窗口
         this.$refs.crud.$refs.dialogColumn.columnBox = false;

+ 6 - 0
src/views/businessManagement/salesOrder/detailsPageEdit.vue

@@ -3004,6 +3004,9 @@ export default {
           this.$message.success("保存成功");
           //关闭窗口
           this.$refs.crudContact.$refs.dialogColumn.columnBox = false;
+          this.$nextTick(() => {
+            this.$refs.crudContact.doLayout()
+          })
         }
       } else if (name === 'fees') {
         const inSave = await this.saveColumnData(
@@ -3024,6 +3027,9 @@ export default {
         customerContact
       );
       if (inSave) {
+        this.$nextTick(() => {
+          this.$refs.crudContact.doLayout()
+        })
         this.$message.success("重置成功");
         //关闭窗口
         this.$refs.crudContact.$refs.dialogColumn.columnBox = false;

+ 19 - 0
src/views/businessManagement/salesOrder/index.vue

@@ -106,6 +106,7 @@ import search from "../../../page/index/search";
 import { defaultDate } from "@/util/date";
 import { getToken } from "@/util/auth";
 import os from "os";
+import { gainUser } from "@/api/basicData/customerInquiry";
 
 export default {
   name: "customerInformation",
@@ -147,6 +148,17 @@ export default {
     this.search.businesDate = defaultDate(1)
     // this.option = option
     this.option = await this.getColumnData(this.getColumnName(14), option);
+    this.getWorkDicts("payment_term").then(res => {
+      this.findObject(this.option.column, "paymentType").dicData =
+        res.data.data;
+    });
+    this.getWorkDicts("order_status").then(res => {
+      this.findObject(this.option.column, "orderStatus").dicData =
+        res.data.data;
+    });
+    gainUser().then(res => {
+      this.findObject(this.option.column, "createUser").dicData = res.data.data;
+    })
     let i = 0;
     this.option.column.forEach(item => {
       if (item.search) i++
@@ -502,6 +514,10 @@ export default {
         this.$message.success("保存成功");
         //关闭窗口
         this.$refs.crud.$refs.dialogColumn.columnBox = false;
+        this.$nextTick(() => {
+          this.$refs.crud.doLayout()
+        })
+
       }
     },
     async resetColumn() {
@@ -511,6 +527,9 @@ export default {
         option
       );
       if (inSave) {
+        this.$nextTick(() => {
+          this.$refs.crud.doLayout()
+        })
         this.$message.success("重置成功");
         //关闭窗口
         this.$refs.crud.$refs.dialogColumn.columnBox = false;