Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
2729f745
提交
2729f745
authored
10月 25, 2021
作者:
zjm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(工作交接): 修改工作交接模版信息
修改工作交接模版信息
上级
48376a10
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
1412 行增加
和
285 行删除
+1412
-285
WorkHandoverDoc.java
...java/com/tykj/dev/device/file/entity/WorkHandoverDoc.java
+2
-2
JavaToPdfHtmlFreeMarker.java
...om/tykj/dev/device/file/util/JavaToPdfHtmlFreeMarker.java
+134
-116
bill1-copy.html
dev-union/src/main/resources/htmlTemplate/bill1-copy.html
+442
-0
bill13-copy.html
dev-union/src/main/resources/htmlTemplate/bill13-copy.html
+769
-0
bill13.html
dev-union/src/main/resources/htmlTemplate/bill13.html
+65
-167
没有找到文件。
dev-file/src/main/java/com/tykj/dev/device/file/entity/WorkHandoverDoc.java
浏览文件 @
2729f745
...
@@ -23,8 +23,8 @@ import java.util.List;
...
@@ -23,8 +23,8 @@ import java.util.List;
public
class
WorkHandoverDoc
{
public
class
WorkHandoverDoc
{
@ApiModelProperty
(
name
=
"时间"
)
@ApiModelProperty
(
name
=
"时间"
)
private
Date
time
;
private
String
unit
;
@ApiModelProperty
(
name
=
"装备数据集合"
)
@ApiModelProperty
(
name
=
"装备数据集合"
)
private
List
<
WorkHandover
Device
>
workHandoverDeviceList
;
private
List
<
Document
Device
>
workHandoverDeviceList
;
}
}
dev-file/src/main/java/com/tykj/dev/device/file/util/JavaToPdfHtmlFreeMarker.java
浏览文件 @
2729f745
...
@@ -1128,52 +1128,50 @@ public class JavaToPdfHtmlFreeMarker {
...
@@ -1128,52 +1128,50 @@ public class JavaToPdfHtmlFreeMarker {
}
}
/**
//
/**
* freemarker渲染html workHandoverDoc
//
* freemarker渲染html workHandoverDoc
*/
//
*/
public
static
String
[]
freeMarkerRenderWorkHandover
(
WorkHandoverDoc
workHandoverDoc
,
String
htmlPath
)
{
//
public static String[] freeMarkerRenderWorkHandover(WorkHandoverDoc workHandoverDoc,String htmlPath) {
Writer
out
=
new
StringWriter
();
//
Writer out = new StringWriter();
String
[]
strings
=
new
String
[
100000
];
//
String [] strings=new String[100000];
int
index
=
0
;
//
int index=0;
try
{
//
try {
// 获取模板,并设置编码方式
//
// 获取模板,并设置编码方式
Template
template
=
freemarkerCfg
.
getTemplate
(
"bill3.html"
);
//
Template template = freemarkerCfg.getTemplate("bill3.html");
template
.
setEncoding
(
"UTF-8"
);
//
template.setEncoding("UTF-8");
List
<
WorkHandoverDevice
>
list
=
workHandoverDoc
.
getWorkHandoverDeviceList
();
//
List<WorkHandoverDevice> list = workHandoverDoc.getWorkHandoverDeviceList();
List
<
List
<
WorkHandoverDevice
>>
listList
=
toListWorkHandoverDevice
(
list
);
//
List<List<WorkHandoverDevice>> listList=toListWorkHandoverDevice(list);
Integer
count
=
listList
.
size
();
//
Integer count=listList.size();
for
(
int
i
=
1
;
i
<=
3
;
i
++){
//
for (int i=1; i<=3; i++){
Integer
page
=
1
;
//
Integer page=1;
for
(
List
<
WorkHandoverDevice
>
list1:
listList
)
{
//
for (List<WorkHandoverDevice> list1:listList) {
String
htmlname
=
htmlPath
+
UUID
.
randomUUID
().
toString
()+
".html"
;
//
String htmlname=htmlPath+ UUID.randomUUID().toString()+".html";
// 合并数据模型与模板
//
// 合并数据模型与模板
FileWriter
fileWriter
=
new
FileWriter
(
new
File
(
htmlname
));
//
FileWriter fileWriter = new FileWriter(new File(htmlname));
template
.
process
(
toMapWork
(
workHandoverDoc
,
list1
,
MAP1
.
get
(
i
),
page
,
count
),
fileWriter
);
//
template.process(toMapWork(workHandoverDoc,list1,MAP1.get(i),page,count),fileWriter);
out
.
flush
();
//
out.flush();
strings
[
index
]=
htmlname
;
//
strings[index]=htmlname;
index
++;
//
index++;
page
++;
//
page++;
}
//
}
}
//
}
return
strings
;
//
return strings;
}
catch
(
Exception
e
)
{
//
} catch (Exception e) {
e
.
printStackTrace
();
//
e.printStackTrace();
}
finally
{
//
} finally {
try
{
//
try {
out
.
close
();
//
out.close();
}
catch
(
IOException
ex
)
{
//
} catch (IOException ex) {
ex
.
printStackTrace
();
//
ex.printStackTrace();
}
//
}
}
//
}
return
null
;
//
return null;
}
//
}
private
static
Map
<
String
,
Object
>
toMapWork
(
WorkHandoverDoc
workHandoverDoc
,
List
<
WorkHandover
Device
>
list
,
String
test
,
Integer
page
,
Integer
count
){
private
static
Map
<
String
,
Object
>
toMapWork
(
WorkHandoverDoc
workHandoverDoc
,
List
<
Document
Device
>
list
,
String
test
,
Integer
page
,
Integer
count
){
Map
<
String
,
Object
>
data
=
new
HashMap
();
Map
<
String
,
Object
>
data
=
new
HashMap
();
Instant
instant
=
workHandoverDoc
.
getTime
().
toInstant
();
data
.
put
(
"unit"
,
workHandoverDoc
.
getUnit
());
String
local1
=
LocalDateTime
.
ofInstant
(
instant
,
ZoneId
.
systemDefault
()).
format
(
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd"
));
data
.
put
(
"time"
,
local1
);
data
.
put
(
"page"
,
page
);
data
.
put
(
"page"
,
page
);
data
.
put
(
"count"
,
count
);
data
.
put
(
"count"
,
count
);
// AtomicInteger i= new AtomicInteger(1);
// AtomicInteger i= new AtomicInteger(1);
...
@@ -2088,96 +2086,116 @@ public class JavaToPdfHtmlFreeMarker {
...
@@ -2088,96 +2086,116 @@ public class JavaToPdfHtmlFreeMarker {
* @return
* @return
* @throws UnsupportedEncodingException
* @throws UnsupportedEncodingException
*/
*/
public
static
List
<
List
<
WorkHandoverDevice
>>
toWorkHandoverDeviceList
(
List
<
WorkHandover
Device
>
deviceList
)
throws
UnsupportedEncodingException
{
public
static
List
<
List
<
DocumentDevice
>>
toWorkHandoverDeviceList
(
List
<
Document
Device
>
deviceList
)
throws
UnsupportedEncodingException
{
List
<
List
<
WorkHandover
Device
>>
lists
=
new
ArrayList
<>();
List
<
List
<
Document
Device
>>
lists
=
new
ArrayList
<>();
List
<
WorkHandoverDevice
>
revenu
es
=
new
ArrayList
<>();
List
<
DocumentDevice
>
documentDevic
es
=
new
ArrayList
<>();
deviceList
=
deviceList
.
stream
().
sorted
(
Comparator
.
comparing
(
WorkHandoverDevice:
:
getModel
).
thenComparing
(
WorkHandoverDevice:
:
getName
)).
collect
(
Collectors
.
toList
());
deviceList
=
deviceList
.
stream
().
sorted
(
Comparator
.
comparing
(
DocumentDevice:
:
getModel
).
thenComparing
(
DocumentDevice:
:
getParts
)).
collect
(
Collectors
.
toList
());
Integer
code
=
0
;
Integer
code
=
0
;
int
i
=
0
;
int
i
=
0
;
for
(
int
j
=
0
;
j
<
deviceList
.
size
();
j
++){
for
(
int
j
=
0
;
j
<
deviceList
.
size
();
j
++){
WorkHandoverDevice
workHandoverDevice
=
deviceList
.
get
(
j
);
DocumentDevice
documentDevice
=
deviceList
.
get
(
j
);
int
max
=
toWorkHandoverMax
(
workHandoverDevice
);
int
max
=
toWorkHandoverMax
(
documentDevice
);
if
(
i
+
max
==
19
){
if
(
i
+
max
==
15
){
workHandoverDevice
.
setModel
(
String
.
join
(
""
,
toListString
(
workHandoverDevice
.
getModel
(),
16
)));
String
s
=
String
.
join
(
""
,
toListString
(
documentDevice
.
getDeviceSerialNumber
(),
56
));
workHandoverDevice
.
setName
(
String
.
join
(
""
,
toListString
(
workHandoverDevice
.
getName
(),
16
)));
documentDevice
.
setOneCount
(
max
);
workHandoverDevice
.
setSeqs
(
String
.
join
(
""
,
toListString
(
workHandoverDevice
.
getSeqs
(),
32
)));
documentDevice
.
setModel
(
String
.
join
(
""
,
toListString
(
documentDevice
.
getModel
(),
13
)));
workHandoverDevice
.
setOneCount
(
max
);
documentDevice
.
setParts
(
String
.
join
(
""
,
toListString
(
documentDevice
.
getParts
(),
13
)));
documentDevice
.
setRemark
(
String
.
join
(
""
,
toListString
(
documentDevice
.
getRemark
(),
12
)));
documentDevice
.
setDeviceSerialNumber
(
s
);
code
++;
code
++;
workHandover
Device
.
setCode
(
code
);
document
Device
.
setCode
(
code
);
revenues
.
add
(
workHandover
Device
);
documentDevices
.
add
(
document
Device
);
lists
.
add
(
revenu
es
);
lists
.
add
(
documentDevic
es
);
revenues
=
new
ArrayList
<>();
documentDevices
=
new
ArrayList
<>();
i
=
0
;
i
=
0
;
}
else
if
(
i
+
max
>
1
9
){
}
else
if
(
i
+
max
>
1
5
){
//当前页面少了多少行
//当前页面少了多少行
int
differ
=
19
-
i
;
int
differ
=
15
-
i
;
List
<
String
>
modelList
=
toListString
(
workHandoverDevice
.
getModel
(),
16
);
List
<
String
>
modelList
=
toListString
(
documentDevice
.
getModel
(),
13
);
List
<
String
>
nameList
=
toListString
(
workHandoverDevice
.
getName
(),
16
);
List
<
String
>
seqList
=
toListString
(
documentDevice
.
getDeviceSerialNumber
(),
56
);
List
<
String
>
seqList
=
toListString
(
workHandoverDevice
.
getSeqs
(),
32
);
List
<
String
>
pasList
=
toListString
(
documentDevice
.
getParts
(),
13
);
WorkHandoverDevice
workHandoverDevice1
=
new
WorkHandoverDevice
();
List
<
String
>
remarkList
=
toListString
(
documentDevice
.
getRemark
(),
12
);
DocumentDevice
documentDevice1
=
new
DocumentDevice
();
if
(
modelList
.
size
()>
differ
){
if
(
modelList
.
size
()>
differ
){
workHandoverDevice
.
setModel
(
String
.
join
(
""
,
modelList
.
subList
(
0
,
differ
)));
documentDevice
.
setModel
(
String
.
join
(
""
,
modelList
.
subList
(
0
,
differ
)));
workHandoverDevice1
.
setModel
(
String
.
join
(
""
,
modelList
.
subList
(
differ
,
modelList
.
size
())));
documentDevice1
.
setModel
(
String
.
join
(
""
,
modelList
.
subList
(
differ
,
modelList
.
size
())));
}
else
{
documentDevice
.
setModel
(
String
.
join
(
""
,
modelList
.
subList
(
0
,
modelList
.
size
())));
}
if
(
seqList
.
size
()>
differ
){
documentDevice
.
setDeviceSerialNumber
(
String
.
join
(
""
,
seqList
.
subList
(
0
,
differ
)));
documentDevice1
.
setDeviceSerialNumber
(
String
.
join
(
""
,
seqList
.
subList
(
differ
,
seqList
.
size
())));
}
else
{
}
else
{
workHandoverDevice
.
setModel
(
String
.
join
(
""
,
modelList
));
documentDevice
.
setDeviceSerialNumber
(
String
.
join
(
""
,
seqList
.
subList
(
0
,
seqList
.
size
())));
}
}
if
(
name
List
.
size
()>
differ
){
if
(
pas
List
.
size
()>
differ
){
workHandoverDevice
.
setName
(
String
.
join
(
""
,
name
List
.
subList
(
0
,
differ
)));
documentDevice
.
setParts
(
String
.
join
(
""
,
pas
List
.
subList
(
0
,
differ
)));
workHandoverDevice1
.
setName
(
String
.
join
(
""
,
nameList
.
subList
(
differ
,
name
List
.
size
())));
documentDevice1
.
setParts
(
String
.
join
(
""
,
pasList
.
subList
(
differ
,
pas
List
.
size
())));
}
else
{
}
else
{
workHandoverDevice
.
setName
(
String
.
join
(
""
,
nameList
));
documentDevice
.
setParts
(
String
.
join
(
""
,
pasList
.
subList
(
0
,
pasList
.
size
())));
}
}
if
(
seq
List
.
size
()>
differ
){
if
(
remark
List
.
size
()>
differ
){
workHandoverDevice
.
setSeqs
(
String
.
join
(
""
,
seq
List
.
subList
(
0
,
differ
)));
documentDevice
.
setRemark
(
String
.
join
(
""
,
remark
List
.
subList
(
0
,
differ
)));
workHandoverDevice1
.
setSeqs
(
String
.
join
(
""
,
seqList
.
subList
(
differ
,
seq
List
.
size
())));
documentDevice1
.
setRemark
(
String
.
join
(
""
,
remarkList
.
subList
(
differ
,
remark
List
.
size
())));
}
else
{
}
else
{
workHandoverDevice
.
setSeqs
(
String
.
join
(
""
,
seq
List
));
documentDevice
.
setRemark
(
String
.
join
(
""
,
remark
List
));
}
}
code
++;
code
++;
workHandoverDevice
.
setCode
(
code
);
documentDevice
.
setCode
(
code
);
workHandoverDevice
.
setOneCount
(
differ
);
documentDevice
.
setOneCount
(
differ
);
revenues
.
add
(
workHandoverDevice
);
documentDevices
.
add
(
documentDevice
);
lists
.
add
(
revenues
);
lists
.
add
(
documentDevices
);
revenues
=
new
ArrayList
<>();
documentDevices
=
new
ArrayList
<>();
workHandoverDevice1
.
setOneCount
(
max
-
differ
);
code
++;
code
++;
workHandoverDevice1
.
setCode
(
code
);
documentDevice1
.
setCode
(
code
);
revenues
.
add
(
workHandoverDevice1
);
documentDevice1
.
setOneCount
(
max
-
differ
);
documentDevices
.
add
(
documentDevice1
);
i
=
max
-
differ
;
i
=
max
-
differ
;
}
else
{
}
else
{
String
s
=
String
.
join
(
""
,
toListString
(
documentDevice
.
getDeviceSerialNumber
(),
56
));
code
++;
code
++;
workHandoverDevice
.
setModel
(
String
.
join
(
""
,
toListString
(
workHandoverDevice
.
getModel
(),
16
)));
documentDevice
.
setModel
(
String
.
join
(
""
,
toListString
(
documentDevice
.
getModel
(),
13
)));
workHandoverDevice
.
setName
(
String
.
join
(
""
,
toListString
(
workHandoverDevice
.
getName
(),
16
)));
documentDevice
.
setParts
(
String
.
join
(
""
,
toListString
(
documentDevice
.
getParts
(),
13
)));
workHandoverDevice
.
setSeqs
(
String
.
join
(
""
,
toListString
(
workHandoverDevice
.
getSeqs
(),
32
)));
documentDevice
.
setRemark
(
String
.
join
(
""
,
toListString
(
documentDevice
.
getRemark
(),
12
)));
workHandoverDevice
.
setCode
(
code
);
documentDevice
.
setCode
(
code
);
workHandoverDevice
.
setOneCount
(
max
);
documentDevice
.
setOneCount
(
max
);
revenues
.
add
(
workHandoverDevice
);
documentDevice
.
setDeviceSerialNumber
(
s
);
documentDevices
.
add
(
documentDevice
);
i
=
i
+
max
;
i
=
i
+
max
;
}
}
}
}
if
(
revenu
es
.
size
()!=
0
){
if
(
documentDevic
es
.
size
()!=
0
){
lists
.
add
(
revenu
es
);
lists
.
add
(
documentDevic
es
);
}
}
return
lists
;
return
lists
;
}
}
private
static
Integer
toWorkHandoverMax
(
WorkHandoverDevice
workHandoverDevice
){
private
static
Integer
toWorkHandoverMax
(
DocumentDevice
documentDevice
){
int
nameCount
=
String_length
(
workHandoverDevice
.
getName
());
int
partsCount
=
String_length
(
documentDevice
.
getParts
());
int
modelCount
=
String_length
(
workHandoverDevice
.
getModel
());
int
deviceSerialNumberCount
=
String_length
(
documentDevice
.
getDeviceSerialNumber
());
int
seqCount
=
String_length
(
workHandoverDevice
.
getSeqs
());
int
modelCount
=
String_length
(
documentDevice
.
getModel
());
int
name
=
(
nameCount
%
16
>
0
)
?
nameCount
/
16
+
1
:
nameCount
/
16
;
int
remarkCount
=
String_length
(
documentDevice
.
getRemark
());
int
model
=(
modelCount
%
16
>
0
)
?
modelCount
/
16
+
1
:
modelCount
/
16
;
int
parts
=
(
partsCount
%
13
>
0
)
?
partsCount
/
13
+
1
:
partsCount
/
13
;
int
seq
=(
seqCount
%
32
>
0
)
?
seqCount
/
32
+
1
:
seqCount
/
32
;
int
deviceSerialNumber
=(
deviceSerialNumberCount
%
56
>
0
)
?
deviceSerialNumberCount
/
56
+
1
:
deviceSerialNumberCount
/
56
;
int
model
=(
modelCount
%
13
>
0
)
?
modelCount
/
13
+
1
:
modelCount
/
13
;
int
max
=
name
;
int
remark
=(
remarkCount
%
12
>
0
)
?
remarkCount
/
12
+
1
:
remarkCount
/
12
;
int
max
=
parts
;
//求最大
//求最大
if
(
max
<
model
){
if
(
max
<
deviceSerialNumber
){
max
=
model
;
max
=
deviceSerialNumber
;
}
}
if
(
max
<
seq
)
{
if
(
max
<
model
)
{
max
=
seq
;
max
=
model
;
}
}
if
(
max
<
remark
){
max
=
remark
;
}
return
max
;
return
max
;
}
}
...
@@ -2187,31 +2205,31 @@ public class JavaToPdfHtmlFreeMarker {
...
@@ -2187,31 +2205,31 @@ public class JavaToPdfHtmlFreeMarker {
*/
*/
public
static
String
[]
freeMarkerRenderWorkHandover2
(
WorkHandoverDoc
workHandoverDoc
,
String
htmlPath
)
{
public
static
String
[]
freeMarkerRenderWorkHandover2
(
WorkHandoverDoc
workHandoverDoc
,
String
htmlPath
)
{
Writer
out
=
new
StringWriter
();
Writer
out
=
new
StringWriter
();
String
[]
strings
=
new
String
[
100000
];
String
[]
strings
=
new
String
[
100000
];
int
index
=
0
;
int
index
=
0
;
try
{
try
{
// 获取模板,并设置编码方式
// 获取模板,并设置编码方式
Template
template
=
freemarkerCfg
.
getTemplate
(
"bill13.html"
);
Template
template
=
freemarkerCfg
.
getTemplate
(
"bill13.html"
);
template
.
setEncoding
(
"UTF-8"
);
template
.
setEncoding
(
"UTF-8"
);
List
<
WorkHandover
Device
>
list
=
workHandoverDoc
.
getWorkHandoverDeviceList
();
List
<
Document
Device
>
list
=
workHandoverDoc
.
getWorkHandoverDeviceList
();
List
<
List
<
WorkHandoverDevice
>>
listList
=
toWorkHandoverDeviceList
(
list
);
List
<
List
<
DocumentDevice
>>
listList
=
toWorkHandoverDeviceList
(
list
);
Integer
count
=
listList
.
size
();
Integer
count
=
listList
.
size
();
for
(
int
i
=
1
;
i
<=
3
;
i
++)
{
for
(
int
i
=
1
;
i
<=
3
;
i
++)
{
Integer
page
=
1
;
Integer
page
=
1
;
for
(
List
<
WorkHandoverDevice
>
list1:
listList
)
{
for
(
List
<
DocumentDevice
>
list1
:
listList
)
{
String
htmlname
=
htmlPath
+
UUID
.
randomUUID
().
toString
()+
".html"
;
String
htmlname
=
htmlPath
+
UUID
.
randomUUID
().
toString
()
+
".html"
;
// 合并数据模型与模板
// 合并数据模型与模板
FileWriter
fileWriter
=
new
FileWriter
(
new
File
(
htmlname
));
FileWriter
fileWriter
=
new
FileWriter
(
new
File
(
htmlname
));
template
.
process
(
toMapWork
(
workHandoverDoc
,
list1
,
MAP1
.
get
(
i
),
page
,
count
),
fileWriter
);
template
.
process
(
toMapWork
(
workHandoverDoc
,
list1
,
MAP1
.
get
(
i
),
page
,
count
),
fileWriter
);
out
.
flush
();
out
.
flush
();
strings
[
index
]
=
htmlname
;
strings
[
index
]
=
htmlname
;
index
++;
index
++;
page
++;
page
++;
}
}
}
}
return
strings
;
return
strings
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"[freeMarkerRenderWorkHandover2] 方法找不到地址:{}"
,
htmlPath
);
e
.
printStackTrace
(
);
}
finally
{
}
finally
{
try
{
try
{
out
.
close
();
out
.
close
();
...
...
dev-union/src/main/resources/htmlTemplate/bill1-copy.html
0 → 100755
浏览文件 @
2729f745
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
/>
<title>
Document
</title>
<style>
body
,
span
,
p
,
tr
,
td
{
font-size
:
15px
;
font-family
:
SimHei
;
margin
:
0
;
padding
:
0
;
}
/*
@page
{
size
:
297mm
210mm
;}
<!
--
设置
PDF
页面大小,此配置只对生成
PDF
文件有效,不会对页面显示生效
--
>*/
@page
{
size
:
297mm
210mm
;
/*margin: 0.25in;*/
/*-fs-flow-bottom: "footer";*/
/*-fs-flow-left: "left";*/
/*-fs-flow-right: "right";*/
/*border: thin solid black;*/
/*padding: 1em;*/
}
.bottomTxt
{
text-align
:
center
;
font-size
:
15px
;
height
:
10px
;
color
:
#000
;
margin-top
:
4px
;
line-height
:
10px
;
}
.returnTablePrint
{
width
:
100%
;
height
:
100%
;
overflow
:
hidden
;
color
:
#000
;
cursor
:
default
;
}
.returnTablePrint
.content
{
width
:
100%
;
height
:
100%
;
/* background: url("../../../assets/img/detailsBg.png") no-repeat; */
/*background-size: 100% 100%;*/
/*padding: 30px;*/
/*box-sizing: border-box;*/
}
.returnTablePrint
.content
>
div
{
width
:
100%
;
height
:
100%
;
background
:
#fff
;
/* padding: 30px; */
box-sizing
:
border-box
;
}
/* .returnTablePrint .content>p{
width: 100%;
text-align: center;
font-size: 22px;
font-weight: bold;
color: #4a475d;
} */
.returnTablePrint
.listWrapper
{
/* width: 92%; */
/* margin: 0 auto; */
/* padding: 0px 20px 20px 20px; */
/* height: calc(100% - 70px); */
/*padding: 10px 30px;*/
box-sizing
:
border-box
;
}
.returnTablePrint
.list
{
/* width: 92%; */
/* margin: 0 auto; */
/* padding: 0px 20px 20px 20px; */
/* height: calc(100% - 75px); */
height
:
calc
(
100%
-
12px
)
}
.returnTablePrint
.title
{
width
:
100%
;
font-size
:
22px
;
text-align
:
center
;
position
:
relative
;
/* margin: 0 0 15px; */
padding
:
0
;
box-sizing
:
border-box
;
margin-top
:
9px
;
}
/* .returnTablePrint .title span:nth-child(2){
font-size: 28px;
color: #000000;
}
.returnTablePrint .title span:nth-child(2) span{
font-size: 20px;
color: #141414;
} */
.returnTablePrint
.title
.number
{
font-size
:
15px
;
color
:
#000
;
}
/* .returnTablePrint .other{
width: 100%;
color: #141414;
font-size: 20px;
margin-top: 20px;
padding-left: 50px;
position: relative;
box-sizing: border-box;
margin-bottom: 20px;
}
.returnTablePrint .other>span span:nth-child(2){
display: inline-block;
margin:0 40px 0 10px;
} */
.returnTablePrint
.listCon
{
height
:
100%
;
border
:
1px
solid
#7f7f7f
;
}
.returnTablePrint
.line1
{
width
:
100%
;
font-size
:
10px
;
box-sizing
:
border-box
;
border-bottom
:
1px
solid
#7f7f7f
;
color
:
#000
;
height
:
24px
;
line-height
:
24px
;
}
.returnTablePrint
.line1
.sendTo
{
display
:
inline-block
;
width
:
49%
;
text-indent
:
5px
;
box-sizing
:
border-box
;
/*padding-left: 20px;*/
}
.returnTablePrint
.line1
.sendNum
{
display
:
inline-block
;
width
:
49%
;
box-sizing
:
border-box
;
text-indent
:
5px
;
border-left
:
1px
solid
#7f7f7f
;
}
.returnTablePrint
.line1
.sendTo
span
:nth-child
(
2
),
.returnTablePrint
.line1
.sendNum
span
:nth-child
(
2
)
{
color
:
#000
;
display
:
inline-block
;
margin-left
:
5px
;
}
.returnTablePrint
.line2
{
height
:
100%
;
/* padding: 20px; */
border-bottom
:
1px
solid
#7f7f7f
;
}
.returnTablePrint
.tableList
{
height
:
492px
;
}
.returnTablePrint
.line2
>>>
.el-table
tbody
tr
:nth-child
(
odd
)
{
background-color
:
#fff
;
}
.returnTablePrint
.line2
>>>
.el-table
tbody
tr
:nth-child
(
even
)
{
background-color
:
#fff
;
}
.returnTablePrint
.line3
{
width
:
100%
;
height
:
82px
;
/* box-sizing: border-box; */
/*height:150px;*/
/*display: flex;*/
/* height:170px; */
/* padding:20px 0 20px 0; */
}
.returnTablePrint
.line3
.left
{
display
:
inline-block
;
width
:
25%
;
box-sizing
:
border-box
;
/*padding-left: 20px;*/
position
:
relative
;
line-height
:
81px
;
}
.returnTablePrint
.line3
.left
{
border-right
:
1px
solid
#7f7f7f
;
/*padding-bottom: 40px;*/
}
.returnTablePrint
.line3
.left
:last-child
{
border-right
:
none
;
/*padding-bottom: 40px;*/
}
.returnTablePrint
.line3
.left
>
span
{
text-indent
:
10px
;
}
.returnTablePrint
.line3
.left
>
span
{
display
:
block
;
/* margin: 15px 0px; */
}
.returnTablePrint
.line3
.left
>
span
>
span
:nth-child
(
2
)
{
display
:
inline-block
;
margin-left
:
10px
;
}
.returnTablePrint
.line3
i
{
display
:
block
;
text-align
:
right
;
position
:
absolute
;
right
:
5px
;
bottom
:
5px
;
font-style
:
normal
;
}
.returnTablePrint
.line3
i
>
span
>
span
{
display
:
block
;
}
.returnTablePrint
>>>
.el-scrollbar__wrap
{
overflow-x
:
hidden
;
margin-bottom
:
0
;
}
.returnTablePrint
.checkName
span
:nth-child
(
2
)
{
color
:
#000
;
display
:
inline-block
;
margin-left
:
20px
;
}
.returnTablePrint
>>>
.el-table
tbody
.cell
{
color
:
#000
;
}
.returnTablePrint
.label
{
color
:
#000
;
font-size
:
15px
;
;
}
.returnTablePrint
.value
{
color
:
#000
;
font-size
:
15px
;
;
}
.returnTablePrint
.main-title
span
{
font-size
:
22px
;
color
:
#333
;
font-weight
:
bold
;
}
.returnTablePrint
.main-title
{
font-size
:
17px
;
color
:
#000000
;
/* margin-bottom: 20px; */
text-align
:
center
;
}
.returnTablePrint
.footer
{
display
:
flex
;
justify-content
:
flex-end
;
padding
:
0
40px
;
box-sizing
:
border-box
;
}
.button-submit
{
margin-left
:
50px
;
}
table
.altrowstable
{
width
:
100%
;
font-size
:
15px
;
color
:
#141414
;
border-width
:
0px
;
border-color
:
#a9c6c9
;
border-collapse
:
collapse
;
text-align
:
center
;
table-layout
:
fixed
;
word-break
:
break-all
;
}
table
.altrowstable
th
{
border-width
:
0px
;
border-style
:
solid
;
border-color
:
#a9c6c9
;
background-color
:
#dedede
;
height
:
24px
;
line-height
:
24px
;
font-size
:
15px
;
}
table
.altrowstable
td
{
border-width
:
0px
;
height
:
24px
;
line-height
:
24px
;
font-size
:
15px
;
/*border-style: solid;*/
/*border-color: #a9c6c9;*/
/*border: 1px solid #bebebe;*/
word-break
:
break-all
;
word-wrap
:
break-word
;
width
:
100%
;
}
.oddrowcolor
{
background-color
:
#fff
;
}
.evenrowcolor
{
background-color
:
#fafafa
;
}
tr
:nth-child
(
odd
)
{
background
:
#fafafa
;
}
</style>
</head>
<body>
<div
class=
"returnTablePrint"
>
<div
class=
"content"
>
<div>
<div
class=
"listWrapper"
>
<div
class=
"list"
>
<div
class=
"title"
>
<div
class=
"main-title"
>
<span>
${title!}
</span>
</div>
<div
style=
"width:100%;text-align:left;font-size: 1px;margin-bottom: 2px;"
>
<div
style=
"text-align:left;display: inline-block; width: 33%"
class=
"number"
>
<span
class=
"number"
>
${number!}
</span>
</div>
<div
style=
"text-align:center;display: inline-block; width: 33%"
class=
"number"
>
<span>
(${ul!})
</span>
</div>
<div
style=
"text-align:right;display: inline-block; width: 33%"
class=
"number"
>
<span>
机密
</span>
</div>
</div>
</div>
<div
class=
"listCon"
>
<div
class=
"line1"
>
<span
class=
"sendTo"
>
<span>
销毁单位:
</span>
<span>
${unitName!}
</span>
</span>
<span
class=
"sendNum"
>
<span>
销毁时间:
</span>
<span>
${time!}
</span>
</span>
</div>
<div
class=
"line2 tableList"
>
<table
class=
"altrowstable"
id=
"alternatecolor"
>
<tr>
<th
width=
"70px"
>
序号
</th>
<th>
型号
</th>
<th>
部件
</th>
<th
width=
"50px"
>
密级
</th>
<th
width=
"120px"
>
应用领域
</th>
<th>
数量
</th>
<th
width=
"420px"
>
装备序列号
</th>
<th>
备注
</th>
</tr>
<
#
list
documentDevices
as
dev
>
<tr>
<td>
<!--<#if dev.code !=0>-->
${dev.code!}
<!--</#if>-->
</td>
<td>
${dev.model!}
</td>
<td>
${dev.parts!}
</td>
<td>
${dev.securityClassification!}
</td>
<td>
${dev.applicationField!}
</td>
<td>
${dev.count!}
</td>
<td>
${dev.deviceSerialNumber!}
</td>
<td>
${dev.remark!}
</td>
</tr>
</
#
list>
</table>
</div>
<div
class=
"line3"
>
<span
class=
"left"
>
<span>
<span
class=
"label"
>
监销人:
</span>
<span
class=
"value"
></span>
</span>
</span>
<span
class=
"left"
>
<span>
<span
class=
"label"
>
主管领导:
</span>
<span
class=
"value"
></span>
</span>
</span>
<span
class=
"left"
style=
"width: 23%;"
>
<span>
<span
class=
"label"
>
经办人:
</span>
<span
class=
"value"
></span>
</span>
</span>
<span
class=
"left"
style=
"width: 23%;"
>
<span>
<span
class=
"label"
>
承办人:
</span>
<span
class=
"value"
></span>
</span>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div>
<p
class=
"bottomTxt"
style=
"float: left;"
>
注:编号连续使用"-"省略
</p>
<p
class=
"bottomTxt"
style=
"float: right;"
>
第${page}页/共${count}页
</p>
</div>
</div>
</body>
</html>
\ No newline at end of file
dev-union/src/main/resources/htmlTemplate/bill13-copy.html
0 → 100755
浏览文件 @
2729f745
<!DOCTYPE html>
<html
lang=
"en"
>
<!--工作交接模版-->
<head>
<meta
charset=
"UTF-8"
/>
<title>
Document
</title>
<style>
body
,
span
,
p
,
tr
,
td
{
font-size
:
15px
;
font-family
:
SimHei
;
margin
:
0
;
padding
:
0
;
}
/*
@page
{
size
:
297mm
210mm
;}
<!
--
设置
PDF
页面大小,此配置只对生成
PDF
文件有效,不会对页面显示生效
--
>*/
@page
{
size
:
297mm
210mm
;
}
.bottomTxt
{
text-align
:
center
;
font-size
:
15px
;
color
:
#000
;
height
:
16px
;
margin-top
:
4px
;
line-height
:
16px
;
}
.returnTablePrint
{
width
:
100%
;
height
:
100%
;
overflow
:
hidden
;
color
:
#000
;
cursor
:
default
;
}
.returnTablePrint
.content
{
width
:
100%
;
height
:
100%
;
}
.returnTablePrint
.content
>
div
{
width
:
100%
;
height
:
100%
;
background
:
#fff
;
/* padding: 30px; */
box-sizing
:
border-box
;
}
/* .returnTablePrint .content>p{
width: 100%;
text-align: center;
font-size: 22px;
font-weight: bold;
color: #4a475d;
} */
.returnTablePrint
.listWrapper
{
/*margin: 0 auto;*/
/* height: calc(100% - 40px); */
box-sizing
:
border-box
;
}
.returnTablePrint
.list
{
/*margin: 0 auto;*/
height
:
calc
(
100%
-
12px
)
}
.returnTablePrint
.title
{
width
:
100%
;
font-size
:
22px
;
text-align
:
center
;
position
:
relative
;
/* margin: 0 0 15px; */
box-sizing
:
border-box
;
}
/* .returnTablePrint .title span:nth-child(2){
font-size: 28px;
color: #000000;
}
.returnTablePrint .title span:nth-child(2) span{
font-size: 20px;
color: #141414;
} */
.returnTablePrint
.title
.number
{
font-size
:
15px
;
color
:
#000
;
}
/* .returnTablePrint .other{
width: 100%;
color: #141414;
font-size: 20px;
margin-top: 20px;
padding-left: 50px;
position: relative;
box-sizing: border-box;
margin-bottom: 20px;
}
.returnTablePrint .other>span span:nth-child(2){
display: inline-block;
margin:0 40px 0 10px;
} */
.returnTablePrint
.listCon
{
height
:
100%
;
border
:
1px
solid
#7f7f7f
;
}
.returnTablePrint
.line1
{
width
:
100%
;
font-size
:
15px
;
box-sizing
:
border-box
;
border-bottom
:
1px
solid
#7f7f7f
;
color
:
#000
;
line-height
:
20px
;
}
.returnTablePrint
.line1
.sendTo
{
display
:
inline-block
;
width
:
49%
;
text-indent
:
5px
;
box-sizing
:
border-box
;
/*padding-left: 20px;*/
}
.returnTablePrint
.line1
.sendNum
{
display
:
inline-block
;
width
:
49%
;
box-sizing
:
border-box
;
/*padding-left: 20px;*/
}
.returnTablePrint
.line1
.sendTo
{
border-right
:
1px
solid
#7f7f7f
;
}
.returnTablePrint
.line1
.sendTo
span
:nth-child
(
2
),
.returnTablePrint
.line1
.sendNum
span
:nth-child
(
2
)
{
color
:
#000
;
display
:
inline-block
;
margin-left
:
5px
;
}
.returnTablePrint
.line2
{
height
:
100%
;
/* padding: 20px; */
border-bottom
:
1px
solid
#7f7f7f
;
}
.returnTablePrint
.tableList
{
height
:
500px
;
border-bottom
:
none
;
overflow
:
hidden
;
}
.returnTablePrint
.line2
>>>
.el-table
tbody
tr
:nth-child
(
odd
)
{
background-color
:
#fff
;
}
.returnTablePrint
.line2
>>>
.el-table
tbody
tr
:nth-child
(
even
)
{
background-color
:
#fff
;
}
.returnTablePrint
.line3
{
border-bottom
:
1px
solid
#7f7f7f
;
border-top
:
none
;
width
:
100%
;
height
:
94px
;
/* box-sizing: border-box; */
/*height:150px;*/
/*display: flex;*/
/* height:170px; */
/* padding:20px 0 20px 0; */
}
.returnTablePrint
.line3
.left
{
display
:
inline-block
;
width
:
32%
;
text-align
:
center
;
box-sizing
:
border-box
;
/*padding-left: 20px;*/
position
:
relative
;
line-height
:
94px
;
}
.returnTablePrint
.line3
.left
span
{
width
:
100%
;
}
.returnTablePrint
.line3
.left
{
/*border-right: 1px solid #7f7f7f;*/
/*padding-bottom: 40px;*/
}
.returnTablePrint
.line3
.left
:last-child
{
/*padding-bottom: 40px;*/
}
.returnTablePrint
.line3
.left
>
span
{
display
:
block
;
/* margin: 15px 0px; */
}
.returnTablePrint
.line3
.left
>
span
>
span
:nth-child
(
2
)
{
display
:
inline-block
;
margin-left
:
10px
;
}
.returnTablePrint
>>>
.el-scrollbar__wrap
{
overflow-x
:
hidden
;
margin-bottom
:
0
;
}
.returnTablePrint
.checkName
span
:nth-child
(
2
)
{
color
:
#000
;
display
:
inline-block
;
margin-left
:
20px
;
}
.returnTablePrint
>>>
.el-table
tbody
.cell
{
color
:
#141414
;
}
.returnTablePrint
.label
{
color
:
#000
;
font-size
:
15px
;
}
.returnTablePrint
.value
{
color
:
#000
;
font-size
:
15px
;
}
.returnTablePrint
.main-title
span
{
font-size
:
22px
;
color
:
#333
;
font-weight
:
bold
;
}
.returnTablePrint
.main-title
{
font-size
:
17px
;
color
:
#000000
;
line-height
:
17px
;
text-align
:
center
;
margin-top
:
9px
;
}
.returnTablePrint
.footer
{
display
:
flex
;
justify-content
:
flex-end
;
padding
:
0
40px
;
box-sizing
:
border-box
;
}
.button-submit
{
margin-left
:
50px
;
}
table
.altrowstable2
{
width
:
100%
;
font-size
:
16px
;
color
:
#000
;
border-width
:
0px
;
border-color
:
#a9c6c9
;
border-collapse
:
collapse
;
text-align
:
center
;
table-layout
:
fixed
;
word-break
:
break-all
;
}
table
.altrowstable2
th
{
height
:
25px
;
line-height
:
25px
;
font-size
:
15px
;
background-color
:
#fff
;
border
:
1px
solid
#bebebe
;
padding-top
:
0
;
}
table
.altrowstable2
td
{
height
:
25px
;
line-height
:
25px
;
font-size
:
15px
;
word-break
:
break-all
;
word-wrap
:
break-word
;
border
:
1px
solid
#bebebe
;
width
:
100%
;
}
.td2
{
height
:
50px
!important
;
}
.td3
{
height
:
75px
!important
;
}
.td4
{
height
:
100px
!important
;
}
.td5
{
height
:
125px
!important
;
}
.td6
{
height
:
150px
!important
;
}
.td7
{
height
:
175px
!important
;
}
.td8
{
height
:
200px
!important
;
}
.td9
{
height
:
225px
!important
;
}
.td10
{
height
:
250px
!important
;
}
.td11
{
height
:
275px
!important
;
}
.td12
{
height
:
300px
!important
;
}
.td13
{
height
:
325px
!important
;
}
table
.altrowstable
{
width
:
100%
;
font-size
:
16px
;
color
:
#000
;
border-width
:
0px
;
border-color
:
#a9c6c9
;
border-collapse
:
collapse
;
text-align
:
center
;
table-layout
:
fixed
;
word-break
:
break-all
;
}
table
.altrowstable
th
{
height
:
24px
;
line-height
:
24px
;
font-size
:
15px
;
background-color
:
#ebebeb
;
marign-top
:
none
;
border
:
1px
solid
#bebebe
;
padding-top
:
0
;
padding-bottom
:
0
;
}
table
.altrowstable
td
{
height
:
24px
;
line-height
:
24px
;
font-size
:
15px
;
word-break
:
normal
;
word-wrap
:
normal
;
border
:
1px
solid
#bebebe
;
border-bottom
:
none
;
width
:
100%
;
}
table
.altrowstable
tr
:nth-child
(
odd
)
{
background-color
:
#f8f8f8
;
}
.oddrowcolor
{
background-color
:
#fff
;
}
.evenrowcolor
{
background-color
:
#fafafa
;
}
/*tr:nth-child(odd) {*/
/* background: #fafafa;*/
/*}*/
</style>
</head>
<body>
<div
class=
"returnTablePrint"
>
<div
class=
"content"
>
<div>
<div
class=
"listWrapper"
>
<div
class=
"list"
>
<div
class=
"title"
>
<div
class=
"main-title"
>
<span>
工作装备交接单
</span>
</div>
<div
style=
"width:100%;text-align:left;font-size: 1px;margin-bottom:2px"
>
<div
style=
"text-align:left;display: inline-block; width: 49%"
class=
"number"
>
</div>
<!-- <div style="text-align:center;display: inline-block; width: 34%" class="number">
<span></span>
</div> -->
<div
style=
"text-align:right;display: inline-block; width: 50%"
class=
"number"
>
</div>
</div>
</div>
<div
class=
"listCon"
>
<div
class=
"line2 tableList"
>
<table
class=
"altrowstable"
id=
"alternatecolor"
>
<tr>
<th
width=
"70px"
>
序号
</th>
<th
width=
"150px"
>
型号
</th>
<th
width=
"150px"
>
名称
</th>
<th
width=
"40px"
>
数量
</th>
<th
width=
"40px"
>
在库
</th>
<th
width=
"40px"
>
维修
</th>
<th
width=
"40px"
>
报废
</th>
<th
width=
"40px"
>
清退
</th>
<th
width=
"40px"
>
销毁
</th>
<th
width=
"40px"
>
配发
</th>
<th
width=
"40px"
>
在用
</th>
<th
width=
"40px"
>
其他
</th>
<th
>
装备序列号
</th>
</tr>
<
#
list
documentDevices
as
dev
>
<tr>
<td>
${dev.code!}
</td>
<td>
${dev.model!}
</td>
<td>
${dev.name!}
</td>
<td>
${dev.deviceNumber!}
</td>
<td>
${dev.inLibraryNum!}
</td>
<td>
${dev.repairNum!}
</td>
<td>
${dev.destoryNum!}
</td>
<td>
${dev.retiredNum!}
</td>
<td>
${dev.scrappedNum!}
</td>
<td>
${dev.allotNum!}
</td>
<td>
${dev.useNum!}
</td>
<td>
${dev.otherNum!}
</td>
<
#
if
dev
.
oneCount =
=
1
>
<td>
${dev.seqs!}
</td>
<
#
elseif
dev
.
oneCount =
=
2
>
<td
class=
"td2"
>
${dev.seqs!}
</td>
<
#
elseif
dev
.
oneCount =
=
3
>
<td
class=
"td3"
>
${dev.seqs!}
</td>
<
#
elseif
dev
.
oneCount =
=
4
>
<td
class=
"td4"
>
${dev.seqs!}
</td>
<
#
elseif
dev
.
oneCount =
=
5
>
<td
class=
"td5"
>
${dev.seqs!}
</td>
<
#
elseif
dev
.
oneCount =
=
6
>
<td
class=
"td6"
>
${dev.seqs!}
</td>
<
#
elseif
dev
.
oneCount =
=
7
>
<td
class=
"td7"
>
${dev.seqs!}
</td>
<
#
elseif
dev
.
oneCount =
=
8
>
<td
class=
"td8"
>
${dev.seqs!}
</td>
<
#
elseif
dev
.
oneCount =
=
9
>
<td
class=
"td9"
>
${dev.seqs!}
</td>
<
#
elseif
dev
.
oneCount =
=
10
>
<td
class=
"td10"
>
${dev.seqs!}
</td>
<
#
elseif
dev
.
oneCount =
=
11
>
<td
class=
"td11"
>
${dev.seqs!}
</td>
<
#
elseif
dev
.
oneCount =
=
12
>
<td
class=
"td12"
>
${dev.seqs!}
</td>
<
#
elseif
dev
.
oneCount =
=
13
>
<td
class=
"td13"
>
${dev.seqs!}
</td>
<
#
elseif
dev
.
oneCount =
=
14
>
<td
class=
"td14"
>
${dev.seqs!}
</td>
</
#
if>
</tr>
</
#
list>
</table>
<table
class=
"altrowstable2"
id=
"alternatecolor"
>
<tr
style=
"border-bottom: 1px solid #dedede;"
>
<th
width=
"70px"
></th>
<th
width=
"150px"
></th>
<th
width=
"150px"
></th>
<th
width=
"40px"
></th>
<th
width=
"40px"
></th>
<th
width=
"40px"
></th>
<th
width=
"40px"
></th>
<th
width=
"40px"
></th>
<th
width=
"40px"
></th>
<th
width=
"40px"
></th>
<th
width=
"40px"
></th>
<th
width=
"40px"
></th>
<th
></th>
</tr>
<tr
class=
"altrowstableTr"
>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr
class=
"altrowstableTr"
>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr
class=
"altrowstableTr"
>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr
class=
"altrowstableTr"
>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr
class=
"altrowstableTr"
>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr
class=
"altrowstableTr"
>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr
class=
"altrowstableTr"
>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr
class=
"altrowstableTr"
>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr
class=
"altrowstableTr"
>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr
class=
"altrowstableTr"
>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr
class=
"altrowstableTr"
>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr
class=
"altrowstableTr"
>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr
class=
"altrowstableTr"
>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr
class=
"altrowstableTr"
>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr
class=
"altrowstableTr"
>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr
class=
"altrowstableTr"
>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</div>
</div>
<div
class=
"line3"
style=
"position: relative;"
>
<span
class=
"left"
>
<span>
<span
style=
"position: absolute; top: 0px; left: 8px;"
class=
"label"
>
单位盖章:
</span>
<span
class=
"value"
></span>
</span>
</span>
<span
class=
"left"
>
<span>
<span
style=
"position: absolute; top: 0px; left: 8px;"
class=
"label"
>
专管员签名:
</span>
<span
class=
"value"
></span>
</span>
</span>
<span
class=
"left"
>
<span>
<span
style=
"position: absolute; top: 0px; left: 8px;"
class=
"label"
>
专管员签名:
</span>
<span
class=
"value"
></span>
</span>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<p
class=
"bottomTxt"
>
第${page}页/共${count}页
</p>
</body>
</html>
\ No newline at end of file
dev-union/src/main/resources/htmlTemplate/bill13.html
浏览文件 @
2729f745
...
@@ -65,7 +65,11 @@
...
@@ -65,7 +65,11 @@
/*margin: 0 auto;*/
/*margin: 0 auto;*/
height
:
calc
(
100%
-
12px
)
height
:
calc
(
100%
-
12px
)
}
}
.returnTablePrint
.main-Stitle
{
width
:
100%
;
font-size
:
16px
;
text-align
:
left
;
}
.returnTablePrint
.title
{
.returnTablePrint
.title
{
width
:
100%
;
width
:
100%
;
font-size
:
22px
;
font-size
:
22px
;
...
@@ -150,7 +154,7 @@
...
@@ -150,7 +154,7 @@
}
}
.returnTablePrint
.tableList
{
.returnTablePrint
.tableList
{
height
:
500
px
;
height
:
425
px
;
border-bottom
:
none
;
border-bottom
:
none
;
overflow
:
hidden
;
overflow
:
hidden
;
}
}
...
@@ -167,21 +171,36 @@
...
@@ -167,21 +171,36 @@
border-bottom
:
1px
solid
#7f7f7f
;
border-bottom
:
1px
solid
#7f7f7f
;
border-top
:
none
;
border-top
:
none
;
width
:
100%
;
width
:
100%
;
height
:
94
px
;
height
:
169
px
;
/* box-sizing: border-box; */
/* box-sizing: border-box; */
/*height:150px;*/
/*height:150px;*/
/*display: flex;*/
/*display: flex;*/
/* height:170px; */
/* height:170px; */
/* padding:20px 0 20px 0; */
/* padding:20px 0 20px 0; */
}
}
#secendSpan
{
width
:
20%
;
}
#lastLeftSpan
{
width
:
28%
;
line-height
:
47px
;
height
:
100%
;
}
#lastLeftSpan
div
{
display
:
inline-block
;
width
:
56%
;
height
:
30px
;
line-height
:
30px
;
text-align
:
right
;
}
.returnTablePrint
.line3
.left
{
.returnTablePrint
.line3
.left
{
display
:
inline-block
;
display
:
inline-block
;
width
:
32
%
;
width
:
24
%
;
text-align
:
center
;
text-align
:
left
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
/*padding-left: 20px;*/
/*padding-left: 20px;*/
position
:
relative
;
position
:
relative
;
height
:
169px
;
line-height
:
94px
;
line-height
:
94px
;
}
}
.returnTablePrint
.line3
.left
span
{
.returnTablePrint
.line3
.left
span
{
...
@@ -387,6 +406,9 @@
...
@@ -387,6 +406,9 @@
工作装备交接单
工作装备交接单
</span>
</span>
</div>
</div>
<div
class=
"main-Stitle"
>
单位:${unit}
</div>
<div
style=
"width:100%;text-align:left;font-size: 1px;margin-bottom:2px"
>
<div
style=
"width:100%;text-align:left;font-size: 1px;margin-bottom:2px"
>
<div
style=
"text-align:left;display: inline-block; width: 49%"
class=
"number"
>
<div
style=
"text-align:left;display: inline-block; width: 49%"
class=
"number"
>
...
@@ -406,16 +428,10 @@
...
@@ -406,16 +428,10 @@
<th
width=
"70px"
>
序号
</th>
<th
width=
"70px"
>
序号
</th>
<th
width=
"150px"
>
型号
</th>
<th
width=
"150px"
>
型号
</th>
<th
width=
"150px"
>
名称
</th>
<th
width=
"150px"
>
名称
</th>
<th
width=
"40px"
>
数量
</th>
<th
width=
"80px"
>
数量
</th>
<th
width=
"40px"
>
在库
</th>
<th
width=
"40px"
>
维修
</th>
<th
width=
"40px"
>
报废
</th>
<th
width=
"40px"
>
清退
</th>
<th
width=
"40px"
>
销毁
</th>
<th
width=
"40px"
>
配发
</th>
<th
width=
"40px"
>
在用
</th>
<th
width=
"40px"
>
其他
</th>
<th
>
装备序列号
</th>
<th
>
装备序列号
</th>
<th
width=
"160px"
>
备注
</th>
</tr>
</tr>
<
#
list
documentDevices
as
dev
>
<
#
list
documentDevices
as
dev
>
<tr>
<tr>
...
@@ -423,55 +439,48 @@
...
@@ -423,55 +439,48 @@
${dev.code!}
${dev.code!}
</td>
</td>
<td>
${dev.model!}
</td>
<td>
${dev.model!}
</td>
<td>
${dev.name!}
</td>
<td>
${dev.parts!}
</td>
<td>
${dev.deviceNumber!}
</td>
<td>
${dev.count!}
</td>
<td>
${dev.inLibraryNum!}
</td>
<td>
${dev.repairNum!}
</td>
<td>
${dev.destoryNum!}
</td>
<td>
${dev.retiredNum!}
</td>
<td>
${dev.scrappedNum!}
</td>
<td>
${dev.allotNum!}
</td>
<td>
${dev.useNum!}
</td>
<td>
${dev.otherNum!}
</td>
<
#
if
dev
.
oneCount =
=
1
>
<
#
if
dev
.
oneCount =
=
1
>
<td>
${dev.
seqs
!}
</td>
<td>
${dev.
deviceSerialNumber
!}
</td>
<
#
elseif
dev
.
oneCount =
=
2
>
<
#
elseif
dev
.
oneCount =
=
2
>
<td
class=
"td2"
>
${dev.
seqs
!}
</td>
<td
class=
"td2"
>
${dev.
deviceSerialNumber
!}
</td>
<
#
elseif
dev
.
oneCount =
=
3
>
<
#
elseif
dev
.
oneCount =
=
3
>
<td
class=
"td3"
>
${dev.
seqs
!}
</td>
<td
class=
"td3"
>
${dev.
deviceSerialNumber
!}
</td>
<
#
elseif
dev
.
oneCount =
=
4
>
<
#
elseif
dev
.
oneCount =
=
4
>
<td
class=
"td4"
>
${dev.
seqs
!}
</td>
<td
class=
"td4"
>
${dev.
deviceSerialNumber
!}
</td>
<
#
elseif
dev
.
oneCount =
=
5
>
<
#
elseif
dev
.
oneCount =
=
5
>
<td
class=
"td5"
>
${dev.
seqs
!}
</td>
<td
class=
"td5"
>
${dev.
deviceSerialNumber
!}
</td>
<
#
elseif
dev
.
oneCount =
=
6
>
<
#
elseif
dev
.
oneCount =
=
6
>
<td
class=
"td6"
>
${dev.
seqs
!}
</td>
<td
class=
"td6"
>
${dev.
deviceSerialNumber
!}
</td>
<
#
elseif
dev
.
oneCount =
=
7
>
<
#
elseif
dev
.
oneCount =
=
7
>
<td
class=
"td7"
>
${dev.
seqs
!}
</td>
<td
class=
"td7"
>
${dev.
deviceSerialNumber
!}
</td>
<
#
elseif
dev
.
oneCount =
=
8
>
<
#
elseif
dev
.
oneCount =
=
8
>
<td
class=
"td8"
>
${dev.
seqs
!}
</td>
<td
class=
"td8"
>
${dev.
deviceSerialNumber
!}
</td>
<
#
elseif
dev
.
oneCount =
=
9
>
<
#
elseif
dev
.
oneCount =
=
9
>
<td
class=
"td9"
>
${dev.
seqs
!}
</td>
<td
class=
"td9"
>
${dev.
deviceSerialNumber
!}
</td>
<
#
elseif
dev
.
oneCount =
=
10
>
<
#
elseif
dev
.
oneCount =
=
10
>
<td
class=
"td10"
>
${dev.
seqs
!}
</td>
<td
class=
"td10"
>
${dev.
deviceSerialNumber
!}
</td>
<
#
elseif
dev
.
oneCount =
=
11
>
<
#
elseif
dev
.
oneCount =
=
11
>
<td
class=
"td11"
>
${dev.
seqs
!}
</td>
<td
class=
"td11"
>
${dev.
deviceSerialNumber
!}
</td>
<
#
elseif
dev
.
oneCount =
=
12
>
<
#
elseif
dev
.
oneCount =
=
12
>
<td
class=
"td12"
>
${dev.
seqs
!}
</td>
<td
class=
"td12"
>
${dev.
deviceSerialNumber
!}
</td>
<
#
elseif
dev
.
oneCount =
=
13
>
<
#
elseif
dev
.
oneCount =
=
13
>
<td
class=
"td13"
>
${dev.
seqs
!}
</td>
<td
class=
"td13"
>
${dev.
deviceSerialNumber
!}
</td>
<
#
elseif
dev
.
oneCount =
=
14
>
<
#
elseif
dev
.
oneCount =
=
14
>
<td
class=
"td14"
>
${dev.
seqs
!}
</td>
<td
class=
"td14"
>
${dev.
deviceSerialNumber
!}
</td>
</
#
if>
</
#
if>
<td>
${dev.remark!}
</td>
</tr>
</tr>
</
#
list>
</
#
list>
</table>
</table>
...
@@ -480,16 +489,9 @@
...
@@ -480,16 +489,9 @@
<th
width=
"70px"
></th>
<th
width=
"70px"
></th>
<th
width=
"150px"
></th>
<th
width=
"150px"
></th>
<th
width=
"150px"
></th>
<th
width=
"150px"
></th>
<th
width=
"40px"
></th>
<th
width=
"80px"
></th>
<th
width=
"40px"
></th>
<th
width=
"40px"
></th>
<th
width=
"40px"
></th>
<th
width=
"40px"
></th>
<th
width=
"40px"
></th>
<th
width=
"40px"
></th>
<th
width=
"40px"
></th>
<th
width=
"40px"
></th>
<th
></th>
<th
></th>
<th
width=
"160px"
></th>
</tr>
</tr>
<tr
class=
"altrowstableTr"
>
<tr
class=
"altrowstableTr"
>
<td></td>
<td></td>
...
@@ -498,13 +500,6 @@
...
@@ -498,13 +500,6 @@
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tr>
<tr
class=
"altrowstableTr"
>
<tr
class=
"altrowstableTr"
>
<td></td>
<td></td>
...
@@ -513,13 +508,6 @@
...
@@ -513,13 +508,6 @@
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tr>
<tr
class=
"altrowstableTr"
>
<tr
class=
"altrowstableTr"
>
<td></td>
<td></td>
...
@@ -528,13 +516,6 @@
...
@@ -528,13 +516,6 @@
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tr>
<tr
class=
"altrowstableTr"
>
<tr
class=
"altrowstableTr"
>
<td></td>
<td></td>
...
@@ -543,13 +524,6 @@
...
@@ -543,13 +524,6 @@
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tr>
<tr
class=
"altrowstableTr"
>
<tr
class=
"altrowstableTr"
>
<td></td>
<td></td>
...
@@ -558,13 +532,6 @@
...
@@ -558,13 +532,6 @@
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tr>
<tr
class=
"altrowstableTr"
>
<tr
class=
"altrowstableTr"
>
<td></td>
<td></td>
...
@@ -573,13 +540,6 @@
...
@@ -573,13 +540,6 @@
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tr>
<tr
class=
"altrowstableTr"
>
<tr
class=
"altrowstableTr"
>
<td></td>
<td></td>
...
@@ -588,13 +548,6 @@
...
@@ -588,13 +548,6 @@
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tr>
<tr
class=
"altrowstableTr"
>
<tr
class=
"altrowstableTr"
>
<td></td>
<td></td>
...
@@ -603,13 +556,6 @@
...
@@ -603,13 +556,6 @@
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tr>
<tr
class=
"altrowstableTr"
>
<tr
class=
"altrowstableTr"
>
<td></td>
<td></td>
...
@@ -618,13 +564,6 @@
...
@@ -618,13 +564,6 @@
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tr>
<tr
class=
"altrowstableTr"
>
<tr
class=
"altrowstableTr"
>
<td></td>
<td></td>
...
@@ -633,13 +572,6 @@
...
@@ -633,13 +572,6 @@
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tr>
<tr
class=
"altrowstableTr"
>
<tr
class=
"altrowstableTr"
>
<td></td>
<td></td>
...
@@ -648,13 +580,6 @@
...
@@ -648,13 +580,6 @@
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tr>
<tr
class=
"altrowstableTr"
>
<tr
class=
"altrowstableTr"
>
<td></td>
<td></td>
...
@@ -663,13 +588,6 @@
...
@@ -663,13 +588,6 @@
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tr>
<tr
class=
"altrowstableTr"
>
<tr
class=
"altrowstableTr"
>
<td></td>
<td></td>
...
@@ -678,13 +596,6 @@
...
@@ -678,13 +596,6 @@
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tr>
<tr
class=
"altrowstableTr"
>
<tr
class=
"altrowstableTr"
>
<td></td>
<td></td>
...
@@ -693,13 +604,6 @@
...
@@ -693,13 +604,6 @@
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tr>
<tr
class=
"altrowstableTr"
>
<tr
class=
"altrowstableTr"
>
<td></td>
<td></td>
...
@@ -708,13 +612,6 @@
...
@@ -708,13 +612,6 @@
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tr>
<tr
class=
"altrowstableTr"
>
<tr
class=
"altrowstableTr"
>
<td></td>
<td></td>
...
@@ -723,13 +620,6 @@
...
@@ -723,13 +620,6 @@
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tr>
</table>
</table>
</div>
</div>
...
@@ -737,25 +627,33 @@
...
@@ -737,25 +627,33 @@
<div
class=
"line3"
style=
"position: relative;"
>
<div
class=
"line3"
style=
"position: relative;"
>
<span
class=
"left"
>
<span
class=
"left"
>
<span>
<span>
<span
style=
"position: absolute; top: 0px; left: 8px;"
<span
class=
"label"
>
移交人:
</span>
class=
"label"
>
单位盖章:
</span>
<span
class=
"value"
></span>
<span
class=
"value"
></span>
</span>
</span>
</span>
</span>
<span
class=
"left"
>
<span
class=
"left"
>
<span>
<span>
<span
style=
"position: absolute; top: 0px; left: 8px;"
<span
class=
"label"
>
交接人:
</span>
class=
"label"
>
专管员签名:
</span>
<span
class=
"value"
></span>
<span
class=
"value"
></span>
</span>
</span>
</span>
</span>
<span
class=
"left"
>
<span
class=
"left"
id=
"secendSpan"
>
<span>
<span>
<span
style=
"position: absolute; top: 0px; left: 8px;"
<span
class=
"label"
>
监交人:
</span>
class=
"label"
>
专管员签名:
</span>
<span
class=
"value"
></span>
<span
class=
"value"
></span>
</span>
</span>
</span>
</span>
<span
class=
"left"
id=
"lastLeftSpan"
>
<div>
<span
class=
"label"
>
本级领导:
</span>
</div>
<div>
<span
class=
"label"
>
单位公章(盖章):
</span>
</div>
<div>
<span
class=
"label"
>
交接日期:
</span>
</div>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论