From 13bd39fbed82121ed5f3da9ea327843e7174d0a1 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Thu, 7 May 2026 15:34:38 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E7=AB=AF=E7=BB=86=E8=8A=82?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 3 +- src/api/account/payType.ts | 23 + src/api/order/fince.ts | 26 + src/components/CURD/PageContent.vue | 305 ++- src/components/CURD/PageSearch.vue | 2 +- src/components/CURD/types.ts | 3 + src/components/importData/index copy.vue | 305 +++ src/components/importData/index.vue | 156 +- src/lib/coupon.ts | 98 +- src/lib/goods.ts | 1946 ++++++++--------- src/lib/limit.ts | 10 +- src/lib/utils.ts | 33 + src/store/modules/carts-back.ts | 3 +- src/store/modules/user.ts | 5 +- src/views/data/credit/config/add.ts | 75 +- src/views/data/credit/config/content.ts | 32 +- src/views/data/credit/config/edit.ts | 75 +- src/views/data/credit/config/search.ts | 39 +- src/views/data/credit/index.vue | 21 + src/views/data/index.vue | 321 ++- src/views/devices/config/config.ts | 4 +- .../index/components/GoodsListCollapse.vue | 98 + src/views/order/index/config/config.ts | 14 +- src/views/order/index/config/content.ts | 8 + src/views/order/index/index.vue | 72 +- .../system-setting/pay-types/config/add.ts | 14 +- .../pay-types/config/content.ts | 64 +- .../system-setting/pay-types/config/edit.ts | 14 +- .../system-setting/pay-types/index copy.vue | 123 ++ src/views/system-setting/pay-types/index.vue | 140 +- .../Instead/components/choose-guazhang.vue | 7 +- src/views/tool/Instead/components/order.vue | 196 +- .../components/popup-choose-guazhang.vue | 12 +- .../Instead/components/popup-linshiCai.vue | 12 +- src/views/tool/Instead/index.vue | 130 +- src/views/tool/table/index.vue | 8 +- 36 files changed, 2915 insertions(+), 1482 deletions(-) create mode 100644 src/api/order/fince.ts create mode 100644 src/components/importData/index copy.vue create mode 100644 src/lib/utils.ts create mode 100644 src/views/order/index/components/GoodsListCollapse.vue create mode 100644 src/views/system-setting/pay-types/index copy.vue diff --git a/package.json b/package.json index a2a93f7..63acc46 100644 --- a/package.json +++ b/package.json @@ -65,9 +65,10 @@ "sortablejs": "^1.15.6", "vue": "^3.5.13", "vue-clipboard3": "^2.0.0", + "vue-draggable-plus": "^0.6.1", "vue-i18n": "^11.1.0", "vue-router": "^4.5.0", - "ysk-utils": "^1.0.85" + "ysk-utils": "^1.0.91" }, "devDependencies": { "@commitlint/cli": "^19.7.1", diff --git a/src/api/account/payType.ts b/src/api/account/payType.ts index b0b46c9..1d750e2 100644 --- a/src/api/account/payType.ts +++ b/src/api/account/payType.ts @@ -27,11 +27,34 @@ const Api = { method: "post", data }); + }, + // 排序 + sort(params: sortRequest) { + return request({ + url: `${baseURL}/sort`, + method: "get", + params + }); } }; export default Api; +export interface sortRequest { + /** + * 拖动的支付类型ID + */ + id: number; + /** + * 店铺ID + */ + shopId: number; + /** + * 目标位置排序号 + */ + targetSort: number; + [property: string]: any; +} interface getRequset { id?: string diff --git a/src/api/order/fince.ts b/src/api/order/fince.ts new file mode 100644 index 0000000..62590eb --- /dev/null +++ b/src/api/order/fince.ts @@ -0,0 +1,26 @@ +import request from "@/utils/request"; +import { Order_BaseUrl } from "@/api/config"; +const baseURL = Order_BaseUrl + "/admin"; +const FinanceApi = { + financeBase(params: Request) { + return request({ + url: `${baseURL}/finance/base`, + method: "get", + params + }); + }, + +}; + +export interface Request { + /** + * 日期yyyy-MM-dd + */ + date: string; + shopId: number; + type: string; + [property: string]: any; +} + + +export default FinanceApi; diff --git a/src/components/CURD/PageContent.vue b/src/components/CURD/PageContent.vue index 6b202d3..bb296e2 100644 --- a/src/components/CURD/PageContent.vue +++ b/src/components/CURD/PageContent.vue @@ -3,43 +3,64 @@
-
+
- + @@ -194,15 +266,21 @@