pageFour.vue 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941
  1. <template>
  2. <view class="page-container">
  3. <!-- 入库信息卡片 -->
  4. <view class="card_wrap">
  5. <u--form labelPosition="top" :model="warehouseInfo" 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="codeStorage">
  14. <u--input v-model="warehouseInfo.codeStorage" placeholder="请输入编码" class="info-input" />
  15. </u-form-item>
  16. </u-col>
  17. <u-col span="4.5">
  18. <u-form-item label="快递单号" prop="expressOrderNo">
  19. <u--input v-model="warehouseInfo.expressOrderNo" 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.watchPrice" placeholder="请输入表款" class="info-input"
  53. type="number" />
  54. </u-form-item>
  55. </u-col>
  56. </u-row>
  57. <u-row class="info-row" justify="space-between">
  58. <u-col span="5.8">
  59. <u-form-item label="好处费">
  60. <u--input v-model="warehouseInfo.benefitFee" placeholder="请输入好处费" class="info-input"
  61. type="number" />
  62. </u-form-item>
  63. </u-col>
  64. <u-col span="5.8">
  65. <u-form-item label="运费">
  66. <u--input v-model="warehouseInfo.freight" placeholder="请输入运费" class="info-input"
  67. type="number" />
  68. </u-form-item>
  69. </u-col>
  70. </u-row>
  71. <!-- 维修金额和毛业绩同一行 -->
  72. <u-row class="info-row" justify="space-between">
  73. <u-col span="5.8">
  74. <u-form-item label="维修金额">
  75. <u--input v-model="warehouseInfo.repairAmount" placeholder="请输入维修金额" class="info-input"
  76. type="number" />
  77. </u-form-item>
  78. </u-col>
  79. <u-col span="5.8">
  80. <u-form-item label="毛业绩">
  81. <u--input v-model="warehouseInfo.grossPerformance" placeholder="请输入毛业绩" class="info-input"
  82. type="number" />
  83. </u-form-item>
  84. </u-col>
  85. </u-row>
  86. <!-- 收单备注 -->
  87. <u-row class="info-row">
  88. <u-col span="12">
  89. <u-form-item label="收单备注">
  90. <u--textarea v-model="warehouseInfo.remarks" placeholder="请输入收单备注" class="info-input"
  91. confirmType="done" rows="4" />
  92. </u-form-item>
  93. </u-col>
  94. </u-row>
  95. </u--form>
  96. </view>
  97. <!-- 新添加的卡片 -->
  98. <view class="card_wrap">
  99. <view class="address-section">
  100. <view class="address-header">
  101. <u-icon name="list" size="36rpx" color="#108cff" class="location-icon"></u-icon>
  102. <text class="address-title">分成信息</text>
  103. <u-button type="primary" plain shape="circle" size="mini" class="add-button" @click="addSplit">
  104. <u-icon name="plus" size="24rpx" color="#108cff"></u-icon>
  105. <text>添加</text>
  106. </u-button>
  107. </view>
  108. <!-- 分成信息表格 -->
  109. <view class="split-table">
  110. <u-row class="split-table-header">
  111. <u-col span="4">
  112. <text class="header-text">关联</text>
  113. </u-col>
  114. <u-col span="2">
  115. <text class="header-text">分成人</text>
  116. </u-col>
  117. <u-col span="2">
  118. <text class="header-text">比例</text>
  119. </u-col>
  120. <u-col span="1">
  121. <text class="header-text">类型</text>
  122. </u-col>
  123. <u-col span="1">
  124. <text class="header-text">公司</text>
  125. </u-col>
  126. <u-col span="2" class="action-column">
  127. <text class="header-text">操作</text>
  128. </u-col>
  129. </u-row>
  130. <u-row v-for="(item, index) in profitSharingList" :key="item.id" class="split-table-row">
  131. <u-col span="4">
  132. <view class="table-cell">
  133. <!-- <select v-model="item.deptId" class="custom-select">
  134. <option v-for="option in associationOptions" :key="option.id" :value="option.id">
  135. {{ option.label }}
  136. </option>
  137. </select> -->
  138. <u-button @click='handleSelectOrg(item)' :text="item.orgName" plain></u-button>
  139. </view>
  140. </u-col>
  141. <u-col span="2">
  142. <view class="table-cell">
  143. <!-- <select v-model="item.userId" class="custom-select">
  144. <option value="">无</option>
  145. <option v-for="person in item.personOptions" :key="person.id" :value="person.id">
  146. {{ person.label }}
  147. </option>
  148. </select> -->
  149. <u-button @click="handleSelectPerson(item)" :text="item.userName" plain></u-button>
  150. </view>
  151. </u-col>
  152. <u-col span="2">
  153. <view class="table-cell">
  154. <u--input v-model="item.commissionRate" type="number" class="percentage-input"
  155. @input="handlePercentageInput(item)" min="0" max="100" precision="0" />
  156. </view>
  157. </u-col>
  158. <u-col span="1">
  159. <view class="table-cell">
  160. <view :class="['account-type', item.accountType == '1' ? 'frontend' : 'backend']"
  161. @click="toggleAccountType(item)" style="cursor: pointer;">
  162. {{ item.accountType == '1' ? '前' : '后' }}
  163. </view>
  164. </view>
  165. </u-col>
  166. <u-col span="1">
  167. <view class="table-cell">
  168. <view class="radio-wrapper" @click="toggleBelongToCompany(item)">
  169. <view :class="['radio-circle', item.isCompanyPerformance == '1' ? 'active' : '']">
  170. <u-icon v-if="item.isCompanyPerformance == '1'" name="checkmark" size="20rpx"
  171. color="#fff"></u-icon>
  172. </view>
  173. </view>
  174. </view>
  175. </u-col>
  176. <u-col span="2" class="action-column">
  177. <view class="table-cell">
  178. <u-button type="error" plain shape="circle" size="mini" @click="deleteRow(item.id)"
  179. class='delectBtn'>
  180. <u-icon name="trash" size="20rpx" color="#ff6b6b"></u-icon>
  181. </u-button>
  182. </view>
  183. </u-col>
  184. </u-row>
  185. </view>
  186. </view>
  187. </view>
  188. <!-- 确认入库按钮 -->
  189. <div class="confirm-button-container">
  190. <u-button type="success" @click="confirmWarehouseEntry" style="border-radius: 11px;">
  191. <u-icon name="checkmark-circle-fill" size="28rpx" color="#fff"></u-icon>
  192. <text style="margin-left: 8rpx;">确认入库</text>
  193. </u-button>
  194. </div>
  195. <!-- 组织选择 -->
  196. <u-picker :show="showOrgPicker" title="请选择组织" :columns="columnsOrgList" keyName="label"
  197. @confirm="handleOrgConfirmOrg" @cancel='showOrgPicker = false'></u-picker>
  198. <!-- 人员选择 -->
  199. <u-picker :show="showPersonPicker" title="请选择分成人" :columns="columnsPersonList" keyName="label"
  200. @confirm="handleConfirmPerson" @cancel='handleCancelPerson'></u-picker>
  201. <u-toast ref="uToast"></u-toast>
  202. </view>
  203. </template>
  204. <script>
  205. export default {
  206. props: {
  207. orderDetail: {
  208. type: Object,
  209. default: () => { },
  210. },
  211. receiptList: {
  212. type: Array,
  213. default: () => { },
  214. },
  215. },
  216. watch: {
  217. receiptList: {
  218. handler(newVal) {
  219. if (newVal) {
  220. // "searchValue": null,
  221. // "createBy": "12234",
  222. // "createTime": "2025-12-25 13:39:25",
  223. // "updateBy": "12234",
  224. // "updateTime": "2025-12-27 09:33:05",
  225. // "remark": null,
  226. // "params": {},
  227. // "id": "4347",
  228. // "sendFormId": "5464",
  229. // "clueId": "1973381744953516033",
  230. // "item": "测试发单-VV", //收单物品
  231. // "brand": "LV",
  232. // "needCheckCode": 1,
  233. // "code": "111",
  234. // "paymentAmount": 99.00,
  235. // "phone": "18692257000",
  236. // "tableFee": 999999.00,
  237. // "benefitFee": 666.00, //好处费
  238. // "freight": 666666.00, //运费
  239. // "checkCodeFee": 666.00, //查码费
  240. // "totalCost": null,
  241. // "sellingPrice": 125000.00,
  242. // "performance": null,
  243. // "receiptRemark": null,
  244. // "repairAmount": 666.00, //维修金额
  245. // "grossPerformance": 666.00, //毛业绩
  246. // "expressOrderNo": "666", //快递单号
  247. // "fileIds": "",
  248. // "model": "lvvvv",
  249. // "splitRatio": null,
  250. // "customerServiceName": "1",
  251. // "deptId": "373",
  252. // "category": "2",
  253. // "delFlag": null,
  254. // "idCard": "444",
  255. // "paymentMethod": null,
  256. // "bankCardNumber": "333",
  257. // "bankName": "222",
  258. // "customName": "111"
  259. const data = newVal[0]
  260. this.warehouseInfo = {
  261. codeStorage: data.code,//编码
  262. expressOrderNo: data.expressOrderNo || '',//快递单号
  263. uploadedImage: data.receiptRemark.split(';')[1] || '',//物流图片 截取备注第二部分
  264. item: data.item || '',//收单物品
  265. checkCodeFee: data.checkCodeFee || '',//查码费
  266. watchPrice: data.tableFee || '',//表款
  267. benefitFee: data.benefitFee || '',//好处费
  268. freight: data.freight || '',//运费
  269. repairAmount: data.repairAmount || '',//维修金额
  270. grossPerformance: data.grossPerformance || '',//毛业绩
  271. remarks: data.receiptRemark.split(';')[0] || '',//收单备注 截取备注第一部分
  272. }
  273. this.$nextTick(() => {
  274. this.getList()
  275. })
  276. }
  277. },
  278. }
  279. },
  280. data() {
  281. return {
  282. // 入库信息相关的数据
  283. warehouseInfo: {
  284. codeStorage: '',//编码
  285. expressOrderNo: '',//快递单号
  286. uploadedImage: '',//物流图片
  287. item: '',//收单物品
  288. checkCodeFee: '',//查码费
  289. watchPrice: '',//表款
  290. benefitFee: '',//好处费
  291. freight: '',//运费
  292. repairAmount: '',//维修金额
  293. grossPerformance: '',//毛业绩
  294. remarks: '',//收单备注
  295. },
  296. // 分成信息相关的数据
  297. profitSharingList: [
  298. ],
  299. // 关联选项列表
  300. // associationOptions: [],
  301. // 分成人选项列表
  302. // personOptions: [],
  303. // 表单验证规则
  304. showOrgPicker: false,
  305. showPersonPicker: false,
  306. columnsOrgList: [],
  307. columnsPersonList: [],
  308. };
  309. },
  310. mounted() {
  311. // 获取分成人名单
  312. this.$nextTick(() => {
  313. this.getCommissionUserList();
  314. })
  315. },
  316. methods: {
  317. // 选择物流图片
  318. selectImage() {
  319. uni.chooseImage({
  320. count: 1,
  321. sizeType: ['compressed'],
  322. sourceType: ['album', 'camera'],
  323. success: async (res) => {
  324. const tempFilePath = res.tempFilePaths[0];
  325. //把选择的图片上传给服务器,然后获取返回路径
  326. const rep = await uni.$u.api.uploadFile(tempFilePath)
  327. if (rep.code == 200) {
  328. console.log('上传成功=====>', rep.data.url)
  329. this.warehouseInfo.uploadedImage = rep.data.url
  330. }
  331. }
  332. });
  333. },
  334. // 添加分成行
  335. addSplit() {
  336. // 添加新行
  337. this.profitSharingList.push({
  338. deptId: '',
  339. accountType: '1',
  340. userId: '',
  341. percentage: 0,
  342. isCompanyPerformance: '2',
  343. orgName: '',
  344. userName: '',
  345. id: '',
  346. });
  347. // 重新计算所有行的比例
  348. },
  349. // 切换账户类型
  350. toggleAccountType(item) {
  351. item.accountType = item.accountType == '1' ? '2' : '1';
  352. // 重新计算分成比例
  353. },
  354. // 处理百分比输入
  355. handlePercentageInput(item) {
  356. // 确保输入是数字
  357. let value = Number(item.percentage);
  358. // 验证输入值是否在有效范围内(0-100)
  359. if (isNaN(value)) {
  360. item.percentage = 0;
  361. } else if (value < 0) {
  362. item.percentage = 0;
  363. } else if (value > 100) {
  364. item.percentage = 100;
  365. } else {
  366. // 确保是整数
  367. item.percentage = Math.floor(value);
  368. }
  369. },
  370. // 切换归属公司状态
  371. toggleBelongToCompany(item) {
  372. item.isCompanyPerformance = item.isCompanyPerformance == '1' ? '2' : '1';
  373. },
  374. // 确认入库方法
  375. async confirmWarehouseEntry() {
  376. //上传物流表单数据
  377. this.$emit('confirmInterStore', {
  378. warehouseInfo: this.warehouseInfo,
  379. })
  380. //上传分成数据
  381. await this.addShare()
  382. this.$refs.uToast.show({
  383. type: "success",
  384. message: "入库成功",
  385. iconUrl: "https://uviewui.com/demo/toast/success.png",
  386. complete() {
  387. uni.navigateTo({
  388. url: '/pages/pagereceivecenter/pagereceivecenter',
  389. })
  390. },
  391. });
  392. //跳转接单
  393. },
  394. // 获取分成人名单
  395. async getCommissionUserList() {
  396. const commissionUserList = await uni.$u.api.getCustomerManagerAllList()
  397. console.log('分成人名单', commissionUserList.data[0].children)
  398. // this.associationOptions = commissionUserList.data[0].children
  399. this.columnsOrgList = [commissionUserList.data[0].children]
  400. },
  401. //初始化分成比例
  402. async getList() {
  403. const { rows, total } = await uni.$u.api.selectCommissionList({
  404. pageSize: 9999,
  405. pageNum: 1,
  406. }, { sendFormId: this.receiptList[0].sendFormId, });
  407. console.log('分成比例表格数据', rows)
  408. this.profitSharingList = rows
  409. },
  410. addShare() {
  411. this.profitSharingList.forEach(async item => {
  412. const data = {
  413. id: item.id || '',
  414. accountType: item.accountType == '1' ? 1 : 2,
  415. clueId: this.receiptList[0].clueId,
  416. commissionRate: item.commissionRate,
  417. isCompanyPerformance: item.isCompanyPerformance == '1' ? 1 : 2,
  418. sendFormId: this.receiptList[0].sendFormId,
  419. userId: item.userId,
  420. userName: item.userName,
  421. }
  422. if (item.id) {
  423. //更新
  424. await uni.$u.api.clueCommissionUpdate(data);
  425. } else {
  426. //新增
  427. await uni.$u.api.clueCommissionAdd(data);
  428. }
  429. });
  430. },
  431. //删除分成ok
  432. async deleteRow(id) {
  433. console.log(id, 'id')
  434. try {
  435. await uni.$u.api.deleteClueCommissionForm(id)
  436. uni.$u.toast('删除成功')
  437. this.getList()
  438. } catch (error) {
  439. uni.$u.toast('删除失败,请稍后重试')
  440. }
  441. },
  442. //打开选择框
  443. handleSelectOrg(item) {
  444. console.log(item.id, '当前选择的行的id')
  445. this.currentEditItem = item.id
  446. this.showOrgPicker = true
  447. },
  448. //选择当前的分成人
  449. handleSelectPerson(item) {
  450. console.log(item, '当前选择的行')
  451. this.currentEditItem = item.id
  452. //获取当前选择组织的分成人名单
  453. // 获取当前行的关联id
  454. const deptId = item.deptId
  455. const org = this.columnsOrgList[0].find(org => org.id == deptId)
  456. console.log(org, '当前选择的行的组织')
  457. if (org) {
  458. this.columnsPersonList = [org.children]
  459. }
  460. // 把当前选择组织的分成人名单赋值给当前行的分成人选项列表
  461. this.showPersonPicker = true
  462. },
  463. //确认选择组织
  464. handleOrgConfirmOrg({ columnIndex, value, values },) {
  465. console.log(value, '选择的组织')
  466. //把值赋值给当前行
  467. this.profitSharingList.forEach(item => {
  468. if (item.id == this.currentEditItem) {
  469. item.orgName = value[0].label
  470. item.deptId = value[0].id
  471. // item.personOptions = value[0].children
  472. //将当前的行的分成人清空
  473. item.userId = ''
  474. item.userName = ''
  475. }
  476. })
  477. this.showOrgPicker = false
  478. },
  479. //确认选择人
  480. handleConfirmPerson({ columnIndex, value, values },) {
  481. console.log(value, '选择的人')
  482. //把值赋值给当前行
  483. this.profitSharingList.forEach(item => {
  484. if (item.id == this.currentEditItem) {
  485. item.userName = value[0].label
  486. item.userId = value[0].id
  487. }
  488. })
  489. this.columnsPersonList = []
  490. this.showPersonPicker = false
  491. },
  492. // 取消选择人
  493. handleCancelPerson() {
  494. this.columnsPersonList = []
  495. this.showPersonPicker = false
  496. }
  497. }
  498. };
  499. </script>
  500. <style lang="scss" scoped>
  501. // 导入公共样式
  502. @import './common.scss';
  503. // 主样式
  504. .page-container {
  505. box-sizing: border-box;
  506. padding: 0;
  507. background-color: map-get($colors, bg);
  508. font-family: map-get($font, family);
  509. -webkit-font-smoothing: map-get($font, smoothing);
  510. font-smoothing: map-get($font, smoothing);
  511. }
  512. .address-section {
  513. padding: map-get($sizes, padding-sm) map-get($sizes, padding);
  514. .u-col {
  515. padding: 0;
  516. box-sizing: border-box;
  517. }
  518. .u-col:first-child {
  519. padding-right: 15rpx;
  520. }
  521. .u-col:last-child {
  522. padding-left: 15rpx;
  523. }
  524. }
  525. // 表单行样式
  526. .info-row {
  527. margin-bottom: 20rpx;
  528. box-sizing: border-box;
  529. padding: 0;
  530. }
  531. // 表单标签样式
  532. .info-label {
  533. @include font-styles($size: tiny, $weight: regular, $color: tertiary);
  534. margin-bottom: 8rpx;
  535. display: block;
  536. }
  537. // 输入框样式
  538. .info-input {
  539. height: 65rpx;
  540. border-radius: 8rpx;
  541. border: 1rpx solid #e5e7eb;
  542. padding: 20rpx 16rpx;
  543. width: 100%;
  544. box-sizing: border-box;
  545. @include font-styles($size: small, $weight: regular, $color: secondary);
  546. // textarea特殊样式
  547. &[type="textarea"] {
  548. min-height: 160rpx;
  549. resize: vertical;
  550. padding-top: 20rpx;
  551. padding-bottom: 20rpx;
  552. }
  553. }
  554. // 防止表单label换行
  555. ::v-deep .u-form-item__body__left__content__label {
  556. white-space: nowrap;
  557. }
  558. // 图片上传样式
  559. .image-uploader {
  560. width: 100%;
  561. height: 65rpx;
  562. border: 2rpx dashed #409eff;
  563. border-radius: 8rpx;
  564. display: flex;
  565. align-items: center;
  566. justify-content: center;
  567. cursor: pointer;
  568. background-color: #ecf5ff;
  569. box-sizing: border-box;
  570. overflow: hidden;
  571. transition: all 0.3s ease;
  572. &:hover {
  573. border-color: #66b1ff;
  574. background-color: #f0f9ff;
  575. transform: scale(1.02);
  576. }
  577. }
  578. .camera-icon {
  579. margin: 0;
  580. font-size: 32rpx;
  581. color: #409eff;
  582. transition: all 0.3s ease;
  583. }
  584. .image-uploader:hover .camera-icon {
  585. color: #66b1ff;
  586. transform: scale(1.1);
  587. }
  588. .image-preview {
  589. width: 100%;
  590. height: 100%;
  591. object-fit: cover;
  592. border-radius: 10rpx;
  593. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
  594. transition: all 0.3s ease;
  595. }
  596. .image-uploader:hover .image-preview {
  597. transform: scale(1.02);
  598. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.15);
  599. }
  600. .hidden-input {
  601. display: none;
  602. }
  603. // 分成信息卡片样式
  604. .address-header {
  605. display: flex;
  606. align-items: center;
  607. justify-content: space-between;
  608. margin-bottom: 20rpx;
  609. .address-title {
  610. @include font-styles($size: small, $weight: medium, $color: primary);
  611. margin-left: 10rpx;
  612. }
  613. }
  614. .split-content {
  615. padding: 10rpx 0;
  616. }
  617. .split-item {
  618. display: flex;
  619. justify-content: space-between;
  620. align-items: center;
  621. padding: 15rpx 0;
  622. border-bottom: 1rpx solid map-get($colors, border);
  623. &:last-child {
  624. border-bottom: none;
  625. }
  626. }
  627. .split-label {
  628. @include font-styles($size: tiny, $weight: regular, $color: tertiary);
  629. }
  630. .split-value {
  631. @include font-styles($size: small, $weight: regular, $color: secondary);
  632. }
  633. .add-button {
  634. padding: 0;
  635. width: 50rpx;
  636. height: 50rpx;
  637. display: flex;
  638. align-items: center;
  639. justify-content: center;
  640. }
  641. /* 分成信息表格样式 */
  642. .split-table {
  643. width: 100%;
  644. margin-top: 20rpx;
  645. background-color: #fff;
  646. border-radius: 8rpx;
  647. overflow: hidden;
  648. }
  649. .split-table-header {
  650. background-color: #f5f7fa;
  651. padding: 15rpx 0;
  652. border-bottom: 1rpx solid #e4e7ed;
  653. }
  654. .split-table-row {
  655. padding: 15rpx 0;
  656. border-bottom: 1rpx solid #e4e7ed;
  657. align-items: center;
  658. &:last-child {
  659. border-bottom: none;
  660. }
  661. }
  662. .header-text {
  663. @include font-styles($size: tiny, $weight: regular, $color: tertiary);
  664. text-align: center;
  665. display: block;
  666. }
  667. .table-cell {
  668. display: flex;
  669. align-items: center;
  670. justify-content: center;
  671. padding: 0 10rpx;
  672. box-sizing: border-box;
  673. }
  674. .action-column {
  675. display: flex;
  676. align-items: center;
  677. justify-content: center;
  678. }
  679. /* 自定义下拉框样式 - 隐藏原生箭头 */
  680. .custom-select {
  681. width: 100%;
  682. height: 50rpx;
  683. border-radius: 0;
  684. border: 1rpx solid #e5e7eb;
  685. text-align: center;
  686. /* 增加右侧内边距,为自定义箭头留出空间 */
  687. @include font-styles($size: tiny, $weight: regular, $color: secondary);
  688. background-color: #fff;
  689. /* 确保隐藏所有浏览器的原生箭头 */
  690. appearance: none !important;
  691. -webkit-appearance: none !important;
  692. -moz-appearance: none !important;
  693. -o-appearance: none !important;
  694. cursor: pointer;
  695. /* 使用自定义SVG箭头 */
  696. background-repeat: no-repeat;
  697. background-position: right 8rpx center;
  698. background-size: 12rpx 12rpx;
  699. box-sizing: border-box;
  700. position: relative;
  701. /* 防止箭头在焦点状态下显示 */
  702. &:focus {
  703. outline: none;
  704. border-color: #409eff;
  705. box-shadow: 0 0 0 2rpx rgba(64, 158, 255, 0.2);
  706. }
  707. /* 针对IE/Edge浏览器的特殊处理 */
  708. &::-ms-expand {
  709. display: none !important;
  710. }
  711. /* 针对某些旧版浏览器的额外处理 */
  712. &::-webkit-select-arrow {
  713. display: none !important;
  714. }
  715. /* 添加伪元素覆盖可能残留的箭头 */
  716. &::after {
  717. content: '';
  718. position: absolute;
  719. right: 8rpx;
  720. top: 50%;
  721. transform: translateY(-50%);
  722. width: 12rpx;
  723. height: 12rpx;
  724. 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");
  725. background-repeat: no-repeat;
  726. background-size: 100% 100%;
  727. pointer-events: none;
  728. z-index: 1;
  729. }
  730. }
  731. /* 百分比输入框样式 */
  732. .percentage-input {
  733. text-align: center;
  734. background-color: #f9f9f9;
  735. color: #606266;
  736. text-align: center;
  737. padding: 0rpx !important;
  738. }
  739. /* 账户类型标签样式 */
  740. .account-type {
  741. padding: 4rpx 16rpx;
  742. border-radius: 12rpx;
  743. font-size: 24rpx;
  744. font-weight: 500;
  745. color: #fff;
  746. text-align: center;
  747. }
  748. .account-type.frontend {
  749. background-color: #409eff;
  750. }
  751. .account-type.backend {
  752. background-color: #909399;
  753. }
  754. /* 调整表格布局,使其更紧凑 */
  755. .split-table {
  756. width: 100%;
  757. margin-top: 10rpx;
  758. }
  759. .split-table-header,
  760. .split-table-row {
  761. padding: 10rpx 0;
  762. }
  763. .table-cell {
  764. padding: 0 5rpx;
  765. }
  766. /* 归属公司单选框样式 */
  767. .radio-wrapper {
  768. cursor: pointer;
  769. display: flex;
  770. align-items: center;
  771. justify-content: center;
  772. }
  773. .radio-circle {
  774. width: 32rpx;
  775. height: 32rpx;
  776. border-radius: 50%;
  777. border: 2rpx solid #dcdfe6;
  778. display: flex;
  779. align-items: center;
  780. justify-content: center;
  781. transition: all 0.3s ease;
  782. }
  783. .radio-circle.active {
  784. border-color: #67c23a;
  785. background-color: #67c23a;
  786. }
  787. /* 确认入库按钮样式 */
  788. .confirm-button-container {
  789. display: flex;
  790. justify-content: center;
  791. align-items: center;
  792. padding: 40rpx 0;
  793. margin-top: 20rpx;
  794. }
  795. /* 响应式布局调整 */
  796. @media screen and (max-width: 750rpx) {
  797. .split-table {
  798. overflow-x: auto;
  799. }
  800. .custom-select {
  801. width: 100%;
  802. }
  803. .account-type {
  804. padding: 2rpx 10rpx;
  805. font-size: 22rpx;
  806. }
  807. }
  808. @media screen and (min-width: 751rpx) {
  809. .table-cell {
  810. padding: 0 10rpx;
  811. }
  812. }
  813. .u-button {
  814. height: 60rpx;
  815. }
  816. .delectBtn {
  817. height: 40rpx;
  818. .u-button {
  819. width: 40rpx;
  820. }
  821. }
  822. .delectBtn ::v-deep .u-button--mini {
  823. min-width: 20rpx !important;
  824. }
  825. </style>