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

344 lines
8.8 KiB
Vue
Raw Normal View History

2024-01-24 15:52:01 +08:00
<template>
2024-03-01 10:46:52 +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>
2024-03-27 10:23:33 +08:00
<uni-tooltip :content="defalutVal.applicationName">
2024-05-17 14:17:55 +08:00
<view class="textHidden">
{{defalutVal.applicationName}}
</view>
2024-03-27 10:23:33 +08:00
</uni-tooltip>
2024-01-24 15:52:01 +08:00
</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>
2024-03-27 10:23:33 +08:00
<uni-tooltip :content="defalutVal.respondentName">
2024-05-17 14:17:55 +08:00
<view class="textHidden">
{{defalutVal.respondentName}}
</view>
2024-03-27 10:23:33 +08:00
</uni-tooltip>
2024-01-24 15:52:01 +08:00
</view>
<view class="listItem">
<view class="lable">
案件状态:
</view>
2024-05-24 14:52:26 +08:00
<view class="main" v-if="defalutVal.caseStatusName">
2024-01-24 15:52:01 +08:00
{{defalutVal.caseStatusName}}
</view>
</view>
2024-02-05 18:14:59 +08:00
<view class="btn" v-if="sysType == 2">
2024-02-26 17:17:45 +08:00
<button class="btnItem" type="primary" size="mini" @tap="modify"
2024-03-01 10:46:52 +08:00
v-if="checkPermi(['caseManagement:list:edit']) && defalutVal.caseFlowId <= 1">修改</button>
2024-02-26 17:17:45 +08:00
<button class="btnItem" type="primary" size="mini" @tap="deleteCase"
2024-03-01 10:46:52 +08:00
v-if="checkPermi(['caseManagement:list:delete']) && defalutVal.caseFlowId <= 1">删除</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-05-17 14:17:55 +08:00
v-if="item.id == defalutVal.caseFlowId && checkPermi([item.buttonAuthFlag])&& (defalutVal.appOperatorFlag == 1 || defalutVal.resOperatorFlag == 1 || defalutVal.otherFlag == 1 || defalutVal.agentFlag == 1 || defalutVal.mediatorFlag == 1)">{{ item.nodeName }}</button>
2024-02-05 18:14:59 +08:00
<!-- <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">
2024-05-24 14:52:26 +08:00
<button type="primary" class="btnItem" size="mini" @tap="caseDetails">案件详情</button>
2024-05-16 16:13:09 +08:00
<button v-if="defalutVal.caseStatus==4 && checkPermi(['caseManagement:list:examin'])" class="btnItem" type="primary" size="mini" @tap="caseCrossExamin">案件质证</button>
2024-02-29 16:37:09 +08:00
</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,
2024-03-01 10:46:52 +08:00
caseDelete,
msCaseSign
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-26 17:17:45 +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) {
// 申请人签收
2024-03-01 10:46:52 +08:00
this.signMediation();
2024-02-06 15:36:34 +08:00
} else if (type == 16) {
// 被申请人签收
2024-03-01 10:46:52 +08:00
this.receivedMediation();
2024-02-06 15:36:34 +08:00
} 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
// 案件质证
2024-05-17 14:17:55 +08:00
caseCrossExamin() {
2024-02-29 16:37:09 +08:00
uni.navigateTo({
2024-05-17 14:17:55 +08:00
url: `/pages/handlecase/component/uploadEvidence?id=${this.defalutVal.id}`
2024-02-29 16:37:09 +08:00
})
},
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-05-24 14:52:26 +08:00
// 仲裁案件详情
caseDetails(){
uni.navigateTo({
url:`/pages/handlecase/component/caseDetails?id=${this.defalutVal.id}`
})
},
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
// 确认缴费
2024-02-26 17:17:45 +08:00
confirmPayments() {
2024-02-19 17:14:28 +08:00
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-26 17:17:45 +08:00
let onsubmitVal = {
id: this.defalutVal.id,
batchNumber: "",
caseFlowId: this.defalutVal.caseFlowId
2024-02-20 17:21:44 +08:00
}
2024-02-26 16:01:24 +08:00
uni.showModal({
2024-03-01 10:46:52 +08:00
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-26 16:01:24 +08:00
});
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-26 17:17:45 +08:00
let objValue = {
id: this.defalutVal.id,
batchNumber: "",
caseFlowId: this.defalutVal.caseFlowId
2024-02-19 17:14:28 +08:00
}
2024-02-26 16:01:24 +08:00
uni.showModal({
2024-03-01 10:46:52 +08:00
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('用户点击取消');
}
}
});
},
/**申请人签收*/
signMediation() {
let that = this;
let objValue = {
caseId: this.defalutVal.id,
isSignApply: 1
}
uni.showModal({
title: '提示',
content: '您确定要签收',
success: function(res) {
if (res.confirm) {
that.signingMediationAgreement(objValue)
} else if (res.cancel) {
// console.log('用户点击取消');
}
}
});
},
/**被申请人签收*/
receivedMediation() {
let that = this;
let objValue = {
caseId: this.defalutVal.id,
isSignRespon: 1
}
uni.showModal({
title: '提示',
content: '您确定要签收',
success: function(res) {
if (res.confirm) {
that.signingMediationAgreement(objValue)
} else if (res.cancel) {
// console.log('用户点击取消');
}
}
});
},
/**申请人和被申请人签收调解书接口*/
signingMediationAgreement(val) {
msCaseSign(val).then((res) => {
uni.showToast({
title: '签收成功',
icon: 'none',
duration: 1000
})
uni.navigateTo({
url: '/pages/handlecase/index'
})
2024-02-26 16:01:24 +08:00
});
2024-02-05 18:14:59 +08:00
},
},
2024-05-14 15:47:23 +08:00
created() {
console.log(this.defalutVal)
}
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;
}
}
}
2024-05-17 14:17:55 +08:00
.textHidden {
2024-03-27 10:23:33 +08:00
width: 300rpx;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
2023-09-14 09:42:52 +08:00
</style>