From 21a9548e450d1059e3b73e065696bdc3b38ce383 Mon Sep 17 00:00:00 2001 From: duan <1004387497@qq.com> Date: Fri, 16 Aug 2024 15:23:14 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=B5=A0=E9=80=81?= =?UTF-8?q?=E5=95=86=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/home/data_forms.vue | 4 +- .../user_manage/components/addActive.vue | 112 +++++++++++++++++- .../user_manage/components/downloadQR.vue | 2 +- 3 files changed, 115 insertions(+), 3 deletions(-) diff --git a/src/views/home/data_forms.vue b/src/views/home/data_forms.vue index f7fd002..8453278 100644 --- a/src/views/home/data_forms.vue +++ b/src/views/home/data_forms.vue @@ -216,7 +216,9 @@ export default { startTime: this.query.createdAt[0], endTime: this.query.createdAt[1], cateId: this.query.cateId, - proName: this.query.proName + proName: this.query.proName, + + type: this.orderType, }); this.payCountList = res; } catch (error) { diff --git a/src/views/user_manage/components/addActive.vue b/src/views/user_manage/components/addActive.vue index 7846a95..61fc1ae 100644 --- a/src/views/user_manage/components/addActive.vue +++ b/src/views/user_manage/components/addActive.vue @@ -20,20 +20,40 @@ + +
+ + 添加商品 + +
+
+
+
+ +
+
{{ item.name }}
+
+
+
取 消 确 定 + + \ No newline at end of file + + \ No newline at end of file diff --git a/src/views/user_manage/components/downloadQR.vue b/src/views/user_manage/components/downloadQR.vue index 5e4bd36..e616290 100644 --- a/src/views/user_manage/components/downloadQR.vue +++ b/src/views/user_manage/components/downloadQR.vue @@ -22,11 +22,11 @@ export default { } }, mounted() { - this.getlist() }, methods: { show() { this.isshow = true + this.getlist() }, async getlist() { let res = await getwxacode({ From c51d5cd064044df965788431500afd2e65567e1f Mon Sep 17 00:00:00 2001 From: duan <1004387497@qq.com> Date: Mon, 19 Aug 2024 17:54:21 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E5=B9=BF=E5=91=8A=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/application.js | 47 ++++++ src/api/goxcx.js | 47 ++++++ src/views/application/advertisement.vue | 155 ++++++++++++++++++ .../invoicing/components/addConsTakin.vue | 32 +++- .../invoicing/components/addStockTakin.vue | 2 + .../invoicing/consumable/information.vue | 102 +++++++----- .../invoicing/consumable/specifications.vue | 4 +- src/views/product/components/addGroup.vue | 2 + src/views/product/index.vue | 6 +- src/views/shop/components/goxcx.vue | 123 ++++++++++++++ src/views/shop/shop_configuration.vue | 5 +- src/views/user_manage/user_list.vue | 56 ++++++- 12 files changed, 517 insertions(+), 64 deletions(-) create mode 100644 src/api/goxcx.js create mode 100644 src/views/application/advertisement.vue create mode 100644 src/views/shop/components/goxcx.vue diff --git a/src/api/application.js b/src/api/application.js index 6d90106..c25328e 100644 --- a/src/api/application.js +++ b/src/api/application.js @@ -124,3 +124,50 @@ export function countRecord(data) { } }); } + + +/** + * 广告列表 + * @returns + */ +export function adget(params) { + return request({ + url: "/api/ad", + method: "get", + params + }); +} + +/** +* 广告新增单位 +* @returns +*/ +export function adpost(data) { + return request({ + url: `/api/miniAppPages`, + method: "post", + data + }); +} +/** +* 广告编辑详情 +* @returns +*/ +export function adput(data) { + return request({ + url: '/api/miniAppPages', + method: 'put', + data + }) +} + +/** +* 广告删除商品 +* @returns +*/ +export function addelete(params) { + return request({ + url: "/api/miniAppPages/" + params, + method: "put", + }); +} diff --git a/src/api/goxcx.js b/src/api/goxcx.js new file mode 100644 index 0000000..4922962 --- /dev/null +++ b/src/api/goxcx.js @@ -0,0 +1,47 @@ +import request from "@/utils/request"; + +/** + * 列表 + * @returns + */ +export function miniAppPagesget(params) { + return request({ + url: "/api/miniAppPages", + method: "get", + params + }); +} + +/** + * 新增单位 + * @returns + */ +export function miniAppPagespost(data) { + return request({ + url: `/api/miniAppPages`, + method: "post", + data + }); +} +/** +* 编辑详情 +* @returns +*/ +export function miniAppPagesput(data) { + return request({ + url: '/api/miniAppPages', + method: 'put', + data + }) +} + +/** + * 删除商品 + * @returns + */ +export function miniAppPagesdelete(params) { + return request({ + url: "/api/miniAppPages/" + params, + method: "delete", + }); +} diff --git a/src/views/application/advertisement.vue b/src/views/application/advertisement.vue new file mode 100644 index 0000000..5e9e97c --- /dev/null +++ b/src/views/application/advertisement.vue @@ -0,0 +1,155 @@ + + + \ No newline at end of file diff --git a/src/views/invoicing/components/addConsTakin.vue b/src/views/invoicing/components/addConsTakin.vue index ed09d4f..c0bde07 100644 --- a/src/views/invoicing/components/addConsTakin.vue +++ b/src/views/invoicing/components/addConsTakin.vue @@ -1,12 +1,12 @@ - - + + +
@@ -107,6 +108,34 @@ @size-change="sizeChange" @current-change="paginationChange" layout="total, sizes, prev, pager, next, jumper">
+ + + + + + {{ userinfo.nickName }} + + + + 增加 + 备选项 + + + + + + + + 消费 + 充值退款 + + + + + 取 消 + 确 定 + + @@ -132,6 +161,12 @@ export default { size: 10, loading: false, total: 0 + }, + dialogVisible: false, + userinfo: { + nickName: '', + IncreaseDeduction: 1, + type: 1 } }; }, @@ -146,6 +181,13 @@ export default { this.getShopInfo(); }, methods: { + handleClose() { + this.userinfo = {} + }, + editPop(d) { + this.dialogVisible = true + this.userinfo.nickName = d.nickName + }, toPage(type) { const pages = { charge: "charge_list", From 1fde054290e9a76bfc8a012abc09986d288dde2b Mon Sep 17 00:00:00 2001 From: duan <1004387497@qq.com> Date: Tue, 20 Aug 2024 16:57:26 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E5=92=8C=E4=BD=99=E9=A2=9D=E5=A2=9E=E5=8A=A0=E5=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/application.js | 8 +- src/api/shop.js | 25 ++++ src/views/application/advertisement.vue | 141 ++++++++++++++---- .../invoicing/components/addConsTakin.vue | 2 +- src/views/invoicing/goods_stoks.vue | 9 +- src/views/product/components/addGroup.vue | 2 + .../user_manage/components/addActive.vue | 39 +++-- src/views/user_manage/user_list.vue | 103 +++++++++++-- 8 files changed, 273 insertions(+), 56 deletions(-) diff --git a/src/api/application.js b/src/api/application.js index c25328e..8aa460c 100644 --- a/src/api/application.js +++ b/src/api/application.js @@ -144,7 +144,7 @@ export function adget(params) { */ export function adpost(data) { return request({ - url: `/api/miniAppPages`, + url: `/api/ad`, method: "post", data }); @@ -155,7 +155,7 @@ export function adpost(data) { */ export function adput(data) { return request({ - url: '/api/miniAppPages', + url: '/api/ad', method: 'put', data }) @@ -167,7 +167,7 @@ export function adput(data) { */ export function addelete(params) { return request({ - url: "/api/miniAppPages/" + params, - method: "put", + url: "/api/ad/" + params, + method: "DELETE", }); } diff --git a/src/api/shop.js b/src/api/shop.js index ee36c3f..ce3fdc9 100644 --- a/src/api/shop.js +++ b/src/api/shop.js @@ -607,3 +607,28 @@ export function shopStaffDelete(data) { data }); } + +//增减余额 +export function midfiyAccount(data) { + return request({ + url: `/api/tbShopUser/midfiyAccount`, + method: "post", + data + }); +} +// 编辑用户 +export function tbShopUseredit(data) { + return request({ + url: `/api/tbShopUser`, + method: "put", + data + }); +} +// 通过活动id获取赠送商品列表 + +export function activate(id) { + return request({ + url: `shop/storage/activate/${id}`, + method: "get" + }); +} \ No newline at end of file diff --git a/src/views/application/advertisement.vue b/src/views/application/advertisement.vue index 5e9e97c..3fac8dc 100644 --- a/src/views/application/advertisement.vue +++ b/src/views/application/advertisement.vue @@ -10,7 +10,7 @@ - + @@ -20,7 +20,7 @@ - + @@ -36,7 +36,11 @@ @change="showChange($event, scope.row)"> - + + +