|
|
|
@ -69,10 +69,28 @@ |
|
|
|
width="110" |
|
|
|
prop="displayName" |
|
|
|
></el-table-column> |
|
|
|
|
|
|
|
<el-table-column label="标准价格" prop="price"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input |
|
|
|
disabled |
|
|
|
type="text" |
|
|
|
v-model="personnelUnit.nogroupselected[scope.$index].price" |
|
|
|
/> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="折扣" prop="price"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input |
|
|
|
@change="discount(scope.$index)" |
|
|
|
type="text" |
|
|
|
v-model="personnelUnit.nogroupselected[scope.$index].discount" |
|
|
|
/> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="价格" prop="price"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input |
|
|
|
@input="changingprices(scope.row.price)" |
|
|
|
type="text" |
|
|
|
v-model="personnelUnit.nogroupselected[scope.$index].price" |
|
|
|
/> |
|
|
|
@ -163,6 +181,7 @@ export default { |
|
|
|
copegroupdata: [], //复制分组 |
|
|
|
addrulst: [], //添加保存的Id |
|
|
|
price: "", //价格 |
|
|
|
title: 1, |
|
|
|
}; |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
@ -173,6 +192,17 @@ export default { |
|
|
|
this.getportfolioitems(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
changingprices(price) { |
|
|
|
this.price = price; |
|
|
|
}, |
|
|
|
discount(index) { |
|
|
|
console.log(index); //100标准价格 |
|
|
|
this.personnelUnit.nogroupselected[index].price = Math.round( |
|
|
|
(100 * Number(this.personnelUnit.nogroupselected[index].queueTime)) / |
|
|
|
100, |
|
|
|
2 |
|
|
|
); |
|
|
|
}, |
|
|
|
inputchang(row, newVal) { |
|
|
|
this.price = row.price; |
|
|
|
console.log(this.price); |
|
|
|
@ -191,6 +221,21 @@ export default { |
|
|
|
} |
|
|
|
); |
|
|
|
} |
|
|
|
// if (this.title == 2) { |
|
|
|
// if (!this.personnelUnit.customerOrgGroupId) { |
|
|
|
// alert("请先选择单位分组"); |
|
|
|
// return; |
|
|
|
// } else { |
|
|
|
// console.log(this.personnelUnit.nogroupselected); |
|
|
|
// postapi( |
|
|
|
// "/api/app/customer-org-group-detail/many", |
|
|
|
// this.addrulst |
|
|
|
// ).then((res) => { |
|
|
|
// this.$message.success("操作成功"); |
|
|
|
// console.log(this.addrulst); |
|
|
|
// }); |
|
|
|
// } |
|
|
|
// } |
|
|
|
|
|
|
|
// console.log(this.addrulst); |
|
|
|
// // console.log(this.personnelUnit.form.id); |
|
|
|
@ -217,14 +262,12 @@ export default { |
|
|
|
if (this.rightselctedata.length == 0) { |
|
|
|
this.$message.warning("已选数据为空无法移动"); |
|
|
|
} else { |
|
|
|
// this.title = 2; |
|
|
|
let count = this.rightselctedata.length - 1; |
|
|
|
for (var i = count; i >= 0; 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]); |
|
|
|
} |
|
|
|
console.log(this.personnelUnit.customerOrgGroupId); |
|
|
|
|
|
|
|
@ -232,7 +275,7 @@ export default { |
|
|
|
this.rightselctedata.forEach((item) => { |
|
|
|
this.addrulst.push({ |
|
|
|
asbitemId: item.id, |
|
|
|
price: price, |
|
|
|
price: item.price, |
|
|
|
// price: this.price, |
|
|
|
customerOrgGroupId: this.personnelUnit.customerOrgGroupId, |
|
|
|
}); |
|
|
|
@ -261,7 +304,7 @@ export default { |
|
|
|
if ([...new Set(this.unselecteddata)]) { |
|
|
|
// this.unselecteddata.push(this.unselecteddata[i]); |
|
|
|
this.personnelUnit.nogroupselected.push(this.unselecteddata[i]); |
|
|
|
this.tabledata.splice(i, 1); |
|
|
|
this.tabledata.splice(this.tabledata[i], 1); |
|
|
|
} |
|
|
|
// this.personnelUnit.nogroupselected.push(this.unselecteddata[i]); |
|
|
|
} |
|
|
|
@ -280,11 +323,11 @@ export default { |
|
|
|
// prices = items.price; |
|
|
|
|
|
|
|
// this.price = item.price; |
|
|
|
console.log(items, "items"); |
|
|
|
// console.log(items, "items"); |
|
|
|
this.addrulst.push({ |
|
|
|
asbitemId:items.id, // "3a0b2f0c-f884-bec4-a350-79b46b455a2d" |
|
|
|
// price: prices, |
|
|
|
asbitemId: items.id, // "3a0b2f0c-f884-bec4-a350-79b46b455a2d" |
|
|
|
price: items.price, |
|
|
|
// price: this.price == "" ? items.price : this.price, |
|
|
|
customerOrgGroupId: this.personnelUnit.customerOrgGroupId, |
|
|
|
}); |
|
|
|
}); |
|
|
|
@ -347,19 +390,22 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//获取当前列列表数据 |
|
|
|
listeninglist() { |
|
|
|
listeninglist(customerOrgGroupId) { |
|
|
|
getapi(`/api/app/customer-org-group/${customerOrgGroupId}`).then( |
|
|
|
(res) => { |
|
|
|
this.personnelUnit.form = res.data; |
|
|
|
console.log(res); |
|
|
|
} |
|
|
|
); |
|
|
|
getapi( |
|
|
|
`/api/app/customer-org-group/${this.personnelUnit.customerOrgGroupId}` |
|
|
|
`/api/app/customer-org-group-detail/customer-org-group-detail-in-asbitem/${customerOrgGroupId}` |
|
|
|
).then((res) => { |
|
|
|
this.personnelUnit.form = res.data; |
|
|
|
console.log(res); |
|
|
|
console.log( |
|
|
|
`/api/app/customer-org-group-detail/customer-org-group-detail-in-asbitem/${customerOrgGroupId}`, |
|
|
|
res |
|
|
|
); |
|
|
|
this.personnelUnit.nogroupselected = res.data; |
|
|
|
}); |
|
|
|
// getapi( |
|
|
|
// `/api/app/customer-org-group-detail/customer-org-group-detail-in-asbitem/${this.personnelUnit.form.id}` |
|
|
|
// ).then((res) => { |
|
|
|
// console.log(res, "res"); |
|
|
|
// this.personnelUnit.nogroupselected = res.data; |
|
|
|
// }); |
|
|
|
}, |
|
|
|
// getapi(`/api/app/customer-org-group/${row.id}`).then((res) |
|
|
|
}, |
|
|
|
@ -367,10 +413,14 @@ export default { |
|
|
|
watch: { |
|
|
|
// |
|
|
|
"personnelUnit.customerOrgGroupId"(newVal, oldVal) { |
|
|
|
//console.log('patientRegister.addTimes newVal:',newVal,' oldVal:',oldVal) |
|
|
|
console.log( |
|
|
|
"watch patientRegister.addTimes newVal:", |
|
|
|
newVal, |
|
|
|
" oldVal:", |
|
|
|
oldVal |
|
|
|
); |
|
|
|
if (newVal != oldVal) { |
|
|
|
console.log("newVal", newVal); |
|
|
|
this.listeninglist(); |
|
|
|
this.listeninglist(newVal); |
|
|
|
// |
|
|
|
} |
|
|
|
}, |
|
|
|
@ -382,10 +432,11 @@ export default { |
|
|
|
margin-left: 5%; |
|
|
|
} |
|
|
|
.mainarearightbox { |
|
|
|
width: 30%; |
|
|
|
width: 35%; |
|
|
|
border: 1px solid #000; |
|
|
|
height: 300px; |
|
|
|
margin-left: 7%; |
|
|
|
overflow: auto; |
|
|
|
} |
|
|
|
.mainbutton { |
|
|
|
margin-left: 5%; |
|
|
|
@ -401,7 +452,8 @@ export default { |
|
|
|
border: 1px solid #000; |
|
|
|
height: 300px; |
|
|
|
overflow: hidden; |
|
|
|
|
|
|
|
overflow: auto; |
|
|
|
|
|
|
|
margin-left: 7%; |
|
|
|
} |
|
|
|
.examinationcategory { |
|
|
|
|