ソースを参照

fix客户管理编辑bug,传真闭环管理修改

miaofuhao 1 年間 前
コミット
d112283149

BIN
CallCenterWeb.UI/0106-1dist.zip


BIN
CallCenterWeb.UI/0115-1dist.zip


BIN
CallCenterWeb.UI/0115-2dist.zip


BIN
CallCenterWeb.UI/0120-1dist.zip


BIN
CallCenterWeb.UI/0121-1dist.zip


BIN
CallCenterWeb.UI/1224dist.zip


BIN
CallCenterWeb.UI/1231-1dist.zip


+ 3 - 3
CallCenterWeb.UI/README-zh.md

@@ -129,14 +129,14 @@ Copyright (c) 2017-present PanJiaChen
129 129
 
130 130
 ```javascript
131 131
   resetZIndex: function() {
132
-    //修改t的值 500 =》 1500 t+1 => t+2 增加了给遮罩层添加 z-index
132
+    //修改t的值 500 =》 1900 t+1 => t+2 增加了给遮罩层添加 z-index
133 133
     var doms = document.querySelectorAll(".vl-notify-mask")
134
-    for (var t = 1500, e = document.querySelectorAll(".vl-notify-iframe"), n = 0, o = 0, r = e.length; o < r; o++) {
134
+    for (var t = 1900, e = document.querySelectorAll(".vl-notify-iframe"), n = 0, o = 0, r = e.length; o < r; o++) {
135 135
       var i = parseInt(this.getStyle(e[o].id, "z-index"));
136 136
       this.options.id == e[o].id && (n = i), t < i && (t = i)
137 137
       var ms = document.getElementById(doms[o].id)
138 138
     }
139
-    n == t && 1500 != t || (this.zindex = t + 2)
139
+    n == t && 1900 != t || (this.zindex = t + 2)
140 140
     ms.style.zIndex = this.zindex - 1
141 141
   },
142 142
 

+ 1 - 1
CallCenterWeb.UI/package.json

@@ -92,7 +92,7 @@
92 92
     "vue-template-compiler": "2.5.17",
93 93
     "webpack": "4.16.5",
94 94
     "webpack-bundle-analyzer": "2.13.1",
95
-    "webpack-cli": "3.1.0",
95
+    "webpack-cli": "^3.1.0",
96 96
     "webpack-dev-server": "3.1.14",
97 97
     "webpack-merge": "4.1.4"
98 98
   },

+ 3 - 0
CallCenterWeb.UI/src/App.vue

@@ -10,4 +10,7 @@ export default {
10 10
 };
11 11
 </script>
12 12
 <style lang="scss">
13
+  .vl-notify-content{
14
+    height: auto !important;
15
+  }
13 16
 </style>

+ 4 - 1
CallCenterWeb.UI/src/views/callScreen/components/faxlist.vue

@@ -1,5 +1,5 @@
1 1
 <template>
2
-  <div class="">
2
+  <div>
3 3
 
4 4
     <el-table
5 5
       :data="dataLists"
@@ -747,6 +747,9 @@ export default {
747 747
 </script>
748 748
 
749 749
 <style>
750
+  .vl-notify-content{
751
+    height: auto !important;
752
+  }
750 753
 .colorsize {
751 754
   height: 30px;
752 755
   line-height: 30px;

+ 3 - 1
CallCenterWeb.UI/src/views/customerManagement/customerList/components/addOrEdit.vue

@@ -330,7 +330,7 @@ export default {
330 330
     ...mapGetters(["groupid"]),
331 331
   },
332 332
   created() {
333
-    this.getcode();
333
+    // this.getcode();
334 334
     this.getList();
335 335
     this.ruleForm.cusSign = this.groupid;
336 336
     this.getSeatGroup();
@@ -341,6 +341,8 @@ export default {
341 341
         clientId: this.rowid,
342 342
       };
343 343
       this.getDetail(data);
344
+    } else{
345
+      this.getcode();
344 346
     }
345 347
 
346 348
     // })

+ 1 - 1
CallCenterWeb.UI/src/views/customerManagement/customerList/index.vue

@@ -87,7 +87,7 @@
87 87
             prop="cusName"
88 88
             label="客户名称"
89 89
             align="center"
90
-            min-width="200"
90
+            min-width="300"
91 91
           ></el-table-column>
92 92
           <el-table-column
93 93
             prop="salMan"

+ 1 - 1
CallCenterWeb.UI/src/views/faxManager/faxManagement/index.vue

@@ -124,7 +124,7 @@
124 124
       :row-class-name="tableRowClassName"
125 125
       border
126 126
       stripe
127
-      max-height="500"
127
+      height="660"
128 128
       highlight-current-row
129 129
       @row-click="linkcus"
130 130
       @row-dblclick="detailfax"

+ 3 - 1
CallCenterWeb.UI/src/views/faxManager/faxTransmission/customSend.vue

@@ -97,7 +97,8 @@ export default {
97 97
       const mm = this.recvTime.split(' ')[0].split('-')[1]
98 98
       const dd = this.recvTime.split(' ')[0].split('-')[2]
99 99
       const hh = this.recvTime.split(' ')[1].split(':')[0]
100
-      const resultData = "您好!我公司于" + yyyy +'年' + mm+ '月' + dd + '日'+ hh+'点'+"收到贵司" +this.faxPage + "页传真。"
100
+      const min = this.recvTime.split(' ')[1].split(':')[1]
101
+      const resultData = "您好!我公司于" + yyyy +'年' + mm+ '月' + dd + '日'+ hh+'点'+ min+'分'+"收到贵司" +this.faxPage + "页传真。"
101 102
       return resultData
102 103
     },
103 104
     submitForm() {
@@ -110,6 +111,7 @@ export default {
110 111
         })
111 112
         return
112 113
       }
114
+      console.log(this.SMScontent);
113 115
       
114 116
       return new Promise((resolve) => {
115 117
         const params = {

+ 56 - 18
CallCenterWeb.UI/src/views/faxManager/faxTransmission/index.vue

@@ -52,8 +52,8 @@
52 52
             >导出Excel</el-button
53 53
           >
54 54
         </el-col>
55
-        <el-col :span="10">
56
-          <label style="font-size: 12px; margin-left: 62%">客户性质:</label>
55
+        <el-col :span="7">
56
+          <label style="font-size: 12px; margin-left: 43%">客户性质:</label>
57 57
           <el-select
58 58
             v-model="searchData.cusSign"
59 59
             class="form_select"
@@ -71,6 +71,23 @@
71 71
             />
72 72
           </el-select>
73 73
         </el-col>
74
+        <el-col :span="3">
75
+          <label style="font-size: 12px">短信状态:</label>
76
+          <el-select
77
+            v-model="searchData.smsStatus"
78
+            size="mini"
79
+            style="width: 88px"
80
+            clearable
81
+            filterable
82
+          >
83
+            <el-option
84
+              v-for="item in smsStatusData"
85
+              :key="item.value"
86
+              :label="item.faxStatus"
87
+              :value="item.value"
88
+            />
89
+          </el-select>
90
+        </el-col>
74 91
         <el-col :span="4" class="colorsize">
75 92
           <div style="float: right; font-size: 12px">
76 93
             浅绿:有经办人;浅灰:不用编号
@@ -300,7 +317,7 @@
300 317
         label="传真号码"
301 318
         align="left"
302 319
         prop="qh"
303
-        min-width="100"
320
+        min-width="120"
304 321
       />
305 322
 
306 323
       <el-table-column
@@ -318,14 +335,14 @@
318 335
         prop="cusCode"
319 336
         label="客户代码"
320 337
         align="left"
321
-        min-width="120"
338
+        min-width="100"
322 339
       />
323 340
       <el-table-column
324 341
         :show-overflow-tooltip="true"
325 342
         prop="companyName"
326 343
         label="单位名称"
327 344
         align="left"
328
-        min-width="270"
345
+        min-width="250"
329 346
       />
330 347
       <el-table-column
331 348
         :show-overflow-tooltip="true"
@@ -339,7 +356,7 @@
339 356
         :show-overflow-tooltip="true"
340 357
         label="付款方式"
341 358
         align="left"
342
-        min-width="140"
359
+        min-width="138"
343 360
       >
344 361
         <template slot-scope="scope">
345 362
           {{ scope.row.payment | CusCcFilter }}
@@ -417,7 +434,7 @@
417 434
         :show-overflow-tooltip="true"
418 435
         label="备注"
419 436
         align="left"
420
-        min-width="58"
437
+        min-width="80"
421 438
       >
422 439
         <template slot-scope="scope">
423 440
           {{ scope.row.remark }}
@@ -473,6 +490,13 @@ export default {
473 490
       }
474 491
       return statusMap[status]
475 492
     },
493
+    faxSmsStatusFilter(status) {
494
+      const statusMap = {
495
+        1: '已发送',
496
+        0: '未发送'
497
+      }
498
+      return statusMap[status]
499
+    },
476 500
     isCloseFilter(status) {
477 501
       const statusMap = {
478 502
         1: '关闭',
@@ -579,6 +603,16 @@ export default {
579 603
       autoWidth: true,
580 604
       bookType: 'xlsx',
581 605
       sale: '',
606
+      smsStatusData: [
607
+        {
608
+          value: '1',
609
+          faxStatus: '已发送'
610
+        },
611
+        {
612
+          value: '0',
613
+          faxStatus: '未发送'
614
+        }
615
+      ], // 下拉框
582 616
       signList: [
583 617
         {
584 618
           value: '1',
@@ -753,6 +787,7 @@ export default {
753 787
           cusSign: this.searchData.cusSign, // 客户类型
754 788
           faxNumber: this.searchData.faxNumber, // 传真编号
755 789
           faxPhone: this.searchData.faxPhone, // 传真号码
790
+          smsStatus:this.searchData.smsStatus, // 短信状态
756 791
           faxStatus: this.searchData.faxStatus, // 传真状态
757 792
           companyName: this.searchData.companyName, // 单位名称
758 793
           cusCode: this.searchData.cusCode, // 客户代码
@@ -834,6 +869,7 @@ export default {
834 869
           cusSign: this.searchData.cusSign, // 客户类型
835 870
           faxNumber: this.searchData.faxNumber, // 传真编号
836 871
           faxPhone: this.searchData.faxPhone, // 传真号码
872
+          smsStatus: this.searchData.smsStatus,
837 873
           faxStatus: this.searchData.faxStatus, // 传真状态
838 874
           companyName: this.searchData.companyName, // 单位名称
839 875
           cusCode: this.searchData.cusCode, // 客户代码
@@ -972,6 +1008,7 @@ export default {
972 1008
           '销售经理',
973 1009
           '要求完成日期',
974 1010
           '闭环日期',
1011
+          '短信状态',
975 1012
           '是否关闭',
976 1013
           '是否发起',
977 1014
           '备注'
@@ -989,6 +1026,7 @@ export default {
989 1026
           'saleManager',
990 1027
           'requiredCompletionTime',
991 1028
           'completionTime',
1029
+          'sendSMS',
992 1030
           'isClose',
993 1031
           'isInitiate',
994 1032
           'remark'
@@ -1061,17 +1099,9 @@ export default {
1061 1099
             return this.faxStatusFilter(v[j])
1062 1100
           } else if (j == 'faxStatus' && v[j] === '3') {
1063 1101
             return this.faxStatusFilter(v[j])
1064
-          } else if (j == 'faxStatus' && v[j] === '4') {
1065
-            return this.CusCcFilter(v[j])
1066
-          } else if (j == 'payment' && v[j] === 'A') {
1067
-            return this.CusCcFilter(v[j])
1068
-          } else if (j == 'payment' && v[j] === 'B') {
1069
-            return this.CusCcFilter(v[j])
1070
-          } else if (j == 'payment' && v[j] === 'C') {
1071
-            return this.CusCcFilter(v[j])
1072
-          } else if (j == 'payment' && v[j] === 'D') {
1073
-            return this.CusCcFilter(v[j])
1074
-          } else if (j == 'payment' && v[j] === 'E') {
1102
+          } else if (j == 'sendSMS') {
1103
+            return this.faxSmsStatusFilter(v[j])
1104
+          } else if (j == 'payment' && v[j]) {
1075 1105
             return this.CusCcFilter(v[j])
1076 1106
           } else if (j == 'cusSign' && v[j] === '101') {
1077 1107
             return this.cusSignFilter(v[j])
@@ -1103,6 +1133,13 @@ export default {
1103 1133
       }
1104 1134
       return statusMap[status]
1105 1135
     },
1136
+    faxSmsStatusFilter(status) {
1137
+      const statusMap = {
1138
+        '1': '已发送',
1139
+        '0': '未发送'
1140
+      }
1141
+      return statusMap[status]
1142
+    },
1106 1143
     cusSignFilter(status) {
1107 1144
       const statusMap = {
1108 1145
         101: '军品业务',
@@ -1198,6 +1235,7 @@ export default {
1198 1235
       this.searchData.cusSign = '' // 客户类型
1199 1236
       this.searchData.faxNumber = '' // 传真编号
1200 1237
       this.searchData.faxPhone = '' // 传真号码
1238
+      this.searchData.smsStatus = ''
1201 1239
       this.searchData.faxStatus = '' // 传真状态
1202 1240
       this.searchData.companyName = '' // 单位名称
1203 1241
       this.searchData.cusCode = '' // 客户代码

+ 1 - 0
CallCenterWeb.UI/src/views/reportFormManagement/clientGrade/index.vue

@@ -244,6 +244,7 @@ export default {
244 244
 
245 245
 <!-- 需要注意的是,修改elementUI的默认样式的css不能使用scoped. -->
246 246
 <style rel="stylesheet/scss" lang="scss">
247
+  
247 248
 .dic_setup {
248 249
   .el-table tr {
249 250
     cursor: pointer;

+ 68 - 2
CallCenterWeb.UI/src/views/reportFormManagement/clientGrade/listDetail.vue

@@ -1,16 +1,31 @@
1 1
 <template>
2 2
   <div>
3
+    <div style="text-align: right;">
4
+      <el-button
5
+        style="margin-right: 15px;"
6
+        :loading="downloadLoading"
7
+        class="filter-item"
8
+        type="primary"
9
+        icon="el-icon-upload2"
10
+        @click="handleDownload"
11
+        >导出</el-button
12
+      >
13
+    </div>
3 14
     <el-table
4 15
       :data="dataLists"
5 16
       border
17
+      max-height="650"
6 18
       highlight-current-row
7 19
       stripe>
8
-      <el-table-column prop="level" label="客户等级" align="center"/>
20
+      <el-table-column prop="level" label="客户等级" min-width="220"align="center"/>
21
+      <el-table-column prop="cusname" label="客户名称" min-width="260" align="center"/>
22
+      <el-table-column prop="cuscode" label="客户代码" align="center"/>
9 23
       <el-table-column prop="salman" label="销售经理" align="center" min-width />
10 24
       <el-table-column prop="records" label="来电数量" align="center" min-width />
11 25
       <el-table-column prop="jindu" label="查询进度" align="center" min-width />
12 26
       <el-table-column prop="per" label="占比" align="center" min-width />
13 27
     </el-table>
28
+
14 29
     <!-- <pagination
15 30
       v-show="pageParams.total > 0"
16 31
       :total="pageParams.total"
@@ -46,6 +61,7 @@ export default {
46 61
   },
47 62
   data() {
48 63
     return {
64
+      downloadLoading:false,
49 65
       dataLists: [],
50 66
       pageParams: {
51 67
         pageindex: 1, // 当前第几页
@@ -96,7 +112,52 @@ export default {
96 112
       })
97 113
     },
98 114
     handleChange() {},
115
+    // 导出
116
+    handleDownload() {
117
+      this.downloadLoading = true;
118
+      import("@/vendor/Export2Excel").then((excel) => {
119
+        const tHeader = [
120
+          "客户等级",
121
+          "客户名称",
122
+          "客户代码",
123
+          "销售经理",
124
+          "来电数量",
125
+          "查询进度",
126
+          "占比",
127
+        ];
128
+        const filterVal = [
129
+          "level",
130
+          "cusname",
131
+          "cuscode",
132
+          "salman",
133
+          "records",
134
+          "jindu",
135
+          "per",
136
+        ];
137
+        const list = this.dataLists;
138
+        const data = this.formatJson(filterVal, list);
99 139
 
140
+        excel.export_json_to_excel({
141
+          header: tHeader, // 表头 必填
142
+          data, // 具体数据 必填
143
+          filename: "客户等级详情", // 非必填
144
+          autoWidth: this.autoWidth, // 非必填
145
+          bookType: this.bookType, // 非必填
146
+        });
147
+        this.downloadLoading = false;
148
+      });
149
+    },
150
+    formatJson(filterVal, jsonData) {
151
+      return jsonData.map((v) =>
152
+        filterVal.map((j) => {
153
+          if (j === "") {
154
+            return timestampToTime(v[j]);
155
+          } else {
156
+            return v[j];
157
+          }
158
+        })
159
+      );
160
+    },
100 161
     formtTime(val) {
101 162
       if (!val) {
102 163
         return '0秒'
@@ -139,8 +200,13 @@ export default {
139 200
   }
140 201
 }
141 202
 </script>
142
-
203
+<style>
204
+  .vl-notify-content {
205
+    height: auto !important;
206
+  }
207
+</style>
143 208
 <style scoped>
209
+  
144 210
   /deep/.el-tabs__item {
145 211
     width: 185px !important;
146 212
     text-align: center;