修复优惠券

master
Sigo 3 years ago
parent 3b39a8ff73
commit ac287506cf

@ -4,7 +4,9 @@ import "babel-polyfill";
import "es6-promise/auto"; import "es6-promise/auto";
import ElementUI from "element-ui"; import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css"; import "element-ui/lib/theme-chalk/index.css";
import { Message } from "element-ui"; import {
Message
} from "element-ui";
Vue.use(ElementUI); Vue.use(ElementUI);
import App from "./App.vue"; import App from "./App.vue";
import store from "./store"; import store from "./store";
@ -22,13 +24,17 @@ import "./utils/dialog";
import "./plugins"; import "./plugins";
// import "./utils/directive/focus"; // import "./utils/directive/focus";
import echarts from "echarts"; import echarts from "echarts";
import { getCookie } from "./utils/utils.js"; import {
getCookie
} from "./utils/utils.js";
import apiConfig from "../config/api.config.js"; import apiConfig from "../config/api.config.js";
import vueEsign from "vue-esign"; import vueEsign from "vue-esign";
import animated from "animate.css"; // npm install animate.css --save安装在引入 import animated from "animate.css"; // npm install animate.css --save安装在引入
import formatTime from "./utils/filters.js"; import formatTime from "./utils/filters.js";
import arrDiff from "./utils/array.js"; import arrDiff from "./utils/array.js";
import { Loading } from "element-ui"; import {
Loading
} from "element-ui";
import countdown from "./utils/countdown.js"; import countdown from "./utils/countdown.js";
import "./utils/rem.js"; import "./utils/rem.js";
Vue.use(animated); Vue.use(animated);
@ -38,11 +44,19 @@ import print from "vue-print-nb";
directives: { directives: {
print; print;
} }
import { thousands } from "@/utils/index.js"; import {
thousands
} from "@/utils/index.js";
// 引入高精度精算 // 引入高精度精算
import { Decimal } from "decimal.js"; import {
Decimal
} from "decimal.js";
import {
parseTime
} from "./utils/index.js";
// 全局定义 // 全局定义
Vue.prototype.$Decimal = Decimal; Vue.prototype.$Decimal = Decimal;
Vue.prototype.$parseTime = parseTime;
import Vue from "vue"; import Vue from "vue";
import Router from "vue-router"; import Router from "vue-router";
@ -54,7 +68,9 @@ Vue.use(VueAxios, axios);
axios.defaults.baseURL = apiConfig.baseUrl; axios.defaults.baseURL = apiConfig.baseUrl;
Vue.use(Print); //注册 Vue.use(Print); //注册
import { message } from "./utils/resetMessage.js"; //现在提示弹窗每次只弹一条 import {
message
} from "./utils/resetMessage.js"; //现在提示弹窗每次只弹一条
// import VueParticles from 'vue-particles' // import VueParticles from 'vue-particles'
// Vue.use(VueParticles) // Vue.use(VueParticles)

@ -1,5 +1,5 @@
<template> <template>
<el-dialog title="公众号二维码" :visible.sync="dialogFormVisible" :close-on-click-modal="false" width="400px" @close="close" v-dialogDrag> <el-dialog title="公众号二维码" :visible.sync="dialogFormVisible" :close-on-click-modal="false" width="420px" @close="close" v-dialogDrag>
<div class="box" style="width: 400px; height: 400px; background-color: #FFF;"> <div class="box" style="width: 400px; height: 400px; background-color: #FFF;">
<el-image style="width: 100%; height: 100%" :src="qrCode" fit="fill" v-if="codeNumber===1"></el-image> <el-image style="width: 100%; height: 100%" :src="qrCode" fit="fill" v-if="codeNumber===1"></el-image>
<div class="img" v-if="codeNumber===2||codeNumber===3"> <div class="img" v-if="codeNumber===2||codeNumber===3">

@ -30,10 +30,10 @@
<el-input class="form-width-ms border-only-bottom border" v-model="form.orderNums"></el-input> <el-input class="form-width-ms border-only-bottom border" v-model="form.orderNums"></el-input>
</el-form-item> --> </el-form-item> -->
<el-form-item label="男客:"> <el-form-item label="男客:">
<el-input-number class="form-width-xs" size="small" v-model="form.man" @change="handleChange" :min="0" :max="10" label="男客数量"></el-input-number> <el-input-number class="form-width-xs" size="small" v-model="form.man" :min="0" :max="10" label="男客数量"></el-input-number>
</el-form-item> </el-form-item>
<el-form-item label="女客:"> <el-form-item label="女客:">
<el-input-number class="form-width-xs" size="small" v-model="form.woman" @change="handleChange" :min="0" :max="10" label="女客数量"></el-input-number> <el-input-number class="form-width-xs" size="small" v-model="form.woman" :min="0" :max="10" label="女客数量"></el-input-number>
</el-form-item> </el-form-item>
</div> </div>
<div> <div>
@ -247,7 +247,6 @@ export default {
).toFixed(2) * 1; ).toFixed(2) * 1;
let debtMoney = (item.amount - item.cashAmount).toFixed(2) * 1; let debtMoney = (item.amount - item.cashAmount).toFixed(2) * 1;
let cardMoney = (form.offsetMoney + form.offsetGiftMoney).toFixed(2) * 1; let cardMoney = (form.offsetMoney + form.offsetGiftMoney).toFixed(2) * 1;
console.log();
if (debtMoney > 0) { if (debtMoney > 0) {
if (cardMoney < debtMoney) { if (cardMoney < debtMoney) {
form.spendMoney = form.cardOver; form.spendMoney = form.cardOver;
@ -714,7 +713,6 @@ export default {
this.sumMoney(); this.sumMoney();
}, },
handleChange() {},
rowClassName({ row, rowIndex }) { rowClassName({ row, rowIndex }) {
row.index = rowIndex; row.index = rowIndex;
}, },

@ -22,8 +22,7 @@
<el-button @click="openStaffList" size="mini" type="primary" style="margin-left: 16px;"> 员工列表</el-button> <el-button @click="openStaffList" size="mini" type="primary" style="margin-left: 16px;"> 员工列表</el-button>
</div> </div>
</div> </div>
<div class="flex justify-start align-start"> <div class="flex justify-start align-start"></div>
</div>
<div class="flex justify-center align-start flex-wrap room-body"> <div class="flex justify-center align-start flex-wrap room-body">
<div class="room margin-right margin-top" v-for="(item,index) in list" :key="index"> <div class="room margin-right margin-top" v-for="(item,index) in list" :key="index">
<div class="room-header flex justify-between align-center text-bold" :class="item.onState==0?'bg-green':item.onState==1?'bg-blue':item.onState==2?'bg-yellow':item.onState==3?'bg-red':'bg-blue'"> <div class="room-header flex justify-between align-center text-bold" :class="item.onState==0?'bg-green':item.onState==1?'bg-blue':item.onState==2?'bg-yellow':item.onState==3?'bg-red':'bg-blue'">
@ -207,6 +206,12 @@ export default {
}; };
}, },
methods: { methods: {
//
show() {
this.getData();
this.getPage();
this.getStaff();
},
editStaffState(item, number) { editStaffState(item, number) {
console.log(item); console.log(item);
editsServiceOrder({ id: item.id, state: number }).then((res) => { editsServiceOrder({ id: item.id, state: number }).then((res) => {
@ -413,12 +418,7 @@ export default {
} }
}); });
}, },
//
show() {
this.getData();
this.getPage();
this.getStaff();
},
openRoom(item) { openRoom(item) {
if (item.onState == 2) { if (item.onState == 2) {
} else { } else {

@ -2,13 +2,13 @@
<div class="head-room"> <div class="head-room">
<el-tabs v-role="500111" v-model="activeName" @tab-click="handleClick"> <el-tabs v-role="500111" v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="开单" name="开单"> <el-tab-pane label="开单" name="开单">
<bing ref="bing" @bingData="bingData"></bing> <bing ref="bing"></bing>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="房间" name="房间"> <el-tab-pane label="房间" name="房间">
<room ref="room" @roomData="roomData"></room> <room ref="room" @roomData="roomData"></room>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="历史单据" name="历史单据"> <el-tab-pane label="历史单据" name="历史单据">
<order ref="order" @orderData="orderData"></order> <order ref="order"></order>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
@ -41,8 +41,6 @@ export default {
this.$refs.order.show(); this.$refs.order.show();
} }
}, },
bingData(v) {},
orderData(v) {},
roomData(v) { roomData(v) {
if (v) { if (v) {
console.log("kaidan "); console.log("kaidan ");

@ -12,9 +12,6 @@
width: 100%; width: 100%;
} }
.el-table--border th.gutter:last-of-type { .el-table--border th.gutter:last-of-type {
display: block !important; display: block !important;
width: 17px !important; width: 17px !important;
@ -36,7 +33,7 @@
} }
.line-height { .line-height {
line-height: 100% line-height: 100%;
} }
.border-top { .border-top {
@ -137,13 +134,11 @@
.form-width-xxl { .form-width-xxl {
width: 530px !important; width: 530px !important;
cursor: pointer; cursor: pointer;
} }
.form-width-xxxl { .form-width-xxxl {
width: 860px !important; width: 860px !important;
cursor: pointer; cursor: pointer;
} }
.pointer { .pointer {
@ -265,6 +260,13 @@
border-radius: 25px; border-radius: 25px;
} }
/* ==================
==================== */
.width-ms {
width: 210px;
}
/* el-table */ /* el-table */
.el-table .el-table__row .el-date-editor { .el-table .el-table__row .el-date-editor {
width: 100%; width: 100%;
@ -347,7 +349,7 @@ input::-webkit-inner-spin-button {
color: #fff !important; color: #fff !important;
font-size: 20px !important; font-size: 20px !important;
font-weight: 700 !important; font-weight: 700 !important;
font-family: '幼圆'; font-family: "幼圆";
background-color: #389efd; background-color: #389efd;
} }
@ -372,8 +374,6 @@ input::-webkit-inner-spin-button {
height: 70px; height: 70px;
} }
.my-pro-bottom { .my-pro-bottom {
height: 50px; height: 50px;
width: 100px; width: 100px;
@ -388,7 +388,6 @@ input::-webkit-inner-spin-button {
/*伸缩盒子的子元素排列:从上到下*/ /*伸缩盒子的子元素排列:从上到下*/
} }
.expand-card:hover { .expand-card:hover {
padding-top: 1px; padding-top: 1px;
z-index: 9; z-index: 9;
@ -418,7 +417,6 @@ input::-webkit-inner-spin-button {
.el-table--border th.gutter:last-of-type { .el-table--border th.gutter:last-of-type {
/* border-bottom: 1px solid rgb(185, 185, 185) !important; */ /* border-bottom: 1px solid rgb(185, 185, 185) !important; */
/* 横线颜色 */ /* 横线颜色 */
} }
.el-table--border td, .el-table--border td,
@ -457,7 +455,6 @@ input::-webkit-inner-spin-button {
padding: 0 8px; padding: 0 8px;
} }
/* 滑动条 */ /* 滑动条 */
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 8px; width: 8px;
@ -475,7 +472,6 @@ input::-webkit-inner-spin-button {
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
background: #ededed; background: #ededed;
border-radius: 5px; border-radius: 5px;
} }
.el-form-item__error { .el-form-item__error {

Loading…
Cancel
Save