秒杀金额显示问题

master
lemon橪 2021-10-22 15:11:18 +08:00
parent b9aa720bea
commit 16d1576c10
1 changed files with 4 additions and 3 deletions

View File

@ -22,17 +22,18 @@
<Table :loading="loading" border :columns="goodsColumns" v-if="tabIndex == tabCurrent" :data="tab.list" :ref="'table' + tabIndex" <Table :loading="loading" border :columns="goodsColumns" v-if="tabIndex == tabCurrent" :data="tab.list" :ref="'table' + tabIndex"
@on-selection-change="changeSelect"> @on-selection-change="changeSelect">
<template slot-scope="{ row }" slot="originalPrice"> <template slot-scope="{ row }" slot="originalPrice">
<div>{{ row.originalPrice | unitPrice("¥") }}</div> <div>{{ row.originalPrice | unitPrice("¥") }}</div>
</template> </template>
<template slot-scope="{ row, index }" slot="quantity"> <template slot-scope="{ row, index }" slot="quantity">
<Input v-model="row.quantity" :disabled="row.promotionApplyStatus == 'PASS'" @input=" <InputNumber :min="0" v-model="row.quantity" :disabled="row.promotionApplyStatus == 'PASS'" @input="
goodsList[tabIndex].list[index].quantity = row.quantity goodsList[tabIndex].list[index].quantity = row.quantity
" /> " />
</template> </template>
<template slot-scope="{ row, index }" slot="price"> <template slot-scope="{ row, index }" slot="price">
<Input v-model="row.price" :disabled="row.promotionApplyStatus == 'PASS'" <InputNumber :min="0" style="width:100%;" v-model="row.price" :disabled="row.promotionApplyStatus == 'PASS'"
@input="goodsList[tabIndex].list[index].price = row.price" /> @input="goodsList[tabIndex].list[index].price = row.price" />
</template> </template>
@ -133,7 +134,7 @@ export default {
}, },
{ {
title: "商品价格", title: "商品价格",
slot: "price", slot: "originalPrice",
minWidth: 50, minWidth: 50,
}, },
{ {