|
|
@ -17,7 +17,17 @@ |
|
|
<!-- |
|
|
<!-- |
|
|
<el-table-column type="selection" align="center" width="40" /> |
|
|
<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"> |
|
|
<el-table-column prop="price" label="标准价格" width="70"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
@ -100,9 +110,13 @@ |
|
|
<el-table-column label="已选组合项目" min-width="150" prop="asbitemName"> |
|
|
<el-table-column label="已选组合项目" min-width="150" prop="asbitemName"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<div> |
|
|
<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"> |
|
|
<el-tooltip class="item" effect="dark" content="标五角星表示属于分组或套餐的项目" placement="top"> |
|
|
<i v-if="scope.row.isBelongGroupPackage == 'Y'" class="el-icon-star-on" |
|
|
<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> |
|
|
</el-tooltip> |
|
|
{{ scope.row.asbitemName }} |
|
|
{{ scope.row.asbitemName }} |
|
|
</div> |
|
|
</div> |
|
|
@ -212,6 +226,8 @@ export default { |
|
|
discountFoucs: false, //总折扣是否获取焦点 |
|
|
discountFoucs: false, //总折扣是否获取焦点 |
|
|
|
|
|
|
|
|
asbDesc: '', //所选套餐描述 |
|
|
asbDesc: '', //所选套餐描述 |
|
|
|
|
|
|
|
|
|
|
|
asbItems: [], // 组合项目包含明细(全) |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
|
@ -264,6 +280,13 @@ export default { |
|
|
this.quickAsb = res.data |
|
|
this.quickAsb = res.data |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// 获取组合项目包含的明细 |
|
|
|
|
|
postapi('/api/app/Asbitem/GetSimpleAsbitemWithDetails') |
|
|
|
|
|
.then(res => { |
|
|
|
|
|
if (res.code > -1) this.asbItems = res.data |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 设置颜色 |
|
|
// 设置颜色 |
|
|
@ -1106,6 +1129,17 @@ export default { |
|
|
if (!this.discountFoucs) this.discount = Math.round(this.total * 10000 / this.totalStand) / 100; |
|
|
if (!this.discountFoucs) this.discount = Math.round(this.total * 10000 / this.totalStand) / 100; |
|
|
return sums; |
|
|
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}` |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//监听事件 |
|
|
//监听事件 |
|
|
@ -1210,5 +1244,6 @@ export default { |
|
|
|
|
|
|
|
|
.disTotal { |
|
|
.disTotal { |
|
|
margin-left: 10px; |
|
|
margin-left: 10px; |
|
|
}</style> |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
</style> |
|
|
|
|
|
|