hanchaobo 2 lat temu
rodzic
commit
77f89d9545

+ 8
- 0
api/handlecase/index.js Wyświetl plik

@@ -77,4 +77,12 @@ export function updateBooking(data) {
77 77
 		method: 'post',
78 78
 		data: data
79 79
 	})
80
+}
81
+// 查询按钮列表
82
+export function queryCaseFlowInfo(data) {
83
+	return request({
84
+		'url': `/case/flow/queryCaseFlowInfo`,
85
+		method: 'post',
86
+		data: data
87
+	})
80 88
 }

+ 18
- 0
api/pay/index.js Wyświetl plik

@@ -0,0 +1,18 @@
1
+import request from '@/utils/request'
2
+
3
+/** 获取支付二维码 */
4
+export function casePay(data) {
5
+	return request({
6
+		'url': '/pay/casePay',
7
+		method: 'post',
8
+		data: data
9
+	})
10
+}
11
+/**确认缴费*/
12
+export function confirmPayment(data) {
13
+	return request({
14
+		'url': '/pay/confirmPayment',
15
+		method: 'post',
16
+		data: data
17
+	})
18
+}

+ 6
- 2
main.js Wyświetl plik

@@ -3,15 +3,19 @@ import App from './App'
3 3
 import store from './store' // store
4 4
 import plugins from './plugins' // plugins
5 5
 import './permission' // permission
6
+import {
7
+	checkPermi
8
+} from '@/utils/permission'
6 9
 Vue.use(plugins)
7 10
 
8 11
 Vue.config.productionTip = false
9 12
 Vue.prototype.$store = store
13
+Vue.prototype.checkPermi = checkPermi
10 14
 
11 15
 App.mpType = 'app'
12 16
 
13 17
 const app = new Vue({
14
-  ...App
18
+	...App
15 19
 })
16 20
 
17
-app.$mount()
21
+app.$mount()

+ 2
- 1
package.json Wyświetl plik

@@ -15,6 +15,7 @@
15 15
         ]
16 16
     },
17 17
     "dependencies": {
18
-        "moment": "^2.29.4"
18
+        "moment": "^2.29.4",
19
+        "qrcodejs2": "0.0.2"
19 20
     }
20 21
 }

+ 215
- 210
pages.json Wyświetl plik

@@ -1,103 +1,108 @@
1
-{
2
-	"pages": [
3
-		{
1
+{
2
+	"pages": [{
4 3
 			"path": "pages/switchSystem",
5 4
 			"style": {
6 5
 				"navigationBarTitleText": ""
7 6
 			}
8
-		}, {
9
-			"path": "pages/login",
10
-			"style": {
11
-				"navigationBarTitleText": ""
12
-			}
13
-		}, {
14
-			"path": "pages/register",
15
-			"style": {
16
-				"navigationBarTitleText": "注册"
17
-			}
18
-		},
19
-		// {
20
-		// 	"path": "pages/index",
21
-		// 	"style": {
22
-		// 		"navigationBarTitleText": "首页",
23
-		// 		"navigationStyle": "custom"
24
-		// 	}
25
-		// }, 
26
-		{
27
-			"path": "pages/work/index",
28
-			"style": {
29
-				"navigationBarTitleText": "工作台"
30
-			}
31
-		},
32
-		// {
33
-		// 	"path": "pages/mine/index",
34
-		// 	"style": {
35
-		// 		"navigationBarTitleText": "我的"
36
-		// 	}
37
-		// },
38
-		// {
39
-		// 	"path": "pages/mine/avatar/index",
40
-		// 	"style": {
41
-		// 		"navigationBarTitleText": "修改头像"
42
-		// 	}
43
-		// }, {
44
-		// 	"path": "pages/mine/info/index",
45
-		// 	"style": {
46
-		// 		"navigationBarTitleText": "个人信息"
47
-		// 	}
48
-		// }, {
49
-		// 	"path": "pages/mine/info/edit",
50
-		// 	"style": {
51
-		// 		"navigationBarTitleText": "编辑资料"
52
-		// 	}
53
-		// }, {
54
-		// 	"path": "pages/mine/pwd/index",
55
-		// 	"style": {
56
-		// 		"navigationBarTitleText": "修改密码"
57
-		// 	}
58
-		// }, {
59
-		// 	"path": "pages/mine/setting/index",
60
-		// 	"style": {
61
-		// 		"navigationBarTitleText": "应用设置"
62
-		// 	}
63
-		// }, {
64
-		// 	"path": "pages/mine/help/index",
65
-		// 	"style": {
66
-		// 		"navigationBarTitleText": "常见问题"
67
-		// 	}
68
-		// }, {
69
-		// 	"path": "pages/mine/about/index",
70
-		// 	"style": {
71
-		// 		"navigationBarTitleText": "关于我们"
72
-		// 	}
73
-		// }, {
74
-		// 	"path": "pages/common/webview/index",
75
-		// 	"style": {
76
-		// 		"navigationBarTitleText": "浏览网页"
77
-		// 	}
78
-		// }, {
79
-		// 	"path": "pages/common/textview/index",
80
-		// 	"style": {
81
-		// 		"navigationBarTitleText": "浏览文本"
82
-		// 	}
83
-		// },
84
-		{
85
-			"path": "pages/handlecase/index",
86
-			"style": {
87
-				"navigationBarTitleText": "待办案件"
88
-			}
89
-		},
90
-		// {
91
-		// 	"path": "pages/handlecase/component/assignrbitrators",
92
-		// 	"style": {
93
-		// 		"navigationBarTitleText": "是否指派仲裁员"
94
-		// 	}
95
-		// },
96
-		{
97
-			"path": "pages/handlecase/component/uploadEvidence",
98
-			"style": {
99
-				"navigationBarTitleText": "案件信息"
100
-			}
7
+		}, {
8
+			"path": "pages/login",
9
+			"style": {
10
+				"navigationBarTitleText": ""
11
+			}
12
+		}, {
13
+			"path": "pages/register",
14
+			"style": {
15
+				"navigationBarTitleText": "注册"
16
+			}
17
+		},
18
+		// {
19
+		// 	"path": "pages/index",
20
+		// 	"style": {
21
+		// 		"navigationBarTitleText": "首页",
22
+		// 		"navigationStyle": "custom"
23
+		// 	}
24
+		// }, 
25
+		{
26
+			"path": "pages/work/index",
27
+			"style": {
28
+				"navigationBarTitleText": "工作台"
29
+			}
30
+		},
31
+		// {
32
+		// 	"path": "pages/mine/index",
33
+		// 	"style": {
34
+		// 		"navigationBarTitleText": "我的"
35
+		// 	}
36
+		// },
37
+		// {
38
+		// 	"path": "pages/mine/avatar/index",
39
+		// 	"style": {
40
+		// 		"navigationBarTitleText": "修改头像"
41
+		// 	}
42
+		// }, {
43
+		// 	"path": "pages/mine/info/index",
44
+		// 	"style": {
45
+		// 		"navigationBarTitleText": "个人信息"
46
+		// 	}
47
+		// }, {
48
+		// 	"path": "pages/mine/info/edit",
49
+		// 	"style": {
50
+		// 		"navigationBarTitleText": "编辑资料"
51
+		// 	}
52
+		// }, {
53
+		// 	"path": "pages/mine/pwd/index",
54
+		// 	"style": {
55
+		// 		"navigationBarTitleText": "修改密码"
56
+		// 	}
57
+		// }, {
58
+		// 	"path": "pages/mine/setting/index",
59
+		// 	"style": {
60
+		// 		"navigationBarTitleText": "应用设置"
61
+		// 	}
62
+		// }, {
63
+		// 	"path": "pages/mine/help/index",
64
+		// 	"style": {
65
+		// 		"navigationBarTitleText": "常见问题"
66
+		// 	}
67
+		// }, {
68
+		// 	"path": "pages/mine/about/index",
69
+		// 	"style": {
70
+		// 		"navigationBarTitleText": "关于我们"
71
+		// 	}
72
+		// }, {
73
+		// 	"path": "pages/common/webview/index",
74
+		// 	"style": {
75
+		// 		"navigationBarTitleText": "浏览网页"
76
+		// 	}
77
+		// }, {
78
+		// 	"path": "pages/common/textview/index",
79
+		// 	"style": {
80
+		// 		"navigationBarTitleText": "浏览文本"
81
+		// 	}
82
+		// },
83
+		{
84
+			"path": "pages/handlecase/index",
85
+			"style": {
86
+				"navigationBarTitleText": "待办案件"
87
+			}
88
+		},
89
+		// {
90
+		// 	"path": "pages/handlecase/component/assignrbitrators",
91
+		// 	"style": {
92
+		// 		"navigationBarTitleText": "是否指派仲裁员"
93
+		// 	}
94
+		// },
95
+		{
96
+			"path": "pages/handlecase/component/uploadEvidence",
97
+			"style": {
98
+				"navigationBarTitleText": "案件信息"
99
+			}
100
+		},
101
+		{
102
+			"path": "pages/handlecase/component/payList",
103
+			"style": {
104
+				"navigationBarTitleText": "缴费详情"
105
+			}
101 106
 		},
102 107
 		{
103 108
 			"path": "pages/handlecase/component/evidenceList",
@@ -116,90 +121,90 @@
116 121
 			"style": {
117 122
 				"navigationBarTitleText": "案件新增"
118 123
 			}
119
-		},
120
-		{
121
-			"path": "pages/expressDelivery/index",
122
-			"style": {
123
-				"navigationBarTitleText": "查看快递"
124
-			}
125
-		},
126
-		{
127
-			"path": "pages/expressDelivery/component/expressDelivery",
128
-			"style": {
129
-				"navigationBarTitleText": "快递信息"
130
-			}
131
-		},
132
-		{
133
-			"path": "pages/signature/index",
134
-			"style": {
135
-				"navigationBarTitleText": "在线签名列表"
136
-			}
137
-		},
138
-		{
139
-			"path": "pages/signature/component/expressDelivery",
140
-			"style": {
141
-				"navigationBarTitleText": "在线签名"
142
-			}
143
-		},
144
-		// {
145
-		// 	"path": "pages/handlecase/component/confirmationEvidence",
146
-		// 	"style": {
147
-		// 		"navigationBarTitleText": "确认证据"
148
-		// 	}
149
-		// },
150
-		// {
151
-		// 	"path": "pages/handlecase/component/chooseMethod",
152
-		// 	"style": {
153
-		// 		"navigationBarTitleText": "选择仲裁方式"
154
-		// 	}
155
-		// },
156
-		{
157
-			"path": "mp_ecard_sdk/index/index",
158
-			"style": {
159
-				"navigationBarTitleText": "腾讯云E证通授权"
160
-			}
161
-		},
162
-		{
163
-			"path": "mp_ecard_sdk/protocol/eid/eid",
164
-			"style": {
165
-				"navigationBarTitleText": "eID数字身份⼩程序服务协议",
166
-				"enablePullDownRefresh": false
167
-			}
168
-		},
169
-		{
170
-			"path": "mp_ecard_sdk/protocol/privacy/privacy",
171
-			"style": {
172
-				"navigationBarTitleText": "腾讯隐私政策",
173
-				"enablePullDownRefresh": false
174
-			}
175
-		},
176
-		{
177
-			"path": "mp_ecard_sdk/protocol/service/service",
178
-			"style": {
179
-				"navigationBarTitleText": "腾讯云E证通服务协议",
180
-				"enablePullDownRefresh": false
181
-			}
182
-		},
183
-		{
184
-			"path": "mp_ecard_sdk/protocol/userAccredit/userAccredit",
185
-			"style": {
186
-				"navigationBarTitleText": "⽤户授权协议",
187
-				"enablePullDownRefresh": false
188
-			}
189
-		},
190
-		{
191
-			"path": "pages/im/index",
192
-			"style": {
193
-				"navigationBarTitleText": "在线开庭",
194
-				"enablePullDownRefresh": false
195
-			}
196
-		},
197
-		{
198
-			"path": "pages/realName",
199
-			"style": {
200
-				"navigationBarTitleText": "实名认证",
201
-				"enablePullDownRefresh": false
202
-			}
124
+		},
125
+		{
126
+			"path": "pages/expressDelivery/index",
127
+			"style": {
128
+				"navigationBarTitleText": "查看快递"
129
+			}
130
+		},
131
+		{
132
+			"path": "pages/expressDelivery/component/expressDelivery",
133
+			"style": {
134
+				"navigationBarTitleText": "快递信息"
135
+			}
136
+		},
137
+		{
138
+			"path": "pages/signature/index",
139
+			"style": {
140
+				"navigationBarTitleText": "在线签名列表"
141
+			}
142
+		},
143
+		{
144
+			"path": "pages/signature/component/expressDelivery",
145
+			"style": {
146
+				"navigationBarTitleText": "在线签名"
147
+			}
148
+		},
149
+		// {
150
+		// 	"path": "pages/handlecase/component/confirmationEvidence",
151
+		// 	"style": {
152
+		// 		"navigationBarTitleText": "确认证据"
153
+		// 	}
154
+		// },
155
+		// {
156
+		// 	"path": "pages/handlecase/component/chooseMethod",
157
+		// 	"style": {
158
+		// 		"navigationBarTitleText": "选择仲裁方式"
159
+		// 	}
160
+		// },
161
+		{
162
+			"path": "mp_ecard_sdk/index/index",
163
+			"style": {
164
+				"navigationBarTitleText": "腾讯云E证通授权"
165
+			}
166
+		},
167
+		{
168
+			"path": "mp_ecard_sdk/protocol/eid/eid",
169
+			"style": {
170
+				"navigationBarTitleText": "eID数字身份⼩程序服务协议",
171
+				"enablePullDownRefresh": false
172
+			}
173
+		},
174
+		{
175
+			"path": "mp_ecard_sdk/protocol/privacy/privacy",
176
+			"style": {
177
+				"navigationBarTitleText": "腾讯隐私政策",
178
+				"enablePullDownRefresh": false
179
+			}
180
+		},
181
+		{
182
+			"path": "mp_ecard_sdk/protocol/service/service",
183
+			"style": {
184
+				"navigationBarTitleText": "腾讯云E证通服务协议",
185
+				"enablePullDownRefresh": false
186
+			}
187
+		},
188
+		{
189
+			"path": "mp_ecard_sdk/protocol/userAccredit/userAccredit",
190
+			"style": {
191
+				"navigationBarTitleText": "⽤户授权协议",
192
+				"enablePullDownRefresh": false
193
+			}
194
+		},
195
+		{
196
+			"path": "pages/im/index",
197
+			"style": {
198
+				"navigationBarTitleText": "在线开庭",
199
+				"enablePullDownRefresh": false
200
+			}
201
+		},
202
+		{
203
+			"path": "pages/realName",
204
+			"style": {
205
+				"navigationBarTitleText": "实名认证",
206
+				"enablePullDownRefresh": false
207
+			}
203 208
 		},
204 209
 		{
205 210
 			"path": "pages/personalInfoCollection",
@@ -214,34 +219,34 @@
214 219
 				"navigationBarTitleText": "会议",
215 220
 				"enablePullDownRefresh": false
216 221
 			}
217
-		}
218
-	    
219
-    ],
220
-	// "tabBar": {
221
-	// 	"color": "#000000",
222
-	// 	"selectedColor": "#000000",
223
-	// 	"borderStyle": "white",
224
-	// 	"backgroundColor": "#ffffff",
225
-	// 	"list": [{
226
-	// 		"pagePath": "pages/index",
227
-	// 		"iconPath": "static/images/tabbar/home.png",
228
-	// 		"selectedIconPath": "static/images/tabbar/home_.png",
229
-	// 		"text": "首页"
230
-	// 	}, {
231
-	// 		"pagePath": "pages/work/index",
232
-	// 		"iconPath": "static/images/tabbar/work.png",
233
-	// 		"selectedIconPath": "static/images/tabbar/work_.png",
234
-	// 		"text": "工作台"
235
-	// 	}, {
236
-	// 		"pagePath": "pages/mine/index",
237
-	// 		"iconPath": "static/images/tabbar/mine.png",
238
-	// 		"selectedIconPath": "static/images/tabbar/mine_.png",
239
-	// 		"text": "我的"
240
-	// 	}]
241
-	// },
242
-	"globalStyle": {
243
-		"navigationBarTextStyle": "black",
244
-		"navigationBarTitleText": "RuoYi",
245
-		"navigationBarBackgroundColor": "#FFFFFF"
246
-	}
222
+		}
223
+
224
+	],
225
+	// "tabBar": {
226
+	// 	"color": "#000000",
227
+	// 	"selectedColor": "#000000",
228
+	// 	"borderStyle": "white",
229
+	// 	"backgroundColor": "#ffffff",
230
+	// 	"list": [{
231
+	// 		"pagePath": "pages/index",
232
+	// 		"iconPath": "static/images/tabbar/home.png",
233
+	// 		"selectedIconPath": "static/images/tabbar/home_.png",
234
+	// 		"text": "首页"
235
+	// 	}, {
236
+	// 		"pagePath": "pages/work/index",
237
+	// 		"iconPath": "static/images/tabbar/work.png",
238
+	// 		"selectedIconPath": "static/images/tabbar/work_.png",
239
+	// 		"text": "工作台"
240
+	// 	}, {
241
+	// 		"pagePath": "pages/mine/index",
242
+	// 		"iconPath": "static/images/tabbar/mine.png",
243
+	// 		"selectedIconPath": "static/images/tabbar/mine_.png",
244
+	// 		"text": "我的"
245
+	// 	}]
246
+	// },
247
+	"globalStyle": {
248
+		"navigationBarTextStyle": "black",
249
+		"navigationBarTitleText": "RuoYi",
250
+		"navigationBarBackgroundColor": "#FFFFFF"
251
+	}
247 252
 }

+ 1510
- 0
pages/common/uqrcode.js
Plik diff jest za duży
Wyświetl plik


+ 38
- 33
pages/handlecase/component/list.vue Wyświetl plik

@@ -1,5 +1,5 @@
1 1
 <template>
2
-	<view class="list" @tap="caseDetail">
2
+	<view class="list">
3 3
 		<view class="listItem">
4 4
 			<view class="lable">
5 5
 				案件编号:
@@ -40,21 +40,27 @@
40 40
 				{{defalutVal.caseStatusName}}
41 41
 			</view>
42 42
 		</view>
43
-		<!-- <view class="btn">
44
-			<button class="btnItem" type="primary" size="mini" @tap="uploadEvidence" v-if="defalutVal.caseStatus == 3">上传证据</button>
45
-			<button class="btnItem" type="primary" size="mini" @tap="confirmationEvidence" v-if="defalutVal.caseStatus == 4">确认证据</button> -->
46
-		<!-- <button class="btnItem" type="primary" size="mini" @tap="isAssignrbitrators" v-if="defalutVal.caseStatus == 5">是否指派仲裁员</button> -->
47
-		<!-- 	<button class="btnItem" type="primary" size="mini" @tap="isAssignrbitrators">是否指派仲裁员</button>
48
-			<button class="btnItem" type="primary" size="mini" @tap="chooseMethod" v-if="defalutVal.caseStatus == 9">选择仲裁方式</button>
49
-		</view> -->
43
+		<view class="btn" v-if="sysType == 2">
44
+			<!-- <button class="btnItem" type="primary" size="mini" @tap="clickPay">申请人缴费</button>
45
+			<button class="btnItem" type="primary" size="mini" @tap="caseDetail">选择调解员</button> -->
46
+			<button class="btnItem" type="primary" size="mini" v-for="(item) in buttonList" :key="item.id"
47
+				v-if="item.id == defalutVal.caseFlowId && checkPermi([item.buttonAuthFlag])">{{ item.nodeName }}</button>
48
+			<!-- <button class="btnItem" type="primary" size="mini" @tap="confirmationEvidence">确认证据</button>
49
+			<button class="btnItem" type="primary" size="mini" @tap="isAssignrbitrators">是否指派仲裁员</button>
50
+			<button class="btnItem" type="primary" size="mini" @tap="isAssignrbitrators">是否指派仲裁员</button>
51
+			<button class="btnItem" type="primary" size="mini" @tap="chooseMethod">选择仲裁方式</button> -->
52
+		</view>
50 53
 	</view>
51 54
 </template>
52 55
 
53 56
 <script>
57
+	import {
58
+		queryCaseFlowInfo
59
+	} from '@/api/handlecase/index.js'
54 60
 	export default {
55 61
 		data() {
56 62
 			return {
57
-
63
+				buttonList: []
58 64
 			}
59 65
 		},
60 66
 		props: {
@@ -73,30 +79,28 @@
73 79
 				uni.navigateTo({
74 80
 					url: `/pages/handlecase/component/uploadEvidence?id=${this.defalutVal.id}`
75 81
 				})
76
-			}
77
-			// isAssignrbitrators(){
78
-			// 	uni.navigateTo({
79
-			// 		url:`/pages/handlecase/component/assignrbitrators?id=${this.defalutVal.id}`
80
-			// 	})
81
-			// },
82
-			// // 上传证据
83
-			// uploadEvidence(){
84
-			// 	uni.navigateTo({
85
-			// 		url:`/pages/handlecase/component/uploadEvidence?id=${this.defalutVal.id}`
86
-			// 	})
87
-			// },
88
-			// // 确认证据
89
-			// confirmationEvidence(){
90
-			// 	uni.navigateTo({
91
-			// 		url:`/pages/handlecase/component/confirmationEvidence?id=${this.defalutVal.id}`
92
-			// 	})
93
-			// },
94
-			// // 选择仲裁方式
95
-			// chooseMethod(){
96
-			// 	uni.navigateTo({
97
-			// 		url:`/pages/handlecase/component/chooseMethod?id=${this.defalutVal.id}`
98
-			// 	})
99
-			// }
82
+			},
83
+			clickPay() {
84
+				uni.navigateTo({
85
+					url: `/pages/handlecase/component/payList?id=${this.defalutVal.id}`
86
+				})
87
+			},
88
+			/**查询按钮列表 */
89
+			getButtonList() {
90
+				queryCaseFlowInfo({
91
+					pageNum: 1,
92
+					pageSize: 100000
93
+				}).then(res => {
94
+					res.rows.forEach(item => {
95
+						if (item.id != 11 && item.id != 17) {
96
+							this.buttonList.push(item)
97
+						}
98
+					});
99
+				})
100
+			},
101
+		},
102
+		created() {
103
+			this.getButtonList()
100 104
 		}
101 105
 	}
102 106
 </script>
@@ -130,6 +134,7 @@
130 134
 			width: 100%;
131 135
 			display: flex;
132 136
 			justify-content: space-between;
137
+			flex-wrap: wrap;
133 138
 
134 139
 			.btnItem {
135 140
 				height: 50rpx;

+ 244
- 0
pages/handlecase/component/payList.vue Wyświetl plik

@@ -0,0 +1,244 @@
1
+<template>
2
+	<view class="from">
3
+		<uni-forms ref="form" :modelValue="formData" :rules="rules">
4
+			<view class="box">
5
+				<uni-forms-item label="案件编号:" name="caseNum" label-width="120px" required>
6
+					<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.caseNum" placeholder="" />
7
+				</uni-forms-item>
8
+				<uni-forms-item label="申请人:" name="applicantName" label-width="120px" required>
9
+					<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.applicantName"
10
+						placeholder="" />
11
+				</uni-forms-item>
12
+				<uni-forms-item label="被申请人:" name="respondentName" label-width="120px" required>
13
+					<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.respondentName"
14
+						placeholder="" />
15
+				</uni-forms-item>
16
+				<uni-forms-item label="案件标的:" name="caseSubjectAmount" label-width="120px" required>
17
+					<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.caseSubjectAmount"
18
+						placeholder="" />
19
+				</uni-forms-item>
20
+				<uni-forms-item label="应缴费用:" name="feePayable" label-width="120px" required>
21
+					<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.feePayable" placeholder="" />
22
+				</uni-forms-item>
23
+			</view>
24
+		</uni-forms>
25
+		<uni-forms-item label="缴费方式">
26
+			<uni-data-checkbox v-model="payType" :localdata="payTypes" @change="changeType" />
27
+		</uni-forms-item>
28
+		<uni-forms-item label="缴费平台">
29
+			<uni-data-checkbox v-model="payPlatform" :localdata="payPlatforms" @change="changePayType" />
30
+		</uni-forms-item>
31
+		<div class="payImg" v-if="payType == 0">
32
+			<canvas canvas-id="qrcode" v-show="qrShow" style="width: 300rpx;margin: 0 auto;" />
33
+		</div>
34
+		<div class="payTitle" v-if="payType == 0">{{ payMain }}</div>
35
+		<uni-forms-item label="上传证据" name="headImage">
36
+			<uni-file-picker ref="files" :auto-upload="false" return-type='object' v-model="fileList"
37
+				file-mediatype="all" @select="select" :limit='1' />
38
+		</uni-forms-item>
39
+		<button type="primary" @click="submitPay">确认提交</button>
40
+	</view>
41
+</template>
42
+
43
+<script>
44
+	import {
45
+		selectById
46
+	} from '../../../api/handlecase/index.js'
47
+	import {
48
+		casePay,
49
+		confirmPayment
50
+	} from '../../../api/pay/index.js'
51
+	import moment from 'moment'
52
+	import uQRCode from '../../common/uqrcode.js'
53
+	import {
54
+		getToken
55
+	} from '@/utils/auth'
56
+	import config from '@/config'
57
+	const baseUrl = config.baseUrlTJ
58
+	const app = getApp()
59
+	export default {
60
+		data() {
61
+			return {
62
+				formData: {},
63
+				selectFlag: false,
64
+				rules: {},
65
+				payPlatforms: [{
66
+					text: '微信',
67
+					value: 0
68
+				}, {
69
+					text: '支付宝',
70
+					value: 1
71
+				}, ],
72
+				payPlatform: null,
73
+				payType: 1,
74
+				payTypes: [{
75
+					text: '线上缴费',
76
+					value: 0
77
+				}, {
78
+					text: '线下缴费',
79
+					value: 1
80
+				}, ],
81
+				payMain: '',
82
+				qrShow: false,
83
+				tempFilePaths: null,
84
+				fileList: {},
85
+				submitForm: {
86
+					payType: 1,
87
+					payOrderList: [],
88
+					caseId: null
89
+				}
90
+			}
91
+		},
92
+		methods: {
93
+			/**获取案件缴费信息*/
94
+			getData(parms) {
95
+				selectById(parms).then(res => {
96
+					this.formData = res.data
97
+				})
98
+			},
99
+			/**生成二维码*/
100
+			qrcode(url) {
101
+				this.qrShow = true
102
+				uQRCode.make({
103
+					canvasId: 'qrcode',
104
+					componentInstance: this,
105
+					text: url,
106
+					size: 150,
107
+					margin: 0,
108
+					backgroundColor: '#ffffff',
109
+					foregroundColor: '#000000',
110
+					fileType: 'jpg',
111
+					errorCorrectLevel: uQRCode.errorCorrectLevel.H,
112
+					success: res => {}
113
+				})
114
+			},
115
+			/**选择缴费方式*/
116
+			changeType(val) {
117
+				this.submitForm.payType = val;
118
+			},
119
+			/**文件上传*/
120
+			select(e) {
121
+				this.tempFilePaths = e.tempFilePaths;
122
+				// loading
123
+				uni.showLoading({
124
+					title: '上传中'
125
+				});
126
+				uni.uploadFile({
127
+					url: baseUrl + '/common/upload',
128
+					filePath: this.tempFilePaths[0],
129
+					header: {
130
+						Authorization: getToken() || '',
131
+					},
132
+					formData: {
133
+						annexType: 4,
134
+						id: this.formData.id
135
+					},
136
+					name: 'file',
137
+					success: (res) => {
138
+						let {
139
+							data
140
+						} = res
141
+						data = JSON.parse(data);
142
+						this.submitForm.payOrderList.push({
143
+							annexId: data.annexId,
144
+							annexName: data.fileName
145
+						});
146
+						// console.log(this.submitForm, "OOOOOOOOOOOOOOOOOOOOOOOOO");
147
+						uni.showToast({
148
+							title: '上传成功',
149
+							icon: 'none',
150
+							duration: 1000
151
+						})
152
+						uni.hideLoading();
153
+					},
154
+					fail: (err) => {
155
+						uni.showToast({
156
+							title: '上传失败',
157
+							icon: 'none',
158
+							duration: 1000
159
+						})
160
+						uni.hideLoading()
161
+					}
162
+				})
163
+			},
164
+			/**选择缴费平台*/
165
+			changePayType(val) {
166
+				if (this.formData.feePayable == 0 || !this.formData.feePayable) {
167
+					uni.showToast({
168
+						title: '此案件无需缴费',
169
+						icon: 'none',
170
+						duration: 1000
171
+					})
172
+					return;
173
+				}
174
+				let payType = "";
175
+				if (val.detail.value == 0) {
176
+					payType = "wxpay";
177
+					this.payMain = "请使用微信扫二维码支付";
178
+				} else if (val.detail.value == 1) {
179
+					payType = "alipay";
180
+					this.payMain = "请使用支付宝扫二维码支付";
181
+				}
182
+				casePay({
183
+					totalFee: this.formData.feePayable * 100,
184
+					caseId: this.formData.id,
185
+					tradeType: "native",
186
+					platform: payType,
187
+				}).then((res) => {
188
+					this.qrcode(res.data.code_url);
189
+				});
190
+			},
191
+			confirmPaymentFn(data) {
192
+				confirmPayment(data).then(res => {
193
+					uni.showToast({
194
+						title: '确认成功',
195
+						icon: 'none',
196
+						duration: 1000
197
+					});
198
+					uni.navigateBack({
199
+						delta: 1
200
+					})
201
+				})
202
+			},
203
+			/**确认缴费*/
204
+			submitPay() {
205
+				this.submitForm.caseId = this.formData.id;
206
+				this.submitForm.caseFlowId = this.formData.caseFlowId;
207
+				this.confirmPaymentFn(this.submitForm);
208
+			}
209
+		},
210
+		onLoad(data) {
211
+			this.getData({
212
+				id: data.id
213
+			});
214
+		},
215
+	}
216
+</script>
217
+
218
+<style>
219
+	.from {
220
+		padding: 20rpx;
221
+	}
222
+
223
+	.payImg,
224
+	.payTitle {
225
+		width: 100%;
226
+		display: flex;
227
+		justify-content: center;
228
+		align-items: center;
229
+		margin-bottom: 20rpx;
230
+	}
231
+
232
+	.select-picker {
233
+		display: flex;
234
+		box-sizing: border-box;
235
+		flex-direction: row;
236
+		align-items: center;
237
+		border: 1px solid #DCDFE6;
238
+		border-radius: 8rpx;
239
+		width: 100%;
240
+		height: 100%;
241
+		padding: 0 24rpx;
242
+		font-size: 28rpx;
243
+	}
244
+</style>

+ 0
- 1
pages/handlecase/component/uploadEvidence.vue Wyświetl plik

@@ -559,7 +559,6 @@
559 559
 					// TODO
560 560
 					// 调解提交
561 561
 					if (this.mediatorList.length > 3) {
562
-						debugger
563 562
 						uni.showToast({
564 563
 							title: '最多选择三个调解员',
565 564
 							icon: 'none',

+ 35
- 13
pages/handlecase/index.vue Wyświetl plik

@@ -3,8 +3,7 @@
3 3
 		<view class="" v-if="sysType == 2">
4 4
 			<button type="primary" @tap="newlyAddedCases">新增案件</button>
5 5
 		</view>
6
-		<List class="caseList" v-for="(item,index) in caseList" :defalutVal='item' :key="index"
7
-			v-if="item.pendingStatus == 0" :sysType='sysType'>
6
+		<List class="caseList" v-for="(item,index) in caseList" :defalutVal='item' :key="index" :sysType='sysType'>
8 7
 		</List>
9 8
 		<view class="emptyBox" v-if="caseList.length == 0">
10 9
 			<luanqing-empty :show="true" textColor="#000"></luanqing-empty>
@@ -29,7 +28,8 @@
29 28
 				caseList: [],
30 29
 				pageNum: 1,
31 30
 				pageSize: 10,
32
-				sysType: null
31
+				sysType: null,
32
+				total: null,
33 33
 			}
34 34
 		},
35 35
 		methods: {
@@ -38,7 +38,7 @@
38 38
 					respondentList(parms).then(res => {
39 39
 						// this.caseList = res.rows;
40 40
 						if (res.data) {
41
-							this.caseList = res.data;
41
+							this.caseList = [...this.caseList, ...res.data];
42 42
 						} else {
43 43
 							this.caseList = []
44 44
 						}
@@ -102,9 +102,9 @@
102 102
 				} else if (this.sysType == 2) {
103 103
 					parms.miniProgressFlag = 1;
104 104
 					caseApplicationTj(parms).then(res => {
105
-						// this.caseList = res.rows;
105
+						this.total = res.total;
106 106
 						if (res.rows) {
107
-							this.caseList = res.rows;
107
+							this.caseList = [...this.caseList, ...res.rows];
108 108
 						} else {
109 109
 							this.caseList = []
110 110
 						}
@@ -113,22 +113,44 @@
113 113
 
114 114
 			},
115 115
 			// 新增案件
116
-			newlyAddedCases(){
116
+			newlyAddedCases() {
117 117
 				uni.navigateTo({
118
-					url:`/pages/handlecase/component/newlyAddedCase?title=新增案件`
118
+					url: `/pages/handlecase/component/newlyAddedCase?title=新增案件`
119 119
 				})
120 120
 			},
121 121
 			// 触底
122 122
 			onReachBottom() {
123 123
 				if (this.caseList.length < 1) {
124 124
 					return
125
+				} else if (this.total == this.caseList.length) {
126
+					uni.showToast({
127
+						title: '没有数据啦',
128
+						icon: 'none',
129
+						duration: 1000
130
+					})
131
+					return
132
+				} else if (this.caseList.length < 10) {
133
+					uni.showToast({
134
+						title: '没有数据啦',
135
+						icon: 'none',
136
+						duration: 1000
137
+					})
138
+					return
125 139
 				}
126
-				let obj = {
127
-					pageNum: this.pageNum,
128
-					pageSize: this.pageSize,
129
-					caseStatus: 4
140
+				this.pageNum++;
141
+				let obj = {};
142
+				if (this.sysType == 1) {
143
+					obj = {
144
+						pageNum: this.pageNum,
145
+						pageSize: this.pageSize,
146
+						caseStatus: 4
147
+					}
148
+				} else if (this.sysType == 2) {
149
+					obj = {
150
+						pageNum: this.pageNum,
151
+						pageSize: this.pageSize,
152
+					}
130 153
 				}
131
-				obj.pageNum = obj.pageNum + 1
132 154
 				this.getList(obj)
133 155
 			}
134 156
 		},

+ 1234
- 1230
static/scss/colorui.css
Plik diff jest za duży
Wyświetl plik


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/common/main.js.map
Plik diff jest za duży
Wyświetl plik


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/common/runtime.js.map
Plik diff jest za duży
Wyświetl plik


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map
Plik diff jest za duży
Wyświetl plik


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-icons/components/uni-icons/uni-icons.js.map
Plik diff jest za duży
Wyświetl plik


+ 2
- 0
unpackage/dist/dev/mp-weixin/app.json Wyświetl plik

@@ -6,8 +6,10 @@
6 6
     "pages/work/index",
7 7
     "pages/handlecase/index",
8 8
     "pages/handlecase/component/uploadEvidence",
9
+    "pages/handlecase/component/payList",
9 10
     "pages/handlecase/component/evidenceList",
10 11
     "pages/handlecase/component/obligations",
12
+    "pages/handlecase/component/newlyAddedCase",
11 13
     "pages/expressDelivery/index",
12 14
     "pages/expressDelivery/component/expressDelivery",
13 15
     "pages/signature/index",

+ 20
- 14
unpackage/dist/dev/mp-weixin/project.config.json Wyświetl plik

@@ -1,8 +1,7 @@
1 1
 {
2 2
   "description": "项目配置文件。",
3 3
   "packOptions": {
4
-    "ignore": [],
5
-    "include": []
4
+    "ignore": []
6 5
   },
7 6
   "setting": {
8 7
     "urlCheck": false,
@@ -10,21 +9,28 @@
10 9
     "postcss": true,
11 10
     "minified": true,
12 11
     "newFeature": true,
13
-    "bigPackageSizeSupport": true,
14
-    "babelSetting": {
15
-      "ignore": [],
16
-      "disablePlugins": [],
17
-      "outputPath": ""
18
-    },
19
-    "condition": false
12
+    "bigPackageSizeSupport": true
20 13
   },
21 14
   "compileType": "miniprogram",
22
-  "libVersion": "3.1.1",
15
+  "libVersion": "",
23 16
   "appid": "wx91cb8459dca561b4",
24 17
   "projectname": "智慧仲裁",
25
-  "condition": {},
26
-  "editorSetting": {
27
-    "tabIndent": "insertSpaces",
28
-    "tabSize": 2
18
+  "condition": {
19
+    "search": {
20
+      "current": -1,
21
+      "list": []
22
+    },
23
+    "conversation": {
24
+      "current": -1,
25
+      "list": []
26
+    },
27
+    "game": {
28
+      "current": -1,
29
+      "list": []
30
+    },
31
+    "miniprogram": {
32
+      "current": -1,
33
+      "list": []
34
+    }
29 35
   }
30 36
 }

+ 2
- 2
unpackage/dist/dev/mp-weixin/project.private.config.json Wyświetl plik

@@ -1,8 +1,8 @@
1 1
 {
2 2
   "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
3
-  "projectname": "若依移动端",
3
+  "projectname": "miniapp",
4 4
   "setting": {
5 5
     "compileHotReLoad": true,
6
-    "urlCheck": true
6
+    "urlCheck": false
7 7
   }
8 8
 }