Merge branch 'main' of http://122.51.230.86:3000/dianliang/oil-station
This commit is contained in:
commit
de62fe26ba
BIN
fuintCashierWeb/src/views/cashier/NewComponents/imgs/r-j.png
Normal file
BIN
fuintCashierWeb/src/views/cashier/NewComponents/imgs/r-j.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 381 B |
@ -2,7 +2,7 @@
|
||||
<div class="new-contoner">
|
||||
<div class="left-box">
|
||||
<div class="box-top">
|
||||
<div class="o-top">
|
||||
<div class="o-top" v-if="userInfo" >
|
||||
<div class="d-s">
|
||||
<img src="./imgs/new_user.png" style="width: 28px;height: 28px;margin-right: 10px">
|
||||
<div>
|
||||
@ -15,12 +15,19 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-s">
|
||||
<div class="an_bor">会员充值</div>
|
||||
<div class="an_bor" @click="addMemberRecharge()" >会员充值</div>
|
||||
<div class="an_bor">重置会员</div>
|
||||
<div class="an_bor">赠送优惠券</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="o-top" v-if="!userInfo" >
|
||||
<div class="left_input">
|
||||
<input type="text" placeholder="请输入会员手机号" >
|
||||
<i class="el-icon-search"></i>
|
||||
</div>
|
||||
<div class="d-s">
|
||||
<div class="an_bor" @click="addVip()" >新增会员</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="t-top">
|
||||
<div class="three_box">油品:¥0.00</div>
|
||||
@ -30,8 +37,6 @@
|
||||
<div class="three_box">合计:¥0.00</div>
|
||||
</div>
|
||||
<div class="d-top">
|
||||
|
||||
|
||||
<div class="d-b">
|
||||
|
||||
<el-checkbox v-model="checkAll">活动优惠 <i class="el-icon-arrow-down"></i></el-checkbox>
|
||||
@ -53,19 +58,13 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-b">
|
||||
<div class="d-s">
|
||||
<div class="checkbox" @click="changeBox1" :class="{ 'active' : boxShow1 == true }"><i
|
||||
class="el-icon-check" size="15" v-if="boxShow1 == true"></i></div>
|
||||
<div class="d_text">储值卡(账户余额:0元)</div>
|
||||
</div>
|
||||
<el-checkbox v-model="boxShow1">储值卡(账户余额:0元)</el-checkbox>
|
||||
|
||||
<div class="or_num">¥0.00</div>
|
||||
</div>
|
||||
<div class="d-b">
|
||||
<div class="d-s">
|
||||
<div class="checkbox" @click="changeBox2" :class="{ 'active' : boxShow2 == true }"><i
|
||||
class="el-icon-check" size="15" v-if="boxShow2 == true"></i></div>
|
||||
<div class="d_text">囤油卡(账户余额:1000元)</div>
|
||||
</div>
|
||||
<el-checkbox v-model="boxShow2">囤油卡(账户余额:1000元)</el-checkbox>
|
||||
|
||||
<div class="or_num">-¥220.00</div>
|
||||
</div>
|
||||
|
||||
@ -86,7 +85,7 @@
|
||||
</div>
|
||||
<div class="er-box"></div>
|
||||
<div class="wrap-box">
|
||||
<div class="f-box" v-for="(item,index) in cardList" :key="index">{{ item.name }}</div>
|
||||
<div class="f-box" v-for="(item,index) in cardList" :class="{'f-acvite' : index == ruleIndex }" @click="setindex(index)" :key="index">{{ item.name }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-bottom">
|
||||
@ -106,7 +105,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-kuang" style="flex-wrap: wrap">
|
||||
<div class="card92" v-for="(item,index) in 3">
|
||||
<div class="card92" v-for="(item,index) in 3" @click="setRefuelingAmount()" >
|
||||
<div>汽油 92#</div>
|
||||
<div class="card-title">1号枪</div>
|
||||
<div class="c-b-d">
|
||||
@ -158,9 +157,13 @@
|
||||
<div class="right-box">
|
||||
<div class="box-top">
|
||||
<div class="r-top">非油商品</div>
|
||||
<div class="input-box">
|
||||
<input type="text" placeholder="商品名称,商品关键词,商品条码">
|
||||
</div>
|
||||
<el-autocomplete
|
||||
style="width: 95%;margin: 15px "
|
||||
v-model="state"
|
||||
:fetch-suggestions="querySearchAsync"
|
||||
placeholder="请输入内容"
|
||||
@select="handleSelect"
|
||||
></el-autocomplete>
|
||||
<div class="taber-top">
|
||||
<div class="goods_name">商品</div>
|
||||
<div class="stock_name">库存</div>
|
||||
@ -189,8 +192,8 @@
|
||||
重置
|
||||
</div>
|
||||
<div class="d-s">
|
||||
<div class="anniu-lv">取单</div>
|
||||
<div class="anniu-lan">挂单</div>
|
||||
<div class="anniu-lv" @click="invokePickUpTheOrder" >取单</div>
|
||||
<div class="anniu-lan" @click="invokeHangingAnOrder" >挂单</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -210,7 +213,6 @@
|
||||
<el-button type="primary" @click="newMember = false">打印二维码</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
|
||||
<el-dialog
|
||||
title="扫码支付"
|
||||
:visible.sync="ScanCodePayment"
|
||||
@ -322,7 +324,7 @@
|
||||
>
|
||||
<accountPending></accountPending>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="accountPending = false">取 消</el-button>
|
||||
<el-button @click="accountPending = false">取 消</el-button>
|
||||
<el-button type="primary" @click="accountPending = false">确 定</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
@ -338,7 +340,20 @@
|
||||
<el-button type="primary" @click="memberRecharge = false">确认充值</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
|
||||
<el-dialog
|
||||
title="加油金额"
|
||||
:visible.sync="refuelingAmount"
|
||||
width="542px"
|
||||
center
|
||||
>
|
||||
<div class="tc-box">
|
||||
<refuelingAmount></refuelingAmount>
|
||||
</div>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="refuelingAmount = false">取 消</el-button>
|
||||
<el-button type="primary" @click="refuelingAmount = false">确 定</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -346,9 +361,13 @@
|
||||
import pickUp from './newHomeComponents/pickUpTheOrder.vue'
|
||||
import accountPending from './newHomeComponents/accountPending.vue'
|
||||
import memberRecharge from './newHomeComponents/memberRecharge.vue'
|
||||
import refuelingAmount from './newHomeComponents/refuelingAmount.vue'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
restaurants: [],
|
||||
state: '',
|
||||
timeout: null,
|
||||
boxShow: true,
|
||||
boxShow1: true,
|
||||
boxShow2: true,
|
||||
@ -414,6 +433,8 @@ export default {
|
||||
id: '4'
|
||||
},
|
||||
],
|
||||
userInfo:true,//判断登录状态
|
||||
ruleIndex:0,
|
||||
tabIndex: 0,
|
||||
newMember: false,
|
||||
ScanCodePayment: false,
|
||||
@ -430,20 +451,37 @@ export default {
|
||||
{min: 3, max: 5, message: '长度在 3 到 5 个字符', trigger: 'blur'}
|
||||
],
|
||||
},
|
||||
refuelingAmount: false,
|
||||
hangingAnOrder: false,
|
||||
paymentResults: false,
|
||||
pickUpTheOrder: false,
|
||||
accountPending: false,
|
||||
memberRecharge: true,
|
||||
memberRecharge: false,
|
||||
|
||||
}
|
||||
},
|
||||
components:{
|
||||
pickUp,
|
||||
accountPending,
|
||||
memberRecharge
|
||||
memberRecharge,
|
||||
refuelingAmount
|
||||
},
|
||||
mounted() {
|
||||
this.restaurants = this.loadAll();
|
||||
},
|
||||
methods: {
|
||||
invokePickUpTheOrder(){
|
||||
this.pickUpTheOrder = true
|
||||
},
|
||||
invokeHangingAnOrder(){
|
||||
this.hangingAnOrder = true
|
||||
},
|
||||
addVip(){
|
||||
this.newMember = true
|
||||
},
|
||||
addMemberRecharge(){
|
||||
this.memberRecharge = true
|
||||
},
|
||||
changeBox() {
|
||||
this.boxShow = !this.boxShow
|
||||
},
|
||||
@ -455,6 +493,81 @@ export default {
|
||||
},
|
||||
setTabindex(index) {
|
||||
this.tabIndex = index
|
||||
},
|
||||
setindex(index){
|
||||
this.ruleIndex = index
|
||||
},
|
||||
setRefuelingAmount(){
|
||||
this.refuelingAmount = true
|
||||
},
|
||||
loadAll() {
|
||||
return [
|
||||
{ "value": "三全鲜食(北新泾店)", "address": "长宁区新渔路144号" },
|
||||
{ "value": "Hot honey 首尔炸鸡(仙霞路)", "address": "上海市长宁区淞虹路661号" },
|
||||
{ "value": "新旺角茶餐厅", "address": "上海市普陀区真北路988号创邑金沙谷6号楼113" },
|
||||
{ "value": "泷千家(天山西路店)", "address": "天山西路438号" },
|
||||
{ "value": "胖仙女纸杯蛋糕(上海凌空店)", "address": "上海市长宁区金钟路968号1幢18号楼一层商铺18-101" },
|
||||
{ "value": "贡茶", "address": "上海市长宁区金钟路633号" },
|
||||
{ "value": "豪大大香鸡排超级奶爸", "address": "上海市嘉定区曹安公路曹安路1685号" },
|
||||
{ "value": "茶芝兰(奶茶,手抓饼)", "address": "上海市普陀区同普路1435号" },
|
||||
{ "value": "十二泷町", "address": "上海市北翟路1444弄81号B幢-107" },
|
||||
{ "value": "星移浓缩咖啡", "address": "上海市嘉定区新郁路817号" },
|
||||
{ "value": "阿姨奶茶/豪大大", "address": "嘉定区曹安路1611号" },
|
||||
{ "value": "新麦甜四季甜品炸鸡", "address": "嘉定区曹安公路2383弄55号" },
|
||||
{ "value": "Monica摩托主题咖啡店", "address": "嘉定区江桥镇曹安公路2409号1F,2383弄62号1F" },
|
||||
{ "value": "浮生若茶(凌空soho店)", "address": "上海长宁区金钟路968号9号楼地下一层" },
|
||||
{ "value": "NONO JUICE 鲜榨果汁", "address": "上海市长宁区天山西路119号" },
|
||||
{ "value": "CoCo都可(北新泾店)", "address": "上海市长宁区仙霞西路" },
|
||||
{ "value": "快乐柠檬(神州智慧店)", "address": "上海市长宁区天山西路567号1层R117号店铺" },
|
||||
{ "value": "Merci Paul cafe", "address": "上海市普陀区光复西路丹巴路28弄6号楼819" },
|
||||
{ "value": "猫山王(西郊百联店)", "address": "上海市长宁区仙霞西路88号第一层G05-F01-1-306" },
|
||||
{ "value": "枪会山", "address": "上海市普陀区棕榈路" },
|
||||
{ "value": "纵食", "address": "元丰天山花园(东门) 双流路267号" },
|
||||
{ "value": "钱记", "address": "上海市长宁区天山西路" },
|
||||
{ "value": "壹杯加", "address": "上海市长宁区通协路" },
|
||||
{ "value": "唦哇嘀咖", "address": "上海市长宁区新泾镇金钟路999号2幢(B幢)第01层第1-02A单元" },
|
||||
{ "value": "爱茜茜里(西郊百联)", "address": "长宁区仙霞西路88号1305室" },
|
||||
{ "value": "爱茜茜里(近铁广场)", "address": "上海市普陀区真北路818号近铁城市广场北区地下二楼N-B2-O2-C商铺" },
|
||||
{ "value": "鲜果榨汁(金沙江路和美广店)", "address": "普陀区金沙江路2239号金沙和美广场B1-10-6" },
|
||||
{ "value": "开心丽果(缤谷店)", "address": "上海市长宁区威宁路天山路341号" },
|
||||
{ "value": "超级鸡车(丰庄路店)", "address": "上海市嘉定区丰庄路240号" },
|
||||
{ "value": "妙生活果园(北新泾店)", "address": "长宁区新渔路144号" },
|
||||
{ "value": "香宜度麻辣香锅", "address": "长宁区淞虹路148号" },
|
||||
{ "value": "凡仔汉堡(老真北路店)", "address": "上海市普陀区老真北路160号" },
|
||||
{ "value": "港式小铺", "address": "上海市长宁区金钟路968号15楼15-105室" },
|
||||
{ "value": "蜀香源麻辣香锅(剑河路店)", "address": "剑河路443-1" },
|
||||
{ "value": "北京饺子馆", "address": "长宁区北新泾街道天山西路490-1号" },
|
||||
{ "value": "饭典*新简餐(凌空SOHO店)", "address": "上海市长宁区金钟路968号9号楼地下一层9-83室" },
|
||||
{ "value": "焦耳·川式快餐(金钟路店)", "address": "上海市金钟路633号地下一层甲部" },
|
||||
{ "value": "动力鸡车", "address": "长宁区仙霞西路299弄3号101B" },
|
||||
{ "value": "浏阳蒸菜", "address": "天山西路430号" },
|
||||
{ "value": "四海游龙(天山西路店)", "address": "上海市长宁区天山西路" },
|
||||
{ "value": "樱花食堂(凌空店)", "address": "上海市长宁区金钟路968号15楼15-105室" },
|
||||
{ "value": "壹分米客家传统调制米粉(天山店)", "address": "天山西路428号" },
|
||||
{ "value": "福荣祥烧腊(平溪路店)", "address": "上海市长宁区协和路福泉路255弄57-73号" },
|
||||
{ "value": "速记黄焖鸡米饭", "address": "上海市长宁区北新泾街道金钟路180号1层01号摊位" },
|
||||
{ "value": "红辣椒麻辣烫", "address": "上海市长宁区天山西路492号" },
|
||||
{ "value": "(小杨生煎)西郊百联餐厅", "address": "长宁区仙霞西路88号百联2楼" },
|
||||
{ "value": "阳阳麻辣烫", "address": "天山西路389号" },
|
||||
{ "value": "南拳妈妈龙虾盖浇饭", "address": "普陀区金沙江路1699号鑫乐惠美食广场A13" }
|
||||
];
|
||||
},
|
||||
querySearchAsync(queryString, cb) {
|
||||
var restaurants = this.restaurants;
|
||||
var results = queryString ? restaurants.filter(this.createStateFilter(queryString)) : restaurants;
|
||||
|
||||
clearTimeout(this.timeout);
|
||||
this.timeout = setTimeout(() => {
|
||||
cb(results);
|
||||
}, 1000 * Math.random());
|
||||
},
|
||||
createStateFilter(queryString) {
|
||||
return (state) => {
|
||||
return (state.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
|
||||
};
|
||||
},
|
||||
handleSelect(item) {
|
||||
console.log(item);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -792,6 +905,7 @@ input {
|
||||
overflow: hidden;
|
||||
margin-right: 1%;
|
||||
margin-bottom: 1%;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.card0 {
|
||||
@ -803,7 +917,7 @@ input {
|
||||
box-shadow: 0px 3px 6px 1px rgba(255, 255, 255, 0.4), inset 0px 3px 6px 1px rgba(255, 255, 255, 0.5);
|
||||
border-radius: 6px 6px 6px 6px;
|
||||
border: 1px solid #FFB519;
|
||||
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
color: #FFB519;
|
||||
overflow: hidden;
|
||||
@ -825,6 +939,7 @@ input {
|
||||
overflow: hidden;
|
||||
margin-right: 1%;
|
||||
margin-bottom: 1%;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.card95 {
|
||||
@ -841,6 +956,7 @@ input {
|
||||
overflow: hidden;
|
||||
margin-right: 1%;
|
||||
margin-bottom: 1%;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.card-title {
|
||||
@ -1009,4 +1125,15 @@ input {
|
||||
justify-content: space-between;
|
||||
margin: 15px auto;
|
||||
}
|
||||
.left_input{
|
||||
width: 70%;
|
||||
border: 1px solid #fff;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
box-sizing: border-box;
|
||||
padding: 10px 5px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
</style>
|
||||
|
@ -15,7 +15,42 @@ export default {
|
||||
name:'礼品卡兑换',
|
||||
num:2
|
||||
}
|
||||
]
|
||||
],
|
||||
kangList:[
|
||||
"充值5000元赠送500元",
|
||||
"充值10000元赠送1500元"
|
||||
],
|
||||
tabIndex:0,
|
||||
kIndex:0,
|
||||
ruleForm: {
|
||||
text1:'',
|
||||
text2:'',
|
||||
text3:'',
|
||||
text4:'',
|
||||
name: '',
|
||||
name1: '',
|
||||
name2: '',
|
||||
region: '',
|
||||
date1: '',
|
||||
date2: '',
|
||||
delivery: false,
|
||||
type: [],
|
||||
resource: '',
|
||||
desc: ''
|
||||
},
|
||||
rules: {
|
||||
price:[
|
||||
{ required: true, message: '充值金额', trigger: 'change' }
|
||||
],
|
||||
}
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
setindex(index){
|
||||
this.tabIndex = index
|
||||
},
|
||||
setIndex(index){
|
||||
this.kIndex = index
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -24,10 +59,116 @@ export default {
|
||||
<template>
|
||||
<div>
|
||||
<div class="top-dd">
|
||||
<div class="tab-dv" v-for="(item,index) in tabList" :key="index">
|
||||
<div class="tab-dv" v-for="(item,index) in tabList" :key="index" :class="{ 'active' :tabIndex==index}" @click="setindex(index)" >
|
||||
{{item.name}}
|
||||
</div>
|
||||
<div v-if=""></div>
|
||||
</div>
|
||||
<div v-if="tabIndex == 0">
|
||||
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="120px" class="demo-ruleForm">
|
||||
<el-form-item label="充值金额" prop="price" >
|
||||
</el-form-item>
|
||||
<div class="d-s">
|
||||
<div class="k_kang" v-for="(item,index) in kangList" :key="index" @click="setIndex(index)" >
|
||||
{{item}}
|
||||
<img src="../imgs/r-j.png" class="p-img" v-if="kIndex == index" >
|
||||
</div>
|
||||
</div>
|
||||
<el-form-item label="自定义充值本金" prop="region" >
|
||||
<el-input v-model="ruleForm.text4" style="width: 330px">
|
||||
<template slot="append">元</template>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<div style="display: flex">
|
||||
<el-form-item label="赠送金额" prop="text">
|
||||
<el-input v-model="ruleForm.text1" style="width: 150px">
|
||||
<template slot="append">元</template>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="赠送积分" prop="text">
|
||||
<el-input v-model="ruleForm.text2" style="width: 150px">
|
||||
<template slot="append">积分</template>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="赠送成长值" prop="text">
|
||||
<el-input v-model="ruleForm.text3" style="width: 150px">
|
||||
<template slot="append">成长值</template>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
</div>
|
||||
<el-form-item label="提成员工" prop="region" >
|
||||
<el-select v-model="ruleForm.region" placeholder="请选择提成员工" style="width: 330px">
|
||||
<el-option label="员工一" value="shanghai"></el-option>
|
||||
<el-option label="员工二" value="beijing"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="充值备注" prop="desc" style="width: 450px">
|
||||
<el-input type="textarea" v-model="ruleForm.desc"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="支付方式" prop="resource">
|
||||
<el-radio-group v-model="ruleForm.resource">
|
||||
<el-radio label="支付宝"></el-radio>
|
||||
<el-radio label="微信"></el-radio>
|
||||
<el-radio label="银联二维码"></el-radio>
|
||||
<el-radio label="现金"></el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
<div v-if="tabIndex == 1">
|
||||
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="120px" class="demo-ruleForm">
|
||||
<el-form-item label="油品油号" prop="resource">
|
||||
<el-radio-group v-model="ruleForm.resource">
|
||||
<el-radio label="汽油98#"></el-radio>
|
||||
<el-radio label="汽油95#"></el-radio>
|
||||
<el-radio label="汽油92#"></el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item label="充值金额" prop="price" >
|
||||
</el-form-item>
|
||||
<div class="d-s">
|
||||
<div class="k_kang" v-for="(item,index) in kangList" :key="index" @click="setIndex(index)" >
|
||||
{{item}}
|
||||
<img src="../imgs/r-j.png" class="p-img" v-if="kIndex == index" >
|
||||
</div>
|
||||
</div>
|
||||
<el-form-item label="赠送积分" prop="region" >
|
||||
<el-input v-model="ruleForm.text4" style="width: 330px">
|
||||
<template slot="append">积分</template>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="提成员工" prop="region" >
|
||||
<el-select v-model="ruleForm.region" placeholder="请选择提成员工" style="width: 330px">
|
||||
<el-option label="员工一" value="shanghai"></el-option>
|
||||
<el-option label="员工二" value="beijing"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="充值备注" prop="desc" style="width: 450px">
|
||||
<el-input type="textarea" v-model="ruleForm.desc"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="支付方式" prop="resource">
|
||||
<el-radio-group v-model="ruleForm.resource">
|
||||
<el-radio label="支付宝"></el-radio>
|
||||
<el-radio label="微信"></el-radio>
|
||||
<el-radio label="银联二维码"></el-radio>
|
||||
<el-radio label="现金"></el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
<div v-if="tabIndex == 2">
|
||||
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
|
||||
<el-form-item label="礼品卡号" prop="name">
|
||||
<el-input v-model="ruleForm.name" placeholder="扫描或输入礼品卡号" style="width: 390px" ></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="礼品卡密码" prop="name">
|
||||
<el-input v-model="ruleForm.name1" placeholder="扫描或输入礼品卡密码" style="width: 390px"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="礼品卡金额" prop="name" >
|
||||
<el-input v-model="ruleForm.name2" style="width: 390px" :disabled="true" >
|
||||
<template slot="append">元</template>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@ -37,6 +178,9 @@ export default {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 15px;
|
||||
box-sizing: border-box;
|
||||
padding-left: 30px;
|
||||
}
|
||||
.tab-dv{
|
||||
width: 200px;
|
||||
@ -52,4 +196,33 @@ export default {
|
||||
margin-right:10px ;
|
||||
cursor: pointer;
|
||||
}
|
||||
.active{
|
||||
background:#FF9655 !important ;
|
||||
color: #fff !important;
|
||||
}
|
||||
.d-s{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 25px;
|
||||
padding-left: 50px;
|
||||
}
|
||||
.k_kang{
|
||||
width: 200px;
|
||||
height: 50px;
|
||||
background: #FFFFFF;
|
||||
border: 1px solid #FF9655;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-right: 25px;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
}
|
||||
.p-img{
|
||||
position: absolute;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
right: 0px;
|
||||
bottom: 0px;
|
||||
}
|
||||
</style>
|
||||
|
@ -0,0 +1,139 @@
|
||||
<script >
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
ruleForm: {
|
||||
name: '',
|
||||
region: '',
|
||||
date1: '',
|
||||
date2: '',
|
||||
delivery: false,
|
||||
type: [],
|
||||
resource: '',
|
||||
desc: ''
|
||||
},
|
||||
findex:0,
|
||||
priceList:[
|
||||
"¥100",
|
||||
"¥150",
|
||||
"¥200",
|
||||
"¥300",
|
||||
],
|
||||
rules: {
|
||||
name: [
|
||||
{ required: true, message: '请输入活动名称', trigger: 'blur' },
|
||||
{ min: 3, max: 5, message: '长度在 3 到 5 个字符', trigger: 'blur' }
|
||||
],
|
||||
region: [
|
||||
{ required: true, message: '请选择活动区域', trigger: 'change' }
|
||||
],
|
||||
date1: [
|
||||
{ type: 'date', required: true, message: '请选择日期', trigger: 'change' }
|
||||
],
|
||||
date2: [
|
||||
{ type: 'date', required: true, message: '请选择时间', trigger: 'change' }
|
||||
],
|
||||
type: [
|
||||
{ type: 'array', required: true, message: '请至少选择一个活动性质', trigger: 'change' }
|
||||
],
|
||||
resource: [
|
||||
{ required: true, message: '请选择活动资源', trigger: 'change' }
|
||||
],
|
||||
desc: [
|
||||
{ required: true, message: '请填写活动形式', trigger: 'blur' }
|
||||
]
|
||||
}
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
setIndex(index){
|
||||
this.findex = index
|
||||
},
|
||||
submitForm(formName) {
|
||||
this.$refs[formName].validate((valid) => {
|
||||
if (valid) {
|
||||
alert('submit!');
|
||||
} else {
|
||||
console.log('error submit!!');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
},
|
||||
resetForm(formName) {
|
||||
this.$refs[formName].resetFields();
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
|
||||
<div class="input-box">
|
||||
<div>已选油品</div>
|
||||
<div>汽油92#</div>
|
||||
</div>
|
||||
<div class="input-box">
|
||||
<div>已选油枪</div>
|
||||
<div>1号枪</div>
|
||||
</div>
|
||||
<div class="input-box">
|
||||
<div>油品单价</div>
|
||||
<div>8.5元/L</div>
|
||||
</div>
|
||||
<el-input v-model="ruleForm.name" style="width: 490px" placeholder="请输入加油金额">
|
||||
<template slot="append">元</template>
|
||||
</el-input>
|
||||
<div class="box-">
|
||||
<div class="fo-box" @click="setIndex(index)" :class="{ 'active' : findex == index }" v-for="(item,index) in priceList" :key="index">
|
||||
{{item}}
|
||||
</div>
|
||||
</div>
|
||||
</el-form>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.hui-size{
|
||||
font-size: 12px;
|
||||
color: #999999;
|
||||
}
|
||||
.input-box{
|
||||
width: 490px;
|
||||
height: 36px;
|
||||
border-radius: 4px;
|
||||
border: 1px solid #eceff1;
|
||||
box-sizing: border-box;
|
||||
padding: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin: 30px auto;
|
||||
font-size: 14px;
|
||||
color: #FF9655;
|
||||
}
|
||||
.box-{
|
||||
width: 490px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin: 25px auto;
|
||||
}
|
||||
.fo-box{
|
||||
width: 72px;
|
||||
height: 36px;
|
||||
background: #D8D8D8;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 4px;
|
||||
font-size: 14px;
|
||||
color: #333333;
|
||||
|
||||
cursor: pointer;
|
||||
}
|
||||
.active{
|
||||
background: #FF9655 !important;
|
||||
color: #fff !important;
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue
Block a user