From f2cbe7e3f88447588418814d4b9e745918932748 Mon Sep 17 00:00:00 2001 From: xuhuajiao <13476289682@163.com> Date: Fri, 6 Dec 2024 17:21:29 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E8=A7=89=E7=9B=98=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/api/bookBasice/index.js | 27 + src/assets/styles/archives-manage.scss | 18 +- src/assets/styles/index.scss | 1 + src/assets/styles/manage.scss | 59 ++ src/assets/styles/yxk-admin.scss | 26 - src/router/routers.js | 12 +- src/utils/index.js | 31 +- src/views/system/dict/index2.vue | 425 --------------- src/views/system/group/index.vue | 144 +---- src/views/system/log/search.vue | 1 - src/views/system/menu/index.vue | 11 - src/views/system/notify/index.vue | 17 - src/views/system/role/index.vue | 143 ----- src/views/system/user/cart.vue | 234 -------- src/views/system/user/center.vue | 13 +- src/views/system/user/index.vue | 102 +--- .../visualCheck/bookstore/book/index.vue | 372 +++++++++++++ .../bookstore/collection/index.vue | 506 ++++++++++++++++++ .../bookstore/collectionLocation/index.vue | 230 ++++++++ .../checkManage/bookSearch/index.vue | 16 + .../checkManage/bookshelfSearch/index.vue | 16 + .../checkManage/checkLog/index.vue | 16 + .../checkManage/checkPlan/index.vue | 16 + .../checkManage/dataScreening/index.vue | 16 + src/views/visualCheck/checkManage/index.vue | 2 +- .../checkManage/statistic/index.vue | 16 + .../visualCheck/venueDevice/area/index.vue | 1 - .../venueDevice/bookshelf/index.vue | 1 - .../visualCheck/venueDevice/device/index.vue | 1 - .../visualCheck/venueDevice/floor/index.vue | 170 +++++- src/views/visualCheck/venueDevice/index.vue | 16 + 32 files changed, 1506 insertions(+), 1154 deletions(-) create mode 100644 src/api/bookBasice/index.js create mode 100644 src/assets/styles/manage.scss delete mode 100644 src/views/system/dict/index2.vue delete mode 100644 src/views/system/user/cart.vue create mode 100644 src/views/visualCheck/bookstore/book/index.vue create mode 100644 src/views/visualCheck/bookstore/collection/index.vue create mode 100644 src/views/visualCheck/bookstore/collectionLocation/index.vue create mode 100644 src/views/visualCheck/checkManage/bookSearch/index.vue create mode 100644 src/views/visualCheck/checkManage/bookshelfSearch/index.vue create mode 100644 src/views/visualCheck/checkManage/checkLog/index.vue create mode 100644 src/views/visualCheck/checkManage/checkPlan/index.vue create mode 100644 src/views/visualCheck/checkManage/dataScreening/index.vue create mode 100644 src/views/visualCheck/checkManage/statistic/index.vue create mode 100644 src/views/visualCheck/venueDevice/index.vue diff --git a/package.json b/package.json index 36d999d..1bd397d 100644 --- a/package.json +++ b/package.json @@ -58,6 +58,7 @@ "js-cookie": "2.2.0", "js-md5": "^0.7.3", "js-sha1": "^0.6.0", + "jsbarcode": "^3.11.6", "jsencrypt": "^3.0.0-rc.1", "jsrsasign": "^10.3.0", "jszip": "^3.7.0", diff --git a/src/api/bookBasice/index.js b/src/api/bookBasice/index.js new file mode 100644 index 0000000..dc1bc58 --- /dev/null +++ b/src/api/bookBasice/index.js @@ -0,0 +1,27 @@ +import request from '@/utils/request' + +export function add(data) { + return request({ + url: 'api/bookBasice/editCollectionLocation', + method: 'post', + data + }) +} + +export function edit(data) { + return request({ + url: 'api/bookBasice/editCollectionLocation', + method: 'post', + data + }) +} + +export function del(ids) { + return request({ + url: 'api/bookBasice/delCollectionLocation', + method: 'post', + data: ids + }) +} + +export default { add, edit, del } diff --git a/src/assets/styles/archives-manage.scss b/src/assets/styles/archives-manage.scss index 80aa298..a251bdc 100644 --- a/src/assets/styles/archives-manage.scss +++ b/src/assets/styles/archives-manage.scss @@ -40,10 +40,6 @@ } } -.crud-opts{ - justify-content: space-between; -} - // 库房可删 .archives-handler-btn{ .el-button{ @@ -67,14 +63,6 @@ background-color: #075E6C; } } - // &.warehousing-btn{ - // border-color: $arcYellow; - // background-color: $arcYellow; - // &.is-disabled{ - // border-color:#7E4021; - // background-color: #7E4021; - // } - // } &.lending-btn{ border-color: $arcRed; background-color: $arcRed; @@ -192,11 +180,7 @@ } } } -.screenshot{ - display: block; - margin: 0 auto; - object-fit: cover; -} + .file-down, .packing-handle-btn, .packing-recall-btn, diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index 8f181de..7d7a1ec 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -6,6 +6,7 @@ @import '~@/assets/iconfonts/light/iconfont.css'; @import 'yxk-admin'; @import 'archives-manage'; +@import 'manage'; body { height: 100%; diff --git a/src/assets/styles/manage.scss b/src/assets/styles/manage.scss new file mode 100644 index 0000000..6d4bd20 --- /dev/null +++ b/src/assets/styles/manage.scss @@ -0,0 +1,59 @@ +@import 'variables'; +@import 'mixin'; + +.venue-container{ + display: flex; + justify-content: space-between; +} + +.venue-left{ + width: calc(100% / 2); + margin-right: 20px; + @include bg_color; + @include box_padding; + .head-container{ + margin-bottom: 20px; + .crud-opts{ + justify-content: center; + } + } + .container-left{ + @include tree_height_min; + } +} +.venue-right{ + flex: 1; + @include bg_color; + @include box_padding; + .head-container{ + margin-bottom: 20px; + } + .container-right{ + @include table_height_min; + &.tab-content{ + @include tab_height_min; + } + } +} + +.venue-container{ + .tab-content{ + position: relative; + @include row_tab_style; + .tab-nav{ + margin-bottom: 0; + } + } +} + + +.venue-preview{ + width: 100%; + height: 690px; + margin-top: 20px; + overflow: hidden; + img{ + display: block; + width: 100%; + } +} diff --git a/src/assets/styles/yxk-admin.scss b/src/assets/styles/yxk-admin.scss index ca69d54..1116a31 100644 --- a/src/assets/styles/yxk-admin.scss +++ b/src/assets/styles/yxk-admin.scss @@ -1228,32 +1228,6 @@ input[type ='number'] { .warehouse-svg { margin: 0 10px 1px 0; } -// .title-arrow { -// position: relative; -// display: inline-block; - -// &::before { -// content: ''; -// width: 36px; -// height: 12px; -// position: absolute; -// right: -60px; -// top: 50%; -// transform: translateY(-50%); -// background: url('~@/assets/images/warehouse_arrow_left.png') no-repeat; -// } - -// &::after { -// content: ''; -// width: 36px; -// height: 12px; -// position: absolute; -// left: -60px; -// top: 50%; -// transform: translateY(-50%); -// background: url('~@/assets/images/warehouse_arrow_right.png') no-repeat; -// } -// } .el-switch .el-switch__core{ @include switch-disabled; } diff --git a/src/router/routers.js b/src/router/routers.js index d062c86..8577718 100644 --- a/src/router/routers.js +++ b/src/router/routers.js @@ -55,13 +55,13 @@ export const constantRouterMap = [ component: (resolve) => require(['@/views/system/user/center'], resolve), name: '个人中心', meta: { title: '个人中心' } - }, - { - path: 'cart', - component: (resolve) => require(['@/views/system/user/cart'], resolve), - name: '借阅车', - meta: { title: '借阅车' } } + // { + // path: 'cart', + // component: (resolve) => require(['@/views/system/user/cart'], resolve), + // name: '借阅车', + // meta: { title: '借阅车' } + // } ] } // { diff --git a/src/utils/index.js b/src/utils/index.js index bbd8f74..f60157e 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -1,3 +1,4 @@ +import { getToken } from '@/utils/auth' /** * Created by PanJiaChen on 16/11/18. */ @@ -424,11 +425,26 @@ export function getCurrentTime() { return time } +// 定义时间 +export function timeFormate() { + const date = new Date() + const Y = date.getFullYear() + const M = + date.getMonth() + 1 < 10 + ? '0' + (date.getMonth() + 1) + : date.getMonth() + 1 + const D = date.getDate() < 10 ? '0' + date.getDate() : date.getDate() + return Y + M + D +} + // 导出 export function getBlob(url, cb) { var xhr = new XMLHttpRequest() xhr.open('GET', url, true) xhr.responseType = 'blob' + + xhr.setRequestHeader('Authorization', getToken()) + xhr.onload = function() { if (xhr.status === 200) { cb(xhr.response) @@ -436,7 +452,7 @@ export function getBlob(url, cb) { } xhr.send() } - +// 与getBlob 配合使用 export function saveAs(blob, filename) { if (window.navigator.msSaveOrOpenBlob) { navigator.msSaveBlob(blob, filename) @@ -453,18 +469,6 @@ export function saveAs(blob, filename) { } } -// 定义时间 -export function timeFormate() { - const date = new Date() - const Y = date.getFullYear() - const M = - date.getMonth() + 1 < 10 - ? '0' + (date.getMonth() + 1) - : date.getMonth() + 1 - const D = date.getDate() < 10 ? '0' + date.getDate() : date.getDate() - return Y + M + D -} - // 下载文件 export function saveByteArray(fileName, byte) { var blob = new Blob([byte], { type: 'application/pdf' }) @@ -474,4 +478,3 @@ export function saveByteArray(fileName, byte) { link.download = fileName link.click() } - diff --git a/src/views/system/dict/index2.vue b/src/views/system/dict/index2.vue deleted file mode 100644 index 4b82927..0000000 --- a/src/views/system/dict/index2.vue +++ /dev/null @@ -1,425 +0,0 @@ - - - - - diff --git a/src/views/system/group/index.vue b/src/views/system/group/index.vue index 968d254..d3aa085 100644 --- a/src/views/system/group/index.vue +++ b/src/views/system/group/index.vue @@ -6,7 +6,6 @@ - -