Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
c123bde2
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1197
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看板
提交
c123bde2
编写于
2月 05, 2022
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
门店人员分配功能完成
上级
eeb19b95
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
227 addition
and
15 deletion
+227
-15
shop/src/main/resources/template/js/area/areaList.js
shop/src/main/resources/template/js/area/areaList.js
+6
-6
shop/src/main/resources/template/js/store/storeList.js
shop/src/main/resources/template/js/store/storeList.js
+6
-6
shop/src/main/resources/template/js/storeStaff/storeStaffDistribute.js
.../resources/template/js/storeStaff/storeStaffDistribute.js
+152
-0
shop/src/main/resources/template/tpl/storeStaff/storeStaffDistribute.html
...sources/template/tpl/storeStaff/storeStaffDistribute.html
+60
-0
userauth/src/main/resources/template/js/syseveuserstaff/sysEveUserStaffChoose.js
...rces/template/js/syseveuserstaff/sysEveUserStaffChoose.js
+2
-2
web/src/main/resources/template/assets/lib/layui/customer/ajaxPostUtil.js
...ources/template/assets/lib/layui/customer/ajaxPostUtil.js
+1
-1
未找到文件。
shop/src/main/resources/template/js/area/areaList.js
浏览文件 @
c123bde2
...
...
@@ -42,16 +42,16 @@ layui.config({
var
data
=
obj
.
data
;
var
layEvent
=
obj
.
event
;
if
(
layEvent
===
'
edit
'
)
{
// 编辑
edit
member
(
data
);
edit
(
data
);
}
else
if
(
layEvent
===
'
delete
'
)
{
// 删除
delet
emember
(
data
);
delet
(
data
);
}
else
if
(
layEvent
==
'
select
'
){
// 详情
select
Member
(
data
)
select
(
data
)
}
});
// 编辑
function
edit
member
(
data
){
function
edit
(
data
){
rowId
=
data
.
id
;
_openNewWindows
({
url
:
"
../../tpl/area/areaEdit.html
"
,
...
...
@@ -69,7 +69,7 @@ layui.config({
}
// 删除
function
delet
emember
(
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
+
"
area004
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
method
:
"
DELETE
"
,
callback
:
function
(
json
){
...
...
@@ -84,7 +84,7 @@ layui.config({
}
// 详情
function
select
Member
(
data
){
function
select
(
data
){
rowId
=
data
.
id
;
_openNewWindows
({
url
:
"
../../tpl/area/areaInfo.html
"
,
...
...
shop/src/main/resources/template/js/store/storeList.js
浏览文件 @
c123bde2
...
...
@@ -48,16 +48,16 @@ layui.config({
var
data
=
obj
.
data
;
var
layEvent
=
obj
.
event
;
if
(
layEvent
===
'
edit
'
)
{
// 编辑
edit
member
(
data
);
edit
(
data
);
}
else
if
(
layEvent
===
'
delete
'
)
{
// 删除
delet
emember
(
data
);
delet
(
data
);
}
else
if
(
layEvent
==
'
select
'
){
// 详情
select
Member
(
data
)
select
(
data
)
}
});
// 编辑
function
edit
member
(
data
){
function
edit
(
data
){
rowId
=
data
.
id
;
_openNewWindows
({
url
:
"
../../tpl/store/storeEdit.html
"
,
...
...
@@ -75,7 +75,7 @@ layui.config({
}
// 删除
function
delet
emember
(
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
+
"
store004
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
method
:
"
DELETE
"
,
callback
:
function
(
json
){
...
...
@@ -90,7 +90,7 @@ layui.config({
}
// 详情
function
select
Member
(
data
){
function
select
(
data
){
rowId
=
data
.
id
;
_openNewWindows
({
url
:
"
../../tpl/store/storeInfo.html
"
,
...
...
shop/src/main/resources/template/js/storeStaff/storeStaffDistribute.js
0 → 100644
浏览文件 @
c123bde2
var
rowId
=
""
;
// 已选择的员工信息
var
checkStaffList
=
[];
// 多选
var
userStaffCheckType
=
true
;
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
(
'
1643984717466
'
);
// 加载区域
shopUtil
.
getShopAreaMation
(
function
(
json
){
$
(
"
#areaId
"
).
html
(
getDataUseHandlebars
(
getFileContent
(
'
tpl/template/select-option.tpl
'
),
json
));
loadStore
(
"
-
"
);
});
form
.
on
(
'
select(areaId)
'
,
function
(
data
)
{
var
thisRowValue
=
data
.
value
;
thisRowValue
=
isNull
(
thisRowValue
)
?
"
-
"
:
thisRowValue
;
loadStore
(
thisRowValue
);
});
matchingLanguage
();
form
.
render
();
var
chooseStoreId
=
""
;
function
loadStore
(
areaId
){
table
.
render
({
id
:
'
storeTable
'
,
elem
:
'
#storeTable
'
,
method
:
'
get
'
,
url
:
shopBasePath
+
'
store007
'
,
where
:
{
areaId
:
areaId
},
even
:
true
,
page
:
false
,
limits
:
getLimits
(),
limit
:
getLimit
(),
cols
:
[[
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
fixed
:
'
left
'
,
type
:
'
numbers
'
},
{
field
:
'
name
'
,
title
:
'
门店
'
,
align
:
'
left
'
,
width
:
150
,
templet
:
function
(
d
){
return
'
<a lay-event="select" class="notice-title-click">
'
+
d
.
name
+
'
</a>
'
;
}}
]],
done
:
function
(){
matchingLanguage
();
}
});
table
.
on
(
'
tool(storeTable)
'
,
function
(
obj
)
{
var
data
=
obj
.
data
;
var
layEvent
=
obj
.
event
;
if
(
layEvent
==
'
select
'
){
chooseStoreId
=
data
.
id
;
loadStaff
(
data
.
id
);
}
});
chooseStoreId
=
""
;
loadStaff
(
"
-
"
);
}
function
loadStaff
(
storeId
){
table
.
render
({
id
:
'
messageTable
'
,
elem
:
'
#messageTable
'
,
method
:
'
post
'
,
url
:
shopBasePath
+
'
storeStaff001
'
,
where
:
{
storeId
:
storeId
},
even
:
true
,
page
:
true
,
limits
:
getLimits
(),
limit
:
getLimit
(),
cols
:
[[
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
fixed
:
'
left
'
,
type
:
'
numbers
'
},
{
field
:
'
jobNumber
'
,
title
:
'
工号
'
,
align
:
'
left
'
,
width
:
140
},
{
field
:
'
userName
'
,
title
:
'
姓名
'
,
width
:
120
},
{
field
:
'
companyName
'
,
title
:
'
企业
'
,
width
:
150
},
{
field
:
'
departmentName
'
,
title
:
'
部门
'
,
width
:
140
},
{
field
:
'
jobName
'
,
title
:
'
职位
'
,
width
:
140
},
{
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
);
}
});
}
// 删除
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
+
"
storeStaff002
"
,
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
});
table
.
reload
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
{
storeId
:
chooseStoreId
}})
}
else
{
winui
.
window
.
msg
(
json
.
returnMessage
,
{
icon
:
2
,
time
:
2000
});
}
}});
});
}
// 添加
$
(
"
body
"
).
on
(
"
click
"
,
"
#addBean
"
,
function
(){
if
(
isNull
(
chooseStoreId
)){
winui
.
window
.
msg
(
'
请先选择门店信息.
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
checkStaffList
=
[];
_openNewWindows
({
url
:
"
../../tpl/syseveuserstaff/sysEveUserStaffChoose.html
"
,
title
:
"
选择员工
"
,
pageId
:
"
sysEveUserStaffChoose
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
var
list
=
new
Array
();
$
.
each
(
checkStaffList
,
function
(
i
,
item
){
list
.
push
(
item
.
id
);
});
var
params
=
{
storeId
:
chooseStoreId
,
staffId
:
JSON
.
stringify
(
list
)
};
AjaxPostUtil
.
request
({
url
:
shopBasePath
+
"
storeStaff003
"
,
params
:
params
,
type
:
'
json
'
,
method
:
"
POST
"
,
callback
:
function
(
json
){
if
(
json
.
returnCode
==
0
){
loadStaff
(
chooseStoreId
);
}
else
{
winui
.
window
.
msg
(
json
.
returnMessage
,
{
icon
:
2
,
time
:
2000
});
}
}});
}
}});
});
exports
(
'
storeStaffDistribute
'
,
{});
});
shop/src/main/resources/template/tpl/storeStaff/storeStaffDistribute.html
0 → 100644
浏览文件 @
c123bde2
<!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
style=
"background-color: rgb(242, 242, 242);"
>
<div
class=
"layui-fluid"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
>
<div
class=
"layui-col-xs12 margin-top-10 layui-col-space15"
>
<div
class=
"winui-toolbar layui-col-xs12"
>
<div
class=
"winui-tool layui-col-xs3"
>
<select
id=
"areaId"
name=
"areaId"
lay-filter=
"areaId"
lay-search=
""
>
</select>
</div>
</div>
<div
class=
"layui-col-xs3"
>
<div
class=
"layui-card"
>
<div
class=
"layui-card-header"
>
门店
</div>
<div
class=
"layui-card-body"
>
<table
id=
"storeTable"
lay-filter=
"storeTable"
></table>
</div>
</div>
</div>
<div
class=
"layui-col-xs9"
>
<div
class=
"layui-card"
>
<div
class=
"layui-card-header"
>
员工
</div>
<div
class=
"layui-card-body"
>
<div
class=
"winui-toolbar"
>
<div
class=
"winui-tool"
>
<button
id=
"addBean"
class=
"winui-toolbtn"
auth=
"1643984717466"
type=
"button"
><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
(
'
1643984706160
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-danger layui-btn-xs
"
lay
-
event
=
"
delete
"
><
language
showName
=
"
com.skyeye.deleteBtn
"
><
/language></
a
>
{{
#
}
}}
</script>
</div>
</div>
</div>
</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/storeStaff/
'
}).
use
(
'
storeStaffDistribute
'
);
</script>
</body>
</html>
\ No newline at end of file
userauth/src/main/resources/template/js/syseveuserstaff/sysEveUserStaffChoose.js
浏览文件 @
c123bde2
...
...
@@ -214,13 +214,13 @@ layui.config({
winui
.
window
.
msg
(
"
请选择员工
"
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
staff009
"
,
params
:
{
ids
:
selectedData
.
toString
()},
type
:
'
json
'
,
callback
:
function
(
json
){
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
staff009
"
,
params
:
{
ids
:
selectedData
.
toString
()},
type
:
'
json
'
,
method
:
"
POST
"
,
callback
:
function
(
json
){
if
(
json
.
returnCode
==
0
){
parent
.
checkStaffList
=
[].
concat
(
json
.
rows
);
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}
else
{
winui
.
window
.
msg
(
json
.
returnMessage
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
json
.
returnMessage
,
{
icon
:
2
,
time
:
2000
});
}
}});
});
...
...
web/src/main/resources/template/assets/lib/layui/customer/ajaxPostUtil.js
浏览文件 @
c123bde2
...
...
@@ -72,7 +72,7 @@ var AjaxPostUtil = {
while
(
win
!=
win
.
top
){
win
=
win
.
top
;
}
win
.
location
.
href
=
reqBasePath
+
"
/tpl/index/login.html
"
;
//XMLHttpRequest.getResponseHeader("CONTEXTPATH");
win
.
location
.
href
=
"
../..
/tpl/index/login.html
"
;
//XMLHttpRequest.getResponseHeader("CONTEXTPATH");
}
else
if
(
sessionstatus
==
"
NOAUTHPOINT
"
){
returnValue
=
eval
(
'
(
'
+
'
{"returnMessage":"您不具备该权限。","returnCode":-9999,"total":0,"rows":"","bean":""}
'
+
'
)
'
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录