diff --git a/.env.development b/.env.development index 98c3e63..fdeba2f 100644 --- a/.env.development +++ b/.env.development @@ -5,9 +5,9 @@ ENV = 'development' # VUE_APP_BASE_API = 'http://192.168.2.42:8000' # VUE_APP_BASE_API = 'http://192.168.2.133:8000' # 测试 -# VUE_APP_BASE_API = 'https://admintestpapi.sxczgkj.cn' +VUE_APP_BASE_API = 'https://admintestpapi.sxczgkj.cn' #预发布 -VUE_APP_BASE_API = 'https://pre-cashieradmin.sxczgkj.cn' +# VUE_APP_BASE_API = 'https://pre-cashieradmin.sxczgkj.cn' # 生产 # VUE_APP_BASE_API = 'https://cashieradmin.sxczgkj.cn' diff --git a/.env.production b/.env.production index 7f079f7..d3bc3e1 100644 --- a/.env.production +++ b/.env.production @@ -3,7 +3,7 @@ ENV = 'production' # 如果使用 Nginx 代理后端接口,那么此处需要改为 '/',文件查看 Docker 部署篇,Nginx 配置 # 接口地址,注意协议,如果你没有配置 ssl,需要将 https 改为 http # 测试 -# VUE_APP_BASE_API = 'https://admintestpapi.sxczgkj.cn' +VUE_APP_BASE_API = 'https://admintestpapi.sxczgkj.cn' # 生产 VUE_APP_BASE_API = 'https://cashieradmin.sxczgkj.cn' diff --git a/src/api/points.js b/src/api/points.js new file mode 100644 index 0000000..d6d89ab --- /dev/null +++ b/src/api/points.js @@ -0,0 +1,109 @@ +import request from "@/utils/request"; +// 会员积分 + +/** + * 基本设置-获取店铺设置 + * @returns + */ +export function basicSettingGet() { + let shopId = localStorage.getItem("shopId"); + return request({ + url: `/api/points/basic-setting/${shopId}`, + method: "get" + }); +} + +/** + * 基本设置-保存 + * @returns + */ +export function basicSettingPost(data) { + return request({ + url: "/api/points/basic-setting", + method: "post", + data + }); +} + +/** + * 商品设置-新增/编辑 + * @returns + */ +export function goodsSettingAdd(data) { + return request({ + url: "/api/points/goods-setting", + method: data.id ? "put" : "post", + data + }); +} + +/** + * 商品设置-删除 + * @returns + */ +export function goodsDelete(id) { + return request({ + url: `/api/points/goods-setting/${id}`, + method: "DELETE" + }); +} + +/** + * 商品设置-列表 + * @returns + */ +export function goodsSettingPage(params) { + let shopId = localStorage.getItem("shopId"); + return request({ + url: `/api/points/goods-setting/page`, + method: "get", + params: { + ...params, + shopId: shopId + } + }); +} + +/** + * 兑换记录-列表 + * @returns + */ +export function exchangeRecordPage(params) { + let shopId = localStorage.getItem("shopId"); + return request({ + url: `/api/points/exchange-record/page`, + method: "get", + params: { + ...params, + shopId: shopId + } + }); +} + +/** + * 兑换记录-统计 + * @returns + */ +export function exchangeRecordTotal(params) { + let shopId = localStorage.getItem("shopId"); + return request({ + url: `/api/points/exchange-record/total`, + method: "get", + params: { + ...params, + shopId: shopId + } + }); +} + +/** + * 兑换记录-核销 + * @returns + */ +export function recordCheckout(data) { + return request({ + url: "/api/points/exchange-record/checkout", + method: "post", + data + }); +} diff --git a/src/assets/images/1024.png b/src/assets/images/1024.png new file mode 100644 index 0000000..716381b Binary files /dev/null and b/src/assets/images/1024.png differ diff --git a/src/views/application/components/member_points/record.vue b/src/views/application/components/member_points/record.vue new file mode 100644 index 0000000..5a71d90 --- /dev/null +++ b/src/views/application/components/member_points/record.vue @@ -0,0 +1,305 @@ + + + + + + \ No newline at end of file diff --git a/src/views/application/components/member_points/setting.vue b/src/views/application/components/member_points/setting.vue new file mode 100644 index 0000000..8003586 --- /dev/null +++ b/src/views/application/components/member_points/setting.vue @@ -0,0 +1,290 @@ + + + + + \ No newline at end of file diff --git a/src/views/application/components/member_points/shop_add.vue b/src/views/application/components/member_points/shop_add.vue new file mode 100644 index 0000000..55d5e77 --- /dev/null +++ b/src/views/application/components/member_points/shop_add.vue @@ -0,0 +1,247 @@ + + + + + + \ No newline at end of file diff --git a/src/views/application/components/member_points/shop_list.vue b/src/views/application/components/member_points/shop_list.vue new file mode 100644 index 0000000..667f007 --- /dev/null +++ b/src/views/application/components/member_points/shop_list.vue @@ -0,0 +1,129 @@ + + + + + \ No newline at end of file diff --git a/src/views/application/member_points.vue b/src/views/application/member_points.vue index 32aa4bb..3894dd0 100644 --- a/src/views/application/member_points.vue +++ b/src/views/application/member_points.vue @@ -1,3 +1,37 @@ \ No newline at end of file +
+ + + + + + + + +
+ + + + + \ No newline at end of file diff --git a/src/views/invoicing/consumable/information.vue b/src/views/invoicing/consumable/information.vue index 78240c6..d3a2204 100644 --- a/src/views/invoicing/consumable/information.vue +++ b/src/views/invoicing/consumable/information.vue @@ -54,7 +54,7 @@ 添加 入库 出库 - 耗材记录 + 分类管理 供应商管理 diff --git a/src/views/order_manage/components/orderDetail.vue b/src/views/order_manage/components/orderDetail.vue index 6e3a19e..b48f052 100644 --- a/src/views/order_manage/components/orderDetail.vue +++ b/src/views/order_manage/components/orderDetail.vue @@ -1,5 +1,5 @@