提交 c4dd2801 编写于 作者: doc_wei's avatar doc_wei

套餐订单购买完成70%

上级 0f26a774
var rowId = "";
var memberMation = {};
layui.config({
base: basePath,
version: skyeyeVersion
......@@ -39,8 +41,7 @@ layui.config({
return "<span class='state-error'>参数错误</span>";
}
}},
{ field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], align: 'center', width: 140 },
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 150, toolbar: '#tableBar'}
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 300, toolbar: '#tableBar'}
]],
done: function(){
matchingLanguage();
......@@ -62,6 +63,8 @@ layui.config({
selectMember(data)
}else if(layEvent == 'memberCar'){ //车辆信息
memberCar(data)
}else if(layEvent == 'mealList'){ //套餐购买信息
mealList(data)
}
});
......@@ -152,6 +155,20 @@ layui.config({
});
}
// 套餐购买信息
function mealList(data){
rowId = data.id;
memberMation = data;
_openNewWindows({
url: "../../tpl/mealOrder/memberMealOrderList.html",
title: '套餐购买信息',
pageId: "memberMealOrderList",
area: ['90vw', '90vh'],
callBack: function(refreshCode){
}
});
}
//添加会员
$("body").on("click", "#addBean", function(){
_openNewWindows({
......
......@@ -62,6 +62,9 @@
{{# if(auth('1644234235243')){ }}
<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="memberCar">车辆信息</a>
{{# } }}
{{# if(auth('1644239451422')){ }}
<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="mealList">套餐购买</a>
{{# } }}
</script>
</div>
<script src="../../assets/lib/layui/layui.js"></script>
......
var rowId = "";
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'table', 'jquery', 'winui', 'form', 'fsCommon'], function (exports) {
winui.renderColor();
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$,
form = layui.form,
table = layui.table;
// 设置提示信息
var s = "套餐选择规则:1.单选,双击指定行数据即可选中";
s += '如没有查到要选择的套餐,请检查套餐信息是否满足当前规则。';
$("#showInfo").html(s);
initTable();
function initTable(){
table.render({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: shopBasePath + 'meal001',
where: getTableParams(),
even: true,
page: true,
limits: [8, 16, 24, 32, 40, 48, 56],
limit: 8,
cols: [[
{ type: 'radio'},
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers'},
{ field: 'title', title: '套餐名称', align: 'left', width: 200, templet: function(d){
return '<a lay-event="select" class="notice-title-click">' + d.title + '</a>';
}},
{ field: 'logo', title: 'LOGO', align: 'center', width: 60, templet: function(d){
return '<img src="' + fileBasePath + d.logo + '" class="photo-img" lay-event="logo">';
}},
{ field: 'mealNum', title: '可使用次数', width: 120 },
{ field: 'type', title: '套餐分类', width: 100, align: "center", templet: function(d){
if(d.type == 1){
return "保养套餐";
}
return "-";
}},
{ field: 'price', title: '价格', width: 100 }
]],
done: function(res, curr, count){
matchingLanguage();
$('#messageTable').next().find('.layui-table-body').find("table" ).find("tbody").children("tr").on('dblclick',function(){
var dubClick = $('#messageTable').next().find('.layui-table-body').find("table").find("tbody").find(".layui-table-hover");
dubClick.find("input[type='radio']").prop("checked", true);
form.render();
var chooseIndex = JSON.stringify(dubClick.data('index'));
var obj = res.rows[chooseIndex];
parent.mealMation = obj;
parent.refreshCode = '0';
parent.layer.close(index);
});
$('#messageTable').next().find('.layui-table-body').find("table" ).find("tbody").children("tr").on('click',function(){
var click = $('#messageTable').next().find('.layui-table-body').find("table").find("tbody").find(".layui-table-hover");
click.find("input[type='radio']").prop("checked", true);
form.render();
})
}
});
table.on('tool(messageTable)', function (obj) {
var data = obj.data;
var layEvent = obj.event;
if (layEvent === 'select') { //详情
details(data);
}
});
form.render();
}
// 详情
function details(data){
rowId = data.id;
_openNewWindows({
url: "../../tpl/meal/mealInfo.html",
title: systemLanguage["com.skyeye.detailsPageTitle"][languageType],
pageId: "mealInfo",
area: ['90vw', '90vh'],
callBack: function(refreshCode){
}
});
}
form.render();
form.on('submit(formSearch)', function (data) {
if (winui.verifyForm(data.elem)) {
table.reload("messageTable", {page: {curr: 1}, where: getTableParams()});
}
return false;
});
$("body").on("click", "#reloadTable", function(){
loadTable();
});
function loadTable(){
table.reload("messageTable", {where: getTableParams()});
}
function getTableParams(){
return {
title: $("#title").val(),
state: 2
};
}
exports('mealChoose', {});
});
\ No newline at end of file
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'table', 'jquery', 'winui'], function (exports) {
winui.renderColor();
layui.use(['form'], function (form) {
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$;
var orderNum = "";
AjaxPostUtil.request({url: shopBasePath + "mealOrder002", params: {id: parent.rowId}, type: 'json', method: "GET", callback: function(json){
if(json.returnCode == 0){
orderNum = json.bean.orderNum;
$("#payPrice").val(json.bean.payablePrice);
}else{
winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
}
}, async: false});
matchingLanguage();
form.render();
form.on('submit(formAddBean)', function (data) {
if (winui.verifyForm(data.elem)) {
var params = {
out_trade_no: orderNum,
total_fee: parseFloat($("#payPrice").val()).toFixed(2) * 100,
};
AjaxPostUtil.request({url: shopBasePath + "mealOrderNotify", params: params, type: 'json', method: "POST", callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
}else{
winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
}
}, async: true});
}
return false;
});
$("body").on("click", "#cancle", function(){
parent.layer.close(index);
});
});
});
\ No newline at end of file
var rowId = "";
var memberMation = {};
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'table', 'jquery', 'winui', 'form'], function (exports) {
winui.renderColor();
var $ = layui.$,
form = layui.form,
table = layui.table;
authBtn('1644239500255');
memberMation = parent.memberMation;
table.render({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: shopBasePath + 'mealOrder001',
where: getTableParams(),
even: true,
page: true,
limits: getLimits(),
limit: getLimit(),
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], fixed: 'left', type: 'numbers'},
{ field: 'orderNum', title: '订单号', align: 'left', width: 180, fixed: 'left', templet: function(d){
return '<a lay-event="select" class="notice-title-click">' + d.orderNum + '</a>';
}},
{ field: 'contacts', title: '会员名称', width: 100 },
{ field: 'phone', title: '会员手机号', width: 100, align: "center"},
{ field: 'payablePrice', title: '应付金额', width: 100, align: "left"},
{ field: 'state', title: '支付状态', width: 80, align: "center", templet: function(d){
if(d.state == 1){
return "待支付";
}else{
return "已支付";
}
}},
{ field: 'payPrice', title: '实付金额', width: 100, align: "left"},
{ field: 'payTime', title: '实付日期', align: 'center', width: 150 },
{ field: 'type', title: '订单来源', width: 80, align: "center", templet: function(d){
if(d.type == 1){
return "线上下单";
}else{
return "线下下单";
}
}},
{ field: 'createName', title: '录入人', width: 120 },
{ field: 'createTime', title: '单据日期', align: 'center', width: 150 },
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 150, toolbar: '#tableBar'}
]],
done: function(){
matchingLanguage();
}
});
table.on('tool(messageTable)', function (obj) {
var data = obj.data;
var layEvent = obj.event;
if (layEvent === 'delete') { // 删除
delet(data);
}else if(layEvent == 'select'){ // 详情
select(data)
}
});
// 删除
function delet(data){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
layer.close(index);
AjaxPostUtil.request({url: shopBasePath + "deleteMealOrder", params: {id: data.id}, type: 'json', method: "DELETE", callback: function(json){
if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable();
}else{
winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
}
}});
});
}
// 详情
function select(data){
rowId = data.id;
_openNewWindows({
url: "../../tpl/meal/mealInfo.html",
title: systemLanguage["com.skyeye.detailsPageTitle"][languageType],
pageId: "mealInfo",
area: ['90vw', '90vh'],
callBack: function(refreshCode){
}
});
}
// 添加
$("body").on("click", "#addBean", function(){
_openNewWindows({
url: "../../tpl/mealOrder/storeMealOrderAdd.html",
title: systemLanguage["com.skyeye.addPageTitle"][languageType],
pageId: "storeMealOrderAdd",
area: ['90vw', '90vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1,time: 2000});
loadTable();
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
});
form.render();
form.on('submit(formSearch)', function (data) {
if (winui.verifyForm(data.elem)) {
table.reload("messageTable", {page: {curr: 1}, where: getTableParams()})
}
return false;
});
$("body").on("click", "#reloadTable", function() {
loadTable();
});
// 刷新
function loadTable(){
table.reload("messageTable", {where: getTableParams()});
}
function getTableParams(){
return {
orderNum: $("#orderNum").val(),
memberId: memberMation.id
};
}
exports('memberMealOrderList', {});
});
// 表格的序号
var rowNum = 1;
// 会员信息
var memberMation = {};
// 已选择的套餐信息
var mealMation = {};
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'table', 'jquery', 'winui', 'textool'], function (exports) {
winui.renderColor();
layui.use(['form'], function (form) {
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$,
textool = layui.textool;
var selOption = getFileContent('tpl/template/select-option.tpl');
var usetableTemplate = $("#usetableTemplate").html();
var memberCarHtml = "";
memberMation = parent.memberMation;
$("#memberName").html(memberMation.contacts);
// 加载我所在的门店
shopUtil.queryStaffBelongStoreList(function (json){
$("#storeId").html(getDataUseHandlebars($("#selectTemplate").html(), json));
});
textool.init({
eleId: 'remark',
maxlength: 400,
tools: ['count', 'copy', 'reset', 'clear']
});
// 获取会员拥有的车辆信息
AjaxPostUtil.request({url: shopBasePath + "memberCar001", params: {memberId: memberMation.id}, type: 'json', method: "POST", callback: function(json){
if(json.returnCode == 0){
$.each(json.rows, function (i, item){
item.name = item.modelType + "(" + item.plate + ")";
});
memberCarHtml = getDataUseHandlebars(selOption, json);
}else{
winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
}
}, async: false});
addRow();
matchingLanguage();
form.render();
form.on('submit(formAddBean)', function (data) {
if (winui.verifyForm(data.elem)) {
var tableData = new Array();
$.each($("#useTable tr"), function(i, item) {
// 获取行编号
var rowNum = $(item).attr("trcusid").replace("tr", "");
var mealMation = JSON.parse($("#mealId" + rowNum.toString()).attr("mealMaion"));
var row = {
mealId: mealMation.id,
memberCarId: $("#carId" + rowNum.toString()).val()
};
tableData.push(row);
});
if(tableData.length == 0){
winui.window.msg('请填写套餐信息.', {icon: 2,time: 2000});
return false;
}
var params = {
storeId: $("#storeId").val(),
memberId: memberMation.id,
remark: $("#remark").val(),
type: 1,
source: 2,
mealList: JSON.stringify(tableData)
};
AjaxPostUtil.request({url: shopBasePath + "insertMealOrder", params: params, type: 'json', method: "POST", callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
}else{
winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
}
}, async: true});
}
return false;
});
// 新增行
$("body").on("click", "#addRow", function() {
addRow();
});
// 删除行
$("body").on("click", "#deleteRow", function() {
deleteRow();
});
// 新增行
function addRow() {
var par = {
id: "row" + rowNum.toString(), //checkbox的id
trId: "tr" + rowNum.toString(), //行的id
mealId: "mealId" + rowNum.toString(),
num: "num" + rowNum.toString(),
price: "price" + rowNum.toString(),
carId: "carId" + rowNum.toString()
};
$("#useTable").append(getDataUseHandlebars(usetableTemplate, par));
$("#carId" + rowNum.toString()).html(memberCarHtml);
form.render();
rowNum++;
}
// 删除行
function deleteRow() {
var checkRow = $("#useTable input[type='checkbox'][name='tableCheckRow']:checked");
if(checkRow.length > 0) {
$.each(checkRow, function(i, item) {
// 移除界面上的信息
$(item).parent().parent().remove();
});
calcAllPrice();
} else {
winui.window.msg('请选择要删除的行', {icon: 2, time: 2000});
}
}
// 套餐选择
$("body").on("click", ".chooseMealBtn", function(e){
var trId = $(this).parent().parent().attr("trcusid");
_openNewWindows({
url: "../../tpl/meal/mealChoose.html",
title: "选择套餐",
pageId: "mealChoose",
area: ['90vw', '90vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
// 获取表格行号
var thisRowNum = trId.replace("tr", "");
$("#mealId" + thisRowNum.toString()).val(mealMation.title);
$("#num" + thisRowNum.toString()).html(mealMation.mealNum);
$("#price" + thisRowNum.toString()).html(mealMation.price);
$("#mealId" + thisRowNum.toString()).attr("mealMaion", JSON.stringify(mealMation));
calcAllPrice();
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
});
function calcAllPrice(){
var allPrice = "0.00";
$.each($("#useTable tr"), function(i, item) {
// 获取行编号
var rowNum = $(item).attr("trcusid").replace("tr", "");
var mealMationJson = $("#mealId" + rowNum.toString()).attr("mealMaion");
if(!isNull(mealMationJson)){
var mealMation = JSON.parse(mealMationJson);
allPrice = sum(allPrice, mealMation.unformatPrice);
}
});
$("#allPrice").html(allPrice + "");
}
$("body").on("click", "#cancle", function(){
parent.layer.close(index);
});
});
});
\ No newline at end of file
......@@ -10,7 +10,6 @@ layui.config({
var $ = layui.$,
form = layui.form,
table = layui.table;
authBtn('1644054570044');
// 加载我所在的门店
shopUtil.queryStaffBelongStoreList(function (json){
......@@ -21,7 +20,7 @@ layui.config({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: shopBasePath + 'meal001',
url: shopBasePath + 'mealOrder001',
where: getTableParams(),
even: true,
page: true,
......@@ -29,31 +28,30 @@ layui.config({
limit: getLimit(),
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], fixed: 'left', type: 'numbers'},
{ field: 'title', title: '套餐名称', align: 'left', width: 200, fixed: 'left', templet: function(d){
return '<a lay-event="select" class="notice-title-click">' + d.title + '</a>';
{ field: 'orderNum', title: '订单号', align: 'left', width: 180, fixed: 'left', templet: function(d){
return '<a lay-event="select" class="notice-title-click">' + d.orderNum + '</a>';
}},
{ field: 'logo', title: 'LOGO', align: 'center', width: 60, templet: function(d){
return '<img src="' + fileBasePath + d.logo + '" class="photo-img" lay-event="logo">';
}},
{ field: 'mealNum', title: '可使用次数', width: 120 },
{ field: 'type', title: '套餐分类', width: 100, align: "center", templet: function(d){
if(d.type == 1){
return "保养套餐";
}
return "-";
}},
{ field: 'state', title: '状态', width: 80, align: "center", templet: function(d){
if(d.state == 1){
return "下线";
}else{
return "上线";
}
}},
{ field: 'price', title: '价格', width: 100 },
{ field: 'createName', title: systemLanguage["com.skyeye.createName"][languageType], width: 120 },
{ field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], align: 'center', width: 150 },
{ field: 'lastUpdateName', title: systemLanguage["com.skyeye.lastUpdateName"][languageType], align: 'left', width: 120 },
{ field: 'lastUpdateTime', title: systemLanguage["com.skyeye.lastUpdateTime"][languageType], align: 'center', width: 150},
{ field: 'contacts', title: '会员名称', width: 100 },
{ field: 'phone', title: '会员手机号', width: 100, align: "center"},
{ field: 'payablePrice', title: '应付金额', width: 100, align: "left"},
{ field: 'state', title: '支付状态', width: 80, align: "center", templet: function(d){
if(d.state == 1){
return "待支付";
}else{
return "已支付";
}
}},
{ field: 'payPrice', title: '实付金额', width: 100, align: "left"},
{ field: 'payTime', title: '实付日期', align: 'center', width: 150 },
{ field: 'type', title: '订单来源', width: 80, align: "center", templet: function(d){
if(d.type == 1){
return "线上下单";
}else{
return "线下下单";
}
}},
{ field: 'createName', title: '录入人', width: 120 },
{ field: 'createTime', title: '单据日期', align: 'center', width: 150 },
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 150, toolbar: '#tableBar'}
]],
done: function(){
......@@ -64,47 +62,27 @@ layui.config({
table.on('tool(messageTable)', function (obj) {
var data = obj.data;
var layEvent = obj.event;
if (layEvent === 'edit') { // 编辑
edit(data);
}else if (layEvent === 'delete') { // 删除
if (layEvent === 'delete') { // 删除
delet(data);
}else if(layEvent == 'select'){ // 详情
select(data)
}else if (layEvent === 'logo') { // logo预览
systemCommonUtil.showPicImg(fileBasePath + data.logo);
}else if(layEvent == 'complatePay'){ // 完成支付
complatePay(data)
}
});
// 编辑
function edit(data){
rowId = data.id;
_openNewWindows({
url: "../../tpl/meal/mealEdit.html",
title: systemLanguage["com.skyeye.editPageTitle"][languageType],
pageId: "mealEdit",
area: ['90vw', '90vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1,time: 2000});
loadTable();
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}
// 删除
function delet(data){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
layer.close(index);
AjaxPostUtil.request({url: shopBasePath + "meal004", params: {rowId: data.id}, type: 'json', method: "DELETE", callback: function(json){
if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable();
}else{
winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
}
}});
AjaxPostUtil.request({url: shopBasePath + "deleteMealOrder", params: {id: data.id}, type: 'json', method: "DELETE", callback: function(json){
if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable();
}else{
winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
}
}});
});
}
......@@ -121,12 +99,13 @@ layui.config({
});
}
// 添加
$("body").on("click", "#addBean", function(){
// 完成支付
function complatePay(data){
rowId = data.id;
_openNewWindows({
url: "../../tpl/meal/mealAdd.html",
title: systemLanguage["com.skyeye.addPageTitle"][languageType],
pageId: "mealAdd",
url: "../../tpl/mealOrder/complatePayMealOrder.html",
title: '完成支付',
pageId: "complatePayMealOrder",
area: ['90vw', '90vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
......@@ -136,7 +115,7 @@ layui.config({
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
});
}
form.render();
form.on('submit(formSearch)', function (data) {
......@@ -156,11 +135,15 @@ layui.config({
}
function getTableParams(){
var storeId = $("#storeId").val();
if(isNull(storeId)){
storeId = "-";
}
return {
orderNum: $("#orderNum").val(),
memberName: $("#memberName").val(),
memberPhone: $("#memberPhone").val(),
memberPlate: $("#memberPlate").val()
storeId: storeId
};
}
......
......@@ -30,7 +30,7 @@
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">套餐价格<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="price" name="price" win-verify="required|double" placeholder="请输入套餐价格" class="layui-input"/>
<input type="text" id="price" name="price" win-verify="required|money" placeholder="请输入套餐价格" class="layui-input"/>
</div>
</div>
<div class="layui-form-item layui-col-xs12">
......
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<div class="txtcenter" style="margin:0 auto;padding-top:10px;">
<div class="winui-tip alert-info" id="showInfo">
</div>
<form class="layui-form layui-form-pane" action="" autocomplete="off">
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label">套餐名称</label>
<div class="layui-input-inline">
<input type="text" id="title" name="title" placeholder="请输入套餐名称" class="layui-input" />
</div>
<button type="reset" class="layui-btn layui-btn-primary list-form-search"><language showName="com.skyeye.reset"></language></button>
<button class="layui-btn list-form-search" lay-submit lay-filter="formSearch"><language showName="com.skyeye.search2"></language></button>
</div>
</div>
</form>
</div>
<div class="winui-toolbar">
<div class="winui-tool">
<button id="reloadTable" class="winui-toolbtn"><i class="fa fa-refresh" aria-hidden="true"></i><language showName="com.skyeye.refreshDataBtn"></language></button>
</div>
</div>
<div style="margin:auto 10px;">
<table id="messageTable" lay-filter="messageTable"></table>
</div>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/meal/'}).use('mealChoose');
</script>
</body>
</html>
\ No newline at end of file
......@@ -36,7 +36,7 @@
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">套餐价格<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="price" name="price" win-verify="required|double" placeholder="请输入套餐价格" class="layui-input" value="{{price}}"/>
<input type="text" id="price" name="price" win-verify="required|money" placeholder="请输入套餐价格" class="layui-input" value="{{price}}"/>
</div>
</div>
<div class="layui-form-item layui-col-xs12">
......
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<div style="padding:20px; margin:0 auto;">
<form class="layui-form" action="" id="showForm">
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">实付金额<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="payPrice" name="payPrice" win-verify="required|money" placeholder="请输入实付金额" class="layui-input"/>
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<div class="layui-input-block">
<button class="winui-btn" id="cancle"><language showName="com.skyeye.cancel"></language></button>
<button class="winui-btn" lay-submit lay-filter="formAddBean">完成支付</button>
</div>
</div>
</form>
</div>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/mealOrder/'}).use('complatePayMealOrder');
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<div class="txtcenter" style="margin:0 auto;padding-top:10px;">
<form class="layui-form layui-form-pane" action="" autocomplete="off">
<div class="layui-form-item" style="margin-top: 10px;">
<div class="layui-inline">
<label class="layui-form-label">订单编号</label>
<div class="layui-input-inline">
<input type="text" id="orderNum" name="orderNum" placeholder="请输入订单编号" class="layui-input" />
</div>
<button type="reset" class="layui-btn layui-btn-primary list-form-search"><language showName="com.skyeye.reset"></language></button>
<button class="layui-btn list-form-search" lay-submit lay-filter="formSearch"><language showName="com.skyeye.search2"></language></button>
</div>
</div>
</form>
</div>
<div class="winui-toolbar">
<div class="winui-tool">
<button id="reloadTable" class="winui-toolbtn"><i class="fa fa-refresh" aria-hidden="true"></i><language showName="com.skyeye.refreshDataBtn"></language></button>
<button id="addBean" class="winui-toolbtn" auth="1644239500255"><i class="fa fa-plus" aria-hidden="true"></i><language showName="com.skyeye.addBtn"></language></button>
</div>
</div>
<div style="margin:auto 10px;">
<table id="messageTable" lay-filter="messageTable"></table>
<script type="text/html" id="tableBar">
{{# if(d.state == 1 && auth('1644239549850')){ }}
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete"><language showName="com.skyeye.deleteBtn"></language></a>
{{# } }}
</script>
</div>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/mealOrder/'}).use('memberMealOrderList');
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<div style="padding:20px; margin:0 auto;">
<form class="layui-form" action="" id="showForm">
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">门店<i class="red">*</i></label>
<div class="layui-input-block">
<select id="storeId" name="storeId" lay-filter="storeId" lay-search="">
</select>
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">会员<i class="red">*</i></label>
<div class="layui-input-block ver-center" id="memberName">
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">套餐</label>
<div class="layui-input-block">
<div class="winui-toolbar">
<div class="winui-tool" style="text-align: left;">
<button id="addRow" class="winui-toolbtn" type="button"><i class="fa fa-plus" aria-hidden="true"></i>新增行</button>
<button id="deleteRow" class="winui-toolbtn" type="button"><i class="fa fa-trash-o" aria-hidden="true"></i>删除行</button>
</div>
</div>
<table class="layui-table">
<thead>
<tr>
<th style="width: 30px;"></th>
<th style="width: 150px;">套餐<i class="red">*</i></th>
<th style="width: 100px;">可使用次数</th>
<th style="width: 100px;">金额</th>
<th style="width: 100px;">车辆<i class="red">*</i></th>
</tr>
</thead>
<tbody id="useTable" class="insurance-table">
</tbody>
</table>
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">总价</label>
<div class="layui-input-block" id="allPrice">
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">备注</label>
<div class="layui-input-block">
<textarea id="remark" name="remark" placeholder="请输入备注信息" maxlength="400" class="layui-textarea" style="height: 100px;"></textarea>
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<div class="layui-input-block">
<button class="winui-btn" id="cancle"><language showName="com.skyeye.cancel"></language></button>
<button class="winui-btn" lay-submit lay-filter="formAddBean"><language showName="com.skyeye.save"></language></button>
</div>
</div>
</form>
</div>
<script type="text/x-handlebars-template" id="usetableTemplate">
<tr trcusid="{{trId}}">
<td><input type="checkbox" rowId="{{id}}" lay-filter="checkboxProperty" name="tableCheckRow"/></td>
<td>
<input type="text" id="{{mealId}}" name="{{mealId}}" placeholder="请选择套餐" class="layui-input" readonly="readonly"/>
<i class="fa fa-plus-circle input-icon chooseMealBtn" style="top: 12px;"></i>
</td>
<td id="{{num}}"></td>
<td id="{{price}}"></td>
<td>
<select id="{{carId}}" name="{{carId}}" win-verify="required" lay-search="">
</select>
</td>
</tr>
</script>
<script type="text/x-handlebars-template" id="selectTemplate">
{{#each rows}}
<option value="{{id}}">{{name}}</option>
{{/each}}
</script>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/mealOrder/'}).use('storeMealOrderAdd');
</script>
</body>
</html>
\ No newline at end of file
......@@ -8,15 +8,15 @@
</head>
<body>
<div class="txtcenter" style="margin:0 auto;padding-top:10px;">
<div class="winui-toolbar layui-col-xs12">
<div class="winui-tool layui-col-xs3">
<select id="storeId" name="storeId" lay-filter="storeId" lay-search="">
<form class="layui-form layui-form-pane layui-col-xs12" action="" autocomplete="off">
<div class="winui-toolbar layui-col-xs12">
<div class="winui-tool layui-col-xs3">
<select id="storeId" name="storeId" lay-filter="storeId" lay-search="">
</select>
</select>
</div>
</div>
</div>
<form class="layui-form layui-form-pane" action="" autocomplete="off">
<div class="layui-form-item">
<div class="layui-form-item layui-col-xs12" style="margin-top: 10px;">
<div class="layui-inline">
<label class="layui-form-label">订单编号</label>
<div class="layui-input-inline">
......@@ -30,34 +30,31 @@
<div class="layui-input-inline">
<input type="text" id="memberPhone" name="memberPhone" placeholder="请输入会员手机号" class="layui-input" />
</div>
<label class="layui-form-label">车牌号</label>
<div class="layui-input-inline">
<input type="text" id="memberPlate" name="memberPlate" placeholder="请输入车牌号" class="layui-input" />
</div>
<button type="reset" class="layui-btn layui-btn-primary list-form-search"><language showName="com.skyeye.reset"></language></button>
<button class="layui-btn list-form-search" lay-submit lay-filter="formSearch"><language showName="com.skyeye.search2"></language></button>
</div>
</div>
</form>
</div>
<div class="winui-toolbar">
<div class="winui-toolbar layui-col-xs12">
<div class="winui-tool">
<button id="reloadTable" class="winui-toolbtn"><i class="fa fa-refresh" aria-hidden="true"></i><language showName="com.skyeye.refreshDataBtn"></language></button>
<button id="addBean" class="winui-toolbtn" auth="1644054570044"><i class="fa fa-plus" aria-hidden="true"></i><language showName="com.skyeye.addBtn"></language></button>
</div>
</div>
<div style="margin:auto 10px;">
<table id="messageTable" lay-filter="messageTable"></table>
<script type="text/html" id="tableBar">
{{# if(auth('1644054579565')){ }}
{{# if(d.state == 1 && auth('1644239605004')){ }}
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete"><language showName="com.skyeye.deleteBtn"></language></a>
{{# } }}
{{# if(d.state == 1 && auth('1644250434164')){ }}
<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="complatePay">完成支付</a>
{{# } }}
</script>
</div>
<script type="text/x-handlebars-template" id="selectTemplate">
<option value="-">请选择</option>
{{#each rows}}
<option value="{{id}}">{{name}}</option>
{{/each}}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册