fix 80704

This commit is contained in:
赵霄
2024-01-12 11:22:30 +08:00
parent a9df131c29
commit aa32948654
2 changed files with 22 additions and 5 deletions
+7
View File
@@ -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>