applicationDetails.vue 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524
  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.monthlyCardTotal}}笔
  100. </span>
  101. </view>
  102. <view class="withdraw-head border-n">
  103. <b>包月卡收益</b>
  104. <span>
  105. {{info.monthlyCardIncome?info.monthlyCardIncome.toFixed(2):0}}元
  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>{{invoiceTypeName}}</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 style="text-align: center;margin-top: 100px" v-if="!detailList.length">
  176. <img src="@/assets/img/blankpage.png">
  177. <view>未填写提现明细</view>
  178. </view>
  179. <view class="details " v-for="(item,i) in detailList" :key="i">
  180. <p>{{item.itemName}}</p>
  181. <view class="withdraw" >
  182. <view class="withdraw-head ">
  183. <b class="asterisk">金额</b>
  184. <span >
  185. <view class="uni-input">{{item.itemAmount}}元</view>
  186. </span>
  187. </view>
  188. <view class="withdraw-head ">
  189. <b class="asterisk">备注</b>
  190. <span>
  191. <view class="uni-input">{{item.itemRemark?item.itemRemark:'无'}}</view>
  192. </span>
  193. </view>
  194. </view>
  195. </view>
  196. </view>
  197. </template>
  198. </view>
  199. </template>
  200. <script>
  201. import * as API from '@/apis/finance.js'
  202. import {
  203. DX
  204. } from '@/utils'
  205. export default {
  206. data() {
  207. return {
  208. isPt: false,
  209. id:'',
  210. detailList:[],
  211. info: {
  212. electricityPrice: '',
  213. electricQuantity: '',
  214. stationId: "",
  215. applicationType: '1'
  216. },
  217. stationList: [],
  218. stationObj: {},
  219. current: 0, // tabs组件的current值,表示当前活动的tab选项
  220. list1: [{
  221. name: '普票',
  222. value: "1"
  223. }, {
  224. name: '专票',
  225. value: "2"
  226. }, {
  227. name: '收据',
  228. value: "3"
  229. }],
  230. list2: [{
  231. name: '是',
  232. value: "1"
  233. }, {
  234. name: '否 ',
  235. value: "0"
  236. }],
  237. tabList: [{
  238. name: '申请单主表'
  239. }, {
  240. name: '提现明细'
  241. }],
  242. }
  243. },
  244. onLoad(op){
  245. if(op.id){
  246. this.id=op.id
  247. this.getInfo()
  248. }
  249. },computed: {
  250. invoiceTypeName(){
  251. var info =this.list1.find(item=>{
  252. console.log(item.value==this.info.invoiceType)
  253. return item.value==this.info.invoiceType
  254. })
  255. if(info){
  256. return info.name
  257. }
  258. return''
  259. },
  260. applicationAmountDX() {
  261. if (this.info.applicationAmount) {
  262. var c = DX(this.info.applicationAmount)
  263. return c
  264. } else {
  265. return ''
  266. }
  267. },
  268. },
  269. watch:{
  270. detailList(nVal, oVal) {
  271. console.log(nVal)
  272. var obj=[
  273. {
  274. name: '申请单主表'
  275. }, {
  276. name: '提现明细'
  277. }
  278. ]
  279. if(nVal&&nVal.length){
  280. obj[1].count=nVal.length
  281. }
  282. this.tabList=obj
  283. }
  284. },
  285. methods: {
  286. getInfo(){
  287. uni.showLoading({
  288. title: "加载中",
  289. mask: true,
  290. })
  291. API.getWithdrawInfo(this.id).then((res) => {
  292. this.info=res.data.record
  293. this.detailList=res.data.detailList
  294. uni.hideLoading()
  295. }).catch(error => {
  296. uni.showToast({
  297. title: error
  298. })
  299. })
  300. },
  301. change(index) {
  302. this.current = index;
  303. }
  304. }
  305. }
  306. </script>
  307. <style>
  308. page {
  309. background-color: #F7F7F7;
  310. padding-bottom: 65px;
  311. }
  312. </style>
  313. <style lang="scss" scoped>
  314. .download {
  315. color: #185AC6;
  316. }
  317. /deep/.u-tab-bar {
  318. background-color: #0076FF !important;
  319. }
  320. /deep/.u-tabs-scorll-flex {
  321. width: 56%;
  322. margin: 0 auto;
  323. }
  324. .withdraw-tips {
  325. margin: 24px 16px;
  326. p {
  327. color: #999;
  328. margin-top: 4px;
  329. }
  330. }
  331. .withdraw {
  332. margin-bottom: 8px;
  333. background-color: #fff;
  334. padding: 0px 16px 0 16px;
  335. .withdraw-head {
  336. padding: 14px 0;
  337. border-bottom: 1px solid #F2F2F2;
  338. align-items: center;
  339. position: relative;
  340. .wsuccess{color:#27b148 !important}
  341. .werror{color:#FF6200 !important;}
  342. .werror2{color:#1ba7f4 !important;}
  343. .unit {
  344. position: absolute;
  345. top: 34rpx;
  346. right: 0;
  347. }
  348. .whthdraw-price {
  349. font-size: 18px;
  350. color: #101010;
  351. font-weight: 600;
  352. }
  353. b {
  354. color: rgba(119, 119, 119, 100);
  355. font-size: 16px;
  356. }
  357. span {
  358. width: 60%;
  359. float: right;
  360. text-align: left;
  361. font-size: 16px;
  362. color: #333333;
  363. }
  364. @media screen and (max-width:320px) {
  365. span{
  366. width: 55%;
  367. }
  368. }
  369. .uni-input {
  370. font-size: 16px;
  371. color: #333333;
  372. line-height: 18px;
  373. }
  374. }
  375. .withdraw-main {
  376. border-top: 1px solid #f7f7f7;
  377. border-bottom: 1px solid #f7f7f7;
  378. margin: 16px 0;
  379. padding: 16px 0;
  380. .withdraw-input {
  381. margin-top: 32px;
  382. display: flex;
  383. align-items: center;
  384. font-size: 28px;
  385. /deep/.uni-input-input {
  386. font-size: 28px;
  387. }
  388. }
  389. }
  390. .withdraw-foot {
  391. display: flex;
  392. align-items: center;
  393. p {
  394. color: #999
  395. }
  396. span {
  397. color: #2979FF;
  398. margin-left: 16px;
  399. }
  400. }
  401. }
  402. .more {
  403. float: right;
  404. color: #B3B3B3;
  405. font-size: 24px
  406. }
  407. .border-n {
  408. border: none !important;
  409. }
  410. .infos{
  411. margin-top: 16px;
  412. color: rgba(51, 51, 51, 100);
  413. font-size: 16px;
  414. }
  415. .margin{
  416. margin-top: 12px !important;
  417. }
  418. .details {
  419. margin: 0 16px;
  420. margin-bottom: 8px ;
  421. border-radius: 8px;
  422. background-color: #fff;
  423. padding:0 12px 0px 12px;
  424. p{
  425. font-size: 16px;
  426. color: #333333;
  427. line-height: 50px;
  428. border-bottom: solid 1px #E5E7EA;
  429. padding-left: 16px;
  430. }
  431. span{
  432. width: 75% !important;
  433. }
  434. }
  435. </style>