瀏覽代碼

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

hanchaobo 2 年之前
父節點
當前提交
737646fcad
共有 4 個檔案被更改,包括 118 行新增32 行删除
  1. 29
    21
      api/handlecase/index.js
  2. 65
    4
      pages/handlecase/component/list.vue
  3. 4
    4
      pages/handlecase/component/payList.vue
  4. 20
    3
      pages/handlecase/index.vue

+ 29
- 21
api/handlecase/index.js 查看文件

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

+ 65
- 4
pages/handlecase/component/list.vue 查看文件

44
 			<button class="btnItem" type="primary" size="mini" @tap="modify">修改</button>
44
 			<button class="btnItem" type="primary" size="mini" @tap="modify">修改</button>
45
 			<!-- <button class="btnItem" type="primary" size="mini" @tap="clickPay">申请人缴费</button>
45
 			<!-- <button class="btnItem" type="primary" size="mini" @tap="clickPay">申请人缴费</button>
46
 			<button class="btnItem" type="primary" size="mini" @tap="caseDetail">选择调解员</button> -->
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
 				v-if="item.id == defalutVal.caseFlowId && checkPermi([item.buttonAuthFlag])">{{ item.nodeName }}</button>
49
 				v-if="item.id == defalutVal.caseFlowId && checkPermi([item.buttonAuthFlag])">{{ item.nodeName }}</button>
49
 			<!-- <button class="btnItem" type="primary" size="mini" @tap="confirmationEvidence">确认证据</button>
50
 			<!-- <button class="btnItem" type="primary" size="mini" @tap="confirmationEvidence">确认证据</button>
50
 			<button class="btnItem" type="primary" size="mini" @tap="isAssignrbitrators">是否指派仲裁员</button>
51
 			<button class="btnItem" type="primary" size="mini" @tap="isAssignrbitrators">是否指派仲裁员</button>
56
 
57
 
57
 <script>
58
 <script>
58
 	import {
59
 	import {
59
-		queryCaseFlowInfo
60
+		queryCaseFlowInfo,
61
+		caseAppSubmit
60
 	} from '@/api/handlecase/index.js'
62
 	} from '@/api/handlecase/index.js'
61
 	export default {
63
 	export default {
62
 		data() {
64
 		data() {
63
 			return {
65
 			return {
64
-				buttonList: []
66
+
65
 			}
67
 			}
66
 		},
68
 		},
67
 		props: {
69
 		props: {
72
 			sysType: {
74
 			sysType: {
73
 				type: Number,
75
 				type: Number,
74
 				default: () => {}
76
 				default: () => {}
77
+			},
78
+			buttonList: {
79
+				type: Array,
80
+				default: () => {}
75
 			}
81
 			}
76
 		},
82
 		},
77
 		methods: {
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
 			caseDetail() {
129
 			caseDetail() {
80
 				uni.navigateTo({
130
 				uni.navigateTo({
86
 					url: `/pages/handlecase/component/payList?id=${this.defalutVal.id}`
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
 			modify(){
151
 			modify(){
91
 				uni.redirectTo({
152
 				uni.redirectTo({
107
 			},
168
 			},
108
 		},
169
 		},
109
 		created() {
170
 		created() {
110
-			this.getButtonList()
171
+			// this.getButtonList()
111
 		}
172
 		}
112
 	}
173
 	}
113
 </script>
174
 </script>

+ 4
- 4
pages/handlecase/component/payList.vue 查看文件

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 查看文件

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 = {