|
|
@ -72,10 +72,10 @@ |
|
|
|
|
|
|
|
|
<el-table-column label="价格" prop="price"> |
|
|
<el-table-column label="价格" prop="price"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<input |
|
|
|
|
|
|
|
|
<el-input |
|
|
type="text" |
|
|
type="text" |
|
|
v-model="scope.row.price" |
|
|
v-model="scope.row.price" |
|
|
@blur="inputchang(scope.row)" |
|
|
|
|
|
|
|
|
@change="inputchang(scope.row, $event.target.value)" |
|
|
/> |
|
|
/> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
@ -174,9 +174,11 @@ export default { |
|
|
this.getportfolioitems(); |
|
|
this.getportfolioitems(); |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
inputchang(v) { |
|
|
|
|
|
this.price = v.price; |
|
|
|
|
|
console.log(this.price); |
|
|
|
|
|
|
|
|
inputchang(row, newVal) { |
|
|
|
|
|
console.log(row); |
|
|
|
|
|
console.log(newVal); |
|
|
|
|
|
// this.price = v.price; |
|
|
|
|
|
// console.log(this.price); |
|
|
}, |
|
|
}, |
|
|
//保存按钮 |
|
|
//保存按钮 |
|
|
Onsubmit() { |
|
|
Onsubmit() { |
|
|
@ -218,20 +220,22 @@ export default { |
|
|
let count = this.rightselctedata.length - 1; |
|
|
let count = this.rightselctedata.length - 1; |
|
|
for (var i = count; i >= 0; i--) { |
|
|
for (var i = count; i >= 0; i--) { |
|
|
// this.personnelUnit.nogroupselected.splice(i, 1); |
|
|
// this.personnelUnit.nogroupselected.splice(i, 1); |
|
|
if ( |
|
|
|
|
|
// !this.rightselctedata.includes(this.rightselctedata[i].displayName) |
|
|
|
|
|
[...new Set(this.rightselctedata)] |
|
|
|
|
|
) { |
|
|
|
|
|
this.tabledata.push(this.rightselctedata[i]); |
|
|
|
|
|
this.personnelUnit.nogroupselected.splice(i, 1); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// !this.rightselctedata.includes(this.rightselctedata[i].displayName) |
|
|
|
|
|
[...new Set(this.rightselctedata)]; |
|
|
|
|
|
|
|
|
|
|
|
this.tabledata.push(this.rightselctedata[i]); |
|
|
|
|
|
this.personnelUnit.nogroupselected.splice(i, 1); |
|
|
|
|
|
|
|
|
// this.tabledata.push(this.rightselctedata[i]); |
|
|
// this.tabledata.push(this.rightselctedata[i]); |
|
|
} |
|
|
} |
|
|
// this. |
|
|
// this. |
|
|
this.rightselctedata.forEach((item) => { |
|
|
this.rightselctedata.forEach((item) => { |
|
|
|
|
|
console.log(this.personnelUnit.customerOrgGroupId); |
|
|
this.addrulst.push({ |
|
|
this.addrulst.push({ |
|
|
asbitemId: item.id, |
|
|
asbitemId: item.id, |
|
|
price: item.price, |
|
|
price: item.price, |
|
|
|
|
|
// price: this.price, |
|
|
customerOrgGroupId: this.personnelUnit.customerOrgGroupId, |
|
|
customerOrgGroupId: this.personnelUnit.customerOrgGroupId, |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
@ -254,21 +258,21 @@ export default { |
|
|
} else { |
|
|
} else { |
|
|
this.saveornot = false; |
|
|
this.saveornot = false; |
|
|
let count = this.unselecteddata.length - 1; |
|
|
let count = this.unselecteddata.length - 1; |
|
|
|
|
|
let uniqueSet = [...new Set(this.unselecteddata, ...this.tabledata)]; |
|
|
|
|
|
const filteredArray = []; |
|
|
for (var i = count; i >= 0; i--) { |
|
|
for (var i = count; i >= 0; i--) { |
|
|
// this.tabledata.splice(i, 1); |
|
|
// this.tabledata.splice(i, 1); |
|
|
|
|
|
this.unselecteddata.push(this.unselecteddata[i]); |
|
|
|
|
|
this.tabledata.splice(i, 1); |
|
|
// this.personnelUnit.nogroupselected.push(this.unselecteddata[i]); |
|
|
// this.personnelUnit.nogroupselected.push(this.unselecteddata[i]); |
|
|
if ([...new Set(this.unselecteddata)]) { |
|
|
|
|
|
this.tabledata.splice(i, 1); |
|
|
|
|
|
this.personnelUnit.nogroupselected.push(this.unselecteddata[i]); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
console.log(this.price); |
|
|
|
|
|
|
|
|
console.log(this.personnelUnit.customerOrgGroupId); |
|
|
this.unselecteddata.forEach((item) => { |
|
|
this.unselecteddata.forEach((item) => { |
|
|
this.price=item.price |
|
|
|
|
|
|
|
|
this.price = item.price; |
|
|
this.addrulst.push({ |
|
|
this.addrulst.push({ |
|
|
asbitemId: item.id, |
|
|
asbitemId: item.id, |
|
|
price: item.price, |
|
|
price: item.price, |
|
|
// price: this.price, |
|
|
|
|
|
|
|
|
// price: this.psrice, |
|
|
customerOrgGroupId: this.personnelUnit.customerOrgGroupId, |
|
|
customerOrgGroupId: this.personnelUnit.customerOrgGroupId, |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
@ -348,7 +352,7 @@ export default { |
|
|
getapi( |
|
|
getapi( |
|
|
`/api/app/customer-org-group-detail/customer-org-group-detail-in-asbitem?CustomerOrgGroupId=${this.personnelUnit.form.id}` |
|
|
`/api/app/customer-org-group-detail/customer-org-group-detail-in-asbitem?CustomerOrgGroupId=${this.personnelUnit.form.id}` |
|
|
).then((res) => { |
|
|
).then((res) => { |
|
|
console.log(res); |
|
|
|
|
|
|
|
|
console.log(res, "res"); |
|
|
this.personnelUnit.nogroupselected = res.data; |
|
|
this.personnelUnit.nogroupselected = res.data; |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|