refundDetail.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596
  1. <template>
  2. <view class="box">
  3. <view class="cont">
  4. <view class="topBox goodsBox" v-if="data.openSheetRefund.refundState == 1 || data.openSheetRefund.refundState == 3">
  5. <view class="topState">
  6. <view class="tsTop">
  7. <view class="tsYd"></view>
  8. <view class="tsHx"></view>
  9. <view class="tsYd"></view>
  10. <view class="tsHx tsHx2"></view>
  11. <view class="tsYd tsYd2"></view>
  12. <view class="tsHx tsHx2"></view>
  13. <view class="tsYd tsYd2"></view>
  14. </view>
  15. <view class="tsM">
  16. <view class="tsMline">发起退款</view>
  17. <view class="tsMline">商家处理</view>
  18. <view class="tsMline tsMline2">商家退款</view>
  19. <view class="tsMline tsMline2">退款结束</view>
  20. </view>
  21. <view class="txTxt" v-if="data.openSheetRefund.refundState == 1">
  22. <span>请等待</span><span style="color: #EC0F0A;">商家处理</span>
  23. </view>
  24. <view class="txTxt2" v-if="data.openSheetRefund.refundState == 1">已发起退款申请</view>
  25. <view class="txTxt" v-if="data.openSheetRefund.refundState == 3">
  26. <span>商家</span><span style="color: #EC0F0A;">拒绝退款</span>
  27. </view>
  28. </view>
  29. </view>
  30. <view class="goodsBox topBox" v-if="data.openSheetRefund.refundState == 2">
  31. <view class="tkTopTitle">退款成功</view>
  32. <view class="tksuccess">
  33. <view class="tksuccessYx">
  34. <view class="tksuccessTxt">原路退回</view>
  35. <view class="tksuccessPrice">¥<span style="font-size: 36rpx;">{{data.openSheetRefund.money}}</span> </view>
  36. </view>
  37. <view class="tksuccessTime">{{data.openSheetRefund.reAccountTime}}</view>
  38. </view>
  39. </view>
  40. <!-- 退款关闭-->
  41. <view class="goodsBox topBox" v-if="data.openSheetRefund.refundState == 4||data.openSheetRefund.refundState == 5">
  42. <view class="tkTopTitle">退款关闭</view>
  43. <view class="tkErr" v-if="data.openSheetRefund.refundState == 4">退款失败</view>
  44. <view class="tkErr" v-if="data.openSheetRefund.refundState == 5">用户已取消退款</view>
  45. </view>
  46. <!-- 退款关闭-->
  47. <view class="itemBox flex">
  48. </image>
  49. <image class="itemIMg" src="../../static/timg/noimg.png" mode=""></image>
  50. <view class="itemRight">
  51. <view class="itemName">{{data.openSheetRefund.itemName}}</view>
  52. <view class="priceBox">
  53. <view class="price">¥{{data.openSheet.realMoney}}</view>
  54. </view>
  55. </view>
  56. </view>
  57. <view class="goodsBox">
  58. <view class="goodsline flex" v-if="data.openSheetRefund.couponCount==1" >
  59. <view class="goodsLeft">退款券号</view>
  60. <view class="goodRight" style="display: flex;">
  61. <image src="../../static/img2/copy.png" mode="" class="copyIcon"></image>
  62. <span>{{data.openSheetRefund.couponCode}}</span>
  63. </view>
  64. </view>
  65. <view class="goodsline flex" v-if="data.openSheetRefund.couponCount!=1">
  66. <view class="goodsLeft">退款券号</view>
  67. <view class="goodRight" style="display: flex;" @click="codeFn">
  68. <span>共{{data.openSheetRefund.couponCount}}份券号</span>
  69. <image src="../../static/img2/hjt.png" mode="" class="jtIcon"></image>
  70. </view>
  71. </view>
  72. <view class="goodsline flex" >
  73. <view class="goodsLeft">退款份数</view>
  74. <view class="goodRight" >
  75. {{data.openSheetRefund.couponCount}}份
  76. </view>
  77. </view>
  78. <view class="goodsline flex" >
  79. <view class="tkPrice">
  80. <view class="tkPrice1">退款金额</view>
  81. <view class="tkPrice2">实际退款金额以到账金额为准</view>
  82. </view>
  83. <view class="tkPriceNum">¥{{data.openSheetRefund.money}}</view>
  84. </view>
  85. <view class="goodsline flex" >
  86. <view class="goodsLeft">退款方式</view>
  87. <view class="goodRight" style="font-size: 26rpx;color: #222222;">原路退回</view>
  88. </view>
  89. <view class="goodsline flex" >
  90. <view class="goodsLeft">商品是否已使用</view>
  91. <view class="goodRight" >{{data.openSheetRefund.hType==1?'未使用':'已使用'}}</view>
  92. </view>
  93. <view class="goodsline flex" >
  94. <view class="goodsLeft">退款原因</view>
  95. <view class="goodRight" >{{data.openSheetRefund.refundReason}}</view>
  96. </view>
  97. <view class="goodsline flex" >
  98. <view class="goodsLeft">退款说明</view>
  99. <view class="goodRight" style="width: 400rpx;">{{data.openSheetRefund.content}}</view>
  100. </view>
  101. <view class="goodsline flex" >
  102. <view class="goodsLeft">退款凭证</view>
  103. <view class="goodRight tkImgBox" >
  104. <image class="tkImg" v-for="(item,index) in data.evidenceList" :src="item.url" mode="aspectFit"></image>
  105. </view>
  106. </view>
  107. </view>
  108. <view class="goodsBox">
  109. <view class="goodsline flex" >
  110. <view class="goodsLeft">订单编号</view>
  111. <view class="goodRight" style="display: flex;">
  112. <image src="../../static/img2/copy.png" mode="" class="copyIcon"></image>
  113. <span>{{data.openSheetRefund.code}}</span>
  114. </view>
  115. </view>
  116. </view>
  117. </view>
  118. <view class="reasonBox" v-if="codeShow">
  119. <view class="codeCont">
  120. <view class="reasonTop">
  121. <view class="chahao"></view>
  122. <view class="tkTitle">退款券号</view>
  123. <image @click="qdTkclose" class="chahao" src="../../static/img2/chahao.png" mode=""></image>
  124. </view>
  125. <view class="codeLineBox">
  126. <view class="codeLine" v-for="(v,i) in data.openSheetRefund.couponCode.split(',')">
  127. <span style="padding-right: 10rpx;">{{v}}</span>
  128. <image src="../../static/img2/copy.png" mode="" class="copyIcon"></image>
  129. </view>
  130. </view>
  131. </view>
  132. </view>
  133. <view style="height: 40rpx;"></view>
  134. </view>
  135. </template>
  136. <script>
  137. export default {
  138. components: {
  139. },
  140. data() {
  141. return {
  142. themeColor:'',
  143. ext:'',
  144. userInfo:'',
  145. carInfo:'',
  146. customerInfo:'',
  147. codeShow:false,
  148. id:'09ee0273-d2b2-4204-a1db-f0555ec2ea10',
  149. data:'',
  150. }
  151. },
  152. onLoad(opt) {
  153. if(opt.id){
  154. this.id=opt.id
  155. }
  156. this.userInfo=this.$store.state.userInfo;
  157. this.ext=this.$common.getExtStoreId();
  158. if(this.userInfo){
  159. this.getData()
  160. }else{
  161. this.$common.automaticlogin().then(val => {
  162. this.userInfo=this.$store.state.userInfo;
  163. if (this.id) {
  164. this.getData();
  165. }
  166. if(!this.userInfo){
  167. //this.authorizShow=true
  168. }
  169. })
  170. }
  171. },
  172. onShow() {
  173. },
  174. methods: {
  175. getData(){
  176. uni.showLoading({
  177. title: '加载中'
  178. })
  179. this.$http('openOrderManagement/openSheetRefundDetail', {
  180. id: this.id,
  181. }, 'GET').then(res => {
  182. uni.hideLoading();
  183. this.data=res.data
  184. })
  185. },
  186. qdTkclose(){
  187. this.codeShow=false;
  188. },
  189. codeFn(){
  190. this.codeShow=true;
  191. }
  192. },
  193. onPullDownRefresh() {
  194. this.getData()
  195. setTimeout(function() {
  196. uni.stopPullDownRefresh();
  197. }, 1000);
  198. },
  199. }
  200. </script>
  201. <style scoped lang="less">
  202. .box {
  203. width: 100vw;
  204. min-height: 100vh;
  205. background: #F4F4F4;
  206. }
  207. .tkTopTitle{
  208. font-weight: 500;
  209. font-size: 32rpx;
  210. color: #222222;
  211. line-height: 50rpx;
  212. padding-top: 20rpx;
  213. }
  214. .tksuccess{
  215. background: #F7F7F7;
  216. border-radius: 16rpx;
  217. padding: 20rpx;
  218. margin-top: 20rpx;
  219. }
  220. .tksuccessYx{
  221. display: flex;justify-content: space-between;
  222. }
  223. .tksuccessTxt{
  224. font-weight: 500;
  225. font-size: 28rpx;
  226. color: #222222;
  227. line-height: 40rpx;
  228. }
  229. .tksuccessPrice{
  230. font-weight: 500;
  231. font-size: 26rpx;
  232. color: #EC0F0A;
  233. }
  234. .tksuccessTime{
  235. font-size: 26rpx;
  236. color: #9A9A9A;
  237. }
  238. .tsTop{
  239. display: flex;justify-content: center;
  240. }
  241. .tsM{
  242. display: flex;justify-content: center;
  243. }
  244. .tsMline{
  245. font-size: 24rpx;
  246. color: #666666;
  247. line-height: 33rpx;
  248. text-align: center;
  249. width: 210rpx;
  250. padding-top: 8rpx;
  251. }
  252. .txTxt{
  253. font-weight: 500;
  254. font-size: 36rpx;
  255. color: #222222;
  256. line-height: 50rpx;
  257. padding-top: 50rpx;
  258. }
  259. .txTxt2{
  260. font-size: 24rpx;
  261. color: #9A9A9A;
  262. line-height: 33rpx;
  263. padding-top: 8rpx;
  264. padding-bottom: 20rpx;
  265. }
  266. .tsYd{
  267. width: 12rpx;
  268. height: 12rpx;
  269. border: 3rpx solid #88888A;
  270. border-radius: 50%;
  271. }
  272. .tsHx{
  273. width: 135rpx;
  274. height: 4rpx;
  275. background: #5B5B5C;
  276. border-radius: 2rpx;
  277. margin-left: 9rpx;
  278. margin-right: 9rpx;
  279. margin-top: 6rpx;
  280. }
  281. .tsYd2{
  282. border: 3rpx solid #eeeeee;
  283. }
  284. .tsHx2{
  285. background: #eeeeee;
  286. }
  287. .tsMline2{
  288. color: #9A9A9A;
  289. }
  290. .topState{
  291. padding-top: 20rpx;
  292. }
  293. .topBox{
  294. margin-bottom: 20rpx;
  295. }
  296. .copyIcon{
  297. width: 30rpx;height: 30rpx;
  298. margin-top: 4rpx;margin-right: 6rpx;
  299. }
  300. .tkImg{
  301. width: 148rpx;height: 148rpx;
  302. margin-left: 10rpx;
  303. margin-bottom: 10rpx;
  304. }
  305. .tkImgBox{
  306. display: flex;flex-wrap: wrap;
  307. width: 484rpx;
  308. }
  309. .reasonTop{
  310. display: flex;justify-content: space-between;
  311. padding: 32rpx 42rpx;
  312. }
  313. .chahao{
  314. width: 21rpx;height: 21rpx;
  315. padding-top: 10rpx;
  316. }
  317. .tkTitle{
  318. font-weight: 500;
  319. font-size: 28rpx;
  320. color: #222222;
  321. line-height: 40rpx;
  322. }
  323. .reasonBox{
  324. position: fixed;
  325. left: 0;
  326. top: 0;
  327. height: 100vh;
  328. width: 750rpx;
  329. background: rgba(0, 0, 0, 0.5);
  330. }
  331. .codeCont{
  332. width: 750rpx;
  333. background: #FFFFFF;
  334. border-radius: 28rpx 28rpx 0rpx 0rpx;
  335. position: absolute;
  336. left: 0;
  337. bottom: 0;
  338. height: 383rpx;
  339. }
  340. .reasonCont{
  341. height: 70vh;
  342. width: 750rpx;
  343. background: #FFFFFF;
  344. border-radius: 28rpx 28rpx 0rpx 0rpx;
  345. position: absolute;
  346. left: 0;
  347. bottom: 0;
  348. }
  349. .reasonContLine{
  350. display: flex;justify-content: space-between;
  351. padding: 20rpx 0;
  352. }
  353. .reasonContLineTitle{
  354. font-weight: 500;
  355. font-size: 28rpx;
  356. color: #222222;
  357. }
  358. .reasonContLineTxt{
  359. font-weight: 400;
  360. font-size: 28rpx;
  361. color: #222222;
  362. line-height: 40rpx;
  363. }
  364. .reasonContLineCk{
  365. width: 28rpx;
  366. height: 28rpx;
  367. border: 2rpx solid #9A9A9A;
  368. border-radius: 16rpx;
  369. margin-top: 6rpx;
  370. }
  371. .reasonContLineBox{
  372. padding: 0 33rpx;
  373. height: calc(70vh - 270rpx);
  374. overflow-y: scroll;
  375. }
  376. .ckLine{
  377. display: flex;color: #9A9A9A;
  378. font-size: 26rpx;
  379. }
  380. .xinghao{
  381. color: #EC0F0A;
  382. }
  383. .jtIcon{
  384. width: 10rpx;height: 20rpx;
  385. margin-top: 8rpx;
  386. margin-left: 10rpx;
  387. }
  388. .tkPrice1{
  389. font-size: 26rpx;
  390. color: #222222;
  391. }
  392. .tkPrice2{
  393. font-size: 24rpx;
  394. color: #9A9A9A;
  395. padding-top: 8rpx;
  396. }
  397. .tkPriceNum{
  398. font-size: 26rpx;
  399. color: #222222;
  400. line-height: 50rpx;
  401. }
  402. .textareaNum{
  403. padding-bottom: 18rpx;
  404. }
  405. .tkSm{
  406. font-size: 26rpx;
  407. color: #222222;
  408. padding-top: 18rpx;
  409. }
  410. .tktextarea{
  411. font-size: 26rpx;
  412. background: #F7F7F7;
  413. border-radius: 14rpx;
  414. margin-top: 20rpx;
  415. width: 600rpx;padding: 20rpx 30rpx;
  416. margin-bottom: 10rpx;
  417. }
  418. .textareaNum{
  419. font-size: 24rpx;
  420. color: #9A9A9A;
  421. display: flex;justify-content: flex-end;
  422. }
  423. .cont{
  424. padding: 20rpx 24rpx;
  425. }
  426. .itemBox{
  427. background: #FFFFFF;
  428. border-radius: 16rpx;padding: 24rpx;
  429. }
  430. .itemIMg{
  431. width: 128rpx;
  432. height: 128rpx;border-radius: 10rpx;
  433. }
  434. .flex{
  435. display: flex;
  436. }
  437. .itemRight{
  438. width: 450rpx;padding-left: 24rpx;
  439. }
  440. .itemName{
  441. font-weight: 500;
  442. font-size: 28rpx;
  443. color: #222222;
  444. line-height: 40rpx;
  445. }
  446. .buyType{
  447. padding: 0 8rpx;text-align: center;
  448. height: 32rpx;line-height: 34rpx;
  449. border-radius: 5rpx;
  450. border: 1px solid #FF0035;font-size: 22rpx;
  451. color: #FF0035;
  452. margin-top: 10rpx;
  453. }
  454. .priceBox{
  455. display: flex;justify-content: space-between;padding-top: 40rpx;
  456. }
  457. .price{
  458. font-size: 28rpx;
  459. color: #222222;
  460. line-height: 50rpx;
  461. }
  462. .itemNum{
  463. font-size: 34rpx;line-height: 50rpx;
  464. color: #686868;
  465. }
  466. .itemnotes{
  467. font-size: 24rpx;padding-top: 12rpx;
  468. color: #FFC107;
  469. }
  470. .mealBox{
  471. background: #FFFFFF;
  472. padding: 20rpx 24rpx;
  473. margin-top: 20rpx;
  474. font-size: 26rpx;
  475. color: #666666;
  476. border-radius: 16rpx;
  477. }
  478. .fwlcTitle{
  479. color: #333333;font-size: 30rpx;font-weight: 500;
  480. padding-bottom: 20rpx;
  481. }
  482. .mealTop{
  483. display: flex;
  484. justify-content: space-between;
  485. height: 72rpx;
  486. line-height: 72rpx;
  487. font-weight: 500;
  488. font-size: 26rpx;
  489. color: #222222;
  490. font-size: 26rpx;
  491. padding: 0 20rpx;
  492. }
  493. .mealNum{
  494. text-align: center;
  495. width: 120rpx;
  496. }
  497. .mealexpire{
  498. text-align: center; width: 120rpx;
  499. }
  500. .mealName{
  501. width: 460rpx;
  502. }
  503. .mealTop2{
  504. display: flex;
  505. justify-content: space-between;
  506. height: 72rpx;
  507. line-height: 72rpx;
  508. font-weight: 500;
  509. font-size: 26rpx;
  510. color: #222222;
  511. font-size: 26rpx;
  512. padding: 0 20rpx;
  513. background: #FFF6DB;
  514. }
  515. .mealXj{
  516. background: #FFFCF3;
  517. }
  518. .xjLine{
  519. display: flex;
  520. font-weight: 500;
  521. font-size: 26rpx;
  522. color: #222222;
  523. padding: 20rpx 20rpx;
  524. }
  525. .xjyd{
  526. width: 8rpx;
  527. height: 8rpx;
  528. background: #FABF1B;
  529. border-radius: 50rpx;
  530. margin-top: 12rpx;
  531. margin-right: 10rpx;
  532. }
  533. .mealMs{
  534. background: #FFFFFF;
  535. padding: 20rpx;
  536. font-weight: 400;
  537. font-size: 24rpx;
  538. color: #9A9A9A;
  539. line-height: 38rpx;
  540. }
  541. .goodsBox{
  542. padding:18rpx 24rpx;font-size: 26rpx;
  543. color: #222222;background: #FFFFFF;margin-top: 20rpx;
  544. border-radius: 16rpx;
  545. }
  546. .goodsline{
  547. justify-content: space-between;
  548. padding: 18rpx 0;
  549. }
  550. .mealBox img{
  551. width: 100%;
  552. }
  553. .mealBox image{
  554. width: 100%;
  555. }
  556. .tkErr{
  557. font-size: 26rpx;
  558. color: #9A9A9A;
  559. padding-bottom: 10rpx;
  560. padding-bottom: 20rpx;
  561. }
  562. .codeLine{
  563. font-size: 26rpx;
  564. color: #222222;
  565. display: flex;
  566. justify-content: center;
  567. padding-bottom: 30rpx;
  568. }
  569. </style>