Ver código fonte

客户增加收发货地址

lichao 3 anos atrás
pai
commit
48967079cd

+ 10 - 9
src/views/basicData/customerInformation/configuration/addressOption.json

@@ -11,12 +11,13 @@
   "selection": true,
   "menuWidth": 180,
   "dialogClickModal": false,
+  "addBtnText": "录入明细",
   "column": [
     {
-      "label": "客户",
-      "prop": "a",
-      "index": 1,
-      "width":240,
+      "label": "地址",
+      "prop": "addr",
+      "index": 4,
+      "width":350,
       "rules": [
         {
           "required": true,
@@ -26,7 +27,7 @@
       ]
     },{
       "label": "联系人",
-      "prop": "b",
+      "prop": "attn",
       "index": 2,
       "width":200,
       "rules": [
@@ -38,7 +39,7 @@
       ]
     },{
       "label": "电话",
-      "prop": "c",
+      "prop": "tel",
       "index": 3,
       "width":200,
       "rules": [
@@ -49,13 +50,13 @@
         }
       ]
     },{
-      "label": "地址",
-      "prop": "d",
+      "label": "备注",
+      "prop": "remarks",
       "index": 4,
       "width":350,
       "rules": [
         {
-          "required": true,
+          "required": false,
           "message": "请输入账户名称",
           "trigger": "blur"
         }

+ 3 - 1
src/views/basicData/customerInformation/detailsPageEdit.vue

@@ -585,10 +585,12 @@ export default {
         this.contactsData = this.form.corpsAttnList;
         this.bankOfDepositData = this.form.corpsBankList;
         this.advantageProjectData = this.form.corpsItems;
+        this.addressData = this.form.corpsAddrList;
 
         delete this.form.corpsAttnList;
         delete this.form.corpsBankList;
         delete this.form.corpsItems;
+        delete this.form.corpsAddrList;
       });
     } else {
       //新增时根据左侧选中树结构给客户类别赋值
@@ -718,7 +720,6 @@ export default {
     },
     //新增收发货地址保存触发
     rowSaveAddress(row, done, loading) {
-      console.log(row, done, loading);
       this.addressData.push(row);
       done();
     },
@@ -757,6 +758,7 @@ export default {
           this.form.corpsAttnList = this.contactsData;
           this.form.corpsBankList = this.bankOfDepositData;
           this.form.corpsItems = this.advantageProjectData;
+          this.form.corpsAddrList = this.addressData;
           if (typeof this.form.corpsTypeId == "object") {
             this.form.corpsTypeId = this.form.corpsTypeId.join(",");
           }