diff --git a/src/api/userReply/userReply.js b/src/api/userReply/userReply.js new file mode 100644 index 0000000..846335f --- /dev/null +++ b/src/api/userReply/userReply.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 获取常用语查询列表 +export function getUserReplyList(params) { + return request({ + url: '/userReply/list', + method: 'get', + params + }) +} +// 用户常用语分页列表 +export function getListPage(params) { + return request({ + url: '/userReply/listPage', + method: 'get', + params + }) +} +export function add(params) { + return request({ + url: '/userReply/add', + method: 'post', + params + }) +} +export function update(params) { + return request({ + url: '/userReply/update', + method: 'post', + params + }) +} +// 用户常用语删除接口 +export function del(params) { + console.log(params) + return request({ + url: '/userReply/delete', + method: 'post', + params: { + userReplyId: params + } + }) +} + diff --git a/src/api/userReply/userReply.js b/src/api/userReply/userReply.js new file mode 100644 index 0000000..846335f --- /dev/null +++ b/src/api/userReply/userReply.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 获取常用语查询列表 +export function getUserReplyList(params) { + return request({ + url: '/userReply/list', + method: 'get', + params + }) +} +// 用户常用语分页列表 +export function getListPage(params) { + return request({ + url: '/userReply/listPage', + method: 'get', + params + }) +} +export function add(params) { + return request({ + url: '/userReply/add', + method: 'post', + params + }) +} +export function update(params) { + return request({ + url: '/userReply/update', + method: 'post', + params + }) +} +// 用户常用语删除接口 +export function del(params) { + console.log(params) + return request({ + url: '/userReply/delete', + method: 'post', + params: { + userReplyId: params + } + }) +} + diff --git a/src/components/CaseCommon/caseDetail.vue b/src/components/CaseCommon/caseDetail.vue index cf0d03d..3456b30 100644 --- a/src/components/CaseCommon/caseDetail.vue +++ b/src/components/CaseCommon/caseDetail.vue @@ -320,12 +320,16 @@ - + + + @@ -364,6 +368,7 @@ import 'element-ui/lib/theme-chalk/index.css' import { getCaseDetail, getUserList, getDeptList, getCaseTypeList, getCaseTypeDetailList, getCaseTypeTimes } from '@/api/coorBusiness/case' import { getCommonLanguage, getFilingTypeList, getCaseLevelList, getEorc } from '@/api/coorBusiness/dict' +import { getUserReplyList } from '@/api/userReply/userReply' import { historicalRecords, nextNodes, completeCaseTask } from '@/api/coorBusiness/process' import LeafletMapRead from '@/components/Map/leafletMapRead' import { radioMap } from './radioMap' @@ -517,8 +522,15 @@ } // 查询常用语列表 - const languageRes = await getCommonLanguage() - this.commonLanguageList = languageRes.data + const languageRes = await getUserReplyList() + + if (languageRes.data) { + const options = languageRes.data.filter(option => option.type === '2') + if (options.length > 0) { + this.commonLanguageList.push({ label: '个人常用语', options: options }) + } + this.commonLanguageList.push({ label: '固定常用语', options: languageRes.data.filter(option => option.type === '1') }) + } // 查询流转记录接口 this.processForm.processId = this.caseDetail.processId @@ -771,6 +783,13 @@ this.$set(this.processCompObj, 'minutes', '') break } + case 'selectDeptBack': { + this.processCompShow = 'selectDept' + const deptRes = await getDeptList() + this.$set(this.processCompObj, 'deptList', deptRes.data) + this.$set(this.processCompObj, 'dispatchDeptId', this.caseDetail.onedeptid) + break + } default: this.processCompShow = '' break @@ -875,7 +894,7 @@ this.processForm.taskUserId = this.processCompObj.taskUserId } // 4. dispatchDeptId - if (radioConfig.showComp === 'selectDept' || radioConfig.showComp === 'selectCaseTime') { + if (radioConfig.showComp === 'selectDept' || radioConfig.showComp === 'selectDeptBack' || radioConfig.showComp === 'selectCaseTime') { if (!this.processCompObj.dispatchDeptId) { this.$message.error('请选择部门') return false @@ -887,7 +906,9 @@ } this.processForm.dispatchDeptId = this.processCompObj.dispatchDeptId } else if (radioConfig.passBack === 'onedeptid') { - this.processForm.dispatchDeptId = this.caseDetail.onedeptid + if (this.caseDetail.onedeptid) { + this.processForm.dispatchDeptId = this.caseDetail.onedeptid + } } // 5. hours,minutes if (radioConfig.showComp === 'selectCaseTime' || radioConfig.showComp === 'inputDelayTime') { diff --git a/src/api/userReply/userReply.js b/src/api/userReply/userReply.js new file mode 100644 index 0000000..846335f --- /dev/null +++ b/src/api/userReply/userReply.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 获取常用语查询列表 +export function getUserReplyList(params) { + return request({ + url: '/userReply/list', + method: 'get', + params + }) +} +// 用户常用语分页列表 +export function getListPage(params) { + return request({ + url: '/userReply/listPage', + method: 'get', + params + }) +} +export function add(params) { + return request({ + url: '/userReply/add', + method: 'post', + params + }) +} +export function update(params) { + return request({ + url: '/userReply/update', + method: 'post', + params + }) +} +// 用户常用语删除接口 +export function del(params) { + console.log(params) + return request({ + url: '/userReply/delete', + method: 'post', + params: { + userReplyId: params + } + }) +} + diff --git a/src/components/CaseCommon/caseDetail.vue b/src/components/CaseCommon/caseDetail.vue index cf0d03d..3456b30 100644 --- a/src/components/CaseCommon/caseDetail.vue +++ b/src/components/CaseCommon/caseDetail.vue @@ -320,12 +320,16 @@ - + + + @@ -364,6 +368,7 @@ import 'element-ui/lib/theme-chalk/index.css' import { getCaseDetail, getUserList, getDeptList, getCaseTypeList, getCaseTypeDetailList, getCaseTypeTimes } from '@/api/coorBusiness/case' import { getCommonLanguage, getFilingTypeList, getCaseLevelList, getEorc } from '@/api/coorBusiness/dict' +import { getUserReplyList } from '@/api/userReply/userReply' import { historicalRecords, nextNodes, completeCaseTask } from '@/api/coorBusiness/process' import LeafletMapRead from '@/components/Map/leafletMapRead' import { radioMap } from './radioMap' @@ -517,8 +522,15 @@ } // 查询常用语列表 - const languageRes = await getCommonLanguage() - this.commonLanguageList = languageRes.data + const languageRes = await getUserReplyList() + + if (languageRes.data) { + const options = languageRes.data.filter(option => option.type === '2') + if (options.length > 0) { + this.commonLanguageList.push({ label: '个人常用语', options: options }) + } + this.commonLanguageList.push({ label: '固定常用语', options: languageRes.data.filter(option => option.type === '1') }) + } // 查询流转记录接口 this.processForm.processId = this.caseDetail.processId @@ -771,6 +783,13 @@ this.$set(this.processCompObj, 'minutes', '') break } + case 'selectDeptBack': { + this.processCompShow = 'selectDept' + const deptRes = await getDeptList() + this.$set(this.processCompObj, 'deptList', deptRes.data) + this.$set(this.processCompObj, 'dispatchDeptId', this.caseDetail.onedeptid) + break + } default: this.processCompShow = '' break @@ -875,7 +894,7 @@ this.processForm.taskUserId = this.processCompObj.taskUserId } // 4. dispatchDeptId - if (radioConfig.showComp === 'selectDept' || radioConfig.showComp === 'selectCaseTime') { + if (radioConfig.showComp === 'selectDept' || radioConfig.showComp === 'selectDeptBack' || radioConfig.showComp === 'selectCaseTime') { if (!this.processCompObj.dispatchDeptId) { this.$message.error('请选择部门') return false @@ -887,7 +906,9 @@ } this.processForm.dispatchDeptId = this.processCompObj.dispatchDeptId } else if (radioConfig.passBack === 'onedeptid') { - this.processForm.dispatchDeptId = this.caseDetail.onedeptid + if (this.caseDetail.onedeptid) { + this.processForm.dispatchDeptId = this.caseDetail.onedeptid + } } // 5. hours,minutes if (radioConfig.showComp === 'selectCaseTime' || radioConfig.showComp === 'inputDelayTime') { diff --git a/src/components/CaseCommon/caseList.vue b/src/components/CaseCommon/caseList.vue index 6706961..4f65020 100644 --- a/src/components/CaseCommon/caseList.vue +++ b/src/components/CaseCommon/caseList.vue @@ -4,6 +4,21 @@ 导出