From 037961d286e7321a7a8ce7c271ef071e393299a9 Mon Sep 17 00:00:00 2001 From: wangfukang <15630117759@163.com> Date: Wed, 22 Jul 2026 08:30:32 +0800 Subject: [PATCH] 1 --- src/api/app.js | 2 +- src/api/fishMarket.js | 6 + src/views/app/business/bus/bus.vue | 13 +- .../expressCompany/expressCompany.vue | 324 +++++++++++++++--- .../logiticsCompany/transferStation.vue | 2 + src/views/app/shop/addType.vue | 2 +- src/views/app/shop/dictManage.vue | 16 +- src/views/app/shop/shop.vue | 13 + 8 files changed, 324 insertions(+), 54 deletions(-) diff --git a/src/api/app.js b/src/api/app.js index c877fa9..da87561 100644 --- a/src/api/app.js +++ b/src/api/app.js @@ -48,7 +48,7 @@ export const deleteCompany = (params) => { // 新增分类接口 export const addType = (params) => { - return postBodyRequest('/app/productCategory/batchSaveCategoryAndAttribute', params) + return postRequest('/app/productCategory/save', params) } //编辑分类 diff --git a/src/api/fishMarket.js b/src/api/fishMarket.js index 0fb03f3..71eaa04 100644 --- a/src/api/fishMarket.js +++ b/src/api/fishMarket.js @@ -3,17 +3,23 @@ import { getRequest, postBodyRequest } from '@/libs/axios'; const PREFIX = '/app/fishmarket/admin'; export const fishGoodsPage = (params) => postBodyRequest(`${PREFIX}/goods/page`, params); +export const fishGoodsDetail = (id) => getRequest(`${PREFIX}/goods/${id}`, {}); +export const fishGoodsComments = (id, params) => getRequest(`${PREFIX}/goods/${id}/comments/page`, params); export const fishGoodsStatus = (params) => postBodyRequest(`${PREFIX}/goods/status`, params); export const fishWantPage = (params) => postBodyRequest(`${PREFIX}/wants/page`, params); export const fishCategoryList = (params) => getRequest(`${PREFIX}/categories`, params); export const fishCategorySave = (params) => postBodyRequest(`${PREFIX}/categories`, params); export const fishCategoryDelete = (id) => postBodyRequest(`${PREFIX}/categories/delete?id=${id}`, {}); +export const fishCategoryStatus = (params) => postBodyRequest(`${PREFIX}/categories/status`, params); export const fishComplaintPage = (params) => postBodyRequest(`${PREFIX}/complaints/page`, params); export const fishComplaintHandle = (params) => postBodyRequest(`${PREFIX}/complaints/handle`, params); +export const fishCommentDelete = (id) => postBodyRequest(`${PREFIX}/comments/${id}/delete`, {}); export const fishUserLimitPage = (params) => postBodyRequest(`${PREFIX}/users/limits/page`, params); export const fishUserLimitSave = (params) => postBodyRequest(`${PREFIX}/users/limits`, params); export const fishAdminLogPage = (params) => postBodyRequest(`${PREFIX}/logs/page`, params); + +export const fishAuditLogPage = (params) => getRequest(`${PREFIX}/audit-logs/page`, params); diff --git a/src/views/app/business/bus/bus.vue b/src/views/app/business/bus/bus.vue index 17afc35..672affa 100644 --- a/src/views/app/business/bus/bus.vue +++ b/src/views/app/business/bus/bus.vue @@ -94,7 +94,7 @@ -
+ @@ -481,10 +481,19 @@ this.getDataList(); }, issueCoupons(v){ + this.resetGiveData(); this.Visiable = true this.couponsData = v this.giveData.couponId = v.id }, + resetGiveData(){ + this.giveData = { + type:'', //0全部 1精准 + userPhones:'', + couponId:'', + giveNum:'' + }; + }, showIssueDetail(v) { this.detailVisible = true; this.detailCoupon = v; @@ -556,6 +565,8 @@ this.loading = false; if (res.success) { this.$Message.success("发放成功"); + this.Visiable = false; + this.resetGiveData(); } }); }, diff --git a/src/views/app/business/expressCompany/expressCompany.vue b/src/views/app/business/expressCompany/expressCompany.vue index 60d3c3c..9d348f1 100644 --- a/src/views/app/business/expressCompany/expressCompany.vue +++ b/src/views/app/business/expressCompany/expressCompany.vue @@ -12,9 +12,9 @@ - + - - + 启用 @@ -127,20 +147,72 @@ + + +
+ + + +
暂无封面
+ + +

商品名称:{{ goodsDetail.title || "-" }}

+

卖家账号:{{ goodsDetail.sellerAccount || goodsDetail.userName || "-" }}

+

价格:{{ goodsDetail.price || "-" }}

+

分类:{{ goodsDetail.categoryName || "-" }}

+

状态:{{ goodsDetail.status == 1 ? "正常" : goodsDetail.status == 2 ? "下架" : "删除" }}

+

发布时间:{{ goodsDetail.createTime || "-" }}

+ +
+
+

商品内容:

+

{{ goodsDetail.content || "-" }}

+
+
+

评论:

+
+
+
+ {{ comment.userName || "-" }}:{{ comment.content || "-" }} + +
+
{{ comment.createTime || "" }}
+
+
+ {{ reply.userName || "-" }} 回复 {{ reply.replyToUserName }}:{{ reply.content || "-" }} + +
+
+
+ + + +
+
暂无评论
+
+
+
暂无商品详情
+