hanchaobo 2 年 前
コミット
c1e80f293e

+ 71
- 69
pages/handlecase/component/confirmPayment.vue ファイルの表示

@@ -6,7 +6,8 @@
6 6
 					<uni-easyinput v-model="formData.caseNum" type="text" :disabled='true' placeholder="请输入案件编号" />
7 7
 				</uni-forms-item>
8 8
 				<uni-forms-item label="案件标的:" name="caseSubjectAmount" label-width="80px">
9
-					<uni-easyinput v-model="formData.caseSubjectAmount" type="text" :disabled='true' placeholder="请输入案件标的" />
9
+					<uni-easyinput v-model="formData.caseSubjectAmount" type="text" :disabled='true'
10
+						placeholder="请输入案件标的" />
10 11
 				</uni-forms-item>
11 12
 				<uni-forms-item label="缴费金额:" name="feePayable" label-width="80px">
12 13
 					<uni-easyinput v-model="formData.feePayable" type="text" :disabled='true' placeholder="请输入缴费金额" />
@@ -16,7 +17,7 @@
16 17
 						<uni-link v-if="item.annexType==4" :href="item.annexPath" color="#007BFF"
17 18
 							:text="item.annexName"></uni-link>
18 19
 					</view>
19
-				</uni-forms-item>	
20
+				</uni-forms-item>
20 21
 				<uni-forms-item label="被申请人缴费:" name="feePayable" label-width="100px" v-if="annexTypeB">
21 22
 					<view v-for="item in formData.caseAttachList">
22 23
 						<uni-link v-if="item.annexType==9" :href="item.annexPath" color="#007BFF"
@@ -24,42 +25,40 @@
24 25
 					</view>
25 26
 				</uni-forms-item>
26 27
 				<uni-forms-item label="是否缴费通过" label-width="120px" name="yesOrNo">
27
-					<uni-data-checkbox class='checkbox' 
28
-						:localdata="yesOrNoObject"
29
-						v-model="yesOrNo"
28
+					<uni-data-checkbox class='checkbox' :localdata="yesOrNoObject" v-model="yesOrNo"
30 29
 						@change='clearValidate'></uni-data-checkbox>
31 30
 				</uni-forms-item>
32 31
 				<uni-forms-item label="驳回原因:" name="reason" label-width="120px" required v-if="refusedisabled"
33
-				:rules="[{'required': true,errorMessage: '驳回原因不能为空'}]"
34
-				>
35
-					<uni-easyinput  v-model="formData.reason" type="textarea" placeholder="请输入驳回原因" />
32
+					:rules="[{'required': true,errorMessage: '驳回原因不能为空'}]">
33
+					<uni-easyinput v-model="formData.reason" type="textarea" placeholder="请输入驳回原因" />
36 34
 				</uni-forms-item>
37 35
 			</uni-forms>
38
-			<view class="determine" style="text-align: center;">	
39
-				<button  class="mini-btn" 
40
-				type="primary" size="mini" 
41
-				@tap="confirmPayment">确认缴费</button>
42
-				<button style="margin-left:30rpx;" class="mini-btn" 
43
-				type="default" size="mini" 
44
-				@tap="cencalBut">取消</button>
36
+			<view class="determine" style="text-align: center;">
37
+				<button class="mini-btn" type="primary" size="mini" @tap="confirmPayment">确认缴费</button>
38
+				<button style="margin-left:30rpx;" class="mini-btn" type="default" size="mini"
39
+					@tap="cencalBut">取消</button>
45 40
 			</view>
46 41
 		</view>
47
-	</view>
48
-</template>
49
-
42
+	</view>
43
+</template>
44
+
50 45
 <script>
51
-	import {selectPaymentDetail,confirmPaid,resConfirmPaid} from '../../../api/handlecase/index.js'
46
+	import {
47
+		selectPaymentDetail,
48
+		confirmPaid,
49
+		resConfirmPaid
50
+	} from '../../../api/handlecase/index.js'
52 51
 	export default {
53 52
 		data() {
54 53
 			return {
55
-				yesOrNo:1,
56
-				formData:{
57
-					reason:""
54
+				yesOrNo: 1,
55
+				formData: {
56
+					reason: ""
58 57
 				},
59
-				rules:{},
60
-				paymentConfirm:{},
61
-				annexTypeS:false,
62
-				annexTypeB:false,
58
+				rules: {},
59
+				paymentConfirm: {},
60
+				annexTypeS: false,
61
+				annexTypeB: false,
63 62
 				yesOrNoObject: [{
64 63
 					text: '同意',
65 64
 					value: 1
@@ -67,32 +66,32 @@
67 66
 					text: '拒绝',
68 67
 					value: 0
69 68
 				}],
70
-				refusedisabled:false
69
+				refusedisabled: false
71 70
 			}
72 71
 		},
73
-		methods:{
74
-			confirmPayment(){
75
-				this.$refs.form.validate().then(res=>{
76
-						if(this.paymentConfirm.caseFlowId==3){
77
-							this.confirmPaymentApplicant()
78
-						}else if(this.paymentConfirm.caseFlowId==44){
79
-							this.confirmPaymentRespondent()
80
-						}
81
-						console.log(this.paymentConfirm.caseFlowId)
82
-					}).catch(err =>{
83
-						
72
+		methods: {
73
+			confirmPayment() {
74
+				this.$refs.form.validate().then(res => {
75
+					if (this.paymentConfirm.caseFlowId == 3) {
76
+						this.confirmPaymentApplicant()
77
+					} else if (this.paymentConfirm.caseFlowId == 45) {
78
+						this.confirmPaymentRespondent()
79
+					}
80
+					console.log(this.paymentConfirm.caseFlowId)
81
+				}).catch(err => {
82
+
84 83
 				})
85 84
 			},
86 85
 			// 申请人确认缴费
87
-			confirmPaymentApplicant(){
86
+			confirmPaymentApplicant() {
88 87
 				let vals = {
89
-					caseId:this.paymentConfirm.id,
90
-					batchNumber:"",
91
-					caseFlowId:this.paymentConfirm.caseFlowId,
92
-					yesOrNo:this.yesOrNo,
93
-					reason:this.formData.reason
88
+					caseId: this.paymentConfirm.id,
89
+					batchNumber: "",
90
+					caseFlowId: this.paymentConfirm.caseFlowId,
91
+					yesOrNo: this.yesOrNo,
92
+					reason: this.formData.reason
94 93
 				}
95
-				confirmPaid(vals).then(res =>{
94
+				confirmPaid(vals).then(res => {
96 95
 					uni.showToast({
97 96
 						title: '申请人缴费确认成功',
98 97
 						icon: 'none',
@@ -104,15 +103,15 @@
104 103
 				})
105 104
 			},
106 105
 			// 被申请人缴费确认
107
-			confirmPaymentRespondent(){
106
+			confirmPaymentRespondent() {
108 107
 				let vals = {
109
-					caseId:this.paymentConfirm.id,
110
-					batchNumber:"",
111
-					caseFlowId:this.paymentConfirm.caseFlowId,
112
-					yesOrNo:this.yesOrNo,
113
-					reason:this.formData.reason
108
+					caseId: this.paymentConfirm.id,
109
+					batchNumber: "",
110
+					caseFlowId: this.paymentConfirm.caseFlowId,
111
+					yesOrNo: this.yesOrNo,
112
+					reason: this.formData.reason
114 113
 				}
115
-				resConfirmPaid(vals).then(res =>{
114
+				resConfirmPaid(vals).then(res => {
116 115
 					uni.showToast({
117 116
 						title: '被申请人缴费确认成功',
118 117
 						icon: 'none',
@@ -125,38 +124,41 @@
125 124
 			},
126 125
 			// 缴费详情
127 126
 			paymentDetails(val) {
128
-			    selectPaymentDetail(val).then(res => {
129
-			        this.formData = res.data;
130
-					this.formData.caseAttachList.forEach(res =>{
131
-						if(res.annexType==4){
127
+				selectPaymentDetail(val).then(res => {
128
+					this.formData = res.data;
129
+					this.formData.caseAttachList.forEach(res => {
130
+						if (res.annexType == 4) {
132 131
 							this.annexTypeS = true
133
-						}else if(res.annexType==9){
132
+						} else if (res.annexType == 9) {
134 133
 							this.annexTypeB = true
135 134
 						}
136 135
 					})
137
-			    })
138
-			}, 
139
-			clearValidate(val){
140
-				 this.yesOrNo=val.detail.value
141
-				if(val.detail.value==0){
136
+				})
137
+			},
138
+			clearValidate(val) {
139
+				this.yesOrNo = val.detail.value
140
+				if (val.detail.value == 0) {
142 141
 					this.refusedisabled = true
143
-				}else{
142
+				} else {
144 143
 					this.refusedisabled = false
145 144
 				}
146 145
 			}
147 146
 		},
148 147
 		onLoad(data) {
149 148
 			this.paymentConfirm = data
150
-			this.paymentDetails({id:data.id})
149
+			this.paymentDetails({
150
+				id: data.id
151
+			})
151 152
 		}
152
-	}
153
-</script>
154
-
153
+	}
154
+</script>
155
+
155 156
 <style lang="scss">
156 157
 	page {
157 158
 		background-color: #ffffff;
158 159
 	}
159
-	.assignrbitrators{
160
+
161
+	.assignrbitrators {
160 162
 		margin: 30rpx;
161
-	}
163
+	}
162 164
 </style>

+ 7
- 6
pages/handlecase/index.vue ファイルの表示

@@ -3,8 +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" @pDeleteCase='deleteCase'  v-for="(item,index) in caseList" :defalutVal='item' :buttonList='buttonList' :key="index"
7
-			:sysType='sysType'>
6
+		<List class="caseList" @pDeleteCase='deleteCase' v-for="(item,index) in caseList" :defalutVal='item'
7
+			:buttonList='buttonList' :key="index" :sysType='sysType'>
8 8
 		</List>
9 9
 		<view class="emptyBox" v-if="caseList.length == 0">
10 10
 			<luanqing-empty :show="true" textColor="#000"></luanqing-empty>
@@ -52,6 +52,7 @@
52 52
 			},
53 53
 			getList(parms) {
54 54
 				console.log(111)
55
+				this.caseList = [];
55 56
 				if (this.sysType == 1) {
56 57
 					respondentList(parms).then(res => {
57 58
 						// this.caseList = res.rows;
@@ -130,15 +131,15 @@
130 131
 				}
131 132
 
132 133
 			},
133
-			deleteCase(objValue){
134
-				caseDelete(objValue).then(res =>{
134
+			deleteCase(objValue) {
135
+				caseDelete(objValue).then(res => {
135 136
 					uni.showToast({
136 137
 						title: '删除成功',
137 138
 						icon: 'none',
138 139
 						duration: 1000
139 140
 					})
140
-					 
141
-				}) 
141
+
142
+				})
142 143
 				this.$router.go(0)
143 144
 			},
144 145
 			// 新增案件

+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/common/main.js.map
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/common/runtime.js.map
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-icons/components/uni-icons/uni-icons.js.map
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 1
- 0
unpackage/dist/dev/mp-weixin/app.json ファイルの表示

@@ -6,6 +6,7 @@
6 6
     "pages/work/index",
7 7
     "pages/handlecase/index",
8 8
     "pages/handlecase/component/uploadEvidence",
9
+    "pages/handlecase/component/confirmPayment",
9 10
     "pages/handlecase/component/payList",
10 11
     "pages/handlecase/component/evidenceList",
11 12
     "pages/handlecase/component/obligations",