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 @@