From aee3851c902c62f5f36fb7777659c3a9720986dc Mon Sep 17 00:00:00 2001 From: lonewolfyx <877085893@qq.com> Date: Wed, 8 Jan 2025 16:15:16 +0800 Subject: [PATCH] fix --- package.json | 1 + public/print.css | 303 +++++++++++ .../components/AddEditRegistVisit.vue | 237 --------- .../components/AddEditRegistVisitTable.vue | 85 ---- .../components/AddEditRegisterVisit.vue | 61 ++- .../components/VisitingHistoryInfo.vue | 123 ----- .../components/collapseTbale.vue | 102 ---- src/views/PoliceWork/RegisterVisit/index.vue | 65 ++- src/views/PoliceWork/RegisterVisit/print.html | 481 ++++++++++++++++++ src/views/PoliceWork/RegisterVisit/print.vue | 174 +++++++ 10 files changed, 1074 insertions(+), 558 deletions(-) create mode 100644 public/print.css delete mode 100644 src/views/PoliceWork/RegisterVisit/components/AddEditRegistVisit.vue delete mode 100644 src/views/PoliceWork/RegisterVisit/components/AddEditRegistVisitTable.vue delete mode 100644 src/views/PoliceWork/RegisterVisit/components/VisitingHistoryInfo.vue delete mode 100644 src/views/PoliceWork/RegisterVisit/components/collapseTbale.vue create mode 100644 src/views/PoliceWork/RegisterVisit/print.html create mode 100644 src/views/PoliceWork/RegisterVisit/print.vue diff --git a/package.json b/package.json index 5c69944..560a453 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ "mitt": "^3.0.1", "nprogress": "^0.2.0", "pinia": "^2.1.7", + "print-js": "^1.6.0", "tippy.js": "^6.3.7", "vue": "^3.5.5", "vue-cropper": "^1.1.1", diff --git a/public/print.css b/public/print.css new file mode 100644 index 0000000..f86a892 --- /dev/null +++ b/public/print.css @@ -0,0 +1,303 @@ +/* stylelint-disable */ +html, +body { + width: 100%; + height: 100%; +} + +input::-ms-clear, +input::-ms-reveal { + display: none; +} + +*, +*::before, +*::after { + box-sizing: border-box; +} + +html { + font-family: sans-serif; + line-height: 1.15; + -webkit-text-size-adjust: 100%; + -ms-text-size-adjust: 100%; + -ms-overflow-style: scrollbar; + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); +} + +@-ms-viewport { + width: device-width; +} + +body { + margin: 0; +} + +[tabindex='-1']:focus { + outline: none; +} + +hr { + box-sizing: content-box; + height: 0; + overflow: visible; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + margin-top: 0; + margin-bottom: 0.5em; + font-weight: 500; +} + +p { + margin-top: 0; + margin-bottom: 1em; +} + +abbr[title], +abbr[data-original-title] { + -webkit-text-decoration: underline dotted; + text-decoration: underline; + text-decoration: underline dotted; + border-bottom: 0; + cursor: help; +} + +address { + margin-bottom: 1em; + font-style: normal; + line-height: inherit; +} + +input[type='text'], +input[type='password'], +input[type='number'], +textarea { + -webkit-appearance: none; +} + +ol, +ul, +dl { + margin-top: 0; + margin-bottom: 1em; +} + +ol ol, +ul ul, +ol ul, +ul ol { + margin-bottom: 0; +} + +dt { + font-weight: 500; +} + +dd { + margin-bottom: 0.5em; + margin-left: 0; +} + +blockquote { + margin: 0 0 1em; +} + +dfn { + font-style: italic; +} + +b, +strong { + font-weight: bolder; +} + +small { + font-size: 80%; +} + +sub, +sup { + position: relative; + font-size: 75%; + line-height: 0; + vertical-align: baseline; +} + +sub { + bottom: -0.25em; +} + +sup { + top: -0.5em; +} + +pre, +code, +kbd, +samp { + font-size: 1em; + font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace; +} + +pre { + margin-top: 0; + margin-bottom: 1em; + overflow: auto; +} + +figure { + margin: 0 0 1em; +} + +img { + vertical-align: middle; + border-style: none; +} + +a, +area, +button, +[role='button'], +input:not([type='range']), +label, +select, +summary, +textarea { + touch-action: manipulation; +} + +table { + border-collapse: collapse; +} + +caption { + padding-top: 0.75em; + padding-bottom: 0.3em; + text-align: left; + caption-side: bottom; +} + +input, +button, +select, +optgroup, +textarea { + margin: 0; + color: inherit; + font-size: inherit; + font-family: inherit; + line-height: inherit; +} + +button, +input { + overflow: visible; +} + +button, +select { + text-transform: none; +} + +button, +html [type='button'], +[type='reset'], +[type='submit'] { + -webkit-appearance: button; +} + +button::-moz-focus-inner, +[type='button']::-moz-focus-inner, +[type='reset']::-moz-focus-inner, +[type='submit']::-moz-focus-inner { + padding: 0; + border-style: none; +} + +input[type='radio'], +input[type='checkbox'] { + box-sizing: border-box; + padding: 0; +} + +input[type='date'], +input[type='time'], +input[type='datetime-local'], +input[type='month'] { + -webkit-appearance: listbox; +} + +textarea { + overflow: auto; + resize: vertical; +} + +fieldset { + min-width: 0; + margin: 0; + padding: 0; + border: 0; +} + +legend { + display: block; + width: 100%; + max-width: 100%; + margin-bottom: 0.5em; + padding: 0; + color: inherit; + font-size: 1.5em; + line-height: inherit; + white-space: normal; +} + +progress { + vertical-align: baseline; +} + +[type='number']::-webkit-inner-spin-button, +[type='number']::-webkit-outer-spin-button { + height: auto; +} + +[type='search'] { + outline-offset: -2px; + -webkit-appearance: none; +} + +[type='search']::-webkit-search-cancel-button, +[type='search']::-webkit-search-decoration { + -webkit-appearance: none; +} + +::-webkit-file-upload-button { + font: inherit; + -webkit-appearance: button; +} + +output { + display: inline-block; +} + +summary { + display: list-item; +} + +template { + display: none; +} + +[hidden] { + display: none !important; +} + +mark { + padding: 0.2em; + background-color: #feffe6; +} \ No newline at end of file diff --git a/src/views/PoliceWork/RegisterVisit/components/AddEditRegistVisit.vue b/src/views/PoliceWork/RegisterVisit/components/AddEditRegistVisit.vue deleted file mode 100644 index b453385..0000000 --- a/src/views/PoliceWork/RegisterVisit/components/AddEditRegistVisit.vue +++ /dev/null @@ -1,237 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/PoliceWork/RegisterVisit/components/AddEditRegistVisitTable.vue b/src/views/PoliceWork/RegisterVisit/components/AddEditRegistVisitTable.vue deleted file mode 100644 index 8275028..0000000 --- a/src/views/PoliceWork/RegisterVisit/components/AddEditRegistVisitTable.vue +++ /dev/null @@ -1,85 +0,0 @@ - - \ No newline at end of file diff --git a/src/views/PoliceWork/RegisterVisit/components/AddEditRegisterVisit.vue b/src/views/PoliceWork/RegisterVisit/components/AddEditRegisterVisit.vue index 81f196c..614a942 100644 --- a/src/views/PoliceWork/RegisterVisit/components/AddEditRegisterVisit.vue +++ b/src/views/PoliceWork/RegisterVisit/components/AddEditRegisterVisit.vue @@ -60,6 +60,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -213,7 +258,9 @@ const { visit_reply_type, visit_field, visit_type, -} = proxy.useDict('boolean_yes_no', 'visit_level', 'visit_field', 'visit_type', 'visit_reply_type') + sys_user_sex, + people_degree +} = proxy.useDict('boolean_yes_no', 'visit_level', 'visit_field', 'visit_type', 'visit_reply_type', 'sys_user_sex', 'people_degree') const emit = defineEmits(['refresh']) @@ -254,7 +301,17 @@ const defaultParams = { // 是否重点人员 isKeyPerson: '1', // 级别 - level: '' + level: '', + // 性别 + visitorSex: '', + // 学历 + visitorDegree: '', + // 来源 + source: '', + // 年龄 + visitorAge: '', + // 地址 + visitorAddress: '' } const queryParams = ref({...defaultParams}) const registerList = ref([]) diff --git a/src/views/PoliceWork/RegisterVisit/components/VisitingHistoryInfo.vue b/src/views/PoliceWork/RegisterVisit/components/VisitingHistoryInfo.vue deleted file mode 100644 index bb131ea..0000000 --- a/src/views/PoliceWork/RegisterVisit/components/VisitingHistoryInfo.vue +++ /dev/null @@ -1,123 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/PoliceWork/RegisterVisit/components/collapseTbale.vue b/src/views/PoliceWork/RegisterVisit/components/collapseTbale.vue deleted file mode 100644 index 47dc3db..0000000 --- a/src/views/PoliceWork/RegisterVisit/components/collapseTbale.vue +++ /dev/null @@ -1,102 +0,0 @@ - - \ No newline at end of file diff --git a/src/views/PoliceWork/RegisterVisit/index.vue b/src/views/PoliceWork/RegisterVisit/index.vue index 34e2f5d..155b009 100644 --- a/src/views/PoliceWork/RegisterVisit/index.vue +++ b/src/views/PoliceWork/RegisterVisit/index.vue @@ -5,8 +5,26 @@ :inline="true" :model="queryParams" > - - + + + + + + + + + + + @@ -79,7 +97,7 @@ - + @@ -116,6 +140,7 @@ + diff --git a/src/views/PoliceWork/RegisterVisit/print.html b/src/views/PoliceWork/RegisterVisit/print.html new file mode 100644 index 0000000..a94e5b5 --- /dev/null +++ b/src/views/PoliceWork/RegisterVisit/print.html @@ -0,0 +1,481 @@ + + + + + Title + + + +
+
+ 常熟市人民检察院 +

控告申诉登记表

+
+

常检控申2025年第 号

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
信访形式信访时间承办(接待)人
信访类型来源是否重复信访
来信来访人情况姓名性别年龄文化程度
+ 工作单位及职务 + 身份证号码
联系住址联系电话
来信来访内容摘要
+
+ 承办 + (接待)人 + 意见 +
+
+
+ 部门 + 负责人 + 意见 +
+
+
+ 分管领导 + 意见 +
+
处理结果
备注
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
信访形式来信信访时间2024.12.10承办(接待)人2024.12.10
信访类型司法救助来源直接受理是否重复信访
来信来访人情况姓名***性别年龄36文化程度/
工作单位及职务/身份证/
联系住址撒打算大联系电话1341341234
来信来访内容摘要
承办(接待)人意见
部门负责人意见
分管领导意见
处理结果
备注
+
+ + \ No newline at end of file diff --git a/src/views/PoliceWork/RegisterVisit/print.vue b/src/views/PoliceWork/RegisterVisit/print.vue new file mode 100644 index 0000000..5f676d6 --- /dev/null +++ b/src/views/PoliceWork/RegisterVisit/print.vue @@ -0,0 +1,174 @@ + + + + + \ No newline at end of file