+
-
+
+
@@ -184,7 +188,7 @@
title="案件协办"
trigger="click">
-
+
协办
@@ -222,10 +226,9 @@ export default {
singledeliveryvisible:false,
singlesealvisible:false,
singleofficevisible:false,
- eventDialog: {caseId: this.$route.query.caseId},
+ eventDialog: {caseId: ''},
leftActive: 1,
rightActive: 1,
- fileList: [],
mediationRecord: [],//调解记录
baseInfo: {},//基本信息
obligorInfo: [],//债务人信息
@@ -289,7 +292,7 @@ export default {
visiblePopover: null,
VideoCallDialog: null,
mediaterecordpm:{
- caseId:this.$route.query.caseId,
+ caseId:'',
linkedWay:''
},
materialTypeOptions: [
@@ -359,10 +362,14 @@ export default {
},
},
async created() {
- this.caseId = this.$route.query.caseId || null
+
+ if(this.$route.query.caseId != null && this.$route.query.caseId != undefined)
+ { || null
this.queue = this.$route.query.queue || null
- this.getCaseInfoById();//获取详情
- this.getmediate_record()
+ await this.getCaseInfoById();//获取详情
+ }
+
+
this.callingTodayCount() //今日通话次数
if (this.queue) {
@@ -399,19 +406,23 @@ export default {
return {cardNo: datacardno.substring(0, len), phone: dataphone.substring(0, len)};
},
// 获取详情
- getCaseInfoById() {
- let _that = this
- api.getCaseInfoById(this.caseId).then(res => {
+ async getCaseInfoById() {
+ await api.getCaseInfoById(this.$route.query.caseId).then(res => {
if (!res.code) {
this.baseInfo = res
- // 材料
- // console.log('获取图片',res.caseFileEntityList)
- let caseFileEntityList = []
- res.caseFileEntityList.forEach((item) => {
- caseFileEntityList.push({name: item.name, fileName: item.name, url: item.url})
- })
- _that.fileList = caseFileEntityList
+
+ if(res.jointDebt == 1){
+ // 有共债 mainCaseId
+ this.caseId = res.mainCaseId.toString()
+ }
+ else
+ {
+ this.caseId = res.id.toString()
+ }
+
}
+ this.eventDialog.caseId = this.caseId
+ this.getmediate_record()
})
},
// 获取上一件案件
@@ -443,12 +454,38 @@ export default {
},
// 获取调解记录
getmediate_record() {
+ this.mediaterecordpm.caseId = this.caseId
api.mediate_record_list(this.mediaterecordpm).then(res => {
if (!res.code) {
this.communicationRecord = res
}
})
},
+ // 调解成功或者失败
+ handleChangeMediation(resultStatus){
+ let data={
+ id:this.caseId,
+ resultStatus:resultStatus
+ }
+ let resultmsg = '成功'
+ if(resultStatus == 4){resultmsg = '失败'}
+ this.$confirm("请确定是否将案件标记为"+resultmsg+"?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ }).then(() => {
+ if(!this.$clickThrottle()) { return }//防止重复点击
+ api.updateResultStatus(data).then(res => {
+ this.getCaseInfoById()
+ this.$message({message: '案件标记成功', type: "success",customClass:'messageZindex'})
+ thiis.getCaseInfoById()
+ })
+
+ }).catch(() => {});
+
+
+
+ },
async callingInfo() {
try {
let res = await api.callingInfo({})
@@ -628,6 +665,10 @@ export default {
}
.btn-group-processing-event{
width: calc(100% - 64px - 1px - 48px);
+ .bottom-case-btn:hover{
+ color: #BC6F60;
+ i{color: #BC6F60;}
+ }
}
}
diff --git a/src/pages/mediation-page/components/VideoReservationDialog.vue b/src/pages/mediation-page/components/VideoReservationDialog.vue
index 9eece57..cd175e8 100644
--- a/src/pages/mediation-page/components/VideoReservationDialog.vue
+++ b/src/pages/mediation-page/components/VideoReservationDialog.vue
@@ -9,7 +9,7 @@
:rules="rulesClientRule"
label-width="130px">
-
+
+
@@ -127,7 +127,7 @@
]">
@@ -211,12 +211,12 @@ export default {
caseId: '', // 案件ID
},
rulesClientRule: {
- name: [
- { required: true, message: '请输入', trigger: 'change',},
- ],
- content: [
- { required: true, message: '请输入', trigger: 'change',},
- ],
+ // name: [
+ // { required: true, message: '请输入', trigger: 'change',},
+ // ],
+ // content: [
+ // { required: true, message: '请输入', trigger: 'change',},
+ // ],
litigants: [
{ type: 'array', required: true, message: '请选择', trigger: 'change' }
],
@@ -267,6 +267,23 @@ export default {
.map(({name, phone, identity}) => ({name, phone, identity}));
this.repaymentObj.caseId = this.eventDialog.caseId;
// console.log(resultArr, '---resultArr' , this.repaymentObj)
+ let videotitle = ''
+ if(resultArr.length>0){
+ resultArr.forEach((item,index)=>{
+ if(index == 0){videotitle+=item.name}
+ else{videotitle+='、'+item.name}
+ })
+ }
+ if(this.repaymentObj.members.length>0){
+ this.repaymentObj.members.forEach((item,index)=>{
+ if(index == 0 && videotitle == ''){videotitle+=item.name}
+ else{videotitle+='、'+item.name}
+ })
+ }
+ videotitle+='的视频预约'
+ this.repaymentObj.name = videotitle
+ this.repaymentObj.content = videotitle
+
videoTelephone.videoTelephoneBooking({...this.repaymentObj, litigants: resultArr}).then(res => {
this.$parent.getList()
this.handleClose()
diff --git a/src/pages/mediation-page/components/VideoRoom.vue b/src/pages/mediation-page/components/VideoRoom.vue
index 6266a82..216bfb3 100644
--- a/src/pages/mediation-page/components/VideoRoom.vue
+++ b/src/pages/mediation-page/components/VideoRoom.vue
@@ -28,7 +28,7 @@
-
+
@@ -389,6 +389,16 @@ export default {
microphone: false
}
})
+ }else {
+ this.remoteUsersViews = this.remoteUsersViews.map(item => {
+ if (item.userId == userId){
+ item.microphone = false;
+ return {
+ ...item,
+ microphone: false
+ }
+ }
+ })
}
let json = {behavior: 'offAudio', userId: userId}
let data = {
@@ -426,6 +436,16 @@ export default {
microphone: true
}
})
+ }else {
+ this.remoteUsersViews = this.remoteUsersViews.map(item => {
+ if (item.userId == userId){
+ item.microphone = true;
+ return {
+ ...item,
+ microphone: true
+ }
+ }
+ })
}
let json = {behavior: 'onAudio', userId: userId}
diff --git a/src/pages/mediation-page/components/caseVideoReservationDialog.vue b/src/pages/mediation-page/components/caseVideoReservationDialog.vue
index dcc8852..f78cd6f 100644
--- a/src/pages/mediation-page/components/caseVideoReservationDialog.vue
+++ b/src/pages/mediation-page/components/caseVideoReservationDialog.vue
@@ -19,12 +19,13 @@
{{mediation_success_rate.caseTotal}}总案件数
@@ -312,10 +312,8 @@ import { color } from "echarts";
this.getCaseapkList()
this.getCaseInfoList()
- this.drawCharts()
this.getstatisticcases()
this.getstatistic_trace()
- this.getCaseapkStatistics()
},
methods: {
jumpUrl (url) {
@@ -341,7 +339,15 @@ import { color } from "echarts";
workApi.getmy_case_pkg({size:100,current:1}).then(res => {
if (!res.code) {
this.casePkOptions = res;
+
+ if(this.casePkOptions.length > 0 )
+ {
+ this.queryParamJZ.id = this.casePkOptions[0].id
+ this.queryParamCGL.id = this.casePkOptions[0].id
+ }
}
+ this.getCaseapkStatistics()
+ this.drawCharts()
})
},
// 列表数据
diff --git a/src/store/index.js b/src/store/index.js
index 4dd452f..102e659 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -24,6 +24,7 @@ const store = new Vuex.Store({
userinfo: {},
idFrontPath: '',
routes: [], // 从后端获取的路由菜单
+ brokerEndpoint: '',
},
plugins: [vuexPersisted],
// 全局同步方法, 调用方法,this.$store.commit("xxx",'赋值数据')
@@ -40,6 +41,9 @@ const store = new Vuex.Store({
setUserInfo(state, data) {
state.userinfo = data;
},
+ setBrokerEndpoint(state, data) {
+ state.brokerEndpoint = data;
+ },
},
// 异步方法 调用方法,this.$store.dispatch("xxx")
diff --git a/src/utils/stompSocket.js b/src/utils/stompSocket.js
index 59ab830..aea742c 100644
--- a/src/utils/stompSocket.js
+++ b/src/utils/stompSocket.js
@@ -33,7 +33,9 @@ const socketClass = {
// body: 'Hello world',
// headers: { priority: '9' },
// }
+ // console.log(data, '---发起消息111')
if (!client)return;
+ // console.log(data, '---发起消息222')
client.publish(data);
},
// 订阅
diff --git a/src/utils/util.js b/src/utils/util.js
index 4cad04b..b46ee65 100644
--- a/src/utils/util.js
+++ b/src/utils/util.js
@@ -440,6 +440,37 @@ const util = {
}
},
+ // 阿拉伯转中文
+ changeNumToHan(num) {
+ var arr1 = new Array('零', '一', '二', '三', '四', '五', '六', '七', '八', '九');
+ var arr2 = new Array('', '十', '百', '千', '万', '十', '百', '千', '亿', '十', '百', '千','万', '十', '百', '千','亿');//可继续追加更高位转换值
+ if(!num || isNaN(num)){
+ return "零";
+ }
+ var english = num.toString().split("")
+ var result = "";
+ for (var i = 0; i < english.length; i++) {
+ var des_i = english.length - 1 - i;//倒序排列设值
+ result = arr2[i] + result;
+ var arr1_index = english[des_i];
+ result = arr1[arr1_index] + result;
+ }
+ //将【零千、零百】换成【零】 【十零】换成【十】
+ result = result.replace(/零(千|百|十)/g, '零').replace(/十零/g, '十');
+ //合并中间多个零为一个零
+ result = result.replace(/零+/g, '零');
+ //将【零亿】换成【亿】【零万】换成【万】
+ result = result.replace(/零亿/g, '亿').replace(/零万/g, '万');
+ //将【亿万】换成【亿】
+ result = result.replace(/亿万/g, '亿');
+ //移除末尾的零
+ result = result.replace(/零+$/, '')
+ //将【零一十】换成【零十】
+ //result = result.replace(/零一十/g, '零十');//貌似正规读法是零一十
+ //将【一十】换成【十】
+ result = result.replace(/^一十/g, '十')
+ return result;
+ },
}
export default util;