From 620ce5147c1b98061255f73014735849e4ea2798 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98zhengbw=E2=80=99?= <‘q59323016@qq.com’> Date: Tue, 18 Feb 2025 14:04:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=90=8C=E6=AD=A5-=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E5=8D=95=E4=BD=8D=E7=AE=A1=E7=90=86=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=95=86=E5=93=81=E7=AE=A1=E7=90=86=E5=95=86=E5=93=81?= =?UTF-8?q?=E8=A7=84=E6=A0=BC=EF=BC=8C=E5=88=A0=E9=99=A4=E5=8E=9F=E5=85=88?= =?UTF-8?q?=E5=95=86=E5=93=81=E5=8D=95=E4=BD=8D=E7=9B=B8=E5=85=B3=E5=86=85?= =?UTF-8?q?=E5=AE=B9=EF=BC=9B=E4=BF=AE=E6=94=B9=E7=99=BB=E5=BD=95=E5=90=8E?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E8=B7=B3=E8=BD=AC=E9=A1=B5=EF=BC=8C=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E9=BB=98=E8=AE=A4=E7=A9=BA=E7=99=BD=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/basic/unit.js | 54 ---- src/router/index.js | 2 +- src/views/basic/unit/index.vue | 220 -------------- src/views/goods/goodsInfo/index.vue | 431 ++++++++++++++++------------ src/views/system/home/index.vue | 5 + 5 files changed, 256 insertions(+), 456 deletions(-) delete mode 100644 src/api/basic/unit.js delete mode 100644 src/views/basic/unit/index.vue create mode 100644 src/views/system/home/index.vue diff --git a/src/api/basic/unit.js b/src/api/basic/unit.js deleted file mode 100644 index 695e262..0000000 --- a/src/api/basic/unit.js +++ /dev/null @@ -1,54 +0,0 @@ -import request from '@/utils/request' - -// 创建单位 -export function createUnit(data) { - return request({ - url: '/basic/unit/create', - method: 'post', - data: data - }) -} - -// 更新单位 -export function updateUnit(data) { - return request({ - url: '/basic/unit/update', - method: 'put', - data: data - }) -} - -// 删除单位 -export function deleteUnit(id) { - return request({ - url: '/basic/unit/delete?id=' + id, - method: 'delete' - }) -} - -// 获得单位 -export function getUnit(id) { - return request({ - url: '/basic/unit/get?id=' + id, - method: 'get' - }) -} - -// 获得单位分页 -export function getUnitPage(query) { - return request({ - url: '/basic/unit/page', - method: 'get', - params: query - }) -} - -// 导出单位 Excel -export function exportUnitExcel(query) { - return request({ - url: '/basic/unit/export-excel', - method: 'get', - params: query, - responseType: 'blob' - }) -} diff --git a/src/router/index.js b/src/router/index.js index f42547e..423c983 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -70,7 +70,7 @@ export const constantRoutes = [ redirect: 'index', children: [{ path: 'index', - component: (resolve) => require(['@/views/basic/businessInfo/index'], resolve), + component: (resolve) => require(['@/views/system/home/index'], resolve), // name: '', // meta: {title: '', icon: 'dashboard', affix: true} } diff --git a/src/views/basic/unit/index.vue b/src/views/basic/unit/index.vue deleted file mode 100644 index f98a714..0000000 --- a/src/views/basic/unit/index.vue +++ /dev/null @@ -1,220 +0,0 @@ - - - diff --git a/src/views/goods/goodsInfo/index.vue b/src/views/goods/goodsInfo/index.vue index 0933934..670f5bb 100644 --- a/src/views/goods/goodsInfo/index.vue +++ b/src/views/goods/goodsInfo/index.vue @@ -6,7 +6,7 @@
商品列表
- 新增商品 + 新增商品
- + - + - + - + - + - - + - +
- +
@@ -98,65 +146,96 @@ - - + + - + - - - + + + + ref="cascader" + v-model="form.goodsTypeId" + :options="categoryList" + class="w100" + :props="{ + label: 'name', + value: 'id', + }" + @change="handleChange" + > - + - - + + - - 默认(kg) - - - kg/ - - - - - + + - + @@ -170,24 +249,29 @@ diff --git a/src/views/system/home/index.vue b/src/views/system/home/index.vue new file mode 100644 index 0000000..b4fed27 --- /dev/null +++ b/src/views/system/home/index.vue @@ -0,0 +1,5 @@ + + + + +