diff --git a/src/api/storeManage/deviceManage/device.js b/src/api/storeManage/deviceManage/device.js index 9d4a718..496aedc 100644 --- a/src/api/storeManage/deviceManage/device.js +++ b/src/api/storeManage/deviceManage/device.js @@ -155,4 +155,12 @@ export function FetchCallExternalStopMove(params) { }) } -export default { add, edit, del, getSupplier, getDeviceType, getDeviceById, getDesecabinetById, getRotarycabinetById, getDeviceList, FetchIsOnline, FetchInBorrowByQuCol, unbind, FetchCallExternalOpenCol, FetchCallExternalResetCol, FetchCallExternalVent, FetchCallExternalStopMove } +// 根据设备IP查看设备是否在线 +export function FetchPingIP(params) { + return request({ + url: 'api/device/pingIP' + '?' + 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 } diff --git a/src/api/system/zkt.js b/src/api/system/zkt.js index 1562cee..b99d577 100644 --- a/src/api/system/zkt.js +++ b/src/api/system/zkt.js @@ -37,6 +37,15 @@ export function FetchRealTimeZKTLog(params) { }) } +// 海康门禁日志 +export function FetchInitHikDoorLog(params) { + return request({ + url: 'api/securitydoor/initHikDoorLog', + method: 'get', + params + }) +} + export function FetchHikMajor(params) { return request({ url: 'api/securitydoor/getHikMajor', @@ -53,4 +62,4 @@ export function FetchHikMinor(params) { }) } -export default { add, FetchZKTDoorList, FetchInitZktParam, FetchRealTimeZKTLog, FetchHikMajor, FetchHikMinor } +export default { add, FetchZKTDoorList, FetchInitZktParam, FetchRealTimeZKTLog, FetchInitHikDoorLog, FetchHikMajor, FetchHikMinor } diff --git a/src/router/index.js b/src/router/index.js index 5d15f72..58c8442 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -9,7 +9,7 @@ import { filterAsyncRouter } from '@/store/modules/permission' NProgress.configure({ showSpinner: false })// NProgress Configuration -const whiteList = ['/login', '/envScreen']// no redirect whitelist +const whiteList = ['/login', '/envScreen', '/videoScreen']// no redirect whitelist router.beforeEach((to, from, next) => { if (to.meta.title) { diff --git a/src/router/routers.js b/src/router/routers.js index 10d70b0..7bda0ac 100644 --- a/src/router/routers.js +++ b/src/router/routers.js @@ -60,7 +60,12 @@ export const constantRouterMap = [ }, { path: '/envScreen', - component: (resolve) => require(['@/views/environmentalScreen/index'], resolve), + component: (resolve) => require(['@/views/environmentalScreen/index.vue'], resolve), + hidden: true + }, + { + path: '/videoScreen', + component: (resolve) => require(['@/views/screenVideo/index.vue'], resolve), hidden: true } ] diff --git a/src/views/archivesManage/archivesCheck/module/addCheck.vue b/src/views/archivesManage/archivesCheck/module/addCheck.vue index 8aaf10d..5b6506e 100644 --- a/src/views/archivesManage/archivesCheck/module/addCheck.vue +++ b/src/views/archivesManage/archivesCheck/module/addCheck.vue @@ -133,7 +133,7 @@ - + @@ -198,9 +206,11 @@ import UploadFile from '../module/uploadFile/index' import RestoreArchives from '../module/restoreArchives/index' import DeltArchives from '../module/deltArchives/index' import { FetchIsExistBorrow, FetchAddArchivesWaitRegister } from '@/api/archivesManage/lendManage' +import Print from '@/views/archivesManage/caseManage/caseList/module/print' + export default { name: 'ArchivesJuannei', - components: { PreviewForm, ArchivesInfo, BindingTagDlg, UploadFile, RestoreArchives, DeltArchives }, + components: { PreviewForm, ArchivesInfo, BindingTagDlg, UploadFile, RestoreArchives, DeltArchives, Print }, mixins: [ header(), form({}), @@ -257,7 +267,10 @@ export default { { value: '4', label: '在库' }, { value: '5', label: '待借' }, { value: '6', label: '已借' } - ] + ], + codeLoading: false, + printDialogVisible: false, // 打印弹窗显示状态 + printLabelList: [] // 传递给打印组件的标签数据 } }, computed: { @@ -292,6 +305,57 @@ export default { mounted() { }, methods: { + // 打印条码 + onPrint(res) { + this.codeLoading = true + if (res && res.length !== 0) { + this.printLabelList = res.map(item => { + return { + lsfFileVarList: [ + { + lsfFileVar: { + varname: 'barcode', // 模板中的条形码变量名,需和打印模板一致 + // varvalue: '编号:' + item.barcode + // varvalue: '编号\r\n1字第0000001号' + // varvalue: '15字第000000001号' + varvalue: item.archive_no + } + }, + { + lsfFileVar: { + varname: 'title', + // varvalue: '姓名:' + item.title + // varvalue: '姓名\r\n李军' + // varvalue: '李军' + varvalue: item.maintitle + } + }, + { + lsfFileVar: { + varname: 'nativePlace', + // varvalue: '籍贯\r\n北京' + // varvalue: '湖北武汉' + varvalue: item.native_place + } + } + ] + } + }) + + // 打开打印弹窗 + this.printDialogVisible = true + this.$nextTick(() => { + this.$refs.printComponent.connectprinter() + }) + this.codeLoading = false + } else { + this.$message({ + message: '无相关可打印条码数据!', + type: 'warning' + }) + this.codeLoading = false + } + }, stateSelect(val) { this.page.page = 1 this.query.queryType = val diff --git a/src/views/archivesManage/archivesList/module/archivesInfo/index.vue b/src/views/archivesManage/archivesList/module/archivesInfo/index.vue index 08b3a26..bbd4b8d 100644 --- a/src/views/archivesManage/archivesList/module/archivesInfo/index.vue +++ b/src/views/archivesManage/archivesList/module/archivesInfo/index.vue @@ -108,13 +108,18 @@ export default { }, methods: { + getDetial(rowId, searchCategoryId) { const params = { categoryId: searchCategoryId || this.categoryId, archivesId: rowId } FetchArchivesDetails(params).then(data => { - this.archivesDetailsData = data + this.archivesDetailsData = data.filter(item => { + return item.fieldName !== 'barcode' + }) + // this.archivesDetailsData = data + console.log('archivesDetailsData', this.archivesDetailsData) // 案卷 / 文件的借阅状态 this.archivesDetailsData.forEach(item => { if (item.fieldName === 'borrow_type') { diff --git a/src/views/archivesManage/archivesList/module/packing/index.vue b/src/views/archivesManage/archivesList/module/packing/index.vue index 9633d5b..e5fc300 100644 --- a/src/views/archivesManage/archivesList/module/packing/index.vue +++ b/src/views/archivesManage/archivesList/module/packing/index.vue @@ -37,7 +37,7 @@ - +