From 07c1a23a89c32bbbb46468c476c322f962ae1a95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=92?= Date: Tue, 19 Aug 2025 01:28:04 +0800 Subject: [PATCH] 1 --- src/api/system/favoriteProduct.js | 30 ++ src/api/system/jdorder.js | 9 + src/components/PublishDialog.vue | 395 +++++++++++++++++++++++++++ src/views/system/jdorder/index.vue | 257 ++++------------- src/views/system/xbmessage/index.vue | 24 +- 5 files changed, 509 insertions(+), 206 deletions(-) create mode 100644 src/api/system/favoriteProduct.js create mode 100644 src/components/PublishDialog.vue diff --git a/src/api/system/favoriteProduct.js b/src/api/system/favoriteProduct.js new file mode 100644 index 0000000..44f0b07 --- /dev/null +++ b/src/api/system/favoriteProduct.js @@ -0,0 +1,30 @@ +import request from '@/utils/request' + +// 添加到常用商品 +export function addToFavorites(data) { + return request({ + url: '/jarvis/favoriteProduct/addToFavorites', + method: 'post', + data + }) +} + +// 更新发品信息(商品ID、状态等) +export function updateProductInfo(data) { + return request({ + url: '/jarvis/favoriteProduct/updateProductInfo', + method: 'put', + data + }) +} + +// 从常用商品快速发品 +export function quickPublish(id, appid) { + return request({ + url: `/jarvis/favoriteProduct/quickPublish/${id}`, + method: 'post', + data: appid + }) +} + + diff --git a/src/api/system/jdorder.js b/src/api/system/jdorder.js index be5628a..4cbd1b9 100644 --- a/src/api/system/jdorder.js +++ b/src/api/system/jdorder.js @@ -18,6 +18,15 @@ export function createProductByPromotion(data) { }) } +// 上架商品 +export function publishProduct(data) { + return request({ + url: '/erp/product/publish', + method: 'post', + data + }) +} + // 地区下拉 export function getProvinces() { return request({ diff --git a/src/components/PublishDialog.vue b/src/components/PublishDialog.vue new file mode 100644 index 0000000..6b68f15 --- /dev/null +++ b/src/components/PublishDialog.vue @@ -0,0 +1,395 @@ + + + + + + + diff --git a/src/views/system/jdorder/index.vue b/src/views/system/jdorder/index.vue index 2f312e0..7be4baa 100644 --- a/src/views/system/jdorder/index.vue +++ b/src/views/system/jdorder/index.vue @@ -98,8 +98,9 @@ -
+
发品 + 加入常用
@@ -122,133 +123,19 @@
- - - - - - - - - - - - - - - - - - - - -
-
- -
- 使用 - 复制 -
-
-
-
- 全选 - 全不选 - 反选 -
-
- - - - - - - - - - - - - - - - - -
- - - - - - - - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- {{ p.propertyName }}: - - - -
-
-
无属性或请选择类型和类目后加载
-
- - - - - - - - -
- -
+ +