applicationForWithdrawal.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577
  1. <template>
  2. <view>
  3. <u-navbar title="提现申请单"></u-navbar>
  4. <u-tabs name="cate_name" gutter="200" bar-width="100" active-color="#101010" inactive-color="#A1A1A1" :list="tabList" :is-scroll="false" :current="current" @change="change"></u-tabs>
  5. <template v-if="current==0">
  6. <view class="withdraw">
  7. <view class="withdraw-head">
  8. <b class="asterisk"><text>*</text>申请站点</b>
  9. <span>
  10. <picker >
  11. <view class="uni-input">
  12. <view class="input-text">
  13. 51充电联盟玉桥充电站
  14. </view>
  15. <view class="iconfont more">
  16. &#xe600;
  17. </view>
  18. </view>
  19. </picker>
  20. </span>
  21. </view>
  22. <view class="withdraw-head">
  23. <b class="asterisk"><text>*</text>提现事由</b>
  24. <span>
  25. <picker>
  26. <view class="uni-input">物业方结算<text class="iconfont more">
  27. &#xe600;
  28. </text></view>
  29. </picker>
  30. </span>
  31. </view>
  32. <view class="withdraw-head">
  33. <b class="asterisk"><text>*</text>提现月份</b>
  34. <span>
  35. <picker>
  36. <view class="uni-input">2022年7月<text class="iconfont more">
  37. &#xe600;
  38. </text></view>
  39. </picker>
  40. </span>
  41. </view>
  42. <view class="withdraw-head ">
  43. <b>充电分成</b><span>2601.62元</span>
  44. </view>
  45. <view class="withdraw-head border-n">
  46. <b>分润提现明细表</b><span class="download">
  47. <u-icon name="download"></u-icon> 下载
  48. </span>
  49. </view>
  50. </view>
  51. <view class="withdraw">
  52. <view class="withdraw-head">
  53. <b class="asterisk"><text>*</text>电单价</b>
  54. <text class="unit" style="float: right;font-size: 16px;">元/度</text>
  55. <span class="withdraw-input" style="width: 63%;">
  56. <u-input height="20px" placeholder="请填写价格" input-align="left" type="digit">
  57. </u-input>
  58. </span>
  59. </view>
  60. <view class="withdraw-head">
  61. <b class="asterisk">预估电量</b>
  62. <span class="withdraw-input" style="width: 63%;">
  63. 3000.000度
  64. </span>
  65. </view>
  66. <view class="withdraw-head">
  67. <b class="asterisk"><text>*</text>实际电量</b>
  68. <text class="unit" style="float: right;font-size: 16px;">度</text>
  69. <span class="withdraw-input" style="width: 63%;">
  70. <u-input height="20px" placeholder="请填写度数" input-align="left" type="digit">
  71. </u-input>
  72. </span>
  73. </view>
  74. <view class="withdraw-head border-n">
  75. <b>电费成本</b>
  76. <text class="unit" style="float: right;font-size: 16px;"></text>
  77. <span class="withdraw-input" style="width: 63%;">
  78. <u-input height="20px" placeholder="自动计算出结果" input-align="left" type="digit">
  79. </u-input>
  80. </span>
  81. </view>
  82. </view>
  83. <view class="withdraw">
  84. <view class="withdraw-head">
  85. <b>充电分成比例</b>
  86. <span>
  87. 96.2%
  88. </span>
  89. </view>
  90. <view class="withdraw-head">
  91. <b>充电分成</b>
  92. <span>
  93. 2502.72元
  94. </span>
  95. </view>
  96. <view class="withdraw-head border-n">
  97. <b>充电服务收益</b>
  98. <span>
  99. 286.59元
  100. </span>
  101. </view>
  102. </view>
  103. <view class="withdraw">
  104. <view class="withdraw-head">
  105. <b>包月卡分润笔数</b>
  106. <span>
  107. 1笔
  108. </span>
  109. </view>
  110. <view class="withdraw-head border-n">
  111. <b>包月卡收益</b>
  112. <span>
  113. 57.62元
  114. </span>
  115. </view>
  116. </view>
  117. <view class="withdraw">
  118. <view class="withdraw-head">
  119. <b>合伙人总收入</b>
  120. <span>
  121. 2560.35元
  122. </span>
  123. </view>
  124. <view class="withdraw-head border-n">
  125. <b>合伙人总收益</b>
  126. <span>
  127. 344.21元
  128. </span>
  129. </view>
  130. </view>
  131. <view class="withdraw">
  132. <view class="withdraw-head">
  133. <b>是否开票</b><span>
  134. <u-radio-group>
  135. <u-radio v-for="(item, index) in list2" style="margin-right: 16px;" :key="index+'a'"
  136. :name="item.value" :disabled="item.disabled" active-color="blue">
  137. {{item.name}}
  138. </u-radio>
  139. </u-radio-group>
  140. </span>
  141. </view>
  142. <view class="withdraw-head">
  143. <b>发票类型</b><span>
  144. <u-radio-group>
  145. <u-radio v-for="(item, index) in list1" :key="index+'a'" :name="item.value"
  146. :disabled="item.disabled" active-color="blue">
  147. {{item.name}}
  148. </u-radio>
  149. </u-radio-group>
  150. </span>
  151. </view>
  152. <view class="withdraw-head border-n">
  153. <b class="asterisk"><text>*</text>发票税率</b>
  154. <text style="float: right;font-size: 16px;">%</text>
  155. <span class="withdraw-input" style="width: 58%;">
  156. <u-input height="20px" placeholder="请输入开票税率" input-align="left" type="digit">
  157. </u-input>
  158. </span>
  159. </view>
  160. </view>
  161. <view class="withdraw">
  162. <view class="withdraw-head ">
  163. <b class="asterisk"><text>*</text>申请提现金额</b>
  164. <text class="unit" style="float: right;font-size: 16px;">元</text>
  165. <span class="withdraw-input" style="width: 63%;">
  166. <u-input height="20px" placeholder="请填写金额" input-align="left" type="digit">
  167. </u-input>
  168. </span>
  169. </view>
  170. <view class="withdraw-head border-n">
  171. <b>大写金额</b>
  172. <span class="withdraw-input" style="width: 63%;">
  173. <u-input height="20px" placeholder="自动转换" input-align="left" type="digit">
  174. </u-input>
  175. </span>
  176. </view>
  177. </view>
  178. <view class="withdraw">
  179. <view class="withdraw-head ">
  180. <b class="asterisk"><text>*</text>提现人收款户名</b>
  181. <u-input class="textarea" type="textarea" placeholder="请填写收款户名" height="96" cursor-spacing="8" />
  182. </view>
  183. <view class="withdraw-head ">
  184. <b class="asterisk"><text>*</text>提现人收款银行</b>
  185. <u-input class="textarea" type="textarea" placeholder="请填写收款银行全称" height="96" cursor-spacing="8" />
  186. </view>
  187. <view class="withdraw-head border-n">
  188. <b class="asterisk"><text>*</text>提现人收款账号</b>
  189. <u-input class="textarea" type="textarea" placeholder="提现人收款账号" height="96" cursor-spacing="8" />
  190. </view>
  191. </view>
  192. </template>
  193. <template v-if="current==1">
  194. <view class="details">
  195. <view class="withdraw">
  196. <view class="withdraw-head">
  197. <b class="asterisk"><text>*</text>项目</b>
  198. <text class="unit" style="float: right;font-size: 16px;">
  199. <i class="ri-indeterminate-circle-fill" style="color: red;font-size: 24px;"></i>
  200. </text>
  201. <span class="withdraw-input" style="width: 80%;">
  202. <u-input height="20px" placeholder="请填写项目名称" input-align="left" type="digit">
  203. </u-input>
  204. </span>
  205. </view>
  206. <view class="withdraw-head border-n">
  207. <b class="asterisk"><text>*</text>金额</b>
  208. <text class="unit" style="float: right;font-size: 16px;">元</text>
  209. <span class="withdraw-input" style="width: 80%;">
  210. <u-input height="20px" placeholder="请填写价格" input-align="left" type="digit">
  211. </u-input>
  212. </span>
  213. </view>
  214. <view class="withdraw-head border-n">
  215. <b>备注</b>
  216. <span class="withdraw-input" style="width: 80%;">
  217. <u-input height="20px" placeholder="请填写备注信息" input-align="left" type="digit">
  218. </u-input>
  219. </span>
  220. </view>
  221. </view>
  222. </view>
  223. <view class="add"><i class="ri-add-circle-fill"></i><text>增加项目</text></view>
  224. </template>
  225. <view class="applyBtn">
  226. <u-button class="save">保存草稿</u-button>
  227. <u-button class="submit">提交申请单</u-button>
  228. </view>
  229. </view>
  230. </template>
  231. <script>
  232. export default {
  233. data() {
  234. return {
  235. isPt: false,
  236. info: {},
  237. stationList: [],
  238. stationObj: {},
  239. current: 0, // tabs组件的current值,表示当前活动的tab选项
  240. list1: [{
  241. name: '收据',
  242. value: "1"
  243. }, {
  244. name: '普通发票',
  245. value: "2"
  246. }],
  247. list2: [{
  248. name: '是',
  249. value: "1"
  250. }, {
  251. name: '否 ',
  252. value: "0"
  253. }],
  254. tabList: [{
  255. name: '申请单主表'
  256. }, {
  257. name: '提现明细'
  258. }],
  259. }
  260. },
  261. methods: {
  262. change(index) {
  263. this.current = index;
  264. }
  265. }
  266. }
  267. </script>
  268. <style>
  269. page {
  270. background-color: #F7F7F7;
  271. padding-bottom: 65px;
  272. }
  273. </style>
  274. <style lang="scss" scoped>
  275. .download {
  276. color: #185AC6 !important;
  277. }
  278. /deep/.u-tab-bar{
  279. background-color: #0076FF !important;
  280. }
  281. /deep/.u-tabs-scorll-flex{
  282. width: 56%;
  283. margin: 0 auto;
  284. }
  285. .withdraw-tips {
  286. margin: 24px 16px;
  287. p {
  288. color: #999;
  289. margin-top: 4px;
  290. }
  291. }
  292. .uni-input{
  293. font-size: 16px;
  294. color: #333333;
  295. }
  296. .withdraw {
  297. margin-bottom: 8px;
  298. background-color: #fff;
  299. padding: 0px 16px 0 16px;
  300. .withdraw-head {
  301. padding: 16px 0;
  302. border-bottom: 1px solid #E5E7EA;
  303. align-items: center;
  304. position: relative;
  305. .unit {
  306. position: absolute;
  307. top: 34rpx;
  308. right: 0;
  309. }
  310. .whthdraw-price {
  311. font-size: 18px;
  312. color: #101010;
  313. font-weight: 600;
  314. }
  315. b {
  316. color: rgba(119, 119, 119, 100);
  317. font-size: 16px;
  318. }
  319. span {
  320. width: 60%;
  321. float: right;
  322. text-align: left;
  323. font-size: 16px;
  324. color: #333333;
  325. }
  326. @media screen and (max-width:320px) {
  327. span{
  328. width: 55%;
  329. }
  330. }
  331. }
  332. .withdraw-main {
  333. border-top: 1px solid #f7f7f7;
  334. border-bottom: 1px solid #f7f7f7;
  335. margin: 16px 0;
  336. padding: 16px 0;
  337. .withdraw-input {
  338. margin-top: 32px;
  339. display: flex;
  340. align-items: center;
  341. font-size: 28px;
  342. /deep/.uni-input-input {
  343. font-size: 28rpx;
  344. }
  345. }
  346. }
  347. .withdraw-foot {
  348. display: flex;
  349. align-items: center;
  350. p {
  351. color: #999
  352. }
  353. span {
  354. color: #2979FF;
  355. margin-left: 16px;
  356. }
  357. }
  358. }
  359. .more {
  360. color: #B3B3B3;
  361. font-size: 24px
  362. }
  363. .applyBtn {
  364. margin: 16px;
  365. display: flex;
  366. font-size: 16px;
  367. line-height: 44px;
  368. height: 44px;
  369. position: fixed;
  370. bottom: 0;
  371. left: 0;
  372. right: 0;
  373. .save {
  374. width: 33.6%;
  375. border-radius: 8px 0px 0px 8px;
  376. background-color: rgba(0, 185, 98, 100);
  377. color: rgba(255, 255, 255, 100);
  378. }
  379. .submit {
  380. width: 66.4%;
  381. border-radius: 0px 8px 8px 0px;
  382. background-color: rgba(24, 90, 198, 100);
  383. color: rgba(255, 255, 255, 100);
  384. }
  385. }
  386. /deep/.uni-input-input {
  387. text-align: start !important;
  388. }
  389. .border-n {
  390. border: none !important;
  391. }
  392. .textarea {
  393. background-color: rgba(242, 242, 242, 100);
  394. margin-top: 12px;
  395. line-height: 20px;
  396. border-radius: 4px;
  397. color: rgba(136, 136, 136, 100);
  398. .uni-textarea-placeholder {
  399. padding: 0 16rpx;
  400. }
  401. /deep/.uni-textarea-textarea {
  402. width: 90%;
  403. padding: 0 16rpx;
  404. }
  405. }
  406. .details{
  407. margin: 16px;
  408. border-radius: 8px;
  409. background-color: #fff;
  410. overflow: hidden;
  411. }
  412. .asterisk{
  413. position: relative;
  414. text{
  415. position: absolute;
  416. top: 0px;
  417. left: -14rpx;
  418. color: #EE3138;
  419. }
  420. }
  421. .add{
  422. text-align: center;
  423. font-size: 18px;
  424. color: #101010;
  425. display: flex;
  426. align-items: center;
  427. justify-content: center;
  428. .ri-add-circle-fill{
  429. font-size: 24px;
  430. color: #44B371;
  431. margin: auto 0;
  432. margin-right: 4rpx;
  433. }
  434. }
  435. /deep/.u-input__input{
  436. font-size: 16px !important
  437. }
  438. .uni-input{
  439. display: flex;
  440. justify-content: space-between;
  441. }
  442. .input-text{
  443. white-space: nowrap;
  444. overflow: hidden;
  445. text-overflow: ellipsis;
  446. }
  447. </style>