Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
2860daf0
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看板
提交
2860daf0
编写于
3月 08, 2022
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
套餐订单新增性质属性
上级
36187003
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
57 addition
and
0 deletion
+57
-0
shop/src/main/resources/template/js/mealOrder/allMealOrderList.js
.../main/resources/template/js/mealOrder/allMealOrderList.js
+7
-0
shop/src/main/resources/template/js/mealOrder/memberMealOrderList.js
...in/resources/template/js/mealOrder/memberMealOrderList.js
+1
-0
shop/src/main/resources/template/js/mealOrder/storeMealOrderAdd.js
...main/resources/template/js/mealOrder/storeMealOrderAdd.js
+6
-0
shop/src/main/resources/template/js/mealOrder/storeMealOrderList.js
...ain/resources/template/js/mealOrder/storeMealOrderList.js
+8
-0
shop/src/main/resources/template/tpl/mealOrder/allMealOrderList.html
...in/resources/template/tpl/mealOrder/allMealOrderList.html
+5
-0
shop/src/main/resources/template/tpl/mealOrder/storeMealOrderAdd.html
...n/resources/template/tpl/mealOrder/storeMealOrderAdd.html
+8
-0
shop/src/main/resources/template/tpl/mealOrder/storeMealOrderList.html
.../resources/template/tpl/mealOrder/storeMealOrderList.html
+5
-0
web/src/main/resources/template/assets/lib/layui/customer/shopUtil.js
.../resources/template/assets/lib/layui/customer/shopUtil.js
+17
-0
未找到文件。
shop/src/main/resources/template/js/mealOrder/allMealOrderList.js
浏览文件 @
2860daf0
...
...
@@ -24,6 +24,11 @@ layui.config({
});
});
// 加载套餐订单性质
shopUtil
.
queryMealOrderNatureList
(
function
(
json
){
$
(
"
#natureId
"
).
html
(
getDataUseHandlebars
(
selOption
,
json
));
});
table
.
render
({
id
:
'
messageTable
'
,
elem
:
'
#messageTable
'
,
...
...
@@ -47,6 +52,7 @@ layui.config({
{
field
:
'
state
'
,
title
:
'
订单状态
'
,
width
:
80
,
align
:
"
center
"
,
rowspan
:
'
2
'
,
templet
:
function
(
d
){
return
shopUtil
.
getMealOrderStateName
(
d
);
}},
{
field
:
'
natureName
'
,
title
:
'
订单性质
'
,
width
:
80
,
rowspan
:
'
2
'
,
align
:
"
center
"
},
{
field
:
'
payTime
'
,
title
:
'
支付时间
'
,
align
:
'
center
'
,
rowspan
:
'
2
'
,
width
:
150
},
{
field
:
'
type
'
,
title
:
'
订单来源
'
,
width
:
80
,
align
:
"
center
"
,
rowspan
:
'
2
'
,
templet
:
function
(
d
){
if
(
d
.
type
==
1
){
...
...
@@ -112,6 +118,7 @@ layui.config({
orderNum
:
$
(
"
#orderNum
"
).
val
(),
memberName
:
$
(
"
#memberName
"
).
val
(),
memberPhone
:
$
(
"
#memberPhone
"
).
val
(),
natureId
:
$
(
"
#natureId
"
).
val
(),
state
:
$
(
"
#state
"
).
val
(),
areaId
:
$
(
"
#areaId
"
).
val
(),
storeId
:
$
(
"
#storeId
"
).
val
()
...
...
shop/src/main/resources/template/js/mealOrder/memberMealOrderList.js
浏览文件 @
2860daf0
...
...
@@ -38,6 +38,7 @@ layui.config({
{
field
:
'
state
'
,
title
:
'
订单状态
'
,
width
:
80
,
align
:
"
center
"
,
templet
:
function
(
d
){
return
shopUtil
.
getMealOrderStateName
(
d
);
}},
{
field
:
'
natureName
'
,
title
:
'
订单性质
'
,
width
:
80
,
align
:
"
center
"
},
{
field
:
'
payTime
'
,
title
:
'
支付时间
'
,
align
:
'
center
'
,
width
:
150
},
{
field
:
'
type
'
,
title
:
'
订单来源
'
,
width
:
80
,
align
:
"
center
"
,
templet
:
function
(
d
){
if
(
d
.
type
==
1
){
...
...
shop/src/main/resources/template/js/mealOrder/storeMealOrderAdd.js
浏览文件 @
2860daf0
...
...
@@ -48,6 +48,11 @@ layui.config({
$
(
"
#allPrice
"
).
html
(
"
0 元
"
);
});
// 加载套餐订单性质
shopUtil
.
queryMealOrderNatureList
(
function
(
json
){
$
(
"
#natureId
"
).
html
(
getDataUseHandlebars
(
$
(
"
#selectTemplate
"
).
html
(),
json
));
});
textool
.
init
({
eleId
:
'
remark
'
,
maxlength
:
400
,
...
...
@@ -100,6 +105,7 @@ layui.config({
var
params
=
{
storeId
:
$
(
"
#storeId
"
).
val
(),
natureId
:
$
(
"
#natureId
"
).
val
(),
memberId
:
memberMation
.
id
,
remark
:
$
(
"
#remark
"
).
val
(),
type
:
2
,
...
...
shop/src/main/resources/template/js/mealOrder/storeMealOrderList.js
浏览文件 @
2860daf0
...
...
@@ -10,12 +10,18 @@ layui.config({
var
$
=
layui
.
$
,
form
=
layui
.
form
,
table
=
layui
.
table
;
var
selOption
=
getFileContent
(
'
tpl/template/select-option.tpl
'
);
// 加载我所在的门店
shopUtil
.
queryStaffBelongStoreList
(
function
(
json
){
$
(
"
#storeId
"
).
html
(
getDataUseHandlebars
(
$
(
"
#selectTemplate
"
).
html
(),
json
));
});
// 加载套餐订单性质
shopUtil
.
queryMealOrderNatureList
(
function
(
json
){
$
(
"
#natureId
"
).
html
(
getDataUseHandlebars
(
selOption
,
json
));
});
form
.
on
(
'
select(storeId)
'
,
function
(
data
)
{
table
.
reload
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()})
});
...
...
@@ -42,6 +48,7 @@ layui.config({
{
field
:
'
state
'
,
title
:
'
订单状态
'
,
width
:
80
,
align
:
"
center
"
,
templet
:
function
(
d
){
return
shopUtil
.
getMealOrderStateName
(
d
);
}},
{
field
:
'
natureName
'
,
title
:
'
订单性质
'
,
width
:
80
,
align
:
"
center
"
},
{
field
:
'
payTime
'
,
title
:
'
支付时间
'
,
align
:
'
center
'
,
width
:
150
},
{
field
:
'
type
'
,
title
:
'
订单来源
'
,
width
:
80
,
align
:
"
center
"
,
templet
:
function
(
d
){
if
(
d
.
type
==
1
){
...
...
@@ -163,6 +170,7 @@ layui.config({
orderNum
:
$
(
"
#orderNum
"
).
val
(),
memberName
:
$
(
"
#memberName
"
).
val
(),
memberPhone
:
$
(
"
#memberPhone
"
).
val
(),
natureId
:
$
(
"
#natureId
"
).
val
(),
state
:
$
(
"
#state
"
).
val
(),
storeId
:
storeId
};
...
...
shop/src/main/resources/template/tpl/mealOrder/allMealOrderList.html
浏览文件 @
2860daf0
...
...
@@ -48,6 +48,11 @@
<option
value=
"10"
>
已取消
</option>
</select>
</div>
<label
class=
"layui-form-label"
>
订单性质
</label>
<div
class=
"layui-input-inline"
>
<select
id=
"natureId"
name=
"natureId"
lay-filter=
"natureId"
lay-search=
""
>
</select>
</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>
...
...
shop/src/main/resources/template/tpl/mealOrder/storeMealOrderAdd.html
浏览文件 @
2860daf0
...
...
@@ -23,6 +23,14 @@
</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"
>
<select
id=
"natureId"
name=
"natureId"
lay-filter=
"natureId"
lay-search=
""
win-verify=
"required"
>
</select>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
套餐
</label>
<div
class=
"layui-input-block"
>
...
...
shop/src/main/resources/template/tpl/mealOrder/storeMealOrderList.html
浏览文件 @
2860daf0
...
...
@@ -43,6 +43,11 @@
<option
value=
"10"
>
已取消
</option>
</select>
</div>
<label
class=
"layui-form-label"
>
订单性质
</label>
<div
class=
"layui-input-inline"
>
<select
id=
"natureId"
name=
"natureId"
lay-filter=
"natureId"
lay-search=
""
>
</select>
</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>
...
...
web/src/main/resources/template/assets/lib/layui/customer/shopUtil.js
浏览文件 @
2860daf0
...
...
@@ -24,6 +24,23 @@ var shopUtil = {
}
},
/**
* 获取套餐订单已启用的性质管理列表
*
* @param callback 回执函数
*/
queryMealOrderNatureList
:
function
(
callback
){
AjaxPostUtil
.
request
({
url
:
shopBasePath
+
"
queryMealOrderNatureList
"
,
params
:
{
enabled
:
1
},
type
:
'
json
'
,
method
:
"
POST
"
,
callback
:
function
(
json
)
{
if
(
json
.
returnCode
==
0
)
{
if
(
typeof
(
callback
)
==
"
function
"
)
{
callback
(
json
);
}
}
else
{
winui
.
window
.
msg
(
json
.
returnMessage
,
{
icon
:
2
,
time
:
2000
});
}
},
async
:
false
});
},
/**
* 获取套餐订单是否赠送的字段信息
*
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录