From a76c5c86ac9af71da45bf78c825a2c7aa843b4c8 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 26 一月 2024 15:35:54 +0800
Subject: [PATCH] Revert "Mr.Shi"
---
platform/src/api/business/goods.js | 66 +++++++++++++++++++++++++++++++++
1 files changed, 66 insertions(+), 0 deletions(-)
diff --git a/platform/src/api/business/goods.js b/platform/src/api/business/goods.js
new file mode 100644
index 0000000..1ae02b3
--- /dev/null
+++ b/platform/src/api/business/goods.js
@@ -0,0 +1,66 @@
+import request from '../../utils/request'
+
+// 鏌ヨ
+export function fetchList (data) {
+ return request.post('/business/baseGoods/page', data, {
+ trim: true
+ })
+}
+
+// 瀵煎嚭Excel
+export function exportExcel (data) {
+ return request.post('/business/baseGoods/exportExcel', data, {
+ trim: true,
+ download: true
+ })
+}
+
+// 瀵煎嚭妯℃澘
+export function exportDoc (params) {
+ return request.get('/business/baseGoods/export', params, {
+ trim: true,
+ download: true
+ })
+}
+
+// 鍒涘缓
+export function create (data) {
+ return request.post('/business/baseGoods/create', data)
+}
+
+// 淇敼
+export function updateById (data) {
+ return request.post('/business/baseGoods/update', data)
+}
+
+// 鍒犻櫎
+export function deleteById (id) {
+ return request.get(`/business/baseGoods/delete/${id}`)
+}
+
+// 鎵归噺鍒犻櫎
+export function deleteByIdInBatch (ids) {
+ return request.get('/business/baseGoods/delete/batch', {
+ params: {
+ ids
+ }
+ })
+}
+
+// 淇敼鐘舵��
+export function updateStatus (data) {
+ return request.post('/business/baseGoods/updateStatus', data)
+}
+/*export function updateStatusById (data) {
+ return request.post('/business/baseGoods/updateStatusById', data)
+}*/
+
+// 鍒楄〃 - 鍟嗗搧閫夋嫨
+export function findListForbaseGoodsId (goodsId) {
+ return request.get(`/business/category/findListForGoodsId?goodsId=${goodsId}`)
+}
+
+// 鏍规嵁ID鏌ヨ
+export function queryById (id) {
+ return request.get(`/business/baseGoods/${id}`)
+}
\ No newline at end of file
--
Gitblit v1.9.3