소스 검색

签收,按钮权限

hanchaobo 2 년 전
부모
커밋
07daf8223b

+ 176
- 168
api/handlecase/index.js 파일 보기

1
-import request from '@/utils/request'
2
-
3
-// 查询被申请人案件列表
4
-export function respondentList(data) {
5
-	return request({
6
-		'url': '/evidence/all',
7
-		method: 'get',
8
-		params: data
9
-	})
10
-}
11
-// 查询详情
12
-export function respondentDetail(data) {
13
-	return request({
14
-		'url': `/evidence/${data}`,
15
-		method: 'get',
16
-	})
17
-}
18
-// 查询仲裁员列表
19
-export function arbitratorList(data) {
20
-	return request({
21
-		'url': `/caseApplication/listMediator`,
22
-		method: 'get',
23
-		params: data
24
-	})
25
-}
26
-// 确认证据
27
-export function evidenceConfirm() {
28
-	return request({
29
-		'url': `/evidence/confirm`,
30
-		method: 'put',
31
-	})
32
-}
33
-// 案件质证
34
-export function evidenceCrossexami(data) {
35
-	return request({
36
-		'url': `/evidence/crossexami`,
37
-		method: 'post',
38
-		data: data
39
-	})
40
-}
41
-// 查询物流信息
42
-export function logistics(data) {
43
-	return request({
44
-		'url': `/adjudication/logistics`,
45
-		method: 'get',
46
-		data: data
47
-	})
48
-}
49
-// 查询案件列表
50
-export function caseApplicationList(data) {
51
-	return request({
52
-		'url': `/caseApplication/list`,
53
-		method: 'get',
54
-		params: data
55
-	})
56
-}
57
-// 调解系统查看相关案件
58
-export function caseApplicationTj(data) {
59
-	return request({
60
-		'url': `/caseApplication/list`,
61
-		method: 'get',
62
-		params: data
63
-	})
64
-}
65
-// 调解系统查看相关案件详情
66
-export function selectById(data) {
67
-	return request({
68
-		'url': `/caseApplication/selectById`,
69
-		method: 'get',
70
-		params: data
71
-	})
72
-}
73
-// 调解系统选择仲裁员时间
74
-export function updateBooking(data) {
75
-	return request({
76
-		'url': `/caseApplication/updateBooking`,
77
-		method: 'post',
78
-		data: data
79
-	})
80
-}
81
-// 查询按钮列表
82
-export function queryCaseFlowInfo(data) {
83
-	return request({
84
-		'url': `/case/flow/queryCaseFlowInfo`,
85
-		method: 'post',
86
-		data: data
87
-	})
88
-}
89
-
90
-// 根据机构id查询模板
91
-export function getTemplate(data) {
92
-	return request({
93
-		url: `/deptIdentify/getTemplate`,
94
-		method: 'get',
95
-		params: data
96
-	})
97
-}
98
-
99
-// 根据身份证获取生日和性别
100
-export function getInfoByIdCard(query) {
101
-	return request({
102
-		url: '/caseApplication/getInfoByIdCard',
103
-		method: 'get',
104
-		params: query
105
-	})
106
-}
107
-
108
-/** 新增案件 */
109
-export function caseApplicationInsert(data) {
110
-	return request({
111
-		url: '/caseApplication/insert',
112
-		method: 'post',
113
-		data: data
114
-	})
115
-}
116
-// 修改立案申请接口
117
-export function updateComfire(data) {
118
-	return request({
119
-		url: "/caseApplication/update",
120
-		method: "post",
121
-		data: data,
122
-	})
123
-}
124
-//提交案件
125
-export function caseAppSubmit(data) {
126
-	return request({
127
-		url: '/caseApplication/submit',
128
-		method: 'post',
129
-		data: data
130
-	})
131
-}
132
-/** 根据id查询案件信息 */
133
-export function caseApplicationSelectById(data) {
134
-  return request({
135
-    url: '/caseApplication/selectById',
136
-    method: 'get',
137
-    params: data
138
-  })
1
+import request from '@/utils/request'
2
+
3
+// 查询被申请人案件列表
4
+export function respondentList(data) {
5
+	return request({
6
+		'url': '/evidence/all',
7
+		method: 'get',
8
+		params: data
9
+	})
10
+}
11
+// 查询详情
12
+export function respondentDetail(data) {
13
+	return request({
14
+		'url': `/evidence/${data}`,
15
+		method: 'get',
16
+	})
17
+}
18
+// 查询仲裁员列表
19
+export function arbitratorList(data) {
20
+	return request({
21
+		'url': `/caseApplication/listMediator`,
22
+		method: 'get',
23
+		params: data
24
+	})
25
+}
26
+// 确认证据
27
+export function evidenceConfirm() {
28
+	return request({
29
+		'url': `/evidence/confirm`,
30
+		method: 'put',
31
+	})
32
+}
33
+// 案件质证
34
+export function evidenceCrossexami(data) {
35
+	return request({
36
+		'url': `/evidence/crossexami`,
37
+		method: 'post',
38
+		data: data
39
+	})
40
+}
41
+// 查询物流信息
42
+export function logistics(data) {
43
+	return request({
44
+		'url': `/adjudication/logistics`,
45
+		method: 'get',
46
+		data: data
47
+	})
48
+}
49
+// 查询案件列表
50
+export function caseApplicationList(data) {
51
+	return request({
52
+		'url': `/caseApplication/list`,
53
+		method: 'get',
54
+		params: data
55
+	})
56
+}
57
+// 调解系统查看相关案件
58
+export function caseApplicationTj(data) {
59
+	return request({
60
+		'url': `/caseApplication/list`,
61
+		method: 'get',
62
+		params: data
63
+	})
64
+}
65
+// 调解系统查看相关案件详情
66
+export function selectById(data) {
67
+	return request({
68
+		'url': `/caseApplication/selectById`,
69
+		method: 'get',
70
+		params: data
71
+	})
72
+}
73
+// 调解系统选择仲裁员时间
74
+export function updateBooking(data) {
75
+	return request({
76
+		'url': `/caseApplication/updateBooking`,
77
+		method: 'post',
78
+		data: data
79
+	})
80
+}
81
+// 查询按钮列表
82
+export function queryCaseFlowInfo(data) {
83
+	return request({
84
+		'url': `/case/flow/queryCaseFlowInfo`,
85
+		method: 'post',
86
+		data: data
87
+	})
88
+}
89
+
90
+// 根据机构id查询模板
91
+export function getTemplate(data) {
92
+	return request({
93
+		url: `/deptIdentify/getTemplate`,
94
+		method: 'get',
95
+		params: data
96
+	})
97
+}
98
+
99
+// 根据身份证获取生日和性别
100
+export function getInfoByIdCard(query) {
101
+	return request({
102
+		url: '/caseApplication/getInfoByIdCard',
103
+		method: 'get',
104
+		params: query
105
+	})
106
+}
107
+
108
+/** 新增案件 */
109
+export function caseApplicationInsert(data) {
110
+	return request({
111
+		url: '/caseApplication/insert',
112
+		method: 'post',
113
+		data: data
114
+	})
115
+}
116
+// 修改立案申请接口
117
+export function updateComfire(data) {
118
+	return request({
119
+		url: "/caseApplication/update",
120
+		method: "post",
121
+		data: data,
122
+	})
123
+}
124
+//提交案件
125
+export function caseAppSubmit(data) {
126
+	return request({
127
+		url: '/caseApplication/submit',
128
+		method: 'post',
129
+		data: data
130
+	})
131
+}
132
+/** 根据id查询案件信息 */
133
+export function caseApplicationSelectById(data) {
134
+	return request({
135
+		url: '/caseApplication/selectById',
136
+		method: 'get',
137
+		params: data
138
+	})
139
 }
139
 }
140
 // 删除案件
140
 // 删除案件
141
-export function caseDelete(data) {
142
-	return request({
143
-		url: '/caseApplication/delete',
144
-		method: 'post',
145
-		data: data
146
-	})
141
+export function caseDelete(data) {
142
+	return request({
143
+		url: '/caseApplication/delete',
144
+		method: 'post',
145
+		data: data
146
+	})
147
 }
147
 }
148
 //   案件id查询缴费清单
148
 //   案件id查询缴费清单
149
-export function selectPaymentDetail(data) {
150
-  return request({
151
-    url: '/pay/selectPaymentDetail',
152
-    method: 'get',
153
-    params: data
154
-  })
149
+export function selectPaymentDetail(data) {
150
+	return request({
151
+		url: '/pay/selectPaymentDetail',
152
+		method: 'get',
153
+		params: data
154
+	})
155
 }
155
 }
156
 // 申请人缴费确认
156
 // 申请人缴费确认
157
-export function confirmPaid(data) {
158
-	return request({
159
-		url: '/pay/confirmPaid',
160
-		method: 'post',
161
-		data: data
162
-	})
157
+export function confirmPaid(data) {
158
+	return request({
159
+		url: '/pay/confirmPaid',
160
+		method: 'post',
161
+		data: data
162
+	})
163
 }
163
 }
164
 //默认新增显示
164
 //默认新增显示
165
-export function getUserInfo(data) {
166
-  return request({
167
-    url: '/caseApplication/getUserInfo',
168
-    method: 'get',
169
-    params: data
170
-  })
165
+export function getUserInfo(data) {
166
+	return request({
167
+		url: '/caseApplication/getUserInfo',
168
+		method: 'get',
169
+		params: data
170
+	})
171
 }
171
 }
172
 // 被申请人缴费确认
172
 // 被申请人缴费确认
173
-export function resConfirmPaid(data) {
174
-	return request({
175
-		url: '/pay/resConfirmPaid',
176
-		method: 'post',
177
-		data: data
178
-	})
173
+export function resConfirmPaid(data) {
174
+	return request({
175
+		url: '/pay/resConfirmPaid',
176
+		method: 'post',
177
+		data: data
178
+	})
179
+}
180
+//申请人和被申请人签收调解书
181
+export function msCaseSign(data) {
182
+	return request({
183
+		url: "/mssignSeal/msCaseSign",
184
+		method: "post",
185
+		data: data,
186
+	})
179
 }
187
 }

+ 4
- 4
config.js 파일 보기

3
 	// baseUrlZC: 'https://api.xayunmei.com/zhongcaiapi',
3
 	// baseUrlZC: 'https://api.xayunmei.com/zhongcaiapi',
4
 	// baseUrl: 'https://api.xayunmei.com/zhongcaiapitest',
4
 	// baseUrl: 'https://api.xayunmei.com/zhongcaiapitest',
5
 	// baseUrl: 'http://121.40.189.20:9001',
5
 	// baseUrl: 'http://121.40.189.20:9001',
6
-	// baseUrlZC:'https://api.xayunmei.com/zhongcaiapi',
7
-	baseUrlZC: 'https://api.xayunmei.com/zhongcaiapitest',
6
+	baseUrlZC: 'https://api.xayunmei.com/zhongcaiapi',
7
+	// baseUrlZC: 'https://api.xayunmei.com/zhongcaiapitest',
8
 	baseUrlTJ: 'https://api.xayunmei.com/tiaojieapitest',
8
 	baseUrlTJ: 'https://api.xayunmei.com/tiaojieapitest',
9
-	// baseUrlTJ:'https://api.xayunmei.com/tiaojieapi',
10
-	// baseUrlZC: 'http://121.40.189.20:8001',
9
+	// baseUrlTJ: 'https://api.xayunmei.com/tiaojieapi',
10
+	// baseUrlZC: 'http://121.40.189.20:8001',	
11
 	// baseUrlTJ: 'http://172.16.1.43:6001',
11
 	// baseUrlTJ: 'http://172.16.1.43:6001',
12
 	// baseUrl: 'http://172.16.1.24:8001',
12
 	// baseUrl: 'http://172.16.1.24:8001',
13
 	// baseUrl: 'http://localhost:8080',
13
 	// baseUrl: 'http://localhost:8080',

+ 97
- 43
pages/handlecase/component/list.vue 파일 보기

1
 <template>
1
 <template>
2
-	<view class="list" @click="caseDetail()">
2
+	<view class="list">
3
 		<view class="listItem">
3
 		<view class="listItem">
4
 			<view class="lable">
4
 			<view class="lable">
5
 				案件编号:
5
 				案件编号:
42
 		</view>
42
 		</view>
43
 		<view class="btn" v-if="sysType == 2">
43
 		<view class="btn" v-if="sysType == 2">
44
 			<button class="btnItem" type="primary" size="mini" @tap="modify"
44
 			<button class="btnItem" type="primary" size="mini" @tap="modify"
45
-				v-if="checkPermi(['caseManagement:list:edit'])">修改</button>
45
+				v-if="checkPermi(['caseManagement:list:edit']) && defalutVal.caseFlowId <= 1">修改</button>
46
 			<button class="btnItem" type="primary" size="mini" @tap="deleteCase"
46
 			<button class="btnItem" type="primary" size="mini" @tap="deleteCase"
47
-				v-if="checkPermi(['caseManagement:list:delete'])">删除</button>
47
+				v-if="checkPermi(['caseManagement:list:delete']) && defalutVal.caseFlowId <= 1">删除</button>
48
 			<!-- <button class="btnItem" type="primary" size="mini" @tap="clickPay">申请人缴费</button>
48
 			<!-- <button class="btnItem" type="primary" size="mini" @tap="clickPay">申请人缴费</button>
49
 			<button class="btnItem" type="primary" size="mini" @tap="caseDetail">选择调解员</button> -->
49
 			<button class="btnItem" type="primary" size="mini" @tap="caseDetail">选择调解员</button> -->
50
 			<button class="btnItem" type="primary" @tap="clickType(item.id)" size="mini" v-for="(item) in buttonList"
50
 			<button class="btnItem" type="primary" @tap="clickType(item.id)" size="mini" v-for="(item) in buttonList"
62
 	import {
62
 	import {
63
 		queryCaseFlowInfo,
63
 		queryCaseFlowInfo,
64
 		caseAppSubmit,
64
 		caseAppSubmit,
65
-		caseDelete
65
+		caseDelete,
66
+		msCaseSign
66
 	} from '@/api/handlecase/index.js'
67
 	} from '@/api/handlecase/index.js'
67
 	export default {
68
 	export default {
68
 		data() {
69
 		data() {
121
 					// 归档
122
 					// 归档
122
 				} else if (type == 15) {
123
 				} else if (type == 15) {
123
 					// 申请人签收
124
 					// 申请人签收
125
+					this.signMediation();
124
 				} else if (type == 16) {
126
 				} else if (type == 16) {
125
 					// 被申请人签收
127
 					// 被申请人签收
128
+					this.receivedMediation();
126
 				} else if (type == 17) {
129
 				} else if (type == 17) {
127
 					//结束
130
 					//结束
128
 				} else if (type == 44) {
131
 				} else if (type == 44) {
156
 					caseFlowId: this.defalutVal.caseFlowId
159
 					caseFlowId: this.defalutVal.caseFlowId
157
 				}
160
 				}
158
 				uni.showModal({
161
 				uni.showModal({
159
-				  title: '提示',
160
-				  content: '您确定要提交案件',
161
-				  success: function (res) {
162
-				    if (res.confirm) {
163
-				      // console.log('用户点击确定');
164
-					   caseAppSubmit(onsubmitVal).then(res => {
165
-					   	uni.showToast({
166
-					   		title: '提交成功',
167
-					   		icon: 'none',
168
-					   		duration: 1000
169
-					   	})
170
-					   	uni.navigateTo({
171
-					   		url:'/pages/handlecase/index'
172
-					   	})
173
-					   })
174
-				    } else if (res.cancel) {
175
-				      // console.log('用户点击取消');
176
-				    }
177
-				  }
162
+					title: '提示',
163
+					content: '您确定要提交案件',
164
+					success: function(res) {
165
+						if (res.confirm) {
166
+							// console.log('用户点击确定');
167
+							caseAppSubmit(onsubmitVal).then(res => {
168
+								uni.showToast({
169
+									title: '提交成功',
170
+									icon: 'none',
171
+									duration: 1000
172
+								})
173
+								uni.navigateTo({
174
+									url: '/pages/handlecase/index'
175
+								})
176
+							})
177
+						} else if (res.cancel) {
178
+							// console.log('用户点击取消');
179
+						}
180
+					}
178
 				});
181
 				});
179
 			},
182
 			},
180
 			// 修改
183
 			// 修改
191
 					caseFlowId: this.defalutVal.caseFlowId
194
 					caseFlowId: this.defalutVal.caseFlowId
192
 				}
195
 				}
193
 				uni.showModal({
196
 				uni.showModal({
194
-				  title: '提示',
195
-				  content: '您确定要删除案件',
196
-				  success: function (res) {
197
-				    if (res.confirm) {
198
-				      // console.log('用户点击确定');
199
-					  caseDelete(objValue).then(res =>{
200
-					    	uni.showToast({
201
-					    		title: '删除成功',
202
-					    		icon: 'none',
203
-					    		duration: 1000
204
-					    	})
205
-					    	uni.navigateTo({
206
-					    		url:'/pages/handlecase/index'
207
-					    	})
208
-					    }) 
209
-				    } else if (res.cancel) {
210
-				      // console.log('用户点击取消');
211
-				    }
212
-				  }
197
+					title: '提示',
198
+					content: '您确定要删除案件',
199
+					success: function(res) {
200
+						if (res.confirm) {
201
+							// console.log('用户点击确定');
202
+							caseDelete(objValue).then(res => {
203
+								uni.showToast({
204
+									title: '删除成功',
205
+									icon: 'none',
206
+									duration: 1000
207
+								})
208
+								uni.navigateTo({
209
+									url: '/pages/handlecase/index'
210
+								})
211
+							})
212
+						} else if (res.cancel) {
213
+							// console.log('用户点击取消');
214
+						}
215
+					}
216
+				});
217
+
218
+			},
219
+			/**申请人签收*/
220
+			signMediation() {
221
+				let that = this;
222
+				let objValue = {
223
+					caseId: this.defalutVal.id,
224
+					isSignApply: 1
225
+				}
226
+				uni.showModal({
227
+					title: '提示',
228
+					content: '您确定要签收',
229
+					success: function(res) {
230
+						if (res.confirm) {
231
+							that.signingMediationAgreement(objValue)
232
+						} else if (res.cancel) {
233
+							// console.log('用户点击取消');
234
+						}
235
+					}
236
+				});
237
+			},
238
+			/**被申请人签收*/
239
+			receivedMediation() {
240
+				let that = this;
241
+				let objValue = {
242
+					caseId: this.defalutVal.id,
243
+					isSignRespon: 1
244
+				}
245
+				uni.showModal({
246
+					title: '提示',
247
+					content: '您确定要签收',
248
+					success: function(res) {
249
+						if (res.confirm) {
250
+							that.signingMediationAgreement(objValue)
251
+						} else if (res.cancel) {
252
+							// console.log('用户点击取消');
253
+						}
254
+					}
255
+				});
256
+			},
257
+			/**申请人和被申请人签收调解书接口*/
258
+			signingMediationAgreement(val) {
259
+				msCaseSign(val).then((res) => {
260
+					uni.showToast({
261
+						title: '签收成功',
262
+						icon: 'none',
263
+						duration: 1000
264
+					})
265
+					uni.navigateTo({
266
+						url: '/pages/handlecase/index'
267
+					})
213
 				});
268
 				});
214
-				
215
 			},
269
 			},
216
 		},
270
 		},
217
 		created() {}
271
 		created() {}

+ 1
- 5
unpackage/dist/dev/.sourcemap/mp-weixin/common/main.js.map
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 1
- 5
unpackage/dist/dev/.sourcemap/mp-weixin/common/runtime.js.map
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 1
- 5
unpackage/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 1
- 5
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-icons/components/uni-icons/uni-icons.js.map
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기