Kaynağa Gözat

Merge branch 'dev' of http://git.xayunmei.com/SH-Arbitrate/miniapp into hcb

hanchaobo 2 yıl önce
ebeveyn
işleme
abf59037fc

+ 26
- 2
api/handlecase/index.js Dosyayı Görüntüle

@@ -124,7 +124,7 @@ export function updateComfire(data) {
124 124
 //提交案件
125 125
 export function caseAppSubmit(data) {
126 126
 	return request({
127
-		'url': `/caseApplication/submit`,
127
+		url: '/caseApplication/submit',
128 128
 		method: 'post',
129 129
 		data: data
130 130
 	})
@@ -136,4 +136,28 @@ export function caseApplicationSelectById(data) {
136 136
     method: 'get',
137 137
     params: data
138 138
   })
139
-}
139
+}
140
+// 删除案件
141
+export function caseDelete(data) {
142
+	return request({
143
+		url: '/caseApplication/delete',
144
+		method: 'post',
145
+		data: data
146
+	})
147
+}
148
+//   案件id查询缴费清单
149
+export function selectPaymentDetail(data) {
150
+  return request({
151
+    url: '/pay/selectPaymentDetail',
152
+    method: 'get',
153
+    params: data
154
+  })
155
+}
156
+// 缴费确认
157
+export function confirmPaid(data) {
158
+	return request({
159
+		url: '/pay/confirmPaid',
160
+		method: 'post',
161
+		data: data
162
+	})
163
+}

+ 6
- 0
pages.json Dosyayı Görüntüle

@@ -98,6 +98,12 @@
98 98
 				"navigationBarTitleText": "案件信息"
99 99
 			}
100 100
 		},
101
+		{
102
+			"path": "pages/handlecase/component/confirmPayment",
103
+			"style": {
104
+				"navigationBarTitleText": "确认缴费"
105
+			}
106
+		},
101 107
 		{
102 108
 			"path": "pages/handlecase/component/payList",
103 109
 			"style": {

+ 89
- 0
pages/handlecase/component/confirmPayment.vue Dosyayı Görüntüle

@@ -0,0 +1,89 @@
1
+<template>
2
+	<view class="conent">
3
+		<view class="assignrbitrators">
4
+			<uni-forms ref="form" :modelValue="formData" :rules="rules">
5
+				<uni-forms-item label="案件编号:" name="caseNum" label-width="80px">
6
+					<uni-easyinput v-model="formData.caseNum" type="text" :disabled='true' placeholder="请输入案件编号" />
7
+				</uni-forms-item>
8
+				<uni-forms-item label="案件标的:" name="caseSubjectAmount" label-width="80px">
9
+					<uni-easyinput v-model="formData.caseSubjectAmount" type="text" :disabled='true' placeholder="请输入案件标的" />
10
+				</uni-forms-item>
11
+				<uni-forms-item label="缴费金额:" name="feePayable" label-width="80px">
12
+					<uni-easyinput v-model="formData.feePayable" type="text" :disabled='true' placeholder="请输入缴费金额" />
13
+				</uni-forms-item>
14
+				<uni-forms-item label="申请人缴费:" name="feePayable" label-width="90px">
15
+					<view v-for="item in formData.caseAttachList">
16
+						<uni-link v-if="item.annexType==4" :href="item.annexPath" color="#007BFF"
17
+							:text="item.annexName"></uni-link>
18
+					</view>
19
+				</uni-forms-item>	
20
+				<uni-forms-item label="被申请人缴费:" name="feePayable" label-width="100px">
21
+					<view v-for="item in formData.caseAttachList">
22
+						<uni-link v-if="item.annexType==9" :href="item.annexPath" color="#007BFF"
23
+							:text="item.annexName"></uni-link>
24
+					</view>
25
+				</uni-forms-item>
26
+			</uni-forms>
27
+			<view class="determine" style="text-align: center;">
28
+				<button  class="mini-btn" 
29
+				type="primary" size="mini" 
30
+				@tap="confirmPayment">确认缴费</button>
31
+				<button style="margin-left:30rpx;" class="mini-btn" 
32
+				type="default" size="mini" 
33
+				@tap="cencalBut">取消</button>
34
+			</view>
35
+		</view>
36
+	</view>
37
+</template>
38
+
39
+<script>
40
+	import {selectPaymentDetail,confirmPaid} from '../../../api/handlecase/index.js'
41
+	export default {
42
+		data() {
43
+			return {
44
+				formData:{},
45
+				rules:{},
46
+				paymentConfirm:{}
47
+			}
48
+		},
49
+		methods:{
50
+			// 确认缴费
51
+			confirmPayment(){
52
+				let vals = {
53
+					caseId:this.paymentConfirm.id,
54
+					batchNumber:"",
55
+					caseFlowId:this.paymentConfirm.caseFlowId
56
+				}
57
+				confirmPaid(vals).then(res =>{
58
+					uni.showToast({
59
+						title: '缴费确认成功',
60
+						icon: 'none',
61
+						duration: 1000
62
+					})
63
+					uni.navigateBack({
64
+						delta: 1
65
+					})
66
+				})
67
+			},
68
+			// 缴费详情
69
+			paymentDetails(val) {
70
+			    selectPaymentDetail(val).then(res => {
71
+			        this.formData = res.data;
72
+			    })
73
+			},        
74
+		},
75
+		onLoad(data) {
76
+			this.paymentConfirm = data
77
+			this.paymentDetails({id:data.id})
78
+		}
79
+	}
80
+</script>
81
+
82
+<style lang="scss">
83
+	page {
84
+		background-color: #ffffff;
85
+	}
86
+	.assignrbitrators{
87
+		margin: 30rpx;
88
+	}
89
+</style>

+ 33
- 22
pages/handlecase/component/list.vue Dosyayı Görüntüle

@@ -41,8 +41,8 @@
41 41
 			</view>
42 42
 		</view>
43 43
 		<view class="btn" v-if="sysType == 2">
44
-			<button class="btnItem" type="primary" size="mini" @tap="modify">修改</button>
45
-			<button class="btnItem" type="primary" size="mini" @tap="deleteCase">删除</button>
44
+			<button class="btnItem" type="primary" size="mini" @tap="modify" v-if="checkPermi(['caseManagement:list:edit'])">修改</button>
45
+			<button class="btnItem" type="primary" size="mini" @tap="deleteCase" v-if="checkPermi(['caseManagement:list:delete'])">删除</button>
46 46
 			<!-- <button class="btnItem" type="primary" size="mini" @tap="clickPay">申请人缴费</button>
47 47
 			<button class="btnItem" type="primary" size="mini" @tap="caseDetail">选择调解员</button> -->
48 48
 			<button class="btnItem" type="primary" @tap="clickType(item.id)" size="mini" v-for="(item) in buttonList"
@@ -59,12 +59,13 @@
59 59
 <script>
60 60
 	import {
61 61
 		queryCaseFlowInfo,
62
-		caseAppSubmit
62
+		caseAppSubmit,
63
+		caseDelete
63 64
 	} from '@/api/handlecase/index.js'
64 65
 	export default {
65 66
 		data() {
66 67
 			return {
67
-
68
+				
68 69
 			}
69 70
 		},
70 71
 		props: {
@@ -91,6 +92,7 @@
91 92
 					// 缴费
92 93
 					this.clickPay()
93 94
 				} else if (type == 3 || type == 45) {
95
+					this.confirmPayments()
94 96
 					// 确认缴费
95 97
 				} else if (type == 4) {
96 98
 					// 受理分配
@@ -132,49 +134,58 @@
132 134
 					url: `/pages/handlecase/component/uploadEvidence?id=${this.defalutVal.id}`
133 135
 				})
134 136
 			},
137
+			// 缴费
135 138
 			clickPay() {
136 139
 				uni.navigateTo({
137 140
 					url: `/pages/handlecase/component/payList?id=${this.defalutVal.id}`
138 141
 				})
139 142
 			},
143
+			// 确认缴费
144
+			confirmPayments(){
145
+				uni.navigateTo({
146
+					url: `/pages/handlecase/component/confirmPayment?id=${this.defalutVal.id}&caseFlowId=${this.defalutVal.caseFlowId}`
147
+				})
148
+			},
140 149
 			/**提交案件*/
141 150
 			onsubmitRow() {
142 151
 				caseAppSubmit().then(res => {
143 152
 					uni.showToast({
144
-						title: '成功',
153
+						title: '提交成功',
145 154
 						icon: 'none',
146 155
 						duration: 1000
147 156
 					})
148
-					this.$emit("getList");
157
+					uni.navigateBack({
158
+						delta: 1
159
+					})
160
+					//this.$emit("getList");
149 161
 				})
150 162
 			},
151 163
 			// 修改
152 164
 			modify() {
153
-				uni.redirectTo({
165
+				uni.navigateTo({
154 166
 					url: `/pages/handlecase/component/newlyAddedCase?id=${this.defalutVal.id}`,
155 167
 				})
156 168
 			},
157 169
 			/*删除*/
158 170
 			deleteCase() {
159
-				console.log("PPPPPPPPPPPPPPPPPPPPPPPP");
160
-			},
161
-			/*提交*/
162
-			/**查询按钮列表 */
163
-			getButtonList() {
164
-				queryCaseFlowInfo({
165
-					pageNum: 1,
166
-					pageSize: 100000
167
-				}).then(res => {
168
-					res.rows.forEach(item => {
169
-						if (item.id != 11 && item.id != 17) {
170
-							this.buttonList.push(item)
171
-						}
172
-					});
171
+				let objValue ={
172
+					id : this.defalutVal.id,
173
+					batchNumber:"",
174
+					caseFlowId:this.defalutVal.caseFlowId
175
+				}
176
+				caseDelete(objValue).then(res =>{
177
+					uni.showToast({
178
+						title: '删除成功',
179
+						icon: 'none',
180
+						duration: 1000
181
+					})
182
+					uni.navigateBack({
183
+						delta: 1
184
+					})
173 185
 				})
174 186
 			},
175 187
 		},
176 188
 		created() {
177
-			// this.getButtonList()
178 189
 		}
179 190
 	}
180 191
 </script>

+ 4
- 2
pages/handlecase/component/newlyAddedCase.vue Dosyayı Görüntüle

@@ -24,7 +24,7 @@
24 24
 					<uni-data-select :localdata="templateList" v-model="formData.templateId"></uni-data-select>
25 25
 				</uni-forms-item>
26 26
 				<uni-forms-item label="申请人案件证据资料上传:" name="headImage" label-width="120px">
27
-							<uni-file-picker ref="files" file-mediatype="all" :auto-upload="false" @select="select" :limit='9' />
27
+							<uni-file-picker ref="files" file-mediatype="all" return-type='object' v-model="fileList" :auto-upload="false" @select="select" :limit='9' />
28 28
 				</uni-forms-item>
29 29
 				<uni-section title="双方信息" type="line" padding></uni-section>
30 30
 				<uni-forms-item label="选择机构或自然人" label-width="120px" name="objectiJuris">
@@ -202,6 +202,7 @@
202 202
 							value: 0
203 203
 						}
204 204
 					],
205
+					fileList: {},
205 206
 					rules:{},
206 207
 					rulesappName: [
207 208
 						{  
@@ -342,8 +343,9 @@
342 343
 							let result = JSON.parse(res.data)
343 344
 							 this.formData.caseAttachList.push({
344 345
 							        annexId: result.annexId,
346
+									annexName: result.fileName
345 347
 							  });
346
-							console.log(result.annexId)
348
+							console.log(result.fileName)
347 349
 							uni.showToast({
348 350
 								title: '上传成功',
349 351
 								icon: 'none',

+ 2
- 1
pages/handlecase/index.vue Dosyayı Görüntüle

@@ -170,7 +170,8 @@
170 170
 				this.getList(obj)
171 171
 			}
172 172
 		},
173
-		onLoad() {
173
+		onShow() {
174
+			this.buttonList = []
174 175
 			this.sysType = uni.getStorageSync('sysType');
175 176
 			let obj = {}
176 177
 			if (this.sysType == 1) {