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

269 lines
6.7 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">
2024-02-20 17:16:52 +08:00
申请人:
2024-01-24 15:52:01 +08:00
</view>
<view class="main">
{{defalutVal.applicantName}}
</view>
</view>
<view class="listItem" v-if="sysType == 2">
<view class="lable">
2024-02-20 17:16:52 +08:00
申请人:
2024-01-24 15:52:01 +08:00
</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">
2024-02-20 17:16:52 +08:00
被申请人:
2024-01-24 15:52:01 +08:00
</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">
2024-02-19 17:14:28 +08:00
<button class="btnItem" type="primary" size="mini" @tap="modify" v-if="checkPermi(['caseManagement:list:edit'])">修改</button>
<button class="btnItem" type="primary" size="mini" @tap="deleteCase" v-if="checkPermi(['caseManagement:list:delete'])">删除</button>
2024-02-05 18:14:59 +08:00
<!-- <button class="btnItem" type="primary" size="mini" @tap="clickPay">申请人缴费</button>
<button class="btnItem" type="primary" size="mini" @tap="caseDetail">选择调解员</button> -->
2024-02-06 15:36:34 +08:00
<button class="btnItem" type="primary" @tap="clickType(item.id)" size="mini" v-for="(item) in buttonList"
:key="item.id"
2024-02-05 18:14:59 +08:00
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-02-29 16:37:09 +08:00
<view class="btn" v-if="sysType == 1">
<button class="btnItem" type="primary" size="mini" @tap="caseCrossExamin">案件质证</button>
</view>
2024-01-24 15:52:01 +08:00
</view>
</template>
<script>
2024-02-05 18:14:59 +08:00
import {
2024-02-06 15:36:34 +08:00
queryCaseFlowInfo,
2024-02-19 17:14:28 +08:00
caseAppSubmit,
caseDelete
2024-02-05 18:14:59 +08:00
} from '@/api/handlecase/index.js'
2024-01-24 15:52:01 +08:00
export default {
data() {
return {
2024-02-19 09:19:21 +08:00
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: () => {}
2024-02-06 15:36:34 +08:00
},
buttonList: {
type: Array,
default: () => {}
2024-01-24 15:52:01 +08:00
}
},
methods: {
2024-02-06 15:36:34 +08:00
/**点击列表按钮*/
clickType(type) {
if (type == 1) {
// 提交案件
this.onsubmitRow()
} else if (type == 2) {
// 缴费
2024-02-20 17:21:44 +08:00
this.clickPay(4)
2024-02-06 15:36:34 +08:00
} else if (type == 3 || type == 45) {
2024-02-19 17:14:28 +08:00
this.confirmPayments()
2024-02-06 15:36:34 +08:00
// 确认缴费
} else if (type == 4) {
// 受理分配
} else if (type == 5) {
// 选择调解员
this.caseDetail()
} else if (type == 6) {
// 核实调解员
} else if (type == 7) {
// 确认调解员
} else if (type == 8) {
// 确定调解时间
} else if (type == 9) {
// 调解
} else if (type == 10) {
// 确认调解书
} else if (type == 11) {
// 签名
} else if (type == 12) {
// 用印申请
} else if (type == 13) {
// 用印
} else if (type == 14) {
// 归档
} else if (type == 15) {
// 申请人签收
} else if (type == 16) {
// 被申请人签收
} else if (type == 17) {
//结束
} else if (type == 44) {
// 被申请人缴费
2024-02-20 17:21:44 +08:00
this.clickPay(9)
2024-02-06 15:36:34 +08:00
}
},
2024-02-29 16:37:09 +08:00
// 案件质证
caseCrossExamin(){
uni.navigateTo({
url:`/pages/handlecase/component/uploadEvidence?id=${this.defalutVal.id}`
})
},
2024-01-24 15:52:01 +08:00
// 案件详情以及操作
caseDetail() {
uni.navigateTo({
url: `/pages/handlecase/component/uploadEvidence?id=${this.defalutVal.id}`
})
2024-02-05 18:14:59 +08:00
},
2024-02-19 17:14:28 +08:00
// 缴费
2024-02-20 17:21:44 +08:00
clickPay(type) {
2024-02-05 18:14:59 +08:00
uni.navigateTo({
2024-02-20 17:21:44 +08:00
url: `/pages/handlecase/component/payList?id=${this.defalutVal.id}&type=${type}`
2024-02-05 18:14:59 +08:00
})
},
2024-02-19 17:14:28 +08:00
// 确认缴费
confirmPayments(){
uni.navigateTo({
url: `/pages/handlecase/component/confirmPayment?id=${this.defalutVal.id}&caseFlowId=${this.defalutVal.caseFlowId}`
})
},
2024-02-06 15:36:34 +08:00
/**提交案件*/
onsubmitRow() {
2024-02-20 17:21:44 +08:00
let onsubmitVal ={
id : this.defalutVal.id,
batchNumber:"",
caseFlowId:this.defalutVal.caseFlowId
}
2024-02-26 16:01:24 +08:00
uni.showModal({
title: '提示',
content: '您确定要提交案件',
success: function (res) {
if (res.confirm) {
// console.log('用户点击确定');
caseAppSubmit(onsubmitVal).then(res => {
uni.showToast({
title: '提交成功',
icon: 'none',
duration: 1000
})
uni.navigateTo({
url:'/pages/handlecase/index'
})
})
} else if (res.cancel) {
// console.log('用户点击取消');
}
}
});
2024-02-05 18:14:59 +08:00
},
2024-02-06 14:39:10 +08:00
// 修改
2024-02-19 09:12:07 +08:00
modify() {
2024-02-19 17:14:28 +08:00
uni.navigateTo({
2024-02-06 14:39:10 +08:00
url: `/pages/handlecase/component/newlyAddedCase?id=${this.defalutVal.id}`,
})
},
2024-02-19 09:12:07 +08:00
/*删除*/
deleteCase() {
2024-02-19 17:14:28 +08:00
let objValue ={
id : this.defalutVal.id,
batchNumber:"",
caseFlowId:this.defalutVal.caseFlowId
}
2024-02-26 16:01:24 +08:00
uni.showModal({
title: '提示',
content: '您确定要删除案件',
success: function (res) {
if (res.confirm) {
// console.log('用户点击确定');
caseDelete(objValue).then(res =>{
uni.showToast({
title: '删除成功',
icon: 'none',
duration: 1000
})
uni.navigateTo({
url:'/pages/handlecase/index'
})
})
} else if (res.cancel) {
// console.log('用户点击取消');
}
}
});
2024-02-05 18:14:59 +08:00
},
},
created() {
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>