Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
c4dd2801
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1175
Star
154
Fork
127
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Skyeye
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
c4dd2801
编写于
2月 08, 2022
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
套餐订单购买完成70%
上级
0f26a774
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
792 addition
and
83 deletion
+792
-83
member/src/main/resources/template/js/member/memberList.js
member/src/main/resources/template/js/member/memberList.js
+19
-2
member/src/main/resources/template/tpl/member/memberList.html
...er/src/main/resources/template/tpl/member/memberList.html
+3
-0
shop/src/main/resources/template/js/meal/mealChoose.js
shop/src/main/resources/template/js/meal/mealChoose.js
+120
-0
shop/src/main/resources/template/js/mealOrder/complatePayMealOrder.js
...n/resources/template/js/mealOrder/complatePayMealOrder.js
+48
-0
shop/src/main/resources/template/js/mealOrder/memberMealOrderList.js
...in/resources/template/js/mealOrder/memberMealOrderList.js
+142
-0
shop/src/main/resources/template/js/mealOrder/storeMealOrderAdd.js
...main/resources/template/js/mealOrder/storeMealOrderAdd.js
+178
-0
shop/src/main/resources/template/js/mealOrder/storeMealOrderList.js
...ain/resources/template/js/mealOrder/storeMealOrderList.js
+47
-64
shop/src/main/resources/template/tpl/meal/mealAdd.html
shop/src/main/resources/template/tpl/meal/mealAdd.html
+1
-1
shop/src/main/resources/template/tpl/meal/mealChoose.html
shop/src/main/resources/template/tpl/meal/mealChoose.html
+41
-0
shop/src/main/resources/template/tpl/meal/mealEdit.html
shop/src/main/resources/template/tpl/meal/mealEdit.html
+1
-1
shop/src/main/resources/template/tpl/mealOrder/complatePayMealOrder.html
...esources/template/tpl/mealOrder/complatePayMealOrder.html
+34
-0
shop/src/main/resources/template/tpl/mealOrder/memberMealOrderList.html
...resources/template/tpl/mealOrder/memberMealOrderList.html
+46
-0
shop/src/main/resources/template/tpl/mealOrder/storeMealOrderAdd.html
...n/resources/template/tpl/mealOrder/storeMealOrderAdd.html
+100
-0
shop/src/main/resources/template/tpl/mealOrder/storeMealOrderList.html
.../resources/template/tpl/mealOrder/storeMealOrderList.html
+12
-15
未找到文件。
member/src/main/resources/template/js/member/memberList.js
浏览文件 @
c4dd2801
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
({
...
...
member/src/main/resources/template/tpl/member/memberList.html
浏览文件 @
c4dd2801
...
...
@@ -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>
...
...
shop/src/main/resources/template/js/meal/mealChoose.js
0 → 100644
浏览文件 @
c4dd2801
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
shop/src/main/resources/template/js/mealOrder/complatePayMealOrder.js
0 → 100644
浏览文件 @
c4dd2801
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
shop/src/main/resources/template/js/mealOrder/memberMealOrderList.js
0 → 100644
浏览文件 @
c4dd2801
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
'
,
{});
});
shop/src/main/resources/template/js/mealOrder/storeMealOrderAdd.js
0 → 100644
浏览文件 @
c4dd2801
// 表格的序号
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
shop/src/main/resources/template/js/mealOrder/storeMealOrderList.js
浏览文件 @
c4dd2801
...
...
@@ -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
+
'
meal
Order
001
'
,
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
:
20
0
,
fixed
:
'
left
'
,
templet
:
function
(
d
){
return
'
<a lay-event="select" class="notice-title-click">
'
+
d
.
title
+
'
</a>
'
;
{
field
:
'
orderNum
'
,
title
:
'
订单号
'
,
align
:
'
left
'
,
width
:
18
0
,
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
:
{
rowI
d
:
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
:
{
i
d
:
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/meal
Order/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
};
}
...
...
shop/src/main/resources/template/tpl/meal/mealAdd.html
浏览文件 @
c4dd2801
...
...
@@ -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"
>
...
...
shop/src/main/resources/template/tpl/meal/mealChoose.html
0 → 100644
浏览文件 @
c4dd2801
<!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
shop/src/main/resources/template/tpl/meal/mealEdit.html
浏览文件 @
c4dd2801
...
...
@@ -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
"
>
...
...
shop/src/main/resources/template/tpl/mealOrder/complatePayMealOrder.html
0 → 100644
浏览文件 @
c4dd2801
<!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
shop/src/main/resources/template/tpl/mealOrder/memberMealOrderList.html
0 → 100644
浏览文件 @
c4dd2801
<!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
shop/src/main/resources/template/tpl/mealOrder/storeMealOrderAdd.html
0 → 100644
浏览文件 @
c4dd2801
<!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
shop/src/main/resources/template/tpl/mealOrder/storeMealOrderList.html
浏览文件 @
c4dd2801
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录