pageFour.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791
  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. this.$emit('handleNextClick', {
  342. nowPage: 'formFour',
  343. form: {
  344. ...this.warehouseInfo,
  345. ...this.profitSharingList
  346. },
  347. })
  348. }
  349. }).catch(() => {
  350. // 表单验证失败,不执行后续操作
  351. });
  352. },
  353. // 分成信息校验方法
  354. validateProfitSharing() {
  355. // 校验分成信息
  356. for (let i = 0; i < this.profitSharingList.length; i++) {
  357. const item = this.profitSharingList[i];
  358. if (!item.person.trim()) {
  359. uni.showToast({
  360. title: `第${i + 1}行请选择分成人`,
  361. icon: 'none'
  362. });
  363. return false;
  364. }
  365. if (item.percentage <= 0 || item.percentage > 100) {
  366. uni.showToast({
  367. title: `第${i + 1}行分成比例必须在1-100之间`,
  368. icon: 'none'
  369. });
  370. return false;
  371. }
  372. }
  373. // 校验前端分成比例总和必须是100%
  374. const frontendTotal = this.profitSharingList
  375. .filter(item => item.accountType === 'frontend')
  376. .reduce((sum, item) => sum + Number(item.percentage), 0);
  377. if (frontendTotal !== 100) {
  378. uni.showToast({
  379. title: '前端分成比例总和必须为100%',
  380. icon: 'none'
  381. });
  382. return false;
  383. }
  384. // 校验后端分成比例总和必须是100%
  385. const backendTotal = this.profitSharingList
  386. .filter(item => item.accountType === 'backend')
  387. .reduce((sum, item) => sum + Number(item.percentage), 0);
  388. if (backendTotal !== 100) {
  389. uni.showToast({
  390. title: '后端分成比例总和必须为100%',
  391. icon: 'none'
  392. });
  393. return false;
  394. }
  395. return true;
  396. }
  397. }
  398. };
  399. </script>
  400. <style lang="scss" scoped>
  401. // 导入公共样式
  402. @import './common.scss';
  403. // 主样式
  404. .page-container {
  405. box-sizing: border-box;
  406. padding: 0;
  407. background-color: map-get($colors, bg);
  408. font-family: map-get($font, family);
  409. -webkit-font-smoothing: map-get($font, smoothing);
  410. font-smoothing: map-get($font, smoothing);
  411. }
  412. .address-section {
  413. padding: map-get($sizes, padding-sm) map-get($sizes, padding);
  414. .u-col {
  415. padding: 0;
  416. box-sizing: border-box;
  417. }
  418. .u-col:first-child {
  419. padding-right: 15rpx;
  420. }
  421. .u-col:last-child {
  422. padding-left: 15rpx;
  423. }
  424. }
  425. // 表单行样式
  426. .info-row {
  427. margin-bottom: 20rpx;
  428. box-sizing: border-box;
  429. padding: 0;
  430. }
  431. // 表单标签样式
  432. .info-label {
  433. @include font-styles($size: tiny, $weight: regular, $color: tertiary);
  434. margin-bottom: 8rpx;
  435. display: block;
  436. }
  437. // 输入框样式
  438. .info-input {
  439. height: 65rpx;
  440. border-radius: 8rpx;
  441. border: 1rpx solid #e5e7eb;
  442. padding: 20rpx 16rpx;
  443. width: 100%;
  444. box-sizing: border-box;
  445. @include font-styles($size: small, $weight: regular, $color: secondary);
  446. // textarea特殊样式
  447. &[type="textarea"] {
  448. min-height: 160rpx;
  449. resize: vertical;
  450. padding-top: 20rpx;
  451. padding-bottom: 20rpx;
  452. }
  453. }
  454. // 防止表单label换行
  455. ::v-deep .u-form-item__body__left__content__label {
  456. white-space: nowrap;
  457. }
  458. // 图片上传样式
  459. .image-uploader {
  460. width: 100%;
  461. height: 65rpx;
  462. border: 2rpx dashed #409eff;
  463. border-radius: 8rpx;
  464. display: flex;
  465. align-items: center;
  466. justify-content: center;
  467. cursor: pointer;
  468. background-color: #ecf5ff;
  469. box-sizing: border-box;
  470. overflow: hidden;
  471. transition: all 0.3s ease;
  472. &:hover {
  473. border-color: #66b1ff;
  474. background-color: #f0f9ff;
  475. transform: scale(1.02);
  476. }
  477. }
  478. .camera-icon {
  479. margin: 0;
  480. font-size: 32rpx;
  481. color: #409eff;
  482. transition: all 0.3s ease;
  483. }
  484. .image-uploader:hover .camera-icon {
  485. color: #66b1ff;
  486. transform: scale(1.1);
  487. }
  488. .image-preview {
  489. width: 100%;
  490. height: 100%;
  491. object-fit: cover;
  492. border-radius: 10rpx;
  493. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
  494. transition: all 0.3s ease;
  495. }
  496. .image-uploader:hover .image-preview {
  497. transform: scale(1.02);
  498. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.15);
  499. }
  500. .hidden-input {
  501. display: none;
  502. }
  503. // 分成信息卡片样式
  504. .address-header {
  505. display: flex;
  506. align-items: center;
  507. justify-content: space-between;
  508. margin-bottom: 20rpx;
  509. .address-title {
  510. @include font-styles($size: small, $weight: medium, $color: primary);
  511. margin-left: 10rpx;
  512. }
  513. }
  514. .split-content {
  515. padding: 10rpx 0;
  516. }
  517. .split-item {
  518. display: flex;
  519. justify-content: space-between;
  520. align-items: center;
  521. padding: 15rpx 0;
  522. border-bottom: 1rpx solid map-get($colors, border);
  523. &:last-child {
  524. border-bottom: none;
  525. }
  526. }
  527. .split-label {
  528. @include font-styles($size: tiny, $weight: regular, $color: tertiary);
  529. }
  530. .split-value {
  531. @include font-styles($size: small, $weight: regular, $color: secondary);
  532. }
  533. .add-button {
  534. padding: 0;
  535. width: 50rpx;
  536. height: 50rpx;
  537. display: flex;
  538. align-items: center;
  539. justify-content: center;
  540. }
  541. /* 分成信息表格样式 */
  542. .split-table {
  543. width: 100%;
  544. margin-top: 20rpx;
  545. background-color: #fff;
  546. border-radius: 8rpx;
  547. overflow: hidden;
  548. }
  549. .split-table-header {
  550. background-color: #f5f7fa;
  551. padding: 15rpx 0;
  552. border-bottom: 1rpx solid #e4e7ed;
  553. }
  554. .split-table-row {
  555. padding: 15rpx 0;
  556. border-bottom: 1rpx solid #e4e7ed;
  557. align-items: center;
  558. &:last-child {
  559. border-bottom: none;
  560. }
  561. }
  562. .header-text {
  563. @include font-styles($size: tiny, $weight: regular, $color: tertiary);
  564. text-align: center;
  565. display: block;
  566. }
  567. .table-cell {
  568. display: flex;
  569. align-items: center;
  570. justify-content: center;
  571. padding: 0 10rpx;
  572. box-sizing: border-box;
  573. }
  574. .action-column {
  575. display: flex;
  576. align-items: center;
  577. justify-content: center;
  578. }
  579. /* 自定义下拉框样式 - 隐藏原生箭头 */
  580. .custom-select {
  581. width: 100%;
  582. height: 50rpx;
  583. border-radius: 0;
  584. border: 1rpx solid #e5e7eb;
  585. text-align: center;
  586. /* 增加右侧内边距,为自定义箭头留出空间 */
  587. @include font-styles($size: tiny, $weight: regular, $color: secondary);
  588. background-color: #fff;
  589. /* 确保隐藏所有浏览器的原生箭头 */
  590. appearance: none !important;
  591. -webkit-appearance: none !important;
  592. -moz-appearance: none !important;
  593. -o-appearance: none !important;
  594. cursor: pointer;
  595. /* 使用自定义SVG箭头 */
  596. background-repeat: no-repeat;
  597. background-position: right 8rpx center;
  598. background-size: 12rpx 12rpx;
  599. box-sizing: border-box;
  600. position: relative;
  601. /* 防止箭头在焦点状态下显示 */
  602. &:focus {
  603. outline: none;
  604. border-color: #409eff;
  605. box-shadow: 0 0 0 2rpx rgba(64, 158, 255, 0.2);
  606. }
  607. /* 针对IE/Edge浏览器的特殊处理 */
  608. &::-ms-expand {
  609. display: none !important;
  610. }
  611. /* 针对某些旧版浏览器的额外处理 */
  612. &::-webkit-select-arrow {
  613. display: none !important;
  614. }
  615. /* 添加伪元素覆盖可能残留的箭头 */
  616. &::after {
  617. content: '';
  618. position: absolute;
  619. right: 8rpx;
  620. top: 50%;
  621. transform: translateY(-50%);
  622. width: 12rpx;
  623. height: 12rpx;
  624. 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");
  625. background-repeat: no-repeat;
  626. background-size: 100% 100%;
  627. pointer-events: none;
  628. z-index: 1;
  629. }
  630. }
  631. /* 百分比输入框样式 */
  632. .percentage-input {
  633. text-align: center;
  634. background-color: #f9f9f9;
  635. color: #606266;
  636. text-align: center;
  637. padding: 0rpx !important;
  638. }
  639. /* 账户类型标签样式 */
  640. .account-type {
  641. padding: 4rpx 16rpx;
  642. border-radius: 12rpx;
  643. font-size: 24rpx;
  644. font-weight: 500;
  645. color: #fff;
  646. text-align: center;
  647. }
  648. .account-type.frontend {
  649. background-color: #409eff;
  650. }
  651. .account-type.backend {
  652. background-color: #909399;
  653. }
  654. /* 调整表格布局,使其更紧凑 */
  655. .split-table {
  656. width: 100%;
  657. margin-top: 10rpx;
  658. }
  659. .split-table-header,
  660. .split-table-row {
  661. padding: 10rpx 0;
  662. }
  663. .table-cell {
  664. padding: 0 5rpx;
  665. }
  666. /* 调整输入框样式 */
  667. .percentage-input {
  668. width: 80%;
  669. height: 50rpx;
  670. font-size: 28rpx;
  671. }
  672. /* 归属公司单选框样式 */
  673. .radio-wrapper {
  674. cursor: pointer;
  675. display: flex;
  676. align-items: center;
  677. justify-content: center;
  678. }
  679. .radio-circle {
  680. width: 32rpx;
  681. height: 32rpx;
  682. border-radius: 50%;
  683. border: 2rpx solid #dcdfe6;
  684. display: flex;
  685. align-items: center;
  686. justify-content: center;
  687. transition: all 0.3s ease;
  688. }
  689. .radio-circle.active {
  690. border-color: #67c23a;
  691. background-color: #67c23a;
  692. }
  693. /* 确认入库按钮样式 */
  694. .confirm-button-container {
  695. display: flex;
  696. justify-content: center;
  697. align-items: center;
  698. padding: 40rpx 0;
  699. margin-top: 20rpx;
  700. }
  701. /* 响应式布局调整 */
  702. @media screen and (max-width: 750rpx) {
  703. .split-table {
  704. overflow-x: auto;
  705. }
  706. .custom-select {
  707. width: 100%;
  708. }
  709. .account-type {
  710. padding: 2rpx 10rpx;
  711. font-size: 22rpx;
  712. }
  713. }
  714. @media screen and (min-width: 751rpx) {
  715. .table-cell {
  716. padding: 0 10rpx;
  717. }
  718. }
  719. </style>