Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
75406bac
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看板
提交
75406bac
编写于
6月 25, 2023
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
证照借用托管到表单布局
上级
8ea6c61a
变更
9
显示空白变更内容
内联
并排
Showing
9 changed file
with
78 addition
and
746 deletion
+78
-746
admin-assistant/src/main/resources/template/js/licenceManageBorrow/licenceManageBorrowAdd.js
...template/js/licenceManageBorrow/licenceManageBorrowAdd.js
+0
-136
admin-assistant/src/main/resources/template/js/licenceManageBorrow/licenceManageBorrowDetails.js
...late/js/licenceManageBorrow/licenceManageBorrowDetails.js
+0
-24
admin-assistant/src/main/resources/template/js/licenceManageBorrow/licenceManageBorrowEdit.js
...emplate/js/licenceManageBorrow/licenceManageBorrowEdit.js
+0
-182
admin-assistant/src/main/resources/template/js/licenceManageBorrow/licenceManageBorrowList.js
...emplate/js/licenceManageBorrow/licenceManageBorrowList.js
+45
-71
admin-assistant/src/main/resources/template/tpl/licenceManageBorrow/licenceManageBorrowAdd.html
...plate/tpl/licenceManageBorrow/licenceManageBorrowAdd.html
+0
-88
admin-assistant/src/main/resources/template/tpl/licenceManageBorrow/licenceManageBorrowDetails.html
...e/tpl/licenceManageBorrow/licenceManageBorrowDetails.html
+0
-92
admin-assistant/src/main/resources/template/tpl/licenceManageBorrow/licenceManageBorrowEdit.html
...late/tpl/licenceManageBorrow/licenceManageBorrowEdit.html
+0
-90
admin-assistant/src/main/resources/template/tpl/licenceManageBorrow/licenceManageBorrowList.html
...late/tpl/licenceManageBorrow/licenceManageBorrowList.html
+22
-52
common/src/main/resources/template/js/dsFormPage/editPageContentIsTable.js
...esources/template/js/dsFormPage/editPageContentIsTable.js
+11
-11
未找到文件。
admin-assistant/src/main/resources/template/js/licenceManageBorrow/licenceManageBorrowAdd.js
已删除
100644 → 0
浏览文件 @
8ea6c61a
var
licenceBorrows
=
new
Array
();
//证照集合
// 证照借用
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
fileUpload
'
,
'
form
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
form
=
layui
.
form
;
var
serviceClassName
=
sysServiceMation
[
"
licenceManageBorrow
"
][
"
key
"
];
var
rowNum
=
1
;
//表格的序号
var
nameHtml
=
""
;
var
usetableTemplate
=
$
(
"
#usetableTemplate
"
).
html
();
var
selOption
=
getFileContent
(
'
tpl/template/select-option.tpl
'
);
skyeyeEnclosure
.
init
(
'
enclosureUpload
'
);
// 获取当前登录员工信息
systemCommonUtil
.
getSysCurrentLoginUserMation
(
function
(
data
)
{
$
(
"
#useTitle
"
).
html
(
"
证照借用申请单-
"
+
getYMDFormatDate
()
+
'
-
'
+
data
.
bean
.
userName
);
$
(
"
#useName
"
).
html
(
data
.
bean
.
userName
);
});
initLincenceNameHtml
();
// 初始化证照名称
function
initLincenceNameHtml
()
{
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
licenceborrow008
"
,
params
:
{},
type
:
'
json
'
,
callback
:
function
(
json
)
{
nameHtml
=
getDataUseHandlebars
(
selOption
,
json
);
//加载类别数据
matchingLanguage
();
//渲染
form
.
render
();
//初始化一行数据
addRow
();
}});
}
// 保存为草稿
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
saveData
(
"
1
"
,
""
);
}
return
false
;
});
// 提交审批
form
.
on
(
'
submit(formSubBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
activitiUtil
.
startProcess
(
serviceClassName
,
null
,
function
(
approvalId
)
{
saveData
(
"
2
"
,
approvalId
);
});
}
return
false
;
});
function
saveData
(
subType
,
approvalId
)
{
// 获取已选证照数据
var
rowTr
=
$
(
"
#useTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
winui
.
window
.
msg
(
'
请选择需要借用的证照~
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
var
tableData
=
new
Array
();
var
noError
=
false
;
//循环遍历表格数据时,是否有其他错误信息
$
.
each
(
rowTr
,
function
(
i
,
item
)
{
var
rowNum
=
$
(
item
).
attr
(
"
trcusid
"
).
replace
(
"
tr
"
,
""
);
var
row
=
{
licenceId
:
$
(
"
#licenceId
"
+
rowNum
).
val
(),
remark
:
$
(
"
#remark
"
+
rowNum
).
val
()
};
tableData
.
push
(
row
);
});
if
(
noError
)
{
return
false
;
}
var
params
=
{
title
:
$
(
"
#useTitle
"
).
html
(),
remark
:
$
(
"
#remark
"
).
val
(),
licenceStr
:
JSON
.
stringify
(
tableData
),
enclosureInfo
:
skyeyeEnclosure
.
getEnclosureIdsByBoxId
(
'
enclosureUpload
'
),
subType
:
subType
,
// 表单类型 1.保存草稿 2.提交审批
approvalId
:
approvalId
};
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
licenceborrow002
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
}
//新增行
$
(
"
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
licenceId
:
"
licenceId
"
+
rowNum
.
toString
(),
//证照id
remark
:
"
remark
"
+
rowNum
.
toString
()
//备注id
};
$
(
"
#useTable
"
).
append
(
getDataUseHandlebars
(
usetableTemplate
,
par
));
//赋值给证照名称
$
(
"
#
"
+
"
licenceId
"
+
rowNum
.
toString
()).
html
(
nameHtml
);
form
.
render
(
'
select
'
);
form
.
render
(
'
checkbox
'
);
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
();
});
}
else
{
winui
.
window
.
msg
(
'
请选择要删除的行
'
,
{
icon
:
2
,
time
:
2000
});
}
}
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
\ No newline at end of file
admin-assistant/src/main/resources/template/js/licenceManageBorrow/licenceManageBorrowDetails.js
已删除
100644 → 0
浏览文件 @
8ea6c61a
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
;
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
licenceborrow003
"
,
params
:
{
rowId
:
parent
.
rowId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
json
.
bean
.
stateName
=
activitiUtil
.
showStateName2
(
json
.
bean
.
state
,
1
);
$
(
"
#showForm
"
).
html
(
getDataUseHandlebars
(
$
(
"
#useTemplate
"
).
html
(),
json
));
// 附件回显
skyeyeEnclosure
.
showDetails
({
"
enclosureUploadBtn
"
:
json
.
bean
.
enclosureInfo
});
matchingLanguage
();
}});
});
});
\ No newline at end of file
admin-assistant/src/main/resources/template/js/licenceManageBorrow/licenceManageBorrowEdit.js
已删除
100644 → 0
浏览文件 @
8ea6c61a
var
licenceBorrows
=
new
Array
();
//证照集合
// 证照借用
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
fileUpload
'
,
'
form
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
form
=
layui
.
form
;
var
serviceClassName
=
sysServiceMation
[
"
licenceManageBorrow
"
][
"
key
"
];
var
rowNum
=
1
;
//表格的序号
var
nameHtml
=
""
;
var
usetableTemplate
=
$
(
"
#usetableTemplate
"
).
html
();
var
selOption
=
getFileContent
(
'
tpl/template/select-option.tpl
'
);
var
sTableData
=
""
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
licenceborrow004
"
,
params
:
{
rowId
:
parent
.
rowId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
$
(
"
#useTitle
"
).
html
(
json
.
bean
.
title
);
$
(
"
#useName
"
).
html
(
json
.
bean
.
userName
);
$
(
"
#remark
"
).
val
(
json
.
bean
.
remark
);
// 附件回显
skyeyeEnclosure
.
initTypeISData
({
'
enclosureUpload
'
:
json
.
bean
.
enclosureInfo
});
if
(
json
.
bean
.
state
==
'
1
'
){
$
(
"
.typeTwo
"
).
removeClass
(
"
layui-hide
"
);
}
else
{
$
(
"
.typeOne
"
).
removeClass
(
"
layui-hide
"
);
}
sTableData
=
json
.
bean
.
goods
;
initLincenceNameHtml
();
}});
//初始化证照名称
function
initLincenceNameHtml
()
{
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
licenceborrow008
"
,
params
:
{},
type
:
'
json
'
,
callback
:
function
(
json
)
{
nameHtml
=
getDataUseHandlebars
(
selOption
,
json
);
//加载名称数据
matchingLanguage
();
//渲染
form
.
render
();
//加载表格数据
initTableAssetList
();
}});
}
//加载表格数据
function
initTableAssetList
()
{
$
.
each
(
sTableData
,
function
(
i
,
item
)
{
addDataRow
(
item
);
});
}
// 保存为草稿
form
.
on
(
'
submit(formEditBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
saveData
(
'
1
'
,
""
);
}
return
false
;
});
// 提交审批
form
.
on
(
'
submit(formSubBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
activitiUtil
.
startProcess
(
serviceClassName
,
null
,
function
(
approvalId
)
{
saveData
(
"
2
"
,
approvalId
);
});
}
return
false
;
});
// 保存
form
.
on
(
'
submit(save)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
saveData
(
'
3
'
,
""
);
}
return
false
;
});
function
saveData
(
subType
,
approvalId
)
{
// 获取已选证照数据
var
rowTr
=
$
(
"
#useTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
winui
.
window
.
msg
(
'
请选择需要借用的证照~
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
var
tableData
=
new
Array
();
var
noError
=
false
;
//循环遍历表格数据时,是否有其他错误信息
$
.
each
(
rowTr
,
function
(
i
,
item
)
{
var
rowNum
=
$
(
item
).
attr
(
"
trcusid
"
).
replace
(
"
tr
"
,
""
);
var
row
=
{
licenceId
:
$
(
"
#licenceId
"
+
rowNum
).
val
(),
remark
:
$
(
"
#remark
"
+
rowNum
).
val
()
};
tableData
.
push
(
row
);
});
if
(
noError
)
{
return
false
;
}
var
params
=
{
title
:
$
(
"
#useTitle
"
).
html
(),
remark
:
$
(
"
#remark
"
).
val
(),
licenceStr
:
JSON
.
stringify
(
tableData
),
enclosureInfo
:
skyeyeEnclosure
.
getEnclosureIdsByBoxId
(
'
enclosureUpload
'
),
rowId
:
parent
.
rowId
,
subType
:
subType
,
// 1:保存为草稿 2.提交到工作流 3.在工作流中编辑
approvalId
:
approvalId
,
};
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
licenceborrow005
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
}
//加载数据行
function
addDataRow
(
item
)
{
var
thisRowNum
=
rowNum
.
toString
();
var
par
=
{
id
:
"
row
"
+
thisRowNum
,
//checkbox的id
trId
:
"
tr
"
+
thisRowNum
,
//行的id
licenceId
:
"
licenceId
"
+
thisRowNum
,
//证照id
remark
:
"
remark
"
+
thisRowNum
//备注id
};
$
(
"
#useTable
"
).
append
(
getDataUseHandlebars
(
usetableTemplate
,
par
));
//赋值给证照名称
$
(
"
#
"
+
"
licenceId
"
+
thisRowNum
).
html
(
nameHtml
);
//数据回显
$
(
"
#licenceId
"
+
thisRowNum
).
val
(
item
.
licenceId
);
$
(
"
#remark
"
+
thisRowNum
).
val
(
item
.
remark
);
form
.
render
(
'
select
'
);
form
.
render
(
'
checkbox
'
);
rowNum
++
;
}
//新增行
$
(
"
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
licenceId
:
"
licenceId
"
+
rowNum
.
toString
(),
//证照id
remark
:
"
remark
"
+
rowNum
.
toString
()
//备注id
};
$
(
"
#useTable
"
).
append
(
getDataUseHandlebars
(
usetableTemplate
,
par
));
//赋值给证照名称
$
(
"
#
"
+
"
licenceId
"
+
rowNum
.
toString
()).
html
(
nameHtml
);
form
.
render
(
'
select
'
);
form
.
render
(
'
checkbox
'
);
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
();
});
}
else
{
winui
.
window
.
msg
(
'
请选择要删除的行
'
,
{
icon
:
2
,
time
:
2000
});
}
}
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
\ No newline at end of file
admin-assistant/src/main/resources/template/js/licenceManageBorrow/licenceManageBorrowList.js
浏览文件 @
75406bac
var
rowId
=
""
;
layui
.
config
({
layui
.
config
({
base
:
basePath
,
base
:
basePath
,
version
:
skyeyeVersion
version
:
skyeyeVersion
}).
extend
({
}).
extend
({
window
:
'
js/winui.window
'
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
table
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
,
'
laydate
'
],
function
(
exports
)
{
}).
define
([
'
window
'
,
'
table
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
],
function
(
exports
)
{
winui
.
renderColor
();
winui
.
renderColor
();
var
$
=
layui
.
$
,
var
$
=
layui
.
$
,
form
=
layui
.
form
,
form
=
layui
.
form
,
laydate
=
layui
.
laydate
,
table
=
layui
.
table
;
table
=
layui
.
table
;
var
serviceClassName
=
sysServiceMation
[
"
licenceManageBorrow
"
][
"
key
"
];
var
serviceClassName
=
sysServiceMation
[
"
licenceManageBorrow
"
][
"
key
"
];
// 证照借用
authBtn
(
'
1596969413440
'
);
authBtn
(
'
1596969413440
'
);
laydate
.
render
({
elem
:
'
#createTime
'
,
range
:
'
~
'
});
// 证照借用列表
// 证照借用列表
table
.
render
({
table
.
render
({
id
:
'
borrow
Table
'
,
id
:
'
message
Table
'
,
elem
:
'
#
borrow
Table
'
,
elem
:
'
#
message
Table
'
,
method
:
'
post
'
,
method
:
'
post
'
,
url
:
flowable
BasePath
+
'
licenceborrow001
'
,
url
:
sysMainMation
.
adm
BasePath
+
'
licenceborrow001
'
,
where
:
getTableParams
(),
where
:
getTableParams
(),
even
:
true
,
even
:
true
,
page
:
true
,
page
:
true
,
...
@@ -32,38 +26,40 @@ layui.config({
...
@@ -32,38 +26,40 @@ layui.config({
limit
:
getLimit
(),
limit
:
getLimit
(),
cols
:
[[
cols
:
[[
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
field
:
'
title
'
,
title
:
'
标题
'
,
width
:
300
,
templet
:
function
(
d
)
{
{
field
:
'
oddNumber
'
,
title
:
'
单号
'
,
width
:
200
,
align
:
'
center
'
,
templet
:
function
(
d
)
{
return
'
<a lay-event="
borrowDedails" class="notice-title-click">
'
+
d
.
title
+
'
</a>
'
;
return
'
<a lay-event="
details" class="notice-title-click">
'
+
d
.
oddNumber
+
'
</a>
'
;
}},
}},
{
field
:
'
oddNum
'
,
title
:
'
单号
'
,
width
:
200
,
align
:
'
center
'
},
{
field
:
'
title
'
,
title
:
'
标题
'
,
width
:
300
},
{
field
:
'
processInstanceId
'
,
title
:
'
流程ID
'
,
width
:
80
,
align
:
'
center
'
,
templet
:
function
(
d
)
{
{
field
:
'
processInstanceId
'
,
title
:
'
流程ID
'
,
width
:
80
,
align
:
'
center
'
,
templet
:
function
(
d
)
{
if
(
!
isNull
(
d
.
processInstanceId
))
{
return
'
<a lay-event="processDetails" class="notice-title-click">
'
+
d
.
processInstanceId
+
'
</a>
'
;
return
'
<a lay-event="processDetails" class="notice-title-click">
'
+
d
.
processInstanceId
+
'
</a>
'
;
}
else
{
return
""
;
}
}},
}},
{
field
:
'
state
'
,
title
:
'
状态
'
,
width
:
90
,
align
:
'
center
'
,
templet
:
function
(
d
)
{
{
field
:
'
state
'
,
title
:
'
状态
'
,
width
:
90
,
align
:
'
center
'
,
templet
:
function
(
d
)
{
return
activitiUtil
.
showStateName2
(
d
.
state
,
1
);
return
skyeyeClassEnumUtil
.
getEnumDataNameByCodeAndKey
(
"
flowableStateEnum
"
,
'
id
'
,
d
.
state
,
'
name
'
);
}},
}},
{
field
:
'
createTime
'
,
title
:
systemLanguage
[
"
com.skyeye.createTime
"
][
languageType
],
width
:
150
,
align
:
'
center
'
},
{
field
:
'
createName
'
,
title
:
systemLanguage
[
"
com.skyeye.createName
"
][
languageType
],
width
:
120
},
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
250
,
toolbar
:
'
#borrowTableBar
'
}
{
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
:
'
#messageTableBar
'
}
]],
]],
done
:
function
(
json
)
{
done
:
function
(
json
)
{
matchingLanguage
();
matchingLanguage
();
initTableSearchUtil
.
initAdvancedSearch
(
this
,
json
.
searchFilter
,
form
,
"
请输入单号,标题
"
,
function
()
{
table
.
reloadData
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
});
}
}
});
});
// 证照借用的操作事件
// 证照借用的操作事件
table
.
on
(
'
tool(
borrow
Table)
'
,
function
(
obj
)
{
table
.
on
(
'
tool(
message
Table)
'
,
function
(
obj
)
{
var
data
=
obj
.
data
;
var
data
=
obj
.
data
;
var
layEvent
=
obj
.
event
;
var
layEvent
=
obj
.
event
;
if
(
layEvent
===
'
borrowDed
ails
'
)
{
//借用详情
if
(
layEvent
===
'
det
ails
'
)
{
//借用详情
borrowDed
ails
(
data
);
det
ails
(
data
);
}
else
if
(
layEvent
===
'
processDetails
'
)
{
//流程详情
}
else
if
(
layEvent
===
'
processDetails
'
)
{
//流程详情
activitiUtil
.
activitiDetails
(
data
);
activitiUtil
.
activitiDetails
(
data
);
}
else
if
(
layEvent
===
'
borrow
edit
'
)
{
//编辑借用申请
}
else
if
(
layEvent
===
'
edit
'
)
{
//编辑借用申请
borrowE
dit
(
data
);
e
dit
(
data
);
}
else
if
(
layEvent
===
'
subApproval
'
)
{
//提交审批
}
else
if
(
layEvent
===
'
subApproval
'
)
{
//提交审批
subApproval
(
data
);
subApproval
(
data
);
}
else
if
(
layEvent
===
'
cancellation
'
)
{
//借用作废
}
else
if
(
layEvent
===
'
cancellation
'
)
{
//借用作废
...
@@ -78,24 +74,23 @@ layui.config({
...
@@ -78,24 +74,23 @@ layui.config({
var
msg
=
'
确认撤销该借用申请吗?
'
;
var
msg
=
'
确认撤销该借用申请吗?
'
;
layer
.
confirm
(
msg
,
{
icon
:
3
,
title
:
'
撤销操作
'
},
function
(
index
)
{
layer
.
confirm
(
msg
,
{
icon
:
3
,
title
:
'
撤销操作
'
},
function
(
index
)
{
layer
.
close
(
index
);
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
flowable
BasePath
+
"
licenceborrow010
"
,
params
:
{
processInstanceId
:
data
.
processInstanceId
},
type
:
'
json
'
,
method
:
"
PUT
"
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
adm
BasePath
+
"
licenceborrow010
"
,
params
:
{
processInstanceId
:
data
.
processInstanceId
},
type
:
'
json
'
,
method
:
"
PUT
"
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
"
提交成功
"
,
{
icon
:
1
,
time
:
2000
});
winui
.
window
.
msg
(
"
提交成功
"
,
{
icon
:
1
,
time
:
2000
});
load
Borrow
Table
();
loadTable
();
}});
}});
});
});
}
}
// 编辑证照借用申请
// 编辑证照借用申请
function
borrowEdit
(
data
)
{
function
edit
(
data
)
{
rowId
=
data
.
id
;
_openNewWindows
({
_openNewWindows
({
url
:
"
../../tpl/licenceManageBorrow/licenceManageBorrowEdit.html
"
,
url
:
systemCommonUtil
.
getUrl
(
'
FP2023062500002&id=
'
+
data
.
id
,
null
),
title
:
"
编辑证照借用申请
"
,
title
:
"
编辑证照借用申请
"
,
pageId
:
"
licenceManageBorrowEdit
"
,
pageId
:
"
licenceManageBorrowEdit
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
load
Borrow
Table
();
loadTable
();
}
}
});
});
}
}
...
@@ -106,12 +101,12 @@ layui.config({
...
@@ -106,12 +101,12 @@ layui.config({
layer
.
close
(
index
);
layer
.
close
(
index
);
activitiUtil
.
startProcess
(
serviceClassName
,
null
,
function
(
approvalId
)
{
activitiUtil
.
startProcess
(
serviceClassName
,
null
,
function
(
approvalId
)
{
var
params
=
{
var
params
=
{
rowI
d
:
data
.
id
,
i
d
:
data
.
id
,
approvalId
:
approvalId
approvalId
:
approvalId
};
};
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
licenceborrow006
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
admBasePath
+
"
licenceborrow006
"
,
params
:
params
,
type
:
'
json
'
,
method
:
"
POST
"
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
"
提交成功
"
,
{
icon
:
1
,
time
:
2000
});
winui
.
window
.
msg
(
"
提交成功
"
,
{
icon
:
1
,
time
:
2000
});
load
Borrow
Table
();
loadTable
();
}});
}});
});
});
});
});
...
@@ -122,18 +117,17 @@ layui.config({
...
@@ -122,18 +117,17 @@ layui.config({
var
msg
=
'
确认作废该条借用申请吗?
'
;
var
msg
=
'
确认作废该条借用申请吗?
'
;
layer
.
confirm
(
msg
,
{
icon
:
3
,
title
:
'
作废操作
'
},
function
(
index
)
{
layer
.
confirm
(
msg
,
{
icon
:
3
,
title
:
'
作废操作
'
},
function
(
index
)
{
layer
.
close
(
index
);
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
licenceborrow007
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
admBasePath
+
"
licenceborrow007
"
,
params
:
{
id
:
data
.
id
},
type
:
'
json
'
,
method
:
"
POST
"
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
load
Borrow
Table
();
loadTable
();
}});
}});
});
});
}
}
// 证照借用详情
// 证照借用详情
function
borrowDedails
(
data
)
{
function
details
(
data
)
{
rowId
=
data
.
id
;
_openNewWindows
({
_openNewWindows
({
url
:
"
../../tpl/licenceManageBorrow/licenceManageBorrowDetails.html
"
,
url
:
systemCommonUtil
.
getUrl
(
'
FP2023062500003&id=
'
+
data
.
id
,
null
),
title
:
systemLanguage
[
"
com.skyeye.detailsPageTitle
"
][
languageType
],
title
:
systemLanguage
[
"
com.skyeye.detailsPageTitle
"
][
languageType
],
pageId
:
"
licenceManageBorrowDetails
"
,
pageId
:
"
licenceManageBorrowDetails
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
area
:
[
'
90vw
'
,
'
90vh
'
],
...
@@ -143,48 +137,28 @@ layui.config({
...
@@ -143,48 +137,28 @@ layui.config({
}
}
// 添加证照借用
// 添加证照借用
$
(
"
body
"
).
on
(
"
click
"
,
"
#addB
orrowB
ean
"
,
function
()
{
$
(
"
body
"
).
on
(
"
click
"
,
"
#addBean
"
,
function
()
{
_openNewWindows
({
_openNewWindows
({
url
:
"
../../tpl/licenceManageBorrow/licenceManageBorrowAdd.html
"
,
url
:
systemCommonUtil
.
getUrl
(
'
FP2023062500001
'
,
null
),
title
:
"
证照借用申请
"
,
title
:
"
证照借用申请
"
,
pageId
:
"
licenceManageBorrowAdd
"
,
pageId
:
"
licenceManageBorrowAdd
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
load
Borrow
Table
();
loadTable
();
}});
}});
});
});
// 搜索表单
form
.
render
();
form
.
render
();
form
.
on
(
'
submit(formSearch)
'
,
function
(
data
)
{
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
loadTable
();
table
.
reloadData
(
"
borrowTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
}
return
false
;
});
});
function
loadTable
()
{
// 刷新证照借用列表
table
.
reloadData
(
"
messageTable
"
,
{
where
:
getTableParams
()});
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadBorrowTable
"
,
function
()
{
loadBorrowTable
();
});
// 刷新证照借用列表数据
function
loadBorrowTable
(){
table
.
reloadData
(
"
borrowTable
"
,
{
where
:
getTableParams
()});
}
}
function
getTableParams
()
{
function
getTableParams
()
{
var
startTime
=
""
,
endTime
=
""
;
return
$
.
extend
(
true
,
{},
initTableSearchUtil
.
getSearchValue
(
"
messageTable
"
));
if
(
!
isNull
(
$
(
"
#createTime
"
).
val
()))
{
startTime
=
$
(
"
#createTime
"
).
val
().
split
(
'
~
'
)[
0
].
trim
()
+
'
00:00:00
'
;
endTime
=
$
(
"
#createTime
"
).
val
().
split
(
'
~
'
)[
1
].
trim
()
+
'
23:59:59
'
;
}
return
{
state
:
$
(
"
#state
"
).
val
(),
startTime
:
startTime
,
endTime
:
endTime
};
}
}
exports
(
'
licenceManageBorrowList
'
,
{});
exports
(
'
licenceManageBorrowList
'
,
{});
...
...
admin-assistant/src/main/resources/template/tpl/licenceManageBorrow/licenceManageBorrowAdd.html
已删除
100644 → 0
浏览文件 @
8ea6c61a
<!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=
"margin:0 auto;padding:20px;"
>
<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 ver-center"
id=
"useTitle"
>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
步骤
</label>
<div
class=
"layui-input-block ver-center"
>
填单
</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=
"useName"
>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
证照
<i
class=
"red"
>
*
</i></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></th>
<th>
证照名称
<i
class=
"red"
>
*
</i></th>
<th>
备注
</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"
>
<textarea
id=
"remark"
name=
"remark"
placeholder=
"请输入相关描述"
class=
"layui-textarea"
style=
"height: 100px;"
maxlength=
"200"
></textarea>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
相关附件
</label>
<div
class=
"layui-input-block"
id=
"enclosureUpload"
>
</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>
<button
class=
"winui-btn"
lay-submit
lay-filter=
"formSubBean"
>
提交审批
</button>
</div>
</div>
</form>
</div>
<!-- usetableTemplate -->
<script
type=
"text/x-handlebars-template"
id=
"usetableTemplate"
>
<
tr
trcusid
=
"
{{trId}}
"
>
<
td
><
input
type
=
"
checkbox
"
rowId
=
"
{{id}}
"
lay
-
filter
=
"
checkboxProperty
"
name
=
"
tableCheckRow
"
/><
/td
>
<
td
><
select
id
=
"
{{licenceId}}
"
lay
-
filter
=
"
selectLicenceIdProperty
"
win
-
verify
=
"
required
"
><
/select></
td
>
<
td
><
input
type
=
"
text
"
class
=
"
layui-input
"
id
=
"
{{remark}}
"
/><
/td
>
<
/tr
>
</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/licenceManageBorrow/
'
}).
use
(
'
licenceManageBorrowAdd
'
);
</script>
</body>
</html>
\ No newline at end of file
admin-assistant/src/main/resources/template/tpl/licenceManageBorrow/licenceManageBorrowDetails.html
已删除
100644 → 0
浏览文件 @
8ea6c61a
<!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=
"margin:0 auto;padding:20px;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
>
</form>
</div>
<!-- useTemplate -->
<script
type=
"text/x-handlebars-template"
id=
"useTemplate"
>
{{
#
bean
}}
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
标题
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
title
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
单号
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
oddNumber
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
状态
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{{
stateName
}}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
步骤
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
填单
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
借用人
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
userName
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
证照
:
<
/label
>
<
div
class
=
"
layui-input-block
"
>
<
table
class
=
"
layui-table
"
>
<
thead
>
<
tr
>
<
th
>
证照名称
<
/th
>
<
th
>
状态
<
/th
>
<
th
>
备注
<
/th
>
<
/tr
>
<
/thead
>
<
tbody
id
=
"
useTable
"
class
=
"
insurance-table
"
>
{{
#
each
goods
}}
<
tr
>
<
td
>
{{
licenceName
}}
<
/td
>
<
td
>
{{
stateName
}}
<
/td
>
<
td
>
{{
remark
}}
<
/td
>
<
/tr
>
{{
/
each
}}
<
/tbody
>
<
/table
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
相关描述
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
remark
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
相关附件
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
id
=
"
enclosureUploadBtn
"
>
<
/div
>
<
/div
>
{{
/
bean
}}
</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/licenceManageBorrow/
'
}).
use
(
'
licenceManageBorrowDetails
'
);
</script>
</body>
</html>
\ No newline at end of file
admin-assistant/src/main/resources/template/tpl/licenceManageBorrow/licenceManageBorrowEdit.html
已删除
100644 → 0
浏览文件 @
8ea6c61a
<!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=
"margin:0 auto;padding:20px;"
>
<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 ver-center"
id=
"useTitle"
>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
步骤
</label>
<div
class=
"layui-input-block ver-center"
>
填单
</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=
"useName"
>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
证照
<i
class=
"red"
>
*
</i></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></th>
<th>
证照名称
<i
class=
"red"
>
*
</i></th>
<th>
备注
</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"
>
<textarea
id=
"remark"
name=
"remark"
placeholder=
"请输入相关描述"
class=
"layui-textarea"
style=
"height: 100px;"
maxlength=
"200"
></textarea>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
相关附件
</label>
<div
class=
"layui-input-block"
id=
"enclosureUpload"
>
</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 typeOne layui-hide"
lay-submit
lay-filter=
"formEditBean"
>
保存为草稿
</button>
<button
class=
"winui-btn typeOne layui-hide"
lay-submit
lay-filter=
"formSubBean"
>
提交审批
</button>
<button
class=
"winui-btn typeTwo layui-hide"
lay-submit
lay-filter=
"save"
><language
showName=
"com.skyeye.save"
></language></button>
</div>
</div>
</form>
</div>
<!-- usetableTemplate -->
<script
type=
"text/x-handlebars-template"
id=
"usetableTemplate"
>
<
tr
trcusid
=
"
{{trId}}
"
>
<
td
><
input
type
=
"
checkbox
"
rowId
=
"
{{id}}
"
lay
-
filter
=
"
checkboxProperty
"
name
=
"
tableCheckRow
"
/><
/td
>
<
td
><
select
id
=
"
{{licenceId}}
"
lay
-
filter
=
"
selectLicenceIdProperty
"
win
-
verify
=
"
required
"
><
/select></
td
>
<
td
><
input
type
=
"
text
"
class
=
"
layui-input
"
id
=
"
{{remark}}
"
/><
/td
>
<
/tr
>
</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/licenceManageBorrow/
'
}).
use
(
'
licenceManageBorrowEdit
'
);
</script>
</body>
</html>
\ No newline at end of file
admin-assistant/src/main/resources/template/tpl/licenceManageBorrow/licenceManageBorrowList.html
浏览文件 @
75406bac
...
@@ -7,42 +7,15 @@
...
@@ -7,42 +7,15 @@
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
</head>
<body>
<body>
<div
style=
"margin:0 auto; height: 100%;"
>
<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"
>
<select
id=
"state"
>
<option
value=
""
>
全部
</option>
<option
value=
"0"
>
草稿
</option>
<option
value=
"1"
>
审核中
</option>
<option
value=
"2"
>
审核通过
</option>
<option
value=
"3"
>
审核不通过
</option>
<option
value=
"4"
>
作废
</option>
<option
value=
"5"
>
撤销
</option>
</select>
</div>
<label
class=
"layui-form-label"
>
申请时间
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"createTime"
name=
"createTime"
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"
>
<div
class=
"winui-tool"
style=
"text-align: left;
"
>
<div
class=
"winui-tool
"
>
<button
id=
"reloadBorrowTable"
class=
"winui-toolbtn
"
><i
class=
"fa fa-refresh"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.refreshDataBtn"
></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=
"addBorrowBean"
class=
"winui-toolbtn
"
auth=
"1596969413440"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i>
证照借用申请
</button>
<button
id=
"addBean"
class=
"winui-toolbtn search-table-btn-right
"
auth=
"1596969413440"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i>
证照借用申请
</button>
</div>
</div>
</div>
</div>
<div
style=
"margin:auto 10px;"
>
<div
style=
"margin:auto 10px;"
>
<table
id=
"borrowTable"
lay-filter=
"borrow
Table"
></table>
<table
id=
"messageTable"
lay-filter=
"message
Table"
></table>
<script
type=
"text/html"
id=
"borrow
TableBar"
>
<script
type=
"text/html"
id=
"message
TableBar"
>
{{
#
if
(
d
.
editRow
==
'
1
'
){
}}
{{
#
if
(
d
.
editRow
==
'
1
'
){
}}
{{
#
if
(
auth
(
'
1596969392424
'
)){
}}
{{
#
if
(
auth
(
'
1596969392424
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
subApproval
"
>
提交审批
<
/a
>
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
subApproval
"
>
提交审批
<
/a
>
...
@@ -50,10 +23,8 @@
...
@@ -50,10 +23,8 @@
{{
#
if
(
auth
(
'
1596969399378
'
)){
}}
{{
#
if
(
auth
(
'
1596969399378
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-danger
"
lay
-
event
=
"
cancellation
"
>
作废
<
/a
>
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-danger
"
lay
-
event
=
"
cancellation
"
>
作废
<
/a
>
{{
#
}
}}
{{
#
}
}}
{{
#
}
}}
{{
#
if
(
auth
(
'
1596969413440
'
)){
}}
{{
#
if
(
d
.
editRow
==
'
1
'
||
d
.
editRow
==
'
2
'
){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-normal
"
lay
-
event
=
"
edit
"
><
language
showName
=
"
com.skyeye.editBtn
"
><
/language></
a
>
{{
#
if
(
auth
(
'
1596969435251
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-normal
"
lay
-
event
=
"
borrowedit
"
><
language
showName
=
"
com.skyeye.editBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
}
}}
{{
#
}
}}
{{
#
}
}}
{{
#
if
(
d
.
editRow
==
'
2
'
){
}}
{{
#
if
(
d
.
editRow
==
'
2
'
){
}}
...
@@ -63,7 +34,6 @@
...
@@ -63,7 +34,6 @@
{{
#
}
}}
{{
#
}
}}
</script>
</script>
</div>
</div>
</div>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
...
...
common/src/main/resources/template/js/dsFormPage/editPageContentIsTable.js
浏览文件 @
75406bac
...
@@ -245,17 +245,6 @@ layui.config({
...
@@ -245,17 +245,6 @@ layui.config({
resetData
(
tableDataList
);
resetData
(
tableDataList
);
$
.
each
(
tableDataList
,
function
(
i
,
item
)
{
$
.
each
(
tableDataList
,
function
(
i
,
item
)
{
item
.
orderBy
=
i
+
1
;
item
.
orderBy
=
i
+
1
;
if
(
item
.
showType
==
showType
[
2
].
id
)
{
// 下拉框时,选择的数据源信息
var
dataFrom
=
JSON
.
parse
(
$
(
`#dataFrom
${
item
.
id
}
`
).
attr
(
'
data
'
));
if
(
!
isNull
(
dataFrom
.
dataType
))
{
item
.
dataType
=
dataFrom
.
dataType
;
item
.
defaultData
=
dataFrom
.
defaultData
;
item
.
objectId
=
dataFrom
.
objectId
;
item
.
businessApi
=
dataFrom
.
businessApi
;
}
}
item
.
require
=
dataShowType
.
getData
(
`require
${
item
.
id
}
`
);
delete
item
[
"
LAY_TABLE_INDEX
"
];
delete
item
[
"
LAY_TABLE_INDEX
"
];
delete
item
[
"
id
"
];
delete
item
[
"
id
"
];
});
});
...
@@ -354,6 +343,17 @@ layui.config({
...
@@ -354,6 +343,17 @@ layui.config({
function
resetData
(
tableDataList
)
{
function
resetData
(
tableDataList
)
{
$
.
each
(
tableDataList
,
function
(
i
,
item
)
{
$
.
each
(
tableDataList
,
function
(
i
,
item
)
{
item
.
align
=
$
(
`#align
${
item
.
id
}
`
).
val
();
item
.
align
=
$
(
`#align
${
item
.
id
}
`
).
val
();
item
.
require
=
dataShowType
.
getData
(
`require
${
item
.
id
}
`
);
if
(
item
.
showType
==
showType
[
2
].
id
)
{
// 下拉框时,选择的数据源信息
var
dataFrom
=
JSON
.
parse
(
$
(
`#dataFrom
${
item
.
id
}
`
).
attr
(
'
data
'
));
if
(
!
isNull
(
dataFrom
.
dataType
))
{
item
.
dataType
=
dataFrom
.
dataType
;
item
.
defaultData
=
dataFrom
.
defaultData
;
item
.
objectId
=
dataFrom
.
objectId
;
item
.
businessApi
=
dataFrom
.
businessApi
;
}
}
});
});
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录