|
@@ -238,9 +238,9 @@ export default {
|
|
},
|
|
},
|
|
changeDepartmentSelection(list) {
|
|
changeDepartmentSelection(list) {
|
|
const { value, label } = list[0] || {}
|
|
const { value, label } = list[0] || {}
|
|
- console.log(this.distributionList, label)
|
|
|
|
- const str = (this.distributionList || []).map(item => item.prodProcedure && item.prodProcedure.name).join(',')
|
|
|
|
- const ids = (this.distributionList || []).map(item => item.id).join(',')
|
|
|
|
|
|
+ const selectedData = this.distributionList.filter(item => item.prodProcedure && item.prodProcedure.isSelected)
|
|
|
|
+ const str = (selectedData || []).map(item => item.prodProcedure && item.prodProcedure.name).join(',')
|
|
|
|
+ const ids = (selectedData || []).map(item => item.id).join(',')
|
|
Dialog.confirm({
|
|
Dialog.confirm({
|
|
title: '改派',
|
|
title: '改派',
|
|
message: `确定将【${str}】改派给【${label}】部门吗?`,
|
|
message: `确定将【${str}】改派给【${label}】部门吗?`,
|