Просмотр исходного кода

Merge branch 'hcb' of SH-Arbitrate/miniapp into dev

hanchaobo 2 лет назад
Родитель
Сommit
737646fcad

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

@@ -89,38 +89,46 @@ 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
-  })
123
-}
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
+}
124 132
 /** 根据id查询案件信息 */
125 133
 export function caseApplicationSelectById(data) {
126 134
   return request({

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

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