|
@@ -32,8 +32,8 @@
|
|
|
|
|
|
<Page uri="/mapi/coupon/type/list" :request-params="queryParams" ref="pagination">
|
|
|
<el-table-column label="编号" align="center" prop="id" width="80" />
|
|
|
- <el-table-column label="名称" align="center" prop="title" width="120" />
|
|
|
- <el-table-column label="图片" align="center" prop="imgUrl" width="100">
|
|
|
+ <el-table-column label="名称" align="center" prop="title" />
|
|
|
+ <el-table-column label="图片" align="center" prop="imgUrl" width="80">
|
|
|
<template slot-scope="scope">
|
|
|
<image-preview :src="scope.row.imgUrl" :width="60" :height="60" />
|
|
|
</template>
|
|
@@ -43,17 +43,17 @@
|
|
|
<dict-tag :options="dict.type.coupon_type" :value="scope.row.discountWay" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="面额(元)" align="center" prop="deductAmount" width="150" />
|
|
|
- <el-table-column label="有效期" align="center" prop="startDate" width="210">
|
|
|
- <template slot-scope="scope"> {{ scope.row.startDate }} ~ {{ scope.row.endDate }} </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="三方品牌" align="center" prop="couponTypeThirdPartyId" width="140">
|
|
|
+ <el-table-column label="券值" align="center" prop="deductAmount" width="150">
|
|
|
<template slot-scope="scope">
|
|
|
- <div v-for="third in thirdPartyList" :key="third.id">
|
|
|
- <span v-if="scope.row.couponTypeThirdPartyId == third.id">{{ third.name }}</span>
|
|
|
- </div>
|
|
|
+ <span v-if="scope.row.discountWay == 0">满{{ scope.row.minAmount }}元减{{ scope.row.deductAmount }}元</span>
|
|
|
+ <span v-if="scope.row.discountWay == 1">满{{ scope.row.minAmount }}件减{{ scope.row.deductAmount }}件</span>
|
|
|
+ <span v-if="scope.row.discountWay == 2">{{ scope.row.discountRate }}折</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column label="有效期" align="center" prop="startDate" width="210">
|
|
|
+ <template slot-scope="scope"> {{ scope.row.startDate }} ~ {{ scope.row.endDate }} </template>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
<!-- <el-table-column label="是否单件抵扣券" align="center" prop="isUnique" width="150">
|
|
|
<template slot-scope="scope">
|
|
|
<div v-if="scope.row.discountWay != '2'">
|
|
@@ -67,15 +67,28 @@
|
|
|
<dict-tag :options="dict.type.coupon_send_way" :value="scope.row.sendWay" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="状态" align="center" prop="status">
|
|
|
+ <el-table-column label="适用范围" align="center" prop="useScope" width="180">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="scope.row.useScope == 1">全部衣服</span>
|
|
|
+ <span v-if="scope.row.useScope == 2">指定衣服</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="三方品牌" align="center" prop="couponTypeThirdPartyId" width="120">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div v-for="third in thirdPartyList" :key="third.id">
|
|
|
+ <span v-if="scope.row.couponTypeThirdPartyId == third.id">{{ third.name }}</span>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="状态" align="center" prop="status" width="120">
|
|
|
<template slot-scope="scope">
|
|
|
<el-switch v-model="scope.row.status" active-value="0" inactive-value="1" @change="handleStatusChange(scope.row)"></el-switch>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="150">
|
|
|
+ <el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" v-hasPermi="['coupon:type:edit']">修改</el-button>
|
|
|
- <el-button type="text" icon="el-icon-s-shop" @click="handleSetClothItems(scope.row)" v-hasPermi="['coupon:type:list']">可使用衣物</el-button>
|
|
|
+ <el-button type="text" icon="el-icon-s-shop" @click="handleSetClothItems(scope.row)" v-if="scope.row.useScope == 2" v-hasPermi="['coupon:type:list']">指定衣物</el-button>
|
|
|
<el-button type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" v-hasPermi="['coupon:type:remove']">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -128,7 +141,7 @@
|
|
|
<el-input-number v-model="form.minAmount" placeholder="请输入最小件数" :min="form.deductAmount" :max="999999" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="可减件数" prop="deductAmount" label-width="100px">
|
|
|
- <el-input-number v-model="form.deductAmount" placeholder="请输入抵用金额" :min="0" :max="form.minAmount" />
|
|
|
+ <el-input-number v-model="form.deductAmount" placeholder="请输入可减件数" :min="0" :max="form.minAmount" />
|
|
|
</el-form-item>
|
|
|
</template>
|
|
|
<template v-if="form.discountWay == 2">
|
|
@@ -141,8 +154,6 @@
|
|
|
</template>
|
|
|
</el-col>
|
|
|
|
|
|
-
|
|
|
-
|
|
|
<!-- <el-col :span="24">-->
|
|
|
<!-- <el-col :span="12">-->
|
|
|
<!-- <el-form-item label="是否可抵用充值" label-width="150px" prop="canDeductRecharge">-->
|
|
@@ -170,7 +181,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
- <el-form-item label="发放方式" prop="sendWay">
|
|
|
+ <el-form-item label="发放方式" prop="sendWay">
|
|
|
<el-radio-group v-model="form.sendWay">
|
|
|
<el-radio v-for="dict in dict.type.coupon_send_way" :key="dict.value" :label="dict.value">{{ dict.label }}</el-radio>
|
|
|
</el-radio-group>
|
|
@@ -179,10 +190,10 @@
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="适用衣服范围" prop="useScope">
|
|
|
<el-radio-group v-model="form.useScope">
|
|
|
- <el-radio key="1" label="1">全部衣服</el-radio>
|
|
|
- <el-radio key="2" label="2">指定衣服</el-radio>
|
|
|
+ <el-radio key="1" label="1">全部衣服</el-radio>
|
|
|
+ <el-radio key="2" label="2">指定衣服</el-radio>
|
|
|
</el-radio-group>
|
|
|
- <span style="color: #aaa; display: block;">若指定衣服,请在操作里面添加衣服</span>
|
|
|
+ <span style="color: #aaa; display: block">若指定衣服,请在操作里面添加衣服</span>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<!-- <el-col :span="24">-->
|