9.14
This commit is contained in:
parent
d30610dff5
commit
e55d2df123
@ -2,7 +2,8 @@
|
||||
<div class="navbar">
|
||||
<div class="title-logo">
|
||||
|
||||
<hamburger id="hamburger-container" :is-active="sidebar.opened" class="hamburger-container" @toggleClick="toggleSideBar" />
|
||||
<hamburger id="hamburger-container" :is-active="sidebar.opened" class="hamburger-container"
|
||||
@toggleClick="toggleSideBar"/>
|
||||
<!-- <breadcrumb id="breadcrumb-container" class="breadcrumb-container" v-if="!topNav"/>-->
|
||||
|
||||
<top-nav id="topmenu-container" class="topmenu-container" v-if="topNav"/>
|
||||
@ -50,8 +51,8 @@
|
||||
<i class="el-icon-caret-bottom"/>
|
||||
</div>
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<el-dropdown-item @click.native="setting = true">
|
||||
<span>布局设置</span>
|
||||
<el-dropdown-item @click.native="prsswrod">
|
||||
<span>修改密码</span>
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item divided @click.native="logout">
|
||||
<span>退出登录</span>
|
||||
@ -61,6 +62,25 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 修改密码弹窗-->
|
||||
<el-dialog
|
||||
title="修改密码"
|
||||
:visible.sync="dialogVisible"
|
||||
width="30%" :before-close="handleClose">
|
||||
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="80px" class="demo-ruleForm">
|
||||
<el-form-item label="新密码" prop="password">
|
||||
<el-input v-model="ruleForm.password" show-password></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="重复密码" prop="passwords">
|
||||
<el-input show-password v-model="ruleForm.passwords"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item >
|
||||
<el-button @click="resetForm('ruleForm')">取消</el-button>
|
||||
<el-button type="primary" @click="submitForm('ruleForm')">保存</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-dialog>
|
||||
|
||||
<!-- <div class="right-menu">-->
|
||||
<!-- <template v-if="device!=='mobile'">-->
|
||||
<!-- <span v-if="day>=0 && day<11" class="right-menu-item hover-effect" style="color: #ff1f1f; margin-right: 10px">油站有效期还剩{{day}}天</span>-->
|
||||
@ -107,14 +127,49 @@ import {getCountdownApi} from "@/api/store";
|
||||
import {ljStoreInfo} from "@/api/staff/store";
|
||||
import screenfull from "screenfull";
|
||||
import {getToken} from "@/utils/auth";
|
||||
import {getAccountInfo, resetPwd} from "@/api/indexBanner";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
var validatePass = (rule, value, callback) => {
|
||||
if (value === '') {
|
||||
callback(new Error('请输入密码'));
|
||||
} else {
|
||||
if (this.ruleForm.passwords !== '') {
|
||||
this.$refs.ruleForm.validateField('passwords');
|
||||
}
|
||||
callback();
|
||||
}
|
||||
};
|
||||
var validatePass2 = (rule, value, callback) => {
|
||||
if (value === '') {
|
||||
callback(new Error('请再次输入密码'));
|
||||
} else if (value !== this.ruleForm.password) {
|
||||
callback(new Error('两次输入密码不一致!'));
|
||||
} else {
|
||||
callback();
|
||||
}
|
||||
};
|
||||
return {
|
||||
// 遮罩层
|
||||
day: -1,
|
||||
storeName: "",
|
||||
isFullscreen: false
|
||||
isFullscreen: false,
|
||||
dialogVisible:false,
|
||||
accountId:"",
|
||||
ruleForm:{},
|
||||
rules: {
|
||||
password: [
|
||||
{ required: true, message: '请输入新密码', trigger: 'blur' },
|
||||
{ min: 3, max: 15, message: '长度在 3 到 15 个字符', trigger: 'blur' },
|
||||
{ validator: validatePass, trigger: 'blur' }
|
||||
],
|
||||
passwords: [
|
||||
{ required: true, message: '请输入密码', trigger: 'blur' },
|
||||
{ min: 3, max: 15, message: '长度在 3 到 15 个字符', trigger: 'blur' },
|
||||
{ validator: validatePass2, trigger: 'blur' }
|
||||
],
|
||||
}
|
||||
}
|
||||
},
|
||||
components: {
|
||||
@ -156,6 +211,50 @@ export default {
|
||||
this.getStore()
|
||||
},
|
||||
methods: {
|
||||
handleClose(done) {
|
||||
this.$confirm('确认关闭?')
|
||||
.then(_ => {
|
||||
done();
|
||||
})
|
||||
.catch(_ => {});
|
||||
},
|
||||
prsswrod(){
|
||||
this.dialogVisible =! this.dialogVisible
|
||||
getAccountInfo().then(res=>{
|
||||
this.accountId = res.data.accountId
|
||||
})
|
||||
},
|
||||
submitForm(formName) {
|
||||
if (this.ruleForm.password !== this.ruleForm.passwords) {
|
||||
this.$message({
|
||||
type: 'info',
|
||||
message: '两次密码不一致'
|
||||
});
|
||||
return
|
||||
}
|
||||
this.$refs[formName].validate((valid) => {
|
||||
if (valid) {
|
||||
let data = {
|
||||
acctId : this.accountId,
|
||||
password: this.ruleForm.password,
|
||||
}
|
||||
resetPwd(data).then(res=>{
|
||||
console.log(res)
|
||||
if(res.code == 200){
|
||||
this.dialogVisible = false
|
||||
this.$store.dispatch('LogOut').then(() => {
|
||||
location.href = '/';
|
||||
})
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
});
|
||||
},
|
||||
resetForm(formName) {
|
||||
this.dialogVisible = false
|
||||
this.$refs[formName].resetFields();
|
||||
},
|
||||
prompt() {
|
||||
this.$message({message: '此功能暂未开放,敬请期待', type: 'warning'})
|
||||
},
|
||||
@ -189,7 +288,8 @@ export default {
|
||||
this.$store.dispatch('LogOut').then(() => {
|
||||
location.href = '/';
|
||||
})
|
||||
}).catch(() => {});
|
||||
}).catch(() => {
|
||||
});
|
||||
},
|
||||
goToCashier() {
|
||||
window.open(this.cashierUrl + '#/homeindex?id=0')
|
||||
@ -237,32 +337,38 @@ export default {
|
||||
align-items: center;
|
||||
|
||||
}
|
||||
|
||||
.d-s {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-right: 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.icon-img {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
margin-right: 5px;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.avatar-wrapper {
|
||||
img {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.j-kuang {
|
||||
box-sizing: border-box;
|
||||
padding: 2px 2px;
|
||||
@ -273,6 +379,7 @@ export default {
|
||||
border-radius: 2px 2px 2px 2px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.navbar {
|
||||
height: 60px;
|
||||
overflow: hidden;
|
||||
@ -289,6 +396,7 @@ export default {
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
position: relative;
|
||||
|
||||
.hamburger-container {
|
||||
line-height: 46px;
|
||||
height: 100%;
|
||||
@ -301,6 +409,7 @@ export default {
|
||||
background: rgba(0, 0, 0, .025)
|
||||
}
|
||||
}
|
||||
|
||||
.title-logo {
|
||||
//position: absolute;
|
||||
//top: 50%; /* 将元素垂直向上移动容器高度的50% */
|
||||
|
@ -67,7 +67,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="nr-bottom">
|
||||
<div class="left-bt">进行中1个</div>
|
||||
<div class="left-bt" @click="indexType('7')">进行中1个</div>
|
||||
|
|
||||
<div class="right-bt" @click="routerPush(4,'add')">创建活动</div>
|
||||
</div>
|
||||
@ -245,6 +245,7 @@
|
||||
active-color="#13ce66"
|
||||
inactive-color="#ff4949"
|
||||
active-value="1"
|
||||
disabled
|
||||
inactive-value="2">
|
||||
</el-switch>
|
||||
</template>
|
||||
@ -338,6 +339,7 @@
|
||||
active-color="#13ce66"
|
||||
inactive-color="#ff4949"
|
||||
active-value="1"
|
||||
disabled
|
||||
inactive-value="2">
|
||||
</el-switch>
|
||||
</template>
|
||||
@ -581,7 +583,8 @@ export default {
|
||||
path: '/EventMarketing/openCardGift/index',
|
||||
query: {
|
||||
id: id,
|
||||
activeId:activeId
|
||||
activeId:activeId,
|
||||
type:type
|
||||
}
|
||||
});
|
||||
},
|
||||
@ -745,7 +748,8 @@ export default {
|
||||
border: 1px solid #EEEEEE;
|
||||
margin-top: 15px;
|
||||
margin-right: 15px;
|
||||
width: 315px;
|
||||
width: 19%;
|
||||
margin-right: 1%;
|
||||
}
|
||||
|
||||
.nr-top {
|
||||
@ -792,7 +796,7 @@ export default {
|
||||
width: 50%;
|
||||
box-sizing: border-box;
|
||||
padding: 5px;
|
||||
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.right-bt {
|
||||
|
@ -6,18 +6,15 @@
|
||||
|
||||
<div class="top-hang">
|
||||
<div class="d-s">
|
||||
<!-- <el-select v-model="queryParams.cardAmount" clearable style="margin-right: 10px" placeholder="请选择面值">-->
|
||||
<!-- <el-option v-for="item in jglist" :key="item.cardAmount" :label="item.cardAmount" :value="item.cardAmount">-->
|
||||
<!-- </el-option>-->
|
||||
<!-- </el-select>-->
|
||||
<el-input v-model="queryParams.cardAmount" clearable style=" width: 250px; margin-right: 10px"
|
||||
<el-input v-model="queryParams.name" clearable style=" width: 250px; margin-right: 10px"
|
||||
placeholder="请输入优惠券名称"></el-input>
|
||||
<el-select v-model="queryParams.activateStatus" clearable style=" width: 250px; margin-right: 10px"
|
||||
<el-select v-model="queryParams.type" clearable style=" width: 250px; margin-right: 10px"
|
||||
placeholder="请选择优惠类型">
|
||||
<el-option v-for="item in option" :key="item.value" :label="item.label" :value="item.value">
|
||||
</el-option>
|
||||
<el-option v-for="dict in dict.type.CardCoupon_type" :key="dict.value" :label="dict.label"
|
||||
:value="dict.value"/>
|
||||
</el-select>
|
||||
<el-select v-model="queryParams.sailStatus" clearable style=" width: 250px; margin-right: 10px" placeholder="请选择状态">
|
||||
<el-select v-model="queryParams.status" clearable style=" width: 250px; margin-right: 10px"
|
||||
placeholder="请选择状态">
|
||||
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
@ -25,22 +22,10 @@
|
||||
<div class="d-s">
|
||||
<el-button type="primary" icon="el-icon-search" @click="getlist">查询</el-button>
|
||||
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
||||
<!-- <el-button type="primary" icon="el-icon-search">下载模板</el-button>-->
|
||||
<el-button type="primary" @click="addCertificate">新增优惠券</el-button>
|
||||
<!-- <el-upload-->
|
||||
|
||||
<!-- class=""-->
|
||||
<!-- v-loading="uploading"-->
|
||||
<!-- action="/fuint-application/business/marketingActivity/cardGift/exchangeImport"-->
|
||||
<!-- :headers="headers"-->
|
||||
<!-- :limit="1"-->
|
||||
<!-- :on-change="handleChange"-->
|
||||
<!-- style="margin-left: 15px"-->
|
||||
<!-- :file-list="fileList">-->
|
||||
<!-- <el-button type="primary" icon="el-icon-upload">点击上传</el-button>-->
|
||||
<!-- </el-upload>-->
|
||||
</div>
|
||||
</div>
|
||||
<div style="height: 69vh;overflow: auto">
|
||||
<el-table border :data="tableData" style="width: 100%">
|
||||
<el-table-column label="序号" type="index"></el-table-column>
|
||||
<el-table-column prop="number" label="优惠券编号"></el-table-column>
|
||||
@ -89,12 +74,8 @@
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column
|
||||
prop="remark"
|
||||
label="备注信息"
|
||||
width="280">
|
||||
</el-table-column>-->
|
||||
</el-table>
|
||||
</div>
|
||||
<pagination v-show="total > 0" :total="total" :page.sync="pageNo" :limit.sync="pageSize" @pagination="getlist"/>
|
||||
</div>
|
||||
<el-drawer title="订单记录" :visible.sync="orderShow" size="55%" :before-close="handleClose" center>
|
||||
@ -132,22 +113,22 @@
|
||||
class="demo-ruleForm">
|
||||
<div class="d-s" style="justify-content: space-between">
|
||||
<el-form-item label="优惠券编号" prop="number" style="width: 45%;">
|
||||
<el-input v-model="ruleForm.number" placeholder="请输入优惠券编号" style="width: 300px"></el-input>
|
||||
<el-input v-model="ruleForm.number" placeholder="请输入优惠券编号"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="优惠券名称" prop="name" style="width: 45%;">
|
||||
<el-input v-model="ruleForm.name" placeholder="请输入优惠券名称" style="width: 300px"></el-input>
|
||||
<el-form-item label="优惠券名称" prop="name" style="width: 50%;">
|
||||
<el-input v-model="ruleForm.name" placeholder="请输入优惠券名称"></el-input>
|
||||
</el-form-item>
|
||||
|
||||
</div>
|
||||
<div class="d-s" style="justify-content: space-between">
|
||||
<el-form-item label="投放类型" prop="putType" style="width: 45%;">
|
||||
<el-select v-model="ruleForm.putType" placeholder="请选择投放类型" style="width: 300px">
|
||||
<el-select v-model="ruleForm.putType" placeholder="请选择投放类型" style="width: 100%">
|
||||
<el-option v-for="dict in dict.type.putType_type" :key="dict.value" :label="dict.label"
|
||||
:value="dict.value"/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="优惠券类型" prop="type" style="width: 45%;">
|
||||
<el-select v-model="ruleForm.type" placeholder="请选择优惠券类型" style="width: 300px">
|
||||
<el-form-item label="优惠券类型" prop="type" style="width: 50%;">
|
||||
<el-select v-model="ruleForm.type" placeholder="请选择优惠券类型" style="width: 100%">
|
||||
<el-option v-for="dict in dict.type.CardCoupon_type" :key="dict.value" :label="dict.label"
|
||||
:value="dict.value"/>
|
||||
</el-select>
|
||||
@ -156,7 +137,8 @@
|
||||
<div class="d-s" style="justify-content: space-between">
|
||||
|
||||
|
||||
<el-form-item label="消费条件" prop="useType" style="width: 45%;">
|
||||
<el-form-item label="消费条件" prop="useType" style="width: 45%;"
|
||||
v-if="ruleForm.type=='1' || ruleForm.type=='5'">
|
||||
<div class="d-s">
|
||||
<el-select v-model="ruleForm.useType" placeholder="请选择金额">
|
||||
<el-option label="订单金额" value="1"/>
|
||||
@ -177,25 +159,86 @@
|
||||
</div>
|
||||
</el-form-item>
|
||||
|
||||
<!-- 适用油品油号 oilNumber -->
|
||||
<el-form-item label="适用油品油号" prop="oilLimit" style="width: 45%;">
|
||||
<el-form-item label="兑换内容" prop="useType" style="width: 45%;" v-if="ruleForm.type=='2'">
|
||||
<el-input placeholder="" v-model="ruleForm.exchangeContent"></el-input>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="优惠条件" prop="useType" style="width: 45%;" v-if="ruleForm.type=='3'">
|
||||
<div class="d-s">
|
||||
<el-radio-group v-model="ruleForm.oilLimit.toString()">
|
||||
<el-select v-model="ruleForm.useType" placeholder="请选择金额" style="width: 100px">
|
||||
<el-option label="订单金额" value="1"/>
|
||||
<el-option label="实收金额" value="2"/>
|
||||
<el-option label="兑换券" value="3"/>
|
||||
<el-option label="折扣券" value="4"/>
|
||||
<el-option label="油品立减券" value="5"/>
|
||||
<el-option label="单品代金券" value="6"/>
|
||||
</el-select>
|
||||
<div style="margin: 0px 5px;">范围</div>
|
||||
<el-input placeholder="" v-model="ruleForm.zkStartAmount" style="width: 60px">
|
||||
<template slot="append">元</template>
|
||||
</el-input>
|
||||
<div style="margin: 0px 5px;">~</div>
|
||||
<el-input placeholder="" v-model="ruleForm.zkEndAmount" style="width: 60px">
|
||||
<template slot="append">元</template>
|
||||
</el-input>
|
||||
<div style="width: 60px;text-align: center">优惠</div>
|
||||
<el-input placeholder="" v-model="ruleForm.zkData" style="width: 140px">
|
||||
<template slot="append">折</template>
|
||||
</el-input>
|
||||
</div>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="消费条件" prop="useType" style="width: 45%;" v-if="ruleForm.type=='4'">
|
||||
<div class="d-s">
|
||||
<el-select v-model="ruleForm.useType" placeholder="请选择金额">
|
||||
<el-option label="订单金额" value="1"/>
|
||||
<el-option label="实收金额" value="2"/>
|
||||
<el-option label="兑换券" value="3"/>
|
||||
<el-option label="折扣券" value="4"/>
|
||||
<el-option label="油品立减券" value="5"/>
|
||||
<el-option label="单品代金券" value="6"/>
|
||||
</el-select>
|
||||
<div style="margin: 0px 5px;">满</div>
|
||||
<el-input placeholder="" v-model="ruleForm.reachAmount" style="width: 140px">
|
||||
<template slot="append">元</template>
|
||||
</el-input>
|
||||
<div style="width: 60px;text-align: center">每</div>
|
||||
<el-input placeholder="" v-model="ruleForm.ljOilNum" style="width: 140px">
|
||||
<template slot="append">L</template>
|
||||
</el-input>
|
||||
<div style="width: 60px;text-align: center">减</div>
|
||||
<el-input placeholder="" v-model="ruleForm.ljOilAmount" style="width: 140px">
|
||||
<template slot="append">元</template>
|
||||
</el-input>
|
||||
</div>
|
||||
</el-form-item>
|
||||
|
||||
<!-- 适用油品油号 oilNumber -->
|
||||
<el-form-item label="适用油品油号" prop="oilLimit" style="width: 50%;">
|
||||
<div class="d-s">
|
||||
<el-radio-group v-model="ruleForm.oilLimit">
|
||||
<el-radio :label="'1'">不限</el-radio>
|
||||
<el-radio :label="'2'">自定义</el-radio>
|
||||
</el-radio-group>
|
||||
<el-select v-model="ruleForm.oilNumber" multiple placeholder="请选择" style="margin-left: 5px">
|
||||
<!-- <el-option v-for="dict in dict.type.oilNumber_type" :key="dict.value" :label="dict.label"-->
|
||||
<!-- :value="dict.value"/>-->
|
||||
<el-option v-for="(item,index) in oilNumberList" :key="index"
|
||||
:label="getOilNamess(oilNameList,item.oilName)" :value="item.oilName"></el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</div>
|
||||
|
||||
<div class="d-s" style="justify-content: space-between" v-if="ruleForm.type=='3'">
|
||||
<el-form-item label="最大优惠金额" prop="membershipLevel" style="width: 45%;">
|
||||
<el-input placeholder="" v-model="ruleForm.zkMaxAmount">
|
||||
<template slot="append">元</template>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
</div>
|
||||
|
||||
<div class="d-s" style="justify-content: space-between">
|
||||
<el-form-item label="适用会员等级" prop="membershipLevel" style="width: 30%;">
|
||||
<el-select v-model="ruleForm.membershipLevel" multiple placeholder="请选择">
|
||||
<el-form-item label="适用会员等级" prop="membershipLevel" style="width: 45%;">
|
||||
<el-select v-model="ruleForm.membershipLevel" multiple placeholder="请选择" style="width: 100%">
|
||||
|
||||
<el-option
|
||||
v-for="(item,index) in membership"
|
||||
@ -204,9 +247,9 @@
|
||||
:key="index"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="是否允许收银台送券" label-width="160px" prop="sySend" style="width: 45%;">
|
||||
<el-form-item label="是否允许收银台送券" label-width="160px" prop="sySend" style="width: 50%;">
|
||||
|
||||
<el-radio-group v-model="ruleForm.sySend.toString()">
|
||||
<el-radio-group v-model="ruleForm.sySend">
|
||||
<el-radio :label="'0'">否</el-radio>
|
||||
<el-radio :label="'1'">是</el-radio>
|
||||
|
||||
@ -219,7 +262,7 @@
|
||||
<!-- 生效日期设置 timeType 字段 -->
|
||||
<el-form-item label="生效日期设置" prop="timeType" style="width: 45%;">
|
||||
<div class="d-s">
|
||||
<el-radio-group v-model="ruleForm.timeType.toString()">
|
||||
<el-radio-group v-model="ruleForm.timeType">
|
||||
<el-radio :label="'1'">领取
|
||||
<el-input v-model="ruleForm.validityDay" placeholder=""
|
||||
style="width: 80px;margin: 0px 10px"></el-input>
|
||||
@ -231,7 +274,7 @@
|
||||
</div>
|
||||
</el-form-item>
|
||||
<!-- 生效日期 effectiveDateStart 字段 -->
|
||||
<el-form-item label="生效日期" prop="effectiveDateStart" style="width: 45%;">
|
||||
<el-form-item label="生效日期" prop="effectiveDateStart" style="width: 50%;" v-if="ruleForm.timeType=='2'">
|
||||
<el-date-picker
|
||||
v-model="ruleForm.effectiveDateStart"
|
||||
style="width: 160px"
|
||||
@ -253,14 +296,14 @@
|
||||
<div class="d-s" style="justify-content: space-between">
|
||||
<el-form-item label="是否与其他优惠同时使用" label-width="180px" prop="useWithOther" style="width: 45%;">
|
||||
|
||||
<el-radio-group v-model="ruleForm.useWithOther.toString()">
|
||||
<el-radio-group v-model="ruleForm.useWithOther">
|
||||
<el-radio :label="'0'">不可以</el-radio>
|
||||
<el-radio :label="'1'">可以</el-radio>
|
||||
|
||||
</el-radio-group>
|
||||
|
||||
</el-form-item>
|
||||
<el-form-item label="使用次数限制" prop="limitTotalDay" style="width: 45%;">
|
||||
<el-form-item label="使用次数限制" prop="limitTotalDay" style="width: 50%;">
|
||||
<div class="d-s">
|
||||
<div style="margin: 0px 5px;">每</div>
|
||||
<el-input placeholder="" v-model="ruleForm.limitTotalDay" style="width: 140px">
|
||||
@ -277,7 +320,7 @@
|
||||
</div>
|
||||
<div class="d-s" style="justify-content: space-between">
|
||||
<el-form-item label="适用时间段" style="width: 45%;">
|
||||
<el-radio-group v-model="ruleForm.availableType.toString()">
|
||||
<el-radio-group v-model="ruleForm.availableType">
|
||||
<el-radio :label="'1'" style="margin-bottom: 15px">每周
|
||||
<el-select v-model="ruleForm.availableWeek" multiple placeholder="请选择周日期">
|
||||
<el-option v-for="item in weekList" :key="item.value" :label="item.label" :value="item.value">
|
||||
@ -318,21 +361,24 @@
|
||||
</div>
|
||||
|
||||
</el-form-item>
|
||||
<el-form-item label="不适用时间段" style="width: 45%;">
|
||||
<el-radio-group v-model="ruleForm.unAvailableType.toString()">
|
||||
<el-form-item label="不适用时间段" style="width: 50%;">
|
||||
<el-radio-group v-model="ruleForm.unAvailableType">
|
||||
<div>
|
||||
<el-radio :label="'1'" style="margin-bottom: 15px">每周
|
||||
<el-select v-model="ruleForm.unAvailableWeek" multiple placeholder="请选择周日期">
|
||||
<el-option v-for="item in weekList" :key="item.value" :label="item.label" :value="item.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-radio>
|
||||
</div>
|
||||
<div>
|
||||
<el-radio :label="'2'" style="margin-bottom: 15px">每月
|
||||
<el-select v-model="ruleForm.unAvailableDay" multiple placeholder="请选择每月固定日期">
|
||||
<el-option v-for="item in monthList" :key="item.value" :label="item.label" :value="item.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-radio>
|
||||
|
||||
</div>
|
||||
</el-radio-group>
|
||||
|
||||
<div class="d-s">
|
||||
@ -365,7 +411,7 @@
|
||||
<el-form-item label="每人领券限制" prop="getNumLimit" style="width: 45%;">
|
||||
<el-input v-model="ruleForm.getNumLimit" placeholder="请输入内容"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="每日领券限制" prop="dayGetLimit" style="width: 45%;">
|
||||
<el-form-item label="每日领券限制" prop="dayGetLimit" style="width: 50%;">
|
||||
<el-input v-model="ruleForm.dayGetLimit" placeholder="请输入内容"></el-input>
|
||||
</el-form-item>
|
||||
</div>
|
||||
@ -377,7 +423,7 @@
|
||||
<el-form-item label="投放总数" prop="name" style="width: 45%;">
|
||||
<el-input v-model="ruleForm.tfTotal" placeholder="请输入内容"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="使用条件" style="width: 45%;">
|
||||
<el-form-item label="使用条件" style="width: 50%;">
|
||||
<el-input type="textarea" v-model="ruleForm.useCondition"></el-input>
|
||||
</el-form-item>
|
||||
</div>
|
||||
@ -388,7 +434,7 @@
|
||||
<el-form-item label="背景图" prop="name" style="width: 45%;">
|
||||
<imgUpload :limit="1" v-model="ruleForm.backgroundImage"></imgUpload>
|
||||
</el-form-item>
|
||||
<el-form-item label="备注" prop="name" style="width: 45%;">
|
||||
<el-form-item label="备注" prop="name" style="width: 50%;">
|
||||
<el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="ruleForm.remark">
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
@ -632,10 +678,10 @@ export default {
|
||||
options: [
|
||||
{
|
||||
value: '1',
|
||||
label: '已售'
|
||||
label: '上架'
|
||||
}, {
|
||||
value: '0',
|
||||
label: '未售'
|
||||
label: '下架'
|
||||
},],
|
||||
value: '',
|
||||
tjdata: {},
|
||||
@ -660,12 +706,12 @@ export default {
|
||||
oilNumberList: [],
|
||||
oilNameList: [],
|
||||
ruleForm: {
|
||||
oilLimit:'1',
|
||||
sySend:'0',
|
||||
timeType:'1',
|
||||
useWithOther:'0',
|
||||
availableType:'1',
|
||||
unAvailableType:'1',
|
||||
oilLimit: '',
|
||||
sySend: '',
|
||||
timeType: '',
|
||||
useWithOther: '',
|
||||
availableType: '',
|
||||
unAvailableType: '',
|
||||
name: '',
|
||||
number: '',
|
||||
status: '',
|
||||
@ -687,9 +733,7 @@ export default {
|
||||
validityDay: 30
|
||||
|
||||
},
|
||||
membership: [
|
||||
|
||||
],
|
||||
membership: [],
|
||||
rules: {
|
||||
name: [
|
||||
{required: true, message: '此为必填项', trigger: 'blur'},
|
||||
@ -772,6 +816,7 @@ export default {
|
||||
},
|
||||
|
||||
updetenCardCoupon(id) {
|
||||
this.listUserGrade()
|
||||
this.centerDialogVisible = !this.centerDialogVisible
|
||||
getCardCoupon(id).then(res => {
|
||||
this.ruleForm = res.data
|
||||
@ -821,7 +866,7 @@ export default {
|
||||
useCondition: "",
|
||||
validityDay: 30
|
||||
|
||||
},
|
||||
}
|
||||
this.centerDialogVisible = !this.centerDialogVisible
|
||||
// 新增优惠券
|
||||
this.listUserGrade()
|
||||
@ -937,8 +982,6 @@ export default {
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
},
|
||||
|
||||
updateTableData(deletedRow) {
|
||||
@ -1024,8 +1067,6 @@ export default {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if (!this.ruleForm.id) {
|
||||
|
||||
addCardCoupon(this.ruleForm).then(res => {
|
||||
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<div class="card-change">
|
||||
<div class="card-change" style="height: 85vh">
|
||||
<div style="margin-bottom: 20px">
|
||||
<div style="margin-bottom: 20px">
|
||||
加油数量保留两位小数,后面余数部分规则
|
||||
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-card >
|
||||
<div class="card-change">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px">
|
||||
<el-form-item label="" prop="name">
|
||||
<el-input
|
||||
@ -20,6 +20,7 @@
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<div style="height: 69vh;overflow:auto;">
|
||||
<el-table :data="tableData" style="width: 100%" border>
|
||||
<el-table-column align="center" type="index" label="序号"></el-table-column>
|
||||
<el-table-column align="center" prop="deviceName" label="设备名称"></el-table-column>
|
||||
@ -33,23 +34,6 @@
|
||||
</el-table-column>
|
||||
<el-table-column align="center" prop="machineCode" label="设备终端号"></el-table-column>
|
||||
<el-table-column align="center" prop="msign" label="设备密钥"></el-table-column>
|
||||
|
||||
<!-- <el-table-column align="center" prop="userId" label="用户id"></el-table-column>-->
|
||||
<!-- <el-table-column prop="appKey" label="应用id(APP_KEY)"></el-table-column>-->
|
||||
<!-- <el-table-column prop="appSecret" label="应用密钥(APP_SECRET)"></el-table-column>-->
|
||||
<!-- <el-table-column prop="appPublicKey" label="应用公钥(key)"></el-table-column>-->
|
||||
<!-- <el-table-column prop="platformPublicKey" label="平台公钥(publicKey)"></el-table-column>-->
|
||||
<!-- <el-table-column prop="accessToken" label="token"></el-table-column>-->
|
||||
<!-- <el-table-column prop="isAcquiesce" label="isAcquiesce">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <el-switch-->
|
||||
<!-- v-model="scope.row.isAcquiesce"-->
|
||||
<!-- @change="submitDeviceInfo(scope.row)"-->
|
||||
<!-- active-color="#13ce66"-->
|
||||
<!-- inactive-color="#ff4949">-->
|
||||
<!-- </el-switch>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<el-table-column label="操作" align="center" width="200" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
@ -57,16 +41,19 @@
|
||||
type="text"
|
||||
icon="el-icon-view"
|
||||
@click="edit(scope.row)"
|
||||
>编辑</el-button>
|
||||
>编辑
|
||||
</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="del(scope.row)"
|
||||
>删除</el-button>
|
||||
>删除
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
@ -75,7 +62,7 @@
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
</el-card>
|
||||
</div>
|
||||
|
||||
<el-dialog :title="title" :close-on-click-modal="false" :visible.sync="open" width="30%" append-to-body>
|
||||
<el-form ref="form" :model="deviceInfo" label-width="80px">
|
||||
@ -344,7 +331,6 @@ export default {
|
||||
});
|
||||
|
||||
|
||||
|
||||
},
|
||||
clean() {
|
||||
this.staffIds = []
|
||||
|
@ -228,7 +228,7 @@ export default {
|
||||
}
|
||||
this.$store.dispatch("codeLogin", data).then(() => {
|
||||
// this.$router.push({ path: this.redirect || "/" }).catch(()=>{});
|
||||
this.$router.push({ path:"/homeindex" || "/" }).catch(()=>{});
|
||||
this.$router.push({ path:"/newHome" || "/" }).catch(()=>{});
|
||||
}).catch(() => {
|
||||
this.loading = false;
|
||||
|
||||
@ -284,11 +284,11 @@ export default {
|
||||
Cookies.remove("password");
|
||||
Cookies.remove('rememberMe');
|
||||
}
|
||||
console.log('/homeindex')
|
||||
console.log('/newHome')
|
||||
app.$store.dispatch("Login", this.loginForm).then(() => {
|
||||
// app.$router.push({ path: "/homeindex" }).catch(()=>{});
|
||||
// app.$router.push({ path: "/newHome" }).catch(()=>{});
|
||||
this.$router.push({
|
||||
path:"/homeindex",
|
||||
path:"/newHome",
|
||||
query:{
|
||||
id:0
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user