Files
miniapp/pages/handlecase/component/list.vue
T
2024-02-05 18:14:59 +08:00

148 lines
3.4 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<template>
<view class="list">
<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">
{{defalutVal.applicationName}}
</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>
<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>
</view>
</template>
<script>
import {
queryCaseFlowInfo
} from '@/api/handlecase/index.js'
export default {
data() {
return {
buttonList: []
}
},
props: {
defalutVal: {
type: Object,
default: () => {}
},
sysType: {
type: Number,
default: () => {}
}
},
methods: {
// 案件详情以及操作
caseDetail() {
uni.navigateTo({
url: `/pages/handlecase/component/uploadEvidence?id=${this.defalutVal.id}`
})
},
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()
}
}
</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;
flex-wrap: wrap;
.btnItem {
height: 50rpx;
background-color: #5395ff;
border-radius: 10rpx;
text-align: center;
line-height: 50rpx;
}
}
}
</style>