|
|
|
@ -17,7 +17,17 @@ |
|
|
|
<!-- |
|
|
|
<el-table-column type="selection" align="center" width="40" /> |
|
|
|
--> |
|
|
|
<el-table-column prop="displayName" label="未选组合项目" /> |
|
|
|
<el-table-column prop="displayName" label="未选组合项目"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div> |
|
|
|
<el-popover placement="top-start" :title="scope.row.displayName + ':'" width="300" trigger="hover" |
|
|
|
:content="getAsbItems(scope.row.id)"> |
|
|
|
<i class="el-icon-view" slot="reference" style="font-size: 14px;color: black;" /> |
|
|
|
</el-popover> |
|
|
|
{{ scope.row.displayName }} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<!-- |
|
|
|
<el-table-column prop="price" label="标准价格" width="70"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
@ -100,9 +110,13 @@ |
|
|
|
<el-table-column label="已选组合项目" min-width="150" prop="asbitemName"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div> |
|
|
|
<el-popover placement="top-start" :title="scope.row.asbitemName + ':'" width="300" trigger="hover" |
|
|
|
:content="getAsbItems(scope.row.asbitemId)"> |
|
|
|
<i class="el-icon-view" slot="reference" style="font-size: 14px;color: black;cursor: pointer;" /> |
|
|
|
</el-popover> |
|
|
|
<el-tooltip class="item" effect="dark" content="标五角星表示属于分组或套餐的项目" placement="top"> |
|
|
|
<i v-if="scope.row.isBelongGroupPackage == 'Y'" class="el-icon-star-on" |
|
|
|
style="font-size: 14px;color: purple;"></i> |
|
|
|
style="font-size: 14px;color: purple;" /> |
|
|
|
</el-tooltip> |
|
|
|
{{ scope.row.asbitemName }} |
|
|
|
</div> |
|
|
|
@ -211,7 +225,9 @@ export default { |
|
|
|
totalFoucs: false, //总价是否获取焦点 |
|
|
|
discountFoucs: false, //总折扣是否获取焦点 |
|
|
|
|
|
|
|
asbDesc:'', //所选套餐描述 |
|
|
|
asbDesc: '', //所选套餐描述 |
|
|
|
|
|
|
|
asbItems: [], // 组合项目包含明细(全) |
|
|
|
}; |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
@ -264,6 +280,13 @@ export default { |
|
|
|
this.quickAsb = res.data |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
// 获取组合项目包含的明细 |
|
|
|
postapi('/api/app/Asbitem/GetSimpleAsbitemWithDetails') |
|
|
|
.then(res => { |
|
|
|
if (res.code > -1) this.asbItems = res.data |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// 设置颜色 |
|
|
|
@ -503,7 +526,7 @@ export default { |
|
|
|
//勾选时不需要此操作 end |
|
|
|
|
|
|
|
if (asbItemChoosed.length < 1) { |
|
|
|
this.$message.warning({ showClose: true, message: "请选择要添加的组合项目"}) |
|
|
|
this.$message.warning({ showClose: true, message: "请选择要添加的组合项目" }) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
@ -518,7 +541,7 @@ export default { |
|
|
|
if (this.prForm.sexId == 'U') break //未选性别时,无需判断组合项目性别限制 |
|
|
|
if (asbItemChoosed[i].forSexId == 'A') continue |
|
|
|
if (asbItemChoosed[i].forSexId != this.prForm.sexId) { |
|
|
|
this.$message.warning({ showClose: true, message: `所选项目:${asbItemChoosed[i].displayName},不适合当前人员性别`}) |
|
|
|
this.$message.warning({ showClose: true, message: `所选项目:${asbItemChoosed[i].displayName},不适合当前人员性别` }) |
|
|
|
checked = false |
|
|
|
break |
|
|
|
} |
|
|
|
@ -558,7 +581,7 @@ export default { |
|
|
|
let ret = false |
|
|
|
let patientRegisterId = this.prForm.id || this.prAsbOpraOpts.formId |
|
|
|
if (!patientRegisterId) { |
|
|
|
this.$message.warning({ showClose: true, message: "人员基本信息未保存"}); |
|
|
|
this.$message.warning({ showClose: true, message: "人员基本信息未保存" }); |
|
|
|
return ret |
|
|
|
} |
|
|
|
|
|
|
|
@ -674,7 +697,7 @@ export default { |
|
|
|
//勾选时不需要此操作 end |
|
|
|
|
|
|
|
if (absForDel.length < 1) { |
|
|
|
this.$message.warning({ showClose: true, message: "请选择要移除的组合项目"}) |
|
|
|
this.$message.warning({ showClose: true, message: "请选择要移除的组合项目" }) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
@ -703,7 +726,7 @@ export default { |
|
|
|
//双击删除已选项目 |
|
|
|
removeAbs(row) { |
|
|
|
if (this.isComplete) { |
|
|
|
this.$message.info({ showClose: true, message: '人员已总检,不可 添加/删除 组合项目'}) |
|
|
|
this.$message.info({ showClose: true, message: '人员已总检,不可 添加/删除 组合项目' }) |
|
|
|
return |
|
|
|
} |
|
|
|
this.delAbs([row]); |
|
|
|
@ -822,7 +845,7 @@ export default { |
|
|
|
// }else{ |
|
|
|
tempRd = { |
|
|
|
groupPackageId: newId, |
|
|
|
isBelongGroupPackage:'Y', |
|
|
|
isBelongGroupPackage: 'Y', |
|
|
|
asbitemId: e.asbitemId, |
|
|
|
asbitemName: e.displayName, |
|
|
|
patientRegisterId: this.prForm.id, |
|
|
|
@ -929,7 +952,7 @@ export default { |
|
|
|
//双击选择组合项目 |
|
|
|
dbClickChoosedAsb(row) { |
|
|
|
if (this.isComplete) { |
|
|
|
this.$message.info({ showClose: true, message: '人员已总检,不可 添加/删除 组合项目'}) |
|
|
|
this.$message.info({ showClose: true, message: '人员已总检,不可 添加/删除 组合项目' }) |
|
|
|
return |
|
|
|
} |
|
|
|
this.addAbs([row]); |
|
|
|
@ -1053,7 +1076,7 @@ export default { |
|
|
|
const sums = []; |
|
|
|
|
|
|
|
let count = this.dataTransOpts.tableM.register_check_asbitem.length |
|
|
|
let pack = this.dataTransOpts.tableM.register_check_asbitem.filter(e => { return e.isBelongGroupPackage == 'Y'}).length |
|
|
|
let pack = this.dataTransOpts.tableM.register_check_asbitem.filter(e => { return e.isBelongGroupPackage == 'Y' }).length |
|
|
|
|
|
|
|
this.asbDesc = `共选 ${count} 个项目,其中套餐/分组 ${pack} 个,加做 ${count - pack} 个` |
|
|
|
|
|
|
|
@ -1106,6 +1129,17 @@ export default { |
|
|
|
if (!this.discountFoucs) this.discount = Math.round(this.total * 10000 / this.totalStand) / 100; |
|
|
|
return sums; |
|
|
|
}, |
|
|
|
|
|
|
|
// 通过组合项目,获取包含明细 |
|
|
|
getAsbItems(asbId) { |
|
|
|
let asbItems = this.asbItems.filter(e => { return e.asbitemId == asbId }) |
|
|
|
console.log(asbId,asbItems) |
|
|
|
let ret = [] |
|
|
|
asbItems.forEach(e => { |
|
|
|
ret.push(' ' + e.itemName) |
|
|
|
}); |
|
|
|
return `${ret}` |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
//监听事件 |
|
|
|
@ -1135,7 +1169,7 @@ export default { |
|
|
|
// } |
|
|
|
// } |
|
|
|
// }, |
|
|
|
|
|
|
|
|
|
|
|
// 查询人员登记项目 |
|
|
|
"dataTransOpts.refresh.register_check_asbitem.D": { |
|
|
|
// immediate: true, // 立即执行 |
|
|
|
@ -1146,7 +1180,7 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
//更换分组 |
|
|
|
//更换分组 |
|
|
|
"prAsbOpraOpts.prAsbGroup": { |
|
|
|
// immediate: true, // 立即执行 |
|
|
|
// deep: true, // 深度监听复杂类型内变化 |
|
|
|
@ -1210,5 +1244,6 @@ export default { |
|
|
|
|
|
|
|
.disTotal { |
|
|
|
margin-left: 10px; |
|
|
|
}</style> |
|
|
|
} |
|
|
|
</style> |
|
|
|
|