index.tsx 75 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665
  1. import { Button, Checkbox, Col, DatePicker, Form, Input, InputNumber, Radio, Row, Select, Space, Tooltip } from "antd"
  2. import React, { useEffect, useState } from "react"
  3. import moment from "moment"
  4. import { useAjax } from "@/Hook/useAjax"
  5. import { getAllOfOwnerUserApi, getChannelChoiceListApi, getGameChoiceListApi, getCpChoiceListApi, getGameChoiceParentListType1Api, getPayListApi, getSubUserWithSelfListApi, getTtAllUserListApi, getUserSystemTypeChoiceListApi, getRoleUserListApi, getGameServerListApi, getGameServerUnListApi, getAccountListNewApi, getAgentListNewApi, getPitcherListNewApi, getGameListNewApi, getVipLevelApi, getGameServerNewApi } from "@/services/gameData"
  6. import { ActiveEnum, DeviceType, LoginType, PayStatus, TYPE, gameClassifyEnum } from "./const"
  7. import { ADSTATUSEnum as ADSTTTATUSEnum } from "@/pages/gameDataStatistics/adlist/monitor/const"
  8. import { ADSTATUSEnum } from "@/pages/gameDataStatistics/adlist/tencentMonitor/const"
  9. import IntervalTime from "./intervalTime"
  10. import { RangePickerProps } from "antd/lib/date-picker"
  11. import { QuestionCircleOutlined } from "@ant-design/icons"
  12. interface Props {
  13. onChange?: (data: any) => void
  14. /** 默认值 */
  15. initialValues?: any
  16. /** 开启数据源搜索 */
  17. isSource?: boolean,
  18. /** 是否开启 广告账号 搜索 */
  19. isAccount?: boolean
  20. /** 是否开启 广告账户ID 搜索 */
  21. isAccountId?: boolean
  22. // 开启账号多选
  23. isAccountIds?: boolean,
  24. /** 是否开启 公司ID 搜索 */
  25. isCompanyId?: boolean
  26. /** 是否开启 CPID 搜索 */
  27. isCpId?: boolean
  28. /** 是否开启 cp名 搜索 */
  29. isCpName?: boolean
  30. /** 是否开启 CP方订单ID 搜索 */
  31. isCpOrderId?: boolean
  32. /** 是否开启 CP通知状态 搜索 */
  33. isCpStatus?: boolean
  34. /** 是否开启 订单创建日期 搜索 */
  35. isCreateDay?: {
  36. ranges?: any
  37. }
  38. /** 订单创建日期 根据消耗时间 来限制可选范围 */
  39. isCreateDayXz?: {
  40. ranges?: any
  41. }
  42. /** 是否开启 角色创建日期 搜索 */
  43. isCreateRoleDay?: {
  44. ranges?: any
  45. }
  46. /** 是否开启 操作设备 搜索 */
  47. isDevice?: boolean
  48. /** 是否开启 注册游戏名 搜索 */
  49. isRechargeGameName?: boolean
  50. /** 是否开启 游戏名 搜索 */
  51. isGameName?: boolean
  52. /** 是否开启 游戏ID 搜索 */
  53. isGameId?: boolean
  54. isGameIds?: boolean
  55. /** 是否开启 充值游戏ID 搜索 */
  56. isOrderGameId?: boolean
  57. /** 是否开启 父游戏ID 搜索 */
  58. isParentId?: boolean
  59. isParentIds?: boolean
  60. /** 是否开启 超父游戏ID 搜索 */
  61. isSuperParentGameId?: boolean
  62. /** 是否开启 是否合服 搜索 */
  63. isIsMergeServer?: boolean
  64. /** 是否开启 游戏应用类型 搜索 */
  65. isGameType?: boolean
  66. /** 是否开启 游戏角色名 搜索 */
  67. isGameRoleName?: boolean
  68. /** 是否开启 游戏角色名ID 搜索 */
  69. isGameRoleId?: boolean
  70. /** 是否开启 是否首充 搜索 */
  71. isFirstRecharge?: boolean
  72. /** 是否开启 是否切量 搜索 */
  73. isSwitch?: boolean
  74. /** 是否开启 收款商户号 搜索 */
  75. isMerchantNo?: boolean
  76. /** 是否开启 商户订单ID 搜索 */
  77. isOrderId?: boolean
  78. /** 是否开启 商户订单号 搜索 */
  79. isMerchantOrderNo?: boolean
  80. /** 是否开启 支付状态 搜索 */
  81. isPayStatus?: boolean
  82. /** 是否开启 支付方式 搜索 */
  83. isPayWay?: boolean
  84. /** 是否开启 产品名称 搜索 */
  85. isProductName?: boolean
  86. /** 是否开启 注册渠道名 搜索 */
  87. isRegAgent?: boolean
  88. /** 是否开启 渠道名称 搜索 */
  89. isAgentName?: boolean
  90. /** 是否开启 注册渠道ID 搜索 */
  91. isAgentId?: boolean
  92. /** 是否开启 渠道标识 搜索 */
  93. isAgentKey?: boolean
  94. /** 是否开启 投放渠道名 搜索 */
  95. isPutAgent?: boolean
  96. /** 是否开启 用户注册日期 搜索 */
  97. isRegDay?: {
  98. ranges?: any
  99. }
  100. /** 是否开启 投手名称 搜索 */
  101. isSysUserName?: boolean
  102. /** 是否开启 投手ID 搜索 */
  103. isSysUserId?: boolean
  104. isSysUserIds?: boolean
  105. /** 是否开启 玩家账号 搜索 */
  106. isUserName?: boolean
  107. /** 是否开启 用户ID 搜索 */
  108. isUserId?: boolean
  109. /** 是否开启 不同排行榜选择 搜索 */
  110. isSelectRanking?: boolean
  111. /** 是否开启 消耗日期 搜索 */
  112. isConsumeDay?: {
  113. ranges?: any
  114. }
  115. /** 是否开启 充值日期 搜索 */
  116. rechargeDay?: {
  117. ranges?: any
  118. }
  119. /** 是否开启 支付时间 搜索 */
  120. payTimeDay?: {
  121. ranges?: any
  122. }
  123. /** 是否开启 下单时间 搜索 */
  124. placeAnOrderDay?: {
  125. ranges?: any
  126. }
  127. /** 是否开启布谷 游戏类型 筛选 */
  128. isBGGameClassify?: boolean,
  129. /** 是否开启 单个充值日期 选择 */
  130. isRechargeDate?: boolean,
  131. /** 是否开启 开始时间 结束时间 搜索 */
  132. isBeginDay?: boolean
  133. /** 是否开启 玩家ID 搜索 */
  134. isGameUserId?: boolean
  135. /** 是否开启 操作系统 选择 */
  136. isOs?: boolean
  137. /** 是否开启 推广媒体 选择 */
  138. isType?: boolean
  139. /** 是否开启 计划ID 搜索 */
  140. isProjectId?: boolean
  141. /** 是否开启 计划名称 搜索 */
  142. isProjectName?: boolean
  143. /** 是否开启 广告ID 搜索 */
  144. isProjectId1?: boolean
  145. /** 是否开启 广告ID 搜索 */
  146. isPromotionId?: boolean
  147. /** 是否开启 计划ID 搜索 */
  148. isPromotionId1?: boolean
  149. /** 是否开启 广告名称 搜索 */
  150. isPromotionName?: boolean
  151. /** 是否开启 头条广告状态 搜索 */
  152. isAdTTStatus?: boolean
  153. /** 是否开启 腾讯广告状态 搜索 */
  154. isAdTXStatus?: boolean
  155. /** 是否开启 展示数据类型(买量,自然,总) 搜索 */
  156. isUserEnterType?: boolean
  157. /** 是否开启 区服名称 搜索 */
  158. isServerName?: boolean
  159. /** 是否开启 所在原始服务器名称 搜索 */
  160. isSourceServerName?: boolean
  161. /** 是否开启区服ID 搜索 */
  162. isServerId?: boolean
  163. /** 是否开启 开服时间 搜索 */
  164. isServerDay?: {
  165. ranges?: any
  166. }
  167. /** 是否开启 充值到支付的间隔时间 搜索 */
  168. isPayIntervalTime?: {
  169. tips?: string
  170. }
  171. /** 是否开启 充值到支付的间隔时间 搜索 */
  172. isRoleCount?: {
  173. tips?: string
  174. }
  175. /** 是否开启 留存数据的类型 搜索 */
  176. isActiveTypes?: boolean
  177. /** 是否开启 玩家昵称 搜索 */
  178. isNickname?: boolean
  179. /** 是否开启 绑定手机 搜索 */
  180. isMobile?: boolean
  181. /** 是否开启 注册IP 搜索 */
  182. isRegIp?: boolean
  183. /** 是否开启 IP 搜索 */
  184. isIp?: boolean
  185. /** 是否开启 是否实名认证 搜索 */
  186. isIsAuth?: boolean
  187. /** 是否开启 是否绑定手机 搜索 */
  188. isIsBindMobile?: boolean
  189. /** 是否开启 是否充值 搜索 */
  190. isIsRecharge?: boolean
  191. /** 是否开启 玩家状态 搜索 */
  192. isUserStatus?: boolean
  193. /** 是否开启 是否创角 搜索 */
  194. isCreateRole?: boolean
  195. /** 是否开启 角色VIP 搜索 */
  196. isVipLevel?: boolean
  197. /** 是否开启 是否转端 搜索 */
  198. isIsChange?: boolean
  199. /** 是否开启 邮件是否发送 搜索 */
  200. isIsSendMail?: boolean
  201. /** 是否开启 企业微信号 搜索 */
  202. isWeChatCompany?: boolean
  203. /** 是否开启 企业微信号 搜索 */
  204. isWeChat?: boolean
  205. /** 是否开启 客服 搜索*/
  206. isCustomerServerId?: boolean
  207. /** 是否开启 运营 搜索 */
  208. isOperatorId?: boolean
  209. /** 是否开启GS 搜索 */
  210. isGsId?: boolean
  211. /** 是否开启多个区服id搜索 */
  212. isServerIds?: boolean
  213. /** 是否开启 游戏区服 搜索 */
  214. isGameServerName?: boolean
  215. /** 是否开启多个区服id搜索 */
  216. isRankingNum?: boolean
  217. /** 是否开启 客户端类型 搜索 */
  218. isDeviceType?: boolean
  219. /** 是否开启 登录类型 搜索 */
  220. isLoginType?: boolean
  221. /** 是否开启 原始区服列表 搜索 */
  222. isServerIdUn?: boolean
  223. /** 是否开启 是否退游 搜索 */
  224. isRemoveGame?: boolean
  225. /** 是否开启 是否退游系统 搜索 */
  226. isRemoveGameForSystem?: boolean
  227. isOrderLy?: boolean
  228. /** 是否开启 是否添加企微 搜索 */
  229. isAddCorpWechat?: boolean
  230. /** 是否开启 是否唤醒 搜索 */
  231. isWakeUp?: boolean
  232. /** 是否开启 回传状态 搜索 */
  233. isBackStatus?: boolean
  234. /** 是否开启 选择游戏维度 搜索 */
  235. isGameDimension?: boolean
  236. /** 是否开启 玩家最新染色时间 搜索 */
  237. isUserLastRegTime?: boolean
  238. /** 是否开启 玩家最新染色渠道ID 搜索 */
  239. isUserLastRegAgentId?: boolean
  240. /** 是否开启 玩家最新染色归因投手 搜索 */
  241. isUserLastPitcherId?: boolean
  242. /** 是否开启 创角24小时内单笔充值金额 搜索 */
  243. isRechargeAmountWithin24h?: boolean
  244. /** 是否开启 创角24小时以内累计充值金额 搜索 */
  245. isRechargeTotalAmountWithin24h?: boolean
  246. }
  247. /**
  248. * 游戏数据系统 请求参数
  249. * @returns
  250. */
  251. const QueryForm: React.FC<Props> = (props) => {
  252. /**************************/
  253. const {
  254. onChange, initialValues, isSource, isAccount, isAccountId, isAccountIds, isCompanyId, isAgentKey, isAgentName, isCpId, isCpName, isCpOrderId, isCpStatus, isCreateDay, isCreateDayXz, isDevice, isGameName, isRechargeGameName, isGameId, isGameIds, isOrderGameId, isGameRoleId,
  255. isGameRoleName, isFirstRecharge, isSwitch, isMerchantNo, isOrderId, isMerchantOrderNo, isPayStatus, isPayWay, isProductName, isRegAgent, isAgentId, isPutAgent, isRegDay, isOs, isParentId, isParentIds, isProjectId, isProjectName, isPromotionId, isPromotionId1, isPromotionName,
  256. isSysUserName, isRechargeDate, isBGGameClassify, isGameUserId, isSysUserId, isSysUserIds, isUserName, isUserId, isSelectRanking, isGameType, isConsumeDay, rechargeDay, isBeginDay, isType, isAdTTStatus, isUserEnterType, isServerName, isServerId, isServerDay, isAdTXStatus,
  257. payTimeDay, placeAnOrderDay, isPayIntervalTime, isActiveTypes, isNickname, isMobile, isRegIp, isIsAuth, isIsBindMobile, isIsRecharge, isUserStatus, isCreateRole, isRoleCount, isVipLevel, isCreateRoleDay, isIsChange, isIsSendMail, isWeChatCompany, isWeChat,
  258. isCustomerServerId, isOperatorId, isGsId, isServerIds, isRankingNum, isIsMergeServer, isSuperParentGameId, isGameServerName, isIp, isDeviceType, isLoginType, isServerIdUn, isSourceServerName, isProjectId1, isRemoveGame, isRemoveGameForSystem, isOrderLy, isAddCorpWechat,
  259. isWakeUp, isBackStatus, isGameDimension, isUserLastRegTime, isUserLastRegAgentId, isUserLastPitcherId, isRechargeAmountWithin24h, isRechargeTotalAmountWithin24h
  260. } = props
  261. const [form] = Form.useForm()
  262. const parentId = Form.useWatch('parentId', form)
  263. const superParentGameId = Form.useWatch('superParentGameId', form)
  264. const isMergeServer = Form.useWatch('isMergeServer', form)
  265. const serverName = Form.useWatch('serverName', form)
  266. const serverIds = Form.useWatch('serverIds', form)
  267. const sourceSystem = Form.useWatch('sourceSystem', form)
  268. const parentGameIds = Form.useWatch('parentGameIds', form)
  269. const gameDimension = Form.useWatch('gameDimension', form)
  270. const consumeDay = Form.useWatch('consumeDay', form)
  271. const [accountList, setAccountList] = useState<any[]>([])
  272. const [userIdList, setUserIdList] = useState<any[]>([])
  273. const [gsList, setGsList] = useState<any[]>([])
  274. const [customerList, setCustomerList] = useState<any[]>([])
  275. const [operateList, setOperateList] = useState<any[]>([])
  276. const [gameList, setGameList] = useState<any[]>([])
  277. const [parentGameList, setParentGameList] = useState<any[]>([])
  278. const [superGameList, setSuperGameList] = useState<any[]>([])
  279. const [agentData, setAgentData] = useState<{ label: string, value: string }[]>([])
  280. const getAllOfOwnerUser = useAjax(() => getAllOfOwnerUserApi())
  281. const getTtAllUserList = useAjax(() => getTtAllUserListApi())
  282. const getGameChoiceList = useAjax(() => getGameChoiceListApi())
  283. const getSubUserWithSelfList = useAjax(() => getSubUserWithSelfListApi())
  284. const getChannelChoiceList = useAjax(() => getChannelChoiceListApi())
  285. const getGameChoiceParentListType1 = useAjax(() => getGameChoiceParentListType1Api())
  286. const getUserSystemTypeChoiceList = useAjax(() => getUserSystemTypeChoiceListApi())
  287. const getCpChoiceList = useAjax(() => getCpChoiceListApi())
  288. const getPayList = useAjax(() => getPayListApi())
  289. const getVipLevel = useAjax(() => getVipLevelApi())
  290. const getRoleUserList = useAjax((params) => getRoleUserListApi(params))
  291. const getGameServerList = useAjax((params) => getGameServerListApi(params))
  292. const getGameServerUnList = useAjax((params) => getGameServerUnListApi(params))
  293. const getAccountListNew = useAjax((params) => getAccountListNewApi(params))
  294. const getAgentListNew = useAjax((params) => getAgentListNewApi(params))
  295. const getPitcherListNew = useAjax((params) => getPitcherListNewApi(params))
  296. const getGameListNew = useAjax((params) => getGameListNewApi(params))
  297. /**************************/
  298. useEffect(() => {
  299. if (isCustomerServerId || isOperatorId || isGsId) {
  300. const getList = async () => {
  301. // 游戏GS
  302. let gs = await getRoleUserList.run({ authType: 'GS' })
  303. setGsList(gs ? Object.keys(gs)?.map(key => ({ userId: key, nickname: gs[key] })) : [])
  304. // 运营
  305. let operate = await getRoleUserList.run({ authType: 'OPERATE' })
  306. setOperateList(operate ? Object.keys(operate)?.map(key => ({ userId: key, nickname: operate[key] })) : [])
  307. // 客服
  308. let customer = await getRoleUserList.run({ authType: 'CUSTOMER' })
  309. setCustomerList(customer ? Object.keys(customer)?.map(key => ({ userId: key, nickname: customer[key] })) : [])
  310. }
  311. getList()
  312. }
  313. }, [isCustomerServerId, isOperatorId, isGsId])
  314. useEffect(() => {
  315. if (isAccountId) {
  316. // 请求广告账号列表
  317. async function getAccount() {
  318. if (sourceSystem === 'ZX_ONE') {
  319. let data: any[] = []
  320. let res1 = await getAllOfOwnerUser.run()
  321. let data1 = []
  322. if (res1) {
  323. data1 = res1?.map((item: any) => ({ label: item.accountId, value: item.accountId, corporationName: item.corporationName }))
  324. }
  325. let res2 = await getTtAllUserList.run()
  326. let data2 = []
  327. if (res2) {
  328. data2 = res2?.map((item: any) => ({ label: item.accountId, value: item.accountId, corporationName: item.accountName }))
  329. }
  330. data = [...data1, ...data2]
  331. setAccountList(data)
  332. } else if (['BG_OLD', 'BG_NEW', 'ZX_SDK'].includes(sourceSystem)) {
  333. let res1 = await getAccountListNew.run({ sourceSystem })
  334. setAccountList(res1?.map((item: any) => ({ label: item.accountId, value: item.accountId, corporationName: '' })))
  335. }
  336. }
  337. getAccount()
  338. }
  339. }, [isAccountId, sourceSystem])
  340. /** 游戏列表 */
  341. useEffect(() => {
  342. if (isGameId || isOrderGameId || isParentId || isParentIds || isGameIds || isSuperParentGameId) {
  343. getGameListNew.run({ sourceSystem }).then(res => {
  344. const { gameList, parentGameList, superGameList } = res
  345. // if (['BG_OLD', 'BG_NEW', 'ZX_SDK'].includes(sourceSystem)) {
  346. setGameList(gameList?.map((item: { id: any; game_name: any }) => ({ id: item.id, name: item.game_name })) || [])
  347. // }
  348. setParentGameList(parentGameList)
  349. setSuperGameList(superGameList)
  350. })
  351. // if (sourceSystem === 'ZX_ONE') {
  352. // getGameChoiceList.run().then(res => {
  353. // setGameList(res || [])
  354. // })
  355. // }
  356. }
  357. }, [isGameId, isGameIds, isOrderGameId, isParentId, isParentIds, isSuperParentGameId, sourceSystem])
  358. useEffect(() => {
  359. if (isCpId) {
  360. getCpChoiceList.run()
  361. }
  362. }, [isCpId])
  363. useEffect(() => {
  364. if (isVipLevel) {
  365. getVipLevel.run()
  366. }
  367. }, [isVipLevel])
  368. /** 投手列表 */
  369. useEffect(() => {
  370. if (isSysUserId || isSysUserIds) {
  371. if (['BG_OLD', 'BG_NEW', 'ZX_SDK'].includes(sourceSystem)) {
  372. getPitcherListNew.run({ sourceSystem }).then(res => {
  373. setUserIdList(res?.map((item: { pitcherId: any; pitcherName: any }) => ({ userId: item.pitcherId, nickname: item.pitcherName })))
  374. })
  375. } else {
  376. getSubUserWithSelfList.run().then(res => {
  377. setUserIdList(res ? Object.keys(res)?.map(key => ({ userId: key, nickname: res[key] })) : [])
  378. })
  379. }
  380. }
  381. }, [isSysUserId, isSysUserIds, sourceSystem])
  382. /** 推广渠道 */
  383. useEffect(() => {
  384. if (isAgentId || isUserLastRegAgentId) {
  385. if (['BG_OLD', 'BG_NEW', 'ZX_SDK'].includes(sourceSystem)) {
  386. getAgentListNew.run({ sourceSystem }).then(res => {
  387. setAgentData(res?.map((item: { agentName: any; agentId: any }) => ({ label: item.agentName, value: item.agentId })))
  388. })
  389. } else {
  390. getChannelChoiceList.run().then(res => {
  391. console.log(res)
  392. setAgentData(res?.map((item: { agentName: any; id: any }) => ({ label: item.agentName, value: item.id })))
  393. })
  394. }
  395. }
  396. }, [isAgentId, sourceSystem, isUserLastRegAgentId])
  397. /** 游戏应用类型 */
  398. useEffect(() => {
  399. if (isGameType) {
  400. getGameChoiceParentListType1.run()
  401. }
  402. }, [isGameType])
  403. /** 操作系统 */
  404. useEffect(() => {
  405. if (isOs) {
  406. getUserSystemTypeChoiceList.run()
  407. }
  408. }, [isOs])
  409. /** 支付方式 */
  410. useEffect(() => {
  411. if (isPayWay) {
  412. getPayList.run()
  413. }
  414. }, [isPayWay])
  415. const onFinish = (data: any) => {
  416. // 处理订单创建日期
  417. if (isCreateDay) {
  418. if (data?.createDay && data?.createDay?.length > 0) {
  419. data.beginOrderTime = moment(data?.createDay[0]).format('YYYY-MM-DD')
  420. data.endOrderTime = moment(data?.createDay[1]).format('YYYY-MM-DD')
  421. } else {
  422. data.beginOrderTime = ''
  423. data.endOrderTime = ''
  424. }
  425. delete data.createDay
  426. }
  427. // 处理 用户注册日期
  428. if (isRegDay) {
  429. if (data?.regDay && data?.regDay?.length > 0) {
  430. data.regStartDay = moment(data?.regDay[0]).format('YYYY-MM-DD')
  431. data.regEndDay = moment(data?.regDay[1]).format('YYYY-MM-DD')
  432. } else {
  433. data.regStartDay = ''
  434. data.regEndDay = ''
  435. }
  436. delete data.regDay
  437. }
  438. // 处理 消耗日期
  439. if (isConsumeDay) {
  440. if (data?.consumeDay && data?.consumeDay?.length > 0) {
  441. data.costBeginDay = moment(data?.consumeDay[0]).format('YYYY-MM-DD')
  442. data.costEndDay = moment(data?.consumeDay[1]).format('YYYY-MM-DD')
  443. } else {
  444. data.costBeginDay = ''
  445. data.costEndDay = ''
  446. }
  447. delete data.consumeDay
  448. }
  449. // 处理 不同排行榜 选择
  450. if (isSelectRanking) {
  451. switch (data?.dateType) {
  452. case 'all':
  453. data.beginDay = ''
  454. data.endDay = ''
  455. break;
  456. case 'today':
  457. data.beginDay = moment().format('YYYY-MM-DD')
  458. data.endDay = moment().format('YYYY-MM-DD')
  459. break
  460. case 'yesterday':
  461. data.beginDay = moment().subtract(1, 'd').format('YYYY-MM-DD')
  462. data.endDay = moment().subtract(1, 'd').format('YYYY-MM-DD')
  463. break
  464. case '7days':
  465. data.beginDay = moment().subtract(7, 'd').format('YYYY-MM-DD')
  466. data.endDay = moment().format('YYYY-MM-DD')
  467. break
  468. case '30days':
  469. data.beginDay = moment().subtract(30, 'd').format('YYYY-MM-DD')
  470. data.endDay = moment().format('YYYY-MM-DD')
  471. break
  472. }
  473. delete data?.dateType
  474. }
  475. console.log('更新了字段---->', data);
  476. onChange && onChange(data)
  477. }
  478. const disabledDate: RangePickerProps['disabledDate'] = (current) => {
  479. // Can not select days before today and today
  480. if (consumeDay && consumeDay?.length === 2) {
  481. let [d1] = consumeDay
  482. return current && (current < moment(d1) || current > moment().endOf('day'));
  483. }
  484. return current && current > moment().endOf('day');
  485. };
  486. return <Form layout="inline" className='queryForm' initialValues={initialValues} name="basic" form={form} onFinish={onFinish}>
  487. <Row gutter={[0, 6]}>
  488. {/* 数据源搜索 */}
  489. {isSource && <Col><Form.Item name='sourceSystem'>
  490. <Select
  491. showSearch
  492. style={{ width: 100 }}
  493. allowClear
  494. placeholder={'数据源选择'}
  495. filterOption={(input, option) =>
  496. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  497. }
  498. >
  499. <Select.Option value="BG_OLD">布谷-old</Select.Option>
  500. <Select.Option value="BG_NEW">布谷-new</Select.Option>
  501. <Select.Option value="ZX_SDK">布谷-zx</Select.Option>
  502. <Select.Option value="ZX_ONE">赞象</Select.Option>
  503. </Select>
  504. </Form.Item></Col>}
  505. {/* 展示数据类型 */}
  506. {isUserEnterType && <Col><Form.Item name='tableTypes'>
  507. <Select
  508. showSearch
  509. style={{ width: 130 }}
  510. allowClear
  511. placeholder={'展示数据类型'}
  512. filterOption={(input, option) =>
  513. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  514. }
  515. >
  516. <Select.Option value="buy">买量</Select.Option>
  517. <Select.Option value="nature">自然量</Select.Option>
  518. <Select.Option value="total">总量</Select.Option>
  519. </Select>
  520. </Form.Item></Col>}
  521. {/* 订单渠道类型 */}
  522. {isOrderLy && <Col><Form.Item name='orderAgentType'>
  523. <Select
  524. showSearch
  525. style={{ width: 130 }}
  526. allowClear
  527. placeholder={'订单渠道类型'}
  528. filterOption={(input, option) =>
  529. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  530. }
  531. >
  532. <Select.Option value="buy">买量</Select.Option>
  533. <Select.Option value="nature">自然量</Select.Option>
  534. </Select>
  535. </Form.Item></Col>}
  536. {isActiveTypes && <Col><Form.Item name='activeTypes'>
  537. <Select
  538. showSearch
  539. style={{ width: 130 }}
  540. placeholder={'留存数据的类型'}
  541. filterOption={(input, option) =>
  542. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  543. }
  544. >
  545. {Object.keys(ActiveEnum).map(key => <Select.Option value={key} key={key}>{ActiveEnum[key]}</Select.Option>)}
  546. </Select>
  547. </Form.Item></Col>}
  548. {/* 不同排行榜选择 */}
  549. {isSelectRanking && <Col><Form.Item name='dateType'>
  550. <Radio.Group>
  551. <Radio.Button value="all">总排行</Radio.Button>
  552. <Radio.Button value="today">今日排行</Radio.Button>
  553. <Radio.Button value="yesterday">昨日排行</Radio.Button>
  554. <Radio.Button value="7days">7日排行</Radio.Button>
  555. <Radio.Button value="30days">30日排行</Radio.Button>
  556. </Radio.Group>
  557. </Form.Item></Col>}
  558. {/* 所在原始服务器名称 */}
  559. {isSourceServerName && <Col><Form.Item name='sourceServerName'>
  560. <Input placeholder="原始服务器名称" allowClear style={{ width: 140 }} />
  561. </Form.Item></Col>}
  562. {/* 广告区服名称 */}
  563. {isServerName && <Col><Form.Item name='serverName'>
  564. <Input placeholder="区服名称" allowClear style={{ width: 140 }} />
  565. </Form.Item></Col>}
  566. {/* 广告区服ID */}
  567. {isServerId && <Col><Form.Item name='serverId'>
  568. <Input placeholder="区服ID" allowClear style={{ width: 140 }} />
  569. </Form.Item></Col>}
  570. {/* 广告账户名称 */}
  571. {isAccount && <Col><Form.Item name='accountName'>
  572. <Input placeholder="广告账号名称" allowClear style={{ width: 140 }} />
  573. </Form.Item></Col>}
  574. {/* 广告账号ID */}
  575. {isAccountId && <Col><Form.Item name='accountId'>
  576. <Select
  577. maxTagCount={1}
  578. mode={isAccountIds ? 'multiple' : undefined}
  579. showSearch
  580. style={{ minWidth: 140 }}
  581. allowClear
  582. placeholder={'广告账号'}
  583. loading={getAccountListNew.loading || getAllOfOwnerUser.loading}
  584. filterOption={(input, option) =>
  585. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  586. }
  587. >
  588. {accountList.map(item => <Select.Option key={item.value} value={item.value}>{item.label?.toString() + (item.corporationName ? `_${item.corporationName}` : '')}</Select.Option>)}
  589. </Select>
  590. </Form.Item></Col>}
  591. {/* 公司ID */}
  592. {isCompanyId && <Col><Form.Item name='companyId'>
  593. <Select
  594. maxTagCount={1}
  595. showSearch
  596. style={{ minWidth: 140 }}
  597. allowClear
  598. placeholder={'请选择公司'}
  599. filterOption={(input, option) =>
  600. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  601. }
  602. >
  603. <Select.Option value={'1'}>公司001</Select.Option>
  604. <Select.Option value={'2'}>公司002</Select.Option>
  605. </Select>
  606. </Form.Item></Col>}
  607. {/* cp名 */}
  608. {isCpName && <Col><Form.Item name='cpName'>
  609. <Input placeholder="CP名称" allowClear style={{ width: 140 }} />
  610. </Form.Item></Col>}
  611. {/* CPID */}
  612. {isCpId && <Col><Form.Item name='cpId'>
  613. <Select
  614. maxTagCount={1}
  615. showSearch
  616. style={{ minWidth: 140 }}
  617. allowClear
  618. placeholder={'请选择CP'}
  619. filterOption={(input, option) =>
  620. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  621. }
  622. >
  623. {getCpChoiceList?.data?.map((item: { id: React.Key | null | undefined; cpName: boolean | React.ReactChild | React.ReactFragment | React.ReactPortal | null | undefined }) => <Select.Option value={item.id} key={item.id}>{item.cpName}</Select.Option>)}
  624. </Select>
  625. </Form.Item></Col>}
  626. {/* CP方订单ID */}
  627. {isCpOrderId && <Col><Form.Item name='cpOrderId'>
  628. <Input placeholder="CP订单号" style={{ width: 140 }} />
  629. </Form.Item></Col>}
  630. {/* CP通知状态 */}
  631. {isCpStatus && <Col><Form.Item name='cpStatus'>
  632. <Select
  633. maxTagCount={1}
  634. showSearch
  635. style={{ minWidth: 140 }}
  636. allowClear
  637. placeholder={'CP通知状态'}
  638. filterOption={(input, option) =>
  639. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  640. }
  641. >
  642. <Select.Option value={'1'}>待处理</Select.Option>
  643. <Select.Option value={'2'}>成功</Select.Option>
  644. <Select.Option value={'3'}>失败</Select.Option>
  645. </Select>
  646. </Form.Item></Col>}
  647. {/* 计划名称 */}
  648. {isProjectName && <Col><Form.Item name='projectName'>
  649. <Input placeholder="项目名称" allowClear style={{ width: 140 }} />
  650. </Form.Item></Col>}
  651. {/* 计划ID */}
  652. {isProjectId && <Col><Form.Item name='projectId'>
  653. <Input placeholder="项目ID" allowClear style={{ width: 140 }} />
  654. </Form.Item></Col>}
  655. {/* 广告名称 */}
  656. {isPromotionName && <Col><Form.Item name='promotionName'>
  657. <Input placeholder="广告名称" allowClear style={{ width: 140 }} />
  658. </Form.Item></Col>}
  659. {/* 广告ID */}
  660. {isProjectId1 && <Col><Form.Item name='projectId'>
  661. <Input placeholder="广告ID" allowClear style={{ width: 140 }} />
  662. </Form.Item></Col>}
  663. {/* 广告ID */}
  664. {isPromotionId && <Col><Form.Item name='promotionId'>
  665. <Input placeholder="广告ID" allowClear style={{ width: 140 }} />
  666. </Form.Item></Col>}
  667. {/* 计划ID */}
  668. {isPromotionId1 && <Col><Form.Item name='promotionId'>
  669. <Input placeholder="计划ID" allowClear style={{ width: 140 }} />
  670. </Form.Item></Col>}
  671. {/* 广告状态 */}
  672. {isAdTTStatus && <Col><Form.Item name='status'>
  673. <Select
  674. maxTagCount={1}
  675. showSearch
  676. style={{ width: 140 }}
  677. allowClear
  678. dropdownMatchSelectWidth={false}
  679. placeholder={'请选择广告状态'}
  680. filterOption={(input, option) =>
  681. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  682. }
  683. >
  684. {Object.keys(ADSTTTATUSEnum).map(key => <Select.Option value={key} key={key}>{ADSTTTATUSEnum[key]}</Select.Option>)}
  685. </Select>
  686. </Form.Item></Col>}
  687. {isAdTXStatus && <Col><Form.Item name='status'>
  688. <Select
  689. maxTagCount={1}
  690. showSearch
  691. style={{ width: 140 }}
  692. allowClear
  693. dropdownMatchSelectWidth={false}
  694. placeholder={'请选择广告状态'}
  695. filterOption={(input, option) =>
  696. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  697. }
  698. >
  699. {Object.keys(ADSTATUSEnum).map(key => <Select.Option value={key} key={key}>{ADSTATUSEnum[key]}</Select.Option>)}
  700. </Select>
  701. </Form.Item></Col>}
  702. {/* 客户端类型 */}
  703. {isDeviceType && <Col><Form.Item name='deviceType'>
  704. <Select
  705. maxTagCount={1}
  706. showSearch
  707. style={{ width: 140 }}
  708. allowClear
  709. dropdownMatchSelectWidth={false}
  710. placeholder={'请选择客户端类型'}
  711. filterOption={(input, option) =>
  712. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  713. }
  714. >
  715. {Object.keys(DeviceType).map(key => <Select.Option value={key} key={key}>{DeviceType[key]}</Select.Option>)}
  716. </Select>
  717. </Form.Item></Col>}
  718. {/* 登录类型 */}
  719. {isLoginType && <Col><Form.Item name='type'>
  720. <Select
  721. maxTagCount={1}
  722. showSearch
  723. style={{ width: 140 }}
  724. allowClear
  725. dropdownMatchSelectWidth={false}
  726. placeholder={'请选择登录类型'}
  727. filterOption={(input, option) =>
  728. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  729. }
  730. >
  731. {Object.keys(LoginType).map(key => <Select.Option value={key} key={key}>{LoginType[key]}</Select.Option>)}
  732. </Select>
  733. </Form.Item></Col>}
  734. {/* 操作设备 */}
  735. {isDevice && <Col><Form.Item name='device'>
  736. <Input placeholder="操作设备" allowClear style={{ width: 140 }} />
  737. </Form.Item></Col>}
  738. {/* 游戏名 */}
  739. {isRechargeGameName && <Col><Form.Item name='rechargeGameName'>
  740. <Input placeholder="游戏名" allowClear style={{ width: 140 }} />
  741. </Form.Item></Col>}
  742. {/* 玩家ID */}
  743. {isGameUserId && <Col><Form.Item name='gameUserId'>
  744. <Input placeholder="玩家ID" allowClear style={{ width: 140 }} />
  745. </Form.Item></Col>}
  746. {/* 游戏名 */}
  747. {isGameName && <Col><Form.Item name='gameName'>
  748. <Input placeholder="游戏名" allowClear style={{ width: 140 }} />
  749. </Form.Item></Col>}
  750. {/* 是否 开启 添加父游戏维度筛选 */}
  751. {isGameDimension && <Col><Form.Item name='gameDimension'>
  752. <Select
  753. maxTagCount={1}
  754. showSearch
  755. style={{ width: 110 }}
  756. allowClear
  757. placeholder={'游戏维度'}
  758. filterOption={(input, option) =>
  759. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  760. }
  761. onChange={() => form.setFieldsValue({ gameId: undefined })}
  762. >
  763. <Select.Option value={1}>子游戏维度</Select.Option>
  764. <Select.Option value={2}>父游戏维度</Select.Option>
  765. </Select>
  766. </Form.Item></Col>}
  767. {/* 游戏ID搜索 */}
  768. {isGameId && <Col><Form.Item name='gameId'>
  769. <Select
  770. maxTagCount={1}
  771. showSearch
  772. style={{ minWidth: 140 }}
  773. allowClear
  774. loading={getGameListNew.loading || getGameChoiceList.loading}
  775. placeholder={'请选择游戏'}
  776. filterOption={(input, option) =>
  777. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  778. }
  779. >
  780. {gameList?.map((item: any) => <Select.Option value={item.id} key={item.id}>{item.name}</Select.Option>)}
  781. </Select>
  782. </Form.Item></Col>}
  783. {isGameIds && <Col><Form.Item name='gameId'>
  784. <Select
  785. maxTagCount={1}
  786. mode="multiple"
  787. showSearch
  788. style={{ minWidth: 140 }}
  789. allowClear
  790. loading={getGameListNew.loading || getGameChoiceList.loading}
  791. placeholder={'请选择游戏'}
  792. filterOption={(input, option) =>
  793. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  794. }
  795. >
  796. {/* {gameDimension === 2 ? parentGameList?.map((item: any) => <Select.Option value={item.parent_game_id} key={item.parent_game_id} data-super-id={item.super_game_id}>{item.parent_game_name}</Select.Option>) : getGameChoiceList?.data?.map((item: any) => <Select.Option value={item.id} key={item.id}>{item.name}</Select.Option>)} */}
  797. {gameDimension === 2 ? parentGameList?.map((item: any) => <Select.Option value={item.parent_game_id} key={item.parent_game_id} data-super-id={item.super_game_id}>{item.parent_game_name}</Select.Option>) : gameList?.map((item: any) => <Select.Option value={item.id} key={item.id}>{item.name}</Select.Option>)}
  798. </Select>
  799. </Form.Item></Col>}
  800. {/* 充值游戏ID */}
  801. {isOrderGameId && <Col><Form.Item name='orderGameId'>
  802. <Select
  803. maxTagCount={1}
  804. showSearch
  805. style={{ minWidth: 140 }}
  806. allowClear
  807. placeholder={'请选择充值游戏'}
  808. filterOption={(input, option) =>
  809. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  810. }
  811. >
  812. {/* {getGameChoiceList?.data?.map((item: any) => <Select.Option value={item.id} key={item.id}>{item.name}</Select.Option>)} */}
  813. {gameList?.map((item: any) => <Select.Option value={item.id} key={item.id}>{item.name}</Select.Option>)}
  814. </Select>
  815. </Form.Item></Col>}
  816. {/* 超父游戏ID */}
  817. {isSuperParentGameId && <Col><Form.Item name='superParentGameId'>
  818. <Select
  819. maxTagCount={1}
  820. showSearch
  821. style={{ minWidth: 140 }}
  822. allowClear
  823. disabled={parentId || parentGameIds?.length > 0}
  824. placeholder={'请选择超父游戏'}
  825. filterOption={(input, option) =>
  826. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  827. }
  828. onChange={(e) => {
  829. if (isServerIds && e) {
  830. form.setFieldsValue({ serverIds: undefined })
  831. getGameServerList.run({ gameId: e })
  832. } else {
  833. getGameServerList?.data && getGameServerList.mutate([])
  834. }
  835. }}
  836. >
  837. {superGameList?.map((item: any) => <Select.Option value={item.super_game_id} key={item.super_game_id}>{item.super_game_name}</Select.Option>)}
  838. </Select>
  839. </Form.Item></Col>}
  840. {/* 父游戏ID */}
  841. {isParentId && <Col><Form.Item name='parentId'>
  842. <Select
  843. maxTagCount={1}
  844. showSearch
  845. style={{ minWidth: 140 }}
  846. allowClear
  847. disabled={superParentGameId}
  848. placeholder={'请选择父游戏'}
  849. filterOption={(input, option) =>
  850. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  851. }
  852. onChange={(e, option) => {
  853. if (isServerIds) {
  854. form.setFieldsValue({ serverIds: undefined })
  855. if (option?.['data-super-id']) {
  856. getGameServerList.run({ gameId: option['data-super-id'] })
  857. } else {
  858. getGameServerList?.data && getGameServerList.mutate([])
  859. }
  860. }
  861. if (isServerIdUn) {
  862. form.setFieldsValue({ serverId: undefined })
  863. if (option?.['data-super-id']) {
  864. getGameServerUnList.run({ gameId: option['data-super-id'] })
  865. } else {
  866. getGameServerUnList?.data && getGameServerUnList.mutate([])
  867. }
  868. }
  869. }}
  870. >
  871. {parentGameList?.map((item: any) => <Select.Option value={item.parent_game_id} key={item.parent_game_id} data-super-id={item.super_game_id}>{item.parent_game_name}</Select.Option>)}
  872. </Select>
  873. </Form.Item></Col>}
  874. {isParentIds && <Col><Form.Item name='parentGameIds'>
  875. <Select
  876. maxTagCount={1}
  877. mode="multiple"
  878. showSearch
  879. style={{ minWidth: 140 }}
  880. allowClear
  881. disabled={superParentGameId}
  882. placeholder={'请选择父游戏'}
  883. filterOption={(input, option) =>
  884. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  885. }
  886. onChange={(e, option) => {
  887. if (isServerIds) {
  888. form.setFieldsValue({ serverIds: undefined })
  889. }
  890. if (isServerIdUn) {
  891. form.setFieldsValue({ serverId: undefined })
  892. }
  893. }}
  894. >
  895. {parentGameList?.map((item: any) => <Select.Option value={item.parent_game_id} key={item.parent_game_id}>{item.parent_game_name}</Select.Option>)}
  896. </Select>
  897. </Form.Item></Col>}
  898. {(parentId || superParentGameId) && <>
  899. {/* 广告区服名称 */}
  900. {isGameServerName && <Col><Form.Item name='serverName'>
  901. <Input placeholder="区服名称" allowClear style={{ width: 140 }} disabled={serverIds?.length > 0} />
  902. </Form.Item></Col>}
  903. {/* 区服id */}
  904. {isServerIds && <Col><Form.Item name='serverIds'>
  905. <Select
  906. maxTagCount={1}
  907. mode="multiple"
  908. showSearch
  909. disabled={serverName}
  910. style={{ minWidth: 140 }}
  911. allowClear
  912. placeholder={'请选择区服'}
  913. filterOption={(input, option) =>
  914. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  915. }
  916. loading={getGameServerList.loading}
  917. >
  918. {getGameServerList?.data?.filter((item: { isSourceServer: any }) => (isIsMergeServer && ((!isMergeServer && item.isSourceServer) || (isMergeServer && !item.isSourceServer))) || !isIsMergeServer)?.map((item: any) => <Select.Option value={item.serverId} key={item.serverId}>{item.serverName}</Select.Option>)}
  919. </Select>
  920. </Form.Item></Col>}
  921. {/* 是否合服 */}
  922. {isIsMergeServer && <Col><Form.Item name='isMergeServer' valuePropName="checked">
  923. <Checkbox onChange={() => form.setFieldsValue({ serverIds: undefined })}>是否合服</Checkbox>
  924. </Form.Item></Col>}
  925. {/* 区服id */}
  926. {isServerIdUn && <Col><Form.Item name='serverId'>
  927. <Select
  928. maxTagCount={1}
  929. mode="multiple"
  930. showSearch
  931. disabled={serverName}
  932. style={{ minWidth: 140 }}
  933. allowClear
  934. placeholder={'请选择区服'}
  935. filterOption={(input, option) =>
  936. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  937. }
  938. loading={getGameServerUnList.loading}
  939. >
  940. {getGameServerUnList?.data?.filter((item: { isSourceServer: any }) => item.isSourceServer)?.map((item: any) => <Select.Option value={item.serverId} key={item.serverId}>{item.serverName}</Select.Option>)}
  941. </Select>
  942. </Form.Item></Col>}
  943. </>}
  944. {/* 游戏应用类型搜索 */}
  945. {isGameType && <Col><Form.Item name='gameType'>
  946. <Select
  947. maxTagCount={1}
  948. showSearch
  949. style={{ minWidth: 140 }}
  950. allowClear
  951. placeholder={'请选择游戏应用类型'}
  952. filterOption={(input, option) =>
  953. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  954. }
  955. >
  956. {getGameChoiceParentListType1?.data?.map((item: any) => <Select.Option value={item.id} key={item.id}>{item.name}</Select.Option>)}
  957. </Select>
  958. </Form.Item></Col>}
  959. {/* 布谷游戏应用类型搜索 */}
  960. {isBGGameClassify && <Col><Form.Item name='gameClassify'>
  961. <Select
  962. maxTagCount={1}
  963. showSearch
  964. style={{ width: 140 }}
  965. allowClear
  966. placeholder={'游戏应用类型'}
  967. filterOption={(input, option) =>
  968. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  969. }
  970. >
  971. {Object.keys(gameClassifyEnum).map(key => <Select.Option value={key} key={key}>{gameClassifyEnum[key]}</Select.Option>)}
  972. </Select>
  973. </Form.Item></Col>}
  974. {/* 游戏角色名 */}
  975. {isGameRoleName && <Col><Form.Item name='roleName'>
  976. <Input placeholder="游戏角色名" allowClear style={{ width: 140 }} />
  977. </Form.Item></Col>}
  978. {/* 游戏角色名id搜索 */}
  979. {isGameRoleId && <Col><Form.Item name='roleId'>
  980. <Input placeholder="角色ID" allowClear style={{ width: 140 }} />
  981. </Form.Item></Col>}
  982. {/* 客户微信号 */}
  983. {isWeChat && <Col><Form.Item name='weChat'>
  984. <Input placeholder="客户微信号" allowClear style={{ width: 140 }} />
  985. </Form.Item></Col>}
  986. {/* 客户微信号 */}
  987. {isWeChatCompany && <Col><Form.Item name='weChatCompany'>
  988. <Input placeholder="企业微信号" allowClear style={{ width: 140 }} />
  989. </Form.Item></Col>}
  990. {/* 是否首充 */}
  991. {isFirstRecharge && <Col><Form.Item name='isFirstRecharge'>
  992. <Select
  993. maxTagCount={1}
  994. showSearch
  995. style={{ width: 100 }}
  996. allowClear
  997. placeholder={'是否首充'}
  998. filterOption={(input, option) =>
  999. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  1000. }
  1001. >
  1002. <Select.Option value={'0'}>否</Select.Option>
  1003. <Select.Option value={'1'}>是</Select.Option>
  1004. </Select>
  1005. </Form.Item></Col>}
  1006. {/* 是否切量 */}
  1007. {isSwitch && <Col><Form.Item name='isSwitch'>
  1008. <Select
  1009. maxTagCount={1}
  1010. showSearch
  1011. style={{ minWidth: 140 }}
  1012. allowClear
  1013. placeholder={'请选择是否切量'}
  1014. filterOption={(input, option) =>
  1015. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  1016. }
  1017. >
  1018. <Select.Option value={'0'}>否</Select.Option>
  1019. <Select.Option value={'1'}>是</Select.Option>
  1020. </Select>
  1021. </Form.Item></Col>}
  1022. {/* 收款商户号 */}
  1023. {isMerchantNo && <Col><Form.Item name='merchantNo'>
  1024. <Input placeholder="收款商户号" allowClear style={{ width: 140 }} />
  1025. </Form.Item></Col>}
  1026. {/* 收款商户号 */}
  1027. {isMerchantOrderNo && <Col><Form.Item name='merchantOrderNo'>
  1028. <Input placeholder="第三方支付订单号" allowClear style={{ width: 140 }} />
  1029. </Form.Item></Col>}
  1030. {/* 收款商户号 */}
  1031. {isOrderId && <Col><Form.Item name='orderId'>
  1032. <Input placeholder="商户订单号" allowClear style={{ width: 140 }} />
  1033. </Form.Item></Col>}
  1034. {/* 支付状态 */}
  1035. {isPayStatus && <Col><Form.Item name='orderStatus'>
  1036. <Select
  1037. showSearch
  1038. style={{ width: 100 }}
  1039. allowClear
  1040. placeholder={'支付状态'}
  1041. filterOption={(input, option) =>
  1042. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  1043. }
  1044. >
  1045. {Object.keys(PayStatus).map(key => <Select.Option value={key} key={key}>{PayStatus[key]}</Select.Option>)}
  1046. </Select>
  1047. </Form.Item></Col>}
  1048. {/* 支付方式 */}
  1049. {isPayWay && <Col><Form.Item name='payWay'>
  1050. <Select
  1051. showSearch
  1052. style={{ width: 100 }}
  1053. allowClear
  1054. placeholder={'支付方式'}
  1055. filterOption={(input, option) =>
  1056. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  1057. }
  1058. >
  1059. {getPayList?.data?.map((item: any) => <Select.Option value={item.id} key={item.id}>{item.payName}</Select.Option>)}
  1060. </Select>
  1061. </Form.Item></Col>}
  1062. {/* 推广媒体 */}
  1063. {isType && <Col><Form.Item name='type'>
  1064. <Select
  1065. showSearch
  1066. style={{ width: 100 }}
  1067. allowClear
  1068. placeholder={'推广媒体'}
  1069. filterOption={(input, option) =>
  1070. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  1071. }
  1072. >
  1073. {Object.keys(TYPE).map(key => <Select.Option value={key} key={key}>{TYPE[key]}</Select.Option>)}
  1074. </Select>
  1075. </Form.Item></Col>}
  1076. {/* 产品名称 */}
  1077. {isProductName && <Col><Form.Item name='productName'>
  1078. <Input placeholder="产品名称" allowClear style={{ width: 140 }} />
  1079. </Form.Item></Col>}
  1080. {/* 注册渠道名 */}
  1081. {isRegAgent && <Col><Form.Item name='regAgent'>
  1082. <Input placeholder="注册渠道名" allowClear style={{ width: 140 }} />
  1083. </Form.Item></Col>}
  1084. {/* 渠道标识 */}
  1085. {isAgentKey && <Col><Form.Item name='agentKey'>
  1086. <Input placeholder="渠道标识" allowClear style={{ width: 140 }} />
  1087. </Form.Item></Col>}
  1088. {/* 渠道名称 */}
  1089. {isAgentName && <Col><Form.Item name='agentName'>
  1090. <Input placeholder="渠道名称" allowClear style={{ width: 140 }} />
  1091. </Form.Item></Col>}
  1092. {/* 推广渠道id */}
  1093. {isAgentId && <Col><Form.Item name='agentId'>
  1094. <Select
  1095. maxTagCount={1}
  1096. mode="multiple"
  1097. showSearch
  1098. style={{ minWidth: 140 }}
  1099. allowClear
  1100. placeholder={'请选择渠道'}
  1101. loading={getChannelChoiceList.loading || getAgentListNew.loading}
  1102. filterOption={(input, option) =>
  1103. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  1104. }
  1105. >
  1106. {agentData?.map((item: any) => <Select.Option value={item.value} key={item.value}>{item.label}</Select.Option>)}
  1107. </Select>
  1108. </Form.Item></Col>}
  1109. {/* 投放渠道名 */}
  1110. {isPutAgent && <Col><Form.Item name='putAgent'>
  1111. <Input placeholder="投放渠道名" allowClear style={{ width: 140 }} />
  1112. </Form.Item></Col>}
  1113. {/* 投手名 */}
  1114. {isSysUserName && <Col><Form.Item name='sysUserName'>
  1115. <Input placeholder="投手名" allowClear style={{ width: 140 }} />
  1116. </Form.Item></Col>}
  1117. {/* 投手ID */}
  1118. {isSysUserId && <Col><Form.Item name='pitcherId'>
  1119. <Select
  1120. maxTagCount={1}
  1121. showSearch
  1122. style={{ width: 120 }}
  1123. allowClear
  1124. loading={getSubUserWithSelfList.loading || getPitcherListNew.loading}
  1125. placeholder={'请选择投手'}
  1126. filterOption={(input, option) =>
  1127. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  1128. }
  1129. >
  1130. {userIdList.map((item: any) => <Select.Option value={item.userId} key={item.userId}>{item.nickname}</Select.Option>)}
  1131. </Select>
  1132. </Form.Item></Col>}
  1133. {isSysUserIds && <Col><Form.Item name='pitcherId'>
  1134. <Select
  1135. maxTagCount={1}
  1136. showSearch
  1137. style={{ minWidth: 120 }}
  1138. allowClear
  1139. mode="multiple"
  1140. loading={getSubUserWithSelfList.loading || getPitcherListNew.loading}
  1141. placeholder={'请选择投手'}
  1142. filterOption={(input, option) =>
  1143. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  1144. }
  1145. >
  1146. {userIdList.map((item: any) => <Select.Option value={item.userId} key={item.userId}>{item.nickname}</Select.Option>)}
  1147. </Select>
  1148. </Form.Item></Col>}
  1149. {/* 客服ID */}
  1150. {isCustomerServerId && <Col><Form.Item name='customerServerId'>
  1151. <Select
  1152. maxTagCount={1}
  1153. showSearch
  1154. style={{ width: 120 }}
  1155. allowClear
  1156. placeholder={'请选择客服'}
  1157. filterOption={(input, option) =>
  1158. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  1159. }
  1160. >
  1161. <Select.Option value={0}>未操作</Select.Option>
  1162. {customerList.map((item: any) => <Select.Option value={item.userId} key={item.userId}>{item.nickname}</Select.Option>)}
  1163. </Select>
  1164. </Form.Item></Col>}
  1165. {/* 运营ID */}
  1166. {isOperatorId && <Col><Form.Item name='operatorId'>
  1167. <Select
  1168. maxTagCount={1}
  1169. showSearch
  1170. style={{ width: 120 }}
  1171. allowClear
  1172. placeholder={'请选择运营'}
  1173. filterOption={(input, option) =>
  1174. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  1175. }
  1176. >
  1177. <Select.Option value={0}>未操作</Select.Option>
  1178. {operateList.map((item: any) => <Select.Option value={item.userId} key={item.userId}>{item.nickname}</Select.Option>)}
  1179. </Select>
  1180. </Form.Item></Col>}
  1181. {/* GSID */}
  1182. {isGsId && <Col><Form.Item name='gsId'>
  1183. <Select
  1184. maxTagCount={1}
  1185. showSearch
  1186. style={{ width: 120 }}
  1187. allowClear
  1188. placeholder={'请选择GS'}
  1189. filterOption={(input, option) =>
  1190. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  1191. }
  1192. >
  1193. <Select.Option value={0}>未操作</Select.Option>
  1194. {gsList.map((item: any) => <Select.Option value={item.userId} key={item.userId}>{item.nickname}</Select.Option>)}
  1195. </Select>
  1196. </Form.Item></Col>}
  1197. {/* 玩家账号 */}
  1198. {isUserName && <Col><Form.Item name='username'>
  1199. <Input placeholder="玩家账号" allowClear style={{ width: 140 }} />
  1200. </Form.Item></Col>}
  1201. {/* 用户id */}
  1202. {isUserId && <Col><Form.Item name='userId'>
  1203. <Input placeholder="用户ID" allowClear style={{ width: 140 }} />
  1204. </Form.Item></Col>}
  1205. {/* 玩家昵称 */}
  1206. {isNickname && <Col><Form.Item name='nickname'>
  1207. <Input placeholder="玩家昵称" allowClear style={{ width: 140 }} />
  1208. </Form.Item></Col>}
  1209. {/* 绑定手机 */}
  1210. {isMobile && <Col><Form.Item name='mobile'>
  1211. <Input placeholder="绑定手机" allowClear style={{ width: 140 }} />
  1212. </Form.Item></Col>}
  1213. {/* 注册IP */}
  1214. {isRegIp && <Col><Form.Item name='regIp'>
  1215. <Input placeholder="注册IP" allowClear style={{ width: 140 }} />
  1216. </Form.Item></Col>}
  1217. {/* 注册IP */}
  1218. {isIp && <Col><Form.Item name='ip'>
  1219. <Input placeholder="IP" allowClear style={{ width: 140 }} />
  1220. </Form.Item></Col>}
  1221. {/* 注册IP */}
  1222. {isRankingNum && <Col><Form.Item name='rankingNum'>
  1223. <InputNumber placeholder="排名范围" min={1} />
  1224. </Form.Item></Col>}
  1225. {/* 是否充值 */}
  1226. {isIsRecharge && <Col><Form.Item name='isRecharge'>
  1227. <Select
  1228. showSearch
  1229. style={{ width: 98 }}
  1230. allowClear
  1231. placeholder={'是否充值'}
  1232. filterOption={(input, option) =>
  1233. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  1234. }
  1235. >
  1236. <Select.Option value={false}>否</Select.Option>
  1237. <Select.Option value={true}>是</Select.Option>
  1238. </Select>
  1239. </Form.Item></Col>}
  1240. {/* 实名状态 */}
  1241. {isIsAuth && <Col><Form.Item name='isAuth'>
  1242. <Select
  1243. showSearch
  1244. allowClear
  1245. style={{ width: 98 }}
  1246. placeholder={'实名状态'}
  1247. filterOption={(input, option) =>
  1248. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  1249. }
  1250. >
  1251. <Select.Option value={false}>未实名</Select.Option>
  1252. <Select.Option value={true}>已实名</Select.Option>
  1253. </Select>
  1254. </Form.Item></Col>}
  1255. {/* 是否绑定手机 */}
  1256. {isIsBindMobile && <Col><Form.Item name='isBindMobile'>
  1257. <Select
  1258. showSearch
  1259. allowClear
  1260. style={{ width: 126 }}
  1261. placeholder={'是否绑定手机'}
  1262. filterOption={(input, option) =>
  1263. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  1264. }
  1265. >
  1266. <Select.Option value={false}>未绑定</Select.Option>
  1267. <Select.Option value={true}>已绑定</Select.Option>
  1268. </Select>
  1269. </Form.Item></Col>}
  1270. {/* 玩家状态 */}
  1271. {isUserStatus && <Col><Form.Item name='userStatus'>
  1272. <Select
  1273. showSearch
  1274. allowClear
  1275. style={{ width: 110 }}
  1276. placeholder={'玩家状态'}
  1277. filterOption={(input, option) =>
  1278. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  1279. }
  1280. >
  1281. <Select.Option value={'1'}>试玩</Select.Option>
  1282. <Select.Option value={'2'}>正常</Select.Option>
  1283. <Select.Option value={'3'}>冻结</Select.Option>
  1284. </Select>
  1285. </Form.Item></Col>}
  1286. {/* 是否创角 */}
  1287. {isCreateRole && <Col><Form.Item name='createRole'>
  1288. <Select
  1289. showSearch
  1290. allowClear
  1291. style={{ width: 110 }}
  1292. placeholder={'是否创角'}
  1293. filterOption={(input, option) =>
  1294. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  1295. }
  1296. >
  1297. <Select.Option value={true}>是</Select.Option>
  1298. <Select.Option value={false}>否</Select.Option>
  1299. </Select>
  1300. </Form.Item></Col>}
  1301. {/* 是否转端 */}
  1302. {isIsChange && <Col><Form.Item name='isChange'>
  1303. <Select
  1304. showSearch
  1305. allowClear
  1306. style={{ width: 110 }}
  1307. placeholder={'是否转端'}
  1308. filterOption={(input, option) =>
  1309. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  1310. }
  1311. >
  1312. <Select.Option value="2">未操作</Select.Option>
  1313. <Select.Option value="1">是</Select.Option>
  1314. <Select.Option value="0">不转端</Select.Option>
  1315. </Select>
  1316. </Form.Item></Col>}
  1317. {/* 邮件是否发送 */}
  1318. {isIsSendMail && <Col><Form.Item name='isSendMail'>
  1319. <Select
  1320. showSearch
  1321. allowClear
  1322. style={{ width: 140 }}
  1323. placeholder={'邮件是否发送'}
  1324. filterOption={(input, option) =>
  1325. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  1326. }
  1327. >
  1328. <Select.Option value="1">发送</Select.Option>
  1329. <Select.Option value="0">不发送</Select.Option>
  1330. </Select>
  1331. </Form.Item></Col>}
  1332. {/* 是否退游 */}
  1333. {isRemoveGameForSystem && <Col><Form.Item name='isRemoveGameForSystem'>
  1334. <Select
  1335. showSearch
  1336. allowClear
  1337. placeholder={'系统判定是否退游'}
  1338. filterOption={(input, option) =>
  1339. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  1340. }
  1341. >
  1342. <Select.Option value="1">退游</Select.Option>
  1343. <Select.Option value="0">未退游</Select.Option>
  1344. </Select>
  1345. </Form.Item></Col>}
  1346. {/* 是否退游 */}
  1347. {isRemoveGame && <Col><Form.Item name='isRemoveGame'>
  1348. <Select
  1349. showSearch
  1350. allowClear
  1351. style={{ width: 110 }}
  1352. placeholder={'是否退游'}
  1353. filterOption={(input, option) =>
  1354. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  1355. }
  1356. >
  1357. <Select.Option value="2">未操作</Select.Option>
  1358. <Select.Option value="1">退游</Select.Option>
  1359. <Select.Option value="0">未退游</Select.Option>
  1360. </Select>
  1361. </Form.Item></Col>}
  1362. {/* 是否添加企微 */}
  1363. {isAddCorpWechat && <Col><Form.Item name='isAddCorpWechat'>
  1364. <Select
  1365. showSearch
  1366. allowClear
  1367. style={{ width: 135 }}
  1368. placeholder={'是否添加企微'}
  1369. filterOption={(input, option) =>
  1370. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  1371. }
  1372. >
  1373. <Select.Option value="2">未操作</Select.Option>
  1374. <Select.Option value="1">是</Select.Option>
  1375. <Select.Option value="0">否</Select.Option>
  1376. </Select>
  1377. </Form.Item></Col>}
  1378. {/* 是否唤醒 */}
  1379. {isWakeUp && <Col><Form.Item name='isWakeUp'>
  1380. <Select
  1381. showSearch
  1382. allowClear
  1383. style={{ width: 110 }}
  1384. placeholder={'是否唤醒'}
  1385. filterOption={(input, option) =>
  1386. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  1387. }
  1388. >
  1389. <Select.Option value="2">未操作</Select.Option>
  1390. <Select.Option value="1">是</Select.Option>
  1391. <Select.Option value="0">否</Select.Option>
  1392. </Select>
  1393. </Form.Item></Col>}
  1394. {/* vip等级 */}
  1395. {isVipLevel && <Col><Form.Item name='vipLevel'>
  1396. <Select
  1397. showSearch
  1398. allowClear
  1399. maxTagCount={1}
  1400. mode="multiple"
  1401. style={{ minWidth: 98 }}
  1402. placeholder={'角色VIP'}
  1403. filterOption={(input, option) =>
  1404. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  1405. }
  1406. >
  1407. {Array(getVipLevel?.data || 0).fill('').map((_item, index) => <Select.Option value={index + 1} key={index + 1}>{index + 1}</Select.Option>)}
  1408. </Select>
  1409. </Form.Item></Col>}
  1410. {/* 操作系统 */}
  1411. {isOs && <Col><Form.Item name='os'>
  1412. <Select
  1413. maxTagCount={1}
  1414. showSearch
  1415. style={{ width: 110 }}
  1416. allowClear
  1417. placeholder={'操作系统'}
  1418. filterOption={(input, option) =>
  1419. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  1420. }
  1421. >
  1422. {getUserSystemTypeChoiceList?.data?.map((item: any) => <Select.Option value={item.os} key={item.os}>{item.os}</Select.Option>)}
  1423. </Select>
  1424. </Form.Item></Col>}
  1425. {/* 支付状态 */}
  1426. {isBackStatus && <Col><Form.Item name='backStatus'>
  1427. <Select
  1428. showSearch
  1429. style={{ width: 100 }}
  1430. allowClear
  1431. placeholder={'回传状态'}
  1432. filterOption={(input, option) =>
  1433. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  1434. }
  1435. >
  1436. <Select.Option value={-1}>回传失败</Select.Option>
  1437. <Select.Option value={0}>未回传</Select.Option>
  1438. <Select.Option value={1}>回传成功</Select.Option>
  1439. <Select.Option value={2}>部分成功</Select.Option>
  1440. </Select>
  1441. </Form.Item></Col>}
  1442. {/* 玩家最新染色归因投手 */}
  1443. {isUserLastPitcherId && <Col><Form.Item name='userLastPitcherId'>
  1444. <Select
  1445. maxTagCount={1}
  1446. showSearch
  1447. style={{ width: 160 }}
  1448. allowClear
  1449. loading={getSubUserWithSelfList.loading || getPitcherListNew.loading}
  1450. placeholder={'最新染色归因投手'}
  1451. filterOption={(input, option) =>
  1452. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  1453. }
  1454. >
  1455. {userIdList.map((item: any) => <Select.Option value={item.userId} key={item.userId}>{item.nickname}</Select.Option>)}
  1456. </Select>
  1457. </Form.Item></Col>}
  1458. {/* 玩家最新染色渠道ID */}
  1459. {isUserLastRegAgentId && <Col><Form.Item name='userLastRegAgentId'>
  1460. <Select
  1461. showSearch
  1462. style={{ minWidth: 140 }}
  1463. allowClear
  1464. placeholder={'玩家最新染色渠道'}
  1465. loading={getChannelChoiceList.loading || getAgentListNew.loading}
  1466. filterOption={(input, option) =>
  1467. (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
  1468. }
  1469. >
  1470. {agentData?.map((item: any) => <Select.Option value={item.value} key={item.value}>{item.label}</Select.Option>)}
  1471. </Select>
  1472. </Form.Item></Col>}
  1473. {/* 玩家最新染色时间 */}
  1474. {isUserLastRegTime && <Col><Form.Item name='userLastRegTime'>
  1475. <DatePicker placeholder={'最新染色时间'} />
  1476. </Form.Item></Col>}
  1477. {/* 用户注册日期搜索 */}
  1478. {isRegDay && <Col><Form.Item name='regDay'>
  1479. <DatePicker.RangePicker style={{ width: 230 }} placeholder={['注册开始日期', '注册结束日期']} {...isRegDay} />
  1480. </Form.Item></Col>}
  1481. {/* 消耗日期 搜索 */}
  1482. {isConsumeDay && <Col><Form.Item name='consumeDay'>
  1483. <DatePicker.RangePicker style={{ width: 230 }} placeholder={['消耗开始日期', '消耗结束日期']} {...isConsumeDay} />
  1484. </Form.Item></Col>}
  1485. {/* 消耗日期 搜索 */}
  1486. {isBeginDay && <Col><Form.Item name='beginDay'>
  1487. <DatePicker.RangePicker style={{ width: 230 }} placeholder={['开始日期', '结束日期']} />
  1488. </Form.Item></Col>}
  1489. {/* 订单创建日期搜索 */}
  1490. {isCreateDay && <Col><Form.Item name='createDay'>
  1491. <DatePicker.RangePicker style={{ width: 230 }} placeholder={['订单创建开始日期', '订单创建结束日期']} {...isCreateDay} />
  1492. </Form.Item></Col>}
  1493. {isCreateDayXz && <Col><Form.Item name='createDay'>
  1494. <DatePicker.RangePicker style={{ width: 230 }} disabledDate={disabledDate} placeholder={['订单创建开始日期', '订单创建结束日期']} {...isCreateDay} />
  1495. </Form.Item></Col>}
  1496. {/* 充值日期搜索 */}
  1497. {rechargeDay && <Col><Form.Item name='rechargeDay'>
  1498. <DatePicker.RangePicker style={{ width: 230 }} placeholder={['充值开始日期', '充值结束日期']} {...rechargeDay} />
  1499. </Form.Item></Col>}
  1500. {/* 单个充值日期搜索 */}
  1501. {payTimeDay && <Col><Form.Item name='payTime'>
  1502. <DatePicker.RangePicker style={{ width: 230 }} placeholder={['支付开始日期', '支付结束日期']} {...payTimeDay} />
  1503. </Form.Item></Col>}
  1504. {/* 单个充值日期搜索 */}
  1505. {placeAnOrderDay && <Col><Form.Item name='placeAnOrderTime'>
  1506. <DatePicker.RangePicker style={{ width: 230 }} placeholder={['下单开始日期', '下单结束日期']} {...placeAnOrderDay} />
  1507. </Form.Item></Col>}
  1508. {/* 开服日期搜索 */}
  1509. {isServerDay && <Col><Form.Item name='serverDay'>
  1510. <DatePicker.RangePicker style={{ width: 230 }} placeholder={['开服开始日期', '开服结束日期']} {...isServerDay} />
  1511. </Form.Item></Col>}
  1512. {/* 角色创建日期搜索 */}
  1513. {isCreateRoleDay && <Col><Form.Item name='createRoleDay'>
  1514. <DatePicker.RangePicker style={{ width: 230 }} placeholder={['角色创建开始日期', '角色创建结束日期']} {...isCreateRoleDay} />
  1515. </Form.Item></Col>}
  1516. {/* 单个充值日期搜索 */}
  1517. {isRechargeDate && <Col><Form.Item name='rechargeDate'>
  1518. <DatePicker placeholder={'充值日期'} />
  1519. </Form.Item></Col>}
  1520. {/* 单个充值日期搜索 */}
  1521. {isPayIntervalTime && <Col><Form.Item name='regPayIntervalTime'>
  1522. <IntervalTime {...isPayIntervalTime} />
  1523. </Form.Item></Col>}
  1524. {isRoleCount && <Col><Form.Item name='roleCount'>
  1525. <IntervalTime {...isRoleCount} />
  1526. </Form.Item></Col>}
  1527. {/* 创角24小时内单笔充值金额 */}
  1528. {isRechargeAmountWithin24h && <Col><Form.Item name='roleCount'>
  1529. <Space size={0}>
  1530. <Form.Item name={'rechargeAmountWithin24hUnit'} noStyle>
  1531. <Select placeholder="条件" style={{ width: 70 }} allowClear>
  1532. <Select.Option value=">=">{`>=`}</Select.Option>
  1533. <Select.Option value="<=">{`<=`}</Select.Option>
  1534. {/* <Select.Option value="=">{`=`}</Select.Option>
  1535. <Select.Option value=">">{`>`}</Select.Option>
  1536. <Select.Option value="<">{`<`}</Select.Option> */}
  1537. </Select>
  1538. </Form.Item>
  1539. <Form.Item name={'rechargeAmountWithin24h'} noStyle>
  1540. <Input placeholder="创角24小时内单笔充值金额" allowClear />
  1541. </Form.Item>
  1542. <Tooltip title={'创角24小时内单笔充值金额,条件默认">="'}>
  1543. <QuestionCircleOutlined style={{ marginLeft: 10 }} />
  1544. </Tooltip>
  1545. </Space>
  1546. </Form.Item></Col>}
  1547. {/* 创角24小时以内累计充值金额 */}
  1548. {isRechargeTotalAmountWithin24h && <Col><Form.Item name='roleCount'>
  1549. <Space size={0}>
  1550. <Form.Item name={'rechargeTotalAmountWithin24hUnit'} noStyle>
  1551. <Select placeholder="条件" style={{ width: 70 }} allowClear>
  1552. <Select.Option value=">=">{`>=`}</Select.Option>
  1553. <Select.Option value="<=">{`<=`}</Select.Option>
  1554. <Select.Option value="=">{`=`}</Select.Option>
  1555. <Select.Option value=">">{`>`}</Select.Option>
  1556. <Select.Option value="<">{`<`}</Select.Option>
  1557. </Select>
  1558. </Form.Item>
  1559. <Form.Item name={'rechargeTotalAmountWithin24h'} noStyle>
  1560. <Input placeholder="创角24小时以内累计充值金额" allowClear />
  1561. </Form.Item>
  1562. <Tooltip title={'创角24小时以内累计充值金额,条件默认">="'}>
  1563. <QuestionCircleOutlined style={{ marginLeft: 10 }} />
  1564. </Tooltip>
  1565. </Space>
  1566. </Form.Item></Col>}
  1567. <Col>
  1568. <Space>
  1569. <Button type="primary" htmlType="submit">搜索</Button>
  1570. <Button onClick={() => form.resetFields()}>重置</Button>
  1571. </Space>
  1572. </Col>
  1573. </Row>
  1574. </Form>
  1575. }
  1576. export default React.memo(QueryForm)