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 @@ + + + + +