hanchaobo hace 2 años
padre
commit
408cdcedd5

+ 28
- 20
api/handlecase/index.js Ver fichero

89
 
89
 
90
 // 根据机构id查询模板
90
 // 根据机构id查询模板
91
 export function getTemplate(data) {
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
 export function getInfoByIdCard(query) {
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
 export function caseApplicationInsert(data) {
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
 export function updateComfire(data) {
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 Ver fichero

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="clickPay">申请人缴费</button>
44
 			<!-- <button class="btnItem" type="primary" size="mini" @tap="clickPay">申请人缴费</button>
45
 			<button class="btnItem" type="primary" size="mini" @tap="caseDetail">选择调解员</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"
46
+			<button class="btnItem" type="primary" @tap="clickType(item.id)" size="mini" v-for="(item) in buttonList"
47
+				:key="item.id"
47
 				v-if="item.id == defalutVal.caseFlowId && checkPermi([item.buttonAuthFlag])">{{ item.nodeName }}</button>
48
 				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="confirmationEvidence">确认证据</button>
49
 			<button class="btnItem" type="primary" size="mini" @tap="isAssignrbitrators">是否指派仲裁员</button>
50
 			<button class="btnItem" type="primary" size="mini" @tap="isAssignrbitrators">是否指派仲裁员</button>
55
 
56
 
56
 <script>
57
 <script>
57
 	import {
58
 	import {
58
-		queryCaseFlowInfo
59
+		queryCaseFlowInfo,
60
+		caseAppSubmit
59
 	} from '@/api/handlecase/index.js'
61
 	} from '@/api/handlecase/index.js'
60
 	export default {
62
 	export default {
61
 		data() {
63
 		data() {
62
 			return {
64
 			return {
63
-				buttonList: []
65
+
64
 			}
66
 			}
65
 		},
67
 		},
66
 		props: {
68
 		props: {
71
 			sysType: {
73
 			sysType: {
72
 				type: Number,
74
 				type: Number,
73
 				default: () => {}
75
 				default: () => {}
76
+			},
77
+			buttonList: {
78
+				type: Array,
79
+				default: () => {}
74
 			}
80
 			}
75
 		},
81
 		},
76
 		methods: {
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
 			caseDetail() {
128
 			caseDetail() {
79
 				uni.navigateTo({
129
 				uni.navigateTo({
85
 					url: `/pages/handlecase/component/payList?id=${this.defalutVal.id}`
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
 		created() {
150
 		created() {
103
-			this.getButtonList()
151
+			// this.getButtonList()
104
 		}
152
 		}
105
 	}
153
 	}
106
 </script>
154
 </script>

+ 4
- 4
pages/handlecase/component/payList.vue Ver fichero

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

+ 20
- 3
pages/handlecase/index.vue Ver fichero

3
 		<view class="" v-if="sysType == 2">
3
 		<view class="" v-if="sysType == 2">
4
 			<button type="primary" @tap="newlyAddedCases">新增案件</button>
4
 			<button type="primary" @tap="newlyAddedCases">新增案件</button>
5
 		</view>
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
 		</List>
8
 		</List>
8
 		<view class="emptyBox" v-if="caseList.length == 0">
9
 		<view class="emptyBox" v-if="caseList.length == 0">
9
 			<luanqing-empty :show="true" textColor="#000"></luanqing-empty>
10
 			<luanqing-empty :show="true" textColor="#000"></luanqing-empty>
15
 	import List from './component/list.vue'
16
 	import List from './component/list.vue'
16
 	import {
17
 	import {
17
 		respondentList,
18
 		respondentList,
18
-		caseApplicationTj
19
+		caseApplicationTj,
20
+		queryCaseFlowInfo
19
 	} from '../../api/handlecase/index.js'
21
 	} from '../../api/handlecase/index.js'
20
 	import LuanqingEmpty from "@/components/luanqing-empty.vue"
22
 	import LuanqingEmpty from "@/components/luanqing-empty.vue"
21
 	export default {
23
 	export default {
30
 				pageSize: 10,
32
 				pageSize: 10,
31
 				sysType: null,
33
 				sysType: null,
32
 				total: null,
34
 				total: null,
35
+				buttonList: []
33
 			}
36
 			}
34
 		},
37
 		},
35
 		methods: {
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
 			getList(parms) {
52
 			getList(parms) {
37
 				if (this.sysType == 1) {
53
 				if (this.sysType == 1) {
38
 					respondentList(parms).then(res => {
54
 					respondentList(parms).then(res => {
154
 				this.getList(obj)
170
 				this.getList(obj)
155
 			}
171
 			}
156
 		},
172
 		},
157
-		onShow() {
173
+		onLoad() {
158
 			this.sysType = uni.getStorageSync('sysType');
174
 			this.sysType = uni.getStorageSync('sysType');
159
 			let obj = {}
175
 			let obj = {}
160
 			if (this.sysType == 1) {
176
 			if (this.sysType == 1) {
170
 				}
186
 				}
171
 			}
187
 			}
172
 			this.getList(obj)
188
 			this.getList(obj)
189
+			this.getButtonList()
173
 		},
190
 		},
174
 		// onLoad() {
191
 		// onLoad() {
175
 		// 	let obj = {
192
 		// 	let obj = {