refundDetail.vue 15 KB

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