Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
4a6bd535
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1172
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看板
提交
4a6bd535
编写于
8月 03, 2023
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
删除项目工作量
上级
a9785cea
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
0 addition
and
1482 deletion
+0
-1482
pro/src/main/resources/template/js/proworkload/proworkloadadd.js
.../main/resources/template/js/proworkload/proworkloadadd.js
+0
-258
pro/src/main/resources/template/js/proworkload/proworkloadalllist.js
...n/resources/template/js/proworkload/proworkloadalllist.js
+0
-108
pro/src/main/resources/template/js/proworkload/proworkloaddetails.js
...n/resources/template/js/proworkload/proworkloaddetails.js
+0
-35
pro/src/main/resources/template/js/proworkload/proworkloadedit.js
...main/resources/template/js/proworkload/proworkloadedit.js
+0
-332
pro/src/main/resources/template/js/proworkload/proworkloadlist.js
...main/resources/template/js/proworkload/proworkloadlist.js
+0
-205
pro/src/main/resources/template/tpl/proworkload/proworkloadadd.html
...in/resources/template/tpl/proworkload/proworkloadadd.html
+0
-134
pro/src/main/resources/template/tpl/proworkload/proworkloadalllist.html
...esources/template/tpl/proworkload/proworkloadalllist.html
+0
-59
pro/src/main/resources/template/tpl/proworkload/proworkloaddetails.html
...esources/template/tpl/proworkload/proworkloaddetails.html
+0
-119
pro/src/main/resources/template/tpl/proworkload/proworkloadedit.html
...n/resources/template/tpl/proworkload/proworkloadedit.html
+0
-152
pro/src/main/resources/template/tpl/proworkload/proworkloadlist.html
...n/resources/template/tpl/proworkload/proworkloadlist.html
+0
-80
未找到文件。
pro/src/main/resources/template/js/proworkload/proworkloadadd.js
已删除
100644 → 0
浏览文件 @
a9785cea
// 任务填报
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
form
=
layui
.
form
,
laydate
=
layui
.
laydate
;
var
serviceClassName
=
sysServiceMation
[
"
proworkLoad
"
][
"
key
"
];
var
rowNum
=
1
;
//表格的序号
var
proList
=
new
Array
();
//项目集合
var
taskListHtml
=
""
;
//任务集合展示html
var
usetableTemplate
=
$
(
"
#usetableTemplate
"
).
html
();
var
selOption
=
getFileContent
(
'
tpl/template/select-option.tpl
'
);
// 获取当前登录员工信息
systemCommonUtil
.
getSysCurrentLoginUserMation
(
function
(
data
)
{
$
(
"
#writePeople
"
).
html
(
data
.
bean
.
userName
);
});
$
(
"
#title
"
).
val
(
getYMDFormatDate
());
proUtil
.
queryMyProjectsList
(
function
(
data
)
{
proList
=
data
.
rows
;
$
(
"
#proId
"
).
html
(
getDataUseHandlebars
(
selOption
,
data
));
form
.
render
(
'
select
'
);
});
addRow
();
matchingLanguage
();
//所属项目变化事件
form
.
on
(
'
select(proIdProperty)
'
,
function
(
data
)
{
var
thisRowValue
=
data
.
value
;
if
(
!
isNull
(
thisRowValue
)
&&
thisRowValue
!=
'
请选择
'
)
{
$
.
each
(
proList
,
function
(
i
,
item
)
{
if
(
item
.
id
==
thisRowValue
){
$
(
"
#projectNumber
"
).
html
(
item
.
projectNumber
);
if
(
isNull
(
item
.
customerName
)){
$
(
"
#title
"
).
val
(
item
.
name
+
"
-
"
+
getYMDFormatDate
());
}
else
{
$
(
"
#title
"
).
val
(
item
.
name
+
"
-
"
+
item
.
customerName
+
"
-
"
+
getYMDFormatDate
());
}
//获取我的任务
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
protask015
"
,
params
:
{
proId
:
item
.
id
},
type
:
'
json
'
,
method
:
"
POST
"
,
callback
:
function
(
json
)
{
taskListHtml
=
getDataUseHandlebars
(
selOption
,
json
);
resetTableTask
();
}});
return
false
;
}
});
}
else
{
taskListHtml
=
""
;
resetTableTask
();
$
(
"
#projectNumber
"
).
html
(
""
);
}
});
function
resetTableTask
(){
var
rowTr
=
$
(
"
#useTable tr
"
);
$
.
each
(
rowTr
,
function
(
i
,
item
)
{
//获取行编号
var
rowNum
=
$
(
item
).
attr
(
"
trcusid
"
).
replace
(
"
tr
"
,
""
);
$
(
"
#
"
+
"
content
"
+
rowNum
).
html
(
taskListHtml
);
});
form
.
render
(
'
select
'
);
}
form
.
on
(
'
radio(workLoadType)
'
,
function
(
data
)
{
var
thisRowValue
=
data
.
value
;
if
(
thisRowValue
==
1
){
//上一周
setDate
(
addDate
(
new
Date
(),
-
7
));
}
else
if
(
thisRowValue
==
2
){
//本周
setDate
(
new
Date
());
}
else
if
(
thisRowValue
==
3
){
//下一周
setDate
(
addDate
(
new
Date
(),
7
));
}
});
var
cells
=
document
.
getElementById
(
'
dataTr
'
).
getElementsByTagName
(
'
th
'
);
var
clen
=
cells
.
length
;
var
formatDate
=
function
(
date
)
{
var
year
=
date
.
getFullYear
()
+
'
/
'
;
var
month
=
((
date
.
getMonth
()
+
1
)
<
10
?
"
0
"
+
(
date
.
getMonth
()
+
1
)
:
(
date
.
getMonth
()
+
1
))
+
'
/
'
;
var
day
=
date
.
getDate
()
<
10
?
"
0
"
+
date
.
getDate
()
:
date
.
getDate
();
return
year
+
month
+
day
;
};
var
addDate
=
function
(
date
,
n
)
{
date
.
setDate
(
date
.
getDate
()
+
n
);
return
date
;
};
var
setDate
=
function
(
date
)
{
var
week
=
date
.
getDay
()
-
1
;
date
=
addDate
(
date
,
week
*
-
1
);
for
(
var
i
=
0
;
i
<
clen
;
i
++
)
{
cells
[
i
].
innerHTML
=
formatDate
(
i
==
0
?
date
:
addDate
(
date
,
1
));
}
};
//默认本周
setDate
(
new
Date
());
//数量变化
$
(
"
body
"
).
on
(
"
input
"
,
"
.wkLoad
"
,
function
()
{
calculatedTotalPrice
();
});
//计算总价
function
calculatedTotalPrice
(){
var
rowTr
=
$
(
"
#useTable tr
"
);
var
allLoad
=
0
;
$
.
each
(
rowTr
,
function
(
i
,
item
)
{
//获取行坐标
var
rowNum
=
$
(
item
).
attr
(
"
trcusid
"
).
replace
(
"
tr
"
,
""
);
//获取周一工作量
var
mon
=
parseInt
(
isNull
(
$
(
"
#mon
"
+
rowNum
).
val
())
?
"
0
"
:
$
(
"
#mon
"
+
rowNum
).
val
());
//获取周二工作量
var
tues
=
parseInt
(
isNull
(
$
(
"
#tues
"
+
rowNum
).
val
())
?
"
0
"
:
$
(
"
#tues
"
+
rowNum
).
val
());
//获取周三工作量
var
wed
=
parseInt
(
isNull
(
$
(
"
#wed
"
+
rowNum
).
val
())
?
"
0
"
:
$
(
"
#wed
"
+
rowNum
).
val
());
//获取周四工作量
var
thur
=
parseInt
(
isNull
(
$
(
"
#thur
"
+
rowNum
).
val
())
?
"
0
"
:
$
(
"
#thur
"
+
rowNum
).
val
());
//获取周五工作量
var
fri
=
parseInt
(
isNull
(
$
(
"
#fri
"
+
rowNum
).
val
())
?
"
0
"
:
$
(
"
#fri
"
+
rowNum
).
val
());
//获取周六工作量
var
satu
=
parseInt
(
isNull
(
$
(
"
#satu
"
+
rowNum
).
val
())
?
"
0
"
:
$
(
"
#satu
"
+
rowNum
).
val
());
//获取周日工作量
var
sun
=
parseInt
(
isNull
(
$
(
"
#sun
"
+
rowNum
).
val
())
?
"
0
"
:
$
(
"
#sun
"
+
rowNum
).
val
());
//计算本行的合计
var
thisRowLoad
=
mon
+
tues
+
wed
+
thur
+
fri
+
satu
+
sun
;
$
(
"
#allload
"
+
rowNum
).
html
(
thisRowLoad
);
//计算所有行的合计
allLoad
+=
thisRowLoad
;
});
$
(
"
#thisRowLoad
"
).
html
(
allLoad
);
}
skyeyeEnclosure
.
init
(
'
enclosureUpload
'
);
// 保存为草稿
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
"
);
var
tableData
=
new
Array
();
$
.
each
(
rowTr
,
function
(
i
,
item
)
{
//获取行编号
var
rowNum
=
$
(
item
).
attr
(
"
trcusid
"
).
replace
(
"
tr
"
,
""
);
var
row
=
{
taskContent
:
$
(
"
#content
"
+
rowNum
).
val
(),
executePeople
:
$
(
"
#execute
"
+
rowNum
).
val
(),
monAmount
:
isNull
(
$
(
"
#mon
"
+
rowNum
).
val
())
?
"
0
"
:
$
(
"
#mon
"
+
rowNum
).
val
(),
monTime
:
$
(
"
#monTh
"
).
html
(),
tuesAmount
:
isNull
(
$
(
"
#tues
"
+
rowNum
).
val
())
?
"
0
"
:
$
(
"
#tues
"
+
rowNum
).
val
(),
tuesTime
:
$
(
"
#tuesTh
"
).
html
(),
wedAmount
:
isNull
(
$
(
"
#wed
"
+
rowNum
).
val
())
?
"
0
"
:
$
(
"
#wed
"
+
rowNum
).
val
(),
wedTime
:
$
(
"
#wedTh
"
).
html
(),
thurAmount
:
isNull
(
$
(
"
#thur
"
+
rowNum
).
val
())
?
"
0
"
:
$
(
"
#thur
"
+
rowNum
).
val
(),
thurTime
:
$
(
"
#thurTh
"
).
html
(),
friAmount
:
isNull
(
$
(
"
#fri
"
+
rowNum
).
val
())
?
"
0
"
:
$
(
"
#fri
"
+
rowNum
).
val
(),
friTime
:
$
(
"
#friTh
"
).
html
(),
satuAmount
:
isNull
(
$
(
"
#satu
"
+
rowNum
).
val
())
?
"
0
"
:
$
(
"
#satu
"
+
rowNum
).
val
(),
satuTime
:
$
(
"
#satuTh
"
).
html
(),
sunAmount
:
isNull
(
$
(
"
#sun
"
+
rowNum
).
val
())
?
"
0
"
:
$
(
"
#sun
"
+
rowNum
).
val
(),
sunTime
:
$
(
"
#sunTh
"
).
html
(),
allWorkLoad
:
$
(
"
#allload
"
+
rowNum
).
html
()
};
tableData
.
push
(
row
);
});
var
params
=
{
title
:
$
(
"
#title
"
).
val
(),
type
:
$
(
"
input[name='workLoadType']:checked
"
).
val
(),
proId
:
$
(
"
#proId
"
).
val
(),
projectNumber
:
$
(
"
#projectNumber
"
).
html
(),
allWorkLoad
:
$
(
"
#thisRowLoad
"
).
html
().
trim
(),
workloadTaskStr
:
JSON
.
stringify
(
tableData
),
desc
:
$
(
"
#desc
"
).
val
(),
enclosureInfo
:
skyeyeEnclosure
.
getEnclosureIdsByBoxId
(
'
enclosureUpload
'
),
subType
:
subType
,
// 表单类型 1.保存草稿 2.提交审批
approvalId
:
approvalId
};
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
proworkload002
"
,
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
=
{
trId
:
"
tr
"
+
rowNum
.
toString
(),
//行的id
id
:
"
row
"
+
rowNum
.
toString
(),
//checkbox的id
content
:
"
content
"
+
rowNum
.
toString
(),
//任务内容id
execute
:
"
execute
"
+
rowNum
.
toString
(),
//任务执行人id
mon
:
"
mon
"
+
rowNum
.
toString
(),
//周一工作量id
tues
:
"
tues
"
+
rowNum
.
toString
(),
//周二工作量id
wed
:
"
wed
"
+
rowNum
.
toString
(),
//周三工作量id
thur
:
"
thur
"
+
rowNum
.
toString
(),
//周四工作量id
fri
:
"
fri
"
+
rowNum
.
toString
(),
//周五工作量id
satu
:
"
satu
"
+
rowNum
.
toString
(),
//周六工作量id
sun
:
"
sun
"
+
rowNum
.
toString
(),
//周日工作量id
allload
:
"
allload
"
+
rowNum
.
toString
()
//小计id
};
$
(
"
#useTable
"
).
append
(
getDataUseHandlebars
(
usetableTemplate
,
par
));
//赋值给任务
$
(
"
#
"
+
"
content
"
+
rowNum
.
toString
()).
html
(
taskListHtml
);
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
();
});
calculatedTotalPrice
();
}
else
{
winui
.
window
.
msg
(
'
请选择要删除的行
'
,
{
icon
:
2
,
time
:
2000
});
}
}
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
\ No newline at end of file
pro/src/main/resources/template/js/proworkload/proworkloadalllist.js
已删除
100644 → 0
浏览文件 @
a9785cea
var
rowId
=
""
;
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
,
'
table
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
$
=
layui
.
$
,
form
=
layui
.
form
,
table
=
layui
.
table
;
table
.
render
({
id
:
'
messageTable
'
,
elem
:
'
#messageTable
'
,
method
:
'
post
'
,
url
:
flowableBasePath
+
'
proworkload003
'
,
where
:
getTableParams
(),
even
:
true
,
page
:
true
,
limits
:
getLimits
(),
limit
:
getLimit
(),
cols
:
[[
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
field
:
'
title
'
,
title
:
'
名称
'
,
width
:
250
,
templet
:
function
(
d
)
{
return
'
<a lay-event="details" class="notice-title-click">
'
+
d
.
title
+
'
</a>
'
;
}},
{
field
:
'
projectName
'
,
title
:
'
所属项目
'
,
width
:
120
},
{
field
:
'
projectNumber
'
,
title
:
'
项目编号
'
,
width
:
120
},
{
field
:
'
allWorkLoad
'
,
title
:
'
合计工作量
'
,
width
:
100
},
{
field
:
'
processInstanceId
'
,
title
:
'
流程ID
'
,
width
:
70
,
templet
:
function
(
d
)
{
return
'
<a lay-event="processDetails" class="notice-title-click">
'
+
d
.
processInstanceId
+
'
</a>
'
;
}},
{
field
:
'
state
'
,
title
:
'
审批状态
'
,
width
:
80
,
templet
:
function
(
d
)
{
if
(
d
.
state
==
'
0
'
){
return
"
草稿
"
;
}
else
if
(
d
.
state
==
'
1
'
){
return
"
<span class='state-new'>审核中</span>
"
;
}
else
if
(
d
.
state
==
'
3
'
){
return
"
<span class='state-error'>撤销</span>
"
;
}
else
if
(
d
.
state
==
'
2
'
){
return
"
<span class='state-down'>作废</span>
"
;
}
else
if
(
d
.
state
==
'
11
'
){
return
"
<span class='state-up'>审核通过</span>
"
;
}
else
if
(
d
.
state
==
'
12
'
){
return
"
<span class='state-down'>审核不通过</span>
"
;
}
}},
{
field
:
'
createName
'
,
title
:
systemLanguage
[
"
com.skyeye.createName
"
][
languageType
],
width
:
120
},
{
field
:
'
createTime
'
,
title
:
systemLanguage
[
"
com.skyeye.createTime
"
][
languageType
],
width
:
150
}
]],
done
:
function
(
json
)
{
matchingLanguage
();
}
});
table
.
on
(
'
tool(messageTable)
'
,
function
(
obj
)
{
var
data
=
obj
.
data
;
var
layEvent
=
obj
.
event
;
if
(
layEvent
===
'
details
'
){
//详情
details
(
data
);
}
else
if
(
layEvent
===
'
processDetails
'
)
{
//流程详情
activitiUtil
.
activitiDetails
(
data
);
}
});
// 详情
function
details
(
data
)
{
rowId
=
data
.
id
;
_openNewWindows
({
url
:
"
../../tpl/proworkload/proworkloaddetails.html
"
,
title
:
systemLanguage
[
"
com.skyeye.detailsPageTitle
"
][
languageType
],
pageId
:
"
protaskdetails
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
}});
}
// 搜索表单
form
.
render
();
form
.
on
(
'
submit(formSearch)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
table
.
reloadData
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
}
return
false
;
});
// 刷新数据
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
loadTable
();
});
function
loadTable
()
{
table
.
reloadData
(
"
messageTable
"
,
{
where
:
getTableParams
()});
}
function
getTableParams
()
{
return
{
proName
:
$
(
"
#proName
"
).
val
(),
workloadName
:
$
(
"
#workloadName
"
).
val
(),
state
:
$
(
"
#state
"
).
val
()
};
}
exports
(
'
proworkloadalllist
'
,
{});
});
pro/src/main/resources/template/js/proworkload/proworkloaddetails.js
已删除
100644 → 0
浏览文件 @
a9785cea
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
;
var
beanTemplate
=
$
(
"
#beanTemplate
"
).
html
();
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
proworkload006
"
,
params
:
{
rowId
:
parent
.
rowId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
// 附件回显
skyeyeEnclosure
.
showDetails
({
"
enclosureUploadBox
"
:
json
.
bean
.
enclosureInfo
});
var
_html
=
getDataUseHandlebars
(
beanTemplate
,
json
);
//加载数据
$
(
"
#showForm
"
).
html
(
_html
);
var
dateArray
=
new
Array
();
dateArray
.
push
(
json
.
bean
.
tasks
[
0
].
monTime
);
dateArray
.
push
(
json
.
bean
.
tasks
[
0
].
tuesTime
);
dateArray
.
push
(
json
.
bean
.
tasks
[
0
].
wedTime
);
dateArray
.
push
(
json
.
bean
.
tasks
[
0
].
thurTime
);
dateArray
.
push
(
json
.
bean
.
tasks
[
0
].
friTime
);
dateArray
.
push
(
json
.
bean
.
tasks
[
0
].
satuTime
);
dateArray
.
push
(
json
.
bean
.
tasks
[
0
].
sunTime
);
//设置日期
var
cells
=
document
.
getElementById
(
'
dataTr
'
).
getElementsByTagName
(
'
th
'
);
for
(
var
i
=
0
;
i
<
7
;
i
++
)
{
cells
[
i
].
innerHTML
=
dateArray
[
i
];
}
matchingLanguage
();
}});
});
\ No newline at end of file
pro/src/main/resources/template/js/proworkload/proworkloadedit.js
已删除
100644 → 0
浏览文件 @
a9785cea
// 任务填报
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
form
=
layui
.
form
,
laydate
=
layui
.
laydate
;
var
serviceClassName
=
sysServiceMation
[
"
proworkLoad
"
][
"
key
"
];
var
rowNum
=
1
;
//表格的序号
var
proList
=
new
Array
();
//项目集合
var
taskListHtml
=
""
;
//任务集合展示html
var
usetableTemplate
=
$
(
"
#usetableTemplate
"
).
html
();
var
showTemplate
=
$
(
"
#showTemplate
"
).
html
();
var
selOption
=
getFileContent
(
'
tpl/template/select-option.tpl
'
);
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
proworkload007
"
,
params
:
{
rowId
:
parent
.
rowId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
$
(
"
#title
"
).
val
(
json
.
bean
.
title
);
$
(
"
#desc
"
).
val
(
json
.
bean
.
desc
);
$
(
"
#writePeople
"
).
html
(
json
.
bean
.
writePeople
);
$
(
"
#thisRowLoad
"
).
html
(
json
.
bean
.
allworkload
);
$
(
"
#projectNumber
"
).
html
(
json
.
bean
.
projectNumber
);
$
(
"
input:radio[name=workLoadType][value=
"
+
json
.
bean
.
type
+
"
]
"
).
attr
(
"
checked
"
,
true
);
if
(
json
.
bean
.
state
==
'
1
'
){
$
(
"
.typeTwo
"
).
removeClass
(
"
layui-hide
"
);
}
else
{
$
(
"
.typeOne
"
).
removeClass
(
"
layui-hide
"
);
}
var
dateArray
=
new
Array
();
dateArray
.
push
(
json
.
bean
.
tasks
[
0
].
monTime
);
dateArray
.
push
(
json
.
bean
.
tasks
[
0
].
tuesTime
);
dateArray
.
push
(
json
.
bean
.
tasks
[
0
].
wedTime
);
dateArray
.
push
(
json
.
bean
.
tasks
[
0
].
thurTime
);
dateArray
.
push
(
json
.
bean
.
tasks
[
0
].
friTime
);
dateArray
.
push
(
json
.
bean
.
tasks
[
0
].
satuTime
);
dateArray
.
push
(
json
.
bean
.
tasks
[
0
].
sunTime
);
//设置日期
var
cells
=
document
.
getElementById
(
'
dataTr
'
).
getElementsByTagName
(
'
th
'
);
for
(
var
i
=
0
;
i
<
7
;
i
++
)
{
cells
[
i
].
innerHTML
=
dateArray
[
i
];
}
// 附件回显
skyeyeEnclosure
.
initTypeISData
({
'
enclosureUpload
'
:
json
.
bean
.
enclosureInfo
});
// 获取我参与的项目列表
proUtil
.
queryMyProjectsList
(
function
(
data
)
{
$
(
"
#proId
"
).
html
(
getDataUseHandlebars
(
selOption
,
data
));
$
(
"
#proId
"
).
val
(
json
.
bean
.
proId
);
proList
=
data
.
rows
;
form
.
render
(
'
select
'
);
});
// 获取我的任务
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
protask015
"
,
params
:
{
proId
:
json
.
bean
.
proId
},
type
:
'
json
'
,
callback
:
function
(
data
)
{
taskListHtml
=
getDataUseHandlebars
(
selOption
,
data
);
$
.
each
(
json
.
bean
.
tasks
,
function
(
i
,
item
)
{
showRow
(
item
);
});
}});
matchingLanguage
();
form
.
render
();
}});
//所属项目变化事件
form
.
on
(
'
select(proIdProperty)
'
,
function
(
data
)
{
var
thisRowValue
=
data
.
value
;
if
(
!
isNull
(
thisRowValue
)
&&
thisRowValue
!=
'
请选择
'
)
{
$
.
each
(
proList
,
function
(
i
,
item
)
{
if
(
item
.
id
==
thisRowValue
){
$
(
"
#projectNumber
"
).
html
(
item
.
projectNumber
);
if
(
isNull
(
item
.
customerName
)){
$
(
"
#title
"
).
val
(
item
.
name
+
"
-
"
+
getYMDFormatDate
());
}
else
{
$
(
"
#title
"
).
val
(
item
.
name
+
"
-
"
+
item
.
customerName
+
"
-
"
+
getYMDFormatDate
());
}
//获取我的任务
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
protask015
"
,
params
:
{
proId
:
item
.
id
},
type
:
'
json
'
,
method
:
"
POST
"
,
callback
:
function
(
json
)
{
taskListHtml
=
getDataUseHandlebars
(
selOption
,
json
);
resetTableTask
();
}});
return
false
;
}
});
}
else
{
taskListHtml
=
""
;
resetTableTask
();
$
(
"
#projectNumber
"
).
html
(
""
);
}
});
function
resetTableTask
(){
var
rowTr
=
$
(
"
#useTable tr
"
);
$
.
each
(
rowTr
,
function
(
i
,
item
)
{
//获取行编号
var
rowNum
=
$
(
item
).
attr
(
"
trcusid
"
).
replace
(
"
tr
"
,
""
);
$
(
"
#
"
+
"
content
"
+
rowNum
).
html
(
taskListHtml
);
});
form
.
render
(
'
select
'
);
}
form
.
on
(
'
radio(workLoadType)
'
,
function
(
data
)
{
var
thisRowValue
=
data
.
value
;
if
(
thisRowValue
==
1
){
//上一周
setDate
(
addDate
(
new
Date
(),
-
7
));
}
else
if
(
thisRowValue
==
2
){
//本周
setDate
(
new
Date
());
}
else
if
(
thisRowValue
==
3
){
//下一周
setDate
(
addDate
(
new
Date
(),
7
));
}
});
var
cells
=
document
.
getElementById
(
'
dataTr
'
).
getElementsByTagName
(
'
th
'
);
var
clen
=
cells
.
length
;
var
formatDate
=
function
(
date
)
{
var
year
=
date
.
getFullYear
()
+
'
/
'
;
var
month
=
((
date
.
getMonth
()
+
1
)
<
10
?
"
0
"
+
(
date
.
getMonth
()
+
1
)
:
(
date
.
getMonth
()
+
1
))
+
'
/
'
;
var
day
=
date
.
getDate
()
<
10
?
"
0
"
+
date
.
getDate
()
:
date
.
getDate
();
return
year
+
month
+
day
;
};
var
addDate
=
function
(
date
,
n
)
{
date
.
setDate
(
date
.
getDate
()
+
n
);
return
date
;
};
var
setDate
=
function
(
date
)
{
var
week
=
date
.
getDay
()
-
1
;
date
=
addDate
(
date
,
week
*
-
1
);
for
(
var
i
=
0
;
i
<
clen
;
i
++
)
{
cells
[
i
].
innerHTML
=
formatDate
(
i
==
0
?
date
:
addDate
(
date
,
1
));
}
};
//数量变化
$
(
"
body
"
).
on
(
"
input
"
,
"
.wkLoad
"
,
function
()
{
calculatedTotalPrice
();
});
//计算总价
function
calculatedTotalPrice
(){
var
rowTr
=
$
(
"
#useTable tr
"
);
var
allLoad
=
0
;
$
.
each
(
rowTr
,
function
(
i
,
item
)
{
//获取行坐标
var
rowNum
=
$
(
item
).
attr
(
"
trcusid
"
).
replace
(
"
tr
"
,
""
);
//获取周一工作量
var
mon
=
parseInt
(
isNull
(
$
(
"
#mon
"
+
rowNum
).
val
())
?
"
0
"
:
$
(
"
#mon
"
+
rowNum
).
val
());
//获取周二工作量
var
tues
=
parseInt
(
isNull
(
$
(
"
#tues
"
+
rowNum
).
val
())
?
"
0
"
:
$
(
"
#tues
"
+
rowNum
).
val
());
//获取周三工作量
var
wed
=
parseInt
(
isNull
(
$
(
"
#wed
"
+
rowNum
).
val
())
?
"
0
"
:
$
(
"
#wed
"
+
rowNum
).
val
());
//获取周四工作量
var
thur
=
parseInt
(
isNull
(
$
(
"
#thur
"
+
rowNum
).
val
())
?
"
0
"
:
$
(
"
#thur
"
+
rowNum
).
val
());
//获取周五工作量
var
fri
=
parseInt
(
isNull
(
$
(
"
#fri
"
+
rowNum
).
val
())
?
"
0
"
:
$
(
"
#fri
"
+
rowNum
).
val
());
//获取周六工作量
var
satu
=
parseInt
(
isNull
(
$
(
"
#satu
"
+
rowNum
).
val
())
?
"
0
"
:
$
(
"
#satu
"
+
rowNum
).
val
());
//获取周日工作量
var
sun
=
parseInt
(
isNull
(
$
(
"
#sun
"
+
rowNum
).
val
())
?
"
0
"
:
$
(
"
#sun
"
+
rowNum
).
val
());
//计算本行的合计
var
thisRowLoad
=
mon
+
tues
+
wed
+
thur
+
fri
+
satu
+
sun
;
$
(
"
#allload
"
+
rowNum
).
html
(
thisRowLoad
);
//计算所有行的合计
allLoad
+=
thisRowLoad
;
});
$
(
"
#thisRowLoad
"
).
html
(
allLoad
);
}
// 保存为草稿
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(subBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
saveData
(
'
3
'
,
""
);
}
return
false
;
});
function
saveData
(
subType
,
approvalId
)
{
var
rowTr
=
$
(
"
#useTable tr
"
);
var
tableData
=
new
Array
();
$
.
each
(
rowTr
,
function
(
i
,
item
)
{
//获取行编号
var
rowNum
=
$
(
item
).
attr
(
"
trcusid
"
).
replace
(
"
tr
"
,
""
);
var
row
=
{
taskContent
:
$
(
"
#content
"
+
rowNum
).
val
(),
executePeople
:
$
(
"
#execute
"
+
rowNum
).
val
(),
monAmount
:
isNull
(
$
(
"
#mon
"
+
rowNum
).
val
())
?
"
0
"
:
$
(
"
#mon
"
+
rowNum
).
val
(),
monTime
:
$
(
"
#monTh
"
).
html
(),
tuesAmount
:
isNull
(
$
(
"
#tues
"
+
rowNum
).
val
())
?
"
0
"
:
$
(
"
#tues
"
+
rowNum
).
val
(),
tuesTime
:
$
(
"
#tuesTh
"
).
html
(),
wedAmount
:
isNull
(
$
(
"
#wed
"
+
rowNum
).
val
())
?
"
0
"
:
$
(
"
#wed
"
+
rowNum
).
val
(),
wedTime
:
$
(
"
#wedTh
"
).
html
(),
thurAmount
:
isNull
(
$
(
"
#thur
"
+
rowNum
).
val
())
?
"
0
"
:
$
(
"
#thur
"
+
rowNum
).
val
(),
thurTime
:
$
(
"
#thurTh
"
).
html
(),
friAmount
:
isNull
(
$
(
"
#fri
"
+
rowNum
).
val
())
?
"
0
"
:
$
(
"
#fri
"
+
rowNum
).
val
(),
friTime
:
$
(
"
#friTh
"
).
html
(),
satuAmount
:
isNull
(
$
(
"
#satu
"
+
rowNum
).
val
())
?
"
0
"
:
$
(
"
#satu
"
+
rowNum
).
val
(),
satuTime
:
$
(
"
#satuTh
"
).
html
(),
sunAmount
:
isNull
(
$
(
"
#sun
"
+
rowNum
).
val
())
?
"
0
"
:
$
(
"
#sun
"
+
rowNum
).
val
(),
sunTime
:
$
(
"
#sunTh
"
).
html
(),
allWorkLoad
:
$
(
"
#allload
"
+
rowNum
).
html
()
};
tableData
.
push
(
row
);
});
var
params
=
{
title
:
$
(
"
#title
"
).
val
(),
type
:
$
(
"
input[name='workLoadType']:checked
"
).
val
(),
proId
:
$
(
"
#proId
"
).
val
(),
projectNumber
:
$
(
"
#projectNumber
"
).
html
(),
allWorkLoad
:
$
(
"
#thisRowLoad
"
).
html
().
trim
(),
workloadTaskStr
:
JSON
.
stringify
(
tableData
),
desc
:
$
(
"
#desc
"
).
val
(),
rowId
:
parent
.
rowId
,
enclosureInfo
:
skyeyeEnclosure
.
getEnclosureIdsByBoxId
(
'
enclosureUpload
'
),
subType
:
subType
,
// 1:保存为草稿 2.提交到工作流 3.在工作流中编辑
approvalId
:
approvalId
,
};
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
proworkload008
"
,
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
=
{
trId
:
"
tr
"
+
rowNum
.
toString
(),
//行的id
id
:
"
row
"
+
rowNum
.
toString
(),
//checkbox的id
content
:
"
content
"
+
rowNum
.
toString
(),
//任务内容id
execute
:
"
execute
"
+
rowNum
.
toString
(),
//任务执行人id
mon
:
"
mon
"
+
rowNum
.
toString
(),
//周一工作量id
tues
:
"
tues
"
+
rowNum
.
toString
(),
//周二工作量id
wed
:
"
wed
"
+
rowNum
.
toString
(),
//周三工作量id
thur
:
"
thur
"
+
rowNum
.
toString
(),
//周四工作量id
fri
:
"
fri
"
+
rowNum
.
toString
(),
//周五工作量id
satu
:
"
satu
"
+
rowNum
.
toString
(),
//周六工作量id
sun
:
"
sun
"
+
rowNum
.
toString
(),
//周日工作量id
allload
:
"
allload
"
+
rowNum
.
toString
()
//小计id
};
$
(
"
#useTable
"
).
append
(
getDataUseHandlebars
(
usetableTemplate
,
par
));
//赋值给任务
$
(
"
#
"
+
"
content
"
+
rowNum
.
toString
()).
html
(
taskListHtml
);
form
.
render
(
'
select
'
);
form
.
render
(
'
checkbox
'
);
rowNum
++
;
}
//回显行
function
showRow
(
item
)
{
var
par
=
{
trId
:
"
tr
"
+
rowNum
.
toString
(),
//行的id
id
:
"
row
"
+
rowNum
.
toString
(),
//checkbox的id
content
:
"
content
"
+
rowNum
.
toString
(),
//任务内容id
execute
:
"
execute
"
+
rowNum
.
toString
(),
//任务执行人id
executeContent
:
item
.
executePeople
,
mon
:
"
mon
"
+
rowNum
.
toString
(),
//周一工作量id
monContent
:
item
.
monAmount
,
tues
:
"
tues
"
+
rowNum
.
toString
(),
//周二工作量id
tuesContent
:
item
.
tuesAmount
,
wed
:
"
wed
"
+
rowNum
.
toString
(),
//周三工作量id
wedContent
:
item
.
wedAmount
,
thur
:
"
thur
"
+
rowNum
.
toString
(),
//周四工作量id
thurContent
:
item
.
thurAmount
,
fri
:
"
fri
"
+
rowNum
.
toString
(),
//周五工作量id
friContent
:
item
.
friAmount
,
satu
:
"
satu
"
+
rowNum
.
toString
(),
//周六工作量id
satuContent
:
item
.
satuAmount
,
sun
:
"
sun
"
+
rowNum
.
toString
(),
//周日工作量id
sunContent
:
item
.
sunAmount
,
allload
:
"
allload
"
+
rowNum
.
toString
(),
//小计id
allloadContent
:
item
.
allWorkLoad
};
$
(
"
#useTable
"
).
append
(
getDataUseHandlebars
(
showTemplate
,
par
));
//赋值给任务
$
(
"
#
"
+
"
content
"
+
rowNum
.
toString
()).
html
(
taskListHtml
);
$
(
"
#
"
+
"
content
"
+
rowNum
.
toString
()).
val
(
item
.
taskContent
);
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
();
});
calculatedTotalPrice
();
}
else
{
winui
.
window
.
msg
(
'
请选择要删除的行
'
,
{
icon
:
2
,
time
:
2000
});
}
}
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
\ No newline at end of file
pro/src/main/resources/template/js/proworkload/proworkloadlist.js
已删除
100644 → 0
浏览文件 @
a9785cea
var
rowId
=
""
;
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
,
'
table
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
$
=
layui
.
$
,
form
=
layui
.
form
,
table
=
layui
.
table
;
var
serviceClassName
=
sysServiceMation
[
"
proworkLoad
"
][
"
key
"
];
authBtn
(
'
1574906688311
'
);
table
.
render
({
id
:
'
messageTable
'
,
elem
:
'
#messageTable
'
,
method
:
'
post
'
,
url
:
flowableBasePath
+
'
proworkload001
'
,
where
:
getTableParams
(),
even
:
true
,
page
:
true
,
limits
:
getLimits
(),
limit
:
getLimit
(),
cols
:
[[
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
field
:
'
title
'
,
title
:
'
主题
'
,
align
:
'
left
'
,
width
:
250
,
templet
:
function
(
d
)
{
return
'
<a lay-event="details" class="notice-title-click">
'
+
d
.
title
+
'
</a>
'
;
}},
{
field
:
'
proName
'
,
title
:
'
所属项目
'
,
align
:
'
left
'
,
width
:
100
},
{
field
:
'
projectNumber
'
,
title
:
'
项目编号
'
,
align
:
'
left
'
,
width
:
100
},
{
field
:
'
stateName
'
,
title
:
'
状态
'
,
width
:
90
,
templet
:
function
(
d
)
{
if
(
d
.
state
==
0
){
return
"
<span>草稿</span>
"
;
}
else
if
(
d
.
state
==
1
){
return
"
<span class='state-new'>审核中</span>
"
;
}
else
if
(
d
.
state
==
11
){
return
"
<span class='state-up'>审核通过</span>
"
;
}
else
if
(
d
.
state
==
12
){
return
"
<span class='state-down'>审核失败</span>
"
;
}
else
if
(
d
.
state
==
2
){
return
"
<span class='state-down'>作废</span>
"
;
}
else
if
(
d
.
state
==
3
){
return
"
<span class='state-error'>撤销</span>
"
;
}
}},
{
field
:
'
allWorkLoad
'
,
title
:
'
合计工作量
'
,
align
:
'
left
'
,
width
:
100
},
{
field
:
'
createName
'
,
title
:
'
填报人
'
,
align
:
'
left
'
,
width
:
100
},
{
field
:
'
createTime
'
,
title
:
'
填报时间
'
,
align
:
'
left
'
,
width
:
100
},
{
field
:
'
processInstanceId
'
,
title
:
'
流程ID
'
,
align
:
'
center
'
,
width
:
100
,
templet
:
function
(
d
)
{
if
(
!
isNull
(
d
.
processInstanceId
))
{
return
'
<a lay-event="processDetails" class="notice-title-click">
'
+
d
.
processInstanceId
+
'
</a>
'
;
}
else
{
return
""
;
}
}},
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
250
,
toolbar
:
'
#tableBar
'
}
]],
done
:
function
(
json
)
{
matchingLanguage
();
}
});
table
.
on
(
'
tool(messageTable)
'
,
function
(
obj
)
{
var
data
=
obj
.
data
;
var
layEvent
=
obj
.
event
;
if
(
layEvent
===
'
details
'
){
//详情
details
(
data
);
}
else
if
(
layEvent
===
'
processDetails
'
)
{
//流程详情
activitiUtil
.
activitiDetails
(
data
);
}
else
if
(
layEvent
===
'
edit
'
)
{
//编辑
edit
(
data
);
}
else
if
(
layEvent
===
'
subApproval
'
)
{
//提交审批
subApproval
(
data
,
obj
);
}
else
if
(
layEvent
===
'
cancellation
'
)
{
//作废
cancellation
(
data
,
obj
);
}
else
if
(
layEvent
===
'
del
'
)
{
//删除
del
(
data
,
obj
);
}
else
if
(
layEvent
===
'
revoke
'
)
{
//撤销
revoke
(
data
);
}
});
// 撤销工作量审批申请
function
revoke
(
data
)
{
var
msg
=
'
确认从工作流中撤销选中数据吗?
'
;
layer
.
confirm
(
msg
,
{
icon
:
3
,
title
:
'
撤销任务审批申请
'
},
function
(
index
)
{
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
proworkload005
"
,
params
:
{
processInstanceId
:
data
.
processInstanceId
},
type
:
'
json
'
,
method
:
"
PUT
"
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
"
提交成功
"
,
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
}
// 添加
$
(
"
body
"
).
on
(
"
click
"
,
"
#addBean
"
,
function
()
{
_openNewWindows
({
url
:
"
../../tpl/proworkload/proworkloadadd.html
"
,
title
:
"
新增工作量
"
,
pageId
:
"
proworkloadadd
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
// 工作量提交审批
function
subApproval
(
data
,
obj
){
layer
.
confirm
(
systemLanguage
[
"
com.skyeye.approvalOperationMsg
"
][
languageType
],
{
icon
:
3
,
title
:
systemLanguage
[
"
com.skyeye.approvalOperation
"
][
languageType
]},
function
(
index
)
{
layer
.
close
(
index
);
activitiUtil
.
startProcess
(
serviceClassName
,
null
,
function
(
approvalId
)
{
var
params
=
{
rowId
:
data
.
id
,
approvalId
:
approvalId
};
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
proworkload004
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
"
提交成功
"
,
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
});
}
// 作废
function
cancellation
(
data
,
obj
){
var
msg
=
obj
?
'
确认作废【
'
+
obj
.
data
.
title
+
'
】吗?
'
:
'
确认作废该任务信息吗?
'
;
layer
.
confirm
(
msg
,
{
icon
:
3
,
title
:
'
工作量作废
'
},
function
(
index
)
{
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
proworkload011
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
}
// 详情
function
details
(
data
)
{
rowId
=
data
.
id
;
_openNewWindows
({
url
:
"
../../tpl/proworkload/proworkloaddetails.html
"
,
title
:
systemLanguage
[
"
com.skyeye.detailsPageTitle
"
][
languageType
],
pageId
:
"
protaskdetails
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
}});
}
// 编辑
function
edit
(
data
)
{
rowId
=
data
.
id
;
_openNewWindows
({
url
:
"
../../tpl/proworkload/proworkloadedit.html
"
,
title
:
systemLanguage
[
"
com.skyeye.editPageTitle
"
][
languageType
],
pageId
:
"
proworkloadedit
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
}
// 删除
function
del
(
data
,
obj
)
{
layer
.
confirm
(
systemLanguage
[
"
com.skyeye.deleteOperationMsg
"
][
languageType
],
{
icon
:
3
,
title
:
systemLanguage
[
"
com.skyeye.deleteOperation
"
][
languageType
]},
function
(
index
)
{
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
proworkload010
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.deleteOperationSuccessMsg
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
}
// 搜索表单
form
.
render
();
form
.
on
(
'
submit(formSearch)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
table
.
reloadData
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
}
return
false
;
});
// 刷新数据
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
loadTable
();
});
function
loadTable
()
{
table
.
reloadData
(
"
messageTable
"
,
{
where
:
getTableParams
()});
}
function
getTableParams
()
{
return
{
proName
:
$
(
"
#proName
"
).
val
(),
workloadName
:
$
(
"
#workloadName
"
).
val
(),
state
:
$
(
"
#state
"
).
val
()
};
}
exports
(
'
proworkloadlist
'
,
{});
});
pro/src/main/resources/template/tpl/proworkload/proworkloadadd.html
已删除
100644 → 0
浏览文件 @
a9785cea
<!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"
>
<input
type=
"text"
id=
"title"
name=
"title"
win-verify=
"required"
placeholder=
"请输入主题"
class=
"layui-input"
/>
</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=
"writePeople"
>
</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 winui-radio"
>
<input
type=
"radio"
name=
"workLoadType"
lay-filter=
"workLoadType"
value=
"1"
title=
"上一周"
/>
<input
type=
"radio"
name=
"workLoadType"
lay-filter=
"workLoadType"
value=
"2"
title=
"本周"
checked=
"checked"
/>
<input
type=
"radio"
name=
"workLoadType"
lay-filter=
"workLoadType"
value=
"3"
title=
"下一周"
/>
</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=
"proId"
lay-filter=
"proIdProperty"
lay-search
win-verify=
"required"
>
</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=
"projectNumber"
>
</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
style=
"width: 30px;"
rowspan=
"2"
></th>
<th
style=
"width: 180px;"
rowspan=
"2"
>
填报人相关任务
</th>
<th
style=
"width: 150px;"
rowspan=
"2"
>
任务执行人
</th>
<th
style=
"width: 70px;"
>
周一
</th>
<th
style=
"width: 70px;"
>
周二
</th>
<th
style=
"width: 70px;"
>
周三
</th>
<th
style=
"width: 70px;"
>
周四
</th>
<th
style=
"width: 70px;"
>
周五
</th>
<th
style=
"width: 70px;"
>
周六
</th>
<th
style=
"width: 70px;"
>
周日
</th>
<th
style=
"width: 70px;"
rowspan=
"2"
>
小计
</th>
</tr>
<tr
id=
"dataTr"
>
<th
id=
"monTh"
></th>
<th
id=
"tuesTh"
></th>
<th
id=
"wedTh"
></th>
<th
id=
"thurTh"
></th>
<th
id=
"friTh"
></th>
<th
id=
"satuTh"
></th>
<th
id=
"sunTh"
></th>
</tr>
</thead>
<tbody
id=
"useTable"
class=
"insurance-table"
>
</tbody>
</table>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs4"
style=
"margin-left: 60%;"
>
<label
class=
"layui-form-label"
>
合计
</label>
<div
class=
"layui-input-block ver-center"
id=
"thisRowLoad"
>
0
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
附加描述
</label>
<div
class=
"layui-input-block"
>
<textarea
id=
"desc"
name=
"desc"
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
=
"
{{content}}
"
lay
-
search
win
-
verify
=
"
required
"
><
/select></
td
>
<
td
><
input
type
=
"
text
"
id
=
"
{{execute}}
"
win
-
verify
=
"
required
"
placeholder
=
"
多个执行人逗号隔开
"
class
=
"
layui-input
"
maxlength
=
"
200
"
/><
/td
>
<
td
><
input
type
=
"
number
"
id
=
"
{{mon}}
"
win
-
verify
=
"
number
"
placeholder
=
"
请输入工作量
"
class
=
"
layui-input wkLoad
"
value
=
"
0
"
/><
/td
>
<
td
><
input
type
=
"
number
"
id
=
"
{{tues}}
"
win
-
verify
=
"
number
"
placeholder
=
"
请输入工作量
"
class
=
"
layui-input wkLoad
"
value
=
"
0
"
/><
/td
>
<
td
><
input
type
=
"
number
"
id
=
"
{{wed}}
"
win
-
verify
=
"
number
"
placeholder
=
"
请输入工作量
"
class
=
"
layui-input wkLoad
"
value
=
"
0
"
/><
/td
>
<
td
><
input
type
=
"
number
"
id
=
"
{{thur}}
"
win
-
verify
=
"
number
"
placeholder
=
"
请输入工作量
"
class
=
"
layui-input wkLoad
"
value
=
"
0
"
/><
/td
>
<
td
><
input
type
=
"
number
"
id
=
"
{{fri}}
"
win
-
verify
=
"
number
"
placeholder
=
"
请输入工作量
"
class
=
"
layui-input wkLoad
"
value
=
"
0
"
/><
/td
>
<
td
><
input
type
=
"
number
"
id
=
"
{{satu}}
"
win
-
verify
=
"
number
"
placeholder
=
"
请输入工作量
"
class
=
"
layui-input wkLoad
"
value
=
"
0
"
/><
/td
>
<
td
><
input
type
=
"
number
"
id
=
"
{{sun}}
"
win
-
verify
=
"
number
"
placeholder
=
"
请输入工作量
"
class
=
"
layui-input wkLoad
"
value
=
"
0
"
/><
/td
>
<
td
id
=
"
{{allload}}
"
>
0
<
/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/proworkload/
'
}).
use
(
'
proworkloadadd
'
);
</script>
</body>
</html>
\ No newline at end of file
pro/src/main/resources/template/tpl/proworkload/proworkloadalllist.html
已删除
100644 → 0
浏览文件 @
a9785cea
<!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"
>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
主题
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"workloadName"
name=
"workloadName"
placeholder=
"请输入主题"
class=
"layui-input"
/>
</div>
<label
class=
"layui-form-label"
>
所属项目
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"proName"
name=
"proName"
placeholder=
"请输入项目名称"
class=
"layui-input"
/>
</div>
<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=
"11"
>
审核通过
</option>
<option
value=
"12"
>
审核不通过
</option>
<option
value=
"2"
>
作废
</option>
<option
value=
"3"
>
撤销
</option>
</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>
</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;"
>
<div
style=
"margin:auto 10px;"
>
<table
id=
"messageTable"
lay-filter=
"messageTable"
></table>
<script
type=
"text/html"
id=
"tableBar"
>
</script>
</div>
</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/proworkload/
'
}).
use
(
'
proworkloadalllist
'
);
</script>
</body>
</html>
\ No newline at end of file
pro/src/main/resources/template/tpl/proworkload/proworkloaddetails.html
已删除
100644 → 0
浏览文件 @
a9785cea
<!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>
<!-- 数据展示模板 -->
<script
type=
"text/x-handlebars-template"
id=
"beanTemplate"
>
{{
#
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
"
>
{{
userName
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
日期类型
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
workLoadType
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
所属项目
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
projectName
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
项目编号
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
projectNumber
}}
<
/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
style
=
"
width: 180px;
"
rowspan
=
"
2
"
>
填报人相关任务
<
/th
>
<
th
style
=
"
width: 150px;
"
rowspan
=
"
2
"
>
任务执行人
<
/th
>
<
th
style
=
"
width: 70px;
"
>
周一
<
/th
>
<
th
style
=
"
width: 70px;
"
>
周二
<
/th
>
<
th
style
=
"
width: 70px;
"
>
周三
<
/th
>
<
th
style
=
"
width: 70px;
"
>
周四
<
/th
>
<
th
style
=
"
width: 70px;
"
>
周五
<
/th
>
<
th
style
=
"
width: 70px;
"
>
周六
<
/th
>
<
th
style
=
"
width: 70px;
"
>
周日
<
/th
>
<
th
style
=
"
width: 70px;
"
rowspan
=
"
2
"
>
小计
<
/th
>
<
/tr
>
<
tr
id
=
"
dataTr
"
>
<
th
id
=
"
monTh
"
><
/th
>
<
th
id
=
"
tuesTh
"
><
/th
>
<
th
id
=
"
wedTh
"
><
/th
>
<
th
id
=
"
thurTh
"
><
/th
>
<
th
id
=
"
friTh
"
><
/th
>
<
th
id
=
"
satuTh
"
><
/th
>
<
th
id
=
"
sunTh
"
><
/th
>
<
/tr
>
<
/thead
>
<
tbody
id
=
"
useTable
"
class
=
"
insurance-table
"
>
{{
#
each
tasks
}}
<
td
>
{{
taskContent
}}
<
/td
>
<
td
>
{{
executePeople
}}
<
/td
>
<
td
>
{{
monAmount
}}
<
/td
>
<
td
>
{{
tuesAmount
}}
<
/td
>
<
td
>
{{
wedAmount
}}
<
/td
>
<
td
>
{{
thurAmount
}}
<
/td
>
<
td
>
{{
friAmount
}}
<
/td
>
<
td
>
{{
satuAmount
}}
<
/td
>
<
td
>
{{
sunAmount
}}
<
/td
>
<
td
>
{{
allWorkLoad
}}
<
/td
>
{{
/
each
}}
<
/tbody
>
<
/table
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs4
"
style
=
"
margin-left: 60%;
"
>
<
label
class
=
"
layui-form-label
"
>
合计
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
id
=
"
thisRowLoad
"
>
{{
allworkload
}}
<
/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-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
附件
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
id
=
"
enclosureUploadBox
"
>
<
/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/proworkload/
'
}).
use
(
'
proworkloaddetails
'
);
</script>
</body>
</html>
\ No newline at end of file
pro/src/main/resources/template/tpl/proworkload/proworkloadedit.html
已删除
100644 → 0
浏览文件 @
a9785cea
<!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"
>
<input
type=
"text"
id=
"title"
name=
"title"
win-verify=
"required"
placeholder=
"请输入主题"
class=
"layui-input"
/>
</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=
"writePeople"
>
</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 winui-radio"
>
<input
type=
"radio"
name=
"workLoadType"
lay-filter=
"workLoadType"
value=
"1"
title=
"上一周"
/>
<input
type=
"radio"
name=
"workLoadType"
lay-filter=
"workLoadType"
value=
"2"
title=
"本周"
/>
<input
type=
"radio"
name=
"workLoadType"
lay-filter=
"workLoadType"
value=
"3"
title=
"下一周"
/>
</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=
"proId"
lay-filter=
"proIdProperty"
lay-search
win-verify=
"required"
>
</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=
"projectNumber"
>
</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
style=
"width: 30px;"
rowspan=
"2"
></th>
<th
style=
"width: 180px;"
rowspan=
"2"
>
填报人相关任务
</th>
<th
style=
"width: 150px;"
rowspan=
"2"
>
任务执行人
</th>
<th
style=
"width: 70px;"
>
周一
</th>
<th
style=
"width: 70px;"
>
周二
</th>
<th
style=
"width: 70px;"
>
周三
</th>
<th
style=
"width: 70px;"
>
周四
</th>
<th
style=
"width: 70px;"
>
周五
</th>
<th
style=
"width: 70px;"
>
周六
</th>
<th
style=
"width: 70px;"
>
周日
</th>
<th
style=
"width: 70px;"
rowspan=
"2"
>
小计
</th>
</tr>
<tr
id=
"dataTr"
>
<th
id=
"monTh"
></th>
<th
id=
"tuesTh"
></th>
<th
id=
"wedTh"
></th>
<th
id=
"thurTh"
></th>
<th
id=
"friTh"
></th>
<th
id=
"satuTh"
></th>
<th
id=
"sunTh"
></th>
</tr>
</thead>
<tbody
id=
"useTable"
class=
"insurance-table"
>
</tbody>
</table>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs4"
style=
"margin-left: 60%;"
>
<label
class=
"layui-form-label"
>
合计
</label>
<div
class=
"layui-input-block ver-center"
id=
"thisRowLoad"
>
0
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
附加描述
</label>
<div
class=
"layui-input-block"
>
<textarea
id=
"desc"
name=
"desc"
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=
"subBean"
><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
=
"
{{content}}
"
lay
-
search
win
-
verify
=
"
required
"
><
/select></
td
>
<
td
><
input
type
=
"
text
"
id
=
"
{{execute}}
"
win
-
verify
=
"
required
"
placeholder
=
"
多个执行人逗号隔开
"
class
=
"
layui-input
"
maxlength
=
"
200
"
/><
/td
>
<
td
><
input
type
=
"
number
"
id
=
"
{{mon}}
"
win
-
verify
=
"
number
"
placeholder
=
"
请输入工作量
"
class
=
"
layui-input wkLoad
"
value
=
"
0
"
/><
/td
>
<
td
><
input
type
=
"
number
"
id
=
"
{{tues}}
"
win
-
verify
=
"
number
"
placeholder
=
"
请输入工作量
"
class
=
"
layui-input wkLoad
"
value
=
"
0
"
/><
/td
>
<
td
><
input
type
=
"
number
"
id
=
"
{{wed}}
"
win
-
verify
=
"
number
"
placeholder
=
"
请输入工作量
"
class
=
"
layui-input wkLoad
"
value
=
"
0
"
/><
/td
>
<
td
><
input
type
=
"
number
"
id
=
"
{{thur}}
"
win
-
verify
=
"
number
"
placeholder
=
"
请输入工作量
"
class
=
"
layui-input wkLoad
"
value
=
"
0
"
/><
/td
>
<
td
><
input
type
=
"
number
"
id
=
"
{{fri}}
"
win
-
verify
=
"
number
"
placeholder
=
"
请输入工作量
"
class
=
"
layui-input wkLoad
"
value
=
"
0
"
/><
/td
>
<
td
><
input
type
=
"
number
"
id
=
"
{{satu}}
"
win
-
verify
=
"
number
"
placeholder
=
"
请输入工作量
"
class
=
"
layui-input wkLoad
"
value
=
"
0
"
/><
/td
>
<
td
><
input
type
=
"
number
"
id
=
"
{{sun}}
"
win
-
verify
=
"
number
"
placeholder
=
"
请输入工作量
"
class
=
"
layui-input wkLoad
"
value
=
"
0
"
/><
/td
>
<
td
id
=
"
{{allload}}
"
>
0
<
/td
>
<
/tr
>
</script>
<!-- 回显时使用的模板 -->
<script
type=
"text/x-handlebars-template"
id=
"showTemplate"
>
<
tr
trcusid
=
"
{{trId}}
"
>
<
td
><
input
type
=
"
checkbox
"
rowId
=
"
{{id}}
"
lay
-
filter
=
"
checkboxProperty
"
name
=
"
tableCheckRow
"
/><
/td
>
<
td
><
select
id
=
"
{{content}}
"
lay
-
search
win
-
verify
=
"
required
"
><
/select></
td
>
<
td
><
input
type
=
"
text
"
id
=
"
{{execute}}
"
win
-
verify
=
"
required
"
placeholder
=
"
多个执行人逗号隔开
"
class
=
"
layui-input
"
maxlength
=
"
200
"
value
=
"
{{executeContent}}
"
/><
/td
>
<
td
><
input
type
=
"
number
"
id
=
"
{{mon}}
"
win
-
verify
=
"
number
"
placeholder
=
"
请输入工作量
"
class
=
"
layui-input wkLoad
"
value
=
"
{{monContent}}
"
/><
/td
>
<
td
><
input
type
=
"
number
"
id
=
"
{{tues}}
"
win
-
verify
=
"
number
"
placeholder
=
"
请输入工作量
"
class
=
"
layui-input wkLoad
"
value
=
"
{{tuesContent}}
"
/><
/td
>
<
td
><
input
type
=
"
number
"
id
=
"
{{wed}}
"
win
-
verify
=
"
number
"
placeholder
=
"
请输入工作量
"
class
=
"
layui-input wkLoad
"
value
=
"
{{wedContent}}
"
/><
/td
>
<
td
><
input
type
=
"
number
"
id
=
"
{{thur}}
"
win
-
verify
=
"
number
"
placeholder
=
"
请输入工作量
"
class
=
"
layui-input wkLoad
"
value
=
"
{{thurContent}}
"
/><
/td
>
<
td
><
input
type
=
"
number
"
id
=
"
{{fri}}
"
win
-
verify
=
"
number
"
placeholder
=
"
请输入工作量
"
class
=
"
layui-input wkLoad
"
value
=
"
{{friContent}}
"
/><
/td
>
<
td
><
input
type
=
"
number
"
id
=
"
{{satu}}
"
win
-
verify
=
"
number
"
placeholder
=
"
请输入工作量
"
class
=
"
layui-input wkLoad
"
value
=
"
{{satuContent}}
"
/><
/td
>
<
td
><
input
type
=
"
number
"
id
=
"
{{sun}}
"
win
-
verify
=
"
number
"
placeholder
=
"
请输入工作量
"
class
=
"
layui-input wkLoad
"
value
=
"
{{sunContent}}
"
/><
/td
>
<
td
id
=
"
{{allload}}
"
>
{{
allloadContent
}}
<
/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/proworkload/
'
}).
use
(
'
proworkloadedit
'
);
</script>
</body>
</html>
\ No newline at end of file
pro/src/main/resources/template/tpl/proworkload/proworkloadlist.html
已删除
100644 → 0
浏览文件 @
a9785cea
<!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"
>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
主题
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"workloadName"
name=
"workloadName"
placeholder=
"请输入主题"
class=
"layui-input"
/>
</div>
<label
class=
"layui-form-label"
>
所属项目
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"proName"
name=
"proName"
placeholder=
"请输入项目名称"
class=
"layui-input"
/>
</div>
<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=
"11"
>
审核通过
</option>
<option
value=
"12"
>
审核不通过
</option>
<option
value=
"2"
>
作废
</option>
<option
value=
"3"
>
撤销
</option>
</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>
</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=
"1574906688311"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.addBtn"
></language></button>
</div>
</div>
<div
style=
"margin:auto 10px;"
>
<div
style=
"margin:auto 10px;"
>
<table
id=
"messageTable"
lay-filter=
"messageTable"
></table>
<script
type=
"text/html"
id=
"tableBar"
>
{{
#
if
(
d
.
state
==
'
0
'
||
d
.
state
==
'
12
'
||
d
.
state
==
'
3
'
){
}}
{{
#
if
(
auth
(
'
1574906702989
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
subApproval
"
>
提交审批
<
/a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1574906740546
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-danger
"
lay
-
event
=
"
cancellation
"
>
作废
<
/a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1574906732146
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-danger
"
lay
-
event
=
"
del
"
><
language
showName
=
"
com.skyeye.deleteBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
}
}}
{{
#
if
(
d
.
editRow
==
'
1
'
||
d
.
editRow
==
'
2
'
){
}}
{{
#
if
(
auth
(
'
1574906722015
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
edit
"
><
language
showName
=
"
com.skyeye.editBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
}
}}
{{
#
if
(
d
.
editRow
==
'
2
'
){
}}
{{
#
if
(
auth
(
'
1574906712083
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-danger
"
lay
-
event
=
"
revoke
"
>
撤销
<
/a
>
{{
#
}
}}
{{
#
}
}}
</script>
</div>
</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/proworkload/
'
}).
use
(
'
proworkloadlist
'
);
</script>
</body>
</html>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录