From 93b60538e258511cf764e85059e5f3738cab71df Mon Sep 17 00:00:00 2001
From: Administrator <675300107>
Date: Mon, 27 Jun 2022 09:01:19 +0800
Subject: [PATCH] =?UTF-8?q?ccl=20=E6=8F=90=E4=BA=A4=20=202022-06-27?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
package-lock.json | 13 +
package.json | 1 +
src/api/bulletinBoard/bulletinBoard.js | 4 +
src/api/bulletinBoard/toolLocationInfo.js | 4 +
src/main.js | 4 +
.../modules/bulletinBoard/toolDetailBoard.vue | 882 ++++++++++++++++++
.../bulletinBoard/toolLocationInfo.vue | 804 ++++++++++++++++
src/views/modules/toolMan/location.vue | 2 +-
src/views/modules/toolMan/tool-info.vue | 2 +-
9 files changed, 1714 insertions(+), 2 deletions(-)
create mode 100644 src/api/bulletinBoard/bulletinBoard.js
create mode 100644 src/api/bulletinBoard/toolLocationInfo.js
create mode 100644 src/views/modules/bulletinBoard/toolDetailBoard.vue
create mode 100644 src/views/modules/bulletinBoard/toolLocationInfo.vue
diff --git a/package-lock.json b/package-lock.json
index c0b40a2e..a73a8b18 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -9557,6 +9557,14 @@
}
}
},
+ "kr-print-designer": {
+ "version": "1.1.8",
+ "resolved": "https://registry.npmjs.org/kr-print-designer/-/kr-print-designer-1.1.8.tgz",
+ "integrity": "sha512-uQGv/XyjdpSNT3WZeCp1TswCvSywz3iU0Si7El+TGSRyyIBjKuawUe3MKzQWK0N2bWQdpZCnctTWw/C3buu4CQ==",
+ "requires": {
+ "nanoid": "^1.0.1"
+ }
+ },
"last-call-webpack-plugin": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/last-call-webpack-plugin/-/last-call-webpack-plugin-2.1.2.tgz",
@@ -10546,6 +10554,11 @@
"resolved": "https://registry.npmjs.org/nan/-/nan-2.13.2.tgz",
"integrity": "sha512-TghvYc72wlMGMVMluVo9WRJc0mB8KxxF/gZ4YYFy7V2ZQX9l7rgbPg7vjS9mt6U5HXODVFVI2bOduCzwOMv/lw=="
},
+ "nanoid": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-1.3.4.tgz",
+ "integrity": "sha512-4ug4BsuHxiVHoRUe1ud6rUFT3WUMmjXt1W0quL0CviZQANdan7D8kqN5/maw53hmAApY/jfzMRkC57BNNs60ZQ=="
+ },
"nanomatch": {
"version": "1.2.13",
"resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz",
diff --git a/package.json b/package.json
index 07809003..a69acf7f 100644
--- a/package.json
+++ b/package.json
@@ -25,6 +25,7 @@
"gulp-load-plugins": "2.0.5",
"gulp-replace": "1.0.0",
"gulp-shell": "0.8.0",
+ "kr-print-designer": "^1.1.8",
"lodash": "4.17.5",
"node-sass": "4.13.1",
"npm": "^6.9.0",
diff --git a/src/api/bulletinBoard/bulletinBoard.js b/src/api/bulletinBoard/bulletinBoard.js
new file mode 100644
index 00000000..8652e845
--- /dev/null
+++ b/src/api/bulletinBoard/bulletinBoard.js
@@ -0,0 +1,4 @@
+import { createAPI } from "@/utils/httpRequest.js";
+
+// 获取盘点主信息
+export const getToolDetailInfo = data => createAPI(`toolInfo/getToolDetailInfo`,'POST',data)
diff --git a/src/api/bulletinBoard/toolLocationInfo.js b/src/api/bulletinBoard/toolLocationInfo.js
new file mode 100644
index 00000000..3f2f2266
--- /dev/null
+++ b/src/api/bulletinBoard/toolLocationInfo.js
@@ -0,0 +1,4 @@
+import { createAPI } from "@/utils/httpRequest.js";
+
+// 获取盘点主信息
+export const getToolLocationList = data => createAPI(`toolInfo/getToolDetailAndLocationList`,'POST',data)
diff --git a/src/main.js b/src/main.js
index 588e5845..b621078e 100644
--- a/src/main.js
+++ b/src/main.js
@@ -14,6 +14,10 @@ import JsonExcel from 'vue-json-excel'
import i18n from '@/i18n/i18n'
import './directives'
import decimalUtil from '@/utils/decimalUtil'
+import KrPrintDesigner from "kr-print-designer";
+import "kr-print-designer/lib/kr-print-designer.css";
+
+Vue.use(KrPrintDesigner);
Vue.component('downloadExcel', JsonExcel)
diff --git a/src/views/modules/bulletinBoard/toolDetailBoard.vue b/src/views/modules/bulletinBoard/toolDetailBoard.vue
new file mode 100644
index 00000000..091014b7
--- /dev/null
+++ b/src/views/modules/bulletinBoard/toolDetailBoard.vue
@@ -0,0 +1,882 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{buttons.search}}
+ {{buttons.defaultTable}}
+
+ {{ buttons.settingTable}}
+
+ {{buttons.download}}
+
+
+
+
+
+
+ {{scope.row[item.columnProp]}}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/bulletinBoard/toolLocationInfo.vue b/src/views/modules/bulletinBoard/toolLocationInfo.vue
new file mode 100644
index 00000000..7999b423
--- /dev/null
+++ b/src/views/modules/bulletinBoard/toolLocationInfo.vue
@@ -0,0 +1,804 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{buttons.search}}
+ {{buttons.defaultTable}}
+
+ {{ buttons.settingTable}}
+
+ {{buttons.download}}
+
+
+
+
+
+
+ {{scope.row[item.columnProp]}}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/toolMan/location.vue b/src/views/modules/toolMan/location.vue
index 7d9a8d10..3db3f06b 100644
--- a/src/views/modules/toolMan/location.vue
+++ b/src/views/modules/toolMan/location.vue
@@ -127,7 +127,7 @@
-
+
diff --git a/src/views/modules/toolMan/tool-info.vue b/src/views/modules/toolMan/tool-info.vue
index bae3fe57..948bea08 100644
--- a/src/views/modules/toolMan/tool-info.vue
+++ b/src/views/modules/toolMan/tool-info.vue
@@ -1087,7 +1087,7 @@
printReport(){
let row = this.currentDetailData
// alert( this.$store.state.user.site)
-
+ this.$lodop.print(temp, data);
const LODOP = getLodop()
if (LODOP) {
LODOP.SET_LICENSES("","13F0BE83846277CB60918577C6281375","","");