diff --git a/src/views/caseManage/createCase.vue b/src/views/caseManage/createCase.vue index 4369036..7d52b7a 100644 --- a/src/views/caseManage/createCase.vue +++ b/src/views/caseManage/createCase.vue @@ -72,6 +72,7 @@ @@ -185,7 +186,6 @@ } const validateType = function(rule, value, callback) { console.log(value) - debugger if (value.eorc === '' || value.caseTypeCode === '' || value.caseDetailTypeCode === '') { callback(new Error('请选择事件类型')) } else { @@ -308,15 +308,15 @@ communityCode: this.form.address.communityCode, // 社区ID gridId: this.form.address.gridId, // 网格ID fieldintro: this.form.address.fieldintro, // 事件地址 - caseLevel: this.caseLevel, // 案卷紧急程度 - isTypical: this.isTypical, // 是否典型案例 - isImportant: this.isImportant, // 是否要情 - title: this.title, // 事件标题 - description: this.description, // 事件内容 - limitedTime: this.limitedTime, // 事件办理期限 - processWay: this.processWay, // 处理方式 - processDept: this.processDept, // 处理单位 - processUser: this.processUser // 处理人 + caseLevel: this.form.caseLevel, // 案卷紧急程度 + isTypical: this.form.isTypical, // 是否典型案例 + isImportant: this.form.isImportant, // 是否要情 + title: this.form.title, // 事件标题 + description: this.form.description, // 事件内容 + limitedTime: this.form.limitedTime, // 事件办理期限 + processWay: '' + this.form.processWay, // 处理方式 + processDept: this.form.processDept, // 处理单位 + processUser: this.form.processUser // 处理人 } addCase(form).then(response => { if (response.code === 200) { diff --git a/src/views/caseManage/createCase.vue b/src/views/caseManage/createCase.vue index 4369036..7d52b7a 100644 --- a/src/views/caseManage/createCase.vue +++ b/src/views/caseManage/createCase.vue @@ -72,6 +72,7 @@ @@ -185,7 +186,6 @@ } const validateType = function(rule, value, callback) { console.log(value) - debugger if (value.eorc === '' || value.caseTypeCode === '' || value.caseDetailTypeCode === '') { callback(new Error('请选择事件类型')) } else { @@ -308,15 +308,15 @@ communityCode: this.form.address.communityCode, // 社区ID gridId: this.form.address.gridId, // 网格ID fieldintro: this.form.address.fieldintro, // 事件地址 - caseLevel: this.caseLevel, // 案卷紧急程度 - isTypical: this.isTypical, // 是否典型案例 - isImportant: this.isImportant, // 是否要情 - title: this.title, // 事件标题 - description: this.description, // 事件内容 - limitedTime: this.limitedTime, // 事件办理期限 - processWay: this.processWay, // 处理方式 - processDept: this.processDept, // 处理单位 - processUser: this.processUser // 处理人 + caseLevel: this.form.caseLevel, // 案卷紧急程度 + isTypical: this.form.isTypical, // 是否典型案例 + isImportant: this.form.isImportant, // 是否要情 + title: this.form.title, // 事件标题 + description: this.form.description, // 事件内容 + limitedTime: this.form.limitedTime, // 事件办理期限 + processWay: '' + this.form.processWay, // 处理方式 + processDept: this.form.processDept, // 处理单位 + processUser: this.form.processUser // 处理人 } addCase(form).then(response => { if (response.code === 200) { diff --git a/src/views/caseManage/waitForCreate.vue b/src/views/caseManage/waitForCreate.vue index 9553c24..65b4953 100644 --- a/src/views/caseManage/waitForCreate.vue +++ b/src/views/caseManage/waitForCreate.vue @@ -4,7 +4,7 @@ - + @@ -21,44 +21,29 @@ start-placeholder="创建开始时间" end-placeholder="创建结束时间"/> - -
- - - - - - - - - - - - -
- + + + + @@ -67,69 +52,60 @@ import AppContainer from '@/components/layout/AppContainer' import SearchArea from '@/components/SearchArea/SearchArea' import SearchItem from '@/components/SearchArea/SearchItem' +import CreateCase from '@/views/caseManage/createCase' + export default { name: 'WaitForCreate', - components: { SearchItem, SearchArea, AppContainer, NormalTable }, + components: { SearchItem, SearchArea, AppContainer, NormalTable, CreateCase }, data() { return { listQuery: { - name: '', // 姓名 - sex: '', // 性别 - nation: '', // 民族 - collReason: '', // 采集原因 - cardType: '', // 证件类型 - idCardNo: '', // 证件号码 - personTag: '', // 人员标签 + callerNumber: '', // 主叫号码 + calleeUser: '', // 受理人 + status: '', // 受理状态 startTime: '', // 创建开始时间 endTime: '', // 创建结束时间 offset: 1, limit: 20, - sort: 'createTime', + sort: 'callTime', order: 'desc' }, // 筛选条件 columns: [ { - text: '姓名', - value: 'name', + text: '录音编号', + value: 'callid', align: 'center' }, { - text: '性别', - value: 'sexName', + text: '主叫号码', + value: 'callerNumber', + align: 'center' + }, + { + text: '受理人', + value: 'calleeUserName', + align: 'center' + }, + { + text: '归属地', + value: 'isp', align: 'center', - width: 60 + width: 100 }, { - text: '民族', - value: 'nationName', - width: 50, - align: 'center' - }, - { - text: '采集原因', - value: 'collReasonName', - align: 'center' - }, - { - text: '证件类型', - value: 'cardTypeName', + text: '来电时间', + value: 'callTime', align: 'center', - width: 80 + width: 160 }, { - text: '证件号码', - value: 'idCardNo', + text: '通话时间', + value: 'bridgeStamp', align: 'center' }, { - text: '户籍地址', - value: 'residenceAddr', - align: 'center' - }, - { - text: '创建时间', - value: 'createTime', - width: 120, + text: '状态', + value: 'statusName', align: 'center' } ], // 显示列 @@ -143,40 +119,61 @@ text: '数据列表' // 标题名称 }, options: { - needIndex: false // 是否需要序号列 + needIndex: true // 是否需要序号列 }, toolsOption: { selectColumns: false, // 是否需要筛选列 refresh: false // 是否需要刷新按钮 } - } // 表格属性 + }, // 表格属性 + showAddCase: false } }, created() { - this.fetchData() + this.fetchData(false) }, methods: { - fetchData() { + fetchData(isNowPage = true) { this.listLoading = true + if (!isNowPage) { // 是否显示当前页,否则跳转第一页 + this.listQuery.offset = 1 + } const that = this setTimeout(function() { that.list = [ - { name: '张三', sexName: '男', nationName: '汉族', collReasonName: '工作人员', cardTypeName: '身份证', idCardNo: '1101264987431551155', residenceAddr: '北京市' }, - { name: '张三', sexName: '男', nationName: '汉族', collReasonName: '工作人员', cardTypeName: '身份证', idCardNo: '1101264987431551155', residenceAddr: '北京市' }, - { name: '张三', sexName: '男', nationName: '汉族', collReasonName: '工作人员', cardTypeName: '身份证', idCardNo: '1101264987431551155', residenceAddr: '北京市' }, - { name: '张三', sexName: '男', nationName: '汉族', collReasonName: '工作人员', cardTypeName: '身份证', idCardNo: '1101264987431551155', residenceAddr: '北京市' }, - { name: '张三', sexName: '男', nationName: '汉族', collReasonName: '工作人员', cardTypeName: '身份证', idCardNo: '1101264987431551155', residenceAddr: '北京市' }, - { name: '张三', sexName: '男', nationName: '汉族', collReasonName: '工作人员', cardTypeName: '身份证', idCardNo: '1101264987431551155', residenceAddr: '北京市' }, - { name: '张三', sexName: '男', nationName: '汉族', collReasonName: '工作人员', cardTypeName: '身份证', idCardNo: '1101264987431551155', residenceAddr: '北京市' }, - { name: '张三', sexName: '男', nationName: '汉族', collReasonName: '工作人员', cardTypeName: '身份证', idCardNo: '1101264987431551155', residenceAddr: '北京市' }, - { name: '张三', sexName: '男', nationName: '汉族', collReasonName: '工作人员', cardTypeName: '身份证', idCardNo: '1101264987431551155', residenceAddr: '北京市' }, - { name: '张三', sexName: '男', nationName: '汉族', collReasonName: '工作人员', cardTypeName: '身份证', idCardNo: '1101264987431551155', residenceAddr: '北京市' }, - { name: '张三', sexName: '男', nationName: '汉族', collReasonName: '工作人员', cardTypeName: '身份证', idCardNo: '1101264987431551155', residenceAddr: '北京市' } + { callid: '122fse223f2122', callerNumber: '15652360420', calleeUserName: '张三', isp: '北京联通', callTime: '2020-04-09 09:00:00', bridgeStamp: 61, statusName: '未接听' }, + { callid: '122fse223f2122', callerNumber: '15652360420', calleeUserName: '张三', isp: '北京联通', callTime: '2020-04-09 09:00:00', bridgeStamp: 61, statusName: '未接听' }, + { callid: '122fse223f2122', callerNumber: '15652360420', calleeUserName: '张三', isp: '北京联通', callTime: '2020-04-09 09:00:00', bridgeStamp: 61, statusName: '未接听' }, + { callid: '122fse223f2122', callerNumber: '15652360420', calleeUserName: '张三', isp: '北京联通', callTime: '2020-04-09 09:00:00', bridgeStamp: 61, statusName: '未接听' }, + { callid: '122fse223f2122', callerNumber: '15652360420', calleeUserName: '张三', isp: '北京联通', callTime: '2020-04-09 09:00:00', bridgeStamp: 61, statusName: '未接听' } ] that.total = 200 that.listLoading = false }, 2000) }, + // 播放录音 + openSound(row) { + this.$message('打开录音') + }, + // 创建工单 + createCase(row) { + this.showAddCase = true + const data = { + callid: row.callid, + number: row.callerNumber, + callTime: row.callTime + } + console.log(data) + const that = this + setTimeout(function() { + that.$refs['addcase'].initData(data) + }, 500) + }, + // 关闭新建案件弹窗 + closeCreateDialog() { + this.showAddCase = false // 关闭弹窗 + this.search() + }, // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 changePage(val) { if (val && val.size) {