pageFour.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783
  1. <template>
  2. <view class="page-container">
  3. <!-- 入库信息卡片 -->
  4. <view class="card_wrap">
  5. <u--form labelPosition="top" :model="warehouseInfo" :rules="rules" ref="form" class="address-section">
  6. <view class="address-header">
  7. <u-icon name="car-fill" size="36rpx" color="#108cff" class="location-icon"></u-icon>
  8. <text class="address-title">入库信息</text>
  9. </view>
  10. <!-- 编码和快递单号同一行 -->
  11. <u-row class="info-row" justify="space-between">
  12. <u-col span="4.5">
  13. <u-form-item label="编码" prop="accountHolder">
  14. <u--input v-model="warehouseInfo.accountHolder" placeholder="请输入编码" class="info-input" />
  15. </u-form-item>
  16. </u-col>
  17. <u-col span="4.5">
  18. <u-form-item label="快递单号" prop="bankName">
  19. <u--input v-model="warehouseInfo.bankName" placeholder="请输入快递单号" class="info-input" />
  20. </u-form-item>
  21. </u-col>
  22. <u-col span="2">
  23. <u-form-item label="物流图片" prop="uploadedImage">
  24. <view class="image-uploader" @click="selectImage">
  25. <u-icon v-if="!warehouseInfo.uploadedImage" name="camera-fill" size="48rpx"
  26. color="#909399" class="camera-icon"></u-icon>
  27. <image v-else :src="warehouseInfo.uploadedImage" mode="aspectFill"
  28. class="image-preview">
  29. </image>
  30. </view>
  31. </u-form-item>
  32. </u-col>
  33. </u-row>
  34. <!-- 单独一行的收单物品 -->
  35. <u-row class="info-row">
  36. <u-col span="12">
  37. <u-form-item label="收单物品" prop="item">
  38. <u--input v-model="warehouseInfo.item" placeholder="请输入收单物品" class="info-input" />
  39. </u-form-item>
  40. </u-col>
  41. </u-row>
  42. <!-- 查码费和表款同一行 -->
  43. <u-row class="info-row" justify="space-between">
  44. <u-col span="5.8">
  45. <u-form-item label="查码费">
  46. <u--input v-model="warehouseInfo.checkCodeFee" placeholder="请输入查码费" class="info-input"
  47. type="number" />
  48. </u-form-item>
  49. </u-col>
  50. <u-col span="5.8">
  51. <u-form-item label="表款">
  52. <u--input v-model="warehouseInfo.tableFee" placeholder="请输入表款" class="info-input"
  53. type="number" />
  54. </u-form-item>
  55. </u-col>
  56. </u-row>
  57. <!-- 维修金额和毛业绩同一行 -->
  58. <u-row class="info-row" justify="space-between">
  59. <u-col span="5.8">
  60. <u-form-item label="维修金额">
  61. <u--input v-model="warehouseInfo.repairAmount" placeholder="请输入维修金额" class="info-input"
  62. type="number" />
  63. </u-form-item>
  64. </u-col>
  65. <u-col span="5.8">
  66. <u-form-item label="毛业绩">
  67. <u--input v-model="warehouseInfo.grossPerformance" placeholder="请输入毛业绩" class="info-input"
  68. type="number" />
  69. </u-form-item>
  70. </u-col>
  71. </u-row>
  72. <!-- 收单备注 -->
  73. <u-row class="info-row">
  74. <u-col span="12">
  75. <u-form-item label="收单备注">
  76. <u--textarea v-model="warehouseInfo.remarks" placeholder="请输入收单备注" class="info-input"
  77. confirmType="done" rows="4" />
  78. </u-form-item>
  79. </u-col>
  80. </u-row>
  81. </u--form>
  82. </view>
  83. <!-- 新添加的卡片 -->
  84. <view class="card_wrap">
  85. <view class="address-section">
  86. <view class="address-header">
  87. <u-icon name="list" size="36rpx" color="#108cff" class="location-icon"></u-icon>
  88. <text class="address-title">分成信息</text>
  89. <u-button type="primary" plain shape="circle" size="mini" class="add-button" @click="addSplit">
  90. <u-icon name="plus" size="24rpx" color="#108cff"></u-icon>
  91. <text>添加</text>
  92. </u-button>
  93. </view>
  94. <!-- 分成信息表格 -->
  95. <view class="split-table">
  96. <u-row class="split-table-header">
  97. <u-col span="2">
  98. <text class="header-text">关联</text>
  99. </u-col>
  100. <u-col span="2">
  101. <text class="header-text">账户类型</text>
  102. </u-col>
  103. <u-col span="2">
  104. <text class="header-text">分成人</text>
  105. </u-col>
  106. <u-col span="2">
  107. <text class="header-text">比例(%)</text>
  108. </u-col>
  109. <u-col span="2">
  110. <text class="header-text">归属公司</text>
  111. </u-col>
  112. <u-col span="2" class="action-column">
  113. <text class="header-text">操作</text>
  114. </u-col>
  115. </u-row>
  116. <u-row v-for="(item, index) in profitSharingList" :key="item.id" class="split-table-row">
  117. <u-col span="2">
  118. <view class="table-cell">
  119. <select v-model="item.association" class="custom-select">
  120. <option value="">无</option>
  121. <option v-for="option in associationOptions" :key="option" :value="option">
  122. {{ option }}
  123. </option>
  124. </select>
  125. </view>
  126. </u-col>
  127. <u-col span="2">
  128. <view class="table-cell">
  129. <view
  130. :class="['account-type', item.accountType === 'frontend' ? 'frontend' : 'backend']"
  131. @click="toggleAccountType(item)" style="cursor: pointer;">
  132. {{ item.accountType === 'frontend' ? '前' : '后' }}
  133. </view>
  134. </view>
  135. </u-col>
  136. <u-col span="2">
  137. <view class="table-cell">
  138. <select v-model="item.person" class="custom-select">
  139. <option value="">无</option>
  140. <option v-for="person in personOptions" :key="person" :value="person">
  141. {{ person }}
  142. </option>
  143. </select>
  144. </view>
  145. </u-col>
  146. <u-col span="2">
  147. <view class="table-cell">
  148. <u--input v-model="item.percentage" type="number" class="percentage-input"
  149. @input="handlePercentageInput(item)" min="0" max="100" precision="0" />
  150. </view>
  151. </u-col>
  152. <u-col span="2">
  153. <view class="table-cell">
  154. <view class="radio-wrapper" @click="toggleBelongToCompany(item)">
  155. <view :class="['radio-circle', item.belongToCompany ? 'active' : '']">
  156. <u-icon v-if="item.belongToCompany" name="checkmark" size="20rpx"
  157. color="#fff"></u-icon>
  158. </view>
  159. </view>
  160. </view>
  161. </u-col>
  162. <u-col span="2" class="action-column">
  163. <view class="table-cell">
  164. <u-button type="error" plain shape="circle" size="mini" @click="deleteSplit(index)"
  165. :disabled="profitSharingList.length <= 1">
  166. <u-icon name="trash" size="20rpx" color="#ff6b6b"></u-icon>
  167. </u-button>
  168. </view>
  169. </u-col>
  170. </u-row>
  171. </view>
  172. </view>
  173. </view>
  174. <!-- 确认入库按钮 -->
  175. <div class="confirm-button-container">
  176. <u-button type="success" @click="confirmWarehouseEntry" style="border-radius: 11px;">
  177. <u-icon name="checkmark-circle-fill" size="28rpx" color="#fff"></u-icon>
  178. <text style="margin-left: 8rpx;">确认入库</text>
  179. </u-button>
  180. </div>
  181. </view>
  182. </template>
  183. <script>
  184. export default {
  185. props: {
  186. orderDetail: {
  187. type: Object,
  188. default: () => { },
  189. }
  190. },
  191. data() {
  192. return {
  193. // 入库信息相关的数据
  194. warehouseInfo: {
  195. accountHolder: '',
  196. bankName: '',
  197. item: '',
  198. checkCodeFee: '',
  199. tableFee: '',
  200. repairAmount: '',
  201. grossPerformance: '',
  202. remarks: '',
  203. uploadedImage: ''
  204. },
  205. // 分成信息相关的数据
  206. profitSharingList: [
  207. {
  208. id: Date.now() + '_1', // 唯一ID
  209. association: '', // 关联
  210. accountType: 'frontend', // 账户类型:frontend(前端)/backend(后端)
  211. person: '', // 分成人
  212. percentage: 100, // 分成比例
  213. belongToCompany: false // 归属公司
  214. }
  215. ],
  216. // 关联选项列表
  217. associationOptions: ['选项1', '选项2', '选项3'],
  218. // 分成人选项列表
  219. personOptions: ['人员A', '人员B', '人员C'],
  220. // 表单验证规则
  221. rules: {
  222. accountHolder: {
  223. type: 'string',
  224. required: true,
  225. message: '请输入编码',
  226. trigger: []
  227. },
  228. bankName: {
  229. type: 'string',
  230. required: true,
  231. message: '请输入快递单号',
  232. trigger: []
  233. },
  234. item: {
  235. type: 'string',
  236. required: true,
  237. message: '请输入收单物品',
  238. trigger: []
  239. },
  240. uploadedImage: {
  241. type: 'string',
  242. required: true,
  243. message: '请上传物流图片',
  244. trigger: []
  245. }
  246. }
  247. };
  248. },
  249. methods: {
  250. // 选择图片
  251. selectImage() {
  252. uni.chooseImage({
  253. count: 1,
  254. sizeType: ['original', 'compressed'],
  255. sourceType: ['album', 'camera'],
  256. success: (res) => {
  257. const tempFilePath = res.tempFilePaths[0];
  258. this.warehouseInfo.uploadedImage = tempFilePath;
  259. }
  260. });
  261. },
  262. // 添加分成行
  263. addSplit() {
  264. // 生成唯一ID
  265. const newId = Date.now() + '_' + (this.profitSharingList.length + 1);
  266. // 添加新行
  267. this.profitSharingList.push({
  268. id: newId,
  269. association: '',
  270. accountType: 'frontend',
  271. person: '',
  272. percentage: 0,
  273. belongToCompany: false
  274. });
  275. // 重新计算所有行的比例
  276. this.recalculatePercentage();
  277. },
  278. // 删除分成行
  279. deleteSplit(index) {
  280. if (this.profitSharingList.length <= 1) {
  281. return; // 至少保留一行
  282. }
  283. // 删除对应行
  284. this.profitSharingList.splice(index, 1);
  285. // 重新计算所有行的比例
  286. this.recalculatePercentage();
  287. },
  288. // 重新计算分成比例
  289. recalculatePercentage() {
  290. // 分别计算前端和后端的行数
  291. const frontendRows = this.profitSharingList.filter(item => item.accountType === 'frontend');
  292. const backendRows = this.profitSharingList.filter(item => item.accountType === 'backend');
  293. // 计算前端平均比例
  294. if (frontendRows.length > 0) {
  295. const frontendAvg = Math.floor(100 / frontendRows.length);
  296. frontendRows.forEach(item => {
  297. item.percentage = frontendAvg;
  298. });
  299. }
  300. // 计算后端平均比例
  301. if (backendRows.length > 0) {
  302. const backendAvg = Math.floor(100 / backendRows.length);
  303. backendRows.forEach(item => {
  304. item.percentage = backendAvg;
  305. });
  306. }
  307. },
  308. // 切换账户类型
  309. toggleAccountType(item) {
  310. item.accountType = item.accountType === 'frontend' ? 'backend' : 'frontend';
  311. // 重新计算分成比例
  312. this.recalculatePercentage();
  313. },
  314. // 处理百分比输入
  315. handlePercentageInput(item) {
  316. // 确保输入是数字
  317. let value = Number(item.percentage);
  318. // 验证输入值是否在有效范围内(0-100)
  319. if (isNaN(value)) {
  320. item.percentage = 0;
  321. } else if (value < 0) {
  322. item.percentage = 0;
  323. } else if (value > 100) {
  324. item.percentage = 100;
  325. } else {
  326. // 确保是整数
  327. item.percentage = Math.floor(value);
  328. }
  329. },
  330. // 切换归属公司状态
  331. toggleBelongToCompany(item) {
  332. item.belongToCompany = !item.belongToCompany;
  333. },
  334. // 确认入库方法
  335. confirmWarehouseEntry() {
  336. // 表单校验
  337. this.$refs.form.validate().then(() => {
  338. // 表单验证通过后,进行分成信息的自定义验证
  339. if (this.validateProfitSharing()) {
  340. console.log(this.warehouseInfo, this.profitSharingList);
  341. }
  342. }).catch(() => {
  343. // 表单验证失败,不执行后续操作
  344. });
  345. },
  346. // 分成信息校验方法
  347. validateProfitSharing() {
  348. // 校验分成信息
  349. for (let i = 0; i < this.profitSharingList.length; i++) {
  350. const item = this.profitSharingList[i];
  351. if (!item.person.trim()) {
  352. uni.showToast({
  353. title: `第${i + 1}行请选择分成人`,
  354. icon: 'none'
  355. });
  356. return false;
  357. }
  358. if (item.percentage <= 0 || item.percentage > 100) {
  359. uni.showToast({
  360. title: `第${i + 1}行分成比例必须在1-100之间`,
  361. icon: 'none'
  362. });
  363. return false;
  364. }
  365. }
  366. // 校验前端分成比例总和必须是100%
  367. const frontendTotal = this.profitSharingList
  368. .filter(item => item.accountType === 'frontend')
  369. .reduce((sum, item) => sum + Number(item.percentage), 0);
  370. if (frontendTotal !== 100) {
  371. uni.showToast({
  372. title: '前端分成比例总和必须为100%',
  373. icon: 'none'
  374. });
  375. return false;
  376. }
  377. // 校验后端分成比例总和必须是100%
  378. const backendTotal = this.profitSharingList
  379. .filter(item => item.accountType === 'backend')
  380. .reduce((sum, item) => sum + Number(item.percentage), 0);
  381. if (backendTotal !== 100) {
  382. uni.showToast({
  383. title: '后端分成比例总和必须为100%',
  384. icon: 'none'
  385. });
  386. return false;
  387. }
  388. return true;
  389. }
  390. }
  391. };
  392. </script>
  393. <style lang="scss" scoped>
  394. // 导入公共样式
  395. @import './common.scss';
  396. // 主样式
  397. .page-container {
  398. box-sizing: border-box;
  399. padding: 0;
  400. background-color: map-get($colors, bg);
  401. font-family: map-get($font, family);
  402. -webkit-font-smoothing: map-get($font, smoothing);
  403. font-smoothing: map-get($font, smoothing);
  404. }
  405. .address-section {
  406. padding: map-get($sizes, padding-sm) map-get($sizes, padding);
  407. .u-col {
  408. padding: 0;
  409. box-sizing: border-box;
  410. }
  411. .u-col:first-child {
  412. padding-right: 15rpx;
  413. }
  414. .u-col:last-child {
  415. padding-left: 15rpx;
  416. }
  417. }
  418. // 表单行样式
  419. .info-row {
  420. margin-bottom: 20rpx;
  421. box-sizing: border-box;
  422. padding: 0;
  423. }
  424. // 表单标签样式
  425. .info-label {
  426. @include font-styles($size: tiny, $weight: regular, $color: tertiary);
  427. margin-bottom: 8rpx;
  428. display: block;
  429. }
  430. // 输入框样式
  431. .info-input {
  432. height: 65rpx;
  433. border-radius: 8rpx;
  434. border: 1rpx solid #e5e7eb;
  435. padding: 20rpx 16rpx;
  436. width: 100%;
  437. box-sizing: border-box;
  438. @include font-styles($size: small, $weight: regular, $color: secondary);
  439. // textarea特殊样式
  440. &[type="textarea"] {
  441. min-height: 160rpx;
  442. resize: vertical;
  443. padding-top: 20rpx;
  444. padding-bottom: 20rpx;
  445. }
  446. }
  447. // 防止表单label换行
  448. ::v-deep .u-form-item__body__left__content__label {
  449. white-space: nowrap;
  450. }
  451. // 图片上传样式
  452. .image-uploader {
  453. width: 100%;
  454. height: 65rpx;
  455. border: 2rpx dashed #409eff;
  456. border-radius: 8rpx;
  457. display: flex;
  458. align-items: center;
  459. justify-content: center;
  460. cursor: pointer;
  461. background-color: #ecf5ff;
  462. box-sizing: border-box;
  463. overflow: hidden;
  464. transition: all 0.3s ease;
  465. &:hover {
  466. border-color: #66b1ff;
  467. background-color: #f0f9ff;
  468. transform: scale(1.02);
  469. }
  470. }
  471. .camera-icon {
  472. margin: 0;
  473. font-size: 32rpx;
  474. color: #409eff;
  475. transition: all 0.3s ease;
  476. }
  477. .image-uploader:hover .camera-icon {
  478. color: #66b1ff;
  479. transform: scale(1.1);
  480. }
  481. .image-preview {
  482. width: 100%;
  483. height: 100%;
  484. object-fit: cover;
  485. border-radius: 10rpx;
  486. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
  487. transition: all 0.3s ease;
  488. }
  489. .image-uploader:hover .image-preview {
  490. transform: scale(1.02);
  491. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.15);
  492. }
  493. .hidden-input {
  494. display: none;
  495. }
  496. // 分成信息卡片样式
  497. .address-header {
  498. display: flex;
  499. align-items: center;
  500. justify-content: space-between;
  501. margin-bottom: 20rpx;
  502. .address-title {
  503. @include font-styles($size: small, $weight: medium, $color: primary);
  504. margin-left: 10rpx;
  505. }
  506. }
  507. .split-content {
  508. padding: 10rpx 0;
  509. }
  510. .split-item {
  511. display: flex;
  512. justify-content: space-between;
  513. align-items: center;
  514. padding: 15rpx 0;
  515. border-bottom: 1rpx solid map-get($colors, border);
  516. &:last-child {
  517. border-bottom: none;
  518. }
  519. }
  520. .split-label {
  521. @include font-styles($size: tiny, $weight: regular, $color: tertiary);
  522. }
  523. .split-value {
  524. @include font-styles($size: small, $weight: regular, $color: secondary);
  525. }
  526. .add-button {
  527. padding: 0;
  528. width: 50rpx;
  529. height: 50rpx;
  530. display: flex;
  531. align-items: center;
  532. justify-content: center;
  533. }
  534. /* 分成信息表格样式 */
  535. .split-table {
  536. width: 100%;
  537. margin-top: 20rpx;
  538. background-color: #fff;
  539. border-radius: 8rpx;
  540. overflow: hidden;
  541. }
  542. .split-table-header {
  543. background-color: #f5f7fa;
  544. padding: 15rpx 0;
  545. border-bottom: 1rpx solid #e4e7ed;
  546. }
  547. .split-table-row {
  548. padding: 15rpx 0;
  549. border-bottom: 1rpx solid #e4e7ed;
  550. align-items: center;
  551. &:last-child {
  552. border-bottom: none;
  553. }
  554. }
  555. .header-text {
  556. @include font-styles($size: tiny, $weight: regular, $color: tertiary);
  557. text-align: center;
  558. display: block;
  559. }
  560. .table-cell {
  561. display: flex;
  562. align-items: center;
  563. justify-content: center;
  564. padding: 0 10rpx;
  565. box-sizing: border-box;
  566. }
  567. .action-column {
  568. display: flex;
  569. align-items: center;
  570. justify-content: center;
  571. }
  572. /* 自定义下拉框样式 - 隐藏原生箭头 */
  573. .custom-select {
  574. width: 100%;
  575. height: 50rpx;
  576. border-radius: 0;
  577. border: 1rpx solid #e5e7eb;
  578. text-align: center;
  579. /* 增加右侧内边距,为自定义箭头留出空间 */
  580. @include font-styles($size: tiny, $weight: regular, $color: secondary);
  581. background-color: #fff;
  582. /* 确保隐藏所有浏览器的原生箭头 */
  583. appearance: none !important;
  584. -webkit-appearance: none !important;
  585. -moz-appearance: none !important;
  586. -o-appearance: none !important;
  587. cursor: pointer;
  588. /* 使用自定义SVG箭头 */
  589. background-repeat: no-repeat;
  590. background-position: right 8rpx center;
  591. background-size: 12rpx 12rpx;
  592. box-sizing: border-box;
  593. position: relative;
  594. /* 防止箭头在焦点状态下显示 */
  595. &:focus {
  596. outline: none;
  597. border-color: #409eff;
  598. box-shadow: 0 0 0 2rpx rgba(64, 158, 255, 0.2);
  599. }
  600. /* 针对IE/Edge浏览器的特殊处理 */
  601. &::-ms-expand {
  602. display: none !important;
  603. }
  604. /* 针对某些旧版浏览器的额外处理 */
  605. &::-webkit-select-arrow {
  606. display: none !important;
  607. }
  608. /* 添加伪元素覆盖可能残留的箭头 */
  609. &::after {
  610. content: '';
  611. position: absolute;
  612. right: 8rpx;
  613. top: 50%;
  614. transform: translateY(-50%);
  615. width: 12rpx;
  616. height: 12rpx;
  617. background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23909399' d='M6 8l-4-4h8z'/%3E%3C/svg%3E");
  618. background-repeat: no-repeat;
  619. background-size: 100% 100%;
  620. pointer-events: none;
  621. z-index: 1;
  622. }
  623. }
  624. /* 百分比输入框样式 */
  625. .percentage-input {
  626. text-align: center;
  627. background-color: #f9f9f9;
  628. color: #606266;
  629. text-align: center;
  630. padding: 0rpx !important;
  631. }
  632. /* 账户类型标签样式 */
  633. .account-type {
  634. padding: 4rpx 16rpx;
  635. border-radius: 12rpx;
  636. font-size: 24rpx;
  637. font-weight: 500;
  638. color: #fff;
  639. text-align: center;
  640. }
  641. .account-type.frontend {
  642. background-color: #409eff;
  643. }
  644. .account-type.backend {
  645. background-color: #909399;
  646. }
  647. /* 调整表格布局,使其更紧凑 */
  648. .split-table {
  649. width: 100%;
  650. margin-top: 10rpx;
  651. }
  652. .split-table-header,
  653. .split-table-row {
  654. padding: 10rpx 0;
  655. }
  656. .table-cell {
  657. padding: 0 5rpx;
  658. }
  659. /* 调整输入框样式 */
  660. .percentage-input {
  661. width: 80%;
  662. height: 50rpx;
  663. font-size: 28rpx;
  664. }
  665. /* 归属公司单选框样式 */
  666. .radio-wrapper {
  667. cursor: pointer;
  668. display: flex;
  669. align-items: center;
  670. justify-content: center;
  671. }
  672. .radio-circle {
  673. width: 32rpx;
  674. height: 32rpx;
  675. border-radius: 50%;
  676. border: 2rpx solid #dcdfe6;
  677. display: flex;
  678. align-items: center;
  679. justify-content: center;
  680. transition: all 0.3s ease;
  681. }
  682. .radio-circle.active {
  683. border-color: #67c23a;
  684. background-color: #67c23a;
  685. }
  686. /* 确认入库按钮样式 */
  687. .confirm-button-container {
  688. display: flex;
  689. justify-content: center;
  690. align-items: center;
  691. padding: 40rpx 0;
  692. margin-top: 20rpx;
  693. }
  694. /* 响应式布局调整 */
  695. @media screen and (max-width: 750rpx) {
  696. .split-table {
  697. overflow-x: auto;
  698. }
  699. .custom-select {
  700. width: 100%;
  701. }
  702. .account-type {
  703. padding: 2rpx 10rpx;
  704. font-size: 22rpx;
  705. }
  706. }
  707. @media screen and (min-width: 751rpx) {
  708. .table-cell {
  709. padding: 0 10rpx;
  710. }
  711. }
  712. </style>