@@ -68,7 +68,12 @@
-
+
+
+ {{scope.row.index.caseNo}}
+ 正在调解中...
+
+
@@ -471,7 +476,8 @@ export default {
},
// 获取详情
async getCaseInfoById() {
- await api.getCaseInfoById(this.$route.query.caseId).then(res => {
+ // this.$loading(true)
+ await api.getCaseInfoById(this.caseId).then(res => {
if (!res.code) {
this.baseInfo = res
this.phoneNumber = res.debtorEntityList.find(item => item.role == 'DEBTOR').phone
@@ -479,14 +485,14 @@ export default {
if(res.jointDebt == 1){
// 有共债 mainCaseId
this.caseId = res.mainCaseId.toString()
- } else
- {
+ } else {
this.caseId = res.id.toString()
}
}
+ // this.$loading.close()
this.eventDialog.caseId = this.caseId
- this.getmediate_record()
+ // this.getmediate_record()
})
},
// 获取上一件案件
@@ -494,23 +500,34 @@ export default {
if (!this.$clickThrottle()) {
return
}//防止重复点击
- api.getFrontCaseById({id: this.caseId}).then(res => {
- if (!res.code) {
- // let caseChangeData = res
- this.detailData(res)
- }
- })
+ if(this.queue || this.index === 0) return
+ this.index--
+ this.caseId = String(this.queueList[this.index].caseId)
+ this.getCaseInfoById()
+ // api.getFrontCaseById({id: this.caseId}).then(res => {
+ // if (!res.code) {
+ // // let caseChangeData = res
+ // this.detailData(res)
+ // }
+ // })
},
// 获取下一件案件
getNextCaseById() {
if (!this.$clickThrottle()) {
return
}//防止重复点击
- api.getNextCaseById({id: this.caseId}).then(res => {
- if (!res.code) {
- this.detailData(res)
- }
- })
+ if(this.queue || this.index >= this.queueList.length - 1) return
+ this.index++
+ this.caseId = String(this.queueList[this.index].caseId)
+ console.log('下一个案件id: ' + this.caseId, this.index, this.queueList)
+
+ this.getCaseInfoById()
+
+ // api.getNextCaseById({id: this.caseId}).then(res => {
+ // if (!res.code) {
+ // this.detailData(res)
+ // }
+ // })
},
handleBack() {
// this.$route.query.sourcePage == 'mediationManagement'
@@ -562,18 +579,18 @@ export default {
this.todayCountData = res
} catch (err) {}
},
+ // 获取案件列表
callingCaseList() {
api.callingCaseList({}).then(res => {
this.queueList = res.queue || []
})
},
- // 当前呼叫队列
+ // 当前自动呼叫队列
callingQueue() {
api.callingQueue({}).then(res => {
this.queueList = res.queue || []
this.caseId = String(res.queue[0].caseId) || ''
this.getCaseInfoById()
- this.getmediate_record()
})
},
startCall () {
@@ -622,7 +639,8 @@ export default {
try {
let res = await api.callingSuccess({caseId: this.caseId,contactId: this.contactId})
console.log('呼叫成功请求接口==callingSuccess:', res)
- this.getmediate_record()
+ // this.getmediate_record()
+ this.$refs.layoutContent.getmediate_record();
this.$refs.layoutContent.openRecordDialog(res.data);
} catch (err) { }
},
@@ -660,7 +678,6 @@ export default {
if (that.index <= that.queueList.length - 1) {
that.caseId = String(that.queueList[that.index].caseId) || ''
that.getCaseInfoById()
- that.getmediate_record()
that.startOutboundCall()
}
}, 5000)
diff --git a/src/pages/mediation-page/components/SidebarTool.vue b/src/pages/mediation-page/components/SidebarTool.vue
index 345c712..e7255cc 100644
--- a/src/pages/mediation-page/components/SidebarTool.vue
+++ b/src/pages/mediation-page/components/SidebarTool.vue
@@ -313,6 +313,15 @@ export default {
},
},
+ watch: {
+ caseId: {
+ handler(val) {
+ this.getmediate_record()
+ },
+ immediate: true,
+ deep: true
+ },
+ },
data(){
return{
fileDialog:null,