|
@@ -15,12 +15,12 @@
|
|
<el-select v-model="queryParams.status" placeholder="请选择活动状态" clearable style="width: 180px">
|
|
<el-select v-model="queryParams.status" placeholder="请选择活动状态" clearable style="width: 180px">
|
|
<el-option v-for="dict in dict.type.sys_normal_disable" :key="dict.value" :label="dict.label" :value="dict.value"> </el-option>
|
|
<el-option v-for="dict in dict.type.sys_normal_disable" :key="dict.value" :label="dict.label" :value="dict.value"> </el-option>
|
|
</el-select>
|
|
</el-select>
|
|
- </el-form-item>
|
|
|
|
- <el-form-item>
|
|
|
|
- <el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
|
|
|
|
- <el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-form>
|
|
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
|
|
|
|
+ <el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-form>
|
|
</el-card>
|
|
</el-card>
|
|
|
|
|
|
<!-- 操作按钮区 -->
|
|
<!-- 操作按钮区 -->
|
|
@@ -33,9 +33,9 @@
|
|
|
|
|
|
<!-- 列表区域 -->
|
|
<!-- 列表区域 -->
|
|
<el-card shadow="never">
|
|
<el-card shadow="never">
|
|
- <Page uri="/mapi/activity/couponInfo/list" :request-params="queryParams" ref="pagination">
|
|
|
|
|
|
+ <Page uri="/mapi/activity/couponInfo/list" :request-params="queryParams" ref="pagination">
|
|
<el-table-column label="活动信息" min-width="250" align="left">
|
|
<el-table-column label="活动信息" min-width="250" align="left">
|
|
- <template slot-scope="scope">
|
|
|
|
|
|
+ <template slot-scope="scope">
|
|
<div class="activity-card">
|
|
<div class="activity-card">
|
|
<div class="activity-main">
|
|
<div class="activity-main">
|
|
<image-preview :src="scope.row.imgUrl" :width="80" :height="80" class="activity-img" />
|
|
<image-preview :src="scope.row.imgUrl" :width="80" :height="80" class="activity-img" />
|
|
@@ -47,50 +47,55 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<!-- 重要信息列 -->
|
|
<!-- 重要信息列 -->
|
|
<el-table-column label="活动价格" align="center" width="100">
|
|
<el-table-column label="活动价格" align="center" width="100">
|
|
- <template slot-scope="scope">
|
|
|
|
|
|
+ <template slot-scope="scope">
|
|
<el-tag size="medium" type="danger">¥{{ scope.row.price }}</el-tag>
|
|
<el-tag size="medium" type="danger">¥{{ scope.row.price }}</el-tag>
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column label="活动时间" align="center" min-width="150">
|
|
<el-table-column label="活动时间" align="center" min-width="150">
|
|
- <template slot-scope="scope">
|
|
|
|
- {{ parseTime(scope.row.startDate, '{y}-{m}-{d}') }} 至 {{ parseTime(scope.row.endDate, '{y}-{m}-{d}') }}
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
|
|
+ <template slot-scope="scope"> {{ parseTime(scope.row.startDate, '{y}-{m}-{d}') }} 至 {{ parseTime(scope.row.endDate, '{y}-{m}-{d}') }} </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column label="优惠券数量" align="center" width="120">
|
|
<el-table-column label="优惠券数量" align="center" width="120">
|
|
- <template slot-scope="scope">
|
|
|
|
|
|
+ <template slot-scope="scope">
|
|
<el-tag size="medium" type="primary">{{ scope.row.couponNum }}张</el-tag>
|
|
<el-tag size="medium" type="primary">{{ scope.row.couponNum }}张</el-tag>
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column label="使用范围" align="center" min-width="150">
|
|
<el-table-column label="使用范围" align="center" min-width="150">
|
|
- <template slot-scope="scope">
|
|
|
|
|
|
+ <template slot-scope="scope">
|
|
<div class="tag-group">
|
|
<div class="tag-group">
|
|
- <el-tag size="mini" effect="plain" type="primary">{{ getUserScopeLabel(scope.row.userScope) }}</el-tag>
|
|
|
|
|
|
+ <el-tag size="mini" effect="plain" type="primary">{{ getUserScopeLabel(scope.row.userScope) }}</el-tag>
|
|
<el-tag size="mini" effect="plain" type="success">{{ getStoreScopeLabel(scope.row.storeScope) }}</el-tag>
|
|
<el-tag size="mini" effect="plain" type="success">{{ getStoreScopeLabel(scope.row.storeScope) }}</el-tag>
|
|
- <el-tag size="mini" effect="plain" type="warning">限购 {{ scope.row.maxBuyNum }} 张</el-tag>
|
|
|
|
</div>
|
|
</div>
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="限购" align="center" min-width="150">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div class="tag-group">
|
|
|
|
+ <el-tag size="mini" effect="plain" type="warning" v-if="scope.row.maxBuyNum==9999"> 不限 </el-tag>
|
|
|
|
+ <el-tag size="mini" effect="plain" type="warning" v-else> {{ scope.row.maxBuyNum }} 张</el-tag>
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column label="活动状态" align="center" width="100">
|
|
<el-table-column label="活动状态" align="center" width="100">
|
|
- <template slot-scope="scope">
|
|
|
|
|
|
+ <template slot-scope="scope">
|
|
<div class="status-column">
|
|
<div class="status-column">
|
|
<el-switch v-model="scope.row.status" active-value="0" inactive-value="1" @change="handleStatusChange(scope.row)"></el-switch>
|
|
<el-switch v-model="scope.row.status" active-value="0" inactive-value="1" @change="handleStatusChange(scope.row)"></el-switch>
|
|
</div>
|
|
</div>
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column label="创建时间" align="center" prop="createTime" width="150" />
|
|
<el-table-column label="创建时间" align="center" prop="createTime" 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)" >修改</el-button>
|
|
|
|
- <el-button type="text" icon="el-icon-s-shop" @click="handleSetCouponItems(scope.row)" >设置优惠券</el-button>
|
|
|
|
- <el-button type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" >删除</el-button>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- </Page>
|
|
|
|
|
|
+ <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)">修改</el-button>
|
|
|
|
+ <el-button type="text" icon="el-icon-s-shop" @click="handleSetCouponItems(scope.row)">设置优惠券</el-button>
|
|
|
|
+ <el-button type="text" icon="el-icon-delete" @click="handleDelete(scope.row)">删除</el-button>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </Page>
|
|
</el-card>
|
|
</el-card>
|
|
|
|
|
|
<!-- 编辑弹窗 -->
|
|
<!-- 编辑弹窗 -->
|
|
@@ -102,67 +107,68 @@
|
|
<el-col :span="14">
|
|
<el-col :span="14">
|
|
<el-form-item label="活动标题" prop="title">
|
|
<el-form-item label="活动标题" prop="title">
|
|
<el-input v-model="form.title" placeholder="请输入活动标题" maxlength="200" show-word-limit />
|
|
<el-input v-model="form.title" placeholder="请输入活动标题" maxlength="200" show-word-limit />
|
|
- </el-form-item>
|
|
|
|
|
|
+ </el-form-item>
|
|
<el-form-item label="活动描述" prop="description">
|
|
<el-form-item label="活动描述" prop="description">
|
|
<el-input v-model="form.description" type="textarea" :rows="3" placeholder="请输入活动描述" maxlength="500" show-word-limit />
|
|
<el-input v-model="form.description" type="textarea" :rows="3" placeholder="请输入活动描述" maxlength="500" show-word-limit />
|
|
- </el-form-item>
|
|
|
|
|
|
+ </el-form-item>
|
|
<el-form-item label="活动时间" prop="duringDate" required>
|
|
<el-form-item label="活动时间" prop="duringDate" required>
|
|
<el-date-picker v-model="form.duringDate" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd" style="width: 100%"> </el-date-picker>
|
|
<el-date-picker v-model="form.duringDate" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd" style="width: 100%"> </el-date-picker>
|
|
- </el-form-item>
|
|
|
|
|
|
+ </el-form-item>
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-form-item label="活动价格" prop="price">
|
|
<el-form-item label="活动价格" prop="price">
|
|
<el-input-number v-model="form.price" :precision="2" :step="0.1" :min="0" controls-position="right" style="width: 100%">
|
|
<el-input-number v-model="form.price" :precision="2" :step="0.1" :min="0" controls-position="right" style="width: 100%">
|
|
<template slot="prefix">¥</template>
|
|
<template slot="prefix">¥</template>
|
|
</el-input-number>
|
|
</el-input-number>
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-form-item label="购买限制" prop="maxBuyNum">
|
|
<el-form-item label="购买限制" prop="maxBuyNum">
|
|
- <el-input-number v-model="form.maxBuyNum" :min="1" :precision="0" controls-position="right" style="width: 100%">
|
|
|
|
|
|
+ <el-checkbox v-model="form.isUnlimited" @change="handleUnlimitedChange">不限</el-checkbox>
|
|
|
|
+ <el-input-number v-if="!form.isUnlimited" v-model="form.maxBuyNum" :min="1" :max="9998" :precision="0" controls-position="right" style="width: 100%">
|
|
<template slot="suffix">张</template>
|
|
<template slot="suffix">张</template>
|
|
</el-input-number>
|
|
</el-input-number>
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
</el-row>
|
|
</el-row>
|
|
- </el-col>
|
|
|
|
|
|
+ </el-col>
|
|
<el-col :span="10">
|
|
<el-col :span="10">
|
|
<el-form-item label="宣传图片" prop="imgUrl">
|
|
<el-form-item label="宣传图片" prop="imgUrl">
|
|
<image-upload v-model="form.imgUrl" :limit="1" :is-show-tip="true" :file-size="5" accept=".jpg,.jpeg,.png" tip-text="建议尺寸:800x400px,大小不超过5MB" />
|
|
<image-upload v-model="form.imgUrl" :limit="1" :is-show-tip="true" :file-size="5" accept=".jpg,.jpeg,.png" tip-text="建议尺寸:800x400px,大小不超过5MB" />
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
</el-row>
|
|
</el-row>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
|
|
|
<el-tab-pane label="使用规则" name="rules">
|
|
<el-tab-pane label="使用规则" name="rules">
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item label="适用用户" prop="userScope">
|
|
|
|
|
|
+ <el-form-item label="适用用户" prop="userScope">
|
|
<el-radio-group v-model="form.userScope" class="radio-group-block">
|
|
<el-radio-group v-model="form.userScope" class="radio-group-block">
|
|
<el-radio-button v-for="dict in dict.type.activity_user_scope" :key="dict.value" :label="dict.value">
|
|
<el-radio-button v-for="dict in dict.type.activity_user_scope" :key="dict.value" :label="dict.value">
|
|
{{ dict.label }}
|
|
{{ dict.label }}
|
|
</el-radio-button>
|
|
</el-radio-button>
|
|
- </el-radio-group>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
|
|
+ </el-radio-group>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-form-item label="使用范围" prop="storeScope">
|
|
<el-form-item label="使用范围" prop="storeScope">
|
|
<el-radio-group v-model="form.storeScope" class="radio-group-block">
|
|
<el-radio-group v-model="form.storeScope" class="radio-group-block">
|
|
<el-radio-button v-for="dict in dict.type.coupon_use_range" :key="dict.value" :label="parseInt(dict.value)">
|
|
<el-radio-button v-for="dict in dict.type.coupon_use_range" :key="dict.value" :label="parseInt(dict.value)">
|
|
{{ dict.label }}
|
|
{{ dict.label }}
|
|
</el-radio-button>
|
|
</el-radio-button>
|
|
- </el-radio-group>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
|
|
+ </el-radio-group>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
<el-col :span="24">
|
|
<el-col :span="24">
|
|
<el-form-item label="活动状态" prop="status">
|
|
<el-form-item label="活动状态" prop="status">
|
|
<el-radio-group v-model="form.status">
|
|
<el-radio-group v-model="form.status">
|
|
<el-radio-button v-for="dict in dict.type.sys_normal_disable" :key="dict.value" :label="dict.value">
|
|
<el-radio-button v-for="dict in dict.type.sys_normal_disable" :key="dict.value" :label="dict.value">
|
|
{{ dict.label }}
|
|
{{ dict.label }}
|
|
</el-radio-button>
|
|
</el-radio-button>
|
|
- </el-radio-group>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
|
|
+ </el-radio-group>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
|
<el-form-item label="适用门店" prop="selectStoreIds" v-if="form.storeScope === 1">
|
|
<el-form-item label="适用门店" prop="selectStoreIds" v-if="form.storeScope === 1">
|
|
@@ -176,7 +182,7 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
</el-tabs>
|
|
</el-tabs>
|
|
- </el-form>
|
|
|
|
|
|
+ </el-form>
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
<el-button type="primary" @click="submitForm" :loading="loading">确 定</el-button>
|
|
<el-button type="primary" @click="submitForm" :loading="loading">确 定</el-button>
|
|
<el-button @click="cancel">取 消</el-button>
|
|
<el-button @click="cancel">取 消</el-button>
|
|
@@ -238,6 +244,7 @@ export default {
|
|
storeScope: null,
|
|
storeScope: null,
|
|
couponFrom: null,
|
|
couponFrom: null,
|
|
maxBuyNum: null,
|
|
maxBuyNum: null,
|
|
|
|
+ isUnlimited: false,
|
|
createById: null,
|
|
createById: null,
|
|
createBy: null,
|
|
createBy: null,
|
|
createTime: null,
|
|
createTime: null,
|
|
@@ -356,25 +363,26 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
// 重置表单数据
|
|
// 重置表单数据
|
|
- this.form = {
|
|
|
|
- id: null,
|
|
|
|
- duringDate: [],
|
|
|
|
- activityType: '1',
|
|
|
|
- status: '0',
|
|
|
|
- canMultiUse: 'N',
|
|
|
|
- maxUseCount: 1,
|
|
|
|
- isShowAppBuyPage: null,
|
|
|
|
- isShowWxBuyPage: null,
|
|
|
|
- isShowWxBuyPageFromQrcode: null,
|
|
|
|
- storeScope: null,
|
|
|
|
- couponFrom: null,
|
|
|
|
- maxBuyNum: null,
|
|
|
|
- createById: null,
|
|
|
|
- createBy: null,
|
|
|
|
- createTime: null,
|
|
|
|
- updateById: null,
|
|
|
|
- updateBy: null,
|
|
|
|
- updateTime: null,
|
|
|
|
|
|
+ this.form = {
|
|
|
|
+ id: null,
|
|
|
|
+ duringDate: [],
|
|
|
|
+ activityType: '1',
|
|
|
|
+ status: '0',
|
|
|
|
+ canMultiUse: 'N',
|
|
|
|
+ maxUseCount: 1,
|
|
|
|
+ isShowAppBuyPage: null,
|
|
|
|
+ isShowWxBuyPage: null,
|
|
|
|
+ isShowWxBuyPageFromQrcode: null,
|
|
|
|
+ storeScope: null,
|
|
|
|
+ couponFrom: null,
|
|
|
|
+ maxBuyNum: null,
|
|
|
|
+ isUnlimited: false,
|
|
|
|
+ createById: null,
|
|
|
|
+ createBy: null,
|
|
|
|
+ createTime: null,
|
|
|
|
+ updateById: null,
|
|
|
|
+ updateBy: null,
|
|
|
|
+ updateTime: null,
|
|
remark: null,
|
|
remark: null,
|
|
selectStoreIds: [],
|
|
selectStoreIds: [],
|
|
content: '',
|
|
content: '',
|
|
@@ -417,16 +425,16 @@ export default {
|
|
|
|
|
|
getInfo()
|
|
getInfo()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
- var duringDate = []
|
|
|
|
- response.data.duringDate = duringDate
|
|
|
|
- response.data.status = '0'
|
|
|
|
|
|
+ var duringDate = []
|
|
|
|
+ response.data.duringDate = duringDate
|
|
|
|
+ response.data.status = '0'
|
|
this.form = { ...this.form, ...response.data }
|
|
this.form = { ...this.form, ...response.data }
|
|
- this.open = true
|
|
|
|
|
|
+ this.open = true
|
|
this.title = '新增送券活动'
|
|
this.title = '新增送券活动'
|
|
})
|
|
})
|
|
.catch((error) => {
|
|
.catch((error) => {
|
|
this.$modal.msgError('获取数据失败:' + (error.message || '未知错误'))
|
|
this.$modal.msgError('获取数据失败:' + (error.message || '未知错误'))
|
|
- })
|
|
|
|
|
|
+ })
|
|
},
|
|
},
|
|
/** 修改按钮操作 */
|
|
/** 修改按钮操作 */
|
|
handleUpdate(row) {
|
|
handleUpdate(row) {
|
|
@@ -440,14 +448,16 @@ export default {
|
|
const id = row.id || this.ids
|
|
const id = row.id || this.ids
|
|
getInfo(id)
|
|
getInfo(id)
|
|
.then((response) => {
|
|
.then((response) => {
|
|
- var duringDate = []
|
|
|
|
- duringDate.push(response.data.startDate)
|
|
|
|
- duringDate.push(response.data.endDate)
|
|
|
|
- response.data.duringDate = duringDate
|
|
|
|
|
|
+ var duringDate = []
|
|
|
|
+ duringDate.push(response.data.startDate)
|
|
|
|
+ duringDate.push(response.data.endDate)
|
|
|
|
+ response.data.duringDate = duringDate
|
|
|
|
+ // 设置不限标识
|
|
|
|
+ response.data.isUnlimited = response.data.maxBuyNum === 9999
|
|
this.form = { ...this.form, ...response.data }
|
|
this.form = { ...this.form, ...response.data }
|
|
- this.open = true
|
|
|
|
- this.title = '修改送券活动'
|
|
|
|
- })
|
|
|
|
|
|
+ this.open = true
|
|
|
|
+ this.title = '修改送券活动'
|
|
|
|
+ })
|
|
.catch((error) => {
|
|
.catch((error) => {
|
|
this.$modal.msgError('获取数据失败:' + (error.message || '未知错误'))
|
|
this.$modal.msgError('获取数据失败:' + (error.message || '未知错误'))
|
|
})
|
|
})
|
|
@@ -461,13 +471,13 @@ export default {
|
|
this.loading = true
|
|
this.loading = true
|
|
this.processing = true
|
|
this.processing = true
|
|
|
|
|
|
- if (null != this.form.duringDate && this.form.duringDate.length > 0) {
|
|
|
|
- this.form['startDate'] = this.form.duringDate[0]
|
|
|
|
- this.form['endDate'] = this.form.duringDate[1]
|
|
|
|
- } else {
|
|
|
|
- delete this.form.startDate
|
|
|
|
- delete this.form.endDate
|
|
|
|
- }
|
|
|
|
|
|
+ if (null != this.form.duringDate && this.form.duringDate.length > 0) {
|
|
|
|
+ this.form['startDate'] = this.form.duringDate[0]
|
|
|
|
+ this.form['endDate'] = this.form.duringDate[1]
|
|
|
|
+ } else {
|
|
|
|
+ delete this.form.startDate
|
|
|
|
+ delete this.form.endDate
|
|
|
|
+ }
|
|
|
|
|
|
const submitRequest = this.form.id != null ? updateCouponInfo(this.form) : addCouponInfo(this.form)
|
|
const submitRequest = this.form.id != null ? updateCouponInfo(this.form) : addCouponInfo(this.form)
|
|
|
|
|
|
@@ -475,8 +485,8 @@ export default {
|
|
.then((response) => {
|
|
.then((response) => {
|
|
this.$modal.msgSuccess(this.form.id != null ? '修改成功' : '新增成功')
|
|
this.$modal.msgSuccess(this.form.id != null ? '修改成功' : '新增成功')
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
- this.open = false
|
|
|
|
- this.getList()
|
|
|
|
|
|
+ this.open = false
|
|
|
|
+ this.getList()
|
|
})
|
|
})
|
|
})
|
|
})
|
|
.catch((error) => {
|
|
.catch((error) => {
|
|
@@ -550,6 +560,13 @@ export default {
|
|
this.handleDelete(row)
|
|
this.handleDelete(row)
|
|
break
|
|
break
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ handleUnlimitedChange(val) {
|
|
|
|
+ if (val) {
|
|
|
|
+ this.form.maxBuyNum = 9999
|
|
|
|
+ } else {
|
|
|
|
+ this.form.maxBuyNum = 1
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|