From 3b4d1df5d57925f168da819bcdd117bf78593c5b Mon Sep 17 00:00:00 2001 From: duan Date: Fri, 12 Aug 2022 17:29:50 +0800 Subject: [PATCH] =?UTF-8?q?feat(src/views/reagent/customform):=20=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E8=AF=95=E5=89=82=E8=A1=A8=E5=8D=95=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/reagent/customform.js | 25 ++ src/icons/svg/表单.svg | 2 + src/router/modules/reagent.js | 13 ++ src/views/reagent/customform/index.vue | 304 +++++++++++++++++++++++++ 4 files changed, 344 insertions(+) create mode 100644 src/api/reagent/customform.js create mode 100644 src/icons/svg/表单.svg create mode 100644 src/views/reagent/customform/index.vue diff --git a/src/api/reagent/customform.js b/src/api/reagent/customform.js new file mode 100644 index 0000000..81f5e0f --- /dev/null +++ b/src/api/reagent/customform.js @@ -0,0 +1,25 @@ +import request from '@/utils/request' + +export function get_list(data) { + return request({ + url: '/api/drug_form/getlist', + method: 'post', + data + }) +} + +export function add_update(data) { + return request({ + url: '/api/drug_form/add_update', + method: 'post', + data + }) +} + +export function del(data) { + return request({ + url: '/api/drug_form/del', + method: 'post', + data + }) +} diff --git a/src/icons/svg/表单.svg b/src/icons/svg/表单.svg new file mode 100644 index 0000000..0da96c3 --- /dev/null +++ b/src/icons/svg/表单.svg @@ -0,0 +1,2 @@ + \ No newline at end of file diff --git a/src/router/modules/reagent.js b/src/router/modules/reagent.js index 94135ac..ecb73c1 100644 --- a/src/router/modules/reagent.js +++ b/src/router/modules/reagent.js @@ -213,6 +213,19 @@ const reagentRouter = [ } ] }, + { + path: '/reagent/form', + component: Layout, + meta: { classification: 'reagent' }, + children: [ + { + path: 'index', + name: 'Form', + component: () => import('@/views/reagent/customform/index'), + meta: { title: '试剂表单自定义', icon: '表单', classification: 'reagent' } + } + ] + }, { path: '/reagent/buy', component: Layout, diff --git a/src/views/reagent/customform/index.vue b/src/views/reagent/customform/index.vue new file mode 100644 index 0000000..c6f1343 --- /dev/null +++ b/src/views/reagent/customform/index.vue @@ -0,0 +1,304 @@ + + + + +