diff --git a/src/components/CaseCommon/caseDetail.vue b/src/components/CaseCommon/caseDetail.vue index cf0d03d..1f0a735 100644 --- a/src/components/CaseCommon/caseDetail.vue +++ b/src/components/CaseCommon/caseDetail.vue @@ -771,6 +771,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 +882,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 +894,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/caseDetail.vue b/src/components/CaseCommon/caseDetail.vue index cf0d03d..1f0a735 100644 --- a/src/components/CaseCommon/caseDetail.vue +++ b/src/components/CaseCommon/caseDetail.vue @@ -771,6 +771,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 +882,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 +894,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/radioMap.js b/src/components/CaseCommon/radioMap.js index 3421570..99dcd02 100644 --- a/src/components/CaseCommon/radioMap.js +++ b/src/components/CaseCommon/radioMap.js @@ -7,6 +7,7 @@ * -selectDept:选择部门 [dispatchDeptId] * -inputDelayTime: 延期时间(时、分)[hours,minutes] * -selectFilingType: 选择归档类型 [filingType] + * -selectDeptBack: 默认设为onedeptid,若为空,需重新选择[dispatchDeptId] * passBack:回传参数,从caseDetail中获取,返回给处理接口 * -isNeedRevisit: 是否需要回访 [isNeedRevisit] * -onedeptid: 部门 [dispatchDeptId] @@ -187,7 +188,7 @@ passBack: 'isNeedRevisit' }, 'CXBL': { // 重新办理 - showComp: null, + showComp: 'selectDeptBack', passBack: null }, 'CXPQ': { // 重新派遣