Files
miniapp/pages/handlecase/component/list.vue
T

148 lines
3.4 KiB
Vue
Raw Normal View History

2024-01-24 15:52:01 +08:00
<template>
2024-02-05 18:14:59 +08:00
<view class="list">
2024-01-24 15:52:01 +08:00
<view class="listItem">
<view class="lable">
案件编号:
</view>
<view class="main">
{{defalutVal.caseNum}}
</view>
</view>
<view class="listItem" v-if="sysType == 1">
<view class="lable">
申请人姓名:
</view>
<view class="main">
{{defalutVal.applicantName}}
</view>
</view>
<view class="listItem" v-if="sysType == 2">
<view class="lable">
申请人姓名:
</view>
<view class="main">
2024-02-02 10:31:56 +08:00
{{defalutVal.applicationName}}
2024-01-24 15:52:01 +08:00
</view>
</view>
<view class="listItem" style="margin-top:22rpx">
<view class="lable">
被申请人姓名:
</view>
<view class="main">
{{defalutVal.respondentName}}
</view>
</view>
<view class="listItem">
<view class="lable">
案件状态:
</view>
<view class="main">
{{defalutVal.caseStatusName}}
</view>
</view>
2024-02-05 18:14:59 +08:00
<view class="btn" v-if="sysType == 2">
<!-- <button class="btnItem" type="primary" size="mini" @tap="clickPay">申请人缴费</button>
<button class="btnItem" type="primary" size="mini" @tap="caseDetail">选择调解员</button> -->
<button class="btnItem" type="primary" size="mini" v-for="(item) in buttonList" :key="item.id"
v-if="item.id == defalutVal.caseFlowId && checkPermi([item.buttonAuthFlag])">{{ item.nodeName }}</button>
<!-- <button class="btnItem" type="primary" size="mini" @tap="confirmationEvidence">确认证据</button>
<button class="btnItem" type="primary" size="mini" @tap="isAssignrbitrators">是否指派仲裁员</button>
<button class="btnItem" type="primary" size="mini" @tap="isAssignrbitrators">是否指派仲裁员</button>
<button class="btnItem" type="primary" size="mini" @tap="chooseMethod">选择仲裁方式</button> -->
</view>
2024-01-24 15:52:01 +08:00
</view>
</template>
<script>
2024-02-05 18:14:59 +08:00
import {
queryCaseFlowInfo
} from '@/api/handlecase/index.js'
2024-01-24 15:52:01 +08:00
export default {
data() {
return {
2024-02-05 18:14:59 +08:00
buttonList: []
2023-12-26 17:14:58 +08:00
}
2024-01-24 15:52:01 +08:00
},
props: {
defalutVal: {
type: Object,
default: () => {}
},
sysType: {
type: Number,
default: () => {}
}
},
methods: {
// 案件详情以及操作
caseDetail() {
uni.navigateTo({
url: `/pages/handlecase/component/uploadEvidence?id=${this.defalutVal.id}`
})
2024-02-05 18:14:59 +08:00
},
clickPay() {
uni.navigateTo({
url: `/pages/handlecase/component/payList?id=${this.defalutVal.id}`
})
},
/**查询按钮列表 */
getButtonList() {
queryCaseFlowInfo({
pageNum: 1,
pageSize: 100000
}).then(res => {
res.rows.forEach(item => {
if (item.id != 11 && item.id != 17) {
this.buttonList.push(item)
}
});
})
},
},
created() {
this.getButtonList()
2024-01-24 15:52:01 +08:00
}
}
</script>
<style lang="scss" scoped>
.list {
padding: 15rpx;
display: flex;
flex-direction: column;
background-color: #ffffff;
border-radius: 30rpx;
margin-top: 20rpx;
.listItem {
width: 100%;
display: flex;
height: 50rpx;
.lable {
width: 30%;
}
.main {
width: 60%;
}
}
.btn {
margin-top: 20rpx;
width: 100%;
display: flex;
justify-content: space-between;
2024-02-05 18:14:59 +08:00
flex-wrap: wrap;
2024-01-24 15:52:01 +08:00
.btnItem {
height: 50rpx;
background-color: #5395ff;
border-radius: 10rpx;
text-align: center;
line-height: 50rpx;
}
}
}
2023-09-14 09:42:52 +08:00
</style>