refundDetail.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589
  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>共两份券号</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" >{{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 3">
  127. <span style="padding-right: 10rpx;">102899992200992</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. }
  194. </script>
  195. <style scoped lang="less">
  196. .box {
  197. width: 100vw;
  198. min-height: 100vh;
  199. background: #F4F4F4;
  200. }
  201. .tkTopTitle{
  202. font-weight: 500;
  203. font-size: 32rpx;
  204. color: #222222;
  205. line-height: 50rpx;
  206. padding-top: 20rpx;
  207. }
  208. .tksuccess{
  209. background: #F7F7F7;
  210. border-radius: 16rpx;
  211. padding: 20rpx;
  212. margin-top: 20rpx;
  213. }
  214. .tksuccessYx{
  215. display: flex;justify-content: space-between;
  216. }
  217. .tksuccessTxt{
  218. font-weight: 500;
  219. font-size: 28rpx;
  220. color: #222222;
  221. line-height: 40rpx;
  222. }
  223. .tksuccessPrice{
  224. font-weight: 500;
  225. font-size: 26rpx;
  226. color: #EC0F0A;
  227. }
  228. .tksuccessTime{
  229. font-size: 26rpx;
  230. color: #9A9A9A;
  231. }
  232. .tsTop{
  233. display: flex;justify-content: center;
  234. }
  235. .tsM{
  236. display: flex;justify-content: center;
  237. }
  238. .tsMline{
  239. font-size: 24rpx;
  240. color: #666666;
  241. line-height: 33rpx;
  242. text-align: center;
  243. width: 210rpx;
  244. padding-top: 8rpx;
  245. }
  246. .txTxt{
  247. font-weight: 500;
  248. font-size: 36rpx;
  249. color: #222222;
  250. line-height: 50rpx;
  251. padding-top: 50rpx;
  252. }
  253. .txTxt2{
  254. font-size: 24rpx;
  255. color: #9A9A9A;
  256. line-height: 33rpx;
  257. padding-top: 8rpx;
  258. padding-bottom: 20rpx;
  259. }
  260. .tsYd{
  261. width: 12rpx;
  262. height: 12rpx;
  263. border: 3rpx solid #88888A;
  264. border-radius: 50%;
  265. }
  266. .tsHx{
  267. width: 135rpx;
  268. height: 4rpx;
  269. background: #5B5B5C;
  270. border-radius: 2rpx;
  271. margin-left: 9rpx;
  272. margin-right: 9rpx;
  273. margin-top: 6rpx;
  274. }
  275. .tsYd2{
  276. border: 3rpx solid #eeeeee;
  277. }
  278. .tsHx2{
  279. background: #eeeeee;
  280. }
  281. .tsMline2{
  282. color: #9A9A9A;
  283. }
  284. .topState{
  285. padding-top: 20rpx;
  286. }
  287. .topBox{
  288. margin-bottom: 20rpx;
  289. }
  290. .copyIcon{
  291. width: 30rpx;height: 30rpx;
  292. margin-top: 4rpx;margin-right: 6rpx;
  293. }
  294. .tkImg{
  295. width: 148rpx;height: 148rpx;
  296. margin-left: 10rpx;
  297. margin-bottom: 10rpx;
  298. }
  299. .tkImgBox{
  300. display: flex;flex-wrap: wrap;
  301. width: 484rpx;
  302. }
  303. .reasonTop{
  304. display: flex;justify-content: space-between;
  305. padding: 32rpx 42rpx;
  306. }
  307. .chahao{
  308. width: 21rpx;height: 21rpx;
  309. padding-top: 10rpx;
  310. }
  311. .tkTitle{
  312. font-weight: 500;
  313. font-size: 28rpx;
  314. color: #222222;
  315. line-height: 40rpx;
  316. }
  317. .reasonBox{
  318. position: fixed;
  319. left: 0;
  320. top: 0;
  321. height: 100vh;
  322. width: 750rpx;
  323. background: rgba(0, 0, 0, 0.5);
  324. }
  325. .codeCont{
  326. width: 750rpx;
  327. background: #FFFFFF;
  328. border-radius: 28rpx 28rpx 0rpx 0rpx;
  329. position: absolute;
  330. left: 0;
  331. bottom: 0;
  332. height: 383rpx;
  333. }
  334. .reasonCont{
  335. height: 70vh;
  336. width: 750rpx;
  337. background: #FFFFFF;
  338. border-radius: 28rpx 28rpx 0rpx 0rpx;
  339. position: absolute;
  340. left: 0;
  341. bottom: 0;
  342. }
  343. .reasonContLine{
  344. display: flex;justify-content: space-between;
  345. padding: 20rpx 0;
  346. }
  347. .reasonContLineTitle{
  348. font-weight: 500;
  349. font-size: 28rpx;
  350. color: #222222;
  351. }
  352. .reasonContLineTxt{
  353. font-weight: 400;
  354. font-size: 28rpx;
  355. color: #222222;
  356. line-height: 40rpx;
  357. }
  358. .reasonContLineCk{
  359. width: 28rpx;
  360. height: 28rpx;
  361. border: 2rpx solid #9A9A9A;
  362. border-radius: 16rpx;
  363. margin-top: 6rpx;
  364. }
  365. .reasonContLineBox{
  366. padding: 0 33rpx;
  367. height: calc(70vh - 270rpx);
  368. overflow-y: scroll;
  369. }
  370. .ckLine{
  371. display: flex;color: #9A9A9A;
  372. font-size: 26rpx;
  373. }
  374. .xinghao{
  375. color: #EC0F0A;
  376. }
  377. .jtIcon{
  378. width: 10rpx;height: 20rpx;
  379. margin-top: 8rpx;
  380. margin-left: 10rpx;
  381. }
  382. .tkPrice1{
  383. font-size: 26rpx;
  384. color: #222222;
  385. }
  386. .tkPrice2{
  387. font-size: 24rpx;
  388. color: #9A9A9A;
  389. padding-top: 8rpx;
  390. }
  391. .tkPriceNum{
  392. font-size: 26rpx;
  393. color: #222222;
  394. line-height: 50rpx;
  395. }
  396. .textareaNum{
  397. padding-bottom: 18rpx;
  398. }
  399. .tkSm{
  400. font-size: 26rpx;
  401. color: #222222;
  402. padding-top: 18rpx;
  403. }
  404. .tktextarea{
  405. font-size: 26rpx;
  406. background: #F7F7F7;
  407. border-radius: 14rpx;
  408. margin-top: 20rpx;
  409. width: 600rpx;padding: 20rpx 30rpx;
  410. margin-bottom: 10rpx;
  411. }
  412. .textareaNum{
  413. font-size: 24rpx;
  414. color: #9A9A9A;
  415. display: flex;justify-content: flex-end;
  416. }
  417. .cont{
  418. padding: 20rpx 24rpx;
  419. }
  420. .itemBox{
  421. background: #FFFFFF;
  422. border-radius: 16rpx;padding: 24rpx;
  423. }
  424. .itemIMg{
  425. width: 128rpx;
  426. height: 128rpx;border-radius: 10rpx;
  427. }
  428. .flex{
  429. display: flex;
  430. }
  431. .itemRight{
  432. width: 450rpx;padding-left: 24rpx;
  433. }
  434. .itemName{
  435. font-weight: 500;
  436. font-size: 28rpx;
  437. color: #222222;
  438. line-height: 40rpx;
  439. }
  440. .buyType{
  441. padding: 0 8rpx;text-align: center;
  442. height: 32rpx;line-height: 34rpx;
  443. border-radius: 5rpx;
  444. border: 1px solid #FF0035;font-size: 22rpx;
  445. color: #FF0035;
  446. margin-top: 10rpx;
  447. }
  448. .priceBox{
  449. display: flex;justify-content: space-between;padding-top: 40rpx;
  450. }
  451. .price{
  452. font-size: 28rpx;
  453. color: #222222;
  454. line-height: 50rpx;
  455. }
  456. .itemNum{
  457. font-size: 34rpx;line-height: 50rpx;
  458. color: #686868;
  459. }
  460. .itemnotes{
  461. font-size: 24rpx;padding-top: 12rpx;
  462. color: #FFC107;
  463. }
  464. .mealBox{
  465. background: #FFFFFF;
  466. padding: 20rpx 24rpx;
  467. margin-top: 20rpx;
  468. font-size: 26rpx;
  469. color: #666666;
  470. border-radius: 16rpx;
  471. }
  472. .fwlcTitle{
  473. color: #333333;font-size: 30rpx;font-weight: 500;
  474. padding-bottom: 20rpx;
  475. }
  476. .mealTop{
  477. display: flex;
  478. justify-content: space-between;
  479. height: 72rpx;
  480. line-height: 72rpx;
  481. font-weight: 500;
  482. font-size: 26rpx;
  483. color: #222222;
  484. font-size: 26rpx;
  485. padding: 0 20rpx;
  486. }
  487. .mealNum{
  488. text-align: center;
  489. width: 120rpx;
  490. }
  491. .mealexpire{
  492. text-align: center; width: 120rpx;
  493. }
  494. .mealName{
  495. width: 460rpx;
  496. }
  497. .mealTop2{
  498. display: flex;
  499. justify-content: space-between;
  500. height: 72rpx;
  501. line-height: 72rpx;
  502. font-weight: 500;
  503. font-size: 26rpx;
  504. color: #222222;
  505. font-size: 26rpx;
  506. padding: 0 20rpx;
  507. background: #FFF6DB;
  508. }
  509. .mealXj{
  510. background: #FFFCF3;
  511. }
  512. .xjLine{
  513. display: flex;
  514. font-weight: 500;
  515. font-size: 26rpx;
  516. color: #222222;
  517. padding: 20rpx 20rpx;
  518. }
  519. .xjyd{
  520. width: 8rpx;
  521. height: 8rpx;
  522. background: #FABF1B;
  523. border-radius: 50rpx;
  524. margin-top: 12rpx;
  525. margin-right: 10rpx;
  526. }
  527. .mealMs{
  528. background: #FFFFFF;
  529. padding: 20rpx;
  530. font-weight: 400;
  531. font-size: 24rpx;
  532. color: #9A9A9A;
  533. line-height: 38rpx;
  534. }
  535. .goodsBox{
  536. padding:18rpx 24rpx;font-size: 26rpx;
  537. color: #222222;background: #FFFFFF;margin-top: 20rpx;
  538. border-radius: 16rpx;
  539. }
  540. .goodsline{
  541. justify-content: space-between;
  542. padding: 18rpx 0;
  543. }
  544. .mealBox img{
  545. width: 100%;
  546. }
  547. .mealBox image{
  548. width: 100%;
  549. }
  550. .tkErr{
  551. font-size: 26rpx;
  552. color: #9A9A9A;
  553. padding-bottom: 10rpx;
  554. padding-bottom: 20rpx;
  555. }
  556. .codeLine{
  557. font-size: 26rpx;
  558. color: #222222;
  559. display: flex;
  560. justify-content: center;
  561. padding-bottom: 30rpx;
  562. }
  563. </style>