门店参数新增
parent
17be547c16
commit
97852140a9
@ -1,89 +1,89 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog :close-on-click-modal="false" v-dialogDrag :title="title" :visible.sync="dialogVisible" width="1000px" append-to-body>
|
<el-dialog :close-on-click-modal="false" v-dialogDrag :title="title" :visible.sync="dialogVisible" width="1000px" append-to-body>
|
||||||
<el-table @row-dblclick="confirms" :data="list" @row-click="rowClick" max-height="600" v-loading="listLoading" :element-loading-text="elementLoadingText" class="margin-top-xs" :header-cell-style="{background: 'linear-gradient(#6cb3ff, #1873d4)' ,color:'#eeeeee'}">
|
<el-table @row-dblclick="confirms" :data="list" @row-click="rowClick" max-height="600" v-loading="listLoading" :element-loading-text="elementLoadingText" class="margin-top-xs" :header-cell-style="{background: 'linear-gradient(#6cb3ff, #1873d4)' ,color:'#eeeeee'}">
|
||||||
<el-table-column label="选择" width="60">
|
<el-table-column label="选择" width="60">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-radio v-model="radio" :label="scope.row.id" @change.native="scope.row;">
|
<el-radio v-model="radio" :label="scope.row.id" @change.native="scope.row;">
|
||||||
{{ "" }}
|
{{ "" }}
|
||||||
</el-radio>
|
</el-radio>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column show-overflow-tooltip min-width="120" align="left" prop="rechargeTypeNum" label="充值编码"></el-table-column>
|
<el-table-column show-overflow-tooltip min-width="120" align="left" prop="rechargeTypeNum" label="充值编码"></el-table-column>
|
||||||
<el-table-column show-overflow-tooltip min-width="120" align="left" prop="rechargeTypeName" label="充值卡"></el-table-column>
|
<el-table-column show-overflow-tooltip min-width="120" align="left" prop="rechargeTypeName" label="充值卡"></el-table-column>
|
||||||
<el-table-column show-overflow-tooltip min-width="80" align="left" prop="type" label="类别">
|
<el-table-column show-overflow-tooltip min-width="80" align="left" prop="type" label="类别">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{scope.row.type==0?'赠送卡':scope.row.type==1?'折扣卡':'活动卡'}}
|
{{scope.row.type==0?'赠送卡':scope.row.type==1?'折扣卡':'活动卡'}}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column show-overflow-tooltip min-width="80" align="center" prop="cardRestMoney" label="剩余金额"></el-table-column>
|
<el-table-column show-overflow-tooltip min-width="80" align="center" prop="cardRestMoney" label="剩余金额"></el-table-column>
|
||||||
<el-table-column show-overflow-tooltip min-width="80" align="center" prop="cardConsumeMoney" label="可用金额"></el-table-column>
|
<el-table-column show-overflow-tooltip min-width="80" align="center" prop="cardConsumeMoney" label="可用金额"></el-table-column>
|
||||||
<el-table-column show-overflow-tooltip min-width="100" align="center" prop="discount" label="享受优惠(%)"></el-table-column>
|
<el-table-column show-overflow-tooltip min-width="100" align="center" prop="discount" label="享受优惠(%)"></el-table-column>
|
||||||
<el-table-column show-overflow-tooltip min-width="80" align="center" prop="cardGiftMoney" label="赠送金额"></el-table-column>
|
<el-table-column show-overflow-tooltip min-width="80" align="center" prop="cardGiftMoney" label="赠送金额"></el-table-column>
|
||||||
<el-table-column show-overflow-tooltip min-width="100" align="center" prop="discountFreeAmount" label="赠送折扣(%)"></el-table-column>
|
<el-table-column show-overflow-tooltip min-width="100" align="center" prop="discountFreeAmount" label="赠送折扣(%)"></el-table-column>
|
||||||
<el-table-column show-overflow-tooltip min-width="105" align="center" prop="endTime" label="到期日期"></el-table-column>
|
<el-table-column show-overflow-tooltip min-width="105" align="center" prop="endTime" label="到期日期"></el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-table>
|
</el-table>
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
<el-button size="mini" type="primary" plain @click="dialogVisible = false">取 消</el-button>
|
<el-button size="mini" type="primary" plain @click="dialogVisible = false">取 消</el-button>
|
||||||
<el-button size="mini" type="primary" @click="confirms()">确 定 </el-button>
|
<el-button size="mini" type="primary" @click="confirms()">确 定 </el-button>
|
||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { recAccountList } from "@/api/eashier.js";
|
import { recAccountList } from "@/api/eashier.js";
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
radio: null, //单选值
|
radio: null, //单选值
|
||||||
radioForm: {}, //单选对象
|
radioForm: {}, //单选对象
|
||||||
list: [], //主数组
|
list: [], //主数组
|
||||||
dialogVisible: false, //弹窗开关
|
dialogVisible: false, //弹窗开关
|
||||||
title: "选择会员充值帐户",
|
title: "选择会员充值帐户",
|
||||||
elementLoadingText: "数据加载中...", //list加载提示文字
|
elementLoadingText: "数据加载中...", //list加载提示文字
|
||||||
listLoading: false, //list加载提示开启动画
|
listLoading: false, //list加载提示开启动画
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
//组件传值
|
//组件传值
|
||||||
show(form) {
|
show(form) {
|
||||||
this.form = { ...form };
|
this.form = { ...form };
|
||||||
this.list = [];
|
this.list = [];
|
||||||
this.dialogVisible = true;
|
this.dialogVisible = true;
|
||||||
this.getData();
|
this.getData();
|
||||||
},
|
},
|
||||||
//点击选中
|
//点击选中
|
||||||
rowClick(row) {
|
rowClick(row) {
|
||||||
this.radio = row.id;
|
this.radio = row.id;
|
||||||
this.radioForm = row;
|
this.radioForm = row;
|
||||||
},
|
},
|
||||||
//获取数据
|
//获取数据
|
||||||
async getData() {
|
async getData() {
|
||||||
this.listLoading = true;
|
this.listLoading = true;
|
||||||
recAccountList({ memberId: this.form.memberId }).then((res) => {
|
recAccountList({ memberId: this.form.memberId }).then((res) => {
|
||||||
this.listLoading = false;
|
this.listLoading = false;
|
||||||
if (res.code === "000000") {
|
if (res.code === "000000") {
|
||||||
this.listLoading = false;
|
this.listLoading = false;
|
||||||
this.list = res.rows;
|
this.list = res.rows;
|
||||||
} else {
|
} else {
|
||||||
this.$alert("查询会员充值帐户 : " + res.message, "提示", {
|
this.$alert("查询会员充值帐户 : " + res.message, "提示", {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: "确定",
|
||||||
confirmButtonClass: "confirmbtnFalses",
|
confirmButtonClass: "confirmbtnFalses",
|
||||||
type: "warning",
|
type: "warning",
|
||||||
center: true,
|
center: true,
|
||||||
callback: (action) => {},
|
callback: (action) => {},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//确认返回方法
|
//确认返回方法
|
||||||
confirms() {
|
confirms() {
|
||||||
this.$emit("recTypeData", this.radioForm);
|
this.$emit("recTypeData", this.radioForm);
|
||||||
this.dialogVisible = false;
|
this.dialogVisible = false;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -1,124 +1,129 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog :close-on-click-modal="false" v-dialogDrag :title="title" :visible.sync="dialogVisible" width="1000px" append-to-body>
|
<el-dialog :close-on-click-modal="false" v-dialogDrag :title="title" :visible.sync="dialogVisible" width="1000px" append-to-body>
|
||||||
<el-table @row-dblclick="confirms" :data="list" @row-click="rowClick" max-height="600" v-loading="listLoading" :element-loading-text="elementLoadingText" class="margin-top-xs" :header-cell-style="{background: 'linear-gradient(#6cb3ff, #1873d4)' ,color:'#eeeeee'}">
|
<el-table @row-dblclick="confirms" :data="list" @row-click="rowClick" max-height="600" v-loading="listLoading" :element-loading-text="elementLoadingText" class="margin-top-xs" :header-cell-style="{background: 'linear-gradient(#6cb3ff, #1873d4)' ,color:'#eeeeee'}">
|
||||||
<el-table-column label="选择" width="60">
|
<el-table-column label="选择" width="60">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-radio v-model="radio" :label="scope.row.id" @change.native="scope.row;">
|
<el-radio v-model="radio" :label="scope.row.id" @change.native="scope.row;">
|
||||||
{{ "" }}
|
{{ "" }}
|
||||||
</el-radio>
|
</el-radio>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" show-overflow-tooltip min-width="100" prop="rechargeTypeNum" label="编码"></el-table-column>
|
<el-table-column align="center" show-overflow-tooltip min-width="100" prop="rechargeTypeNum" label="编码"></el-table-column>
|
||||||
<el-table-column align="center" show-overflow-tooltip min-width="120" prop="rechargeTypeName" label="名称"></el-table-column>
|
<el-table-column align="center" show-overflow-tooltip min-width="120" prop="rechargeTypeName" label="名称"></el-table-column>
|
||||||
<el-table-column show-overflow-tooltip min-width="75" align="left" prop="type" label="类别">
|
<el-table-column show-overflow-tooltip min-width="75" align="left" prop="type" label="类别">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{scope.row.type==0?'赠送卡':scope.row.type==1?'折扣卡':'活动卡'}}
|
{{scope.row.type==0?'赠送卡':scope.row.type==1?'折扣卡':'活动卡'}}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" min-width="75" prop="firstAmount" label="首充金额">
|
<el-table-column align="center" min-width="75" prop="firstAmount" label="首充金额">
|
||||||
<template slot-scope="scope">{{scope.row.firstAmount?scope.row.firstAmount:'无首充'}}</template>
|
<template slot-scope="scope">{{scope.row.firstAmount?scope.row.firstAmount:'无首充'}}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" min-width="75" prop="rechargeMoney" label="续充金额"></el-table-column>
|
<el-table-column align="center" min-width="75" prop="rechargeMoney" label="续充金额"></el-table-column>
|
||||||
<el-table-column align="center" min-width="80" prop="discount" label="享受折扣(%)"></el-table-column>
|
<el-table-column align="center" min-width="80" prop="discount" label="享受折扣(%)"></el-table-column>
|
||||||
<el-table-column align="center" min-width="75" prop="giftMoney" label="赠送金额">
|
<el-table-column align="center" min-width="75" prop="giftMoney" label="赠送金额">
|
||||||
<template slot-scope="scope">{{scope.row.giftMoney?scope.row.giftMoney:'无赠送'}}</template>
|
<template slot-scope="scope">
|
||||||
</el-table-column>
|
<span v-if="scope.row.donateType==0">固</span>
|
||||||
<el-table-column align="center" min-width="80" prop="discountFreeAmount" label="赠送折扣(%)">
|
<span v-if="scope.row.donateType==1">比</span>
|
||||||
<template slot-scope="scope">{{scope.row.discountFreeAmount?scope.row.discountFreeAmount:'无折扣'}}</template>
|
<span>{{scope.row.giftMoney}}</span>
|
||||||
</el-table-column>
|
<span v-if="scope.row.donateType==1">%</span>
|
||||||
<el-table-column align="center" min-width="80" prop="validTime" label="有效期限(月)"></el-table-column>
|
</template>
|
||||||
<el-table-column align="center" show-overflow-tooltip min-width="115" prop="stopDates" label="到期日期"></el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
<el-table-column align="center" min-width="80" prop="discountFreeAmount" label="赠送折扣(%)">
|
||||||
<span slot="footer" class="dialog-footer">
|
<template slot-scope="scope">{{scope.row.discountFreeAmount?scope.row.discountFreeAmount:'无折扣'}}</template>
|
||||||
<el-button size="mini" type="primary" plain @click="dialogVisible = false">取 消</el-button>
|
</el-table-column>
|
||||||
<el-button size="mini" type="primary" @click="confirms()">确 定 </el-button>
|
<el-table-column align="center" min-width="80" prop="validTime" label="有效期限(月)"></el-table-column>
|
||||||
</span>
|
<el-table-column align="center" show-overflow-tooltip min-width="115" prop="stopDates" label="到期日期"></el-table-column>
|
||||||
</el-dialog>
|
</el-table>
|
||||||
</template>
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button size="mini" type="primary" plain @click="dialogVisible = false">取 消</el-button>
|
||||||
<script>
|
<el-button size="mini" type="primary" @click="confirms()">确 定 </el-button>
|
||||||
import { recTypeList } from "@/api/eashier.js";
|
</span>
|
||||||
export default {
|
</el-dialog>
|
||||||
data() {
|
</template>
|
||||||
return {
|
|
||||||
radio: null, //单选值
|
<script>
|
||||||
radioForm: {}, //单选对象
|
import { recTypeList } from "@/api/eashier.js";
|
||||||
list: [], //主数组
|
export default {
|
||||||
dialogVisible: false, //弹窗开关
|
data() {
|
||||||
title: "选择充值类别", //弹窗标题
|
return {
|
||||||
elementLoadingText: "数据加载中...", //list加载提示文字
|
radio: null, //单选值
|
||||||
listLoading: false, //list加载提示开启动画
|
radioForm: {}, //单选对象
|
||||||
selectNumber: null, //充值类别类型0 赠送卡 1 折扣卡 2活动卡
|
list: [], //主数组
|
||||||
selcetList: [], //已经选择的充值类别列表
|
dialogVisible: false, //弹窗开关
|
||||||
};
|
title: "选择充值类别", //弹窗标题
|
||||||
},
|
elementLoadingText: "数据加载中...", //list加载提示文字
|
||||||
methods: {
|
listLoading: false, //list加载提示开启动画
|
||||||
//组件传值
|
selectNumber: null, //充值类别类型0 赠送卡 1 折扣卡 2活动卡
|
||||||
show(number, list) {
|
selcetList: [], //已经选择的充值类别列表
|
||||||
console.log(number);
|
};
|
||||||
console.log(list);
|
},
|
||||||
if (list) {
|
methods: {
|
||||||
this.selcetList = list;
|
//组件传值
|
||||||
}
|
show(number, list) {
|
||||||
if (number) {
|
console.log(number);
|
||||||
this.selectNumber = number;
|
console.log(list);
|
||||||
}
|
if (list) {
|
||||||
this.list = [];
|
this.selcetList = list;
|
||||||
this.radio = null;
|
}
|
||||||
this.radioForm = {};
|
if (number) {
|
||||||
this.dialogVisible = true;
|
this.selectNumber = number;
|
||||||
this.getData();
|
}
|
||||||
},
|
this.list = [];
|
||||||
//点击选中
|
this.radio = null;
|
||||||
rowClick(row) {
|
this.radioForm = {};
|
||||||
this.radio = row.id;
|
this.dialogVisible = true;
|
||||||
this.radioForm = row;
|
this.getData();
|
||||||
},
|
},
|
||||||
//获取数据
|
//点击选中
|
||||||
async getData() {
|
rowClick(row) {
|
||||||
this.listLoading = true;
|
this.radio = row.id;
|
||||||
let form = {
|
this.radioForm = row;
|
||||||
id: "",
|
},
|
||||||
storeId: sessionStorage.getItem("parentId"),
|
//获取数据
|
||||||
};
|
async getData() {
|
||||||
if (this.selectNumber) {
|
this.listLoading = true;
|
||||||
form.type = this.selectNumber;
|
let form = {
|
||||||
}
|
id: "",
|
||||||
recTypeList(form).then((res) => {
|
storeId: sessionStorage.getItem("parentId"),
|
||||||
this.listLoading = false;
|
};
|
||||||
if (res.code === "000000") {
|
if (this.selectNumber) {
|
||||||
if (this.selcetList.length == 0) {
|
form.type = this.selectNumber;
|
||||||
this.list = res.rows;
|
}
|
||||||
} else {
|
recTypeList(form).then((res) => {
|
||||||
var list = [];
|
this.listLoading = false;
|
||||||
this.selcetList.forEach((item) => {
|
if (res.code === "000000") {
|
||||||
res.rows.forEach((items) => {
|
if (this.selcetList.length == 0) {
|
||||||
if (item.newRechargeTypeId == items.id) {
|
this.list = res.rows;
|
||||||
list.push(items);
|
} else {
|
||||||
}
|
var list = [];
|
||||||
});
|
this.selcetList.forEach((item) => {
|
||||||
});
|
res.rows.forEach((items) => {
|
||||||
this.list = list;
|
if (item.newRechargeTypeId == items.id) {
|
||||||
}
|
list.push(items);
|
||||||
} else {
|
}
|
||||||
this.$alert("查询充值列表 : " + res.message, "提示", {
|
});
|
||||||
confirmButtonText: "确定",
|
});
|
||||||
confirmButtonClass: "confirmbtnFalses",
|
this.list = list;
|
||||||
type: "warning",
|
}
|
||||||
center: true,
|
} else {
|
||||||
callback: (action) => {},
|
this.$alert("查询充值列表 : " + res.message, "提示", {
|
||||||
});
|
confirmButtonText: "确定",
|
||||||
}
|
confirmButtonClass: "confirmbtnFalses",
|
||||||
});
|
type: "warning",
|
||||||
},
|
center: true,
|
||||||
//确定返回方法
|
callback: (action) => {},
|
||||||
confirms() {
|
});
|
||||||
this.$emit("recTypeData", this.radioForm);
|
}
|
||||||
this.dialogVisible = false;
|
});
|
||||||
},
|
},
|
||||||
},
|
//确定返回方法
|
||||||
};
|
confirms() {
|
||||||
</script>
|
this.$emit("recTypeData", this.radioForm);
|
||||||
|
this.dialogVisible = false;
|
||||||
<style>
|
},
|
||||||
</style>
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
</style>
|
||||||
|
|||||||
Loading…
Reference in New Issue