From 1379d197799f16637e9628a4c85f52e96d241e00 Mon Sep 17 00:00:00 2001 From: duan Date: Tue, 2 Aug 2022 13:41:02 +0800 Subject: [PATCH] =?UTF-8?q?feat(src/views/reagent/receivingandreturn):=20?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E8=AF=95=E5=89=82=E9=A2=86=E7=94=A8=E5=92=8C?= =?UTF-8?q?=E5=BD=92=E8=BF=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/receivingReturn.js | 26 +++ src/router/index.js | 6 +- src/views/reagent/receiving/index.vue | 118 ----------- .../reagent/receivingandreturn/index.vue | 184 ++++++++++++++++++ 4 files changed, 213 insertions(+), 121 deletions(-) create mode 100644 src/api/receivingReturn.js delete mode 100644 src/views/reagent/receiving/index.vue create mode 100644 src/views/reagent/receivingandreturn/index.vue diff --git a/src/api/receivingReturn.js b/src/api/receivingReturn.js new file mode 100644 index 0000000..fae63c0 --- /dev/null +++ b/src/api/receivingReturn.js @@ -0,0 +1,26 @@ +import request from '@/utils/request' + +export function use(data) { + return request({ + url: '/api/drug/use', + method: 'post', + data + }) +} + +export function drug_return(data) { + return request({ + url: '/api/drug/drug_return', + method: 'post', + data + }) +} + +export function use_or_return_list(data) { + return request({ + url: '/api/drug/use_or_return_list', + method: 'post', + data + }) +} + diff --git a/src/router/index.js b/src/router/index.js index dadb4d2..28045cc 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -156,8 +156,8 @@ export const constantRoutes = [ children: [ { path: 'index', - name: 'receiving', - component: () => import('@/views/reagent/receiving/index'), + name: 'Receiving', + component: () => import('@/views/reagent/receivingandreturn/index'), meta: { title: '试剂领用', icon: '试剂领用' } } ] @@ -169,7 +169,7 @@ export const constantRoutes = [ { path: 'index', name: 'SendBack', - component: () => import('@/views/reagent/sendback/index'), + component: () => import('@/views/reagent/receivingandreturn/index'), meta: { title: '试剂归还', icon: '试剂归还' } } ] diff --git a/src/views/reagent/receiving/index.vue b/src/views/reagent/receiving/index.vue deleted file mode 100644 index a583dd7..0000000 --- a/src/views/reagent/receiving/index.vue +++ /dev/null @@ -1,118 +0,0 @@ - - - - - diff --git a/src/views/reagent/receivingandreturn/index.vue b/src/views/reagent/receivingandreturn/index.vue new file mode 100644 index 0000000..c4f644e --- /dev/null +++ b/src/views/reagent/receivingandreturn/index.vue @@ -0,0 +1,184 @@ + + + + +