diff --git a/.env.development b/.env.development index 69837b1..3137c52 100644 --- a/.env.development +++ b/.env.development @@ -3,20 +3,19 @@ ENV = 'development' # 接口地址 #内网服务地址 -VUE_APP_BASE_API = 'http://192.168.99.107:7070' -VUE_APP_WS_API = 'ws://192.168.99.107:7071' +# VUE_APP_BASE_API = 'http://192.168.99.107:7077' +# VUE_APP_WS_API = 'ws://192.168.99.107:7077' VUE_APP_CAMERA_API = '192.168.99.107:3000' - -# 刘力-本地服地址 -#VUE_APP_BASE_API = 'http://192.168.99.65:7070' -#VUE_APP_WS_API = 'ws://192.168.99.65:7071' +# VUE_APP_BASE_API = 'http://192.168.99.107:7070' +# VUE_APP_WS_API = 'ws://192.168.99.107:7070' # 许镇-本地服地址 #VUE_APP_BASE_API = 'http://192.168.99.84:7070' #VUE_APP_WS_API = 'ws://192.168.99.84:7070' -# VUE_APP_BASE_API = 'http://192.168.99.67:7070' -# VUE_APP_WS_API = 'ws://192.168.99.67:7070' +VUE_APP_BASE_API = 'http://192.168.99.67:7070' +VUE_APP_WS_API = 'ws://192.168.99.67:7070' + # 是否启用 babel-plugin-dynamic-import-node插件 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/package.json b/package.json index 35ef8ee..17237e0 100644 --- a/package.json +++ b/package.json @@ -1,115 +1,115 @@ -{ - "name": "yxk-storeroom-system", - "version": "1.0.0", - "description": "智能库房综合管理系统", - "author": "刘力", - "license": "", - "scripts": { - "dev": "vue-cli-service serve", - "build:prod": "vue-cli-service build", - "build:stage": "vue-cli-service build --mode staging", - "preview": "node build/index.js --preview", - "lint": "eslint --ext .js,.vue src", - "test:unit": "jest --clearCache && vue-cli-service test:unit", - "svgo": "svgo -f src/assets/icons/svg --config=src/assets/icons/svgo.yml", - "new": "plop" - }, - "husky": { - "hooks": { - "pre-commit": "lint-staged" - } - }, - "lint-staged": { - "src/**/*.{js,vue}": [ - "eslint --fix", - "git add" - ] - }, - "dependencies": { - "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6", - "@babel/plugin-proposal-optional-chaining": "^7.18.9", - "@riophae/vue-treeselect": "^0.4.0", - "axios": "^0.21.1", - "clipboard": "2.0.4", - "codemirror": "^5.49.2", - "connect": "3.6.6", - "core-js": "^2.6.12", - "echarts": "^4.2.1", - "echarts-gl": "^1.1.1", - "echarts-wordcloud": "^1.1.3", - "element-ui": "^2.15.6", - "file-saver": "1.3.8", - "fuse.js": "3.4.4", - "highlight.js": "^11.5.1", - "html2canvas": "^1.4.1", - "js-beautify": "^1.10.2", - "js-cookie": "2.2.0", - "jsencrypt": "^3.0.0-rc.1", - "jszip": "^3.7.1", - "mavon-editor": "^2.9.1", - "normalize.css": "7.0.0", - "nprogress": "0.2.0", - "path-to-regexp": "2.4.0", - "print-js": "^1.6.0", - "qs": "^6.10.1", - "screenfull": "4.2.0", - "sortablejs": "1.8.4", - "vkbeautify": "^0.99.3", - "vue": "^2.6.14", - "vue-count-to": "^1.0.13", - "vue-cropper": "0.4.9", - "vue-echarts": "^5.0.0-beta.0", - "vue-highlightjs": "^1.3.3", - "vue-image-crop-upload": "^2.5.0", - "vue-router": "3.0.2", - "vue-splitpane": "1.0.4", - "vuedraggable": "2.20.0", - "vuex": "3.1.0", - "wangeditor": "^4.7.11", - "x2js": "^3.4.3", - "xlsx": "^0.17.4" - }, - "devDependencies": { - "@babel/parser": "^7.7.4", - "@babel/register": "7.0.0", - "@vue/babel-plugin-transform-vue-jsx": "^1.2.1", - "@vue/cli-plugin-babel": "3.5.3", - "@vue/cli-plugin-eslint": "^3.9.1", - "@vue/cli-plugin-unit-jest": "3.5.3", - "@vue/cli-service": "3.5.3", - "@vue/test-utils": "1.0.0-beta.29", - "autoprefixer": "^9.5.1", - "babel-core": "7.0.0-bridge.0", - "babel-eslint": "10.0.1", - "babel-jest": "23.6.0", - "babel-plugin-dynamic-import-node": "2.3.0", - "babel-plugin-transform-remove-console": "^6.9.4", - "chalk": "2.4.2", - "chokidar": "2.1.5", - "connect": "3.6.6", - "eslint": "5.15.3", - "eslint-plugin-vue": "5.2.2", - "html-webpack-plugin": "3.2.0", - "http-proxy-middleware": "^0.19.1", - "husky": "1.3.1", - "lint-staged": "8.1.5", - "plop": "2.3.0", - "sass": "1.32.13", - "sass-loader": "10.2.0", - "script-ext-html-webpack-plugin": "2.1.3", - "script-loader": "0.7.2", - "serve-static": "^1.13.2", - "svg-sprite-loader": "4.1.3", - "svgo": "1.2.0", - "tasksfile": "^5.1.1", - "vue-template-compiler": "2.6.14" - }, - "engines": { - "node": ">=8.9", - "npm": ">= 3.0.0" - }, - "browserslist": [ - "> 1%", - "last 2 versions" - ] -} +{ + "name": "yxk-storeroom-system", + "version": "1.0.0", + "description": "智能库房综合管理系统", + "author": "刘力", + "license": "", + "scripts": { + "dev": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve", + "build:prod": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build", + "build:stage": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build --mode staging", + "preview": "node build/index.js --preview", + "lint": "eslint --ext .js,.vue src", + "test:unit": "jest --clearCache && vue-cli-service test:unit", + "svgo": "svgo -f src/assets/icons/svg --config=src/assets/icons/svgo.yml", + "new": "plop" + }, + "husky": { + "hooks": { + "pre-commit": "lint-staged" + } + }, + "lint-staged": { + "src/**/*.{js,vue}": [ + "eslint --fix", + "git add" + ] + }, + "dependencies": { + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6", + "@babel/plugin-proposal-optional-chaining": "^7.18.9", + "@riophae/vue-treeselect": "^0.4.0", + "axios": "^0.21.1", + "clipboard": "2.0.4", + "codemirror": "^5.49.2", + "connect": "3.6.6", + "core-js": "^2.6.12", + "echarts": "^4.2.1", + "echarts-gl": "^1.1.1", + "echarts-wordcloud": "^1.1.3", + "element-ui": "^2.15.6", + "file-saver": "1.3.8", + "fuse.js": "3.4.4", + "highlight.js": "^11.5.1", + "html2canvas": "^1.4.1", + "js-beautify": "^1.10.2", + "js-cookie": "2.2.0", + "jsencrypt": "^3.0.0-rc.1", + "jszip": "^3.7.1", + "mavon-editor": "^2.9.1", + "normalize.css": "7.0.0", + "nprogress": "0.2.0", + "path-to-regexp": "2.4.0", + "print-js": "^1.6.0", + "qs": "^6.10.1", + "screenfull": "4.2.0", + "sortablejs": "1.8.4", + "vkbeautify": "^0.99.3", + "vue": "^2.6.14", + "vue-count-to": "^1.0.13", + "vue-cropper": "0.4.9", + "vue-echarts": "^5.0.0-beta.0", + "vue-highlightjs": "^1.3.3", + "vue-image-crop-upload": "^2.5.0", + "vue-router": "3.0.2", + "vue-splitpane": "1.0.4", + "vuedraggable": "2.20.0", + "vuex": "3.1.0", + "wangeditor": "^4.7.11", + "x2js": "^3.4.3", + "xlsx": "^0.17.4" + }, + "devDependencies": { + "@babel/parser": "^7.7.4", + "@babel/register": "7.0.0", + "@vue/babel-plugin-transform-vue-jsx": "^1.2.1", + "@vue/cli-plugin-babel": "3.5.3", + "@vue/cli-plugin-eslint": "^3.9.1", + "@vue/cli-plugin-unit-jest": "3.5.3", + "@vue/cli-service": "3.5.3", + "@vue/test-utils": "1.0.0-beta.29", + "autoprefixer": "^9.5.1", + "babel-core": "7.0.0-bridge.0", + "babel-eslint": "10.0.1", + "babel-jest": "23.6.0", + "babel-plugin-dynamic-import-node": "2.3.0", + "babel-plugin-transform-remove-console": "^6.9.4", + "chalk": "2.4.2", + "chokidar": "2.1.5", + "connect": "3.6.6", + "eslint": "5.15.3", + "eslint-plugin-vue": "5.2.2", + "html-webpack-plugin": "3.2.0", + "http-proxy-middleware": "^0.19.1", + "husky": "1.3.1", + "lint-staged": "8.1.5", + "plop": "2.3.0", + "sass": "1.32.13", + "sass-loader": "10.2.0", + "script-ext-html-webpack-plugin": "2.1.3", + "script-loader": "0.7.2", + "serve-static": "^1.13.2", + "svg-sprite-loader": "4.1.3", + "svgo": "1.2.0", + "tasksfile": "^5.1.1", + "vue-template-compiler": "2.6.14" + }, + "engines": { + "node": ">=8.9", + "npm": ">= 3.0.0" + }, + "browserslist": [ + "> 1%", + "last 2 versions" + ] +} diff --git a/src/views/archivesManage/archivesList/index.vue b/src/views/archivesManage/archivesList/index.vue index e4fcbc1..36d2831 100644 --- a/src/views/archivesManage/archivesList/index.vue +++ b/src/views/archivesManage/archivesList/index.vue @@ -16,11 +16,12 @@
-
智能分类
+
智能检索
+ { item.disabled = item.dicPid === null }) + this.intellClassifyTree = this.sortData(this.intellClassifyTree) } }) }, @@ -434,9 +435,7 @@ export default { if (this.$refs.smartTree) { this.intellClassifyLoading = true setTimeout(() => { - if (this.intellClassifyTree[0].dicName === '年度') { - this.intellClassifyTree = this.intellClassifyTree.slice(1) - } + console.log('this.$refs[obj].yearGroup.length', this.$refs[obj].yearGroup.length) if (this.$refs[obj].yearGroup.length !== 0) { const newYearArr = this.$refs[obj].yearGroup.map((item, index) => { const json = {} @@ -446,14 +445,29 @@ export default { json.dicPid = 0 return json }) - this.intellClassifyTree.unshift({ id: 0, dicName: '年度', dicPid: null, dicCode: 'Search_year', disabled: true, childMenus: newYearArr }) - - console.log(this.intellClassifyTree) + const index = this.intellClassifyTree.findIndex(item => item.dicName === '年度') + if (index !== -1) { + this.intellClassifyTree.splice(index, 1) + } + this.intellClassifyTree.splice(1, 0, { id: 0, dicName: '年度', dicPid: null, dicCode: 'Search_year', disabled: true, childMenus: newYearArr }) + } else { + const index = this.intellClassifyTree.findIndex(item => item.dicName === '年度') + if (index !== -1) { + this.intellClassifyTree.splice(index, 1) + } } + console.log(this.intellClassifyTree) + this.intellClassifyLoading = false - }, 1000) + }, 2000) } }, + sortData(data) { + // 定义排序顺序 + const order = ['QZH', 'Search_year', 'Search_BGQX', 'Search_MJ', 'WZ', 'ZT'] + // 按照指定顺序排序 + return data.sort((a, b) => order.indexOf(a.dicCode) - order.indexOf(b.dicCode)) + }, unique(arr) { return Array.from(new Set(arr)) }, diff --git a/src/views/archivesManage/archivesList/mixins/archives.js b/src/views/archivesManage/archivesList/mixins/archives.js index 384c70f..d28466d 100644 --- a/src/views/archivesManage/archivesList/mixins/archives.js +++ b/src/views/archivesManage/archivesList/mixins/archives.js @@ -109,7 +109,7 @@ export const archivesCrud = { this.arrySort = [] this.tableDisplayFields = data this.getTableDisplayFieldsLoading = false - const orderSortArry = this.tableDisplayFields.filter(item => item.displayOrder).sort((a, b) => a.displayOrder - b.displayOrder) + const orderSortArry = this.tableDisplayFields.filter(item => item.queue).sort((a, b) => a.queue - b.queue) orderSortArry.forEach(item => { this.arrySort.push(item.fieldName + ',' + item.displayOrderBy) }) diff --git a/src/views/archivesManage/fileImport/dataImport/index.vue b/src/views/archivesManage/fileImport/dataImport/index.vue index 0174af8..4ed941a 100644 --- a/src/views/archivesManage/fileImport/dataImport/index.vue +++ b/src/views/archivesManage/fileImport/dataImport/index.vue @@ -1,5 +1,9 @@ - - - - - - - + + + + + + + - + - + - + - - + + - + - + - + - + - - - - - - - - + + + + + + + + - - - - - - + + + + + + - - + + - - - + + + - - - + + + - + - - - - + + + + - + - - + + { return item.id }) + // const caseIds = this.selections.map(item => { return item.id }) const index = this.selections.every((item) => item.storageType === 0) if (index) { - const params = { - caseIds: caseIds - } - initCasesByArchives(params).then(res => { - this.$refs.inDialogDom.childData = res - }) + this.$refs.inDialogDom.childData = this.selections this.$refs.inDialogDom.dialogVisible = true + // const params = { + // caseIds: caseIds + // } + // initCasesByArchives(params).then(res => { + // this.$refs.inDialogDom.childData = res + // console.log('this.$refs.inDialogDom.childData', this.$refs.inDialogDom.childData) + // if (this.$refs.inDialogDom.childData) { + // this.$refs.inDialogDom.dialogVisible = true + // } + // }) } else { this.msgVisible = true } diff --git a/src/views/archivesManage/outInStorage/outInHistory/index.vue b/src/views/archivesManage/outInStorage/outInHistory/index.vue index 5a6f0db..79c2e8b 100644 --- a/src/views/archivesManage/outInStorage/outInHistory/index.vue +++ b/src/views/archivesManage/outInStorage/outInHistory/index.vue @@ -70,6 +70,7 @@
+