hanchaobo 2 лет назад
Родитель
Сommit
cfcdd5c92b

+ 20
- 0
src/api/deliveryRecord/deliveryRecord.js Просмотреть файл

@@ -0,0 +1,20 @@
1
+import request from '@/utils/request'
2
+
3
+// 查询邮件列表
4
+export function emailList(data) {
5
+    return request({
6
+        url: '/sendMailRecord/list',
7
+        method: 'get',
8
+        params: data
9
+    })
10
+}
11
+
12
+// 查询短信列表
13
+export function smsList(data,params) {
14
+    return request({
15
+        url: '/caseApplication/smsRecord',
16
+        method: 'post',
17
+        data: data,
18
+        params:params
19
+    })
20
+}

+ 19
- 0
src/api/login.js Просмотреть файл

@@ -56,4 +56,23 @@ export function getCodeImg() {
56 56
     method: 'get',
57 57
     timeout: 20000
58 58
   })
59
+}
60
+// 获取手机验证码
61
+export function sendCode(data) {
62
+	return request({
63
+		url: '/weChatUser/sendCode',
64
+		method: 'get',
65
+		params:data
66
+	})
67
+}
68
+// 注册方法
69
+export function wxregister(data) {
70
+	return request({
71
+		url: '/weChatUser/registerUser',
72
+		headers: {
73
+			isToken: false
74
+		},
75
+		method: 'post',
76
+		data: data
77
+	})
59 78
 }

+ 25
- 39
src/views/caseManagement/components/addCase.vue Просмотреть файл

@@ -490,13 +490,15 @@ export default {
490 490
       applicantEvidence: [], //申请人证据
491 491
       respondentEvidence: [], //被申请人证据
492 492
       buttonFlag: true,
493
-      getUserInfoList: {}
493
+      getUserInfoList: {},
494
+      applicationFlag: null
494 495
     };
495 496
   },
496 497
   watch: {
497 498
     addModifyData(val) {
498 499
       if (val == 1) {
499 500
         this.title = "新增案件";
501
+        this.getUserInfoFn();
500 502
         this.modelFlag = false;
501 503
         this.buttonFlag = true;
502 504
         this.formData = {
@@ -524,48 +526,12 @@ export default {
524 526
         if (this.addModifyData != 1) {
525 527
           this.caseApplicationSelectByIdFn(this.caseData.id);
526 528
         }
527
-        if (this.formData.affiliate.organizeFlag == 0) {
528
-          this.formData.affiliate.applicationName = this.getUserInfoList.nickName;
529
-          this.formData.affiliate.code = this.getUserInfoList.idCard;
530
-          this.formData.affiliate.applicationEmail = this.getUserInfoList.email;
531
-          this.formData.affiliate.applicationPhone = this.getUserInfoList.phonenumber;
532
-        } else if (this.formData.affiliate.organizeFlag == 1) {
533
-          this.formData.affiliate.nameAgent = this.getUserInfoList.nickName;
534
-          this.formData.affiliate.agentEmail = this.getUserInfoList.email;
535
-          this.formData.affiliate.contactTelphoneAgent = this.getUserInfoList.phonenumber;
536
-        }
537 529
       }
538 530
     },
539
-    formData: {
540
-      handler(newVal) {
541
-        if (newVal) {
542
-          console.log('newVal========newVal==========newVal', newVal);
543
-          if (newVal.affiliate.organizeFlag == 0) {
544
-            this.formData.affiliate.applicationName = this.getUserInfoList.nickName;
545
-            this.formData.affiliate.code = this.getUserInfoList.idCard;
546
-            this.formData.affiliate.applicationEmail = this.getUserInfoList.email;
547
-            this.formData.affiliate.applicationPhone = this.getUserInfoList.phonenumber;
548
-            // this.formData.affiliate.nameAgent = '';
549
-            // this.formData.affiliate.agentEmail = '';
550
-            // this.formData.affiliate.contactTelphoneAgent = '';
551
-          } else if (newVal.affiliate.organizeFlag == 1) {
552
-            // this.formData.affiliate.applicationName = "";
553
-            // this.formData.affiliate.code = "";
554
-            // this.formData.affiliate.applicationEmail = "";
555
-            // this.formData.affiliate.applicationPhone = "";
556
-            this.formData.affiliate.nameAgent = this.getUserInfoList.nickName;
557
-            this.formData.affiliate.agentEmail = this.getUserInfoList.email;
558
-            this.formData.affiliate.contactTelphoneAgent = this.getUserInfoList.phonenumber;
559
-          }
560
-        }
561
-      },
562
-      deep: true, // 深度监听
563
-      immediate: true, // 初始化监听
564
-    }
565 531
   },
566 532
   created() {
567 533
     console.log(this.formData, "000000000000000000")
568
-    this.getUserInfoFn();
534
+    // this.getUserInfoFn();
569 535
   },
570 536
   methods: {
571 537
     /** 切换申请类型 */
@@ -576,8 +542,11 @@ export default {
576 542
     /**获取申请人信息 */
577 543
     getUserInfoFn() {
578 544
       getUserInfo().then(res => {
579
-        console.log(res, "信息信息信息信息信息信息信息信息信息信息信息信息信息信息");
580 545
         this.getUserInfoList = res.data;
546
+        this.$set(this.formData.affiliate, "applicationName", this.getUserInfoList.nickName);
547
+        this.$set(this.formData.affiliate, "code", this.getUserInfoList.idCard);
548
+        this.$set(this.formData.affiliate, "applicationEmail", this.getUserInfoList.email);
549
+        this.$set(this.formData.affiliate, "applicationPhone", this.getUserInfoList.phonenumber);
581 550
       })
582 551
     },
583 552
     /** 根据案件id获取对应信息 */
@@ -671,6 +640,23 @@ export default {
671 640
       });
672 641
     },
673 642
     clearValidate(val) {
643
+      if (val == 0) {
644
+        this.$set(this.formData.affiliate, "applicationName", this.getUserInfoList.nickName);
645
+        this.$set(this.formData.affiliate, "code", this.getUserInfoList.idCard);
646
+        this.$set(this.formData.affiliate, "applicationEmail", this.getUserInfoList.email);
647
+        this.$set(this.formData.affiliate, "applicationPhone", this.getUserInfoList.phonenumber);
648
+        this.formData.affiliate.nameAgent = null;
649
+        this.formData.affiliate.agentEmail = null;
650
+        this.formData.affiliate.contactTelphoneAgent = null;
651
+      } else if (val == 1) {
652
+        this.$set(this.formData.affiliate, "nameAgent", this.getUserInfoList.nickName);
653
+        this.$set(this.formData.affiliate, "agentEmail", this.getUserInfoList.email);
654
+        this.$set(this.formData.affiliate, "contactTelphoneAgent", this.getUserInfoList.phonenumber);
655
+        this.formData.affiliate.applicationName = null;
656
+        this.formData.affiliate.code = null;
657
+        this.formData.affiliate.applicationEmail = null;
658
+        this.formData.affiliate.applicationPhone = null;
659
+      }
674 660
       this.$refs["ruleForm"].clearValidate()
675 661
     },
676 662
     cancel() {

+ 1
- 1
src/views/caseManagement/components/payDialog.vue Просмотреть файл

@@ -12,7 +12,7 @@
12 12
         <el-descriptions-item label="案件标的">{{
13 13
           formPayDetail.caseSubjectAmount
14 14
         }}</el-descriptions-item>
15
-        <el-descriptions-item label="案件应缴费用">{{
15
+        <el-descriptions-item label="申请人应缴费用">{{
16 16
           formPayDetail.feePayable
17 17
         }}</el-descriptions-item>
18 18
         <el-descriptions-item label="被申请人">{{

+ 7
- 4
src/views/caseManagement/components/paymentdetailsDialog.vue Просмотреть файл

@@ -1,17 +1,20 @@
1 1
 <template>
2 2
   <div>
3 3
     <el-dialog :title="title" :visible="openDialog" @close="cancel" :destroy-on-close="true" center>
4
-      <el-form ref="form" :model="form" label-width="90px" :disabled="true">
4
+      <el-form ref="form" :model="form" label-width="180px" :disabled="true">
5 5
         <el-form-item label="案件编号:" prop="caseNum">
6 6
           <el-input v-model="form.caseNum" placeholder="" />
7 7
         </el-form-item>
8
-        <el-form-item label="案件标的:" prop="caseSubjectAmount">
8
+        <!-- <el-form-item label="案件标的:" prop="caseSubjectAmount">
9 9
           <el-input v-model="form.caseSubjectAmount" />
10
-        </el-form-item>
10
+        </el-form-item> -->
11 11
         <!-- <el-form-item label="缴费人:" prop="applicantName">
12 12
           <el-input v-model="form.applicationName" placeholder="" />
13 13
         </el-form-item> -->
14
-        <el-form-item label="缴费金额:" prop="feePayable">
14
+        <el-form-item label="申请人缴费金额:" prop="feePayable">
15
+          <el-input v-model="form.feePayable" />
16
+        </el-form-item>
17
+        <el-form-item label="被申请人缴费金额:" prop="feePayable">
15 18
           <el-input v-model="form.feePayable" />
16 19
         </el-form-item>
17 20
         <el-form-item label="申请人缴费凭证:" v-if="form.caseAttachList.length > 0">

+ 1
- 1
src/views/caseManagement/components/respondentPay.vue Просмотреть файл

@@ -12,7 +12,7 @@
12 12
           <el-descriptions-item label="案件标的">{{
13 13
             formResPayDetail.caseSubjectAmount
14 14
           }}</el-descriptions-item>
15
-          <el-descriptions-item label="案件应缴费用">{{
15
+          <el-descriptions-item label="被申请人应缴费用">{{
16 16
             formResPayDetail.feePayable
17 17
           }}</el-descriptions-item>
18 18
           <el-descriptions-item label="被申请人">{{

+ 104
- 0
src/views/deliveryRecord/emailRecord.vue Просмотреть файл

@@ -0,0 +1,104 @@
1
+<template>
2
+    <div class="app-container">
3
+        <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px">
4
+            <el-form-item label="案件编号" prop="caseNum">
5
+                <el-input v-model="queryParams.caseNum" placeholder="请输入案件编号" clearable @keyup.enter.native="handleQuery" />
6
+            </el-form-item>
7
+            <el-form-item>
8
+                <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
9
+                <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
10
+            </el-form-item>
11
+        </el-form>
12
+        <el-table v-loading="loading" :data="dataList" style="width: 100%">
13
+            <el-table-column label="序号" type="index" align="center">
14
+                <template slot-scope="scope">
15
+                    <span>{{
16
+                        (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
17
+                    }}</span>
18
+                </template>
19
+            </el-table-column>
20
+            <el-table-column label="案件编号" align="center" prop="caseNum" :show-overflow-tooltip="true" />
21
+            <el-table-column label="名称" align="center" prop="mailName" :show-overflow-tooltip="true" />
22
+            <!-- <el-table-column label="证件号码" align="center" prop="caseNum" :show-overflow-tooltip="true" /> -->
23
+            <el-table-column label="邮箱地址" align="center" prop="mailAddress" />
24
+            <el-table-column label="发送时间" align="center" prop="sendTime" :show-overflow-tooltip="true" />
25
+            <el-table-column label="发送状态" align="center" prop="sendStatus" />
26
+            <!-- <el-table-column label="文书类型" align="center" prop="hearDate" :show-overflow-tooltip="true" /> -->
27
+            <!-- 缴费人 -->
28
+            <!-- <el-table-column label="案件状态" align="center" prop="caseStatusName" /> -->
29
+            <el-table-column label="内容" align="center" prop="mailContent"></el-table-column>
30
+        </el-table>
31
+        <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
32
+            @pagination="getList(queryParams)" />
33
+
34
+    </div>
35
+</template>
36
+  
37
+<script>
38
+import {
39
+    emailList,
40
+} from "@/api/deliveryRecord/deliveryRecord.js";
41
+
42
+import { getDicts } from '@/api/system/dict/data.js'
43
+export default {
44
+    name: "paymentList",
45
+    dicts: ["case_status"],
46
+    components: {},
47
+    data() {
48
+        return {
49
+            queryParams: {
50
+                pageNum: 1,
51
+                pageSize: 10,
52
+            },
53
+            caseStatus: [],
54
+            // 遮罩层
55
+            loading: false,
56
+            // 总条数
57
+            total: 0,
58
+            // 表格数据
59
+            form: {},
60
+            // 校验表单
61
+            rules: {},
62
+            dataList: [],
63
+        };
64
+    },
65
+    created() {
66
+        getDicts("case_status").then(res => {
67
+            this.caseStatus = res.data;
68
+            this.getList(this.queryParams);
69
+        })
70
+    },
71
+    methods: {
72
+        /** 搜索按钮操作 */
73
+        handleQuery() {
74
+            this.queryParams.pageNum = 1;
75
+            this.getList(this.queryParams);
76
+        },
77
+        /** 重置按钮操作 */
78
+        resetQuery() {
79
+            this.resetForm("queryForm");
80
+            this.handleQuery();
81
+        },
82
+        // 查询列表数据
83
+        getList(parms) {
84
+            this.loading = true;
85
+            emailList(parms).then((response) => {
86
+                this.dataList = response.rows;
87
+                this.dataList.forEach(item => {
88
+                    if (item.sendStatus == 0) {
89
+                        item.sendStatus = "未发送"
90
+                    } else if (item.sendStatus == 1) {
91
+                        item.sendStatus = "已发送"
92
+                    } else {
93
+                        item.sendStatus = "未发送"
94
+                    }
95
+                })
96
+                this.total = response.total;
97
+                this.loading = false;
98
+            });
99
+        },
100
+    },
101
+};
102
+</script>
103
+  
104
+<style lang="scss" scoped></style>

+ 100
- 0
src/views/deliveryRecord/smsRecord.vue Просмотреть файл

@@ -0,0 +1,100 @@
1
+<template>
2
+    <div class="app-container">
3
+        <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px">
4
+            <el-form-item label="案件编号" prop="caseNum">
5
+                <el-input v-model="queryParams.caseNum" placeholder="请输入案件编号" clearable @keyup.enter.native="handleQuery" />
6
+            </el-form-item>
7
+            <el-form-item>
8
+                <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
9
+                <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
10
+            </el-form-item>
11
+        </el-form>
12
+        <el-table v-loading="loading" :data="dataList" style="width: 100%">
13
+            <el-table-column label="序号" type="index" align="center">
14
+                <template slot-scope="scope">
15
+                    <span>{{
16
+                        (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
17
+                    }}</span>
18
+                </template>
19
+            </el-table-column>
20
+            <el-table-column label="案件编号" align="center" prop="caseNum" :show-overflow-tooltip="true" />
21
+            <el-table-column label="手机号" align="center" prop="phone" :show-overflow-tooltip="true" />
22
+            <el-table-column label="发送时间" align="center" prop="sendTime" />
23
+            <el-table-column label="发送状态" align="center" prop="sendStatus" />
24
+            <el-table-column label="发送内容" align="center" prop="sendContent" :show-overflow-tooltip="true" />
25
+        </el-table>
26
+        <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
27
+            @pagination="getList({caseNum:queryParams.caseNum},{pageNum:queryParams.pageNum,pageSize:queryParams.pageSize})" />
28
+       
29
+    </div>
30
+</template>
31
+  
32
+<script>
33
+import {
34
+    smsList,
35
+} from "@/api/deliveryRecord/deliveryRecord.js";
36
+
37
+import { getDicts } from '@/api/system/dict/data.js'
38
+export default {
39
+    name: "paymentList",
40
+    dicts: ["case_status"],
41
+    components: { },
42
+    data() {
43
+        return {
44
+            queryParams: {
45
+                pageNum: 1,
46
+                pageSize: 10,
47
+            },
48
+            caseStatus: [],
49
+            // 遮罩层
50
+            loading: false,
51
+            // 总条数
52
+            total: 0,
53
+            // 表格数据
54
+            form: {},
55
+            // 校验表单
56
+            rules: {},
57
+            dataList: [],
58
+        };
59
+    },
60
+    created() {
61
+        getDicts("case_status").then(res => {
62
+            this.getList({caseNum:this.queryParams.caseNum},{pageNum:this.queryParams.pageNum,pageSize:this.queryParams.pageSize});
63
+        })
64
+    },
65
+    methods: {
66
+        /** 搜索按钮操作 */
67
+        handleQuery() {
68
+            this.queryParams.pageNum = 1;
69
+            this.getList({caseNum:this.queryParams.caseNum},{pageNum:this.queryParams.pageNum,pageSize:this.queryParams.pageSize});
70
+        },
71
+        /** 重置按钮操作 */
72
+        resetQuery() {
73
+            this.resetForm("queryForm");
74
+            this.handleQuery();
75
+        },
76
+        // 查询列表数据
77
+        getList(data,params) {
78
+            this.loading = true;
79
+            smsList(data,params).then((response) => {
80
+                this.dataList = response.rows;
81
+                this.dataList.forEach(item=>{
82
+                    if(item.sendStatus == 0){
83
+                        item.sendStatus = "发送失败"
84
+                    }else if(item.sendStatus == 1){
85
+                        item.sendStatus = "已送达"
86
+                    }else if(item.sendStatus == 2){
87
+                        item.sendStatus = "已读取"
88
+                    }else{
89
+                        item.sendStatus = "发送失败"
90
+                    }
91
+                })
92
+                this.total = response.total;
93
+                this.loading = false;
94
+            });
95
+        },
96
+    },
97
+};
98
+</script>
99
+  
100
+<style lang="scss" scoped></style>

+ 71
- 10
src/views/register.vue Просмотреть файл

@@ -29,6 +29,39 @@
29 29
           <svg-icon slot="prefix" icon-class="password" class="el-input__icon input-icon" />
30 30
         </el-input>
31 31
       </el-form-item>
32
+      <el-form-item prop="identityNo">
33
+        <el-input v-model="registerForm.identityNo" type="text" auto-complete="off" placeholder="身份证号码">
34
+          <svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />
35
+        </el-input>
36
+      </el-form-item>
37
+      <el-form-item prop="email">
38
+        <el-input v-model="registerForm.email" type="text" auto-complete="off" placeholder="邮箱">
39
+          <svg-icon slot="prefix" icon-class="email" class="el-input__icon input-icon" />
40
+        </el-input>
41
+      </el-form-item>
42
+      <el-form-item prop="name">
43
+        <el-input v-model="registerForm.name" type="text" auto-complete="off" placeholder="用户名">
44
+          <svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />
45
+        </el-input>
46
+      </el-form-item>
47
+      <el-form-item prop="phone">
48
+        <el-input
49
+          v-model="registerForm.phone"
50
+          auto-complete="off"
51
+          placeholder="手机号"
52
+          style="width: 63%"
53
+        >
54
+          <svg-icon slot="prefix" icon-class="phone" class="el-input__icon input-icon" />
55
+        </el-input>
56
+        <div class="register-code">
57
+          <el-button type="primary" :disabled="codeDisabled" @click="getCodeNumber(registerForm.phone)">{{codeText}}</el-button>
58
+        </div>
59
+      </el-form-item>
60
+      <el-form-item prop="verifyCode">
61
+        <el-input v-model="registerForm.verifyCode" type="text" auto-complete="off" placeholder="手机验证码">
62
+          <svg-icon slot="prefix" icon-class="validCode" class="el-input__icon input-icon" />
63
+        </el-input>
64
+      </el-form-item>
32 65
       <el-form-item prop="code" v-if="captchaEnabled">
33 66
         <el-input
34 67
           v-model="registerForm.code"
@@ -67,7 +100,7 @@
67 100
 </template>
68 101
 
69 102
 <script>
70
-import { getCodeImg, register } from "@/api/login";
103
+import { getCodeImg, register, sendCode, wxregister } from "@/api/login";
71 104
 
72 105
 export default {
73 106
   name: "Register",
@@ -80,13 +113,16 @@ export default {
80 113
       }
81 114
     };
82 115
     return {
116
+      codeText: "发送验证码",
117
+      codeDisabled:false,
83 118
       codeUrl: "",
84 119
       registerForm: {
85 120
         username: "",
86 121
         password: "",
122
+        phone:"",
87 123
         confirmPassword: "",
88 124
         code: "",
89
-        uuid: ""
125
+        uuid: "",
90 126
       },
91 127
       registerRules: {
92 128
         username: [
@@ -124,7 +160,7 @@ export default {
124 160
       this.$refs.registerForm.validate(valid => {
125 161
         if (valid) {
126 162
           this.loading = true;
127
-          register(this.registerForm).then(res => {
163
+          wxregister(this.registerForm).then(res => {
128 164
             const username = this.registerForm.username;
129 165
             this.$alert("<font color='red'>恭喜你,您的账号 " + username + " 注册成功!</font>", '系统提示', {
130 166
               dangerouslyUseHTMLString: true,
@@ -140,7 +176,31 @@ export default {
140 176
           })
141 177
         }
142 178
       });
143
-    }
179
+    },
180
+    getCodeNumber(data) {
181
+				sendCode({
182
+					phone: data
183
+				}).then(res => {
184
+					if (res.code != 200) {
185
+            this.$modal.msgError(res.msg);
186
+						return
187
+					} else {
188
+            this.$modal.msgSuccess('发送成功');
189
+						let time = 60;
190
+						let timer = setInterval(() => {
191
+							time--;
192
+							this.codeDisabled = true;
193
+							this.codeText = time + 's重试'
194
+							if (time == 0) {
195
+								clearInterval(timer)
196
+								this.codeText = '发送验证码'
197
+								this.codeDisabled = false;
198
+							}
199
+						}, 1000)
200
+					}
201
+
202
+				})
203
+			},
144 204
   }
145 205
 };
146 206
 </script>
@@ -164,13 +224,14 @@ export default {
164 224
   border-radius: 6px;
165 225
   background: #ffffff;
166 226
   width: 400px;
227
+  height: 90%;
167 228
   padding: 25px 25px 5px 25px;
168
-  .el-input {
169
-    height: 38px;
170
-    input {
171
-      height: 38px;
172
-    }
173
-  }
229
+  // .el-input {
230
+  //   height: 38px;
231
+  //   input {
232
+  //     height: 38px;
233
+  //   }
234
+  // }
174 235
   .input-icon {
175 236
     height: 39px;
176 237
     width: 14px;

+ 2
- 6
vue.config.js Просмотреть файл

@@ -14,13 +14,8 @@ const port = process.env.port || process.env.npm_config_port || 80 // 端口
14 14
 // const API = 'http://121.40.189.20:9001'  //生产
15 15
 const API = 'http://121.40.189.20:6001'  //测试
16 16
 // const API = 'http://192.168.3.18:6001'  //B
17
-<<<<<<< HEAD
18
-// const API = 'http://172.16.0.237:6001' //Q
19
-// const API = 'http://172.16.1.43:6001' //w
20
-=======
21 17
 // const API = 'http://172.16.1.30:6001' //Q
22
-// const API = 'http://172.16.1.17:6001' //w
23
->>>>>>> 14df1eebfbde9573a5c541678ad9dfbb33797007
18
+// const API = 'http://172.16.1.43:6001' //w
24 19
 
25 20
 // vue.config.js 配置说明
26 21
 //官方vue.config.js 参考文档 https://cli.vuejs.org/zh/config/#css-loaderoptions
@@ -64,6 +59,7 @@ module.exports = {
64 59
   },
65 60
   configureWebpack: {
66 61
     name: name,
62
+    devtool: '#eval-source-map',
67 63
     resolve: {
68 64
       alias: {
69 65
         '@': resolve('src')