This commit is contained in:
DESKTOP-369JRHT\12997 2024-10-25 09:07:52 +08:00
parent f035fda9e1
commit 6163dec554
6 changed files with 30 additions and 26 deletions

View File

@ -93,6 +93,7 @@ export const constantRoutes = [
meta: { title: '系统首页1', icon: 'dashboard', affix: true } meta: { title: '系统首页1', icon: 'dashboard', affix: true }
}, },
// { // {
// path: 'resource_oilstore', // path: 'resource_oilstore',
// component: () => import('@/views/index'), // component: () => import('@/views/index'),

View File

@ -107,6 +107,7 @@ export default {
}, },
// //
addOilPresePrices() { addOilPresePrices() {
this.dialogFormPricesAdd = true
this.oilPresetPrices = {} this.oilPresetPrices = {}
// this.selectOilTypeByPrice = this.oilNumberList; // this.selectOilTypeByPrice = this.oilNumberList;
// //
@ -164,9 +165,8 @@ export default {
<span>预设油价记录</span> <span>预设油价记录</span>
</div> </div>
<div> <div>
<el-button type="primary" @click = "dialogFormPricesAdd = true, <el-button type="primary" @click = "addOilPresePrices()"
addOilPresePrices()"
v-hasPermi="['oilConfig:oilPrice:index:addp']"
>新增预设油价</el-button> >新增预设油价</el-button>
</div> </div>
</div> </div>
@ -272,7 +272,7 @@ export default {
</div> </div>
</div> </div>
<el-dialog title="添加预设" :visible.sync="dialogFormPricesAdd" width="500px" :close-on-click-modal="false"> <el-dialog title="添加预设" :visible.sync="dialogFormPricesAdd" width="20%" :close-on-click-modal="false">
<el-form ref="priForm" :model="oilPresetPrices" label-width="100px" :rules="oilPresetPricesRules"> <el-form ref="priForm" :model="oilPresetPrices" label-width="100px" :rules="oilPresetPricesRules">
<el-form-item label="预设油号" prop="numberId" label-width="120px"> <el-form-item label="预设油号" prop="numberId" label-width="120px">
<el-select v-model="oilPresetPrices.numberId" placeholder="请选择油号" @change="oilTypeClickByPrice()"> <el-select v-model="oilPresetPrices.numberId" placeholder="请选择油号" @change="oilTypeClickByPrice()">

View File

@ -287,7 +287,7 @@ export default {
</div> </div>
<div> <div>
<el-button type="primary" @click="oilTypeMethods(1)" <el-button type="primary" @click="oilTypeMethods(1)"
v-hasPermi="['oilConfig:oilPrice:index:addoil']"
>新增油号</el-button> >新增油号</el-button>
</div> </div>
</div> </div>
@ -329,7 +329,7 @@ export default {
</div> </div>
<el-dialog :title="title" width="600px" :visible.sync="dialogFormNumberEdit" :close-on-click-modal="false"> <el-dialog :title="title" width="26%" :visible.sync="dialogFormNumberEdit" :close-on-click-modal="false">
<el-form ref="form" :model="oilNumber" :rules="rules" label-width="130px" > <el-form ref="form" :model="oilNumber" :rules="rules" label-width="130px" >
<el-form-item label="油品类型" prop="oilType"> <el-form-item label="油品类型" prop="oilType">
<el-radio-group v-model="oilNumber.oilType" @change="oilTypeClick(oilNumber.oilType),oilTypeClick2()"> <el-radio-group v-model="oilNumber.oilType" @change="oilTypeClick(oilNumber.oilType),oilTypeClick2()">

View File

@ -1,5 +1,7 @@
<template> <template>
<div class="app-container"> <div class="containers
">
<oilcon></oilcon> <oilcon></oilcon>
<addprice></addprice> <addprice></addprice>
@ -28,7 +30,7 @@
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.app-container{ .containers{
width: 100%; width: 100%;
height: 100%; height: 100%;
background: #f6f8f9; background: #f6f8f9;

View File

@ -48,6 +48,7 @@ export default {
} }
.f-box{ .f-box{
cursor: pointer;
height: 40px; height: 40px;
color: #999999; color: #999999;
margin-right: 50px; margin-right: 50px;

View File

@ -140,12 +140,12 @@
</div> </div>
<div class="cot-box" v-if="tabindex == 1"> <div class="cot-box" v-if="tabindex == 1">
<el-row :gutter="10" class="mb8"> <!-- <el-row :gutter="10" class="mb8">-->
<el-col :span="21"> <!-- <el-col :span="21">-->
<span style="font-size: 18px">会员等级</span> <!-- <span style="font-size: 18px">会员等级</span>-->
<span style="font-size: 14px">最多支持20个等级</span> <!-- <span style="font-size: 14px">最多支持20个等级</span>-->
</el-col> <!-- </el-col>-->
</el-row> <!-- </el-row>-->
<div> <div>
<el-form :model="queryParams1" ref="queryForm" size="small" :inline="true" label-width="120px"> <el-form :model="queryParams1" ref="queryForm" size="small" :inline="true" label-width="120px">
@ -175,7 +175,7 @@
</el-form> </el-form>
</div> </div>
<div style="height: 65vh;overflow: auto"> <div style="height: 72vh;overflow: auto">
<el-table ref="tables" v-loading="loading" :data="list" border> <el-table ref="tables" v-loading="loading" :data="list" border>
<el-table-column label="序号" align="center" type="index" width="55"/> <el-table-column label="序号" align="center" type="index" width="55"/>
<el-table-column label="会员等级名称" align="center" prop="name"> <el-table-column label="会员等级名称" align="center" prop="name">
@ -352,19 +352,19 @@
@pagination="getList2" @pagination="getList2"
/> />
</div> </div>
<div style="width: 100%;height: 15px "></div>
<!-- 添加或修改对话框 --> <!-- 添加或修改对话框 -->
<el-dialog :title="title" :visible.sync="open" :close-on-click-modal="false" width="50%" append-to-body> <el-dialog :title="title" :visible.sync="open" :close-on-click-modal="false" width="46%" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="120px"> <el-form ref="form" :model="form" :rules="rules" label-width="120px">
<el-row> <el-row>
<el-col :span="14"> <el-col :span="24">
<el-form-item label="会员等级名称" prop="name"> <el-form-item label="会员等级名称" prop="name">
<el-input v-model="form.name" placeholder="请输入会员等级名称"/> <el-input v-model="form.name" placeholder="请输入会员等级名称"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="14"> <el-col :span="24">
<el-form-item label="升降顺序" prop="grade"> <el-form-item label="升降顺序" prop="grade">
<el-input v-model="form.grade" placeholder="0" maxlength="10"/> <el-input v-model="form.grade" placeholder="0" maxlength="10"/>
<div style="font-size: 12px;color: #FF9655">默认0为最低一级顺序</div> <div style="font-size: 12px;color: #FF9655">默认0为最低一级顺序</div>
@ -372,21 +372,21 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="14"> <el-col :span="24">
<el-form-item label="开卡金额" prop="openCardAmount"> <el-form-item label="开卡金额" prop="openCardAmount">
<el-input v-model="form.openCardAmount" placeholder="0" maxlength="200"/> <el-input v-model="form.openCardAmount" placeholder="0" maxlength="200"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="14"> <el-col :span="24">
<el-form-item label="升级所需成长值" prop="growthValue"> <el-form-item label="升级所需成长值" prop="growthValue">
<el-input v-model="form.growthValue" placeholder="达到当前等级需要的成长值"/> <el-input v-model="form.growthValue" placeholder="达到当前等级需要的成长值"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="20"> <el-col :span="24">
<el-form-item label="会员降级规则" prop="relegateRuleType"> <el-form-item label="会员降级规则" prop="relegateRuleType">
<!-- <el-input v-model="form.growthValue" placeholder="达到当前等级需要的成长值"/>--> <!-- <el-input v-model="form.growthValue" placeholder="达到当前等级需要的成长值"/>-->
<div class="d-s"> <div class="d-s">
@ -506,21 +506,21 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="14"> <el-col :span="24">
<el-form-item label="等级说明" prop="gradeIllustrate"> <el-form-item label="等级说明" prop="gradeIllustrate">
<el-input v-model="form.gradeIllustrate" placeholder="请输入等级说明信息" type="textarea"/> <el-input v-model="form.gradeIllustrate" placeholder="请输入等级说明信息" type="textarea"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="14"> <el-col :span="24">
<el-form-item label="会员权益" prop="userEquity"> <el-form-item label="会员权益" prop="userEquity">
<el-input v-model="form.userEquity" placeholder="请输入会员权益信息" type="textarea"/> <el-input v-model="form.userEquity" placeholder="请输入会员权益信息" type="textarea"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="14"> <el-col :span="24">
<el-form-item label="升级送积分" prop="givePoint"> <el-form-item label="升级送积分" prop="givePoint">
<el-input v-model="form.givePoint" placeholder="0"> <el-input v-model="form.givePoint" placeholder="0">
<template slot="append">积分</template> <template slot="append">积分</template>
@ -1937,7 +1937,7 @@ export default {
box-sizing: border-box; box-sizing: border-box;
padding: 20px; padding: 20px;
margin: 0 auto; margin: 0 auto;
height: 88vh; height: 86vh;
} }
.tab-box { .tab-box {