|
@@ -99,7 +99,7 @@
|
|
<el-table-column label="商品绑定的代金券">
|
|
<el-table-column label="商品绑定的代金券">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-select v-model="scope.row.voucherId" placeholder="请选择商品绑定的代金券">
|
|
<el-select v-model="scope.row.voucherId" placeholder="请选择商品绑定的代金券">
|
|
- <el-option v-for="item in voucherList" :key="item.id" :label="item.voucherName" :value="item.id">
|
|
|
|
|
|
+ <el-option v-for="item in voucherList" :key="item.id" :label="`${item.voucherName}(${item.id})`" :value="item.id">
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</template>
|
|
</template>
|
|
@@ -240,7 +240,7 @@
|
|
v-model="scope.row.presenterVoucher" :controls="false" :max="scope.row.price" :min="0"
|
|
v-model="scope.row.presenterVoucher" :controls="false" :max="scope.row.price" :min="0"
|
|
:precision="6"
|
|
:precision="6"
|
|
:step="1" style="width: auto;"
|
|
:step="1" style="width: auto;"
|
|
- /> -->
|
|
|
|
|
|
+ /> -->
|
|
<el-input-number
|
|
<el-input-number
|
|
v-model="scope.row.presenterVoucher" :controls="false" :min="0"
|
|
v-model="scope.row.presenterVoucher" :controls="false" :min="0"
|
|
:precision="6"
|
|
:precision="6"
|
|
@@ -263,14 +263,14 @@
|
|
<el-dropdown size="mini" split-button type="primary" @command="(e) => $emit('syncVoucherId', e)">
|
|
<el-dropdown size="mini" split-button type="primary" @command="(e) => $emit('syncVoucherId', e)">
|
|
统一选择
|
|
统一选择
|
|
<el-dropdown-menu slot="dropdown">
|
|
<el-dropdown-menu slot="dropdown">
|
|
- <el-dropdown-item v-for="item in voucherList" :key="item.id" :command="item.id">{{ item.voucherName }}</el-dropdown-item>
|
|
|
|
|
|
+ <el-dropdown-item v-for="item in voucherList" :key="item.id" :command="item.id">{{ `${item.voucherName}(${item.id})` }}</el-dropdown-item>
|
|
</el-dropdown-menu>
|
|
</el-dropdown-menu>
|
|
</el-dropdown>
|
|
</el-dropdown>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-select v-model="scope.row.voucherId" placeholder="请选择商品绑定的代金券">
|
|
<el-select v-model="scope.row.voucherId" placeholder="请选择商品绑定的代金券">
|
|
- <el-option v-for="item in voucherList" :key="item.id" :label="item.voucherName" :value="item.id">
|
|
|
|
|
|
+ <el-option v-for="item in voucherList" :key="item.id" :label="`${item.voucherName}(${item.id})`" :value="item.id">
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</template>
|
|
</template>
|