|
@@ -246,7 +246,7 @@
|
|
|
>
|
|
|
<div class="goods-info">
|
|
|
<div class="name">{{ goodsInfo.name }}</div>
|
|
|
- <div class="price">¥{{ goodsInfo.price }}</div>
|
|
|
+ <div class="price">¥{{ skuPrice }}</div>
|
|
|
<div class="num">
|
|
|
<el-input-number class="input" v-model="goodsNum" :min="1" :max="1000" />
|
|
|
</div>
|
|
@@ -400,6 +400,19 @@ export default {
|
|
|
bindStaffDialog,
|
|
|
LangTab,
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ skuPrice() {
|
|
|
+ const app = this
|
|
|
+ const specIds = app.goodsSpecIds.join('-')
|
|
|
+ let price = app.goodsInfo.price
|
|
|
+ app.goodsInfo.skuList.forEach(function (skuInfo) {
|
|
|
+ if (skuInfo.specIds == specIds) {
|
|
|
+ price = skuInfo.price
|
|
|
+ }
|
|
|
+ })
|
|
|
+ return price
|
|
|
+ },
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
// 系统名称
|