applicationDetails.vue 11 KB

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