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

+ 28
- 20
api/handlecase/index.js Просмотреть файл

@@ -89,35 +89,43 @@ export function queryCaseFlowInfo(data) {
89 89
 
90 90
 // 根据机构id查询模板
91 91
 export function getTemplate(data) {
92
-    return request({
93
-        url: `/deptIdentify/getTemplate`,
94
-        method: 'get',
95
-        params: data
96
-    })
92
+	return request({
93
+		url: `/deptIdentify/getTemplate`,
94
+		method: 'get',
95
+		params: data
96
+	})
97 97
 }
98 98
 
99 99
 // 根据身份证获取生日和性别
100 100
 export function getInfoByIdCard(query) {
101
-  return request({
102
-    url: '/caseApplication/getInfoByIdCard',
103
-    method: 'get',
104
-    params: query
105
-  })
101
+	return request({
102
+		url: '/caseApplication/getInfoByIdCard',
103
+		method: 'get',
104
+		params: query
105
+	})
106 106
 }
107 107
 
108 108
 /** 新增案件 */
109 109
 export function caseApplicationInsert(data) {
110
-  return request({
111
-    url: '/caseApplication/insert',
112
-    method: 'post',
113
-    data: data
114
-  })
110
+	return request({
111
+		url: '/caseApplication/insert',
112
+		method: 'post',
113
+		data: data
114
+	})
115 115
 }
116 116
 // 修改立案申请接口
117 117
 export function updateComfire(data) {
118
-  return request({
119
-    url: "/caseApplication/update",
120
-    method: "post",
121
-    data: data,
122
-  })
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
+	})
123 131
 }

+ 63
- 15
pages/handlecase/component/list.vue Просмотреть файл

@@ -43,7 +43,8 @@
43 43
 		<view class="btn" v-if="sysType == 2">
44 44
 			<!-- <button class="btnItem" type="primary" size="mini" @tap="clickPay">申请人缴费</button>
45 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"
46
+			<button class="btnItem" type="primary" @tap="clickType(item.id)" size="mini" v-for="(item) in buttonList"
47
+				:key="item.id"
47 48
 				v-if="item.id == defalutVal.caseFlowId && checkPermi([item.buttonAuthFlag])">{{ item.nodeName }}</button>
48 49
 			<!-- <button class="btnItem" type="primary" size="mini" @tap="confirmationEvidence">确认证据</button>
49 50
 			<button class="btnItem" type="primary" size="mini" @tap="isAssignrbitrators">是否指派仲裁员</button>
@@ -55,12 +56,13 @@
55 56
 
56 57
 <script>
57 58
 	import {
58
-		queryCaseFlowInfo
59
+		queryCaseFlowInfo,
60
+		caseAppSubmit
59 61
 	} from '@/api/handlecase/index.js'
60 62
 	export default {
61 63
 		data() {
62 64
 			return {
63
-				buttonList: []
65
+
64 66
 			}
65 67
 		},
66 68
 		props: {
@@ -71,9 +73,57 @@
71 73
 			sysType: {
72 74
 				type: Number,
73 75
 				default: () => {}
76
+			},
77
+			buttonList: {
78
+				type: Array,
79
+				default: () => {}
74 80
 			}
75 81
 		},
76 82
 		methods: {
83
+			/**点击列表按钮*/
84
+			clickType(type) {
85
+				if (type == 1) {
86
+					// 提交案件
87
+					this.onsubmitRow()
88
+				} else if (type == 2) {
89
+					// 缴费
90
+					this.clickPay()
91
+				} else if (type == 3 || type == 45) {
92
+					// 确认缴费
93
+				} else if (type == 4) {
94
+					// 受理分配
95
+				} else if (type == 5) {
96
+					// 选择调解员
97
+					this.caseDetail()
98
+				} else if (type == 6) {
99
+					// 核实调解员
100
+				} else if (type == 7) {
101
+					// 确认调解员
102
+				} else if (type == 8) {
103
+					// 确定调解时间
104
+				} else if (type == 9) {
105
+					// 调解
106
+				} else if (type == 10) {
107
+					// 确认调解书
108
+				} else if (type == 11) {
109
+					// 签名
110
+				} else if (type == 12) {
111
+					// 用印申请
112
+				} else if (type == 13) {
113
+					// 用印
114
+				} else if (type == 14) {
115
+					// 归档
116
+				} else if (type == 15) {
117
+					// 申请人签收
118
+				} else if (type == 16) {
119
+					// 被申请人签收
120
+				} else if (type == 17) {
121
+					//结束
122
+				} else if (type == 44) {
123
+					// 被申请人缴费
124
+					this.clickPay()
125
+				}
126
+			},
77 127
 			// 案件详情以及操作
78 128
 			caseDetail() {
79 129
 				uni.navigateTo({
@@ -85,22 +135,20 @@
85 135
 					url: `/pages/handlecase/component/payList?id=${this.defalutVal.id}`
86 136
 				})
87 137
 			},
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
-					});
138
+			/**提交案件*/
139
+			onsubmitRow() {
140
+				caseAppSubmit().then(res => {
141
+					uni.showToast({
142
+						title: '成功',
143
+						icon: 'none',
144
+						duration: 1000
145
+					})
146
+					this.$emit("getList");
99 147
 				})
100 148
 			},
101 149
 		},
102 150
 		created() {
103
-			this.getButtonList()
151
+			// this.getButtonList()
104 152
 		}
105 153
 	}
106 154
 </script>

+ 4
- 4
pages/handlecase/component/payList.vue Просмотреть файл

@@ -6,11 +6,11 @@
6 6
 					<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.caseNum" placeholder="" />
7 7
 				</uni-forms-item>
8 8
 				<uni-forms-item label="申请人:" name="applicantName" label-width="120px" required>
9
-					<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.applicantName"
9
+					<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.affiliate.applicationName"
10 10
 						placeholder="" />
11 11
 				</uni-forms-item>
12 12
 				<uni-forms-item label="被申请人:" name="respondentName" label-width="120px" required>
13
-					<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.respondentName"
13
+					<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.affiliate.respondentName"
14 14
 						placeholder="" />
15 15
 				</uni-forms-item>
16 16
 				<uni-forms-item label="案件标的:" name="caseSubjectAmount" label-width="120px" required>
@@ -25,7 +25,7 @@
25 25
 		<uni-forms-item label="缴费方式">
26 26
 			<uni-data-checkbox v-model="payType" :localdata="payTypes" @change="changeType" />
27 27
 		</uni-forms-item>
28
-		<uni-forms-item label="缴费平台">
28
+		<uni-forms-item label="缴费平台" v-if="payType == 0">
29 29
 			<uni-data-checkbox v-model="payPlatform" :localdata="payPlatforms" @change="changePayType" />
30 30
 		</uni-forms-item>
31 31
 		<div class="payImg" v-if="payType == 0">
@@ -114,7 +114,7 @@
114 114
 			},
115 115
 			/**选择缴费方式*/
116 116
 			changeType(val) {
117
-				this.submitForm.payType = val;
117
+				this.submitForm.payType = val.detail.value;
118 118
 			},
119 119
 			/**文件上传*/
120 120
 			select(e) {

+ 20
- 3
pages/handlecase/index.vue Просмотреть файл

@@ -3,7 +3,8 @@
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" :sysType='sysType'>
6
+		<List class="caseList" v-for="(item,index) in caseList" :defalutVal='item' :buttonList='buttonList' :key="index"
7
+			:sysType='sysType'>
7 8
 		</List>
8 9
 		<view class="emptyBox" v-if="caseList.length == 0">
9 10
 			<luanqing-empty :show="true" textColor="#000"></luanqing-empty>
@@ -15,7 +16,8 @@
15 16
 	import List from './component/list.vue'
16 17
 	import {
17 18
 		respondentList,
18
-		caseApplicationTj
19
+		caseApplicationTj,
20
+		queryCaseFlowInfo
19 21
 	} from '../../api/handlecase/index.js'
20 22
 	import LuanqingEmpty from "@/components/luanqing-empty.vue"
21 23
 	export default {
@@ -30,9 +32,23 @@
30 32
 				pageSize: 10,
31 33
 				sysType: null,
32 34
 				total: null,
35
+				buttonList: []
33 36
 			}
34 37
 		},
35 38
 		methods: {
39
+			/**查询按钮列表 */
40
+			getButtonList() {
41
+				queryCaseFlowInfo({
42
+					pageNum: 1,
43
+					pageSize: 100000
44
+				}).then(res => {
45
+					res.rows.forEach(item => {
46
+						if (item.id != 11 && item.id != 17) {
47
+							this.buttonList.push(item)
48
+						}
49
+					});
50
+				})
51
+			},
36 52
 			getList(parms) {
37 53
 				if (this.sysType == 1) {
38 54
 					respondentList(parms).then(res => {
@@ -154,7 +170,7 @@
154 170
 				this.getList(obj)
155 171
 			}
156 172
 		},
157
-		onShow() {
173
+		onLoad() {
158 174
 			this.sysType = uni.getStorageSync('sysType');
159 175
 			let obj = {}
160 176
 			if (this.sysType == 1) {
@@ -170,6 +186,7 @@
170 186
 				}
171 187
 			}
172 188
 			this.getList(obj)
189
+			this.getButtonList()
173 190
 		},
174 191
 		// onLoad() {
175 192
 		// 	let obj = {