orderDet.vue 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177
  1. <template>
  2. <view>
  3. <!--pages/orderDet/orderDet.wxml-->
  4. <!-- 售后 -->
  5. <view class="examine" v-if="orderRefundList.length > 0 && isOldOrder()" @tap="gorefundDetOld">
  6. <view class="cont dflex">
  7. <view
  8. v-if="
  9. (orderRefundList[0].refundState == 39 && orderRefund.refundType == 1) ||
  10. (orderRefundList[0].refundState == 40 && orderRefund.refundType == 1) ||
  11. orderRefundList[0].refundState == 30 ||
  12. orderRefundList[0].refundState == 31
  13. "
  14. >
  15. <text style="font-size:28rpx;color:#FE0419">您已提交退款申请,等待审核中</text>
  16. <view style="font-size:24rpx;color:#999999">{{ orderRefund.createDat ? orderRefund.createDat : '' }}</view>
  17. </view>
  18. <view
  19. v-if="
  20. (orderRefundList[0].refundState == 41 && orderRefund.refundType == 1) ||
  21. (orderRefundList[0].refundState == 35 && orderRefund.refundType == 2 && orderRefund.refundMethod != 2)
  22. "
  23. >
  24. <text style="font-size:28rpx;color:#FE0419" v-if="orderRefund.refundMethod == null && orderRefundList[0].refundState == 35">
  25. 您提交的退款申请审核完成,请选择退货方式
  26. </text>
  27. <text style="font-size:28rpx;color:#FE0419" v-else>
  28. 您提交的退款申请审核完成{{ orderRefundList[0].refundState == 41 && orderRefund.refundType == 1 ? ',等待卖家退款中' : ',请填写物流信息' }}
  29. </text>
  30. <view style="font-size:24rpx;color:#999999">
  31. {{ orderRefundList[0].refundState == 41 && orderRefund.refundType == 1 ? orderRefund.refundReviewTime : orderRefund.refundGoodReviewTime }}
  32. </view>
  33. </view>
  34. <view v-if="orderRefundList[0].refundState == 36 && orderRefund.refundType == 2 && orderRefund.refundMethod == 2">
  35. <text style="font-size:28rpx;color:#FE0419">您提交的退款申请审核完成,请您把商品送回门店</text>
  36. <view style="font-size:24rpx;color:#999999">
  37. {{ orderRefundList[0].refundState == 41 && orderRefund.refundType == 1 ? orderRefund.refundReviewTime : orderRefund.refundGoodReviewTime }}
  38. </view>
  39. </view>
  40. <block v-if="orderRefund.refundType == 1">
  41. <view v-if="orderRefundList[0].refundState == 32">
  42. <text style="font-size:28rpx;color:#FE0419">您提交的退款申请,审核失败,请联系商家</text>
  43. <view style="font-size:28rpx">失败原因:{{ !orderRefund.refundFalseRes ? '' : orderRefund.refundFalseRes }}</view>
  44. <view style="font-size:24rpx;color:#999999">{{ orderRefund.refundOverTime ? orderRefund.refundOverTime : '' }}</view>
  45. </view>
  46. </block>
  47. <block v-if="orderRefund.refundType == 2">
  48. <view v-if="orderRefundList[0].refundState == 32">
  49. <text style="font-size:28rpx;color:#FE0419">您提交的退货申请,审核失败,请联系商家</text>
  50. <view style="font-size:28rpx">失败原因:{{ !orderRefund.refundFalseRes ? '' : orderRefund.refundFalseRes }}</view>
  51. <view style="font-size:24rpx;color:#999999">{{ orderRefund.refundOverTime ? orderRefund.refundOverTime : '' }}</view>
  52. </view>
  53. <view v-if="orderRefundList[0].refundState == 36 && (orderRefund.refundMethod == 1 || orderRefund.refundMethod == 3)">
  54. <text style="font-size:28rpx;color:#FE0419">商品已寄回,等待卖家确认收货</text>
  55. <view style="font-size:24rpx;color:#999999">{{ orderRefund.refundMethod == 1 ? orderRefund.expressTime : orderRefund.refundGoodReviewTime }}</view>
  56. </view>
  57. <view v-if="orderRefundList[0].refundState == 40 || orderRefundList[0].refundState == 39 || orderRefundList[0].refundState == 41">
  58. <text style="font-size:28rpx;color:#FE0419">您寄回的商品卖家已接收,等待卖家退款中</text>
  59. <view style="font-size:24rpx;color:#999999">{{ orderRefund.receiveTime ? orderRefund.receiveTime : '' }}</view>
  60. </view>
  61. </block>
  62. <view v-if="orderRefundList[0].refundState >= 42">
  63. <block v-if="orderRefundList[0].refundState == 43">
  64. <text style="font-size:28rpx;color:#FE0419">退款完成</text>
  65. <view style="font-size:24rpx;color:#999999">{{ orderRefund.refundOverTime ? orderRefund.refundOverTime : '' }}</view>
  66. </block>
  67. <block v-else>
  68. <text style="font-size:28rpx;color:#FE0419">退款失败</text>
  69. <view style="font-size:24rpx;color:#999999">{{ refundFalseRes ? refundFalseRes : '' }}</view>
  70. </block>
  71. </view>
  72. <image src="/mine/static/mine/images/tuikuan.png"></image>
  73. </view>
  74. </view>
  75. <!-- 处方 -->
  76. <!-- <view class="status mdaddr1 bgfff r10" v-if="((state>=20 && state<30)||state==1)&&isOtc==1">
  77. <view :class="'li ' + (state==1 ? 'ing' : '')" >
  78. <text></text>待付款
  79. </view>
  80. <view :class="'li ' + (state>20 ? 'ing' : '')">
  81. <text></text>开处方
  82. </view>
  83. <view :class="'li ' + (state ==22 ? 'ing' : '')" v-if="state==22">
  84. <text></text>开方失败
  85. </view>
  86. <view :class="'li ' + (state >=25 ? 'ing' : '')">
  87. <text></text>处方审核
  88. </view>
  89. <view :class="'li ' + (state ==27 ? 'ing' : '')" v-if="state==27">
  90. <text></text>审方失败
  91. </view>
  92. </view> -->
  93. <!-- 退货-->
  94. <!-- <view class="status" wx:if="{{state == 9 || state == 10 || state>=40}}">
  95. <view class="li {{state ==40 ? 'ing' : ''}}">
  96. <text></text>退款审核
  97. </view>
  98. <view class="li {{state ==9 ? 'ing' : ''}}">
  99. <text></text>退还商品
  100. </view>
  101. <view class="li {{state ==41 ? 'ing' : ''}}">
  102. <text></text>待退款
  103. </view>
  104. <view class="li {{state ==42 ? 'ing' : ''}}" wx:if="{{state==42}}">
  105. <text></text>退款失败
  106. </view>
  107. <view class="li {{state ==43 ? 'ing' : ''}}" wx:if="{{state==43}}">
  108. <text></text>退款完成
  109. </view>
  110. </view> -->
  111. <view class="top">
  112. <view class="status" v-if="(state < 8 && state >= 1) || (state >= 20 && state < 30)">
  113. <view :class="'li ' + (state >= 1 ? 'ing' : '')">
  114. <text></text>
  115. 待付款
  116. </view>
  117. <view :class="'li ' + (state >= 20 || state > 1 ? 'ing' : '')" v-if="isOtc == 1">
  118. <text></text>
  119. 开处方
  120. </view>
  121. <view :class="'li ' + (state == 22 ? 'ing' : '')" v-if="state == 22">
  122. <text></text>
  123. 开方失败
  124. </view>
  125. <view :class="'li ' + (state >= 25 || (state > 1 && state != 22) ? 'ing' : '')" v-if="isOtc == 1">
  126. <text></text>
  127. {{ state != 22 ? '处方审核' : '重新开方' }}
  128. </view>
  129. <view :class="'li ' + (state == 27 ? 'ing' : '')" v-if="state == 27">
  130. <text></text>
  131. 审方失败
  132. </view>
  133. <view :class="'li ' + (state > 1 && state < 20 ? 'ing' : '')">
  134. <text></text>
  135. {{ mode != 1 ? stateName : '待自提' }}
  136. </view>
  137. <view :class="'li ' + (state > 3 && state < 20 ? 'ing' : '')" v-if="mode != 1">
  138. <text></text>
  139. 待收货
  140. </view>
  141. <view :class="'li ' + ((mode != 1 && state == 7) || (mode == 1 && state == 6) ? 'ing' : '')">
  142. <text></text>
  143. {{ mode != 1 ? '已完成' : '已自提' }}
  144. </view>
  145. </view>
  146. </view>
  147. <!-- <view :class="'status mdaddr1 bgfff ' + (true?'r10':'r11')" v-if="state>=39||state>=30">
  148. <view :class="'li ' + (state>=39||state>=30?'ing':'')">
  149. <text></text>待审核
  150. </view>
  151. <view :class="'li ' + (state>=32?'ing':'')" v-if="state==32">
  152. <text></text>审核失败
  153. </view>
  154. <block v-else>
  155. <block v-if="orderRefund.refundType==2&&(orderRefund.refundMethod==1)">
  156. <view :class="'li ' + (state>=35?'ing':'')">
  157. <text></text>待寄回
  158. </view>
  159. <view :class="'li ' + (state>=36?'ing':'')">
  160. <text></text>退货中
  161. </view>
  162. </block>
  163. <block
  164. v-if="orderRefund.refundType==2&&(orderRefund.refundMethod==2|| orderRefund.refundMethod==3)">
  165. <view :class="'li ' + (state>=36?'ing':'')">
  166. <text></text>退货中
  167. </view>
  168. </block>
  169. <view
  170. :class="'li ' + ((state>=41&&orderRefund.refundType==1)||(state>=39&&orderRefund.refundType==2)?'ing':'')">
  171. <text></text>退款中
  172. </view>
  173. <view :class="'li ' + (state>=42?'ing':'')">
  174. <text></text>已退款
  175. </view>
  176. </block>
  177. </view> -->
  178. <!-- 门店自提 -->
  179. <block v-if="mode == 1">
  180. <view class="tihuo bgfff r10 dflex" v-if="state >= 3 && state <= 7">
  181. <view class="tihuoma dflex">
  182. <image src="/static/pages/images/thico.png"></image>
  183. 提货号码:
  184. <text>{{ code }}</text>
  185. </view>
  186. <view class="thmbtn" @tap="showCode" v-if="codeUrl">
  187. <image src="/static/pages/images/ewmico.png"></image>
  188. 查看提货码
  189. </view>
  190. </view>
  191. <view class="mdaddr bgfff r10">
  192. <!-- <view class="status mdaddr1 bgfff " v-if="state>=39||state>=30">
  193. <view :class="'li ' + (state>=39||state>=30?'ing':'')">
  194. <text></text>待审核
  195. </view>
  196. <view :class="'li ' + (state>=32?'ing':'')" v-if="state==32">
  197. <text></text>审核失败
  198. </view>
  199. <block v-else>
  200. <block v-if="orderRefund.refundType==2&&(orderRefund.refundMethod==1)">
  201. <view :class="'li ' + (state>=35?'ing':'')">
  202. <text></text>待寄回
  203. </view>
  204. <view :class="'li ' + (state>=36?'ing':'')">
  205. <text></text>退货中
  206. </view>
  207. </block>
  208. <block v-if="orderRefund.refundType==2&&(orderRefund.refundMethod==2||orderRefund.refundMethod==3)">
  209. <view :class="'li ' + (state>=36?'ing':'')">
  210. <text></text>退货中
  211. </view>
  212. </block>
  213. <view :class="'li ' + ((state>=41&&orderRefund.refundType==1)||(state>=39&&orderRefund.refundType==2)?'ing':'')">
  214. <text></text>退款中
  215. </view>
  216. <view :class="'li ' + (state>=42?'ing':'')">
  217. <text></text>已退款
  218. </view>
  219. </block>
  220. </view> -->
  221. <view class="mdinfo">
  222. <view class="areas dflex">
  223. 自提点:{{ shopName ? shopName : merchantName }}
  224. <image src="/static/pages/images/dwico.png" class="dwico"></image>
  225. </view>
  226. <text>地址:{{ shopAddress ? shopAddress : address }}</text>
  227. <text>营业时间: 8:30~22:30 节假日不休息</text>
  228. </view>
  229. <view class="mdphone" @tap="callPhone">
  230. 门店电话:
  231. <text>{{ merchantPhone ? merchantPhone : '无' }}</text>
  232. <image src="/static/pages/images/call.png"></image>
  233. </view>
  234. <image src="/static/pages/images/dzbg.png" class="dzbg"></image>
  235. </view>
  236. </block>
  237. <!-- 门店自提 -->
  238. <!-- 物流配送 -->
  239. <view class="top" v-else>
  240. <view class="addr">
  241. <text class="areas">{{ address }}</text>
  242. <view class="addrb ddflex">
  243. <view class="fflex">
  244. 收货人: {{ name }}
  245. <text>{{ phone }}</text>
  246. </view>
  247. </view>
  248. <!-- <view class="qdkf ddflex" v-if="state <= 3">如需修改地址,请联系<button open-type="contact" hover-class="none">售后客服</button></view>
  249. <view class="qdkf ddflex" v-if="state > 3 && state < 20 && state != 7">订单已发货,不支持修改地址</view>
  250. -->
  251. <image src="/static/pages/images/dzbg.png" class="dzbg"></image>
  252. </view>
  253. <!-- &&state!=7订单未完成 -->
  254. <view class="psfs dflex" v-if="deliverState" @tap="goUrl" :data-url="url">
  255. <image src="/static/pages/images/psico.png" class="psico"></image>
  256. <view class="flex">
  257. <view v-if="deliverExtend == 1">{{ deliverMode }}:{{ deliverState }}</view>
  258. <view v-else>查看快递</view>
  259. <text v-if="deliverExtend == 1">{{ deliverTime }}</text>
  260. </view>
  261. <image src="/static/pages/images/more.png" class="rico1"></image>
  262. </view>
  263. <!-- 配送人员&&state!=7 -->
  264. <view class="psy dflex" v-if="deliverMode == '自主配送'">
  265. <text>配送员信息</text>
  266. <view class="psy-info flex dflex">
  267. <view class="psy-phone dflex" @tap="callDeliver">
  268. <image src="/static/pages/images/psyico.png"></image>
  269. 电话骑士
  270. </view>
  271. <view class="psy-name">{{ deliveryUserName }}</view>
  272. </view>
  273. </view>
  274. </view>
  275. <!-- 产品信息 -->
  276. <view class="list" v-if="state == 8 || state == 1">
  277. <view class="dpname">
  278. <image class="l-s-img" src="/static/pages/images/dpico.png"></image>
  279. {{ shopName ? shopName : merchantName }}
  280. </view>
  281. <view v-for="(item, index) in products" :key="index" class="li" @tap="toDetail" :data-id="item.id">
  282. <view class="li-info dflex">
  283. <view class="cimgs">
  284. <image :src="item.pic" mode="aspectFit" class="cimg"></image>
  285. <image src="/static/pages/images/jishida.png" mode="aspectFit" class="type" v-if="orderType == 5"></image>
  286. <image src="/static/pages/images/tuangou.png" mode="aspectFit" class="type" v-if="orderType == 2"></image>
  287. </view>
  288. <view class="zhinfo">
  289. <view class="zhtit">{{ item.title }}</view>
  290. <view v-if="item.propertiesList" class="guigecontent">
  291. 规格:
  292. <text v-for="(itemGuige, index2) in item.propertiesList" :key="index2" class="guige" decode="true">{{ itemGuige.value }}&nbsp;</text>
  293. </view>
  294. <view class="jiage">
  295. <view class="zhjia" v-if="orderType != 11">¥{{ item.salePrice }}</view>
  296. <view class="zhjia" v-if="orderType == 11">{{ item.integral }}积分+¥{{ item.salePrice }}</view>
  297. <view class="num">×{{ item.quantity }}</view>
  298. </view>
  299. </view>
  300. </view>
  301. <!-- <view class="lis wuliu dflex">
  302. <image src="../../static/pages/images/psico_y.png" class="lis-img"></image>
  303. <view class="flex y-txt">查看物流</view>
  304. <image src="../static/mine/images/rico2.png" class="rico"></image>
  305. </view>
  306. <view class="lis zhuang dflex">
  307. <image src="../static/mine/images/tuikuan.png" class="lis-img"></image>
  308. <view class="flex r-txt">售后信息</view>
  309. <image src="../static/mine/images/rico2.png" class="rico"></image>
  310. </view> -->
  311. </view>
  312. </view>
  313. <view v-else class="list" v-for="(items, index) in deliverListss" :key="index">
  314. <view class="dpname" @click="deliverLog(items)">
  315. <image class="l-s-img" src="/static/pages/images/dpico.png"></image>
  316. <view class="flex">
  317. <!-- {{ items.supplierName ? items.supplierName : (shopName ? shopName : merchantName) + '自营' }} -->
  318. {{ shopName ? shopName : merchantName }}
  319. </view>
  320. <view :class="'dflex ' + (items.state == 2 || items.state == 3 ? 'dd-stared' : 'dd-sta ')" v-if="mode != 1">
  321. {{ items.state == 1 ? '未发货' : items.state == 2 ? '待收货' : items.state == 3 ? '已签收' : items.state == 4 ? '已完成' : '' }}
  322. <image src="/static/pages/images/more.png" class="rico" v-if="items.state == 2 || items.state == 3" />
  323. </view>
  324. </view>
  325. <view v-for="(item, index1) in items.extendDTOList" :key="index1" class="li">
  326. <view class="li-info dflex" @tap="toDetail" :data-id="item.productId">
  327. <view class="cimgs">
  328. <image :src="item.pic" mode="aspectFit" class="cimg"></image>
  329. <image src="/static/pages/images/jishida.png" mode="aspectFit" class="type" v-if="orderType == 5"></image>
  330. <image src="/static/pages/images/tuangou.png" mode="aspectFit" class="type" v-if="orderType == 2"></image>
  331. </view>
  332. <view class="zhinfo">
  333. <view class="zhtit">{{ item.productName }}</view>
  334. <view v-if="item.specsList" class="guigecontent">
  335. 规格:
  336. <text v-for="(itemGuige, index2) in item.specsList" :key="index2" class="guige" decode="true">{{ itemGuige.value }}&nbsp;</text>
  337. </view>
  338. <view class="jiage">
  339. <view class="zhjia" v-if="orderType != 11">¥{{ item.money }}</view>
  340. <view class="zhjia" v-if="orderType == 11">{{ item.integral }}积分+¥{{ item.money }}</view>
  341. <view class="num">×{{ item.deliverQuantity }}</view>
  342. </view>
  343. </view>
  344. </view>
  345. <view
  346. class="lis zhuang dflex"
  347. v-if="item.refundOrderList && item.refundOrderList.length > 0"
  348. v-for="(its, idx) in item.refundOrderList"
  349. @click="gorefundDet(its)"
  350. :data-its="its"
  351. :key="idx"
  352. >
  353. <image src="../static/mine/images/tuikuan.png" class="lis-img"></image>
  354. <view class="flex r-txt">{{ refundHintText(its) }}</view>
  355. <image src="../static/mine/images/rico2.png" class="rico"></image>
  356. </view>
  357. </view>
  358. </view>
  359. <view class="ddinfo">
  360. <view class="li">
  361. <text>订单编号</text>
  362. <view class="ddid dflex">
  363. {{ id }}
  364. <text class="copy" @tap="copy()">复制</text>
  365. </view>
  366. </view>
  367. <view class="li">
  368. <text>创建时间</text>
  369. <view>{{ createDate }}</view>
  370. </view>
  371. <view class="li" v-if="deliverTime">
  372. <text>{{ mode == 1 ? '自提' : '发货' }}时间</text>
  373. <view>{{ deliverTime }}</view>
  374. </view>
  375. <view class="li">
  376. <text>订单金额</text>
  377. <view class="price">¥{{ money }}</view>
  378. </view>
  379. <view class="li" v-if="expressFee">
  380. <text>快递费</text>
  381. <view class="price">¥{{ expressFee }}</view>
  382. </view>
  383. <view class="li" v-if="discountMoney && orderType != 11">
  384. <text>优惠券</text>
  385. <view class="price">-¥{{ discountMoney }}</view>
  386. </view>
  387. <view class="li" v-if="discountMoney && orderType == 11">
  388. <text>使用积分</text>
  389. <view class="price">{{ discountMoney }}</view>
  390. </view>
  391. <view class="li" v-if="balancePayMoney">
  392. <text>余额扣除</text>
  393. <view class="price">-¥{{ balancePayMoney }}</view>
  394. </view>
  395. <view class="li" v-if="offlinePaymentMoney">
  396. <text>线下余额扣除</text>
  397. <view class="price">-¥{{ offlinePaymentMoney }}</view>
  398. </view>
  399. <view class="li">
  400. <text>{{state==1||state==8?'应付':'实付'}}金额</text>
  401. <view class="price">¥{{ payMoney }}</view>
  402. </view>
  403. </view>
  404. <view class="ddinfo" v-if="note">
  405. <view class="li">
  406. <text>备注:</text>
  407. <view>{{ note }}</view>
  408. </view>
  409. </view>
  410. <view class="ddinfo" v-if="state == 22 && orderDrugUser.reasons">
  411. <view class="dli">
  412. <text>开方失败原因:</text>
  413. <view>{{ orderDrugUser.reasons }}</view>
  414. </view>
  415. </view>
  416. <view class="placeholder-view" :style="'height:' + (bottomBlankHeight + 100) + 'rpx'"></view>
  417. <view class="bot" :style="'padding-bottom:' + (bottomBlankHeight + 20) + 'rpx'">
  418. <view class="bot-view" @tap="deleteOrder" v-if="state == 8">删除订单</view>
  419. <view class="bot-view" @tap="cancelOrder" v-if="state == 1">取消订单</view>
  420. <block v-if="config.is_open_invoice == 1 && (state == 2 || state == 3 || state == 4 || state == 5 || state == 6 || state == 7)">
  421. <view class="bot-view" @tap="applyInvoice" v-if="invoiceState == 0">申请开票</view>
  422. <view class="bot-view" @tap="toInvoice" v-else>查看发票</view>
  423. </block>
  424. <view class="bot-view" @tap="txOrder" v-if="state == 3 && isReminder == 1">提醒发货</view>
  425. <block v-if="orderType != 4">
  426. <!-- <view
  427. class="sta-btn"
  428. @tap="refundmod"
  429. :data-id="id"
  430. :data-index="index"
  431. v-if="
  432. isRefundStock == 1||(refund > 0 && state >= 2 && state <= 6 && orderType !== 4 && isrefund == 1 && payTime != null && reimburse && canRefund) ||
  433. (state >= 20 && state < 30 && isOtc == '1' && isrefund == 1 && payTime != null && reimburse && canRefund)
  434. "
  435. >
  436. 申请售后
  437. </view> -->
  438. <block v-if="state != 1 && state != 8 && state != 9 && state != 10">
  439. <block v-if="state >= 30 && state <= 43"></block>
  440. <view v-else class="sta-btn bot-view" @tap="isRefundStock == 1 ? refundmod() : refundmods()">申请售后</view>
  441. </block>
  442. </block>
  443. <view @tap="payOrder" v-if="state == 1" class="confirm bot-view">立即付款</view>
  444. <view class="confirm bot-view" @tap="confirmOrder" :data-index="index" v-if="state == 5 || item.state == 6" :data-id="id">确认收货</view>
  445. <navigator
  446. :url="'/activity/group/ptDetail/ptDetail?id=' + groupId + '&merchantId=' + merchantId"
  447. v-if="orderType == 4 && state != 8 && groupId && state > 1"
  448. class="confirm bot-view"
  449. >
  450. 我的拼团
  451. </navigator>
  452. <navigator
  453. v-if="state > 5 && (state != 20 && state != 22 && state != 27)"
  454. open-type="reLaunch"
  455. hover-class="none"
  456. :url="header.appId == 'ZQ1VK5oc17I387E' ? '/pages/timelyDelivery/index' : '/pages/index/index'"
  457. class="confirm bot-view"
  458. >
  459. 继续购物
  460. </navigator>
  461. <navigator v-if="state == 22 || state == 20 || state == 27" hover-class="none" :url="'/prescription/Consultation/index?orderId=' + id" class="confirm bot-view">
  462. 重新开方
  463. </navigator>
  464. <contact-button button-text="联系客服" class-name="confirm bot-view" v-if="state == 3 || state == 25 || state == 26"></contact-button>
  465. <!-- <navigator url="/pages/shop/shop"wx:if="{{state > 5 }}" open-type="reLaunch" hover-class="none" class="confirm">继续购物</navigator> -->
  466. </view>
  467. <!-- 自提取货码 -->
  468. <block v-if="isShow">
  469. <view class="mask" @tap="eliminate"></view>
  470. <view class="qhpop">
  471. <view class="close"><image src="/static/pages/images/close.png" @tap="eliminate"></image></view>
  472. <view class="thma">
  473. 我的提货码
  474. <text>{{ code }}</text>
  475. </view>
  476. <view class="qrcode">
  477. <!-- <canvas class='canvas' canvas-id='canvas' bindlongtap='save' style="width:150px;height:150px"></canvas> -->
  478. <image :src="codeUrl"></image>
  479. </view>
  480. <view class="save" @tap="saveImage">保存到相册</view>
  481. </view>
  482. </block>
  483. <canvas canvas-id="invite" class="canvas" style="width:295px;height:428px;"></canvas>
  484. <!-- 申请售后弹窗 -->
  485. <view class="ceng" v-if="popShow" @click="cancel()"></view>
  486. <view class="popup" v-if="popShow">
  487. <view class="pop-tit">提示</view>
  488. <view class="pop-tip">当前{{ stateName }},如有售后问题,请咨询客服</view>
  489. <view class="pop-btn dflex">
  490. <view class="pop-cancel fflex" @click="cancel()">取消</view>
  491. <view class="fflex"><contact-button class-name="pop-contact fflex" button-text="咨询客服"></contact-button></view>
  492. </view>
  493. </view>
  494. </view>
  495. </template>
  496. <script>
  497. // pages/orderDet/orderDet.js
  498. const app = getApp(); // const QRCode = require('../../utils/weapp.qrcode.js')
  499. // const QRCode = require('../../utils/weapp.qrcode.js')
  500. const req = require('../../utils/request.js');
  501. const requsetmessage = require('../../utils/requestmessage.js');
  502. // state : 1 未付款 2 待确认 3 待发货 4 待提货 5 配送中 6 已签收 7 订单完成
  503. // 8 订单取消 9 退货中 10 完成退货 11 支付失败 15 进行中
  504. // 售后状态
  505. // 30 售后待审核 32 售后审核失败 35 商品待退回 36 商品退回中
  506. // 39 退款申请 40 退款待支付 41 退款中 42 退款失败
  507. // 43 退款成功
  508. // 处方订单
  509. // 20 未开方 21 开方中 22 开方失败 25 待审方
  510. // 26 审方中 27 审方失败,
  511. // 49 用户取消售后
  512. export default {
  513. data() {
  514. return {
  515. bottomBlankHeight: app.globalData.isIPhoneX ? 68 : 0,
  516. deliverListss: '',
  517. isShow: false,
  518. isrefund: '',
  519. id: '',
  520. config: '',
  521. show: false,
  522. codeUrl: '',
  523. deliverExtend: 0,
  524. url: '',
  525. imgUrl: '',
  526. pageList: '',
  527. orderRefund: '',
  528. header: req.header,
  529. orderRefundList: [],
  530. reimburse: false,
  531. canRefund: true,
  532. state: '',
  533. popShow: false
  534. };
  535. },
  536. components: {},
  537. props: {},
  538. onLoad: async function(options) {
  539. this.query = options;
  540. let id = options.id;
  541. this.setData({
  542. isrefund: options.isrefund
  543. }); // req.getRequest('/api/order/detail', {
  544. // id: id
  545. // }, data => {
  546. // that.setData(data);
  547. // if (data.state >= 30 && data.state <= 43) {
  548. // this.getrefundDet(id)
  549. // }
  550. // })
  551. this.setData({
  552. id: id
  553. });
  554. // console.log(options.code);
  555. await this.getConfig();
  556. },
  557. async onShow() {
  558. let that = this;
  559. await req.getRequest(
  560. '/api/order/detail',
  561. {
  562. id: this.id
  563. },
  564. data => {
  565. this.deliverListss = data.deliverList;
  566. // console.log('获取到的退款单11111>>>>>',data.orderRefundList);
  567. // console.log('获取到的退款单>>>>>',this.deliverListss);
  568. data.refund = data.products.filter(it => it.quantity - (it.refundStock ? it.refundStock : 0) > 0).length;
  569. // console.log(data)
  570. that.setData(data);
  571. that.state = data.state;
  572. if (!data.orderRefundList) {
  573. this.orderRefundList = [];
  574. this.reimburse = true;
  575. } else if (data.orderRefundList.length < 1) {
  576. this.orderRefundList = [];
  577. this.reimburse = true;
  578. } else {
  579. // this.getrefundDet(data.orderRefundList[0].id);
  580. this.orderRefund = data.orderRefundList[0];
  581. let orderRefundList = data.orderRefundList;
  582. this.orderRefundList = orderRefundList;
  583. if (orderRefundList[0].refundState == 43 || orderRefundList[0].refundState == 32) {
  584. this.reimburse = true;
  585. } else {
  586. this.reimburse = false;
  587. }
  588. }
  589. // if (data.state >= 30 && data.state <= 43) {
  590. // this.getrefundDet(this.id);
  591. // }
  592. if (data.mode == 1 && data.state >= 3 && data.state <= 7) {
  593. this.getCodeUrl();
  594. this.generatePoster();
  595. }
  596. if (data.mode != 1 && data.state >= 5 && data.state <= 7) {
  597. this.deliverExtendFun();
  598. }
  599. }
  600. );
  601. },
  602. methods: {
  603. goUrl(e) {
  604. // var dataset = e.currentTarget.dataset;
  605. let url = e.currentTarget.dataset.url;
  606. if (this.deliverState == '完成') {
  607. url = url + '&isReceived=true';
  608. }
  609. uni.navigateTo({
  610. url: url
  611. });
  612. },
  613. eliminate() {
  614. this.setData({
  615. isShow: false
  616. });
  617. },
  618. refundHintText(orderRefundItem) {
  619. var text = '';
  620. if (
  621. (orderRefundItem.refundState == 39 && (orderRefundItem.refundType == 1||orderRefundItem.refundType==3)) ||
  622. (orderRefundItem.refundState == 40 && (orderRefundItem.refundType == 1||orderRefundItem.refundType==3)) ||
  623. orderRefundItem.refundState == 30 ||
  624. orderRefundItem.refundState == 31
  625. ) {
  626. text = '您已提交退款申请,等待审核中';
  627. }
  628. if (
  629. ((orderRefundItem.refundState == 41 || orderRefundItem.refundState == 40) && (orderRefundItem.refundType == 1||orderRefundItem.refundType==3)) ||
  630. (orderRefundItem.refundState == 35 && orderRefundItem.refundType == 2 && orderRefundItem.refundMethod != 2)
  631. ) {
  632. if (orderRefundItem.refundMethod == null && orderRefundItem.refundState == 35) {
  633. text = '您提交的退款申请审核完成,请选择退货方式';
  634. } else {
  635. text =
  636. '您提交的退款申请审核完成' +
  637. ((orderRefundItem.refundState == 41 || orderRefundItem.refundState == 40) && (orderRefundItem.refundType == 1||orderRefundItem.refundType==3) ? ',等待卖家退款中' : ',请填写物流信息');
  638. }
  639. }
  640. if (orderRefundItem.refundState == 36 && orderRefundItem.refundType == 2 && orderRefundItem.refundMethod == 2) {
  641. text = '您提交的退款申请审核完成,请您把商品送回门店';
  642. } else if (orderRefundItem.refundType == 1||orderRefundItem.refundType==3) {
  643. if (orderRefundItem.refundState == 32) {
  644. text = '您提交的退款申请,审核失败,请联系商家' + (!orderRefundItem.refundFalseRes ? '' : ';原因:') + orderRefundItem.refundFalseRes;
  645. }
  646. } else if (orderRefundItem.refundType == 2) {
  647. if (orderRefundItem.refundState == 32) {
  648. text = '您提交的退货申请,审核失败,请联系商家' + (!orderRefundItem.refundFalseRes ? '' : ';失败原因:') + orderRefundItem.refundFalseRes;
  649. } else if (orderRefundItem.refundState == 36 && (orderRefundItem.refundMethod == 1 || orderRefundItem.refundMethod == 3)) {
  650. text = '商品已寄回,等待卖家确认收货';
  651. } else if (orderRefundItem.refundState == 40 || orderRefundItem.refundState == 39 || orderRefundItem.refundState == 41) {
  652. text = '您寄回的商品卖家已接收,等待卖家退款中';
  653. }
  654. }
  655. if (orderRefundItem.refundState >= 42) {
  656. if (orderRefundItem.refundState == 43) {
  657. text = '退款完成';
  658. } else {
  659. if (orderRefundItem.refundState == 49) {
  660. text = '已取消售后';
  661. } else {
  662. text = '退款失败';
  663. }
  664. }
  665. }
  666. return text;
  667. },
  668. getConfig() {
  669. var _this = this;
  670. return new Promise((resolve, reject) => {
  671. req.g(
  672. '/api/config',
  673. res => {
  674. // console.log('配置数据====' + JSON.stringify(res));
  675. _this.setData({
  676. config: res
  677. });
  678. resolve();
  679. },
  680. true
  681. );
  682. });
  683. },
  684. getCodeUrl() {
  685. let that = this; //获取小程序码
  686. const params = {
  687. // page: 'pages/index/index',
  688. page: 'pages/web/web',
  689. scene: this.query.code
  690. }; // return new Promise((resolve, reject) => {
  691. req.getRequest('/api/program/codev', params, url => {
  692. // console.log(url);
  693. that.setData({
  694. show: true,
  695. codeUrl: url
  696. });
  697. that.generatePoster(url); // resolve();
  698. // })
  699. });
  700. },
  701. // 获取分单发货的
  702. deliverExtendFun() {
  703. req.postRequest(
  704. '/api/order/deliverExtend',
  705. {
  706. id: this.query.id
  707. },
  708. res => {
  709. let url;
  710. if (res && res.length >= 2) {
  711. url = '/mine/deliverExtend/deliverExtend?orderId=' + this.id;
  712. this.setData({
  713. deliverExtend: 2,
  714. url: url
  715. });
  716. } else {
  717. url = '/mine/logistics/logistics?id=' + this.deliverId + '&orderId=' + this.id;
  718. this.setData({
  719. deliverExtend: 1,
  720. url: url
  721. });
  722. }
  723. }
  724. );
  725. },
  726. //检验是否为老的订单退款数据
  727. isOldOrder() {
  728. if (this.orderRefundList.length > 0) {
  729. var rRefundList = [];
  730. if (this.deliverList && this.deliverList.length > 0) {
  731. for (var i = 0; i < this.deliverList.length; i++) {
  732. var extendDTOList = this.deliverList[i].extendDTOList;
  733. for (var k = 0; k < extendDTOList.length; k++) {
  734. rRefundList = rRefundList.concat(extendDTOList[k].refundOrderList);
  735. }
  736. }
  737. }
  738. if (this.orderRefundList[0].refundState == 49) {
  739. //售后取消
  740. return false;
  741. } else {
  742. return rRefundList.length <= 0;
  743. }
  744. }
  745. return false;
  746. },
  747. deliverLog(items) {
  748. if (items.mode != 1 && (items.state == 2 || items.state == 3)) {
  749. uni.navigateTo({
  750. url: '/mine/logistics/logistics?id=' + items.id + '&orderId=' + items.orderId
  751. });
  752. }
  753. },
  754. generatePoster(url) {
  755. let that = this;
  756. that.generate(url, imgUrl => {
  757. that.setData({
  758. imgUrl: imgUrl
  759. });
  760. });
  761. },
  762. isAuth(fun) {
  763. if (!uni.saveImageToPhotosAlbum) {
  764. uni.showModal({
  765. title: '提示',
  766. content: '当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。'
  767. });
  768. return;
  769. } //可以通过 wx.getSetting 先查询一下用户是否授权了 "scope.writePhotosAlbum" 这个 scope
  770. // #ifndef H5
  771. uni.getSetting({
  772. success(res) {
  773. // console.log(res);
  774. if (!res.authSetting['scope.writePhotosAlbum']) {
  775. // 接口调用询问
  776. uni.authorize({
  777. scope: 'scope.writePhotosAlbum',
  778. success() {
  779. // console.log("2-授权《保存图片》权限成功");
  780. fun(true);
  781. },
  782. fail() {
  783. fun(false);
  784. }
  785. });
  786. } else {
  787. // 拒绝授权
  788. fun(true);
  789. }
  790. },
  791. fail(res) {
  792. fun(false);
  793. }
  794. });
  795. // #endif
  796. },
  797. saveImage() {
  798. let that = this;
  799. that.isAuth(success => {
  800. if (success) {
  801. // console.log("图片地址=====" + that.imgUrl);
  802. uni.saveImageToPhotosAlbum({
  803. filePath: that.imgUrl,
  804. success(res) {
  805. uni.showToast({
  806. title: '图片保存成功',
  807. icon: 'none',
  808. success() {},
  809. fail() {
  810. uni.showToast({
  811. title: '图片保存失败'
  812. });
  813. }
  814. });
  815. }
  816. });
  817. }
  818. });
  819. },
  820. getImageInfo(url) {
  821. return new Promise((resolve, reject) => {
  822. if (!url) {
  823. resolve();
  824. return false;
  825. }
  826. uni.getImageInfo({
  827. src: url,
  828. success: resolve,
  829. fail: reject
  830. });
  831. });
  832. },
  833. generate(url, success) {
  834. // 获取商品图片
  835. // const picPromise = this.getImageInfo(this.data.config.Distribution_Poster_Background)
  836. // const avatarPromise = this.getImageInfo(this.data.config.CONFIG_PROJECT_LOGO)
  837. // 获取小程序码图
  838. const codePromise = this.getImageInfo(url);
  839. let that = this;
  840. Promise.all([codePromise]).then(([code]) => {
  841. // 创建绘图上下文
  842. const ctx = uni.createCanvasContext('invite', this); // 绘制背景,填充满整个canvas画布
  843. let width = 295,
  844. height = 428; //默认背景
  845. ctx.setFillStyle('#f6f6f6');
  846. ctx.fillRect(0, 0, width, height); //白色背景
  847. ctx.save();
  848. that.roundRect(ctx, 0, 0, 428, 500, 10);
  849. ctx.restore();
  850. ctx.fillStyle = '#333';
  851. ctx.font = '20px PingFang SC';
  852. ctx.fillText('我的提货码', 100, 65);
  853. if (code) {
  854. ctx.drawImage(code.path, 62, 140, 165, 165);
  855. }
  856. ctx.save();
  857. ctx.fillStyle = '#FE0419';
  858. ctx.font = '18px PingFang SC';
  859. ctx.fillText(that.query.code, 130, 100); //logo
  860. // ctx.save();
  861. // ctx.beginPath()
  862. // ctx.arc(35, 35, 20, 0, 2 * Math.PI, true) //画一个圆形裁剪区域
  863. // ctx.clip() //裁剪
  864. // ctx.drawImage(avatar.path, 15, 15, 40, 40) //绘制图片
  865. // 完成作画
  866. ctx.draw(false, function() {
  867. uni.canvasToTempFilePath(
  868. {
  869. canvasId: 'invite',
  870. success: function(res) {
  871. success.call(this, res.tempFilePath);
  872. },
  873. fail: function(res) {
  874. // console.log(res);
  875. }
  876. },
  877. that
  878. );
  879. });
  880. });
  881. },
  882. /**
  883. *
  884. * @param {CanvasContext} ctx canvas上下文
  885. * @param {number} x 圆角矩形选区的左上角 x坐标
  886. * @param {number} y 圆角矩形选区的左上角 y坐标
  887. * @param {number} w 圆角矩形选区的宽度
  888. * @param {number} h 圆角矩形选区的高度
  889. * @param {number} r 圆角的半径
  890. */
  891. roundRect: function(ctx, x, y, w, h, r) {
  892. // 开始绘制
  893. ctx.beginPath(); // 因为边缘描边存在锯齿,最好指定使用 transparent 填充
  894. // 这里是使用 fill 还是 stroke都可以,二选一即可
  895. ctx.setFillStyle('white'); // ctx.setStrokeStyle('transparent')
  896. // 左上角
  897. ctx.arc(x + r, y + r, r, Math.PI, Math.PI * 1.5); // border-top
  898. ctx.moveTo(x + r, y);
  899. ctx.lineTo(x + w - r, y);
  900. ctx.lineTo(x + w, y + r); // 右上角
  901. ctx.arc(x + w - r, y + r, r, Math.PI * 1.5, Math.PI * 2); // border-right
  902. ctx.lineTo(x + w, y + h - r);
  903. ctx.lineTo(x + w - r, y + h); // 右下角
  904. ctx.arc(x + w - r, y + h - r, r, 0, Math.PI * 0.5); // border-bottom
  905. ctx.lineTo(x + r, y + h);
  906. ctx.lineTo(x, y + h - r); // 左下角
  907. ctx.arc(x + r, y + h - r, r, Math.PI * 0.5, Math.PI); // border-left
  908. ctx.lineTo(x, y + r);
  909. ctx.lineTo(x + r, y); // 这里是使用 fill 还是 stroke都可以,二选一即可,但是需要与上面对应
  910. ctx.fill(); // ctx.stroke()
  911. ctx.closePath(); // 剪切
  912. ctx.clip();
  913. },
  914. showCode() {
  915. this.setData({
  916. isShow: true
  917. });
  918. },
  919. callPhone: function() {
  920. uni.makePhoneCall({
  921. phoneNumber: this.merchantPhone
  922. });
  923. },
  924. payOrder: async function() {
  925. let that = this;
  926. if (!this.id) return false;
  927. let mode = that.mode;
  928. if (that.mode == 2 && that.orderType == 5) {
  929. mode = 3;
  930. }
  931. if (that.isOtc == 1) {
  932. await requsetmessage.recipel(mode).then(res => {});
  933. } else if (mode == 1) {
  934. await requsetmessage.selfRaising().then(res => {
  935. // console.log("自提", res);
  936. });
  937. } else if (mode == 2) {
  938. await requsetmessage.distribution().then(res => {
  939. // console.log("配送", res);
  940. });
  941. } else {
  942. await requsetmessage.jisda().then(res => {
  943. // console.log("及时达", res);
  944. });
  945. }
  946. req.payOrder(this.id, success => {
  947. if (success) {
  948. //支付成功
  949. if (this.isOtc == 1) {
  950. app.globalData.redirectTab('product/pay/pay?isSuccess=true&orderId=' + this.id + '&isRx=1');
  951. } else {
  952. app.globalData.redirectTab('product/pay/pay?isSuccess=true');
  953. }
  954. // let d = {};
  955. // d.state = 3;
  956. // that.setData(d);
  957. } else {
  958. req.msg('支付失败');
  959. }
  960. });
  961. },
  962. txOrder() {
  963. req.postRequest(
  964. '/api/order/reminderOrder',
  965. {
  966. orderId: this.id
  967. },
  968. () => {
  969. req.msg('发货提醒成功');
  970. }
  971. );
  972. },
  973. cancelOrder() {
  974. let that = this;
  975. req.msgConfirm('确定取消该订单?', () => {
  976. req.postRequest(
  977. '/api/order/cancel',
  978. {
  979. id: this.id
  980. },
  981. () => {
  982. let d = {};
  983. d.state = 8;
  984. that.setData(d);
  985. }
  986. );
  987. });
  988. },
  989. confirmOrder(event) {
  990. //确认收货
  991. // let index = event.currentTarget.dataset.index;
  992. // let page = this.data.pageList[index];
  993. let id = event.currentTarget.dataset.id;
  994. let that = this;
  995. req.msgConfirm('确认执行该操作?', () => {
  996. req.postRequest(
  997. '/api/order/receiving',
  998. {
  999. id: id
  1000. },
  1001. () => {
  1002. let d = {};
  1003. d['stateName'] = '订单完成';
  1004. d['state'] = 7;
  1005. that.setData(d);
  1006. uni.navigateBack();
  1007. }
  1008. );
  1009. });
  1010. },
  1011. deleteOrder() {
  1012. let that = this;
  1013. req.msgConfirm('确定删除该订单?', () => {
  1014. req.postRequest(
  1015. '/api/order/delete',
  1016. {
  1017. id: this.id
  1018. },
  1019. () => {
  1020. let pages = getCurrentPages();
  1021. var prevPage = pages[pages.length - 2];
  1022. let pageList = prevPage.data.pageList;
  1023. pageList.splice(pageList.findIndex(it => it.id == that.id), 1);
  1024. prevPage.$vm.setData({
  1025. pageList: pageList
  1026. });
  1027. uni.navigateBack();
  1028. }
  1029. );
  1030. });
  1031. },
  1032. toDetail(e) {
  1033. let id = e.currentTarget.dataset.id;
  1034. app.globalData.openPage('product/detail/detail?id=' + id);
  1035. },
  1036. refundmod(event) {
  1037. //申请退款
  1038. uni.navigateTo({
  1039. url: '/mine/refund/refundType/refundType?id=' + this.id
  1040. });
  1041. },
  1042. refundmods() {
  1043. this.popShow = true;
  1044. },
  1045. cancel() {
  1046. this.popShow = false;
  1047. },
  1048. // 退款详情
  1049. gorefundDetOld() {
  1050. uni.navigateTo({
  1051. url: '/mine/refund/refundDetails/refundDetails?id=' + this.orderRefund.id + '&isrefund=' + this.orderRefund.refundType
  1052. });
  1053. },
  1054. gorefundDet(its) {
  1055. // console.log('进入退款详情>>>>>', its);
  1056. uni.navigateTo({
  1057. url: '/mine/refund/refundDetails/refundDetails?id=' + its.id + '&isrefund=' + its.refundType
  1058. });
  1059. },
  1060. getrefundDet(id) {
  1061. req.getRequest(
  1062. '/api/orderRefund/queryRefund',
  1063. {
  1064. orderId: id
  1065. },
  1066. data => {
  1067. this.setData({
  1068. orderRefund: data
  1069. });
  1070. }
  1071. );
  1072. },
  1073. //电话骑士
  1074. callDeliver() {
  1075. uni.makePhoneCall({
  1076. phoneNumber: this.deliveryUserPhone
  1077. });
  1078. },
  1079. copy() {
  1080. let that = this;
  1081. let id = this.id;
  1082. uni.setClipboardData({
  1083. data: id,
  1084. complete() {
  1085. req.msg('复制成功');
  1086. }
  1087. });
  1088. },
  1089. // 申请开票
  1090. applyInvoice() {
  1091. uni.navigateTo({
  1092. url: '/invoice/apply/apply?orderId=' + this.id + '&money=' + this.money
  1093. });
  1094. },
  1095. toInvoice() {
  1096. uni.navigateTo({
  1097. url: '/mine/invoice/invoice'
  1098. });
  1099. }
  1100. }
  1101. };
  1102. </script>
  1103. <style>
  1104. @import './orderDet.css';
  1105. </style>