From cc4f8046f4fab83306e7514367de7a6ad424e493 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期二, 28 十月 2025 22:59:05 +0800
Subject: [PATCH] 班级考勤汇总表
---
src/api/student.js | 264 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 264 insertions(+), 0 deletions(-)
diff --git a/src/api/student.js b/src/api/student.js
index b82eddd..4437caa 100644
--- a/src/api/student.js
+++ b/src/api/student.js
@@ -43,6 +43,270 @@
}
}
`,
+ fetchPolicy:'no-cache',
+ variables: params,
+ });
+}
+
+export function getNotTeam(params) {
+ return apolloClient.query({
+ query: gql`
+ query vars($staffId: Int!, $keyword: String, $pageIn: PageIn!) {
+ findPlayerNotTeam(
+ staffId: $staffId
+ keyword: $keyword
+ pageIn: $pageIn
+ ) {
+ ls {
+ id
+ name
+ gender
+ mobile
+ user {
+ id
+ name
+ wxOaOpenId
+ }
+ accs {
+ id
+ voucher {
+ id
+ voucherType
+ name
+ }
+ qty
+ freezeQty
+ amt
+ beginDate
+ endDate
+ modifyTime
+ }
+ }
+ pageOut {
+ total
+ index
+ size
+ }
+ }
+ }
+ `,
+ fetchPolicy:'no-cache',
+ variables: params,
+ });
+}
+
+export function getRenew(params) {
+ return apolloClient.query({
+ query: gql`query vars($staffId:Int!,$campusId:Int,$keyword:String,$pageIn:PageIn!){
+ findRenewPlayerAcc(staffId:$staffId,campusId:$campusId, keyword:$keyword,pageIn:$pageIn) {
+ ls{id name userAvatars{url1 url2 url3 origin def ext} playerAvatars{url1 url2 url3 origin def ext} accId voucherName giftQty qty endDate voucherType memberType} pageOut{total index size} }}
+ `,
+ fetchPolicy:'no-cache',
+ variables: params,
+ });
+}
+
+export function getExpire(params) {
+ return apolloClient.query({
+ query: gql`
+ query vars($staffId: Int!, $keyword: String, $pageIn: PageIn!) {
+ findPlayerExpire(
+ staffId: $staffId
+ keyword: $keyword
+ pageIn: $pageIn
+ ) {
+ ls {
+ id
+ name
+ gender
+ mobile
+ user {
+ id
+ name
+ wxOaOpenId
+ }
+ accs {
+ id
+ voucher {
+ id
+ voucherType
+ name
+ }
+ qty
+ freezeQty
+ amt
+ beginDate
+ endDate
+ modifyTime
+ }
+ }
+ pageOut {
+ total
+ index
+ size
+ }
+ }
+ }
+ `,
+ fetchPolicy:'no-cache',
+ variables: params,
+ });
+}
+
+
+export function getDetails(params) {
+ return apolloClient.query({
+ query: gql`
+ query vars($id: Int!) {
+ findPlayerDto(id: $id) {
+ id
+ orgId
+ name
+ gender
+ mobile
+ birthday
+ description
+ user {
+ id
+ name
+ mobile
+ avatars {
+ url1
+ url2
+ url3
+ origin
+ def
+ ext
+ }
+ }
+ avatars {
+ url1
+ url2
+ url3
+ origin
+ def
+ ext
+ }
+ state
+ createTime
+ createById
+ accs {
+ id
+ voucher {
+ id
+ name
+ }
+ voucherType
+ memberType
+ beginDate
+ endDate
+ qty
+ freezeQty
+ amt
+ state
+ }
+ teams {
+ id
+ name
+ }
+ saleMan {
+ id
+ name
+ }
+ }
+ }
+ `,
+ variables: params,
+ });
+}
+//鑾峰彇璇剧▼椤鹃棶
+export function getSaleMan(params) {
+ return apolloClient.query({
+ query: gql`
+ query vars($staffId: Int!, $keyword: String, $pageIn: PageIn) {
+ findStaff(staffId: $staffId, keyword: $keyword, pageIn: $pageIn) {
+ ls {
+ id
+ name
+ gender
+ }
+ pageOut {
+ total
+ index
+ size
+ }
+ }
+ }
+ `,
+ variables: params,
+ });
+}
+//鑾峰彇璇惧寘/浼氬憳鍗�
+export function getVoucher(params) {
+ return apolloClient.query({
+ query: gql`
+ query vars(
+ $orgId: Int
+ $types: [VoucherType!]!
+ $keyword: String
+ $pageIn: PageIn
+ ) {
+ findVoucherByType(
+ orgId: $orgId
+ types: $types
+ keyword: $keyword
+ pageIn: $pageIn
+ ) {
+ ls {
+ id
+ orgId
+ name
+ voucherType
+ memberType
+ qty
+ }
+ pageOut {
+ total
+ index
+ size
+ }
+ }
+ }
+ `,
+ fetchPolicy:'no-cache',
+ variables: params,
+ });
+}
+//宸插仠鐢�
+export function getDeleted(params) {
+ return apolloClient.query({
+ query: gql`
+ query vars(
+ $staffId: Int!
+ $itemType: ItemType!
+ $keyword: String
+ $pageIn: PageIn!
+ ) {
+ findDeletedItem(
+ staffId: $staffId
+ itemType: $itemType
+ keyword: $keyword
+ pageIn: $pageIn
+ ) {
+ ls {
+ id
+ name
+ modifyTime
+ }
+ pageOut {
+ total
+ index
+ size
+ }
+ }
+ }
+ `,
+ fetchPolicy:'no-cache',
variables: params,
});
}
--
Gitblit v1.8.0