index.vue 29 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229
  1. <template>
  2. <view :data-theme="theme">
  3. <view class='order-details'>
  4. <!-- 给header上与data上加on为退款订单-->
  5. <view class='header bg_color on'>
  6. <view class='picTxt acea-row row-middle'>
  7. <view class='data on'>
  8. <view class="acea-row row-middle mb20">
  9. <view class='state line-heightOne'>
  10. <view class='state line-heightOne'>
  11. <span v-if="refundInfo.refundStatus==0">用户提交退款申请,请您及时处理哦~</span>
  12. <span v-if="refundInfo.refundStatus==4">您已同意此退款申请,等待用户退货中~</span>
  13. <span v-if="refundInfo.refundStatus==5">用户已经填写退货信息,请您耐心等待~</span>
  14. <span v-if="refundInfo.refundStatus==2">退款金额原支付路径返回中!</span>
  15. <span v-if="refundInfo.refundStatus==3">退款金额已返还用户账户!</span>
  16. <span v-if="refundInfo.refundStatus==6">用户已经撤销此退款申请!</span>
  17. <span v-if="refundInfo.refundStatus==1">{{refundInfo.refundReason}}</span>
  18. </view>
  19. </view>
  20. <view v-show="refundInfo.refundStatus===3"><text class="font-color refundPrice">{{refundInfo.refundPrice}}元</text></view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. <!-- 商品详情 -->
  26. <view class="borderPad margin-100">
  27. <view class="borRadius14 wrapper">
  28. <orderGoods :isShowBtn="false" :refundInfo="refundInfo" :cartInfo="[refundInfo]" :jump="true" :orderData="refundInfo">
  29. </orderGoods>
  30. <view class="borderPad">
  31. <view class="return_info">
  32. <view class='item acea-row row-between line-heightOne'>
  33. <view>退款件数:</view>
  34. <view class='conter'>{{refundInfo.applyRefundNum}}</view>
  35. </view>
  36. <view class='item acea-row row-between line-heightOne'>
  37. <view>退款金额:</view>
  38. <view class='conter'>¥{{refundInfo.refundPrice}}</view>
  39. </view>
  40. <view class='item acea-row row-between line-heightOne'>
  41. <view>退款方式:</view>
  42. <view class='conter'>原路返回</view>
  43. </view>
  44. <view class='item acea-row row-between line-heightOne'>
  45. <view>退款原因:</view>
  46. <view v-if="refundInfo.promoterType==='user'" class='conter'>{{refundInfo.refundReasonWap}}</view>
  47. <view v-else class='conter'>商家直接退款</view>
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. <!-- 商家店铺地址 -->
  54. <view v-if="refundInfo.returnGoodsType ===2 && merAddress && refundInfo.refundStatus>0" class="borderPad">
  55. <view class="borRadius14 wrapper return_info_pad">
  56. <view class='item acea-row row-between mb30'>
  57. <view>商家退回地址:</view>
  58. <view class='conter acea-row row-middle row-right'>
  59. <!-- #ifndef H5 -->
  60. <text class='copy line-heightOne' @tap="copy(merAddress.name+','+merAddress.phone+','+merAddress.addressDetail)">复制</text>
  61. <!-- #endif -->
  62. <!-- #ifdef H5 -->
  63. <text class='copy copy-data line-heightOne' :data-clipboard-text="merAddress.name+','+merAddress.phone+','+merAddress.addressDetail">复制</text>
  64. <!-- #endif -->
  65. </view>
  66. </view>
  67. <view class="text-2828 f-s-26 mb20">
  68. <text class="text-2828">{{merAddress.name}}</text>
  69. <text>{{merAddress.phone}}</text>
  70. </view>
  71. <view class="text-666 f-s-26 addressDetail">{{merAddress.addressDetail}}</view>
  72. </view>
  73. </view>
  74. <!-- 商家退回地址 -->
  75. <view v-if="refundInfo.returnGoodsType ===1 && refundInfo.refundStatus>0 &&refundInfo.receiver&&refundInfo.receiverPhone&&refundInfo.receiverAddressDetail"
  76. class="borderPad">
  77. <view class="borRadius14 wrapper return_info_pad">
  78. <view class='item acea-row row-between mb30'>
  79. <view>商家退回地址:</view>
  80. <view class='conter acea-row row-middle row-right'>
  81. <!-- #ifndef H5 -->
  82. <text class='copy line-heightOne' @tap="copy(refundInfo.receiver+','+refundInfo.receiverPhone+','+refundInfo.receiverAddressDetail)">复制</text>
  83. <!-- #endif -->
  84. <!-- #ifdef H5 -->
  85. <text class='copy copy-data line-heightOne' :data-clipboard-text="refundInfo.receiver+','+refundInfo.receiverPhone+','+refundInfo.receiverAddressDetail">复制</text>
  86. <!-- #endif -->
  87. </view>
  88. </view>
  89. <view class="text-2828 f-s-26 mb20">
  90. <text class="text-2828">{{refundInfo.receiver}}</text>
  91. <text>{{refundInfo.receiverPhone}}</text>
  92. </view>
  93. <view class="text-666 f-s-26 addressDetail">{{refundInfo.receiverAddressDetail}}</view>
  94. </view>
  95. </view>
  96. <!-- 退款订单详情 "-->
  97. <view class="borderPad">
  98. <view class='wrapper borRadius14 return_info_pad'>
  99. <view class='item acea-row row-between '>
  100. <view>订单单号:</view>
  101. <view class='conter acea-row row-middle row-right'><text class="text-overflow">{{refundInfo.orderNo}}</text>
  102. <!-- #ifndef H5 -->
  103. <text class='copy line-heightOne' @tap='copy(refundInfo.orderNo)'>复制</text>
  104. <!-- #endif -->
  105. <!-- #ifdef H5 -->
  106. <text class='copy copy-data line-heightOne' :data-clipboard-text="refundInfo.orderNo">复制</text>
  107. <!-- #endif -->
  108. </view>
  109. </view>
  110. <view class='item acea-row row-between'>
  111. <view>售后单号:</view>
  112. <view class='conter acea-row row-middle row-right'><text class="text-overflow">{{refundInfo.refundOrderNo}}</text>
  113. <!-- #ifndef H5 -->
  114. <text class='copy line-heightOne' @tap='copy(refundInfo.refundOrderNo)'>复制</text>
  115. <!-- #endif -->
  116. <!-- #ifdef H5 -->
  117. <text class='copy copy-data line-heightOne' :data-clipboard-text="refundInfo.refundOrderNo">复制</text>
  118. <!-- #endif -->
  119. </view>
  120. </view>
  121. <view class='item acea-row row-between'>
  122. <view>申请时间:</view>
  123. <view class='conter'>{{(refundInfo.createTime || 0)}}</view>
  124. </view>
  125. <view class='item acea-row row-between'>
  126. <view>售后类型:</view>
  127. <view class='conter'>{{refundInfo.afterSalesType===1?'仅退款':'退货退款'}}</view>
  128. </view>
  129. <view class='item acea-row row-between'>
  130. <view>退回方式:</view>
  131. <view class='conter'>
  132. {{refundInfo.returnGoodsType===1?'快递退回':refundInfo.returnGoodsType===2?'到店退货':'不退货'}}</view>
  133. </view>
  134. <view class='item acea-row row-between' v-if="refundInfo.merRemark">
  135. <view>商家备注:</view>
  136. <view class='conter-refund text-left'>{{refundInfo.merRemark}}</view>
  137. </view>
  138. <view class='item acea-row row-between' v-if="refundInfo.refundReasonWapExplain">
  139. <view>备注说明:</view>
  140. <view class='conter-refund text-left'>{{refundInfo.refundReasonWapExplain}}</view>
  141. </view>
  142. <view class='item acea-row row-between' v-if="refundInfo.refundReasonWapImg">
  143. <view>退款凭证:</view>
  144. <view class='conter-refund text-left'>
  145. <image class="wapImg" :src="item" v-for="item in refundInfo.refundReasonWapImg.split(',')" :key='item.id'></image>
  146. </view>
  147. </view>
  148. </view>
  149. </view>
  150. <!-- 用户到店退回信息 -->
  151. <view v-if="refundInfo.returnGoodsType ===2 && refundInfo.refundStatus>0 && refundInfo.telephone" class="borderPad">
  152. <view class="borRadius14 wrapper return_info_pad">
  153. <view class='item acea-row row-between'>
  154. <view>联系电话:</view>
  155. <view class='conter'>{{refundInfo.telephone}}</view>
  156. </view>
  157. </view>
  158. </view>
  159. <!-- 用户发货信息 -->
  160. <view v-if="refundInfo.returnGoodsType ===1 && refundInfo.refundStatus>0 && refundInfo.expressName && refundInfo.trackingNumber"
  161. class="borderPad">
  162. <view class="borRadius14 wrapper return_info_pad">
  163. <view class='item acea-row row-between mb30'>
  164. <view>物流公司:</view>
  165. <view class='conter'>{{refundInfo.expressName}}</view>
  166. </view>
  167. <view class='item acea-row row-between mb30'>
  168. <view>物流单号:</view>
  169. <view class='conter acea-row row-middle row-right'>
  170. <text class="text-overflow">{{refundInfo.trackingNumber}}</text>
  171. <!-- #ifndef H5 -->
  172. <text class='copy line-heightOne' @tap='copy(refundInfo.trackingNumber)'>复制</text>
  173. <!-- #endif -->
  174. <!-- #ifdef H5 -->
  175. <text class='copy copy-data line-heightOne' :data-clipboard-text="refundInfo.trackingNumber">复制</text>
  176. <!-- #endif -->
  177. </view>
  178. </view>
  179. <view class='item acea-row row-between'>
  180. <view>联系电话:</view>
  181. <view class='conter'>{{refundInfo.telephone}}</view>
  182. </view>
  183. </view>
  184. </view>
  185. <!-- 操作按钮 "-->
  186. <view class="borderPad">
  187. <view class='wrapper borRadius14 return_info_pad btn-box acea-row' style="justify-content: flex-end;">
  188. <view></view>
  189. <view class="footer acea-row row-right row-middle">
  190. <view class="btn btn-999 acea-row row-center line-heightOne" @click="modify(refundInfo, 7)">退款单备注</view>
  191. <view class="btn on" v-if="(refundInfo.returnGoodsType==0||refundInfo.returnGoodsType==2)&&refundInfo.refundStatus==0" @click="modify(refundInfo,'2',1,0)">
  192. 退款审核
  193. </view>
  194. <view class="btn on" v-if="refundInfo.returnGoodsType==1&&refundInfo.refundStatus==0" @click="modify(refundInfo,'2',0,1)">
  195. 退款审核
  196. </view>
  197. <view class="btn on" v-if="refundInfo.refundStatus==5" @click="modify(refundInfo, 2, 1,2)">确认收货</view>
  198. </view>
  199. <PriceChange :change="change" :orderInfo="orderInfo" :isRefund="isRefund"
  200. v-on:statusChange="statusChange($event)" v-on:closechange="changeclose($event)" v-on:savePrice="savePrice"
  201. :status="status"></PriceChange>
  202. </view>
  203. </view>
  204. </view>
  205. </view>
  206. </template>
  207. <script>
  208. // +----------------------------------------------------------------------
  209. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  210. // +----------------------------------------------------------------------
  211. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
  212. // +----------------------------------------------------------------------
  213. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  214. // +----------------------------------------------------------------------
  215. // | Author: CRMEB Team <admin@crmeb.com>
  216. // +----------------------------------------------------------------------
  217. import PriceChange from "../components/PriceChange/index.vue";
  218. import {
  219. orderRefundInfoApi
  220. } from '@/api/order.js';
  221. import {
  222. refundReceiving,
  223. refundReceivingReject,
  224. secondHandRefundInfoApi,
  225. refundOrderAudit,
  226. refundOrderMark
  227. } from '@/api/secondHand.js';
  228. import {
  229. onRevokeRefund
  230. } from '@/libs/order';
  231. import orderGoods from "../components/orderGoods";
  232. import {
  233. getMerAddressApi
  234. } from '@/api/merchant.js'
  235. import ClipboardJS from "@/plugin/clipboard/clipboard.js";
  236. import {
  237. toLogin
  238. } from '@/libs/login.js';
  239. import {
  240. mapGetters
  241. } from "vuex";
  242. // #ifdef MP
  243. import uQRCode from '@/js_sdk/Sansnn-uQRCode/uqrcode.js'
  244. // #endif
  245. import {
  246. setThemeColor
  247. } from '@/utils/setTheme.js'
  248. const app = getApp();
  249. export default {
  250. components: {
  251. PriceChange,
  252. orderGoods
  253. },
  254. data() {
  255. return {
  256. rejectText: '',
  257. orderType: '',
  258. orderTypeId: null,
  259. rejectOrder: '',
  260. merAddress: null, //店铺地址
  261. refundOrderNo: '',
  262. refundInfo: {}, //退款单详情
  263. theme: app.globalData.theme,
  264. orderInfo:{},
  265. openErp: false,
  266. change:false,
  267. status: "",
  268. apiModalType:'',
  269. isRefund: 0, //1是仅退款;0是同意退货退款
  270. chatConfig: {
  271. consumer_hotline: '',
  272. telephone_service_switch: 'false'
  273. }, //客服配置
  274. };
  275. },
  276. computed: mapGetters(['isLogin', 'chatUrl', 'userInfo']),
  277. onLoad: function(options) {
  278. options.type == undefined || options.type == null ? this.type = 'normal' : this.type = options.type;
  279. if (!options.refundOrderNo) return this.$util.Tips({
  280. title: '缺少参数'
  281. }, {
  282. tab: 3,
  283. url: 1
  284. });
  285. this.$set(this, 'refundOrderNo', options.refundOrderNo);
  286. this.$set(this, 'orderType', options.orderType);
  287. this.$set(this, 'orderTypeId', options.orderTypeId);
  288. this.bgColor = setThemeColor();
  289. this.$set(this, 'chatConfig', this.$Cache.getItem('chatConfig'));
  290. },
  291. onShow() {
  292. if (this.isLogin) {
  293. this.orderRefundInfo();
  294. } else {
  295. toLogin();
  296. }
  297. },
  298. onHide: function() {
  299. this.isClose = true;
  300. },
  301. // 滚动监听
  302. onPageScroll(e) {
  303. // 传入scrollTop值并触发所有easy-loadimage组件下的滚动监听事件
  304. uni.$emit('scroll');
  305. },
  306. onReady: function() {
  307. // #ifdef H5
  308. this.$nextTick(function() {
  309. const clipboard = new ClipboardJS(".copy-data");
  310. clipboard.on("success", () => {
  311. this.$util.Tips({
  312. title: '复制成功'
  313. });
  314. });
  315. });
  316. // #endif
  317. },
  318. methods: {
  319. //0-仅退款 1-退货退款 2-确认收货
  320. modify: function(item, status, type,apiType) {
  321. this.apiModalType=apiType
  322. if (this.openErp && status != 1) return
  323. this.change = true;
  324. this.status = status.toString();
  325. this.orderInfo = item;
  326. if (status == 2) {
  327. this.isRefund = type
  328. }
  329. },
  330. changeclose: function(msg) {
  331. this.change = msg;
  332. },
  333. async savePrice(opt) {
  334. let that = this,
  335. data = {};
  336. data.refundOrderNo = that.orderInfo.refundOrderNo;
  337. if (that.apiModalType == 0) {
  338. if(opt.type==2&&!opt.refuse_reason){
  339. return this.$util.Tips({
  340. title: '请输入拒绝理由'
  341. })
  342. }
  343. let requestObj = {
  344. refundOrderNo:that.orderInfo.refundOrderNo,
  345. auditType:opt.type==1?'success':'refuse',
  346. reason:opt.refuse_reason?opt.refuse_reason:''
  347. }
  348. refundOrderAudit(requestObj).then(res=>{
  349. if(res.code==200){
  350. this.$util.Tips({
  351. title: '审核成功'
  352. })
  353. this.init();
  354. this.change = false
  355. }else{
  356. this.$util.Tips({
  357. title:res.message
  358. })
  359. }
  360. })
  361. } else if (that.apiModalType == 1) {
  362. //退货退款审核
  363. if(opt.type==2&&!opt.refuse_reason){
  364. return this.$util.Tips({
  365. title: '请输入拒绝理由'
  366. })
  367. }
  368. if(opt.type==1&&!opt.merAddressId){
  369. return this.$util.Tips({
  370. title: '请选择退货地址'
  371. })
  372. }
  373. //退货退款拒绝
  374. if(opt.type==2){
  375. let requestObj = {
  376. refundOrderNo:that.orderInfo.refundOrderNo,
  377. auditType:opt.type==1?'success':'refuse',
  378. reason:opt.refuse_reason?opt.refuse_reason:''
  379. }
  380. refundOrderAudit(requestObj).then(res=>{
  381. if(res.code==200){
  382. this.$util.Tips({
  383. title: '操作成功'
  384. })
  385. this.init();
  386. this.change = false
  387. }else{
  388. this.$util.Tips({
  389. title:res.message
  390. })
  391. }
  392. })
  393. }
  394. //退货退款同意
  395. if(opt.type==1){
  396. let requestObj = {
  397. refundOrderNo:that.orderInfo.refundOrderNo,
  398. auditType:opt.type==1?'success':'refuse',
  399. merAddressId:opt.merAddressId
  400. }
  401. refundOrderAudit(requestObj).then(res=>{
  402. if(res.code==200){
  403. this.$util.Tips({
  404. title: '操作成功'
  405. })
  406. this.init();
  407. this.change = false
  408. }else{
  409. this.$util.Tips({
  410. title:res.message
  411. })
  412. }
  413. })
  414. }
  415. }else if(that.apiModalType == 2){
  416. //确认收货
  417. if(opt.type==2&&!opt.refuse_reason){
  418. return this.$util.Tips({
  419. title: '请输入拒绝理由'
  420. })
  421. }
  422. if(opt.type==1){
  423. // 同意
  424. refundReceiving(that.orderInfo.refundOrderNo).then(res=>{
  425. if(res.code==200){
  426. this.$util.Tips({
  427. title: '操作成功'
  428. })
  429. this.init();
  430. this.change = false
  431. }else{
  432. this.$util.Tips({
  433. title:res.message
  434. })
  435. }
  436. })
  437. }
  438. if(opt.type==2){
  439. let requestObj = {
  440. refundOrderNo:that.orderInfo.refundOrderNo,
  441. reason:opt.refuse_reason?opt.refuse_reason:''
  442. }
  443. // 拒绝
  444. refundReceivingReject(requestObj).then(res=>{
  445. if(res.code==200){
  446. this.$util.Tips({
  447. title: '操作成功'
  448. })
  449. this.init();
  450. this.change = false
  451. }else{
  452. this.$util.Tips({
  453. title:res.message
  454. })
  455. }
  456. })
  457. }
  458. }else{
  459. data.remark=opt.remark
  460. if (!data.remark) {
  461. return this.$util.Tips({
  462. title: '请输入备注'
  463. })
  464. }
  465. refundOrderMark(data).then(res=>{
  466. if(res.code==200){
  467. this.$util.Tips({
  468. title: '备注成功'
  469. })
  470. this.orderRefundInfo();
  471. this.change = false
  472. }else{
  473. this.$util.Tips({
  474. title:res.message
  475. })
  476. }
  477. })
  478. }
  479. },
  480. //审核保存
  481. handleInputConfirm() {
  482. let that = this;
  483. if (!this.rejectText) return this.$util.Tips({
  484. title: '请输入审核不通过原因!'
  485. });
  486. uni.showLoading({
  487. title: '正在处理中'
  488. });
  489. let params = {
  490. refundOrderNo: this.rejectOrder,
  491. auditType: 'refuse',
  492. reason: this.rejectText
  493. }
  494. returningSecondHandAuditApi(params).then(res => {
  495. uni.hideLoading();
  496. return that.$util.Tips({
  497. title: '处理成功',
  498. icon: 'success'
  499. }, function() {
  500. that.orderRefundInfo();
  501. });
  502. }).catch(err => {
  503. return that.$util.Tips({
  504. title: err
  505. });
  506. });
  507. // 关闭窗口后,恢复默认内容
  508. this.$refs.rejectDialog.close()
  509. },
  510. //审核取消
  511. handleInputClose() {
  512. this.$refs.rejectDialog.close()
  513. },
  514. // 审核
  515. handleRevokeAudit(orderNo, type) {
  516. this.rejectOrder = orderNo;
  517. if (type) {
  518. uni.showLoading({
  519. title: '正在处理中'
  520. });
  521. returningSecondHandAuditApi({refundOrderNo: this.rejectOrder, auditType: 'success'}).then(res => {
  522. uni.hideLoading();
  523. return that.$util.Tips({
  524. title: '处理成功',
  525. icon: 'success'
  526. }, function() {
  527. that.orderRefundInfo();
  528. });
  529. }).catch(err => {
  530. return that.$util.Tips({
  531. title: err
  532. });
  533. });
  534. } else {
  535. this.$refs.rejectDialog.open();
  536. }
  537. },
  538. //店铺地址
  539. getMerAddress() {
  540. getMerAddressApi(this.refundInfo.merId).then(res => {
  541. this.$set(this, 'merAddress', res.data);
  542. }).catch(err => {
  543. return this.$util.Tips({
  544. title: err
  545. });
  546. })
  547. },
  548. //撤销售后
  549. handleRevokeRefund(refundOrderNo) {
  550. let that = this;
  551. onRevokeRefund(refundOrderNo, this.orderType).then(() => {
  552. this.orderRefundInfo()
  553. });
  554. },
  555. //退回商品
  556. handleReturningRefund(item) {
  557. this.$Cache.set('productInfo', item)
  558. let url =
  559. `/pages/goods/returns_and_refunds/index?refundOrderNo=${item.refundOrderNo}&returnGoodsType=${item.returnGoodsType}`;
  560. this.orderType == 'secondHand' ? url = url + '&orderType=secondHand' : ''
  561. uni.navigateTo({
  562. url: url
  563. })
  564. },
  565. kefuClick() {
  566. if (this.chatConfig.telephone_service_switch === 'true') {
  567. uni.makePhoneCall({
  568. phoneNumber: this.chatConfig.consumer_hotline //仅为示例
  569. });
  570. } else {
  571. // #ifdef APP-PLUS
  572. uni.navigateTo({
  573. url: '/pages/users/web_page/index?webUel=' + this.chatUrl + '&title=客服'
  574. })
  575. // #endif
  576. // #ifndef APP-PLUS
  577. location.href = this.chatUrl;
  578. // #endif
  579. }
  580. },
  581. /**
  582. * 拨打电话
  583. */
  584. makePhone: function(e) {
  585. uni.makePhoneCall({
  586. phoneNumber: e
  587. })
  588. },
  589. /**
  590. * 获取退款订单详细信息
  591. *
  592. */
  593. orderRefundInfo() {
  594. let that = this;
  595. uni.showLoading({
  596. title: "正在加载中"
  597. });
  598. let api = that.orderType == 'secondHand' ? secondHandRefundInfoApi : orderRefundInfoApi;
  599. api(that.refundOrderNo).then(res => {
  600. uni.hideLoading();
  601. let data = res.data;
  602. that.$set(that, 'refundInfo', data);
  603. //returnGoodsType 退货类型:0-不退货 1-快递退回,2-到店退货
  604. if (that.refundInfo.returnGoodsType === 2) that.getMerAddress();
  605. }).catch(err => {
  606. that.$util.Tips({
  607. title: err
  608. }, {
  609. tab: 4,
  610. url: '/pages/user/index'
  611. });
  612. });
  613. },
  614. init(){
  615. uni.navigateBack()
  616. },
  617. /**
  618. *
  619. * 剪切订单号
  620. */
  621. // #ifndef H5
  622. copy: function(orderNo) {
  623. let that = this;
  624. uni.setClipboardData({
  625. data: orderNo
  626. });
  627. },
  628. // #endif
  629. /**
  630. * 打电话
  631. */
  632. goTel: function() {
  633. uni.makePhoneCall({
  634. phoneNumber: this.refundInfo.deliveryId
  635. })
  636. }
  637. }
  638. }
  639. </script>
  640. <style scoped lang="scss">
  641. .addressDetail {
  642. line-height: 36rpx;
  643. }
  644. .btn-box {
  645. display: flex;
  646. padding-top: 20rpx;
  647. line-height: 60rpx;
  648. .btn-line {
  649. @include main_color(theme);
  650. @include coupons_border_color(theme);
  651. }
  652. .btn-bg {
  653. color: #fff;
  654. }
  655. .btn-999 {
  656. border: 1px solid #999999;
  657. color: #666666;
  658. }
  659. .btn {
  660. width: 176rpx;
  661. height: 60rpx;
  662. line-height: 56rpx;
  663. margin-left: 18rpx;
  664. text-align: center;
  665. border-radius: 30rpx;
  666. font-size: 28rpx;
  667. }
  668. .on {
  669. border-color: #2A7EFB !important;
  670. background: #2A7EFB !important;
  671. color: #fff !important;
  672. }
  673. }
  674. .margin-100 {
  675. margin: -86rpx auto 0 auto;
  676. }
  677. .return_info_pad {
  678. padding: 30rpx 24rpx;
  679. }
  680. .return_info {
  681. border-top: 1px solid #EEEEEE;
  682. background-color: #fff;
  683. padding: 32rpx 0;
  684. }
  685. .refundPrice {
  686. font-size: 35rpx;
  687. font-weight: bold;
  688. }
  689. .qs-btn {
  690. width: auto;
  691. height: 60rpx;
  692. text-align: center;
  693. line-height: 60rpx;
  694. border-radius: 50rpx;
  695. color: #fff;
  696. font-size: 27rpx;
  697. padding: 0 3%;
  698. color: #aaa;
  699. border: 1px solid #ddd;
  700. margin-right: 20rpx;
  701. }
  702. .text-overflow {
  703. width: 392rpx;
  704. overflow: hidden;
  705. text-overflow: ellipsis;
  706. white-space: nowrap;
  707. }
  708. .shuoming {
  709. width: 32rpx;
  710. height: 32rpx;
  711. }
  712. .mp-header {
  713. width: 100%;
  714. @include main_bg_color(theme);
  715. }
  716. .goodCall {
  717. @include main_color(theme);
  718. text-align: center;
  719. width: 100%;
  720. height: 86rpx;
  721. padding: 0 30rpx;
  722. border-bottom: 1rpx solid #eee;
  723. font-size: 30rpx;
  724. line-height: 86rpx;
  725. background: #fff;
  726. .icon-kefu {
  727. font-size: 36rpx;
  728. margin-right: 15rpx;
  729. }
  730. /* #ifdef MP */
  731. button {
  732. display: flex;
  733. align-items: center;
  734. justify-content: center;
  735. height: 86rpx;
  736. font-size: 30rpx;
  737. @include main_color(theme);
  738. }
  739. /* #endif */
  740. }
  741. .justify-between {
  742. justify-content: space-between;
  743. }
  744. .align-center {
  745. align-items: center;
  746. }
  747. .order-details {
  748. padding-bottom: 30rpx;
  749. .header {
  750. height: 250rpx;
  751. padding: 0 24rpx;
  752. }
  753. }
  754. .bg_color {
  755. @include main_bg_color(theme);
  756. }
  757. .order-details .header.on {
  758. // /background-color: #666 !important;
  759. }
  760. .order-details .header .pictrue {
  761. width: 110rpx;
  762. height: 110rpx;
  763. }
  764. .order-details .header .pictrue image {
  765. width: 100%;
  766. height: 100%;
  767. }
  768. .order-details .header .data {
  769. color: rgba(255, 255, 255, 0.8);
  770. font-size: 24rpx;
  771. margin-left: 27rpx;
  772. }
  773. .order-details .header .data.on {
  774. margin-left: 0;
  775. padding-top: 34rpx;
  776. }
  777. .order-details .header .data .state {
  778. font-size: 30rpx;
  779. font-weight: bold;
  780. color: #fff;
  781. }
  782. .order-details .header .data .time {
  783. margin-left: 20rpx;
  784. }
  785. .picTxt {
  786. padding-left: 10rpx;
  787. }
  788. .order-details .nav {
  789. background-color: #fff;
  790. font-size: 26rpx;
  791. color: #282828;
  792. padding: 27rpx 0;
  793. width: 100%;
  794. border-radius: 14rpx;
  795. margin: -100rpx auto 0 auto;
  796. }
  797. .order-details .nav .navCon {
  798. padding: 0 40rpx;
  799. }
  800. .order-details .nav .on {
  801. @include main_color(theme);
  802. }
  803. .font_color {
  804. @include main_color(theme);
  805. }
  806. .order-details .nav .progress {
  807. padding: 0 65rpx;
  808. margin-top: 10rpx;
  809. }
  810. .order-details .nav .progress .line {
  811. width: 100rpx;
  812. height: 2rpx;
  813. background-color: #939390;
  814. }
  815. .order-details .nav .progress .iconfont {
  816. font-size: 25rpx;
  817. color: #939390;
  818. margin-top: -2rpx;
  819. }
  820. .order-details .address {
  821. font-size: 26rpx;
  822. color: #868686;
  823. background-color: #fff;
  824. padding: 30rpx 0;
  825. .phone {
  826. margin-left: 20rpx;
  827. }
  828. }
  829. .order-details .address .name {
  830. font-size: 30rpx;
  831. color: #333;
  832. margin-bottom: 15rpx;
  833. }
  834. .order-details .line {
  835. width: 100%;
  836. height: 3rpx;
  837. }
  838. .order-details .line image {
  839. width: 100%;
  840. height: 100%;
  841. display: block;
  842. }
  843. .order-details .wrapper {
  844. background-color: #fff;
  845. margin-top: 12rpx;
  846. }
  847. .order-details .wrapper .item {
  848. font-size: 28rpx;
  849. color: #282828;
  850. }
  851. .order-details .wrapper .item~.item {
  852. margin-top: 34rpx;
  853. }
  854. .order-details .wrapper .item .conter {
  855. color: #282828;
  856. text-align: right;
  857. overflow: hidden;
  858. text-overflow: ellipsis;
  859. white-space: nowrap;
  860. }
  861. .mark_show {
  862. color: #868686;
  863. width: 470rpx;
  864. text-align: right;
  865. }
  866. .order-details .wrapper .item .conter .copy {
  867. font-size: 20rpx;
  868. color: #666;
  869. border-radius: 20rpx;
  870. border: 1rpx solid #999;
  871. padding: 8rpx 18rpx;
  872. margin-left: 10rpx;
  873. }
  874. .order-details .wrapper .actualPay {
  875. border-top: 1rpx solid #eee;
  876. margin-top: 30rpx;
  877. padding-top: 30rpx;
  878. }
  879. .order-details .wrapper .actualPay .money {
  880. font-weight: bold;
  881. font-size: 30rpx;
  882. @include price_color(theme);
  883. }
  884. .order-details .footer {
  885. width: 100%;
  886. height: 100rpx;
  887. position: fixed;
  888. bottom: 0;
  889. left: 0;
  890. background-color: #fff;
  891. padding-right: 30rpx;
  892. box-sizing: border-box;
  893. }
  894. .order-details .footer .bnt {
  895. width: 158rpx;
  896. height: 54rpx;
  897. text-align: center;
  898. line-height: 54rpx;
  899. border-radius: 50rpx;
  900. color: #fff;
  901. font-size: 27rpx;
  902. }
  903. .order-details .footer .bnt.cancel {
  904. color: #aaa;
  905. border: 1rpx solid #ddd;
  906. }
  907. .order-details .footer .bnt~.bnt {
  908. margin-left: 18rpx;
  909. }
  910. .order-details .writeOff {
  911. background-color: #fff;
  912. margin-top: 15rpx;
  913. padding-bottom: 50rpx;
  914. }
  915. .order-details .writeOff .title {
  916. font-size: 30rpx;
  917. color: #282828;
  918. height: 87rpx;
  919. border-bottom: 1px solid #f0f0f0;
  920. padding: 0 24rpx;
  921. line-height: 87rpx;
  922. }
  923. .order-details .writeOff .grayBg {
  924. background-color: #f2f5f7;
  925. width: 590rpx;
  926. height: 384rpx;
  927. border-radius: 20rpx 20rpx 0 0;
  928. margin: 50rpx auto 0 auto;
  929. padding-top: 55rpx;
  930. }
  931. .order-details .writeOff .grayBg .pictrue {
  932. width: 290rpx;
  933. height: 290rpx;
  934. margin: 0 auto;
  935. }
  936. .order-details .writeOff .grayBg .pictrue image {
  937. width: 100%;
  938. height: 100%;
  939. display: block;
  940. }
  941. .order-details .writeOff .gear {
  942. width: 590rpx;
  943. height: 30rpx;
  944. margin: 0 auto;
  945. }
  946. .order-details .writeOff .gear image {
  947. width: 100%;
  948. height: 100%;
  949. display: block;
  950. }
  951. .order-details .writeOff .num {
  952. background-color: #f0c34c;
  953. width: 590rpx;
  954. height: 84rpx;
  955. color: #282828;
  956. font-size: 48rpx;
  957. margin: 0 auto;
  958. border-radius: 0 0 20rpx 20rpx;
  959. text-align: center;
  960. padding-top: 4rpx;
  961. }
  962. .order-details .writeOff .rules {
  963. margin: 46rpx 30rpx 0 30rpx;
  964. border-top: 1px solid #f0f0f0;
  965. padding-top: 10rpx;
  966. }
  967. .order-details .writeOff .rules .item {
  968. margin-top: 20rpx;
  969. }
  970. .order-details .writeOff .rules .item .rulesTitle {
  971. font-size: 28rpx;
  972. color: #282828;
  973. }
  974. .order-details .writeOff .rules .item .rulesTitle .iconfont {
  975. font-size: 30rpx;
  976. color: #333;
  977. margin-right: 8rpx;
  978. margin-top: 5rpx;
  979. }
  980. .order-details .writeOff .rules .item .info {
  981. font-size: 28rpx;
  982. color: #999;
  983. margin-top: 7rpx;
  984. }
  985. .order-details .writeOff .rules .item .info .time {
  986. margin-left: 20rpx;
  987. }
  988. .order-details .map {
  989. font-size: 30rpx;
  990. color: #282828;
  991. margin-top: 15rpx;
  992. background-color: #fff;
  993. padding: 0 24rpx;
  994. .title {
  995. line-height: 86rpx;
  996. border-bottom: 1px solid #f0f0f0;
  997. }
  998. }
  999. .order-details .map .place {
  1000. font-size: 26rpx;
  1001. width: 176rpx;
  1002. height: 50rpx;
  1003. border-radius: 25rpx;
  1004. line-height: 50rpx;
  1005. text-align: center;
  1006. }
  1007. .order-details .map .place .iconfont {
  1008. font-size: 27rpx;
  1009. height: 27rpx;
  1010. line-height: 27rpx;
  1011. margin: 2rpx 3rpx 0 0;
  1012. }
  1013. .order-details .address .name .iconfont {
  1014. font-size: 34rpx;
  1015. margin-left: 10rpx;
  1016. }
  1017. .refund {
  1018. padding: 0 !important;
  1019. margin-top: 15rpx;
  1020. background-color: #fff;
  1021. .title {
  1022. display: flex;
  1023. align-items: center;
  1024. font-size: 30rpx;
  1025. color: #333;
  1026. height: 86rpx;
  1027. border-bottom: 1px solid #f5f5f5;
  1028. font-weight: 400;
  1029. padding: 0 24rpx;
  1030. image {
  1031. width: 32rpx;
  1032. height: 32rpx;
  1033. margin-right: 10rpx;
  1034. }
  1035. }
  1036. .con {
  1037. font-size: 26rpx;
  1038. color: #666666;
  1039. padding: 30rpx 24rpx;
  1040. }
  1041. }
  1042. .pictrue {
  1043. width: 130rpx;
  1044. height: 130rpx;
  1045. border-radius: 14rpx;
  1046. overflow: hidden;
  1047. image {
  1048. width: 100%;
  1049. height: 100%;
  1050. }
  1051. }
  1052. .text {
  1053. width: 490rpx;
  1054. // position: relative;
  1055. .name {
  1056. font-size: 28rpx;
  1057. color: #282828;
  1058. }
  1059. .attr {
  1060. font-size: 16rpx;
  1061. color: #868686;
  1062. margin-top: 7rpx
  1063. }
  1064. }
  1065. .wrapper-head {
  1066. background-color: #fff;
  1067. margin-top: 12rpx;
  1068. padding: 30rpx 24rpx;
  1069. }
  1070. .wrapper-info {
  1071. background-color: #fff;
  1072. margin: -100rpx auto 0 auto;
  1073. padding: 15px 12px;
  1074. .name {
  1075. width: 414rpx;
  1076. color: #333;
  1077. }
  1078. .num {
  1079. color: #999;
  1080. }
  1081. .attr {
  1082. color: #999;
  1083. font-size: 20rpx;
  1084. margin: 7rpx 0 16rpx 0;
  1085. }
  1086. .price {
  1087. font-size: 26rpx;
  1088. color: #E93323;
  1089. }
  1090. }
  1091. .borRadius-top {
  1092. border-radius: 14rpx 14rpx 0px 0px;
  1093. }
  1094. .borRadius-bottom {
  1095. border-radius: 0px 0px 14rpx 14rpx;
  1096. }
  1097. .conter-refund {
  1098. width: 76%;
  1099. text-align: right;
  1100. color: #868686;
  1101. .wapImg {
  1102. width: 106rpx;
  1103. height: 106rpx;
  1104. border-radius: 10rpx;
  1105. margin-right: 10rpx;
  1106. }
  1107. }
  1108. .bg-tk-color {
  1109. background-color: $bg-color-primary;
  1110. color: #fff;
  1111. border: none;
  1112. }
  1113. .tui-modal-custom {
  1114. width: 600rpx;
  1115. position: relative;
  1116. box-sizing: border-box;
  1117. padding: 40rpx;
  1118. border-radius: 16px;
  1119. background-color: #fff;
  1120. z-index: 9999;
  1121. .h-342 {
  1122. min-height: 268rpx;
  1123. max-height: 268rpx;
  1124. ;
  1125. overflow-y: scroll;
  1126. }
  1127. }
  1128. </style>