Selaa lähdekoodia

Merge branch 'dev' of http://git.echepei.com/caojunjie/Smart_platform_ui into dev

QuKatie 3 vuotta sitten
vanhempi
commit
4e2fca07a4

+ 24 - 0
src/enums/column-name.js

@@ -294,9 +294,33 @@ const columnName = [{
     code: 85,
     name: '委托'
   },{
+    code: 85.1,
+    name: '委托-箱信息'
+  },{
+    code: 85.2,
+    name: '委托-箱信息二'
+  },{
+    code: 85.3,
+    name: '委托-车辆信息'
+  },{
+    code: 85.4,
+    name: '委托-应收费用'
+  },{
+    code: 85.5,
+    name: '委托-应付费用'
+  },{
+    code: 85.6,
+    name: '委托-附件'
+  },{
     code: 86,
     name: '调度'
   },{
+    code: 86.1,
+    name: '调度-车辆信息'
+  },{
+    code: 86.2,
+    name: '调度-附件'
+  },{
     code: 87,
     name: '派车'
   },{

+ 29 - 13
src/views/businessManagement/deliveryNotice/configuration/mainList.json

@@ -46,7 +46,7 @@
       "label": "客户名称",
       "prop": "corpId",
       "search": true,
-      "index": 1,
+      "index": 2,
       "width": 100,
       "overHidden": true
     },
@@ -54,7 +54,7 @@
       "label": "所属公司",
       "prop": "salesCompany",
       "search": true,
-      "index": 4,
+      "index": 3,
       "width": 100,
       "overHidden": true
     },
@@ -67,7 +67,7 @@
       "label": "出库日期",
       "prop": "businessDate",
       "search": true,
-      "index": 8,
+      "index": 4,
       "width": 100,
       "pickerOptions": {},
       "overHidden": true
@@ -76,7 +76,7 @@
       "label": "仓库",
       "prop": "storageId",
       "search": true,
-      "index": 6,
+      "index": 5,
       "width": 100,
       "overHidden": true
     },
@@ -84,7 +84,7 @@
       "label": "出库数量",
       "prop": "totalQuantity",
       "search": false,
-      "index": 8,
+      "index": 6,
       "width": 100,
       "overHidden": true
     },
@@ -92,7 +92,7 @@
       "label": "出库金额",
       "prop": "deliveryAmount",
       "search": false,
-      "index": 8,
+      "index": 7,
       "width": 100,
       "overHidden": true
     },
@@ -100,7 +100,7 @@
       "label": "收货地址",
       "prop": "arrivalAddress",
       "search": true,
-      "index": 14,
+      "index": 8,
       "width": 100,
       "overHidden": true
     },
@@ -108,7 +108,7 @@
       "label": "收货人",
       "prop": "arrivalContact",
       "search": true,
-      "index": 14,
+      "index": 9,
       "width": 100,
       "overHidden": true
     },
@@ -116,7 +116,7 @@
       "label": "收货电话",
       "prop": "arrivalTel",
       "search": true,
-      "index": 14,
+      "index": 10,
       "width": 100,
       "overHidden": true
     },
@@ -130,7 +130,7 @@
       "label": "制单人",
       "prop": "createUser",
       "search": true,
-      "index": 14,
+      "index": 11,
       "width": 100,
       "overHidden": true
     },
@@ -141,7 +141,7 @@
       "searchRange": true,
       "prop": "createTime",
       "search": true,
-      "index": 15,
+      "index": 12,
       "width": 100,
       "format": "yyyy-MM-dd",
       "valueFormat": "yyyy-MM-dd",
@@ -152,7 +152,7 @@
       "label": "系统编号",
       "prop": "sysNo",
       "search": false,
-      "index": 1,
+      "index": 13,
       "width": 100,
       "overHidden": true
     },
@@ -160,7 +160,23 @@
       "label": "匹配订单号",
       "prop": "srcOrderNo",
       "search": false,
-      "index": 5,
+      "index": 14,
+      "width": 100,
+      "overHidden": true
+    },
+    {
+      "label": "更改人",
+      "prop": "updateUserName",
+      "search": false,
+      "index": 15,
+      "width": 100,
+      "overHidden": true
+    },
+    {
+      "label": "更改时间",
+      "prop": "updateTime",
+      "search": false,
+      "index": 16,
       "width": 100,
       "overHidden": true
     }

+ 2 - 2
src/views/businessManagement/deliveryNotice/detailsPageEdit.vue

@@ -72,7 +72,7 @@
     <div class="customer-main">
       <el-form :model="form" ref="form" label-width="130px" class="demo-ruleForm">
         <containerTitle title="基础资料"></containerTitle>
-        <basic-container style="margin-bottom: 10px">
+        <basic-container>
           <el-row>
             <el-col v-for="(item,index) in basicData.column" :key="index" :span="item.span?item.span:8">
               <el-form-item :label="item.label" :prop="item.prop" :rules="item.rules">
@@ -129,7 +129,7 @@
           </el-row>
         </basic-container>
         <containerTitle title="商品信息"></containerTitle>
-        <basic-container style="margin-bottom: 10px">
+        <basic-container>
           <avue-crud
               :option="customerContact"
               v-model="contactsForm"

+ 16 - 16
src/views/businessManagement/inventoryAccount/configuration/mainList.json

@@ -33,7 +33,7 @@
       "label": "名称",
       "prop": "cname",
       "search": true,
-      "index": 1,
+      "index": 2,
       "width": 100,
       "overHidden": true
     },
@@ -41,7 +41,7 @@
       "label": "花纹",
       "prop": "brandItem",
       "search": true,
-      "index": 1,
+      "index": 3,
       "width": 100,
       "overHidden": true
     },
@@ -49,7 +49,7 @@
       "label": "产地",
       "prop": "placeProduction",
       "search": true,
-      "index": 1,
+      "index": 4,
       "width": 100,
       "overHidden": true
     },
@@ -57,7 +57,7 @@
       "label": "规格",
       "prop": "typeno",
       "search": true,
-      "index": 1,
+      "index": 5,
       "width": 100,
       "overHidden": true
     },
@@ -65,7 +65,7 @@
       "label": "负荷指数",
       "prop": "typenoOne",
       "search": true,
-      "index": 1,
+      "index": 6,
       "width": 100,
       "overHidden": true
     },
@@ -73,7 +73,7 @@
       "label": "速级",
       "prop": "typenoTwo",
       "search": true,
-      "index": 1,
+      "index": 7,
       "width": 100,
       "overHidden": true
     },
@@ -81,7 +81,7 @@
       "label": "仓库名称",
       "prop": "stockName",
       "search": true,
-      "index": 1,
+      "index": 8,
       "width": 100,
       "overHidden": true
     },
@@ -89,7 +89,7 @@
       "label": "供应商",
       "prop": "corpName",
       "search": false,
-      "index": 1,
+      "index": 9,
       "width": 100,
       "overHidden": true
     },
@@ -97,7 +97,7 @@
       "label": "品牌",
       "prop": "brand",
       "search": true,
-      "index": 1,
+      "index": 10,
       "width": 100,
       "overHidden": true
     },
@@ -105,7 +105,7 @@
       "label": "总库存",
       "prop": "balanceQuantity",
       "search": false,
-      "index": 1,
+      "index": 11,
       "width": 100,
       "cell": true,
       "overHidden": true
@@ -114,7 +114,7 @@
       "label": "内贸锁定",
       "prop": "lockingQuantity",
       "search": false,
-      "index": 1,
+      "index": 12,
       "width": 100,
       "cell": true,
       "overHidden": true
@@ -123,7 +123,7 @@
       "label": "可用库存",
       "prop": "surplusRouteQuantity",
       "search": false,
-      "index": 1,
+      "index": 13,
       "width": 100,
       "cell": true,
       "overHidden": true
@@ -135,7 +135,7 @@
       "searchRange": true,
       "prop": "createTime",
       "search": false,
-      "index": 1,
+      "index": 14,
       "width": 100,
       "format": "yyyy-MM-dd",
       "valueFormat": "yyyy-MM-dd",
@@ -146,7 +146,7 @@
       "label": "创建人",
       "prop": "createUserName",
       "search": false,
-      "index": 1,
+      "index": 15,
       "width": 100,
       "overHidden": true
     },
@@ -154,7 +154,7 @@
       "label": "更新日期",
       "prop": "updateTime",
       "search": false,
-      "index": 1,
+      "index": 16,
       "width": 100,
       "overHidden": true
     },
@@ -162,7 +162,7 @@
       "label": "更新人",
       "prop": "updateUserName",
       "search": false,
-      "index": 1,
+      "index": 17,
       "width": 100,
       "overHidden": true
     }

+ 16 - 0
src/views/businessManagement/purchaseOrder/configuration/mainList.json

@@ -196,6 +196,22 @@
       "valueFormat": "yyyy-MM-dd",
       "overHidden": true,
       "pickerOptions": {}
+    },
+    {
+      "label": "更改人",
+      "prop": "updateUserName",
+      "search": false,
+      "index": 17,
+      "width": 100,
+      "overHidden": true
+    },
+    {
+      "label": "更改时间",
+      "prop": "updateTime",
+      "search": false,
+      "index": 18,
+      "width": 100,
+      "overHidden": true
     }
   ]
 }

+ 2 - 2
src/views/businessManagement/purchaseOrder/detailsPageEdit.vue

@@ -78,7 +78,7 @@
     <div class="customer-main">
       <el-form :model="form" ref="form" label-width="130px" class="demo-ruleForm">
         <containerTitle title="基础资料"></containerTitle>
-        <basic-container style="margin-bottom: 10px">
+        <basic-container :showBtn="true">
           <el-row>
             <el-col v-for="(item,index) in basicData.column" :key="index" :span="item.span?item.span:8">
               <el-form-item :label="item.label" :prop="item.prop" :rules="item.rules">
@@ -136,7 +136,7 @@
           </el-row>
         </basic-container>
         <containerTitle title="商品信息"></containerTitle>
-        <basic-container style="margin-bottom: 10px">
+        <basic-container>
           <avue-crud
               :option="customerContact"
               v-model="contactsForm"

+ 16 - 0
src/views/businessManagement/receipt/configuration/mainList.json

@@ -184,6 +184,22 @@
       "index": 1,
       "width": 100,
       "overHidden": true
+    },
+    {
+      "label": "更改人",
+      "prop": "updateUserName",
+      "search": false,
+      "index": 16,
+      "width": 100,
+      "overHidden": true
+    },
+    {
+      "label": "更改时间",
+      "prop": "updateTime",
+      "search": false,
+      "index": 17,
+      "width": 100,
+      "overHidden": true
     }
   ]
 }

+ 2 - 2
src/views/businessManagement/receipt/detailsPageEdit.vue

@@ -56,7 +56,7 @@
     <div class="customer-main">
       <el-form :model="form" ref="form" label-width="130px" class="demo-ruleForm">
         <containerTitle title="基础资料"></containerTitle>
-        <basic-container style="margin-bottom: 10px">
+        <basic-container>
           <el-row>
             <el-col v-for="(item,index) in basicData.column" :key="index" :span="item.span?item.span:8">
               <el-form-item :label="item.label" :prop="item.prop" :rules="item.rules">
@@ -120,7 +120,7 @@
           </el-row>
         </basic-container>
         <containerTitle title="商品信息"></containerTitle>
-        <basic-container style="margin-bottom: 10px">
+        <basic-container>
           <avue-crud
               :option="customerContact"
               v-model="contactsForm"

+ 16 - 0
src/views/businessManagement/salesOrder/configuration/mainList.json

@@ -315,6 +315,22 @@
       "valueFormat": "yyyy-MM-dd",
       "overHidden": true,
       "pickerOptions": {}
+    },
+    {
+      "label": "更改人",
+      "prop": "updateUserName",
+      "search": false,
+      "index": 26,
+      "width": 100,
+      "overHidden": true
+    },
+    {
+      "label": "更改时间",
+      "prop": "updateTime",
+      "search": false,
+      "index": 27,
+      "width": 100,
+      "overHidden": true
     }
   ]
 }

+ 16 - 0
src/views/dealer/purchase/config/mainList.json

@@ -133,6 +133,22 @@
       "index": 11,
       "width": 100,
       "overHidden": true
+    },
+    {
+      "label": "更改人",
+      "prop": "updateUserName",
+      "search": false,
+      "index": 13,
+      "width": 100,
+      "overHidden": true
+    },
+    {
+      "label": "更改时间",
+      "prop": "updateTime",
+      "search": false,
+      "index": 14,
+      "width": 100,
+      "overHidden": true
     }
   ]
 }

+ 16 - 0
src/views/dealer/sales/config/mainList.json

@@ -169,6 +169,22 @@
       "index": 15,
       "width": 100,
       "overHidden": true
+    },
+    {
+      "label": "更改人",
+      "prop": "updateUserName",
+      "search": false,
+      "index": 16,
+      "width": 100,
+      "overHidden": true
+    },
+    {
+      "label": "更改时间",
+      "prop": "updateTime",
+      "search": false,
+      "index": 17,
+      "width": 100,
+      "overHidden": true
     }
   ]
 }

+ 17 - 17
src/views/dealer/stock/config/mainList.json

@@ -47,7 +47,7 @@
       "label": "名称",
       "prop": "cname",
       "search": true,
-      "index": 1,
+      "index": 2,
       "width": 100,
       "overHidden": true
     },
@@ -55,7 +55,7 @@
       "label": "批次号",
       "prop": "lotNo",
       "search": true,
-      "index": 1,
+      "index": 3,
       "width": 120,
       "overHidden": true
     },
@@ -63,7 +63,7 @@
       "label": "花纹",
       "prop": "brandItem",
       "search": true,
-      "index": 1,
+      "index": 4,
       "width": 100,
       "overHidden": true
     },
@@ -71,7 +71,7 @@
       "label": "产地",
       "prop": "placeProduction",
       "search": true,
-      "index": 1,
+      "index": 5,
       "width": 100,
       "overHidden": true
     },
@@ -79,7 +79,7 @@
       "label": "规格",
       "prop": "typeno",
       "search": true,
-      "index": 1,
+      "index": 6,
       "width": 100,
       "overHidden": true
     },
@@ -87,7 +87,7 @@
       "label": "负荷指数",
       "prop": "typenoOne",
       "search": true,
-      "index": 1,
+      "index": 7,
       "width": 100,
       "overHidden": true
     },
@@ -95,7 +95,7 @@
       "label": "速级",
       "prop": "typenoTwo",
       "search": true,
-      "index": 1,
+      "index": 8,
       "width": 100,
       "overHidden": true
     },
@@ -103,7 +103,7 @@
       "label": "仓库名称",
       "prop": "storageId",
       "search": true,
-      "index": 1,
+      "index": 9,
       "width": 100,
       "overHidden": true
     },
@@ -111,7 +111,7 @@
       "label": "供应商",
       "prop": "corpName",
       "search": false,
-      "index": 1,
+      "index": 10,
       "width": 100,
       "overHidden": true
     },
@@ -119,7 +119,7 @@
       "label": "品牌",
       "prop": "brand",
       "search": true,
-      "index": 1,
+      "index": 11,
       "width": 100,
       "overHidden": true
     },
@@ -127,7 +127,7 @@
       "label": "总库存",
       "prop": "balanceQuantity",
       "search": false,
-      "index": 1,
+      "index": 12,
       "width": 100,
       "cell": true,
       "overHidden": true
@@ -136,7 +136,7 @@
       "label": "内贸锁定",
       "prop": "lockingQuantity",
       "search": false,
-      "index": 1,
+      "index": 13,
       "width": 100,
       "cell": true,
       "overHidden": true
@@ -145,7 +145,7 @@
       "label": "可用库存",
       "prop": "surplusRouteQuantity",
       "search": false,
-      "index": 1,
+      "index": 14,
       "width": 100,
       "cell": true,
       "overHidden": true
@@ -157,7 +157,7 @@
       "searchRange": true,
       "prop": "createTime",
       "search": false,
-      "index": 1,
+      "index": 15,
       "width": 100,
       "format": "yyyy-MM-dd",
       "valueFormat": "yyyy-MM-dd",
@@ -168,7 +168,7 @@
       "label": "创建人",
       "prop": "createUserName",
       "search": false,
-      "index": 1,
+      "index": 16,
       "width": 100,
       "overHidden": true
     },
@@ -176,7 +176,7 @@
       "label": "更新日期",
       "prop": "updateTime",
       "search": false,
-      "index": 1,
+      "index": 17,
       "width": 100,
       "overHidden": true
     },
@@ -184,7 +184,7 @@
       "label": "更新人",
       "prop": "updateUserName",
       "search": false,
-      "index": 1,
+      "index": 18,
       "width": 100,
       "overHidden": true
     }

+ 37 - 5
src/views/landTransportation/dispatchingCars/detailPage.vue

@@ -112,9 +112,12 @@
     <basic-container>
       <avue-crud
           :data="entrustList"
-          ref="crudContact"
           @selection-change="selectionChange"
           :option="entrustOptionTwoT"
+          ref="crudBoxTwo"
+          v-if="KeyBoxTwo>0"
+          @resetColumn="resetColumnBoxTwo"
+          @saveColumn="saveColumnBoxTwo"
           @row-save="(row,done,loading)=>{rowSaveT(row,0,done,loading)}"
           @row-update="rowSaveWell">
         <template slot="menuLeft" slot-scope="{size}">
@@ -272,7 +275,7 @@
         :data="orderFilesList"
         disabled
         deleteUrl="/api/blade-client/common-file/remove"
-        :enumerationValue="76"
+        :enumerationValue="86.2"
     ></c-upload>
     <el-dialog
         title="批量调度"
@@ -477,7 +480,8 @@ export default {
       },
       tableData: [],
       entrustListT: [],
-      entrustOptionTwoT: {
+      KeyBoxTwo:0,
+      entrustOptionTwoTBackup: {
         selectable: (row, index) => {
           return row.status === 0
         },
@@ -485,7 +489,9 @@ export default {
         menuAlign: 'center',
         index: true,
         cellBtn: false,
+        refreshBtn: false,
         selection: true,
+        selectionWidth:55,
         tip: false,
         addBtn: false,
         cancelBtn: false,
@@ -701,6 +707,7 @@ export default {
           }
         ]
       },
+      entrustOptionTwoT:{},
       entrustList: [],
       goodsOptionForm: {
         menuBtn: false,
@@ -984,7 +991,9 @@ export default {
       }
     };
   },
-  created() {
+  async created() {
+    this.entrustOptionTwoT = await this.getColumnData(this.getColumnName(86.1), this.entrustOptionTwoTBackup);
+    this.KeyBoxTwo++
     if (this.id) {
       detailDelegationList({id: this.id, kind: '2'}).then(res => {
         this.goodsForm = res.data.data
@@ -1011,6 +1020,29 @@ export default {
     }
   },
   methods: {
+    //自定义列保存
+    async saveColumnBoxTwo() {
+      /**
+       * 已定义全局方法,直接使用,saveColumnData保存列数据方法,参数传值(表格名称,当前表格的option数据)
+       * 已定义全局方法,直接使用,getColumnName方法用来获取枚举值,参数根据自己定义的code值获取中文名
+       * 一定要执行异步操作,要等接口成功返回,才能执行下一行代码
+       */
+      const inSave = await this.saveColumnData(this.getColumnName(86.1), this.entrustOptionTwoT);
+      if (inSave) {
+        this.$message.success("保存成功");
+        //关闭窗口
+        this.$refs.crudBoxTwo.$refs.dialogColumn.columnBox = false;
+      }
+    },
+    //自定义列重置
+    async resetColumnBoxTwo() {
+      this.entrustOptionTwoT = this.entrustOptionTwoTBackup;
+      const inSave = await this.delColumnData(this.getColumnName(86.1), this.entrustOptionTwoTBackup);
+      if (inSave) {
+        this.$message.success("重置成功");
+        this.$refs.crudBoxTwo.$refs.dialogColumn.columnBox = false;
+      }
+    },
     getCorpData(val){
       this.formData.fleetName = val.cname
     },
@@ -1104,7 +1136,7 @@ export default {
           this.$message.success("保存成功");
         })
       }
-      this.$refs.crudContact.rowCell(row, index)
+      this.$refs.crudBoxTwo.rowCell(row, index)
     },
     rowSaveWell(row, index, done, loading) {
       done()

+ 0 - 1
src/views/landTransportation/dispatchingCars/index.vue

@@ -347,7 +347,6 @@ export default {
     },
     //行编辑
     rowCell(row, index) {
-      console.log(row.id)
       this.id = row.id
       this.show = false
     },

+ 244 - 79
src/views/landTransportation/placeAnOrder/detailPage.vue

@@ -78,7 +78,7 @@
             </span>
             <span v-else>
               <el-button v-if="goodsForm.status === 1" type="warning" size="mini" circle>途</el-button>
-              <el-tooltip v-else class="item" effect="dark" content="删除" placement="right">
+              <el-tooltip v-else class="item" effect="dark" content="删除" placement="left">
                   <el-button type="danger" icon="el-icon-delete" size="mini" circle
                              @click="deleteAddress(scope)"></el-button>
               </el-tooltip>
@@ -169,6 +169,10 @@
                  :option="entrustOptionTwo"
                  @row-save="(row,done,loading)=>{rowSave(row,0,done,loading)}"
                  @row-update="rowSave"
+                 ref="crudBox"
+                 v-if="KeyBox>0"
+                 @resetColumn="resetColumnBox"
+                 @saveColumn="saveColumnBox"
                  @row-del="rowDel">
         <template slot="ctnTypeHeader" slot-scope="{column}">
           {{ column.label }}<span style="color:#F56C6C">*</span>
@@ -188,7 +192,10 @@
       <avue-crud
           :data="entrustList"
           :option="entrustOptionTwoT"
-          ref="entrustTwoT"
+          ref="crudBoxTwo"
+          v-if="KeyBoxTwo>0"
+          @resetColumn="resetColumnBoxTwo"
+          @saveColumn="saveColumnBoxTwo"
           @row-save="(row,done,loading)=>{rowSaveT(row,0,done,loading)}"
           @row-update="rowSaveT">
         <template slot="fleetId" slot-scope="{ row, index }">
@@ -207,6 +214,9 @@
       <avue-crud
           :data="vehicleList"
           ref="crudContact"
+          v-if="keyContact>0"
+          @resetColumn="resetColumnContact"
+          @saveColumn="saveColumnContact"
           :option="vehicleOption">
       </avue-crud>
     </basic-container>
@@ -221,6 +231,8 @@
           :data="collectionList"
           :option="collectionOption"
           ref="collection"
+          @resetColumn="resetColumnCollection"
+          @saveColumn="saveColumnCollection"
           @row-save="(row,done,loading)=>{rowSave(row,0,done,loading)}"
           @row-update="rowSave"
           @row-del="makeDel">
@@ -270,6 +282,8 @@
           :data="paymentList"
           :option="paymentOption"
           ref="payment"
+          @resetColumn="resetColumnPayment"
+          @saveColumn="saveColumnPayment"
           @row-save="(row,done,loading)=>{rowSave(row,0,done,loading)}"
           @row-update="rowSave"
           @row-del="feeDel"
@@ -322,7 +336,7 @@
         deleteUrl="/api/blade-client/common-file/remove"
         :data="orderFilesList"
         :disabled="goodsForm.status === 1"
-        :enumerationValue="76"
+        :enumerationValue="85.6"
     ></c-upload>
   </div>
 </template>
@@ -346,12 +360,13 @@ export default {
   data() {
     return {
       activeIndex: '1',
+      KeyBox:0,
+      KeyBoxTwo:0,
       type: false,
       goodsForm: {},
       modelKey: 1,
       orderFilesList: [],
       vehicleList: [],
-      roleName: localStorage.getItem("roleName").split(',')[0],
       breakConfiguration: {
         multipleChoices: false,
         multiple: false,
@@ -363,7 +378,8 @@ export default {
         dicData: []
       },
       advantageProjectData: [],
-      vehicleOption: {
+      keyContact:0,
+      vehicleOptionTwo: {
         align: 'center',
         menuAlign: 'center',
         refreshBtn:false,
@@ -585,6 +601,7 @@ export default {
           }
         ]
       },
+      vehicleOption:{},
       treeOption: {
         label: 'title',
         value: 'id',
@@ -605,7 +622,7 @@ export default {
       },
       tableData: [],
       entrustListT: [],
-      entrustOptionTwoT: {
+      entrustOptionTwoTBackup: {
         align: 'center',
         menuAlign: 'center',
         index: true,
@@ -681,6 +698,7 @@ export default {
           prop: 'remarks'
         }]
       },
+      entrustOptionTwoT:{},
       entrustList: [],
       goodsOptionFormC:{
         menuBtn: false,
@@ -816,7 +834,7 @@ export default {
           prop: 'remarks'
         }]
       },
-      entrustOptionTwo: {
+      entrustOptionTwoBackup: {
         align: 'center',
         menuAlign: 'center',
         refreshBtn: false,
@@ -905,8 +923,9 @@ export default {
           prop: 'remarks'
         }]
       },
+      entrustOptionTwo:{},
       collectionList: [],
-      collectionOption: {
+      collectionOptionBackup: {
         align: 'center',
         menuAlign: 'center',
         refreshBtn: false,
@@ -984,7 +1003,9 @@ export default {
         ]
       },
       paymentList: [],
-      paymentOption: {
+      collectionOption:{},
+      paymentOption:{},
+      paymentOptionBackup: {
         align: 'center',
         menuAlign: 'center',
         index: true,
@@ -1062,7 +1083,15 @@ export default {
       }
     };
   },
-  created() {
+  async created() {
+    this.entrustOptionTwo = await this.getColumnData(this.getColumnName(85.1), this.entrustOptionTwoBackup);
+    this.KeyBox++
+    this.entrustOptionTwoT = await this.getColumnData(this.getColumnName(85.2), this.entrustOptionTwoTBackup);
+    this.KeyBoxTwo++
+    this.vehicleOption = await this.getColumnData(this.getColumnName(85.3), this.vehicleOptionTwo);
+    this.keyContact++
+    this.collectionOption = await this.getColumnData(this.getColumnName(85.4), this.collectionOptionBackup);
+    this.paymentOption = await this.getColumnData(this.getColumnName(85.5), this.paymentOptionBackup);
     if (this.id) {
       detailDelegationList({id: this.id, kind: '1'}).then(res => {
         this.goodsForm = res.data.data
@@ -1097,7 +1126,6 @@ export default {
         address: ''
       }]
       getCorp().then(res=>{
-        console.log(res)
         this.goodsForm = {
           corpId:res.data.data.id,
           businessType:"出口",
@@ -1109,6 +1137,121 @@ export default {
     }
   },
   methods: {
+    //自定义列保存
+    async saveColumnCollection() {
+      /**
+       * 已定义全局方法,直接使用,saveColumnData保存列数据方法,参数传值(表格名称,当前表格的option数据)
+       * 已定义全局方法,直接使用,getColumnName方法用来获取枚举值,参数根据自己定义的code值获取中文名
+       * 一定要执行异步操作,要等接口成功返回,才能执行下一行代码
+       */
+      const inSave = await this.saveColumnData(this.getColumnName(85.4), this.collectionOption);
+      if (inSave) {
+        this.$message.success("保存成功");
+        //关闭窗口
+        this.$refs.collection.$refs.dialogColumn.columnBox = false;
+      }
+    },
+    //自定义列重置
+    async resetColumnCollection() {
+      this.collectionOption = this.collectionOptionBackup;
+      const inSave = await this.delColumnData(this.getColumnName(85.4), this.collectionOptionBackup);
+      if (inSave) {
+        this.$message.success("重置成功");
+        this.$refs.collection.$refs.dialogColumn.columnBox = false;
+      }
+    },
+    //自定义列保存
+    async saveColumnPayment() {
+      /**
+       * 已定义全局方法,直接使用,saveColumnData保存列数据方法,参数传值(表格名称,当前表格的option数据)
+       * 已定义全局方法,直接使用,getColumnName方法用来获取枚举值,参数根据自己定义的code值获取中文名
+       * 一定要执行异步操作,要等接口成功返回,才能执行下一行代码
+       */
+      const inSave = await this.saveColumnData(this.getColumnName(85.5), this.paymentOption);
+      if (inSave) {
+        this.$message.success("保存成功");
+        //关闭窗口
+        this.$refs.payment.$refs.dialogColumn.columnBox = false;
+      }
+    },
+    //自定义列重置
+    async resetColumnPayment() {
+      this.paymentOption = this.paymentOptionBackup;
+      const inSave = await this.delColumnData(this.getColumnName(85.5), this.paymentOptionBackup);
+      if (inSave) {
+        this.$message.success("重置成功");
+        this.$refs.payment.$refs.dialogColumn.columnBox = false;
+      }
+    },
+    //自定义列保存
+    async saveColumnBox() {
+      /**
+       * 已定义全局方法,直接使用,saveColumnData保存列数据方法,参数传值(表格名称,当前表格的option数据)
+       * 已定义全局方法,直接使用,getColumnName方法用来获取枚举值,参数根据自己定义的code值获取中文名
+       * 一定要执行异步操作,要等接口成功返回,才能执行下一行代码
+       */
+      const inSave = await this.saveColumnData(this.getColumnName(85.1), this.entrustOptionTwo);
+      if (inSave) {
+        this.$message.success("保存成功");
+        //关闭窗口
+        this.$refs.crudBox.$refs.dialogColumn.columnBox = false;
+      }
+    },
+    //自定义列重置
+    async resetColumnBox() {
+      this.entrustOptionTwo = this.entrustOptionTwoBackup;
+      const inSave = await this.delColumnData(this.getColumnName(85.1), this.entrustOptionTwoBackup);
+      if (inSave) {
+        this.$message.success("重置成功");
+        this.$refs.crudBox.$refs.dialogColumn.columnBox = false;
+      }
+    },
+    //自定义列保存
+    async saveColumnBoxTwo() {
+      /**
+       * 已定义全局方法,直接使用,saveColumnData保存列数据方法,参数传值(表格名称,当前表格的option数据)
+       * 已定义全局方法,直接使用,getColumnName方法用来获取枚举值,参数根据自己定义的code值获取中文名
+       * 一定要执行异步操作,要等接口成功返回,才能执行下一行代码
+       */
+      const inSave = await this.saveColumnData(this.getColumnName(85.2), this.entrustOptionTwoT);
+      if (inSave) {
+        this.$message.success("保存成功");
+        //关闭窗口
+        this.$refs.crudBoxTwo.$refs.dialogColumn.columnBox = false;
+      }
+    },
+    //自定义列重置
+    async resetColumnBoxTwo() {
+      this.entrustOptionTwoT = this.entrustOptionTwoTBackup;
+      const inSave = await this.delColumnData(this.getColumnName(85.2), this.entrustOptionTwoTBackup);
+      if (inSave) {
+        this.$message.success("重置成功");
+        this.$refs.crudBoxTwo.$refs.dialogColumn.columnBox = false;
+      }
+    },
+    //自定义列保存
+    async saveColumnContact() {
+      /**
+       * 已定义全局方法,直接使用,saveColumnData保存列数据方法,参数传值(表格名称,当前表格的option数据)
+       * 已定义全局方法,直接使用,getColumnName方法用来获取枚举值,参数根据自己定义的code值获取中文名
+       * 一定要执行异步操作,要等接口成功返回,才能执行下一行代码
+       */
+      const inSave = await this.saveColumnData(this.getColumnName(85.3), this.vehicleOption);
+      if (inSave) {
+        this.$message.success("保存成功");
+        //关闭窗口
+        this.$refs.crudContact.$refs.dialogColumn.columnBox = false;
+      }
+    },
+    //自定义列重置
+    async resetColumnContact() {
+      this.vehicleOption = this.vehicleOptionTwo;
+      const inSave = await this.delColumnData(this.getColumnName(85.3), this.vehicleOptionTwo);
+      if (inSave) {
+        this.$message.success("重置成功");
+        this.$refs.crudContact.$refs.dialogColumn.columnBox = false;
+      }
+    },
     //刷新数据
     refreshData() {
       detailDelegationList({id: this.id, kind: '1'}).then(res => {
@@ -1139,24 +1282,6 @@ export default {
         this.type = false
       })
     },
-    //提交委托
-    submit(type) {
-      if (type) {
-        saveDelegationList({
-          id: this.goodsForm.id
-        }).then(res => {
-          this.$message.success('提交成功');
-          this.refreshData()
-        })
-      } else {
-        cancelSubmission({
-          id: this.goodsForm.id
-        }).then(res => {
-          this.$message.success('取消成功');
-          this.refreshData()
-        })
-      }
-    },
     //切换收付费
     handleSelect(tab, event) {
       this.activeIndex = tab.name
@@ -1211,61 +1336,101 @@ export default {
     },
     //保存
     editCustomer() {
-      this.$refs['goodsFormE'].validate((valid, done) => {
-        done()
-      })
-      this.$refs['goodsForm'].validate((valid, done) => {
-        done()
+      let data = JSON.parse(JSON.stringify(this.tableData))
+      data.forEach((item, index) => {
+        item.sort = index + 1
+        if (item.region.length !== 0) {
+          item.region = item.region.join(',')
+        }else {
+          item.region = ''
+        }
       })
-      for (let item in this.tableData) {
-        if (!this.tableData[item].corpId) return this.$message.error('请选择第' + Number(Number(item) + 1) + '行发货工厂');
-        if (!this.tableData[item].address) return this.$message.error('请输入第' + Number(Number(item) + 1) + '行详细地址');
-      }
-      for (let item in this.entrustList) {
-        if (!this.entrustList[item].ctnType) return this.$message.error('请选择第' + Number(Number(item) + 1) + '行尺寸箱型');
-        if (!this.entrustList[item].ctnQuantity) return this.$message.error('请输入第' + Number(Number(item) + 1) + '行箱量');
-        if (!this.entrustList[item].landWeight) return this.$message.error('请输入第' + Number(Number(item) + 1) + '行总重量');
-        if (!this.entrustList[item].landAmountD) return this.$message.error('请输入第' + Number(Number(item) + 1) + '陆运费');
-      }
-      if (this.entrustList.length === 0) return this.$message.error('箱信息不能为空')
-      this.$refs['goodsFormE'].validate((valid, doneE) => {
-        doneE()
-        if (valid){
-          this.$refs['goodsForm'].validate((valid, done) => {
-            done();
-            if (valid) {
-              let data = JSON.parse(JSON.stringify(this.tableData))
-              data.forEach((item, index) => {
-                item.sort = index + 1
-                if (item.region.length !== 0) item.region = item.region.join(',')
-              })
-              this.type = true
-              saveSaveList({
-                ...this.goodsForm,
-                kind: '1',
-                orderAddressList: data,
-                fileList: this.orderFilesList,
-                itemList: this.entrustList,
-                orderFeeList: this.collectionList.concat(this.paymentList)
-              }).then(res => {
-                this.$message.success('保存成功');
-                this.goodsForm = {}
-                if (!this.goodsForm.id) {
-                  this.id = res.data.data
-                  this.refreshData()
-                } else {
-                  this.refreshData()
-                }
-              })
-            } else {
-              return false;
-            }
-          });
+      this.type = true
+      saveSaveList({
+        ...this.goodsForm,
+        kind: '1',
+        orderAddressList: data,
+        fileList: this.orderFilesList,
+        itemList: this.entrustList,
+        orderFeeList: this.collectionList.concat(this.paymentList)
+      }).then(res => {
+        this.$message.success('保存成功');
+        this.goodsForm = {}
+        if (!this.goodsForm.id) {
+          this.id = res.data.data
+          this.refreshData()
         } else {
-          return false;
+          this.refreshData()
         }
       })
     },
+    //提交委托
+    submit(type) {
+      if (type) {
+        this.$refs['goodsFormE'].validate((valid, done) => {
+          done()
+        })
+        this.$refs['goodsForm'].validate((valid, done) => {
+          done()
+        })
+        for (let item in this.tableData) {
+          if (!this.tableData[item].corpId) return this.$message.error('请选择第' + Number(Number(item) + 1) + '行发货工厂');
+          if (!this.tableData[item].address) return this.$message.error('请输入第' + Number(Number(item) + 1) + '行详细地址');
+        }
+        for (let item in this.entrustList) {
+          if (!this.entrustList[item].ctnType) return this.$message.error('请选择第' + Number(Number(item) + 1) + '行尺寸箱型');
+          if (!this.entrustList[item].ctnQuantity) return this.$message.error('请输入第' + Number(Number(item) + 1) + '行箱量');
+          if (!this.entrustList[item].landWeight) return this.$message.error('请输入第' + Number(Number(item) + 1) + '行总重量');
+          if (!this.entrustList[item].landAmountD) return this.$message.error('请输入第' + Number(Number(item) + 1) + '单柜运费');
+        }
+        if (this.entrustList.length === 0) return this.$message.error('箱信息不能为空')
+        this.$refs['goodsFormE'].validate((valid, doneE) => {
+          doneE()
+          if (valid){
+            this.$refs['goodsForm'].validate((valid, done) => {
+              done();
+              if (valid) {
+                let data = JSON.parse(JSON.stringify(this.tableData))
+                data.forEach((item, index) => {
+                  item.sort = index + 1
+                  if (item.region.length !== 0) {
+                    item.region = item.region.join(',')
+                  }else {
+                    item.region = ''
+                  }
+                })
+                saveSaveList({
+                  ...this.goodsForm,
+                  kind: '1',
+                  orderAddressList: data,
+                  fileList: this.orderFilesList,
+                  itemList: this.entrustList,
+                  orderFeeList: this.collectionList.concat(this.paymentList)
+                }).then(res => {
+                  saveDelegationList({
+                    id: this.goodsForm.id
+                  }).then(res => {
+                    this.$message.success('提交成功');
+                    this.refreshData()
+                  })
+                })
+              } else {
+                return false;
+              }
+            });
+          } else {
+            return false;
+          }
+        })
+      } else {
+        cancelSubmission({
+          id: this.goodsForm.id
+        }).then(res => {
+          this.$message.success('取消成功');
+          this.refreshData()
+        })
+      }
+    },
     //收费新增
     addRowCollection() {
       this.$refs.collection.rowCellAdd({