Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
cfa51928
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1173
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看板
提交
cfa51928
编写于
10月 30, 2022
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ERP商品类型整改完成,支持分页查询树状表格
上级
9039cd81
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
29 addition
and
47 deletion
+29
-47
erp/src/main/resources/template/js/materialCategory/materialCategoryAdd.js
...urces/template/js/materialCategory/materialCategoryAdd.js
+1
-2
erp/src/main/resources/template/js/materialCategory/materialCategoryEdit.js
...rces/template/js/materialCategory/materialCategoryEdit.js
+5
-4
erp/src/main/resources/template/js/materialCategory/materialCategoryList.js
...rces/template/js/materialCategory/materialCategoryList.js
+20
-19
erp/src/main/resources/template/tpl/materialCategory/materialCategoryList.html
...s/template/tpl/materialCategory/materialCategoryList.html
+3
-22
未找到文件。
erp/src/main/resources/template/js/materialCategory/materialCategoryAdd.js
浏览文件 @
cfa51928
...
...
@@ -17,7 +17,6 @@ layui.config({
textool
.
init
({
eleId
:
'
remark
'
,
maxlength
:
200
});
//加载树信息
fsTree
.
render
({
id
:
"
materialCategoryType
"
,
url
:
flowableBasePath
+
"
materialcategory008
"
,
...
...
@@ -46,7 +45,7 @@ layui.config({
remark
:
$
(
"
#remark
"
).
val
(),
parentId
:
checkNodes
[
0
].
id
};
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
materialcategory002
"
,
params
:
params
,
type
:
'
json
'
,
method
:
"
POST
"
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
writeMaterialCategoryMation
"
,
params
:
params
,
type
:
'
json
'
,
method
:
"
POST
"
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
...
...
erp/src/main/resources/template/js/materialCategory/materialCategoryEdit.js
浏览文件 @
cfa51928
...
...
@@ -14,7 +14,7 @@ layui.config({
showGrid
({
id
:
"
showForm
"
,
url
:
flowableBasePath
+
"
materialcategory004
"
,
params
:
{
rowI
d
:
parent
.
rowId
},
params
:
{
i
d
:
parent
.
rowId
},
pagination
:
false
,
method
:
"
GET
"
,
template
:
$
(
"
#beanTemplate
"
).
html
(),
...
...
@@ -27,11 +27,12 @@ layui.config({
form
.
on
(
'
submit(formEditBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
params
=
{
rowI
d
:
parent
.
rowId
,
i
d
:
parent
.
rowId
,
name
:
$
(
"
#typeName
"
).
val
(),
remark
:
$
(
"
#remark
"
).
val
()
remark
:
$
(
"
#remark
"
).
val
(),
parentId
:
json
.
bean
.
parentId
};
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
materialcategory005
"
,
params
:
params
,
type
:
'
json
'
,
method
:
"
PU
T
"
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
writeMaterialCategoryMation
"
,
params
:
params
,
type
:
'
json
'
,
method
:
"
POS
T
"
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
...
...
erp/src/main/resources/template/js/materialCategory/materialCategoryList.js
浏览文件 @
cfa51928
...
...
@@ -19,19 +19,30 @@ layui.config({
method
:
'
post
'
,
url
:
flowableBasePath
+
'
materialcategory001
'
,
where
:
getTableParams
(),
even
:
true
,
page
:
true
,
limits
:
getLimits
(),
limit
:
getLimit
(),
cols
:
[[
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
field
:
'
name
'
,
title
:
'
名称
'
,
align
:
'
left
'
,
width
:
36
0
},
{
field
:
'
orderBy
'
,
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
align
:
'
center
'
,
width
:
80
},
{
field
:
'
name
'
,
title
:
'
名称
'
,
align
:
'
left
'
,
width
:
20
0
},
{
field
:
'
sort
'
,
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
align
:
'
center
'
,
width
:
80
},
{
field
:
'
remark
'
,
title
:
'
备注
'
,
align
:
'
left
'
,
width
:
200
},
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
250
,
toolbar
:
'
#tableBar
'
}
{
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
},
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
200
,
toolbar
:
'
#tableBar
'
}
]],
done
:
function
(
json
)
{
matchingLanguage
();
initTableSearchUtil
.
initAdvancedSearch
(
$
(
"
#messageTable
"
)[
0
],
json
.
searchFilter
,
form
,
"
请输入名称
"
,
function
()
{
tableTree
.
reload
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
});
}
},
{
keyId
:
'
id
'
,
keyPid
:
'
pId
'
,
keyPid
:
'
p
arent
Id
'
,
title
:
'
name
'
,
});
...
...
@@ -66,14 +77,14 @@ layui.config({
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
:
flowableBasePath
+
"
materialcategory003
"
,
params
:
{
rowI
d
:
data
.
id
},
type
:
'
json
'
,
method
:
"
DELETE
"
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
materialcategory003
"
,
params
:
{
i
d
:
data
.
id
},
type
:
'
json
'
,
method
:
"
DELETE
"
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.deleteOperationSuccessMsg
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
}
//编辑
//
编辑
function
edit
(
data
)
{
rowId
=
data
.
id
;
_openNewWindows
({
...
...
@@ -90,7 +101,7 @@ layui.config({
// 上移
function
upMove
(
data
)
{
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
materialcategory006
"
,
params
:
{
rowI
d
:
data
.
id
},
type
:
'
json
'
,
method
:
"
PUT
"
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
materialcategory006
"
,
params
:
{
i
d
:
data
.
id
},
type
:
'
json
'
,
method
:
"
PUT
"
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.moveUpOperationSuccessMsg
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
...
...
@@ -98,21 +109,13 @@ layui.config({
// 下移
function
downMove
(
data
)
{
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
materialcategory007
"
,
params
:
{
rowI
d
:
data
.
id
},
type
:
'
json
'
,
method
:
"
PUT
"
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
materialcategory007
"
,
params
:
{
i
d
:
data
.
id
},
type
:
'
json
'
,
method
:
"
PUT
"
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.moveDownOperationSuccessMsg
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
}
form
.
render
();
form
.
on
(
'
submit(formSearch)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
loadTable
();
}
return
false
;
});
// 刷新数据
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
loadTable
();
});
...
...
@@ -122,9 +125,7 @@ layui.config({
}
function
getTableParams
()
{
return
{
name
:
$
(
"
#name
"
).
val
()
};
return
$
.
extend
(
true
,
{},
initTableSearchUtil
.
getSearchValue
(
"
messageTable
"
));
}
exports
(
'
materialCategoryList
'
,
{});
...
...
erp/src/main/resources/template/tpl/materialCategory/materialCategoryList.html
浏览文件 @
cfa51928
...
...
@@ -5,37 +5,18 @@
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
<style
type=
"text/css"
>
.layui-table-view
.layui-table
th
,
.layui-table-view
.layui-table
td
{
display
:
inline-block
;
}
</style>
</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"
>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
名称
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"name"
name=
"name"
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=
"1568558491168"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.addBtn"
></language></button>
<button
id=
"reloadTable"
class=
"winui-toolbtn
search-table-btn-right
"
><i
class=
"fa fa-refresh"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.refreshDataBtn"
></language></button>
<button
id=
"addBean"
class=
"winui-toolbtn
search-table-btn-right
"
auth=
"1568558491168"
><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
(
'
1568558
823143
'
)){
}}
{{
#
if
(
auth
(
'
1568558
491168
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-normal
"
lay
-
event
=
"
edit
"
><
language
showName
=
"
com.skyeye.editBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1568558794203
'
)){
}}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录