This commit is contained in:
@QQNZX 2024-03-14 19:55:35 +08:00
parent b1d49e4ece
commit bcac38e6ac
5 changed files with 39 additions and 24 deletions

View File

@ -11,7 +11,7 @@ VUE_APP_BASE_API = '/dev-api'
VUE_APP_PUBLIC_PATH = '/'
# 后端接口地址
VUE_APP_SERVER_URL = 'http://192.168.0.196:8081/'
VUE_APP_SERVER_URL = 'http://192.168.31.55:8081/'

View File

@ -167,8 +167,11 @@
<el-dialog :title="title" :visible.sync="open" width="45%" append-to-body>
<el-form ref="form" :model="form" :rules="rules" :label-position="labelPosition" label-width="110px">
<el-form-item label="活动名称" prop="name">
<el-input v-model="form.name" placeholder="请输入活动名称" />
<el-form-item label="活动名称" prop="name" >
<div style="width: 217px">
<el-input v-model="form.name" placeholder="请输入活动名称" />
</div>
</el-form-item>
<el-form-item label="满足金额" prop="moneyType">

View File

@ -158,14 +158,11 @@
<!-- 添加或修改兑换券对话框 -->
<el-dialog :title="title" :visible.sync="open" width="40%" append-to-body>
<el-form ref="form" :model="form" :rules="rules" :label-position="labelPosition" label-width="140px">
<!-- <el-form-item label="所属连锁店id" prop="chainStorId">-->
<!-- <el-input v-model="form.chainStorId" placeholder="请输入所属连锁店id" />-->
<!-- </el-form-item>-->
<!-- <el-form-item label="所属店铺id" prop="storeId">-->
<!-- <el-input v-model="form.storeId" placeholder="请输入所属店铺id" />-->
<!-- </el-form-item>-->
<el-form-item label="兑换券名称" prop="name">
<el-input v-model="form.name" placeholder="请输入兑换券名称"/>
<div style="width: 217px">
<el-input v-model="form.name" placeholder="请输入兑换券名称"/>
</div>
</el-form-item>
<el-form-item label="兑换券类型" prop="type">
<el-radio-group v-model="form.type">
@ -187,18 +184,27 @@
</el-select>
</el-form-item>
<el-form-item label="商品数量" prop="productCount" v-if="form.type==0">
<el-input placeholder="请输入商品数量" oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')"
v-model="form.productCount" :min="0" :max="stock" @input="goodsStock">
<template slot="append"></template>
</el-input>
<div style="width: 217px">
<el-input placeholder="请输入商品数量" oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')"
v-model="form.productCount" :min="0" :max="stock" @input="goodsStock">
<template slot="append"></template>
</el-input>
</div>
</el-form-item>
<el-form-item label="卡券有效期" prop="validity">
<el-input type="number" placeholder="请输入卡券有效期" v-model="form.validity">
<template slot="append"></template>
</el-input>
<div style="width: 217px">
<el-input type="number" placeholder="请输入卡券有效期" v-model="form.validity">
<template slot="append"></template>
</el-input>
</div>
</el-form-item>
<el-form-item label="使用说明" prop="useInstructions">
<el-input type="textarea" v-model="form.useInstructions" placeholder="请输入使用说明"></el-input>
<div style="width: 217px">
<el-input type="textarea" v-model="form.useInstructions" placeholder="请输入使用说明"></el-input>
</div>
</el-form-item>
<!-- <el-form-item label="参与次数" prop="count">
<el-input-number v-model="form.count" controls-position="right" :min="1" :max="999"></el-input-number>
@ -426,7 +432,7 @@ export default {
this.reset()
this.open = true
this.form.status = '0'
this.title = '添加兑换券'
this.title = '添加电子兑换券'
},
/** 修改按钮操作 */
handleUpdate(row) {

View File

@ -194,6 +194,7 @@
<template slot="append"></template>
</el-input>
</div>
<!-- <div class="_k">-->
<!-- <el-form-item label="满" prop="satisfiedAmount" v-if="form.discountType == 0">-->
<!-- <el-input v-model="form.satisfiedAmount" placeholder="请输入满足金额" >-->
@ -209,6 +210,7 @@
<!-- </el-form-item>-->
<!-- </div>-->
</div>
<div style="color: red" v-if="form.discountAmount>form.satisfiedAmount" >检测到优惠金额大于满足金额请确定是否要继续执行</div>
<div style="display: flex;align-items: center;margin-bottom: 25px" v-if="form.discountType == 1">
<div style="color: red">*</div>
<div style="margin: 0px 10px;font-weight: bold"></div>
@ -219,7 +221,7 @@
</div>
<div style="margin: 0px 10px;font-weight: bold"></div>
<div>
<el-input-number v-model="form.specialDiscount" :min="0" :max="9.9" placeholder="1 ~ 9.9"/>
<el-input-number v-model="form.specialDiscount" :min="1" :max="9.9" placeholder="1 ~ 9.9"/>
</div>
<div style="margin: 0px 10px;font-weight: bold"></div>
</div>
@ -272,11 +274,12 @@
</el-radio-group>
</el-form-item>
<el-form-item label="互斥功能" prop="exclusiveFunction">
<el-radio-group v-model="form.exclusiveFunction">
<el-form-item label="互斥功能" prop="exclusiveFunction" style="margin-left: 10px">
<el-radio-group v-model="form.exclusiveFunction" @input="radioCile">
<el-radio label="0">满减活动</el-radio>
<el-radio label="1">储值卡付款</el-radio>
<el-radio label="2">会员等级</el-radio>
<el-radio label=""></el-radio>
</el-radio-group>
</el-form-item>
@ -482,6 +485,7 @@ export default {
pageSize: 10,
total:0
},
radioShow:[],
//
form: {},
vipname:[],
@ -549,6 +553,8 @@ export default {
this.getoilName()
},
methods: {
getoilName(){
getoilName().then(res=>{
console.log(res)
@ -679,7 +685,7 @@ export default {
})
this.open = true;
this.form.status = '0'
this.title = "添加优惠券";
this.title = "添加电子优惠券";
},
/** 修改按钮操作 */
handleUpdate(row) {

View File

@ -11,6 +11,6 @@ VUE_APP_BASE_API = '/dev-api'
VUE_APP_PUBLIC_PATH = '/'
# 后端接口地址
VUE_APP_SERVER_URL = 'http://192.168.0.178:8008/'
VUE_APP_SERVER_URL = 'http://192.168.31.55:8081/'