涉密产品统计打印修改

pg_adapter
dshclm 9 months ago
parent 15803077c6
commit 599e6e9592

@ -863,9 +863,9 @@
<td colspan=2 height=54 class=x36 style='border-bottom:1px solid #000000;height:40.5pt;'>单位:[[${sysuser.dept.deptName}]]</td> <td colspan=2 height=54 class=x36 style='border-bottom:1px solid #000000;height:40.5pt;'>单位:[[${sysuser.dept.deptName}]]</td>
<td class=x22></td> <td class=x22></td>
<td class=x23></td> <td class=x23></td>
<td class=x23></td> <td class=x22>密品种类:<span class="secretsType">[[${tdPropertyManager.secretsType}]]</span></td>
<td class=x24><span style='float:right' id="dqdate">日期:</span></td> <td class=x24></td>
<td class=x21></td> <td class=x21><span style='float:right' id="dqdate">日期:</span></td>
</tr> </tr>
<tr height=55 style='mso-height-source:userset;height:41.25pt' id='r2'> <tr height=55 style='mso-height-source:userset;height:41.25pt' id='r2'>
<td height=53 class=x25 style='height:39.75pt;'>所属市州</td> <td height=53 class=x25 style='height:39.75pt;'>所属市州</td>
@ -943,6 +943,20 @@
} }
}); });
}); });
//密品种类
var examinestateDatas = [[${@dict.getType('sys_secrets_type')}]];
var examinestateToFind = [];
document.querySelectorAll('.secretsType').forEach(function(element) {
examinestateToFind.push(element.innerHTML);
});
examinestateToFind.forEach(function(value) {
const foundObject = examinestateDatas.find(obj => obj.dictValue === value);
document.querySelectorAll('.secretsType').forEach(function(element) {
if (element.innerHTML === value) {
element.innerHTML = foundObject ? foundObject.dictLabel : "";
}
});
});
setTimeout(()=>{ setTimeout(()=>{
$.ajax({ $.ajax({
url: ctx + "system/area/getAllList", url: ctx + "system/area/getAllList",

@ -0,0 +1,771 @@
<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<th:block th:include="include :: header('密品打印')" />
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=ProgId content=Excel.Sheet>
<meta name=Generator content="Aspose.Cell ">
<link rel=File-List href="alr1u-no3l8_files/filelist.xml">
<link rel=Edit-Time-Data href="alr1u-no3l8_files/editdata.mso">
<link rel=OLE-Object-Data href="alr1u-no3l8_files/oledata.mso">
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Author>pc</o:Author>
<o:Created>2024-08-22T01:36:51Z</o:Created>
<o:LastSaved>2024-08-22T01:37:51Z</o:LastSaved>
</o:DocumentProperties>
</xml><![endif]-->
<style>
<!--table
{mso-displayed-decimal-separator:"\.";
mso-displayed-thousand-separator:"\,";}
@page
{
mso-header-data:"";
mso-footer-data:"";
margin:0.75in 0.7in 0.75in 0.7in;
mso-header-margin:0.3in;
mso-footer-margin:0.3in;
mso-page-orientation:Landscape;
}
tr
{mso-height-source:auto;
mso-ruby-visibility:none;}
col
{mso-width-source:auto;
mso-ruby-visibility:none;}
br
{mso-data-placement:same-cell;}
ruby
{ruby-align:left;}
.style0
{
mso-number-format:General;
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:11pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
border:none;
mso-protection:locked visible;
mso-style-name:Normal;
mso-style-id:0;}
.font0
{
color:#000000;
font-size:11pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif"; }
.font1
{
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif"; }
.font2
{
color:#000000;
font-size:11pt;
font-weight:700;
font-style:normal;
font-family:"等线","sans-serif"; }
.font3
{
color:#000000;
font-size:16pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif"; }
.font4
{
color:#000000;
font-size:20pt;
font-weight:700;
font-style:normal;
font-family:"等线","sans-serif"; }
.font5
{
color:#000000;
font-size:11pt;
font-weight:400;
font-style:italic;
font-family:"等线","sans-serif"; }
.font6
{
color:#000000;
font-size:9pt;
font-weight:400;
font-style:normal;
font-family:"宋体","monospace"; }
td
{mso-style-parent:style0;
mso-number-format:General;
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:11pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
border:none;
mso-protection:locked visible;
mso-ignore:padding;}
.style0
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:11pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
mso-protection:locked visible;
mso-style-name:"Normal";
}
.style1
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style2
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style3
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style4
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style5
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style6
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style7
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style8
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style9
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style10
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style11
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style12
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style13
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.style14
{
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
}
.x15
{
mso-style-parent:style0;
mso-number-format:General;
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:11pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
mso-protection:locked visible;
}
.style16
{
mso-number-format:"0%";
text-align:general;
vertical-align:bottom;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
mso-style-name:"Percent";
}
.style17
{
mso-number-format:"_ \0022¥\0022* \#\,\#\#0\.00_ \;_ \0022¥\0022* \\-\#\,\#\#0\.00_ \;_ \0022¥\0022* \0022-\0022??_ \;_ \@_ ";
text-align:general;
vertical-align:bottom;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
mso-style-name:"Currency";
}
.style18
{
mso-number-format:"_ \0022¥\0022* \#\,\#\#0_ \;_ \0022¥\0022* \\-\#\,\#\#0_ \;_ \0022¥\0022* \0022-\0022_ \;_ \@_ ";
text-align:general;
vertical-align:bottom;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
mso-style-name:"Currency [0]";
}
.style19
{
mso-number-format:"_ * \#\,\#\#0\.00_ \;_ * \\-\#\,\#\#0\.00_ \;_ * \0022-\0022??_ \;_ \@_ ";
text-align:general;
vertical-align:bottom;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
mso-style-name:"Comma";
}
.style20
{
mso-number-format:"_ * \#\,\#\#0_ \;_ * \\-\#\,\#\#0_ \;_ * \0022-\0022_ \;_ \@_ ";
text-align:general;
vertical-align:bottom;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:10pt;
font-weight:400;
font-style:normal;
font-family:"Arial","sans-serif";
mso-protection:locked visible;
mso-style-name:"Comma [0]";
}
.x21
{
mso-style-parent:style0;
mso-number-format:General;
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:11pt;
font-weight:400;
font-style:italic;
font-family:"等线","sans-serif";
mso-protection:locked visible;
}
.x22
{
mso-style-parent:style0;
mso-number-format:General;
text-align:left;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:16pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
mso-protection:locked visible;
}
.x23
{
mso-style-parent:style0;
mso-number-format:General;
text-align:center;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:11pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
border-top:1px solid windowtext;
border-right:1px solid windowtext;
border-bottom:1px solid windowtext;
border-left:1px solid windowtext;
mso-diagonal-down:none;
mso-diagonal-up:none;
mso-protection:locked visible;
}
.x24
{
mso-style-parent:style0;
mso-number-format:General;
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:16pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
mso-protection:locked visible;
}
.x25
{
mso-style-parent:style0;
mso-number-format:General;
text-align:general;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:11pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
mso-protection:locked visible;
}
.x26
{
mso-style-parent:style0;
mso-number-format:General;
text-align:right;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:16pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
mso-protection:locked visible;
}
.x27
{
mso-style-parent:style0;
mso-number-format:General;
text-align:center;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:11pt;
font-weight:700;
font-style:normal;
font-family:"等线","sans-serif";
border-top:1px solid windowtext;
border-right:1px solid windowtext;
border-bottom:1px solid windowtext;
border-left:1px solid windowtext;
mso-diagonal-down:none;
mso-diagonal-up:none;
mso-protection:locked visible;
}
.x28
{
mso-style-parent:style0;
mso-number-format:General;
text-align:center;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:11pt;
font-weight:700;
font-style:normal;
font-family:"等线","sans-serif";
border-top:1px solid windowtext;
border-right:1px solid windowtext;
border-bottom:1px solid windowtext;
border-left:1px solid windowtext;
mso-diagonal-down:none;
mso-diagonal-up:none;
mso-protection:locked visible;
}
.x29
{
mso-style-parent:style0;
mso-number-format:General;
text-align:center;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:11pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
border-top:1px solid windowtext;
border-right:1px solid windowtext;
border-bottom:1px solid windowtext;
border-left:1px solid windowtext;
mso-diagonal-down:none;
mso-diagonal-up:none;
mso-protection:locked visible;
}
.x30
{
mso-style-parent:style0;
mso-number-format:General;
text-align:center;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:20pt;
font-weight:700;
font-style:normal;
font-family:"等线","sans-serif";
mso-protection:locked visible;
}
.x31
{
mso-style-parent:style0;
mso-number-format:General;
text-align:left;
vertical-align:middle;
white-space:nowrap;
background:auto;
mso-pattern:auto;
color:#000000;
font-size:16pt;
font-weight:400;
font-style:normal;
font-family:"等线","sans-serif";
mso-protection:locked visible;
}
-->
</style>
<!--[if gte mso 9]><xml>
<x:ExcelWorkbook>
<x:ExcelWorksheets>
<x:ExcelWorksheet>
<x:Name>Sheet1</x:Name>
<x:WorksheetOptions>
<x:StandardWidth>2304</x:StandardWidth>
<x:Print>
<x:ValidPrinterInfo/>
<x:PaperSizeIndex>9</x:PaperSizeIndex>
<x:HorizontalResolution>600</x:HorizontalResolution>
<x:VerticalResolution>600</x:VerticalResolution>
</x:Print>
<x:Selected/>
</x:WorksheetOptions>
</x:ExcelWorksheet>
</x:ExcelWorksheets>
<x:WindowHeight>15500</x:WindowHeight>
<x:WindowWidth>25820</x:WindowWidth>
<x:WindowTopX>-110</x:WindowTopX>
<x:WindowTopY>-110</x:WindowTopY>
<x:RefModeR1C1/>
<x:TabRatio>600</x:TabRatio>
<x:ActiveSheet>0</x:ActiveSheet>
</x:ExcelWorkbook>
</xml><![endif]-->
</head>
<body link=blue vlink=purple >
<table border=0 cellpadding=0 cellspacing=0 width=1164 style='border-collapse:
collapse;table-layout:fixed;width:873pt;margin: auto'>
<col width=220 style='mso-width-source:userset;width:165pt'>
<col width=204 style='mso-width-source:userset;width:153pt'>
<col width=97 style='mso-width-source:userset;width:72.75pt'>
<col width=152 style='mso-width-source:userset;width:114pt'>
<col width=141 style='mso-width-source:userset;width:105.75pt'>
<col width=131 style='mso-width-source:userset;width:98.25pt'>
<col width=219 style='mso-width-source:userset;width:164.25pt'>
<tr height=55 style='mso-height-source:userset;height:41.25pt' id='r0'>
<td colspan=7 height=55 class=x30 width=1164 style='height:41.25pt;'>[[${sysuser.dept.deptName}]]密品统计信息表</td>
</tr>
<tr height=55 style='mso-height-source:userset;height:41.25pt' id='r1'>
<td colspan=2 height=54 class=x31 style='height:40.5pt;'>单位:[[${sysuser.dept.deptName}]]</td>
<td class=x24></td>
<td class=x25></td>
<td colspan=2 class='x24' style='mso-ignore:colspan;'>密品种类:<span class="secretsType">[[${tdPropertyManager.secretsType}]]</span></td>
<td class=x22><span style='float:right' id="dqdate">日期:</span></td>
</tr>
<tr height=55 style='mso-height-source:userset;height:41.25pt' id='r2'>
<td height=53 class=x23 style='height:39.75pt;'>所属市州</td>
<td class='x23 part'></td>
<td class=x23>所属区县</td>
<td colspan=2 class='x29 area' style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'></td>
<td class=x23>登记人员</td>
<td class=x23>[[${tdPropertyManager.recoverName}]]</td>
</tr>
<tr height=55 style='mso-height-source:userset;height:41.25pt' id='r3'>
<td height=53 class=x23 style='height:39.75pt;'>使用部门</td>
<td class=x23 style='white-space: normal;'>[[${tdPropertyManager.useDepart}]]</td>
<td class=x23>使用人员</td>
<td colspan=2 class=x29 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>[[${tdPropertyManager.userName}]]</td>
<td class=x23>登记时间</td>
<td class=x23 id="recoverDate">[[${tdPropertyManager.recoverDate}]]</td>
</tr>
<tr height=55 style='mso-height-source:userset;height:41.25pt' id='r4'>
<td height=53 class=x23 style='height:39.75pt;'>接收时间</td>
<td class=x23 id="useDate">[[${tdPropertyManager.useDate}]]</td>
<td class=x23>登记编号</td>
<td colspan=2 class=x29 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>[[${tdPropertyManager.useId}]]</td>
<td class=x23>密品总数</td>
<td class=x23>[[${tdPropertyManager.propertyNum}]]</td>
</tr>
<tr height=55 style='mso-height-source:userset;height:41.25pt' id='r5'>
<td height=53 class=x27 style='height:39.75pt;'>密品编号</td>
<td colspan=2 class=x28 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>名称</td>
<td colspan=2 class=x28 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>用途</td>
<td colspan=2 class=x28 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>备注</td>
</tr>
<tr height=55 style='mso-height-source:userset;height:41.25pt' id='r6' th:each="propertynum : ${tdPropertyEments}">
<td height=53 class=x23 style='height:39.75pt;'>[[${propertynum.id}]]</td>
<td colspan=2 class=x29 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>[[${propertynum.name}]]</td>
<td colspan=2 class=x29 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>[[${propertynum.purposes}]]</td>
<td colspan=2 class=x29 style='border-right:1px solid windowtext;border-bottom:1px solid windowtext;'>[[${propertynum.remark}]]</td>
</tr>
<tr>
<!-- 打印网页时通过hidden-print隐藏元素 -->
<div class="text-right hidden-print" style="position: fixed;bottom: 20px;right: 50%;">
<button class="btn btn-primary" onclick="printPage()"><i class="fa fa-print"></i> 打印</button>
</div>
</tr>
</table>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
function printPage() {
window.print();
}
function conversionDate(date){
var year = date.getFullYear();
var month = String(date.getMonth() + 1).padStart(2, '0'); // 月份从 0 开始,需要加 1
var day = String(date.getDate()).padStart(2, '0'); // 日可能是个位数,需要补零
return year + '-' + month + '-' + day
}
document.querySelector('#dqdate').innerHTML ='日期:' + conversionDate(new Date())
document.querySelector('#recoverDate').innerHTML =conversionDate(new Date(document.querySelector('#recoverDate').innerHTML))
document.querySelector('#useDate').innerHTML =conversionDate(new Date(document.querySelector('#useDate').innerHTML))
//密品种类
var examinestateDatas = [[${@dict.getType('sys_secrets_type')}]];
var examinestateToFind = [];
document.querySelectorAll('.secretsType').forEach(function(element) {
examinestateToFind.push(element.innerHTML);
});
examinestateToFind.forEach(function(value) {
const foundObject = examinestateDatas.find(obj => obj.dictValue === value);
document.querySelectorAll('.secretsType').forEach(function(element) {
if (element.innerHTML === value) {
element.innerHTML = foundObject ? foundObject.dictLabel : "";
}
});
});
setTimeout(()=>{
$.ajax({
url: ctx + "system/area/getAllList",
type: 'GET',
data:{parentId:''} ,
success:((res)=>{
document.querySelector('.part').innerHTML = getCity(res.data,[[${tdPropertyManager.part}]])
document.querySelector('.area').innerHTML = getCity(res.data,[[${tdPropertyManager.areaId}]])
}) ,
});
},500)
</script>
</body>
</html>

@ -128,6 +128,7 @@
var printFlag = [[${@permission.hasPermi('system:propertynum:print')}]]; var printFlag = [[${@permission.hasPermi('system:propertynum:print')}]];
var removeFlag = [[${@permission.hasPermi('system:property:remove')}]]; var removeFlag = [[${@permission.hasPermi('system:property:remove')}]];
var listFlag = [[${@permission.hasPermi('system:property:list')}]]; var listFlag = [[${@permission.hasPermi('system:property:list')}]];
var sysSecretsTypeDatas = [[${@dict.getType('sys_secrets_type')}]];
var prefix = ctx + "system/propertynum"; var prefix = ctx + "system/propertynum";
let datas = [] let datas = []
$.ajax({ $.ajax({
@ -221,6 +222,13 @@
field: 'useDepart', field: 'useDepart',
title: '使用部门' title: '使用部门'
}, },
{
field: 'secretsType',
title: '密品分类',
formatter: function(value, row, index) {
return $.table.selectDictLabel(sysSecretsTypeDatas, value);
}
},
{ {
field: 'userName', field: 'userName',
title: '使用人员' title: '使用人员'
@ -238,7 +246,8 @@
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
var actions = []; var actions = [];
actions.push('<a class="btn btn-info btn-xs ' + printFlag + '" href="javascript:void(0)" onclick="print(\'' + row.useId + '\')"><i class="fa fa-download"></i>打印</a> '); var rowData = encodeURIComponent(JSON.stringify(row));
actions.push('<a class="btn btn-info btn-xs ' + printFlag + '" href="javascript:void(0)" data-row=\'' + rowData + '\' onclick="print(this)"><i class="fa fa-download"></i>打印</a> ');
return actions.join(''); return actions.join('');
} }
}] }]
@ -246,10 +255,17 @@
$.table.init(options); $.table.init(options);
}); });
/*密品列表-详细*/ /*密品列表-详细*/
function print(useId) { function print(element) {
var url = prefix + '/print/' + useId; var rowData = $(element).data('row');
var row = JSON.parse(decodeURIComponent(rowData));
if (row.secretsType == '1'){
var url = prefix + '/print/' + row.useId;
$.modal.openTab("打印", url);
}else{
var url = prefix + '/printEment/' + row.useId;
$.modal.openTab("打印", url); $.modal.openTab("打印", url);
} }
}
var myChart = echarts.init(document.getElementById('leftMain')); var myChart = echarts.init(document.getElementById('leftMain'));
axios.post(prefix + '/countInfo').then(response => { axios.post(prefix + '/countInfo').then(response => {
if (response.data.code == web_status.SUCCESS){ if (response.data.code == web_status.SUCCESS){

Loading…
Cancel
Save