applyIbDialog.vue 22 KB

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