|
|
@@ -23,8 +23,19 @@
|
|
23
|
23
|
:text="item.annexName"></uni-link>
|
|
24
|
24
|
</view>
|
|
25
|
25
|
</uni-forms-item>
|
|
|
26
|
+ <uni-forms-item label="是否缴费通过" label-width="120px" name="yesOrNo">
|
|
|
27
|
+ <uni-data-checkbox class='checkbox'
|
|
|
28
|
+ :localdata="yesOrNoObject"
|
|
|
29
|
+ v-model="yesOrNo"
|
|
|
30
|
+ @change='clearValidate'></uni-data-checkbox>
|
|
|
31
|
+ </uni-forms-item>
|
|
|
32
|
+ <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="请输入驳回原因" />
|
|
|
36
|
+ </uni-forms-item>
|
|
26
|
37
|
</uni-forms>
|
|
27
|
|
- <view class="determine" style="text-align: center;">
|
|
|
38
|
+ <view class="determine" style="text-align: center;">
|
|
28
|
39
|
<button class="mini-btn"
|
|
29
|
40
|
type="primary" size="mini"
|
|
30
|
41
|
@tap="confirmPayment">确认缴费</button>
|
|
|
@@ -37,28 +48,73 @@
|
|
37
|
48
|
</template>
|
|
38
|
49
|
|
|
39
|
50
|
<script>
|
|
40
|
|
- import {selectPaymentDetail,confirmPaid} from '../../../api/handlecase/index.js'
|
|
|
51
|
+ import {selectPaymentDetail,confirmPaid,resConfirmPaid} from '../../../api/handlecase/index.js'
|
|
41
|
52
|
export default {
|
|
42
|
53
|
data() {
|
|
43
|
54
|
return {
|
|
44
|
|
- formData:{},
|
|
|
55
|
+ yesOrNo:1,
|
|
|
56
|
+ formData:{
|
|
|
57
|
+ reason:""
|
|
|
58
|
+ },
|
|
45
|
59
|
rules:{},
|
|
46
|
60
|
paymentConfirm:{},
|
|
47
|
61
|
annexTypeS:false,
|
|
48
|
|
- annexTypeB:false
|
|
|
62
|
+ annexTypeB:false,
|
|
|
63
|
+ yesOrNoObject: [{
|
|
|
64
|
+ text: '同意',
|
|
|
65
|
+ value: 1
|
|
|
66
|
+ }, {
|
|
|
67
|
+ text: '拒绝',
|
|
|
68
|
+ value: 0
|
|
|
69
|
+ }],
|
|
|
70
|
+ refusedisabled:false
|
|
49
|
71
|
}
|
|
50
|
72
|
},
|
|
51
|
73
|
methods:{
|
|
52
|
|
- // 确认缴费
|
|
53
|
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
|
+
|
|
|
84
|
+ })
|
|
|
85
|
+ },
|
|
|
86
|
+ // 申请人确认缴费
|
|
|
87
|
+ confirmPaymentApplicant(){
|
|
54
|
88
|
let vals = {
|
|
55
|
89
|
caseId:this.paymentConfirm.id,
|
|
56
|
90
|
batchNumber:"",
|
|
57
|
|
- caseFlowId:this.paymentConfirm.caseFlowId
|
|
|
91
|
+ caseFlowId:this.paymentConfirm.caseFlowId,
|
|
|
92
|
+ yesOrNo:this.yesOrNo,
|
|
|
93
|
+ reason:this.formData.reason
|
|
58
|
94
|
}
|
|
59
|
95
|
confirmPaid(vals).then(res =>{
|
|
60
|
96
|
uni.showToast({
|
|
61
|
|
- title: '缴费确认成功',
|
|
|
97
|
+ title: '申请人缴费确认成功',
|
|
|
98
|
+ icon: 'none',
|
|
|
99
|
+ duration: 1000
|
|
|
100
|
+ })
|
|
|
101
|
+ uni.navigateBack({
|
|
|
102
|
+ delta: 1
|
|
|
103
|
+ })
|
|
|
104
|
+ })
|
|
|
105
|
+ },
|
|
|
106
|
+ // 被申请人缴费确认
|
|
|
107
|
+ confirmPaymentRespondent(){
|
|
|
108
|
+ let vals = {
|
|
|
109
|
+ caseId:this.paymentConfirm.id,
|
|
|
110
|
+ batchNumber:"",
|
|
|
111
|
+ caseFlowId:this.paymentConfirm.caseFlowId,
|
|
|
112
|
+ yesOrNo:this.yesOrNo,
|
|
|
113
|
+ reason:this.formData.reason
|
|
|
114
|
+ }
|
|
|
115
|
+ resConfirmPaid(vals).then(res =>{
|
|
|
116
|
+ uni.showToast({
|
|
|
117
|
+ title: '被申请人缴费确认成功',
|
|
62
|
118
|
icon: 'none',
|
|
63
|
119
|
duration: 1000
|
|
64
|
120
|
})
|
|
|
@@ -79,7 +135,15 @@
|
|
79
|
135
|
}
|
|
80
|
136
|
})
|
|
81
|
137
|
})
|
|
82
|
|
- },
|
|
|
138
|
+ },
|
|
|
139
|
+ clearValidate(val){
|
|
|
140
|
+ this.yesOrNo=val.detail.value
|
|
|
141
|
+ if(val.detail.value==0){
|
|
|
142
|
+ this.refusedisabled = true
|
|
|
143
|
+ }else{
|
|
|
144
|
+ this.refusedisabled = false
|
|
|
145
|
+ }
|
|
|
146
|
+ }
|
|
83
|
147
|
},
|
|
84
|
148
|
onLoad(data) {
|
|
85
|
149
|
this.paymentConfirm = data
|