diff --git a/src/api/account/shopMsgPush.ts b/src/api/account/shopMsgPush.ts new file mode 100644 index 0000000..de815ab --- /dev/null +++ b/src/api/account/shopMsgPush.ts @@ -0,0 +1,47 @@ +import request from "@/utils/request"; +import { Account_BaseUrl } from "@/api/config"; +const baseURL = Account_BaseUrl + "/admin/shopMsgPush"; +const Api = { + // 订阅二维码 + code(params: any) { + return request({ + url: `${baseURL}/code`, + method: "get", + params: params, + }); + }, + // 店铺推送状态获取 + shopState(params: any) { + return request({ + url: `${baseURL}/shopState`, + method: "get", + params: params, + }); + }, + //店铺推送状态修改 + shopStateUpdate(data: any) { + return request({ + url: `${baseURL}/shopState`, + method: "put", + data + }); + }, + //订阅用户列表 + getUserList(params: any) { + return request({ + url: `${baseURL}`, + method: "get", + params: params, + }); + }, + //订阅解绑 + shopStateDel(params: any) { + return request({ + url: `${baseURL}`, + method: "delete", + params + }); + }, +}; + +export default Api; diff --git a/src/api/account/shopShare.ts b/src/api/account/shopShare.ts new file mode 100644 index 0000000..1753651 --- /dev/null +++ b/src/api/account/shopShare.ts @@ -0,0 +1,30 @@ +import request from "@/utils/request"; +import { Account_BaseUrl } from "@/api/config"; +const baseURL = Account_BaseUrl + "/admin/shopShare"; +const Api = { + // 获取分享奖励配置 + get(params: any) { + return request({ + url: `${baseURL}`, + method: "get", + params: params, + }); + }, + update(data: any) { + return request({ + url: `${baseURL}`, + method: "put", + data + }); + }, + // 分享奖励记录 + getRecord(params: any) { + return request({ + url: `${baseURL}/record`, + method: "get", + params: params, + }); + }, +}; + +export default Api; diff --git a/src/api/order/credit-order.ts b/src/api/order/credit-order.ts new file mode 100644 index 0000000..1fbe0ac --- /dev/null +++ b/src/api/order/credit-order.ts @@ -0,0 +1,32 @@ +import request from "@/utils/request"; +import { Order_BaseUrl } from "@/api/config"; +const baseURL = Order_BaseUrl + "/admin/order/credit/buyerOrder"; +// 挂账账单 +const Api = { + page(params: any) { + return request({ + url: `${baseURL}/page`, + method: "get", + params + }); + }, + // 付款 + pay(data: any) { + return request({ + url: `${baseURL}/pay`, + method: "post", + data + }); + }, + // 统计 + summary(params: any) { + return request({ + url: `${baseURL}/summary`, + method: "get", + params + }); + }, +}; + +export default Api; + diff --git a/src/api/order/credit-pay-recoders.ts b/src/api/order/credit-pay-recoders.ts new file mode 100644 index 0000000..870692e --- /dev/null +++ b/src/api/order/credit-pay-recoders.ts @@ -0,0 +1,16 @@ +import request from "@/utils/request"; +import { Order_BaseUrl } from "@/api/config"; +const baseURL = Order_BaseUrl + "/admin/order/credit/paymentRecord"; +// 挂账账单 +const Api = { + page(params: any) { + return request({ + url: `${baseURL}/page`, + method: "get", + params + }); + }, +}; + +export default Api; + diff --git a/src/api/product/cons-group.ts b/src/api/product/cons-group.ts index 808f5f0..44c1bb2 100644 --- a/src/api/product/cons-group.ts +++ b/src/api/product/cons-group.ts @@ -1,6 +1,6 @@ import request from "@/utils/request"; import { Product_BaseUrl } from "@/api/config"; -const baseURL = Product_BaseUrl + "/admin/product/cons-group"; +const baseURL = Product_BaseUrl + "/admin/product/consGroup"; const Api = { /** 分页*/ diff --git a/src/api/product/stock.ts b/src/api/product/stock.ts index 0836af5..65cb66e 100644 --- a/src/api/product/stock.ts +++ b/src/api/product/stock.ts @@ -22,7 +22,7 @@ const Api = { // 库存盘点记录 checkRecord(params: any) { return request({ - url: `${baseURL}/check-record`, + url: `${baseURL}/checkRecord`, method: "get", params }); diff --git a/src/api/system/log.ts b/src/api/system/log.ts index 32dbc88..b95e2cb 100644 --- a/src/api/system/log.ts +++ b/src/api/system/log.ts @@ -1,121 +1,27 @@ import request from "@/utils/request"; - -const LOG_BASE_URL = "/api/v1/logs"; - -const LogAPI = { - /** - * 获取日志分页列表 - * - * @param queryParams 查询参数 - */ - getPage(queryParams: LogPageQuery) { - return request>({ - url: `${LOG_BASE_URL}/page`, +import { System_BaseUrl } from "@/api/config"; +const baseURL = System_BaseUrl + "/admin/log"; +// 日志 +const Api = { + getList(params: any) { + return request({ + url: `${baseURL}`, method: "get", - params: queryParams, + params }); }, - /** - * 获取访问趋势 - * - * @param queryParams - * @returns - */ - getVisitTrend(queryParams: VisitTrendQuery) { - return request({ - url: `${LOG_BASE_URL}/visit-trend`, - method: "get", - params: queryParams, + // 清空 + + clear() { + return request({ + url: `${baseURL}/`, + method: "delete", }); }, - /** - * 获取访问统计 - * - * @param queryParams - * @returns - */ - getVisitStats() { - return request({ - url: `${LOG_BASE_URL}/visit-stats`, - method: "get", - }); - }, }; -export default LogAPI; -/** - * 日志分页查询对象 - */ -export interface LogPageQuery extends PageQuery { - /** 搜索关键字 */ - keywords?: string; - /** 操作时间 */ - createTime?: [string, string]; -} -/** - * 系统日志分页VO - */ -export interface LogPageVO { - /** 主键 */ - id: number; - /** 日志模块 */ - module: string; - /** 日志内容 */ - content: string; - /** 请求路径 */ - requestUri: string; - /** 请求方法 */ - method: string; - /** IP 地址 */ - ip: string; - /** 地区 */ - region: string; - /** 浏览器 */ - browser: string; - /** 终端系统 */ - os: string; - /** 执行时间(毫秒) */ - executionTime: number; - /** 操作人 */ - operator: string; -} - -/** 访问趋势视图对象 */ -export interface VisitTrendVO { - /** 日期列表 */ - dates: string[]; - /** 浏览量(PV) */ - pvList: number[]; - /** 访客数(UV) */ - uvList: number[]; - /** IP数 */ - ipList: number[]; -} - -/** 访问趋势查询参数 */ -export interface VisitTrendQuery { - /** 开始日期 */ - startDate: string; - /** 结束日期 */ - endDate: string; -} - -/** 访问统计 */ -export interface VisitStatsVO { - /** 今日访客数(UV) */ - todayUvCount: number; - /** 总访客数 */ - totalUvCount: number; - /** 访客数同比增长率(相对于昨天同一时间段的增长率) */ - uvGrowthRate: number; - /** 今日浏览量(PV) */ - todayPvCount: number; - /** 总浏览量 */ - totalPvCount: number; - /** 同比增长率(相对于昨天同一时间段的增长率) */ - pvGrowthRate: number; -} +export default Api; diff --git a/src/router/index.ts b/src/router/index.ts index c5d9867..c15dc96 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -71,6 +71,18 @@ export const constantRoutes: RouteRecordRaw[] = [ title: "挂账管理", affix: false, keepAlive: true, + + }, + }, + { + path: "credit-detail", + name: "creditDetail", + component: () => import("@/views/data/credit/detail.vue"), + meta: { + title: "挂账明细", + affix: false, + keepAlive: true, + hidden: true }, }, { @@ -142,7 +154,7 @@ export const constantRoutes: RouteRecordRaw[] = [ }, { path: "log", - component: () => import("@/views/shop/log.vue"), + component: () => import("@/views/shop/log/index.vue"), name: "shopLog", meta: { title: "操作日志", @@ -386,7 +398,7 @@ export const constantRoutes: RouteRecordRaw[] = [ }, { path: "invite", - component: () => import("@/views/application/marketing/invite.vue"), + component: () => import("@/views/application/marketing/share/index.vue"), name: "invite", meta: { title: "邀请裂变", @@ -578,7 +590,7 @@ export const constantRoutes: RouteRecordRaw[] = [ component: () => import("@/views/inventory/operation_in/index.vue"), name: "operation_in", meta: { - title: "入库", + title: "出入库", affix: false, hidden: true }, diff --git a/src/views/application/marketing/share/components/addCoupon.vue b/src/views/application/marketing/share/components/addCoupon.vue new file mode 100644 index 0000000..2ac2aa3 --- /dev/null +++ b/src/views/application/marketing/share/components/addCoupon.vue @@ -0,0 +1,107 @@ + + + + \ No newline at end of file diff --git a/src/views/application/marketing/share/components/record.vue b/src/views/application/marketing/share/components/record.vue new file mode 100644 index 0000000..387d1e8 --- /dev/null +++ b/src/views/application/marketing/share/components/record.vue @@ -0,0 +1,281 @@ + + + + + \ No newline at end of file diff --git a/src/views/application/marketing/share/components/setting.vue b/src/views/application/marketing/share/components/setting.vue new file mode 100644 index 0000000..a552c33 --- /dev/null +++ b/src/views/application/marketing/share/components/setting.vue @@ -0,0 +1,383 @@ + + + + + \ No newline at end of file diff --git a/src/views/application/marketing/share/components/share.vue b/src/views/application/marketing/share/components/share.vue new file mode 100644 index 0000000..c06b02b --- /dev/null +++ b/src/views/application/marketing/share/components/share.vue @@ -0,0 +1,448 @@ + + + + + \ No newline at end of file diff --git a/src/views/application/marketing/share/index.vue b/src/views/application/marketing/share/index.vue new file mode 100644 index 0000000..274c148 --- /dev/null +++ b/src/views/application/marketing/share/index.vue @@ -0,0 +1,42 @@ + + + + + \ No newline at end of file diff --git a/src/views/data/credit/components/detail/credit_RePaymentRecord.vue b/src/views/data/credit/components/detail/credit_RePaymentRecord.vue new file mode 100644 index 0000000..b3e5e60 --- /dev/null +++ b/src/views/data/credit/components/detail/credit_RePaymentRecord.vue @@ -0,0 +1,218 @@ + + + + + diff --git a/src/views/data/credit/components/detail/credit_add.vue b/src/views/data/credit/components/detail/credit_add.vue new file mode 100644 index 0000000..4167cbc --- /dev/null +++ b/src/views/data/credit/components/detail/credit_add.vue @@ -0,0 +1,190 @@ + + + + + diff --git a/src/views/data/credit/components/detail/credit_repayment.vue b/src/views/data/credit/components/detail/credit_repayment.vue new file mode 100644 index 0000000..fac043f --- /dev/null +++ b/src/views/data/credit/components/detail/credit_repayment.vue @@ -0,0 +1,193 @@ + + + + + + diff --git a/src/views/data/credit/detail.vue b/src/views/data/credit/detail.vue new file mode 100644 index 0000000..d3b8894 --- /dev/null +++ b/src/views/data/credit/detail.vue @@ -0,0 +1,475 @@ + + + + + + diff --git a/src/views/data/credit/index.vue b/src/views/data/credit/index.vue index 6743c61..511d057 100644 --- a/src/views/data/credit/index.vue +++ b/src/views/data/credit/index.vue @@ -116,16 +116,22 @@ async function handleEditClick(row: IObject) { console.log({ ...row }); editModalRef.value?.setFormData({ ...row, url: [row.url] }); } -1; + +const router = useRouter(); // 其他工具栏 -function handleToolbarClick(name: string) { - console.log(name); - if (name === "custom1") { - ElMessage.success("点击了自定义1按钮"); - } -} +function handleToolbarClick(name: string, row: any) {} // 其他操作列 async function handleOperatClick(data: IOperatData) { + if (data.name == "detail") { + router.push({ + path: "/credit-detail", + query: { + id: data.row.id, + repaymentMethod: data.row.repaymentMethod, + }, + }); + return; + } console.log(data); } diff --git a/src/views/data/work.vue b/src/views/data/work.vue index 13f408d..2fbd305 100644 --- a/src/views/data/work.vue +++ b/src/views/data/work.vue @@ -1,6 +1,6 @@