diff --git a/.env.development b/.env.development index 8971a6a..143e06e 100644 --- a/.env.development +++ b/.env.development @@ -2,5 +2,5 @@ ENV = 'development' # base api -VUE_APP_BASE_API = 'http://127.0.0.1:9001' -VUE_APP_FACE_API = 'http://127.0.0.1:5000' +VUE_APP_BASE_API = 'http://192.168.8.111:9001' +VUE_APP_FACE_API = 'http://192.168.8.111:5000' diff --git a/.env.production b/.env.production index 03db484..54ce168 100644 --- a/.env.production +++ b/.env.production @@ -2,6 +2,6 @@ ENV = 'production' # base api -VUE_APP_BASE_API = 'http://127.0.0.1:9001' -VUE_APP_FACE_API ='http://127.0.0.1:5000' +VUE_APP_BASE_API = 'http://192.168.8.111:9001' +VUE_APP_FACE_API ='http://192.168.8.111:5000' diff --git a/.env.staging b/.env.staging index d83a89f..1448385 100644 --- a/.env.staging +++ b/.env.staging @@ -5,5 +5,5 @@ ENV = 'staging' # base api VUE_APP_BASE_API = 'http://111.231.67.55:9001' -VUE_APP_FACE_API='http://127.0.0.1:5000' +VUE_APP_FACE_API='http://192.168.8.111:5000' diff --git a/src/api/reagent/applymanage.js b/src/api/reagent/applymanage.js index e9b6099..1f69f1f 100644 --- a/src/api/reagent/applymanage.js +++ b/src/api/reagent/applymanage.js @@ -15,3 +15,20 @@ export function update_solve(data) { data }) } + +export function register_drug_list(data) { + return request({ + url: '/api/temporary_auth/register_drug_list', + method: 'post', + data + }) +} + +export function set_register(data) { + return request({ + url: '/api/temporary_auth/set_register', + method: 'post', + data + }) +} + diff --git a/src/api/reagent/warehousing.js b/src/api/reagent/warehousing.js index cff08c6..30dec7a 100644 --- a/src/api/reagent/warehousing.js +++ b/src/api/reagent/warehousing.js @@ -70,7 +70,7 @@ export function pring_bar_code(data) { }) } -// /api/drug_tmplate/pring_bar_code +// /api/drug_tmplate/get_drug_group_list export function get_drug_group_list(data) { return request({ url: '/api/drug_tmplate/get_drug_group_list', @@ -78,3 +78,12 @@ export function get_drug_group_list(data) { data }) } + +// /api/drug_tmplate/enter_db_client_list +export function enter_db_client_list(data) { + return request({ + url: '/api/drug_tmplate/enter_db_client_list', + method: 'post', + data + }) +} \ No newline at end of file diff --git a/src/assets/2-主界面/index.js b/src/assets/2-主界面/index.js index 292e7f1..cc7b26f 100644 --- a/src/assets/2-主界面/index.js +++ b/src/assets/2-主界面/index.js @@ -194,17 +194,17 @@ export function getALLRouter(data) { { name: 'reagent', router: rasr[0], - title: '试剂管理' + title: '高危化品' }, { name: 'standard', router: standard[0], - title: '标准品管理' + title: '危化品管理' }, { name: 'consumables', router: consumables[0], - title: '耗材管理' + title: '对照品管理' }, { name: 'instrument', diff --git a/src/assets/2-主界面/一般危化品.png b/src/assets/2-主界面/一般危化品.png new file mode 100644 index 0000000..e1d54d0 Binary files /dev/null and b/src/assets/2-主界面/一般危化品.png differ diff --git a/src/assets/2-主界面/对照品.png b/src/assets/2-主界面/对照品.png new file mode 100644 index 0000000..3f6b655 Binary files /dev/null and b/src/assets/2-主界面/对照品.png differ diff --git a/src/assets/2-主界面/易制毒易制爆.png b/src/assets/2-主界面/易制毒易制爆.png new file mode 100644 index 0000000..c591953 Binary files /dev/null and b/src/assets/2-主界面/易制毒易制爆.png differ diff --git a/src/icons/svg/创建申请.svg b/src/icons/svg/创建申请.svg new file mode 100644 index 0000000..04cc60b --- /dev/null +++ b/src/icons/svg/创建申请.svg @@ -0,0 +1,4 @@ + diff --git a/src/icons/svg/申请管理.svg b/src/icons/svg/申请管理.svg new file mode 100644 index 0000000..1d641d4 --- /dev/null +++ b/src/icons/svg/申请管理.svg @@ -0,0 +1,4 @@ + diff --git a/src/icons/svg/称重登记.svg b/src/icons/svg/称重登记.svg new file mode 100644 index 0000000..99ad2ff --- /dev/null +++ b/src/icons/svg/称重登记.svg @@ -0,0 +1,4 @@ + diff --git a/src/router/modules/consumables.js b/src/router/modules/consumables.js index ac4d434..1736290 100644 --- a/src/router/modules/consumables.js +++ b/src/router/modules/consumables.js @@ -1,5 +1,5 @@ import Layout from '@/layout' -// 耗材管理路由 com +// 对照品管理路由 com const consumablesRouter = [ // { // path: '/standard', @@ -45,7 +45,7 @@ const consumablesRouter = [ name: 'standardInfo', component: () => import('@/views/reagent/report/reagentinfo/index'), hidden: true, - meta: { title: '耗材信息详情', icon: '报表统计', classification: 'consumables', activeMenu: '/consumables/report/index' } + meta: { title: '对照品信息详情', icon: '报表统计', classification: 'consumables', activeMenu: '/consumables/report/index' } }, { path: 'warehousinginfo', @@ -66,7 +66,7 @@ const consumablesRouter = [ name: 'standardConsumInfo', component: () => import('@/views/reagent/report/reagentconsum/index'), hidden: true, - meta: { title: '耗材消耗', icon: '报表统计', classification: 'consumables', activeMenu: '/consumables/report/index' } + meta: { title: '对照品消耗', icon: '报表统计', classification: 'consumables', activeMenu: '/consumables/report/index' } }, { path: 'userconsuminfo', @@ -101,7 +101,7 @@ const consumablesRouter = [ path: 'index', name: 'standardWarehousing', component: () => import('@/views/reagent/warehousing/index'), - meta: { title: '耗材入库', icon: '试剂入库', classification: 'consumables' } + meta: { title: '对照品入库', icon: '试剂入库', classification: 'consumables' } } ] }, @@ -115,7 +115,7 @@ const consumablesRouter = [ path: 'index', name: 'standardReceiving', component: () => import('@/views/reagent/receivingandreturn/index'), - meta: { title: '耗材领用', icon: '试剂领用', classification: 'consumables' } + meta: { title: '对照品领用', icon: '试剂领用', classification: 'consumables' } } ] }, @@ -129,7 +129,7 @@ const consumablesRouter = [ path: 'index', name: 'standardSendBack', component: () => import('@/views/reagent/receivingandreturn/index'), - meta: { title: '耗材归还', icon: '试剂归还', classification: 'consumables' } + meta: { title: '对照品归还', icon: '试剂归还', classification: 'consumables' } } ] }, @@ -143,7 +143,7 @@ const consumablesRouter = [ path: 'index', name: 'standardweighing', component: () => import('@/views/reagent/weighing/index'), - meta: { title: '耗材称重', icon: '试剂称重', classification: 'consumables' } + meta: { title: '对照品称重', icon: '试剂称重', classification: 'consumables' } } ] }, @@ -157,7 +157,7 @@ const consumablesRouter = [ path: 'index', name: 'standardInventory', component: () => import('@/views/reagent/inventory/index'), - meta: { title: '耗材盘点', icon: '库存盘点', classification: 'consumables' } + meta: { title: '对照品盘点', icon: '库存盘点', classification: 'consumables' } } ] }, @@ -191,7 +191,7 @@ const consumablesRouter = [ path: 'index', name: 'standardManagement', component: () => import('@/views/reagent/management/data/index'), - meta: { title: '耗材管理', icon: '试剂管理', classification: 'consumables' } + meta: { title: '对照品管理', icon: '试剂管理', classification: 'consumables' } } ] }, @@ -233,7 +233,7 @@ const consumablesRouter = [ path: 'index', name: 'standardForm', component: () => import('@/views/reagent/customform/index'), - meta: { title: '耗材表单自定义', icon: '表单', classification: 'consumables' } + meta: { title: '对照品表单自定义', icon: '表单', classification: 'consumables' } } ] }, diff --git a/src/router/modules/reagent.js b/src/router/modules/reagent.js index 205056c..9743326 100644 --- a/src/router/modules/reagent.js +++ b/src/router/modules/reagent.js @@ -1,5 +1,5 @@ import Layout from '@/layout' -// 试剂管理路由 +// 高危化品管理路由 const reagentRouter = [ { path: '/reagent/mainoverview', @@ -95,7 +95,7 @@ const reagentRouter = [ path: 'index', name: 'Warehousing', component: () => import('@/views/reagent/warehousing/index'), - meta: { title: '试剂入库', icon: '试剂入库', classification: 'reagent' } + meta: { title: '高危化品入库', icon: '试剂入库', classification: 'reagent' } } ] }, @@ -103,13 +103,13 @@ const reagentRouter = [ path: '/reagent/receiving', component: Layout, redirect: '/reagent/receiving/index', - meta: { classification: 'reagent', module_code: 'DrugUseView' }, + meta: { classification: 'reagent', module_code: 'YRYBDangerousUseView' }, children: [ { path: 'index', name: 'Receiving', component: () => import('@/views/reagent/receivingandreturn/index'), - meta: { title: '试剂领用', icon: '试剂领用', classification: 'reagent' } + meta: { title: '高危化品领用', icon: '试剂领用', classification: 'reagent' } } ] }, @@ -117,13 +117,13 @@ const reagentRouter = [ path: '/reagent/sendback', component: Layout, redirect: '/reagent/sendback/index', - meta: { classification: 'reagent', module_code: 'DrugReturnView' }, + meta: { classification: 'reagent', module_code: 'YRYBDangerousReturnView' }, children: [ { path: 'index', name: 'SendBack', component: () => import('@/views/reagent/receivingandreturn/index'), - meta: { title: '试剂归还', icon: '试剂归还', classification: 'reagent' } + meta: { title: '高危化品归还', icon: '试剂归还', classification: 'reagent' } } ] }, @@ -137,7 +137,7 @@ const reagentRouter = [ path: 'index', name: 'createapply', component: () => import('@/views/reagent/createapply/index'), - meta: { title: '创建申请', icon: '创建申请', classification: 'reagent' } + meta: { title: '高危化品创建申请', icon: '创建申请', classification: 'reagent' } } ] }, @@ -151,115 +151,129 @@ const reagentRouter = [ path: 'index', name: 'applymanagement', component: () => import('@/views/reagent/applymanagement/index'), - meta: { title: '申请管理', icon: '申请管理', classification: 'reagent' } + meta: { title: '高危化品申请管理', icon: '申请管理', classification: 'reagent' } } ] }, { - path: '/reagent/weighing', + path: '/reagent/weightregistration', component: Layout, - redirect: '/reagent/weighing/index', - meta: { classification: 'reagent', module_code: 'DrugWeigh' }, - children: [ - { - path: 'index', - name: 'weighing', - component: () => import('@/views/reagent/weighing/index'), - meta: { title: '试剂称重', icon: '试剂称重', classification: 'reagent' } - } - ] - }, - { - path: '/reagent/inventory', - component: Layout, - redirect: '/reagent/inventory/index', - meta: { classification: 'reagent', module_code: 'StockTakingIndex' }, + redirect: '/reagent/weightregistration/index', + meta: { classification: 'reagent', module_code: 'CreateApplyView' }, children: [ { path: 'index', - name: 'Inventory', - component: () => import('@/views/reagent/inventory/index'), - meta: { title: '试剂盘点', icon: '库存盘点', classification: 'reagent' } - } - ] - }, - { - path: '/reagent/database', - component: Layout, - redirect: '/reagent/database/msds', - meta: { title: '化学品数据库', icon: '化学品数据库', classification: 'reagent', module_code: 'ChemicalDB' }, - children: [ - { - path: 'msds', - name: 'MSDS', - component: () => import('@/views/reagent/database/index'), - meta: { title: 'MSDS数据库', classification: 'reagent' } - }, - { - path: 'dangerous', - name: 'Dangerous', - component: () => import('@/views/reagent/database/index'), - meta: { title: '危化品数据库', classification: 'reagent' } + name: 'weightregistration', + component: () => import('@/views/reagent/weightregistration/index'), + meta: { title: '高危化品称重登记', icon: '称重登记', classification: 'reagent' } } ] }, + // { + // path: '/reagent/weighing', + // component: Layout, + // redirect: '/reagent/weighing/index', + // meta: { classification: 'reagent', module_code: 'YRYBDangerousWeigh' }, + // children: [ + // { + // path: 'index', + // name: 'weighing', + // component: () => import('@/views/reagent/weighing/index'), + // meta: { title: '高危化品称重', icon: '试剂称重', classification: 'reagent' } + // } + // ] + // }, + // { + // path: '/reagent/inventory', + // component: Layout, + // redirect: '/reagent/inventory/index', + // meta: { classification: 'reagent', module_code: 'StockTakingIndex' }, + // children: [ + // { + // path: 'index', + // name: 'Inventory', + // component: () => import('@/views/reagent/inventory/index'), + // meta: { title: '高危化品盘点', icon: '库存盘点', classification: 'reagent' } + // } + // ] + // }, + // { + // path: '/reagent/database', + // component: Layout, + // redirect: '/reagent/database/msds', + // meta: { title: '化学品数据库', icon: '化学品数据库', classification: 'reagent', module_code: 'ChemicalDB' }, + // children: [ + // { + // path: 'msds', + // name: 'MSDS', + // component: () => import('@/views/reagent/database/index'), + // meta: { title: 'MSDS数据库', classification: 'reagent' } + // }, + // { + // path: 'dangerous', + // name: 'Dangerous', + // component: () => import('@/views/reagent/database/index'), + // meta: { title: '危化品数据库', classification: 'reagent' } + // } + // ] + // }, { path: '/reagent/management', component: Layout, redirect: '/reagent/management/index', - meta: { title: '试剂管理', icon: '试剂管理', classification: 'reagent', module_code: 'DrugIndex' }, + meta: { title: '高危化品管理', icon: '试剂管理', classification: 'reagent', module_code: 'YRYBDangerousIndex' }, children: [ { path: 'index', name: 'Management', component: () => import('@/views/reagent/management/data/index'), - meta: { title: '试剂管理', icon: '试剂管理', classification: 'reagent' } - } - ] - }, - { - path: '/reagent/client', - component: Layout, - redirect: '/reagent/client/index', - meta: { classification: 'reagent', module_code: 'CabinetIndex' }, - children: [ - { - path: 'index', - name: 'Client', - component: () => import('@/views/reagent/client/index'), - meta: { title: '柜体管理', icon: '柜体管理', classification: 'reagent' } - } - ] - }, - { - path: '/reagent/envrecord', - component: Layout, - redirect: '/reagent/envrecord/index', - meta: { classification: 'reagent', module_code: 'HumitureIndex' }, - children: [ - { - path: 'index', - name: 'EnvRecord', - component: () => import('@/views/reagent/envrecord/index'), - meta: { title: '环境记录', icon: '雪花', classification: 'reagent' } - } - ] - }, - { - path: '/reagent/form', - component: Layout, - redirect: '/reagent/form/index', - meta: { classification: 'reagent', module_code: 'DrugCustomForm' }, - children: [ - { - path: 'index', - name: 'Form', - component: () => import('@/views/reagent/customform/index'), - meta: { title: '试剂表单自定义', icon: '表单', classification: 'reagent' } + meta: { title: '高危化品管理', icon: '试剂管理', classification: 'reagent' } } ] }, // { + // path: '/reagent/client', + // component: Layout, + // redirect: '/reagent/client/index', + // meta: { classification: 'reagent', module_code: 'CabinetIndex' }, + // children: [ + // { + // path: 'index', + // name: 'Client', + // component: () => import('@/views/reagent/client/index'), + // meta: { title: '柜体管理', icon: '柜体管理', classification: 'reagent' } + // } + // ] + // }, + // { + // path: '/reagent/envrecord', + // component: Layout, + // redirect: '/reagent/envrecord/index', + // meta: { classification: 'reagent', module_code: 'HumitureIndex' }, + // children: [ + // { + // path: 'index', + // name: 'EnvRecord', + // component: () => import('@/views/reagent/envrecord/index'), + // meta: { title: '环境记录', icon: '雪花', classification: 'reagent' } + // } + // ] + // }, + // { + // path: '/reagent/form', + // component: Layout, + // redirect: '/reagent/form/index', + // meta: { classification: 'reagent', module_code: 'YRYBDangerousCustomForm' }, + // children: [ + // { + // path: 'index', + // name: 'Form', + // component: () => import('@/views/reagent/customform/index'), + // meta: { title: '试剂表单自定义', icon: '表单', classification: 'reagent' } + // } + // ] + // }, + // { // path: '/reagent/buy', // component: Layout, // meta: { classification: 'reagent' }, diff --git a/src/router/modules/standard.js b/src/router/modules/standard.js index 8f3bd6d..7932382 100644 --- a/src/router/modules/standard.js +++ b/src/router/modules/standard.js @@ -1,5 +1,5 @@ import Layout from '@/layout' -// 标准品管理路由 +// 危化品管理路由 const standardRouter = [ { path: '/standard/mainoverview', @@ -39,7 +39,7 @@ const standardRouter = [ name: 'standardInfo', component: () => import('@/views/reagent/report/reagentinfo/index'), hidden: true, - meta: { title: '标准品信息详情', icon: '报表统计', classification: 'standard', activeMenu: '/standard/report/index' } + meta: { title: '危化品信息详情', icon: '报表统计', classification: 'standard', activeMenu: '/standard/report/index' } }, { path: 'warehousinginfo', @@ -60,7 +60,7 @@ const standardRouter = [ name: 'standardConsumInfo', component: () => import('@/views/reagent/report/reagentconsum/index'), hidden: true, - meta: { title: '标准品消耗', icon: '报表统计', classification: 'standard', activeMenu: '/standard/report/index' } + meta: { title: '危化品消耗', icon: '报表统计', classification: 'standard', activeMenu: '/standard/report/index' } }, { path: 'userconsuminfo', @@ -95,7 +95,7 @@ const standardRouter = [ path: 'index', name: 'standardWarehousing', component: () => import('@/views/reagent/warehousing/index'), - meta: { title: '标准品入库', icon: '试剂入库', classification: 'standard' } + meta: { title: '危化品入库', icon: '试剂入库', classification: 'standard' } } ] }, @@ -109,7 +109,7 @@ const standardRouter = [ path: 'index', name: 'standardReceiving', component: () => import('@/views/reagent/receivingandreturn/index'), - meta: { title: '标准品领用', icon: '试剂领用', classification: 'standard' } + meta: { title: '危化品领用', icon: '试剂领用', classification: 'standard' } } ] }, @@ -123,7 +123,7 @@ const standardRouter = [ path: 'index', name: 'standardSendBack', component: () => import('@/views/reagent/receivingandreturn/index'), - meta: { title: '标准品归还', icon: '试剂归还', classification: 'standard' } + meta: { title: '危化品归还', icon: '试剂归还', classification: 'standard' } } ] }, @@ -137,7 +137,7 @@ const standardRouter = [ path: 'index', name: 'standardweighing', component: () => import('@/views/reagent/weighing/index'), - meta: { title: '标准品称重', icon: '试剂称重', classification: 'standard' } + meta: { title: '危化品称重', icon: '试剂称重', classification: 'standard' } } ] }, @@ -151,7 +151,7 @@ const standardRouter = [ path: 'index', name: 'standardInventory', component: () => import('@/views/reagent/inventory/index'), - meta: { title: '标准品盘点', icon: '库存盘点', classification: 'standard' } + meta: { title: '危化品盘点', icon: '库存盘点', classification: 'standard' } } ] }, @@ -179,13 +179,13 @@ const standardRouter = [ path: '/standard/management', component: Layout, redirect: '/standard/management/index', - meta: { title: '标准品管理', icon: '试剂管理', classification: 'standard', module_code: 'StandardIndex' }, + meta: { title: '危化品管理', icon: '试剂管理', classification: 'standard', module_code: 'StandardIndex' }, children: [ { path: 'index', name: 'standardManagement', component: () => import('@/views/reagent/management/data/index'), - meta: { title: '标准品管理', icon: '试剂管理', classification: 'standard' } + meta: { title: '危化品管理', icon: '试剂管理', classification: 'standard' } } ] }, @@ -227,7 +227,7 @@ const standardRouter = [ path: 'index', name: 'standardForm', component: () => import('@/views/reagent/customform/index'), - meta: { title: '标准品表单自定义', icon: '表单', classification: 'standard' } + meta: { title: '危化品表单自定义', icon: '表单', classification: 'standard' } } ] }, diff --git a/src/utils/index.js b/src/utils/index.js index 0926478..7270a56 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -200,17 +200,17 @@ export function getALLRouter(data) { { name: 'reagent', router: rasr[0], - title: '试剂管理' + title: '高危化品管理' }, { name: 'standard', router: bzp[0], - title: '标准品管理' + title: '危化品管理' }, { name: 'consumables', router: hc[0], - title: '耗材管理' + title: '对照品管理' }, { name: 'instrument', diff --git a/src/utils/mapTitle.js b/src/utils/mapTitle.js index beb7aa7..9c0d7c1 100644 --- a/src/utils/mapTitle.js +++ b/src/utils/mapTitle.js @@ -1,8 +1,8 @@ const mapTitle = { - 'reagent': '试剂', + 'reagent': '高危化品', 'user': 'user', - 'standard': '标准品', - 'consumables': '耗材', + 'standard': '危化品', + 'consumables': '对照品', 'instrument': '仪器' } diff --git a/src/views/home/index.vue b/src/views/home/index.vue index a98a959..4d09fa1 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -7,9 +7,9 @@