From 24e0246510ecd086fcf0dbd6059c011182df92f0 Mon Sep 17 00:00:00 2001 From: xuhuajiao <13476289682@163.com> Date: Mon, 5 Jan 2026 16:09:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E9=87=8F=E5=AF=BC=E5=85=A5/=E7=8E=AF?= =?UTF-8?q?=E6=8E=A7=E8=AE=BE=E5=A4=87/=E6=A0=B7=E5=BC=8F=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/archivesManage/fileImport.js | 24 +- src/api/storeManage/deviceManage/device.js | 12 +- .../fileImport/dataImport/index.vue | 228 ++++++++++---- .../fileImport/importLog/index.vue | 60 ++-- src/views/archivesManage/fileImport/index.vue | 1 - .../fileImport/module/EditableCell.vue | 139 +++++++++ .../fileImport/module/detail.vue | 122 ++++---- .../fileImport/module/listPre-edit.vue | 202 +++++++++++++ .../fileImport/module/listPre.vue | 282 ++++++++++++++++++ src/views/components/AccessDoor.vue | 8 +- src/views/components/WarehouseWarning.vue | 8 +- src/views/environmentalScreen/index.vue | 11 +- src/views/home.vue | 4 +- .../deviceManage/module/deviceDetail.vue | 19 +- 14 files changed, 964 insertions(+), 156 deletions(-) create mode 100644 src/views/archivesManage/fileImport/module/EditableCell.vue create mode 100644 src/views/archivesManage/fileImport/module/listPre-edit.vue create mode 100644 src/views/archivesManage/fileImport/module/listPre.vue diff --git a/src/api/archivesManage/fileImport.js b/src/api/archivesManage/fileImport.js index 3ee6891..7e7199a 100644 --- a/src/api/archivesManage/fileImport.js +++ b/src/api/archivesManage/fileImport.js @@ -4,9 +4,11 @@ import axios from 'axios' import { getToken } from '@/utils/auth' // 预览上传zip信息 -export function zipUpload(api, file) { +export function zipUpload(api, file, username) { var data = new FormData() - data.append('multipartFile', file) + // data.append('multipartFile', file) + data.append('file', file) + data.append('username', username) const config = { headers: { 'Authorization': getToken() } } @@ -21,6 +23,13 @@ export function FetchInitImportPreview(params) { }) } +export function FetchHpArchivesDetailsByHpId(params) { + return request({ + url: 'api/unzip/getHpArchivesDetailsByHpId' + '?' + qs.stringify(params, { indices: false }), + method: 'get' + }) +} + // 导入 export function FetchImportZip(parameter) { return request({ @@ -30,6 +39,15 @@ export function FetchImportZip(parameter) { }) } +// 黄陂导入 +export function FetchImportHp(parameter) { + return request({ + url: 'api/unzip/importHp', + method: 'post', + data: parameter + }) +} + // 导入日志 export function FetchInitImportLog(params) { return request({ @@ -49,7 +67,9 @@ export function FetchInitImportLogDetail(params) { export default { zipUpload, FetchInitImportPreview, + FetchHpArchivesDetailsByHpId, FetchImportZip, + FetchImportHp, FetchInitImportLog, FetchInitImportLogDetail } diff --git a/src/api/storeManage/deviceManage/device.js b/src/api/storeManage/deviceManage/device.js index 07b199f..d23444d 100644 --- a/src/api/storeManage/deviceManage/device.js +++ b/src/api/storeManage/deviceManage/device.js @@ -76,7 +76,7 @@ function getUrl(data, optTYpe) { url = 'api/insidedevices/' } else if (data.deviceTypeId.name === '通道门' || data.deviceTypeId.name === '手持式RFID读写器') { url = 'api/outsidedevices/' - } else if (data.deviceTypeId.name === '条码打印机' || data.deviceTypeId.name === '门禁') { + } else if (data.deviceTypeId.name === '条码打印机' || data.deviceTypeId.name === '门禁' || data.deviceTypeId.name === '原品环控') { url = 'api/device/' } if (optTYpe === 'add') { @@ -171,4 +171,12 @@ export function FetchRFIDReadStatus(params) { }) } -export default { add, edit, del, getSupplier, getDeviceType, getDeviceById, getDesecabinetById, getRotarycabinetById, getDeviceList, FetchIsOnline, FetchInBorrowByQuCol, unbind, FetchCallExternalOpenCol, FetchCallExternalResetCol, FetchCallExternalVent, FetchCallExternalStopMove, FetchPingIP, FetchRFIDReadStatus } +// 根据原品查看设备是否在线 +export function FetchypNetStatusByIp(params) { + return request({ + url: 'api/device/getypNetStatusByIp' + '?' + qs.stringify(params, { indices: false }), + method: 'get' + }) +} + +export default { add, edit, del, getSupplier, getDeviceType, getDeviceById, getDesecabinetById, getRotarycabinetById, getDeviceList, FetchIsOnline, FetchInBorrowByQuCol, unbind, FetchCallExternalOpenCol, FetchCallExternalResetCol, FetchCallExternalVent, FetchCallExternalStopMove, FetchPingIP, FetchRFIDReadStatus, FetchypNetStatusByIp } diff --git a/src/views/archivesManage/fileImport/dataImport/index.vue b/src/views/archivesManage/fileImport/dataImport/index.vue index 69d53ce..a3f2463 100644 --- a/src/views/archivesManage/fileImport/dataImport/index.vue +++ b/src/views/archivesManage/fileImport/dataImport/index.vue @@ -16,10 +16,10 @@ class="step-content step-upload" >
- +
选择文件
-
上传限制文件类型:zip
+
上传限制文件类型:xlsx, xls
{{ item.name }} @@ -28,15 +28,42 @@
下一步
-
-
案卷:{{ ajnum }} 条 / 卷内:{{ danum }} 条 / 资料:{{ djnum }}
- +
+
{{ totalNum }} 条 正常 {{ normalNum }} 条 问题 {{ errorNum }}
+
上一步 - 下一步 + 导入
+ +
+ +

数据导入中,请耐心等待...

+
+ + +
+ +

数据导入成功!

+ 完成 +
+ + +
+ +

数据导入失败,请重试。

+ 重试 + 取消 +
+
+ 覆盖 @@ -55,7 +81,6 @@ - 覆盖 @@ -65,7 +90,7 @@ 取消 -
+
--> @@ -82,20 +107,20 @@ + + diff --git a/src/views/archivesManage/fileImport/module/detail.vue b/src/views/archivesManage/fileImport/module/detail.vue index 521e9f9..15039c5 100644 --- a/src/views/archivesManage/fileImport/module/detail.vue +++ b/src/views/archivesManage/fileImport/module/detail.vue @@ -6,9 +6,9 @@

成功导入数据:{{ importData === null ? 0 : importData }}

    -
  • 案卷
  • -
  • 文件
  • -
  • 资料
  • + +
  • 文件
  • +
- - - - - - - + + + + + + + - + - + - + - - + - + - + - + - + - + - + - + - + - + - - + { if (this.isLogOrPreview === 'preview') { - if (this.ajnum && this.ajnum !== 0) { - this.changeActiveTab(0) - } else if (this.djnum && this.djnum !== 0) { - this.changeActiveTab(2) - } + // if (this.ajnum && this.ajnum !== 0) { + // this.changeActiveTab(0) + // } else if (this.djnum && this.djnum !== 0) { + // this.changeActiveTab(2) + // } } else { - if (this.zipSelect && this.zipSelect.ajNum !== 0) { - this.changeActiveTab(0) - } else if (this.zipSelect && this.zipSelect.djNum !== 0) { - this.changeActiveTab(2) - } + // if (this.fileSelect && this.fileSelect.ajNum !== 0) { + // this.changeActiveTab(0) + // } else if (this.fileSelect && this.fileSelect.djNum !== 0) { + // this.changeActiveTab(2) + // } } + + this.page.page = 1 + // this.archivesTabIndex = index + this.getList() + this.getTotalInfo() }) }, methods: { @@ -192,24 +197,27 @@ export default { this.getTotalInfo() }, getTotalInfo() { - if (this.archivesTabIndex === 0) { - this.importType = this.zipSelect.archivesImportType === 1 ? '跳过' : '覆盖' - this.readData = this.zipSelect.ajNum - this.importData = this.zipSelect.ajOkNnum - } else if (this.archivesTabIndex === 1) { - this.importType = this.zipSelect.archivesImportType === 1 ? '跳过' : '覆盖' - this.readData = this.zipSelect.daNum - this.importData = this.zipSelect.daOkNum - } else if (this.archivesTabIndex === 2) { - this.importType = this.zipSelect.informationInputType === 1 ? '跳过' : '覆盖' - this.readData = this.zipSelect.djNum - this.importData = this.zipSelect.djOkNum - } + this.importType = this.fileSelect.archivesImportType === 1 ? '跳过' : '覆盖' + this.readData = this.fileSelect.ajNum + this.importData = this.fileSelect.ajOkNnum + // if (this.archivesTabIndex === 0) { + // this.importType = this.fileSelect.archivesImportType === 1 ? '跳过' : '覆盖' + // this.readData = this.fileSelect.ajNum + // this.importData = this.fileSelect.ajOkNnum + // } else if (this.archivesTabIndex === 1) { + // this.importType = this.fileSelect.archivesImportType === 1 ? '跳过' : '覆盖' + // this.readData = this.fileSelect.daNum + // this.importData = this.fileSelect.daOkNum + // } else if (this.archivesTabIndex === 2) { + // this.importType = this.fileSelect.informationInputType === 1 ? '跳过' : '覆盖' + // this.readData = this.fileSelect.djNum + // this.importData = this.fileSelect.djOkNum + // } }, getList() { if (this.isLogOrPreview === 'preview') { // 导入预览 - crudFileImport.FetchInitImportPreview({ page: this.page.page - 1, size: this.page.size, type: this.archivesTabIndex + 1 }).then(res => { + crudFileImport.FetchInitImportPreview({ page: this.page.page - 1, size: this.page.size, type: 1 }).then(res => { // this.ajnum = res.ajnum // this.danum = res.danum // this.djnum = res.djnum @@ -221,7 +229,7 @@ export default { if (page === -1) { page = 0 } - crudFileImport.FetchInitImportLogDetail({ page: page, size: this.page.size, zipid: this.zipSelect.id, type: this.archivesTabIndex + 1 }).then(res => { + crudFileImport.FetchInitImportLogDetail({ page: page, size: this.page.size, zipid: this.fileSelect.id, type: 1 }).then(res => { this.tableData = res.content this.page.total = res.totalElements }) diff --git a/src/views/archivesManage/fileImport/module/listPre-edit.vue b/src/views/archivesManage/fileImport/module/listPre-edit.vue new file mode 100644 index 0000000..7148766 --- /dev/null +++ b/src/views/archivesManage/fileImport/module/listPre-edit.vue @@ -0,0 +1,202 @@ + + + + + diff --git a/src/views/archivesManage/fileImport/module/listPre.vue b/src/views/archivesManage/fileImport/module/listPre.vue new file mode 100644 index 0000000..e52c370 --- /dev/null +++ b/src/views/archivesManage/fileImport/module/listPre.vue @@ -0,0 +1,282 @@ + + + + + diff --git a/src/views/components/AccessDoor.vue b/src/views/components/AccessDoor.vue index ba59922..d65e2aa 100644 --- a/src/views/components/AccessDoor.vue +++ b/src/views/components/AccessDoor.vue @@ -13,12 +13,12 @@
{{ scope.row.time | parseTime }}
- + - + @@ -30,6 +30,10 @@ import { mapGetters } from 'vuex' export default { name: 'AccessDoor', props: { + isScreen: { + type: Boolean, + default: false + }, width: { type: String, default: '100%' diff --git a/src/views/components/WarehouseWarning.vue b/src/views/components/WarehouseWarning.vue index 4ef6364..1f5246a 100644 --- a/src/views/components/WarehouseWarning.vue +++ b/src/views/components/WarehouseWarning.vue @@ -15,8 +15,8 @@ - - + + @@ -26,6 +26,10 @@ import { mapGetters } from 'vuex' export default { name: 'WarehouseWarning', props: { + isScreen: { + type: Boolean, + default: false + }, width: { type: String, default: '100%' diff --git a/src/views/environmentalScreen/index.vue b/src/views/environmentalScreen/index.vue index 84fe9b5..b2119c3 100644 --- a/src/views/environmentalScreen/index.vue +++ b/src/views/environmentalScreen/index.vue @@ -180,9 +180,9 @@
- + - +
@@ -559,8 +559,11 @@ export default { }) // 2. 合并数量 - this.onlineDeviceNum = this.apiOnlineNum + localStats.online - this.offlineDeviceNum = this.apiOfflineNum + localStats.offline + // this.onlineDeviceNum = this.apiOnlineNum + localStats.online + // this.offlineDeviceNum = this.apiOfflineNum + localStats.offline + + this.onlineDeviceNum = this.apiOnlineNum + this.offlineDeviceNum = this.apiOfflineNum // 3. 打印详细日志(包含IP明细) console.log('===== 合并后的设备数量详情 =====', { diff --git a/src/views/home.vue b/src/views/home.vue index 3f8c8a1..4c69c3d 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -1,8 +1,8 @@