This commit is contained in:
gyj
2024-02-23 14:11:03 +08:00
5 changed files with 58 additions and 52 deletions
+52 -47
View File
@@ -16,7 +16,7 @@
<uni-link v-if="item.annexType==4" :href="item.annexPath" color="#007BFF" <uni-link v-if="item.annexType==4" :href="item.annexPath" color="#007BFF"
:text="item.annexName"></uni-link> :text="item.annexName"></uni-link>
</view> </view>
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="被申请人缴费:" name="feePayable" label-width="100px" v-if="annexTypeB"> <uni-forms-item label="被申请人缴费:" name="feePayable" label-width="100px" v-if="annexTypeB">
<view v-for="item in formData.caseAttachList"> <view v-for="item in formData.caseAttachList">
<uni-link v-if="item.annexType==9" :href="item.annexPath" color="#007BFF" <uni-link v-if="item.annexType==9" :href="item.annexPath" color="#007BFF"
@@ -24,9 +24,7 @@
</view> </view>
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="是否缴费通过" label-width="120px" name="yesOrNo"> <uni-forms-item label="是否缴费通过" label-width="120px" name="yesOrNo">
<uni-data-checkbox class='checkbox' <uni-data-checkbox class='checkbox' :localdata="yesOrNoObject" v-model="yesOrNo"
:localdata="yesOrNoObject"
v-model="yesOrNo"
@change='clearValidate'></uni-data-checkbox> @change='clearValidate'></uni-data-checkbox>
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="驳回原因:" name="reason" label-width="120px" required v-if="refusedisabled" <uni-forms-item label="驳回原因:" name="reason" label-width="120px" required v-if="refusedisabled"
@@ -44,22 +42,26 @@
@tap="cencalBut">取消</button> @tap="cencalBut">取消</button>
</view> </view>
</view> </view>
</view> </view>
</template> </template>
<script> <script>
import {selectPaymentDetail,confirmPaid,resConfirmPaid} from '../../../api/handlecase/index.js' import {
selectPaymentDetail,
confirmPaid,
resConfirmPaid
} from '../../../api/handlecase/index.js'
export default { export default {
data() { data() {
return { return {
yesOrNo:1, yesOrNo: 1,
formData:{ formData: {
reason:"" reason: ""
}, },
rules:{}, rules: {},
paymentConfirm:{}, paymentConfirm: {},
annexTypeS:false, annexTypeS: false,
annexTypeB:false, annexTypeB: false,
yesOrNoObject: [{ yesOrNoObject: [{
text: '同意', text: '同意',
value: 1 value: 1
@@ -67,7 +69,7 @@
text: '拒绝', text: '拒绝',
value: 0 value: 0
}], }],
refusedisabled:false refusedisabled: false
} }
}, },
methods:{ methods:{
@@ -84,15 +86,15 @@
}) })
}, },
// 申请人确认缴费 // 申请人确认缴费
confirmPaymentApplicant(){ confirmPaymentApplicant() {
let vals = { let vals = {
caseId:this.paymentConfirm.id, caseId: this.paymentConfirm.id,
batchNumber:"", batchNumber: "",
caseFlowId:this.paymentConfirm.caseFlowId, caseFlowId: this.paymentConfirm.caseFlowId,
yesOrNo:this.yesOrNo, yesOrNo: this.yesOrNo,
reason:this.formData.reason reason: this.formData.reason
} }
confirmPaid(vals).then(res =>{ confirmPaid(vals).then(res => {
uni.showToast({ uni.showToast({
title: '申请人缴费确认成功', title: '申请人缴费确认成功',
icon: 'none', icon: 'none',
@@ -104,15 +106,15 @@
}) })
}, },
// 被申请人缴费确认 // 被申请人缴费确认
confirmPaymentRespondent(){ confirmPaymentRespondent() {
let vals = { let vals = {
caseId:this.paymentConfirm.id, caseId: this.paymentConfirm.id,
batchNumber:"", batchNumber: "",
caseFlowId:this.paymentConfirm.caseFlowId, caseFlowId: this.paymentConfirm.caseFlowId,
yesOrNo:this.yesOrNo, yesOrNo: this.yesOrNo,
reason:this.formData.reason reason: this.formData.reason
} }
resConfirmPaid(vals).then(res =>{ resConfirmPaid(vals).then(res => {
uni.showToast({ uni.showToast({
title: '被申请人缴费确认成功', title: '被申请人缴费确认成功',
icon: 'none', icon: 'none',
@@ -125,38 +127,41 @@
}, },
// 缴费详情 // 缴费详情
paymentDetails(val) { paymentDetails(val) {
selectPaymentDetail(val).then(res => { selectPaymentDetail(val).then(res => {
this.formData = res.data; this.formData = res.data;
this.formData.caseAttachList.forEach(res =>{ this.formData.caseAttachList.forEach(res => {
if(res.annexType==4){ if (res.annexType == 4) {
this.annexTypeS = true this.annexTypeS = true
}else if(res.annexType==9){ } else if (res.annexType == 9) {
this.annexTypeB = true this.annexTypeB = true
} }
}) })
}) })
}, },
clearValidate(val){ clearValidate(val) {
this.yesOrNo=val.detail.value this.yesOrNo = val.detail.value
if(val.detail.value==0){ if (val.detail.value == 0) {
this.refusedisabled = true this.refusedisabled = true
}else{ } else {
this.refusedisabled = false this.refusedisabled = false
} }
} }
}, },
onLoad(data) { onLoad(data) {
this.paymentConfirm = data this.paymentConfirm = data
this.paymentDetails({id:data.id}) this.paymentDetails({
id: data.id
})
} }
} }
</script> </script>
<style lang="scss"> <style lang="scss">
page { page {
background-color: #ffffff; background-color: #ffffff;
} }
.assignrbitrators{
.assignrbitrators {
margin: 30rpx; margin: 30rpx;
} }
</style> </style>
+3 -2
View File
@@ -3,8 +3,8 @@
<view class="" v-if="sysType == 2"> <view class="" v-if="sysType == 2">
<button type="primary" @tap="newlyAddedCases" v-if="checkPermi(['caseManagement:list:add'])">新增案件</button> <button type="primary" @tap="newlyAddedCases" v-if="checkPermi(['caseManagement:list:add'])">新增案件</button>
</view> </view>
<List class="caseList" v-for="(item,index) in caseList" :defalutVal='item' :buttonList='buttonList' :key="index" <List class="caseList" @pDeleteCase='deleteCase' v-for="(item,index) in caseList" :defalutVal='item'
:sysType='sysType'> :buttonList='buttonList' :key="index" :sysType='sysType'>
</List> </List>
<view class="emptyBox" v-if="caseList.length == 0"> <view class="emptyBox" v-if="caseList.length == 0">
<luanqing-empty :show="true" textColor="#000"></luanqing-empty> <luanqing-empty :show="true" textColor="#000"></luanqing-empty>
@@ -51,6 +51,7 @@
}, },
getList(parms) { getList(parms) {
console.log(111) console.log(111)
this.caseList = [];
if (this.sysType == 1) { if (this.sysType == 1) {
respondentList(parms).then(res => { respondentList(parms).then(res => {
// this.caseList = res.rows; // this.caseList = res.rows;
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long