applicationDetails.vue 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484
  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"
  5. :list="tabList" :is-scroll="false" :current="current" @change="change"></u-tabs>
  6. <template v-if="current==0">
  7. <view class="withdraw">
  8. <view class="withdraw-head">
  9. <b>申请站点</b>
  10. <span>
  11. <view class="uni-input">{{info.stationName}}</view>
  12. </span>
  13. </view>
  14. <view class="withdraw-head">
  15. <b>申请时间</b>
  16. <span>
  17. <view class="uni-input">{{info.updateTime}}</view>
  18. </span>
  19. </view>
  20. <view class="withdraw-head">
  21. <b>申请人身份</b>
  22. <span>
  23. <view class="uni-input">{{info.shareProfitRoleName}}</view>
  24. </span>
  25. </view>
  26. <view class="withdraw-head">
  27. <b>提现事由</b>
  28. <span>
  29. <view class="uni-input">{{info.applicationTypeText}}</view>
  30. </span>
  31. </view>
  32. <view class="withdraw-head">
  33. <b>提现月份</b>
  34. <span>
  35. <view class="uni-input">{{info.applicationMonth}}</view>
  36. </span>
  37. </view>
  38. <view class="withdraw-head">
  39. <b>审核进度</b>
  40. <span>
  41. <view class="uni-input" :class="{
  42. wsuccess:info.status=='1',
  43. werror:info.status=='2',
  44. werror2:info.status=='0'
  45. }" >{{info.statusText}}</view>
  46. </span>
  47. </view>
  48. <view class="withdraw-head border-n">
  49. <b>充电分成</b>
  50. <span>
  51. <view class="uni-input">{{info.chargingProfitAmount}}元</view>
  52. </span>
  53. </view>
  54. </view>
  55. <view class="withdraw">
  56. <view class="withdraw-head">
  57. <b>成本电价</b>
  58. <span>
  59. <view class="uni-input">{{info.electricityPrice}}元/度</view>
  60. </span>
  61. </view>
  62. <view class="withdraw-head ">
  63. <b>实际电量</b>
  64. <span>
  65. <view class="uni-input">{{info.electricQuantity}}度</view>
  66. </span>
  67. </view>
  68. <view class="withdraw-head border-n">
  69. <b>电费成本</b>
  70. <span>
  71. {{info.electricityCost}}元
  72. </span>
  73. </view>
  74. </view>
  75. <view class="withdraw">
  76. <view class="withdraw-head ">
  77. <b>充电分成比例</b>
  78. <span>
  79. <view class="uni-input">{{info.chargingPercent}}%</view>
  80. </span>
  81. </view>
  82. <view class="withdraw-head ">
  83. <b>充电分成</b>
  84. <span>
  85. <view class="uni-input">{{info.chargingProfitAmount}}元</view>
  86. </span>
  87. </view>
  88. <view class="withdraw-head border-n">
  89. <b>充电服务收益</b>
  90. <span>
  91. <view class="uni-input">{{info.chargingServiceProfitAmount}}元</view>
  92. </span>
  93. </view>
  94. </view>
  95. <view class="withdraw">
  96. <view class="withdraw-head">
  97. <b>包月卡分润笔数</b>
  98. <span>
  99. {{info.monthlyCardIncome}}笔
  100. </span>
  101. </view>
  102. <view class="withdraw-head border-n">
  103. <b>包月卡收益</b>
  104. <span>
  105. {{info.monthlyCardTotal}}元
  106. </span>
  107. </view>
  108. </view>
  109. <view class="withdraw">
  110. <view class="withdraw-head">
  111. <b>合伙人总收入</b>
  112. <span>
  113. {{info.totalIncome}}元
  114. </span>
  115. </view>
  116. <view class="withdraw-head border-n">
  117. <b>合伙人总收益</b>
  118. <span>
  119. {{info.totalProfitAmount}}元
  120. </span>
  121. </view>
  122. </view>
  123. <view class="withdraw">
  124. <view class="withdraw-head ">
  125. <b>是否开票</b>
  126. <span>
  127. <view class="uni-input">{{info.invoiceRequired?'是':'否'}}</view>
  128. </span>
  129. </view>
  130. <view class="withdraw-head ">
  131. <b>发票类型</b>
  132. <span>
  133. <view class="uni-input" v-if="!info.invoiceType">无</view>
  134. <view class="uni-input" v-else>{{list1[info.invoiceType].name}}</view>
  135. </span>
  136. </view>
  137. <view class="withdraw-head border-n ">
  138. <b>发票税率</b>
  139. <span>
  140. <view class="uni-input">{{info.taxRate?info.taxRate+'%':''}}</view>
  141. </span>
  142. </view>
  143. </view>
  144. <view class="withdraw">
  145. <view class="withdraw-head ">
  146. <b class="asterisk">申请提现金额</b>
  147. <span>
  148. <view class="uni-input">{{info.applicationAmount}}元</view>
  149. </span>
  150. </view>
  151. <view class="withdraw-head border-n">
  152. <b>大写金额</b>
  153. <span>
  154. <view class="uni-input">{{applicationAmountDX}}</view>
  155. </span>
  156. </view>
  157. </view>
  158. <view class="withdraw">
  159. <view class="withdraw-head ">
  160. <b class="asterisk">提现人收款户名</b>
  161. <p class="infos">{{info.accountName}}</p>
  162. </view>
  163. <view class="withdraw-head ">
  164. <b class="asterisk">提现人收款银行</b>
  165. <p class="infos">{{info.bankName}}</p>
  166. </view>
  167. <view class="withdraw-head border-n">
  168. <b class="asterisk">提现人收款账号</b>
  169. <p class="infos">{{info.accountNo}}</p>
  170. </view>
  171. </view>
  172. </template>
  173. <template v-if="current==1">
  174. <view class="margin">
  175. <view class="details " v-for="(item,i) in detailList" :key="i">
  176. <p>{{item.itemName}}</p>
  177. <view class="withdraw" >
  178. <view class="withdraw-head ">
  179. <b class="asterisk">金额</b>
  180. <span >
  181. <view class="uni-input">{{item.itemAmount}}元</view>
  182. </span>
  183. </view>
  184. <view class="withdraw-head ">
  185. <b class="asterisk">备注</b>
  186. <span>
  187. <view class="uni-input">{{item.itemRemark?item.itemRemark:'无'}}</view>
  188. </span>
  189. </view>
  190. </view>
  191. </view>
  192. </view>
  193. </template>
  194. </view>
  195. </template>
  196. <script>
  197. import * as API from '@/apis/finance.js'
  198. import {
  199. DX
  200. } from '@/utils'
  201. export default {
  202. data() {
  203. return {
  204. isPt: false,
  205. id:'',
  206. detailList:[],
  207. info: {
  208. electricityPrice: '',
  209. electricQuantity: '',
  210. stationId: "",
  211. applicationType: '1'
  212. },
  213. stationList: [],
  214. stationObj: {},
  215. current: 0, // tabs组件的current值,表示当前活动的tab选项
  216. list1: [{
  217. name: '普票',
  218. value: "1"
  219. }, {
  220. name: '专票',
  221. value: "2"
  222. }, {
  223. name: '收据',
  224. value: "3"
  225. }],
  226. list2: [{
  227. name: '是',
  228. value: "1"
  229. }, {
  230. name: '否 ',
  231. value: "0"
  232. }],
  233. tabList: [{
  234. name: '申请单主表'
  235. }, {
  236. name: '提现明细'
  237. }],
  238. }
  239. },
  240. onLoad(op){
  241. if(op.id){
  242. this.id=op.id
  243. this.getInfo()
  244. }
  245. },computed: {
  246. applicationAmountDX() {
  247. if (this.info.applicationAmount) {
  248. var c = DX(this.info.applicationAmount)
  249. return c
  250. } else {
  251. return ''
  252. }
  253. },
  254. },
  255. methods: {
  256. getInfo(){
  257. uni.showLoading({
  258. title: "加载中",
  259. mask: true,
  260. })
  261. API.getWithdrawInfo(this.id).then((res) => {
  262. this.info=res.data.record
  263. this.detailList=res.data.detailList
  264. uni.hideLoading()
  265. }).catch(error => {
  266. uni.showToast({
  267. title: error
  268. })
  269. })
  270. },
  271. change(index) {
  272. this.current = index;
  273. }
  274. }
  275. }
  276. </script>
  277. <style>
  278. page {
  279. background-color: #F7F7F7;
  280. padding-bottom: 65px;
  281. }
  282. </style>
  283. <style lang="scss" scoped>
  284. .download {
  285. color: #185AC6;
  286. }
  287. /deep/.u-tab-bar {
  288. background-color: #0076FF !important;
  289. }
  290. /deep/.u-tabs-scorll-flex {
  291. width: 56%;
  292. margin: 0 auto;
  293. }
  294. .withdraw-tips {
  295. margin: 24px 16px;
  296. p {
  297. color: #999;
  298. margin-top: 4px;
  299. }
  300. }
  301. .withdraw {
  302. margin-bottom: 8px;
  303. background-color: #fff;
  304. padding: 0px 16px 0 16px;
  305. .withdraw-head {
  306. padding: 14px 0;
  307. border-bottom: 1px solid #F2F2F2;
  308. align-items: center;
  309. position: relative;
  310. .wsuccess{color:#27b148 !important}
  311. .werror{color:#FF6200 !important;}
  312. .werror2{color:#1ba7f4 !important;}
  313. .unit {
  314. position: absolute;
  315. top: 34rpx;
  316. right: 0;
  317. }
  318. .whthdraw-price {
  319. font-size: 18px;
  320. color: #101010;
  321. font-weight: 600;
  322. }
  323. b {
  324. color: rgba(119, 119, 119, 100);
  325. font-size: 16px;
  326. }
  327. span {
  328. width: 60%;
  329. float: right;
  330. text-align: left;
  331. font-size: 16px;
  332. color: #333333;
  333. }
  334. @media screen and (max-width:320px) {
  335. span{
  336. width: 55%;
  337. }
  338. }
  339. .uni-input {
  340. font-size: 16px;
  341. color: #333333;
  342. line-height: 18px;
  343. }
  344. }
  345. .withdraw-main {
  346. border-top: 1px solid #f7f7f7;
  347. border-bottom: 1px solid #f7f7f7;
  348. margin: 16px 0;
  349. padding: 16px 0;
  350. .withdraw-input {
  351. margin-top: 32px;
  352. display: flex;
  353. align-items: center;
  354. font-size: 28px;
  355. /deep/.uni-input-input {
  356. font-size: 28px;
  357. }
  358. }
  359. }
  360. .withdraw-foot {
  361. display: flex;
  362. align-items: center;
  363. p {
  364. color: #999
  365. }
  366. span {
  367. color: #2979FF;
  368. margin-left: 16px;
  369. }
  370. }
  371. }
  372. .more {
  373. float: right;
  374. color: #B3B3B3;
  375. font-size: 24px
  376. }
  377. .border-n {
  378. border: none !important;
  379. }
  380. .infos{
  381. margin-top: 16px;
  382. color: rgba(51, 51, 51, 100);
  383. font-size: 16px;
  384. }
  385. .margin{
  386. margin-top: 12px !important;
  387. }
  388. .details {
  389. margin: 0 16px;
  390. margin-bottom: 8px ;
  391. border-radius: 8px;
  392. background-color: #fff;
  393. padding:0 12px 0px 12px;
  394. p{
  395. font-size: 16px;
  396. color: #333333;
  397. line-height: 50px;
  398. border-bottom: solid 1px #E5E7EA;
  399. padding-left: 16px;
  400. }
  401. span{
  402. width: 75% !important;
  403. }
  404. }
  405. </style>