applyIbDialog.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717
  1. <template>
  2. <cwg-popup :title="t(title)" :visible="visible" @close="closeDia" @confirm="confirmDia" :width="'900px'">
  3. <view class="dia-content">
  4. <uni-forms ref="formRef" labelWidth="200">
  5. <uni-forms-item v-if="isFormApplyIb" :label="t('Ib.Custom.Manage3') + ':'" prop="customerId">
  6. <cwg-combox v-model:value="addAgentForm.customerId" :options="customerList"
  7. :placeholder="t('placeholder.choose')" filterable @change="changeCustomer"
  8. style="max-width: 280px" />
  9. </uni-forms-item>
  10. <uni-loading v-if="laoding" />
  11. <view v-else class="commission-table-container" v-if="addAgentForm.customerId">
  12. <table class="commission-table">
  13. <thead>
  14. <tr>
  15. <th class="status-col">{{ t('Ib.Custom.Status') }}</th>
  16. <th class="group-col"></th>
  17. <th class="type-col"></th>
  18. <th class="value-col">METAL</th>
  19. <th class="value-col">FX</th>
  20. <th class="value-col">ENERGY</th>
  21. <th class="value-col">CFD</th>
  22. <th class="value-col">INDEX</th>
  23. <!-- <th>CRYPTO</th>-->
  24. </tr>
  25. </thead>
  26. <tbody v-for="(group, gIndex) in commissionTemplateTableData" :key="gIndex">
  27. <tr v-for="(item, iIndex) in group.items" :key="iIndex">
  28. <td v-if="iIndex === 0" :rowspan="group.items.length" class="center-td">
  29. <switch :checked="group.isOpen" @change="(e) => onGroupSwitchChange(e, group)" color="#2b5aed"
  30. style="transform:scale(0.7)" />
  31. </td>
  32. <td v-if="iIndex === 0" :rowspan="group.items.length" class="center-td group-name-td">
  33. {{ group.accountGroup }}
  34. </td>
  35. <td class="center-td type-td">
  36. {{ item.type }}
  37. </td>
  38. <td class="value-col">
  39. <cwg-combox v-model:value="item.energy" :options="formatOptions(item.energyOptions)"
  40. :placeholder="t('placeholder.choose')" />
  41. </td>
  42. <td class="value-col">
  43. <cwg-combox v-model:value="item.forex" :options="formatOptions(item.forexOptions)"
  44. :placeholder="t('placeholder.choose')" />
  45. </td>
  46. <td class="value-col">
  47. <cwg-combox v-model:value="item.energy2" :options="formatOptions(item.energy2Options)"
  48. :placeholder="t('placeholder.choose')" />
  49. </td>
  50. <td class="value-col">
  51. <cwg-combox v-model:value="item.index" :options="formatOptions(item.indexOptions)"
  52. :placeholder="t('placeholder.choose')" />
  53. </td>
  54. <td class="value-col">
  55. <cwg-combox v-model:value="item.metal" :options="formatOptions(item.metalOptions)"
  56. :placeholder="t('placeholder.choose')" />
  57. </td>
  58. <!-- <td>-->
  59. <!-- <cwg-combox v-model:value="item.crypto" :options="formatOptions(item.cryptoOptions)"-->
  60. <!-- :placeholder="t('placeholder.choose')" />-->
  61. <!-- </td>-->
  62. </tr>
  63. </tbody>
  64. </table>
  65. </view>
  66. <!-- <view v-else style="height: 50px"/>-->
  67. </uni-forms>
  68. </view>
  69. </cwg-popup>
  70. </template>
  71. <script setup lang="ts">
  72. import { ref, reactive, computed, onMounted, onUnmounted, watch } from 'vue'
  73. import { onLoad } from '@dcloudio/uni-app'
  74. import { useI18n } from 'vue-i18n' // uni-app 中已集成,但需配置
  75. import { customApi } from '@/service/custom'
  76. import { financialApi } from '@/service/financial'
  77. import Config from '@/config/index'
  78. import { ibApi } from '@/service/ib'
  79. import useUserStore from '@/stores/use-user-store'
  80. import { lang } from '@/composables/config'
  81. const props = defineProps({
  82. paramsType: {
  83. type: String,
  84. default: '',
  85. },
  86. title: {
  87. type: String,
  88. default: 'Ib.Report.Title5',
  89. },
  90. // 是否显示弹窗
  91. visible: {
  92. type: Boolean,
  93. default: false,
  94. },
  95. // 详情tableData
  96. detail: { type: Object, default: () => ({}) },
  97. // 是否需要选择客户
  98. isFormApplyIb: {
  99. type: Boolean,
  100. default: false,
  101. },
  102. })
  103. const { Code, Host80 } = Config
  104. const { t } = useI18n()
  105. const formRef = ref(null)
  106. const addAgentForm = ref({
  107. customerId: '',
  108. })
  109. const customerList = ref([])
  110. const commissionAccountTypeSettings = ref({
  111. ecn: { selectedIndex: null, selectedItem: null, loginType: '2' },
  112. standard: { selectedIndex: null, selectedItem: null, loginType: '7' },
  113. cent: { selectedIndex: null, selectedItem: null, loginType: '8' },
  114. })
  115. const commissionAccountTypeData = ref({
  116. ecn: [],
  117. standard: [],
  118. cent: [],
  119. })
  120. const commissionTemplateTableData = ref<any[]>([])
  121. const emit = defineEmits(['close', 'confirm'])
  122. const laoding = ref(false)
  123. onMounted(() => {
  124. // initCommissionTemplateData(29634)
  125. })
  126. watch(() => props.visible, async (val) => {
  127. if (val) {
  128. laoding.value = true
  129. if (props.isFormApplyIb) {
  130. await loadCustomerList()
  131. }
  132. if (props.detail.id) {
  133. let params = {
  134. customId: props.detail.id,
  135. }
  136. addAgentForm.value = {
  137. customerId: props.detail.id,
  138. }
  139. if (props.paramsType == 'vietnam') {
  140. params = {
  141. agentId: props.detail.id,
  142. }
  143. }
  144. await initCommissionTemplateData(params)
  145. }
  146. laoding.value = false
  147. }
  148. })
  149. const getSpreadLabelCommission = (item) => {
  150. return item.groupName || ''
  151. }
  152. const handleCommissionAccountTypeChange = (type, loginType) => {
  153. const setting = commissionAccountTypeSettings.value[type]
  154. const availableSpreads = getAvailableSpreadsCommission(loginType)
  155. if (
  156. setting.selectedIndex !== null &&
  157. setting.selectedIndex !== undefined
  158. ) {
  159. setting.selectedItem = availableSpreads[setting.selectedIndex] || null
  160. } else {
  161. setting.selectedItem = null
  162. }
  163. }
  164. const generateOptions = (currentValue) => {
  165. const options = []
  166. for (let i = 0; i <= currentValue; i++) {
  167. options.push(i)
  168. }
  169. return options
  170. }
  171. // 格式化 options 为 combox 期望的格式
  172. const formatOptions = (opts) => {
  173. if (!opts || !Array.isArray(opts)) return []
  174. return opts.map(val => ({ text: String(val), value: val }))
  175. }
  176. const toggleGroup = (group) => {
  177. group.isOpen = !group.isOpen
  178. }
  179. const onGroupSwitchChange = (e, group) => {
  180. group.isOpen = e.detail.value
  181. }
  182. const initCommissionTemplateData = async (params) => {
  183. try {
  184. const res = await ibApi.getVietnamPoints(params)
  185. if (res.code == Code.StatusOK && res.data && Array.isArray(res.data)) {
  186. const groupedData: Record<string, any[]> = {}
  187. res.data.forEach((group: any) => {
  188. const accountGroup = group.groupCategoryName || '--'
  189. const isOpen = group.valid !== undefined ? group.valid : 1
  190. if (!groupedData[accountGroup]) {
  191. groupedData[accountGroup] = []
  192. }
  193. const rebates = Array.isArray(group.rebates) ? group.rebates : []
  194. const superRebates = Array.isArray(group.superRebates) ? group.superRebates : []
  195. if (superRebates.length > 0) {
  196. const rebateRow: any = {
  197. accountGroup,
  198. groupCategoryId: group.groupCategoryId,
  199. dataType: 'rebates',
  200. type: group.rebateTypeName || 'Point',
  201. isOpen,
  202. forex: 0,
  203. index: 0,
  204. metal: 0,
  205. energy: 0,
  206. energy2: 0,
  207. energy2Max: 0,
  208. forex1: 0,
  209. index1: 0,
  210. metal1: 0,
  211. energy1: 0,
  212. // crypto: 0,
  213. // crypto1: 0,
  214. }
  215. rebates.forEach((rebate: any) => {
  216. if (rebate.symbolCategory === 1) rebateRow.forex = rebate.point || 0
  217. else if (rebate.symbolCategory === 2) rebateRow.index = rebate.point || 0
  218. else if (rebate.symbolCategory === 3) rebateRow.metal = rebate.point || 0
  219. else if (rebate.symbolCategory === 4) rebateRow.energy = rebate.point || 0
  220. else if (rebate.symbolCategory === 5) rebateRow.energy2 = rebate.point || 0
  221. // else if (rebate.symbolCategory === 6) rebateRow.crypto = rebate.point || 0
  222. })
  223. superRebates.forEach((rebate: any) => {
  224. if (rebate.symbolCategory === 1) rebateRow.forex1 = rebate.point || 0
  225. else if (rebate.symbolCategory === 2) rebateRow.index1 = rebate.point || 0
  226. else if (rebate.symbolCategory === 3) rebateRow.metal1 = rebate.point || 0
  227. else if (rebate.symbolCategory === 4) rebateRow.energy1 = rebate.point || 0
  228. else if (rebate.symbolCategory === 5) rebateRow.energy2Max = rebate.point || 0
  229. // else if (rebate.symbolCategory === 6) rebateRow.crypto1 = rebate.point || 0
  230. })
  231. rebateRow.forexOptions = generateOptions(rebateRow.forex1)
  232. rebateRow.indexOptions = generateOptions(rebateRow.index1)
  233. rebateRow.metalOptions = generateOptions(rebateRow.metal1)
  234. rebateRow.energyOptions = generateOptions(rebateRow.energy1)
  235. rebateRow.energy2Options = generateOptions(rebateRow.energy2Max)
  236. // rebateRow.cryptoOptions = generateOptions(rebateRow.crypto1)
  237. groupedData[accountGroup].push(rebateRow)
  238. }
  239. const commissions = Array.isArray(group.commissions) ? group.commissions : []
  240. const superCommissions = Array.isArray(group.superCommissions) ? group.superCommissions : []
  241. if (superCommissions.length > 0) {
  242. const commissionRow: any = {
  243. accountGroup,
  244. groupCategoryId: group.groupCategoryId,
  245. dataType: 'commissions',
  246. type: group.commissionTypeName || 'Commission',
  247. isOpen,
  248. forex: 0,
  249. index: 0,
  250. metal: 0,
  251. energy: 0,
  252. energy2: 0,
  253. energy2Max: 0,
  254. forex1: 0,
  255. index1: 0,
  256. metal1: 0,
  257. energy1: 0,
  258. // crypto: 0,
  259. // crypto1: 0,
  260. }
  261. commissions.forEach((comm: any) => {
  262. if (comm.symbolCategory === 1) commissionRow.forex = comm.point || 0
  263. else if (comm.symbolCategory === 2) commissionRow.index = comm.point || 0
  264. else if (comm.symbolCategory === 3) commissionRow.metal = comm.point || 0
  265. else if (comm.symbolCategory === 4) commissionRow.energy = comm.point || 0
  266. else if (comm.symbolCategory === 5) commissionRow.energy2 = comm.point || 0
  267. // else if (comm.symbolCategory === 6) commissionRow.crypto = comm.point || 0
  268. })
  269. superCommissions.forEach((comm: any) => {
  270. if (comm.symbolCategory === 1) commissionRow.forex1 = comm.point || 0
  271. else if (comm.symbolCategory === 2) commissionRow.index1 = comm.point || 0
  272. else if (comm.symbolCategory === 3) commissionRow.metal1 = comm.point || 0
  273. else if (comm.symbolCategory === 4) commissionRow.energy1 = comm.point || 0
  274. else if (comm.symbolCategory === 5) commissionRow.energy2Max = comm.point || 0
  275. // else if (comm.symbolCategory === 6) commissionRow.crypto1 = comm.point || 0
  276. })
  277. commissionRow.forexOptions = generateOptions(commissionRow.forex1)
  278. commissionRow.indexOptions = generateOptions(commissionRow.index1)
  279. commissionRow.metalOptions = generateOptions(commissionRow.metal1)
  280. commissionRow.energyOptions = generateOptions(commissionRow.energy1)
  281. commissionRow.energy2Options = generateOptions(commissionRow.energy2Max)
  282. // commissionRow.cryptoOptions = generateOptions(commissionRow.crypto1)
  283. groupedData[accountGroup].push(commissionRow)
  284. }
  285. })
  286. // 将按 accountGroup 聚合后的对象转换为包含 accountGroup 和 items 数组的结构
  287. const finalData = Object.keys(groupedData).map((accountGroup) => {
  288. return {
  289. accountGroup,
  290. // 默认不展开
  291. isOpen: groupedData[accountGroup].some(item => item.isOpen == 1) || false,
  292. items: groupedData[accountGroup],
  293. }
  294. }).filter(item => item.items.length > 0)
  295. console.log('tableData', finalData)
  296. commissionTemplateTableData.value = finalData
  297. return
  298. }
  299. commissionTemplateTableData.value = []
  300. uni.showToast({
  301. title: res.msg || t('Ib.Custom.GetDataFailed'),
  302. icon: 'none',
  303. })
  304. } catch (error) {
  305. commissionTemplateTableData.value = []
  306. uni.showToast({ title: t('Ib.Custom.GetDataFailed'), icon: 'none' })
  307. }
  308. }
  309. // 加载客户列表
  310. const loadCustomerList = async () => {
  311. try {
  312. let res = await ibApi.customerSubsList({
  313. ibStatus: 1,
  314. })
  315. if (res.code == Code.StatusOK) {
  316. customerList.value = res.data.map(item => ({
  317. text: `${item.name || ''}-${item.cId}`,
  318. value: item.id || '',
  319. cId: item.cId, // 保存 cId 供后续提交使用
  320. })) || []
  321. } else {
  322. uni.showToast({ title: res.msg, icon: 'none' })
  323. customerList.value = []
  324. }
  325. } catch (error) {
  326. console.error('加载客户列表失败:', error)
  327. customerList.value = []
  328. } finally {
  329. }
  330. }
  331. // 客户选择改变时触发
  332. const changeCustomer = async (val) => {
  333. if (val) {
  334. laoding.value = true
  335. await initCommissionTemplateData({ customId: val })
  336. laoding.value = false
  337. } else {
  338. commissionTemplateTableData.value = []
  339. }
  340. }
  341. // 构建佣金模板points数据
  342. const buildCommissionTemplatePoints = () => {
  343. const points: any[] = []
  344. const groupedData: Record<string, any> = {}
  345. // 由于现在的 commissionTemplateTableData 是 { accountGroup, isOpen, items } 嵌套结构,需要双层遍历提取
  346. commissionTemplateTableData.value.forEach((groupObj) => {
  347. groupObj.items.forEach((row: any) => {
  348. const groupId = row.groupCategoryId
  349. if (!groupedData[groupId]) {
  350. groupedData[groupId] = {
  351. groupCategoryId: groupId,
  352. commissions: [],
  353. rebates: [],
  354. valid: groupObj.isOpen ? 1 : 0,
  355. }
  356. }
  357. // 根据dataType添加到对应的数组
  358. const pointList = row.dataType === 'commissions'
  359. ? groupedData[groupId].commissions
  360. : groupedData[groupId].rebates
  361. // 添加各个symbolCategory的数据
  362. if (row.forex !== undefined && row.forex !== null) {
  363. pointList.push({ symbolCategory: 1, point: row.forex }) // FX
  364. }
  365. if (row.index !== undefined && row.index !== null) {
  366. pointList.push({ symbolCategory: 2, point: row.index }) // CFD
  367. }
  368. if (row.metal !== undefined && row.metal !== null) {
  369. pointList.push({ symbolCategory: 3, point: row.metal }) // INDEX
  370. }
  371. if (row.energy !== undefined && row.energy !== null) {
  372. pointList.push({ symbolCategory: 4, point: row.energy }) // METAL
  373. }
  374. if (row.energy2 !== undefined && row.energy2 !== null) {
  375. pointList.push({ symbolCategory: 5, point: row.energy2 }) // Energy
  376. }
  377. // if (row.crypto !== undefined && row.crypto !== null) {
  378. // pointList.push({ symbolCategory: 6, point: row.crypto }) // Crypto
  379. // }
  380. })
  381. })
  382. // 转换为数组格式
  383. Object.keys(groupedData).forEach((groupId) => {
  384. const group = groupedData[groupId]
  385. if (group.commissions.length > 0 || group.rebates.length > 0) {
  386. points.push({
  387. groupCategoryId: group.groupCategoryId,
  388. commissions: group.commissions.length > 0 ? group.commissions : undefined,
  389. rebates: group.rebates.length > 0 ? group.rebates : undefined,
  390. valid: group.valid,
  391. })
  392. }
  393. })
  394. return points
  395. }
  396. const toVerified = () => {
  397. // 确认按钮点击事件
  398. emit('confirm')
  399. }
  400. const closeDia = () => {
  401. addAgentForm.value = {
  402. customerId: '',
  403. }
  404. commissionTemplateTableData.value = []
  405. emit('close')
  406. }
  407. const confirmDia = async () => {
  408. // 越南分配也用,看怎么调整提交接口
  409. let customId, cId
  410. // 越南佣金分配不用判断customId
  411. if (props.paramsType !== 'vietnam') {
  412. if (!props.isFormApplyIb) {
  413. if (!props.detail.id) {
  414. uni.showToast({ title: t('Ib.Custom.CustomerNotExist'), icon: 'none' })
  415. return
  416. }
  417. const applyIbRowData: any = props.detail || {}
  418. customId = applyIbRowData.id
  419. cId = applyIbRowData.cId
  420. } else {
  421. // 从其他地方打开,需要选择客户
  422. if (!addAgentForm.value.customerId) {
  423. uni.showToast({ title: t('placeholder.choose'), icon: 'none' })
  424. return
  425. }
  426. // 从客户列表中找到选中的客户对象
  427. const selectedCustomer: any = customerList.value.find(
  428. (item: any) => item.value === addAgentForm.value.customerId,
  429. )
  430. if (!selectedCustomer) {
  431. uni.showToast({ title: t('Ib.Custom.CustomerNotFound'), icon: 'none' })
  432. return
  433. }
  434. customId = selectedCustomer.value
  435. cId = selectedCustomer.cId
  436. }
  437. }
  438. try {
  439. // 构建points数据
  440. const points = buildCommissionTemplatePoints()
  441. // console.log(points)
  442. // 调用新增代理申请接口
  443. let params = {
  444. customId: customId,
  445. cId: cId,
  446. points: points,
  447. }
  448. if (props.paramsType === 'vietnam') {
  449. params = {
  450. agentId: props.detail.id,
  451. points: points,
  452. }
  453. }
  454. // 越南分配和新增代理
  455. const res = props.paramsType === 'vietnam' ? await ibApi.saveVietnamPoints(params) : await ibApi.agentApplyAddPoint(params)
  456. if (res.code == Code.StatusOK) {
  457. uni.showToast({
  458. title: res.msg || props.paramsType ? t('Ib.Custom.SaveSuccess') : t('Ib.Custom.SubmitSuccess'),
  459. icon: 'success',
  460. })
  461. closeDia()
  462. emit('confirm')
  463. } else {
  464. uni.showToast({
  465. title: res.msg || props.paramsType ? t('Ib.Custom.SaveFailed') : t('Ib.Custom.SubmitFailed'),
  466. icon: 'none',
  467. })
  468. }
  469. } catch (error) {
  470. console.error('新增代理失败或保存越南分配数据失败:', error)
  471. uni.showToast({ title: props.paramsType ? t('Ib.Custom.SaveFailed') : t('Ib.Custom.SubmitFailed'), icon: 'none' })
  472. }
  473. }
  474. </script>
  475. <style lang="scss" scoped>
  476. @import "@/uni.scss";
  477. .commission-table-container {
  478. margin-top: px2rpx(10);
  479. padding-bottom: px2rpx(150);
  480. /* 预留底部空间,防止最下面的下拉框被截断或遮挡 */
  481. width: 100%;
  482. overflow-x: auto;
  483. }
  484. .commission-table {
  485. width: 100%;
  486. table-layout: fixed;
  487. border-collapse: collapse;
  488. border-spacing: 0;
  489. font-size: px2rpx(14);
  490. color: var(--bs-emphasis-color);
  491. border: 1px solid #ebeef5;
  492. .status-col {
  493. width: 60px;
  494. }
  495. .group-col {
  496. width: 135px;
  497. }
  498. .type-col {
  499. width: 100px;
  500. }
  501. .value-col {
  502. width: calc((100% - 295px) / 5);
  503. padding: px2rpx(4);
  504. box-sizing: border-box;
  505. overflow: hidden;
  506. :deep(.cwg-combox) {
  507. width: 100%;
  508. display: block;
  509. :deep(.uni-select) {
  510. width: 100%;
  511. min-height: px2rpx(32);
  512. box-sizing: border-box;
  513. }
  514. :deep(.uni-select__input-box) {
  515. flex: 1;
  516. width: 0;
  517. min-width: 0;
  518. }
  519. :deep(.uni-select__input-text) {
  520. text-align: center;
  521. overflow: hidden;
  522. text-overflow: ellipsis;
  523. white-space: nowrap;
  524. }
  525. }
  526. }
  527. thead {
  528. background-color: rgba(var(--bs-body-bg-rgb), var(--bs-bg-opacity)) !important;
  529. }
  530. th {
  531. padding: px2rpx(12) px2rpx(5);
  532. text-align: center;
  533. font-weight: bold;
  534. color: var(--bs-emphasis-color);
  535. border: 1px solid #ebeef5;
  536. font-size: px2rpx(13);
  537. white-space: nowrap;
  538. }
  539. td {
  540. padding: px2rpx(8) px2rpx(7);
  541. border: 1px solid #ebeef5;
  542. vertical-align: middle;
  543. }
  544. .center-td {
  545. text-align: center;
  546. }
  547. .group-name-td {
  548. color: var(--bs-emphasis-color);
  549. font-weight: 500;
  550. }
  551. .type-td {
  552. color: var(--bs-emphasis-color);
  553. }
  554. }
  555. .dialog-account-adjust-body {
  556. padding: 20rpx;
  557. }
  558. .account-adjust-cid-row {
  559. display: flex;
  560. align-items: center;
  561. margin-bottom: 20rpx;
  562. }
  563. .account-adjust-cid-label {
  564. color: #606266;
  565. margin-right: px2rpx(5);
  566. }
  567. .account-adjust-cid-value {
  568. font-weight: bold;
  569. color: #303133;
  570. }
  571. .form-section {
  572. margin-bottom: 20rpx;
  573. }
  574. .section-title {
  575. display: flex;
  576. align-items: center;
  577. margin-bottom: px2rpx(15);
  578. font-weight: bold;
  579. font-size: px2rpx(14);
  580. }
  581. .section-title i {
  582. margin-right: 10rpx;
  583. }
  584. .account-type-grid {
  585. }
  586. .account-type-card {
  587. display: flex;
  588. flex-direction: column;
  589. margin-bottom: px2rpx(20);
  590. }
  591. .account-type-label {
  592. margin-bottom: 10rpx;
  593. font-size: 14rpx;
  594. }
  595. .account-select {
  596. width: 100%;
  597. }
  598. .dialog-account-adjust-footer {
  599. padding: 20rpx;
  600. }
  601. .account-adjust-notes-panel {
  602. margin-bottom: 20rpx;
  603. }
  604. .account-adjust-notes-section {
  605. background-color: rgba(var(--bs-body-bg-rgb), var(--bs-bg-opacity)) !important;
  606. padding: 15rpx;
  607. border-radius: 8rpx;
  608. }
  609. .account-adjust-notes-title {
  610. display: flex;
  611. align-items: center;
  612. margin-bottom: px2rpx(10);
  613. font-weight: bold;
  614. font-size: px2rpx(13);
  615. }
  616. .account-adjust-notes-title-icon {
  617. margin-right: px2rpx(10);
  618. }
  619. .account-adjust-notes-list {
  620. margin-left: px2rpx(20);
  621. color: #606266;
  622. font-size: px2rpx(13);
  623. }
  624. .account-adjust-notes-list .list {
  625. margin-bottom: px2rpx(5);
  626. margin-left: px2rpx(10);
  627. }
  628. .account-adjust-footer-buttons {
  629. display: flex;
  630. justify-content: flex-end;
  631. gap: 15rpx;
  632. }
  633. .account-adjust-footer-buttons button {
  634. min-width: 120rpx;
  635. }
  636. </style>