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 @@
-
-
-
+
+
+
diff --git a/src/views/reagent/applymanagement/index.vue b/src/views/reagent/applymanagement/index.vue index b9dba16..f54e90b 100644 --- a/src/views/reagent/applymanagement/index.vue +++ b/src/views/reagent/applymanagement/index.vue @@ -2,19 +2,15 @@
申请管理
- + + --> + 详情查看
@@ -31,8 +27,7 @@ - - + @@ -42,9 +37,17 @@ - - - + + + + + +
@@ -107,10 +110,7 @@ - - - - +
@@ -128,7 +128,8 @@ import { } from '@/api/reagent/drugStock' import { - get_apply_list + get_apply_list, + update_solve } from '@/api/reagent/applymanage' import stringify from '@/utils/stringify' export default { @@ -176,6 +177,23 @@ export default { this.total = rsp.data.total_count }) }, + handleClick(row){ + var that =this + const data={ + id:row.id + } + update_solve(stringify(data)).then(rsp => { + console.log(rsp) + if (rsp.status === 0) { + this.$message.success("审批成功!") + this.handleRefresh() + // this.get_stock_list() + } else { + this.$message.error(rsp.msg) + } + }) + + }, pageChange(page) { this.page = page this.get_stock_list() @@ -184,7 +202,12 @@ export default { this.handleSelectionSelection = val }, // handleHistory() { - // this.dialogHistoryVisible = true + // console.log(this.handleSelectionSelection,'1111') + // if(this.handleSelectionSelection.length ===1){ + // this.dialogHistoryVisible = true + // }else{ + // alert('请勾选单条申请!') + // } // }, handleRefresh() { this.get_apply() @@ -232,16 +255,8 @@ export default { handleCheck() { if (this.handleSelectionSelection.length === 1) { this.dialogHistoryVisible = true - const data = { - id:this.handleSelectionSelection[0].id - } - get_stock_info(stringify(data)).then(rsp => { - if (rsp.status === 0) { - this.historyData = rsp.data - } else { - this.$message.error(rsp.msg) - } - }) + this.historyData = JSON.parse(this.handleSelectionSelection[0].use_content) + console.log(this.handleSelectionSelection[0].use_content,'111') } else { this.$message.warning("选择一条记录操作!") } diff --git a/src/views/reagent/createapply/index copy.vue b/src/views/reagent/createapply/index copy.vue new file mode 100644 index 0000000..b9209f6 --- /dev/null +++ b/src/views/reagent/createapply/index copy.vue @@ -0,0 +1,288 @@ + + + + + + + + + diff --git a/src/views/reagent/createapply/index.vue b/src/views/reagent/createapply/index.vue index 6d5d029..275ee52 100644 --- a/src/views/reagent/createapply/index.vue +++ b/src/views/reagent/createapply/index.vue @@ -2,40 +2,65 @@
创建申请
- - - 申请 - - - - - - - - +
+ + + + + + + + +
+ + 搜索 +
- +
- + + + + + + + + + + + + + + + + + + +
取消 提交申请 @@ -49,32 +74,31 @@
- - - + - - - - - - + + + + + + + +
@@ -85,22 +109,25 @@ + + diff --git a/src/views/reagent/warehousing/index.vue b/src/views/reagent/warehousing/index.vue index 4dc73a6..32148a7 100644 --- a/src/views/reagent/warehousing/index.vue +++ b/src/views/reagent/warehousing/index.vue @@ -293,6 +293,25 @@ 开始打印
+ + +
+ + {{item.client_name}} + + +
+ + + +
+ +
+ + 取 消 + 确 定 + +
@@ -307,7 +326,8 @@ import { add_tmp, del_tmp, u_file_list, - put_in_tmp, pring_bar_code + put_in_tmp, pring_bar_code, + enter_db_client_list } from '@/api/reagent/warehousing' import stringify from '@/utils/stringify' import { throttle } from '@/utils' @@ -318,6 +338,10 @@ export default { data() { return { // 打印模板 + chosedata:[], + radio1:'', + radio2:'', + detailVisible:false, dialogVisible: false, formData: { start_code: undefined, @@ -390,6 +414,40 @@ export default { this.getTmpList() }, methods: { + putindata(){ + if(this.radio1 !='' && this.radio2 !=''){ + const data = JSON.parse(JSON.stringify(this.currentRow)) + data.flow_position_code =this.radio2 + data.client_id=this.radio1 + const id = data.index + delete data.status + delete data.index + bind_tmp_enter_warehouse(stringify({ + 'tmplate_content': JSON.stringify(data), + 'bar_code': this.barCode, + // 'client_id': this.client_id_input, + })).then(res => { + if (res.status === 0) { + this.$set(this.bindToDBData, id, { ...this.bindToDBData[id], status: true }) + this.$message.success('入库成功!') + this.detailVisible=false + // 判断是否是最后一行,不是最后一行自动选择下一行 + if (id < this.bindToDBData.length - 1) { + // 将下一行自动选中 + this.$refs.singleTable.setCurrentRow(this.bindToDBData[id + 1]) + } + } else { + this.$message.error('入库失败,请重试!') + } + }) + }else{ + this.$message.warning('请选择位置') + } + }, + changeHandler(value){ + var that =this + that.radio2='' + }, // 执行打印条码 doPrintCode() { this.$refs['elForm'].validate(valid => { @@ -431,33 +489,24 @@ export default { }, // getCode getCode(code) { + var that =this this.barCode = code if (this.barCode) { if (!this.client_id_input) { this.$message.warning('请选择存储柜体!') return } - const data = JSON.parse(JSON.stringify(this.currentRow)) - const id = data.index - delete data.status - delete data.index - bind_tmp_enter_warehouse(stringify({ - 'tmplate_content': JSON.stringify(data), - 'bar_code': this.barCode, - 'client_id': this.client_id_input - })).then(res => { - if (res.status === 0) { - this.$set(this.bindToDBData, id, { ...this.bindToDBData[id], status: true }) - this.$message.success('入库成功!') - // 判断是否是最后一行,不是最后一行自动选择下一行 - if (id < this.bindToDBData.length - 1) { - // 将下一行自动选中 - this.$refs.singleTable.setCurrentRow(this.bindToDBData[id + 1]) - } - } else { - this.$message.error('入库失败,请重试!') - } + const row = JSON.parse(JSON.stringify(this.currentRow)) + const data = { + drug_name: row.name + } + enter_db_client_list(stringify(data)).then(res => { + console.log(res.data) + that.chosedata=res.data + that.radio1=res.data[0].client_id + that.radio2=res.data[0].client_cell[0] }) + this.detailVisible =true } }, // 选择模板 diff --git a/src/views/reagent/weightregistration/index.vue b/src/views/reagent/weightregistration/index.vue new file mode 100644 index 0000000..260f522 --- /dev/null +++ b/src/views/reagent/weightregistration/index.vue @@ -0,0 +1,383 @@ + + + + + + diff --git a/src/views/shortcut/index.vue b/src/views/shortcut/index.vue index 836e42d..ebad1f7 100644 --- a/src/views/shortcut/index.vue +++ b/src/views/shortcut/index.vue @@ -80,7 +80,7 @@ export default { }, { id: 1, - title: '标准品管理', + title: '危化品管理', items: [ { name: '试剂入库', id: 0 }, { name: '试剂领用', id: 1 }, diff --git a/src/views/user/index.vue b/src/views/user/index.vue index 4596386..913213b 100644 --- a/src/views/user/index.vue +++ b/src/views/user/index.vue @@ -148,7 +148,7 @@ v-loading="tabsLoading" element-loading-text="拼命加载中" > - + - - + + - - + + - + - +