From bd251a7cfe5666979c5af6b3cee41a29712a0d9b Mon Sep 17 00:00:00 2001 From: GeDashi <2531216855@qq.com> Date: Fri, 20 Dec 2024 19:08:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A45?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/goodsinformation.js | 44 +++ src/views/system/goods/index.vue | 103 ++++++- src/views/system/goodsinformation/index.vue | 319 ++++++++++++++++++++ 3 files changed, 459 insertions(+), 7 deletions(-) create mode 100644 src/api/system/goodsinformation.js create mode 100644 src/views/system/goodsinformation/index.vue diff --git a/src/api/system/goodsinformation.js b/src/api/system/goodsinformation.js new file mode 100644 index 0000000..c8a2635 --- /dev/null +++ b/src/api/system/goodsinformation.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询水果产品详情列表 +export function listGoodsinformation(query) { + return request({ + url: '/system/goodsinformation/list', + method: 'get', + params: query + }) +} + +// 查询水果产品详情详细 +export function getGoodsinformation(goodsinformationid) { + return request({ + url: '/system/goodsinformation/' + goodsinformationid, + method: 'get' + }) +} + +// 新增水果产品详情 +export function addGoodsinformation(data) { + return request({ + url: '/system/goodsinformation', + method: 'post', + data: data + }) +} + +// 修改水果产品详情 +export function updateGoodsinformation(data) { + return request({ + url: '/system/goodsinformation', + method: 'put', + data: data + }) +} + +// 删除水果产品详情 +export function delGoodsinformation(goodsinformationid) { + return request({ + url: '/system/goodsinformation/' + goodsinformationid, + method: 'delete' + }) +} diff --git a/src/views/system/goods/index.vue b/src/views/system/goods/index.vue index 0c1a9ca..aa7d10b 100644 --- a/src/views/system/goods/index.vue +++ b/src/views/system/goods/index.vue @@ -33,10 +33,18 @@ @keyup.enter="handleQuery" /> - + + + + @@ -96,12 +104,13 @@ - + +