优化结算选择优惠券
This commit is contained in:
@@ -123,14 +123,14 @@
|
||||
:total="Number(buyerTable.total)" v-model:current-page="buyerTable.page" @current-change="getBuyerList" />
|
||||
</el-dialog>
|
||||
<el-dialog v-model="showCoupon"
|
||||
:title="`添加优惠(¥${formatDecimal(goodsStore.cartInfo.costSummary.goodsRealAmount || 0)})`" top="5vh" width="80%"
|
||||
:title="`添加优惠(商品原价:¥${formatDecimal(goodsStore.cartInfo.costSummary.goodsRealAmount || 0)})`" top="5vh" width="80%"
|
||||
@open="couponDialogOpen">
|
||||
<div class="coupom_dialog">
|
||||
<el-form ref="couponFormRef" :model="couponForm" label-width="100" label-position="left">
|
||||
<el-form-item label="选择会员">
|
||||
<el-form-item label="选择用户">
|
||||
<div class="flex">
|
||||
<div class="select_wrap">
|
||||
<el-select placeholder="请选择会员" readonly v-model="couponFormUser.userId"
|
||||
<el-select placeholder="请选择用户" readonly v-model="couponFormUser.userId"
|
||||
@click="SelectVipUserRef.show()" style="width: 100%;">
|
||||
<el-option :label="item.nickName" :value="item.id" v-for="item in couponFormUserList"
|
||||
:key="item.id"></el-option>
|
||||
@@ -148,8 +148,12 @@
|
||||
<el-form-item label="优惠券">
|
||||
<div style="width: 100%;">
|
||||
<el-button type="primary"
|
||||
:disabled="!couponFormUser.id && (!couponResList1.length && !couponResList2.length)"
|
||||
@click="showCounponModalHandle">选择优惠券</el-button>
|
||||
v-if="(goodsStore.cartInfo.costSummary
|
||||
.fullReduction !== undefined && goodsStore.cartInfo.costSummary.fullReduction.actualAmount > 0)"
|
||||
disabled>参与满减活动不可用优惠券</el-button>
|
||||
<el-button type="primary"
|
||||
:disabled="(!couponFormUser.id && (!couponResList1.length && !couponResList2.length))"
|
||||
@click="showCounponModalHandle" v-else>选择优惠券</el-button>
|
||||
<div style="padding-top: 20px;">
|
||||
<el-table :data="couponResList1" border stripe>
|
||||
<el-table-column label="名称" prop="name"></el-table-column>
|
||||
@@ -231,7 +235,7 @@
|
||||
</div>
|
||||
</el-dialog>
|
||||
<!-- 选择会员 -->
|
||||
<SelectVipUser ref="SelectVipUserRef" :amount="0.01" @success="selectUserHandle" />
|
||||
<SelectVipUser ref="SelectVipUserRef" @success="selectUserHandle" />
|
||||
<!-- 选择优惠券 -->
|
||||
<CouponModal ref="CouponModalRef" :orderList="props.orderList" @success="CouponModalSuccess" />
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user