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 @@
+
+
+
+
+
+
+ 导入
+ 覆盖
+ 跳过
+ 失败
+
+
+
+
+
+
+ { scope.row.maintitle = val }"
+ />
+
+
+
+
+ { scope.row.idType = val }"
+ />
+
+
+
+
+ { scope.row.idNumber = val }"
+ />
+
+
+
+
+ { scope.row.nativePlace = val }"
+ />
+
+
+
+
+ { scope.row.archiveNo = val }"
+ />
+
+
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
成功读取数据:{{ readData === null ? 0 : readData }} 条
+
成功导入数据:{{ importData === null ? 0 : importData }} 条
+
跳过数据:{{ skipData === null ? 0 : skipData }} 条
+
覆盖数据:{{ coverData === null ? 0 : coverData }} 条
+
导入失败数据:{{ errorData === null ? 0 : errorData }} 条
+
+
+
+
+
+
+
+ 导入
+
+ 跳过
+
+
+
+
+
+
+
+
+
+
+ 导入
+ 覆盖
+ 跳过
+ 失败
+
+
+
+
+
+ {{ (page.page - 1) * page.size + scope.$index + 1 }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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 }}
-
+
{{ scope.row.name }}
-
+
@@ -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 @@
-
-
+
+
diff --git a/src/views/storeManage/deviceManage/module/deviceDetail.vue b/src/views/storeManage/deviceManage/module/deviceDetail.vue
index df9ca87..5f4b827 100644
--- a/src/views/storeManage/deviceManage/module/deviceDetail.vue
+++ b/src/views/storeManage/deviceManage/module/deviceDetail.vue
@@ -39,7 +39,7 @@
-
+
@@ -167,7 +167,6 @@
-
@@ -465,6 +464,8 @@ export default {
const RFID_DEVICE_TYPE_ID = 'E2767FEACA9CE0E3B16B89'
// 新增的设备类型ID - 直接在线
const ONLINE_DEVICE_TYPE_ID = 'DD656054BE3D1DF1E2F1FC'
+ // 新增原品环控设备id
+ const YP_DEVICE_TYPE_ID = '54140FFB4DD943B4817AB27'
crud.data.forEach(element => {
console.log('element', element)
@@ -473,6 +474,9 @@ export default {
this.getRFIDReadStatus(element)
} else if (element.deviceTypeId?.id === ONLINE_DEVICE_TYPE_ID) {
element.deviceState = 1
+ } else if (element.deviceTypeId?.id === YP_DEVICE_TYPE_ID) {
+ element.deviceState = null
+ this.getypNetStatusByIp(element)
} else {
if (element.deviceIp) {
this.getDeviceState(element)
@@ -504,6 +508,17 @@ export default {
element.deviceState = 0
})
},
+
+ getypNetStatusByIp(element) {
+ crudDevice.FetchypNetStatusByIp({ id: element.id })
+ .then((data) => {
+ element.deviceState = data === '0' ? 1 : 0
+ })
+ .catch((error) => {
+ console.error('获取原品环控设备状态失败:', error)
+ element.deviceState = 0
+ })
+ },
// 提交前的验证
[CRUD.HOOK.afterValidateCU](crud) {
if (crud.status.edit === 1) {