orderDet.vue 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183
  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 ' + (state == 7 || 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. <block v-else>
  441. <block v-if="state == 7">
  442. <view class="sta-btn bot-view" @tap="isRefundStock == 1 ? refundmod() : refundmods()" v-if="config.is_show_applyRefund != 1">申请售后</view>
  443. </block>
  444. <view v-else class="sta-btn bot-view" @tap="isRefundStock == 1 ? refundmod() : refundmods()">申请售后</view>
  445. </block>
  446. </block>
  447. </block>
  448. <view @tap="payOrder" v-if="state == 1" class="confirm bot-view">立即付款</view>
  449. <view class="confirm bot-view" @tap="confirmOrder" :data-index="index" v-if="state == 5 || state == 6" :data-id="id">确认收货</view>
  450. <navigator
  451. :url="'/activity/group/ptDetail/ptDetail?id=' + groupId + '&merchantId=' + merchantId"
  452. v-if="orderType == 4 && state != 8 && groupId && state > 1"
  453. class="confirm bot-view"
  454. >
  455. 我的拼团
  456. </navigator>
  457. <navigator
  458. v-if="state > 5 && (state != 20 && state != 22 && state != 27)"
  459. open-type="reLaunch"
  460. hover-class="none"
  461. :url="header.appId == 'ZQ1VK5oc17I387E' ? '/pages/timelyDelivery/index' : '/pages/index/index'"
  462. class="confirm bot-view"
  463. >
  464. 继续购物
  465. </navigator>
  466. <navigator v-if="state == 22 || state == 20 || state == 27" hover-class="none" :url="'/prescription/Consultation/index?orderId=' + id" class="confirm bot-view">
  467. 重新开方
  468. </navigator>
  469. <contact-button button-text="联系客服" class-name="confirm bot-view" v-if="state == 3 || state == 25 || state == 26"></contact-button>
  470. <!-- <navigator url="/pages/shop/shop"wx:if="{{state > 5 }}" open-type="reLaunch" hover-class="none" class="confirm">继续购物</navigator> -->
  471. </view>
  472. <!-- 自提取货码 -->
  473. <block v-if="isShow">
  474. <view class="mask" @tap="eliminate"></view>
  475. <view class="qhpop">
  476. <view class="close"><image src="/static/pages/images/close.png" @tap="eliminate"></image></view>
  477. <view class="thma">
  478. 我的提货码
  479. <text>{{ code }}</text>
  480. </view>
  481. <view class="qrcode">
  482. <!-- <canvas class='canvas' canvas-id='canvas' bindlongtap='save' style="width:150px;height:150px"></canvas> -->
  483. <image :src="codeUrl"></image>
  484. </view>
  485. <view class="save" @tap="saveImage">保存到相册</view>
  486. </view>
  487. </block>
  488. <canvas canvas-id="invite" class="canvas" style="width:295px;height:428px;"></canvas>
  489. <!-- 申请售后弹窗 -->
  490. <view class="ceng" v-if="popShow" @click="cancel()"></view>
  491. <view class="popup" v-if="popShow">
  492. <view class="pop-tit">提示</view>
  493. <view class="pop-tip">当前{{ stateName }},如有售后问题,请咨询客服</view>
  494. <view class="pop-btn dflex">
  495. <view class="pop-cancel fflex" @click="cancel()">取消</view>
  496. <view class="fflex"><contact-button class-name="pop-contact fflex" button-text="咨询客服"></contact-button></view>
  497. </view>
  498. </view>
  499. </view>
  500. </template>
  501. <script>
  502. // pages/orderDet/orderDet.js
  503. const app = getApp(); // const QRCode = require('../../utils/weapp.qrcode.js')
  504. // const QRCode = require('../../utils/weapp.qrcode.js')
  505. const req = require('../../utils/request.js');
  506. const requsetmessage = require('../../utils/requestmessage.js');
  507. // state : 1 未付款 2 待确认 3 待发货 4 待提货 5 配送中 6 已签收 7 订单完成
  508. // 8 订单取消 9 退货中 10 完成退货 11 支付失败 15 进行中
  509. // 售后状态
  510. // 30 售后待审核 32 售后审核失败 35 商品待退回 36 商品退回中
  511. // 39 退款申请 40 退款待支付 41 退款中 42 退款失败
  512. // 43 退款成功
  513. // 处方订单
  514. // 20 未开方 21 开方中 22 开方失败 25 待审方
  515. // 26 审方中 27 审方失败,
  516. // 49 用户取消售后
  517. export default {
  518. data() {
  519. return {
  520. bottomBlankHeight: app.globalData.isIPhoneX ? 68 : 0,
  521. deliverListss: '',
  522. isShow: false,
  523. isrefund: '',
  524. id: '',
  525. config: '',
  526. show: false,
  527. codeUrl: '',
  528. deliverExtend: 0,
  529. url: '',
  530. imgUrl: '',
  531. pageList: '',
  532. orderRefund: '',
  533. header: req.header,
  534. orderRefundList: [],
  535. reimburse: false,
  536. canRefund: true,
  537. state: '',
  538. popShow: false
  539. };
  540. },
  541. components: {},
  542. props: {},
  543. onLoad: async function(options) {
  544. this.query = options;
  545. let id = options.id;
  546. this.setData({
  547. isrefund: options.isrefund
  548. }); // req.getRequest('/api/order/detail', {
  549. // id: id
  550. // }, data => {
  551. // that.setData(data);
  552. // if (data.state >= 30 && data.state <= 43) {
  553. // this.getrefundDet(id)
  554. // }
  555. // })
  556. this.setData({
  557. id: id
  558. });
  559. // console.log(options.code);
  560. await this.getConfig();
  561. },
  562. async onShow() {
  563. let that = this;
  564. await req.getRequest(
  565. '/api/order/detail',
  566. {
  567. id: this.id
  568. },
  569. data => {
  570. this.deliverListss = data.deliverList;
  571. // console.log('获取到的退款单11111>>>>>',data.orderRefundList);
  572. // console.log('获取到的退款单>>>>>',this.deliverListss);
  573. data.refund = data.products.filter(it => it.quantity - (it.refundStock ? it.refundStock : 0) > 0).length;
  574. // console.log(data)
  575. that.setData(data);
  576. that.state = data.state;
  577. if (!data.orderRefundList) {
  578. this.orderRefundList = [];
  579. this.reimburse = true;
  580. } else if (data.orderRefundList.length < 1) {
  581. this.orderRefundList = [];
  582. this.reimburse = true;
  583. } else {
  584. // this.getrefundDet(data.orderRefundList[0].id);
  585. this.orderRefund = data.orderRefundList[0];
  586. let orderRefundList = data.orderRefundList;
  587. this.orderRefundList = orderRefundList;
  588. if (orderRefundList[0].refundState == 43 || orderRefundList[0].refundState == 32) {
  589. this.reimburse = true;
  590. } else {
  591. this.reimburse = false;
  592. }
  593. }
  594. // if (data.state >= 30 && data.state <= 43) {
  595. // this.getrefundDet(this.id);
  596. // }
  597. if (data.mode == 1 && data.state >= 3 && data.state <= 7) {
  598. this.getCodeUrl();
  599. this.generatePoster();
  600. }
  601. if (data.mode != 1 && data.state >= 5 && data.state <= 7) {
  602. this.deliverExtendFun();
  603. }
  604. }
  605. );
  606. },
  607. methods: {
  608. goUrl(e) {
  609. // var dataset = e.currentTarget.dataset;
  610. let url = e.currentTarget.dataset.url;
  611. if (this.deliverState == '完成') {
  612. url = url + '&isReceived=true';
  613. }
  614. uni.navigateTo({
  615. url: url
  616. });
  617. },
  618. eliminate() {
  619. this.setData({
  620. isShow: false
  621. });
  622. },
  623. refundHintText(orderRefundItem) {
  624. var text = '';
  625. if (
  626. (orderRefundItem.refundState == 39 && (orderRefundItem.refundType == 1||orderRefundItem.refundType==3)) ||
  627. (orderRefundItem.refundState == 40 && (orderRefundItem.refundType == 1||orderRefundItem.refundType==3)) ||
  628. orderRefundItem.refundState == 30 ||
  629. orderRefundItem.refundState == 31
  630. ) {
  631. text = '您已提交退款申请,等待审核中';
  632. }
  633. if (
  634. ((orderRefundItem.refundState == 41 || orderRefundItem.refundState == 40) && (orderRefundItem.refundType == 1||orderRefundItem.refundType==3)) ||
  635. (orderRefundItem.refundState == 35 && orderRefundItem.refundType == 2 && orderRefundItem.refundMethod != 2)
  636. ) {
  637. if (orderRefundItem.refundMethod == null && orderRefundItem.refundState == 35) {
  638. text = '您提交的退款申请审核完成,请选择退货方式';
  639. } else {
  640. text =
  641. '您提交的退款申请审核完成' +
  642. ((orderRefundItem.refundState == 41 || orderRefundItem.refundState == 40) && (orderRefundItem.refundType == 1||orderRefundItem.refundType==3) ? ',等待卖家退款中' : ',请填写物流信息');
  643. }
  644. }
  645. if (orderRefundItem.refundState == 36 && orderRefundItem.refundType == 2 && orderRefundItem.refundMethod == 2) {
  646. text = '您提交的退款申请审核完成,请您把商品送回门店';
  647. } else if (orderRefundItem.refundType == 1||orderRefundItem.refundType==3) {
  648. if (orderRefundItem.refundState == 32) {
  649. text = '您提交的退款申请,审核失败,请联系商家' + (!orderRefundItem.refundFalseRes ? '' : ';原因:') + orderRefundItem.refundFalseRes;
  650. }
  651. } else if (orderRefundItem.refundType == 2) {
  652. if (orderRefundItem.refundState == 32) {
  653. text = '您提交的退货申请,审核失败,请联系商家' + (!orderRefundItem.refundFalseRes ? '' : ';失败原因:') + orderRefundItem.refundFalseRes;
  654. } else if (orderRefundItem.refundState == 36 && (orderRefundItem.refundMethod == 1 || orderRefundItem.refundMethod == 3)) {
  655. text = '商品已寄回,等待卖家确认收货';
  656. } else if (orderRefundItem.refundState == 40 || orderRefundItem.refundState == 39 || orderRefundItem.refundState == 41) {
  657. text = '您寄回的商品卖家已接收,等待卖家退款中';
  658. }
  659. }
  660. if (orderRefundItem.refundState >= 42) {
  661. if (orderRefundItem.refundState == 43) {
  662. text = '退款完成';
  663. } else {
  664. if (orderRefundItem.refundState == 49) {
  665. text = '已取消售后';
  666. } else {
  667. text = '退款失败';
  668. }
  669. }
  670. }
  671. return text;
  672. },
  673. getConfig() {
  674. var _this = this;
  675. return new Promise((resolve, reject) => {
  676. req.g(
  677. '/api/config',
  678. res => {
  679. // console.log('配置数据====' + JSON.stringify(res));
  680. _this.setData({
  681. config: res
  682. });
  683. resolve();
  684. },
  685. true
  686. );
  687. });
  688. },
  689. getCodeUrl() {
  690. let that = this; //获取小程序码
  691. const params = {
  692. // page: 'pages/index/index',
  693. page: 'pages/web/web',
  694. scene: this.query.code
  695. }; // return new Promise((resolve, reject) => {
  696. req.getRequest('/api/program/codev', params, url => {
  697. // console.log(url);
  698. that.setData({
  699. show: true,
  700. codeUrl: url
  701. });
  702. that.generatePoster(url); // resolve();
  703. // })
  704. });
  705. },
  706. // 获取分单发货的
  707. deliverExtendFun() {
  708. req.postRequest(
  709. '/api/order/deliverExtend',
  710. {
  711. id: this.query.id
  712. },
  713. res => {
  714. let url;
  715. if (res && res.length >= 2) {
  716. url = '/mine/deliverExtend/deliverExtend?orderId=' + this.id;
  717. this.setData({
  718. deliverExtend: 2,
  719. url: url
  720. });
  721. } else {
  722. url = '/mine/logistics/logistics?id=' + this.deliverId + '&orderId=' + this.id;
  723. this.setData({
  724. deliverExtend: 1,
  725. url: url
  726. });
  727. }
  728. }
  729. );
  730. },
  731. //检验是否为老的订单退款数据
  732. isOldOrder() {
  733. if (this.orderRefundList.length > 0) {
  734. var rRefundList = [];
  735. if (this.deliverList && this.deliverList.length > 0) {
  736. for (var i = 0; i < this.deliverList.length; i++) {
  737. var extendDTOList = this.deliverList[i].extendDTOList;
  738. for (var k = 0; k < extendDTOList.length; k++) {
  739. rRefundList = rRefundList.concat(extendDTOList[k].refundOrderList);
  740. }
  741. }
  742. }
  743. if (this.orderRefundList[0].refundState == 49) {
  744. //售后取消
  745. return false;
  746. } else {
  747. return rRefundList.length <= 0;
  748. }
  749. }
  750. return false;
  751. },
  752. deliverLog(items) {
  753. if (items.mode != 1 && (items.state == 2 || items.state == 3)) {
  754. uni.navigateTo({
  755. url: '/mine/logistics/logistics?id=' + items.id + '&orderId=' + items.orderId
  756. });
  757. }
  758. },
  759. generatePoster(url) {
  760. let that = this;
  761. that.generate(url, imgUrl => {
  762. that.setData({
  763. imgUrl: imgUrl
  764. });
  765. });
  766. },
  767. isAuth(fun) {
  768. if (!uni.saveImageToPhotosAlbum) {
  769. uni.showModal({
  770. title: '提示',
  771. content: '当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。'
  772. });
  773. return;
  774. } //可以通过 wx.getSetting 先查询一下用户是否授权了 "scope.writePhotosAlbum" 这个 scope
  775. // #ifndef H5
  776. uni.getSetting({
  777. success(res) {
  778. // console.log(res);
  779. if (!res.authSetting['scope.writePhotosAlbum']) {
  780. // 接口调用询问
  781. uni.authorize({
  782. scope: 'scope.writePhotosAlbum',
  783. success() {
  784. // console.log("2-授权《保存图片》权限成功");
  785. fun(true);
  786. },
  787. fail() {
  788. fun(false);
  789. }
  790. });
  791. } else {
  792. // 拒绝授权
  793. fun(true);
  794. }
  795. },
  796. fail(res) {
  797. fun(false);
  798. }
  799. });
  800. // #endif
  801. },
  802. saveImage() {
  803. let that = this;
  804. that.isAuth(success => {
  805. if (success) {
  806. // console.log("图片地址=====" + that.imgUrl);
  807. uni.saveImageToPhotosAlbum({
  808. filePath: that.imgUrl,
  809. success(res) {
  810. uni.showToast({
  811. title: '图片保存成功',
  812. icon: 'none',
  813. success() {},
  814. fail() {
  815. uni.showToast({
  816. title: '图片保存失败'
  817. });
  818. }
  819. });
  820. }
  821. });
  822. }
  823. });
  824. },
  825. getImageInfo(url) {
  826. return new Promise((resolve, reject) => {
  827. if (!url) {
  828. resolve();
  829. return false;
  830. }
  831. uni.getImageInfo({
  832. src: url,
  833. success: resolve,
  834. fail: reject
  835. });
  836. });
  837. },
  838. generate(url, success) {
  839. // 获取商品图片
  840. // const picPromise = this.getImageInfo(this.data.config.Distribution_Poster_Background)
  841. // const avatarPromise = this.getImageInfo(this.data.config.CONFIG_PROJECT_LOGO)
  842. // 获取小程序码图
  843. const codePromise = this.getImageInfo(url);
  844. let that = this;
  845. Promise.all([codePromise]).then(([code]) => {
  846. // 创建绘图上下文
  847. const ctx = uni.createCanvasContext('invite', this); // 绘制背景,填充满整个canvas画布
  848. let width = 295,
  849. height = 428; //默认背景
  850. ctx.setFillStyle('#f6f6f6');
  851. ctx.fillRect(0, 0, width, height); //白色背景
  852. ctx.save();
  853. that.roundRect(ctx, 0, 0, 428, 500, 10);
  854. ctx.restore();
  855. ctx.fillStyle = '#333';
  856. ctx.font = '20px PingFang SC';
  857. ctx.fillText('我的提货码', 100, 65);
  858. if (code) {
  859. ctx.drawImage(code.path, 62, 140, 165, 165);
  860. }
  861. ctx.save();
  862. ctx.fillStyle = '#FE0419';
  863. ctx.font = '18px PingFang SC';
  864. ctx.fillText(that.query.code, 130, 100); //logo
  865. // ctx.save();
  866. // ctx.beginPath()
  867. // ctx.arc(35, 35, 20, 0, 2 * Math.PI, true) //画一个圆形裁剪区域
  868. // ctx.clip() //裁剪
  869. // ctx.drawImage(avatar.path, 15, 15, 40, 40) //绘制图片
  870. // 完成作画
  871. ctx.draw(false, function() {
  872. uni.canvasToTempFilePath(
  873. {
  874. canvasId: 'invite',
  875. success: function(res) {
  876. success.call(this, res.tempFilePath);
  877. },
  878. fail: function(res) {
  879. // console.log(res);
  880. }
  881. },
  882. that
  883. );
  884. });
  885. });
  886. },
  887. /**
  888. *
  889. * @param {CanvasContext} ctx canvas上下文
  890. * @param {number} x 圆角矩形选区的左上角 x坐标
  891. * @param {number} y 圆角矩形选区的左上角 y坐标
  892. * @param {number} w 圆角矩形选区的宽度
  893. * @param {number} h 圆角矩形选区的高度
  894. * @param {number} r 圆角的半径
  895. */
  896. roundRect: function(ctx, x, y, w, h, r) {
  897. // 开始绘制
  898. ctx.beginPath(); // 因为边缘描边存在锯齿,最好指定使用 transparent 填充
  899. // 这里是使用 fill 还是 stroke都可以,二选一即可
  900. ctx.setFillStyle('white'); // ctx.setStrokeStyle('transparent')
  901. // 左上角
  902. ctx.arc(x + r, y + r, r, Math.PI, Math.PI * 1.5); // border-top
  903. ctx.moveTo(x + r, y);
  904. ctx.lineTo(x + w - r, y);
  905. ctx.lineTo(x + w, y + r); // 右上角
  906. ctx.arc(x + w - r, y + r, r, Math.PI * 1.5, Math.PI * 2); // border-right
  907. ctx.lineTo(x + w, y + h - r);
  908. ctx.lineTo(x + w - r, y + h); // 右下角
  909. ctx.arc(x + w - r, y + h - r, r, 0, Math.PI * 0.5); // border-bottom
  910. ctx.lineTo(x + r, y + h);
  911. ctx.lineTo(x, y + h - r); // 左下角
  912. ctx.arc(x + r, y + h - r, r, Math.PI * 0.5, Math.PI); // border-left
  913. ctx.lineTo(x, y + r);
  914. ctx.lineTo(x + r, y); // 这里是使用 fill 还是 stroke都可以,二选一即可,但是需要与上面对应
  915. ctx.fill(); // ctx.stroke()
  916. ctx.closePath(); // 剪切
  917. ctx.clip();
  918. },
  919. showCode() {
  920. this.setData({
  921. isShow: true
  922. });
  923. },
  924. callPhone: function() {
  925. uni.makePhoneCall({
  926. phoneNumber: this.merchantPhone
  927. });
  928. },
  929. payOrder: async function() {
  930. let that = this;
  931. if (!this.id) return false;
  932. let mode = that.mode;
  933. if (that.mode == 2 && that.orderType == 5) {
  934. mode = 3;
  935. }
  936. if (that.isOtc == 1) {
  937. await requsetmessage.recipel(mode).then(res => {});
  938. } else if (mode == 1) {
  939. await requsetmessage.selfRaising().then(res => {
  940. // console.log("自提", res);
  941. });
  942. } else if (mode == 2) {
  943. await requsetmessage.distribution().then(res => {
  944. // console.log("配送", res);
  945. });
  946. } else {
  947. await requsetmessage.jisda().then(res => {
  948. // console.log("及时达", res);
  949. });
  950. }
  951. req.payOrder(this.id, success => {
  952. if (success) {
  953. //支付成功
  954. if (this.isOtc == 1) {
  955. app.globalData.redirectTab('product/pay/pay?isSuccess=true&orderId=' + this.id + '&isRx=1');
  956. } else {
  957. app.globalData.redirectTab('product/pay/pay?isSuccess=true');
  958. }
  959. // let d = {};
  960. // d.state = 3;
  961. // that.setData(d);
  962. } else {
  963. req.msg('支付失败');
  964. }
  965. });
  966. },
  967. txOrder() {
  968. req.postRequest(
  969. '/api/order/reminderOrder',
  970. {
  971. orderId: this.id
  972. },
  973. () => {
  974. req.msg('发货提醒成功');
  975. }
  976. );
  977. },
  978. cancelOrder() {
  979. let that = this;
  980. req.msgConfirm('确定取消该订单?', () => {
  981. req.postRequest(
  982. '/api/order/cancel',
  983. {
  984. id: this.id
  985. },
  986. () => {
  987. let d = {};
  988. d.state = 8;
  989. that.setData(d);
  990. }
  991. );
  992. });
  993. },
  994. confirmOrder(event) {
  995. //确认收货
  996. // let index = event.currentTarget.dataset.index;
  997. // let page = this.data.pageList[index];
  998. let id = event.currentTarget.dataset.id;
  999. let that = this;
  1000. req.msgConfirm('确认执行该操作?', () => {
  1001. req.postRequest(
  1002. '/api/order/receiving',
  1003. {
  1004. id: id
  1005. },
  1006. () => {
  1007. let d = {};
  1008. d['stateName'] = '订单完成';
  1009. d['state'] = 7;
  1010. that.setData(d);
  1011. uni.navigateBack();
  1012. }
  1013. );
  1014. });
  1015. },
  1016. deleteOrder() {
  1017. let that = this;
  1018. req.msgConfirm('确定删除该订单?', () => {
  1019. req.postRequest(
  1020. '/api/order/delete',
  1021. {
  1022. id: this.id
  1023. },
  1024. () => {
  1025. let pages = getCurrentPages();
  1026. var prevPage = pages[pages.length - 2];
  1027. let pageList = prevPage.data.pageList;
  1028. pageList.splice(pageList.findIndex(it => it.id == that.id), 1);
  1029. prevPage.$vm.setData({
  1030. pageList: pageList
  1031. });
  1032. uni.navigateBack();
  1033. }
  1034. );
  1035. });
  1036. },
  1037. toDetail(e) {
  1038. let id = e.currentTarget.dataset.id;
  1039. app.globalData.openPage('product/detail/detail?id=' + id);
  1040. },
  1041. refundmod(event) {
  1042. //申请退款
  1043. uni.navigateTo({
  1044. url: '/mine/refund/refundType/refundType?id=' + this.id
  1045. });
  1046. },
  1047. refundmods() {
  1048. this.popShow = true;
  1049. },
  1050. cancel() {
  1051. this.popShow = false;
  1052. },
  1053. // 退款详情
  1054. gorefundDetOld() {
  1055. uni.navigateTo({
  1056. url: '/mine/refund/refundDetails/refundDetails?id=' + this.orderRefund.id + '&isrefund=' + this.orderRefund.refundType
  1057. });
  1058. },
  1059. gorefundDet(its) {
  1060. // console.log('进入退款详情>>>>>', its);
  1061. uni.navigateTo({
  1062. url: '/mine/refund/refundDetails/refundDetails?id=' + its.id + '&isrefund=' + its.refundType
  1063. });
  1064. },
  1065. getrefundDet(id) {
  1066. req.getRequest(
  1067. '/api/orderRefund/queryRefund',
  1068. {
  1069. orderId: id
  1070. },
  1071. data => {
  1072. this.setData({
  1073. orderRefund: data
  1074. });
  1075. }
  1076. );
  1077. },
  1078. //电话骑士
  1079. callDeliver() {
  1080. uni.makePhoneCall({
  1081. phoneNumber: this.deliveryUserPhone
  1082. });
  1083. },
  1084. copy() {
  1085. let that = this;
  1086. let id = this.id;
  1087. uni.setClipboardData({
  1088. data: id,
  1089. complete() {
  1090. req.msg('复制成功');
  1091. }
  1092. });
  1093. },
  1094. // 申请开票
  1095. applyInvoice() {
  1096. uni.navigateTo({
  1097. url: '/invoice/apply/apply?orderId=' + this.id + '&money=' + this.money
  1098. });
  1099. },
  1100. toInvoice() {
  1101. uni.navigateTo({
  1102. url: '/mine/invoice/invoice'
  1103. });
  1104. }
  1105. }
  1106. };
  1107. </script>
  1108. <style>
  1109. @import './orderDet.css';
  1110. </style>