From f78d7d9fe065100f2abf89f23554bb7af12873a2 Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Fri, 10 May 2024 16:27:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- .env.production | 2 +- build/打包须知.md | 3 + src/views/goods/goodsclass/edit.vue | 243 +++++++++------- src/views/goods/goodsclass/index.vue | 272 ++++++++++-------- src/views/opurchase/opurchaseclass/detail.vue | 69 +++++ .../opurchase/opurchaseclass/details.vue | 81 ------ src/views/opurchase/opurchaseclass/index.vue | 33 ++- 8 files changed, 406 insertions(+), 301 deletions(-) create mode 100644 build/打包须知.md create mode 100644 src/views/opurchase/opurchaseclass/detail.vue delete mode 100644 src/views/opurchase/opurchaseclass/details.vue diff --git a/.env.development b/.env.development index 236bd45..8bcc5d2 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ NODE_ENV = 'development' VITE_NOW_TYPE = 'dist' # Base API -# VITE_APP_BASE_URL='http://192.168.1.22:8546' -VITE_APP_BASE_URL='https://erp.lihaink.cn' \ No newline at end of file +VITE_APP_BASE_URL='http://192.168.1.22:8546' +# VITE_APP_BASE_URL='https://erp.lihaink.cn' \ No newline at end of file diff --git a/.env.production b/.env.production index fb56031..ff44957 100644 --- a/.env.production +++ b/.env.production @@ -1,5 +1,5 @@ NODE_ENV = 'production' -VITE_NOW_TYPE = 'build' +VITE_NOW_TYPE = 'build/admin' # Base API VITE_APP_BASE_URL='https://erp.lihaink.cn' # VITE_APP_BASE_URL='' \ No newline at end of file diff --git a/build/打包须知.md b/build/打包须知.md new file mode 100644 index 0000000..e94d87e --- /dev/null +++ b/build/打包须知.md @@ -0,0 +1,3 @@ +## 注意注意! + +# 需要将打包后的文件移入admin/目录下, 否则无法正常访问 \ No newline at end of file diff --git a/src/views/goods/goodsclass/edit.vue b/src/views/goods/goodsclass/edit.vue index 2c32b6b..48ba9a7 100644 --- a/src/views/goods/goodsclass/edit.vue +++ b/src/views/goods/goodsclass/edit.vue @@ -1,130 +1,179 @@ diff --git a/src/views/goods/goodsclass/index.vue b/src/views/goods/goodsclass/index.vue index c4ff1d4..57c872c 100644 --- a/src/views/goods/goodsclass/index.vue +++ b/src/views/goods/goodsclass/index.vue @@ -1,147 +1,191 @@ - diff --git a/src/views/opurchase/opurchaseclass/detail.vue b/src/views/opurchase/opurchaseclass/detail.vue new file mode 100644 index 0000000..67e961f --- /dev/null +++ b/src/views/opurchase/opurchaseclass/detail.vue @@ -0,0 +1,69 @@ + + + diff --git a/src/views/opurchase/opurchaseclass/details.vue b/src/views/opurchase/opurchaseclass/details.vue deleted file mode 100644 index 43dcda5..0000000 --- a/src/views/opurchase/opurchaseclass/details.vue +++ /dev/null @@ -1,81 +0,0 @@ - - - diff --git a/src/views/opurchase/opurchaseclass/index.vue b/src/views/opurchase/opurchaseclass/index.vue index 7f903ae..45d9e47 100644 --- a/src/views/opurchase/opurchaseclass/index.vue +++ b/src/views/opurchase/opurchaseclass/index.vue @@ -22,7 +22,7 @@ - +
- + - + @@ -50,7 +50,14 @@ @@ -85,6 +92,9 @@ import { apiOpurchaseclassLists, apiOpurchaseclassDelete } from '@/api/opurchase import { timeFormat } from '@/utils/util' import feedback from '@/utils/feedback' import EditPopup from './edit.vue' +import { useRouter } from 'vue-router' + +const router = useRouter() const editRef = shallowRef>() // 是否显示编辑框 @@ -122,6 +132,17 @@ const handleAdd = async () => { editRef.value?.open('add') } +// 详情 +const handleDetail = async (data: any) => { + console.log(data); + router.push({ + path: 'detail', + query:{ + id: data.id + } + }) +} + // 编辑 const handleEdit = async (data: any) => { showEdit.value = true