fix 80704
This commit is contained in:
@@ -177,6 +177,13 @@ export default {
|
||||
this.getUserListByIds(val)
|
||||
}
|
||||
}
|
||||
},
|
||||
type(value) {
|
||||
if (value === 'checkbox') {
|
||||
this.checkedArr = []
|
||||
} else {
|
||||
this.checkedArr = ''
|
||||
}
|
||||
}
|
||||
},
|
||||
data () {
|
||||
|
||||
@@ -125,7 +125,10 @@
|
||||
</template>
|
||||
</template>
|
||||
|
||||
<select-user ref="selectUser" @selected-change="continueTurnTo" :type="isTransfer ? 'radio' : 'checkbox'"/>
|
||||
<select-user ref="selectUser"
|
||||
@selected-change="continueTurnTo"
|
||||
:type="isTransfer ? 'radio' : 'checkbox'"
|
||||
:selected-data="isTransfer ? null : carbonCopyPerson" />
|
||||
</process-common-layout>
|
||||
</template>
|
||||
|
||||
@@ -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()
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user