From 599e6e95920c690f5cee2a284a84d4b79677b39f Mon Sep 17 00:00:00 2001 From: dshclm <3321914460@qq.com> Date: Thu, 22 Aug 2024 16:47:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=89=E5=AF=86=E4=BA=A7=E5=93=81=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E6=89=93=E5=8D=B0=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/property/propertynum/print.html | 20 +- .../property/propertynum/printEment.html | 771 ++++++++++++++++++ .../property/propertynum/propertynum.html | 24 +- 3 files changed, 808 insertions(+), 7 deletions(-) create mode 100644 ruoyi-admin/src/main/resources/templates/system/property/propertynum/printEment.html diff --git a/ruoyi-admin/src/main/resources/templates/system/property/propertynum/print.html b/ruoyi-admin/src/main/resources/templates/system/property/propertynum/print.html index 27c7dc2..223399f 100644 --- a/ruoyi-admin/src/main/resources/templates/system/property/propertynum/print.html +++ b/ruoyi-admin/src/main/resources/templates/system/property/propertynum/print.html @@ -863,9 +863,9 @@ 单位:[[${sysuser.dept.deptName}]] - - 日期: - + 密品种类:[[${tdPropertyManager.secretsType}]] + + 日期: 所属市州 @@ -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(()=>{ $.ajax({ url: ctx + "system/area/getAllList", diff --git a/ruoyi-admin/src/main/resources/templates/system/property/propertynum/printEment.html b/ruoyi-admin/src/main/resources/templates/system/property/propertynum/printEment.html new file mode 100644 index 0000000..3b12713 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/property/propertynum/printEment.html @@ -0,0 +1,771 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
[[${sysuser.dept.deptName}]]密品统计信息表
单位:[[${sysuser.dept.deptName}]]密品种类:[[${tdPropertyManager.secretsType}]]日期:
所属市州所属区县登记人员[[${tdPropertyManager.recoverName}]]
使用部门[[${tdPropertyManager.useDepart}]]使用人员[[${tdPropertyManager.userName}]]登记时间[[${tdPropertyManager.recoverDate}]]
接收时间[[${tdPropertyManager.useDate}]]登记编号[[${tdPropertyManager.useId}]]密品总数[[${tdPropertyManager.propertyNum}]]
密品编号名称用途备注
[[${propertynum.id}]][[${propertynum.name}]][[${propertynum.purposes}]][[${propertynum.remark}]]
+ + + + + diff --git a/ruoyi-admin/src/main/resources/templates/system/property/propertynum/propertynum.html b/ruoyi-admin/src/main/resources/templates/system/property/propertynum/propertynum.html index 3dd5f48..2b660a9 100644 --- a/ruoyi-admin/src/main/resources/templates/system/property/propertynum/propertynum.html +++ b/ruoyi-admin/src/main/resources/templates/system/property/propertynum/propertynum.html @@ -128,6 +128,7 @@ var printFlag = [[${@permission.hasPermi('system:propertynum:print')}]]; var removeFlag = [[${@permission.hasPermi('system:property:remove')}]]; var listFlag = [[${@permission.hasPermi('system:property:list')}]]; + var sysSecretsTypeDatas = [[${@dict.getType('sys_secrets_type')}]]; var prefix = ctx + "system/propertynum"; let datas = [] $.ajax({ @@ -221,6 +222,13 @@ field: 'useDepart', title: '使用部门' }, + { + field: 'secretsType', + title: '密品分类', + formatter: function(value, row, index) { + return $.table.selectDictLabel(sysSecretsTypeDatas, value); + } + }, { field: 'userName', title: '使用人员' @@ -238,7 +246,8 @@ align: 'center', formatter: function(value, row, index) { var actions = []; - actions.push('打印 '); + var rowData = encodeURIComponent(JSON.stringify(row)); + actions.push('打印 '); return actions.join(''); } }] @@ -246,9 +255,16 @@ $.table.init(options); }); /*密品列表-详细*/ - function print(useId) { - var url = prefix + '/print/' + useId; - $.modal.openTab("打印", url); + function print(element) { + 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); + } } var myChart = echarts.init(document.getElementById('leftMain')); axios.post(prefix + '/countInfo').then(response => {