diff --git a/src/components/SelectUser.vue b/src/components/SelectUser.vue index 34ef6a5..a5b7511 100644 --- a/src/components/SelectUser.vue +++ b/src/components/SelectUser.vue @@ -177,6 +177,13 @@ export default { this.getUserListByIds(val) } } + }, + type(value) { + if (value === 'checkbox') { + this.checkedArr = [] + } else { + this.checkedArr = '' + } } }, data () { diff --git a/src/views/workCenter/standardProcurementProcess/StandardProcurementProcess.vue b/src/views/workCenter/standardProcurementProcess/StandardProcurementProcess.vue index dc23fd3..f589796 100644 --- a/src/views/workCenter/standardProcurementProcess/StandardProcurementProcess.vue +++ b/src/views/workCenter/standardProcurementProcess/StandardProcurementProcess.vue @@ -125,7 +125,10 @@ - + @@ -176,7 +179,8 @@ export default { handleText: [{ required: false, message: this.$t('pleaseEnter') + this.$t('remark'), trigger: 'onBlur' }] }, currentNode: null, - isTransfer: true // 是否转办 + isTransfer: true, // 是否转办 + carbonCopyPerson: null } }, computed: { @@ -240,11 +244,17 @@ export default { taskId: this.$route.query.taskId, userId: value } - const func = this.isTransfer ? transferProcurementProcess : carbonCopyProcurementProcess + let func + if (this.isTransfer) { + func = transferProcurementProcess + } else { + func = carbonCopyProcurementProcess + this.carbonCopyPerson = value + } this.loading = true func(params).then(res => { this.$message(res.message) - if (res.success) { + if (res.success && this.isTransfer) { this.goBack() } }).finally(() => { @@ -340,7 +350,7 @@ export default { next({ path: '/noMobile' }) } next() - }, + } }