details.vue 69 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834
  1. <template>
  2. <div class="order-wrapper">
  3. <div class="order-details-wrap">
  4. <div class="order-details-top">
  5. <div class="orderNumber clearfix">
  6. <div class="pull-left">订单号:<span>{{orderList.orderid}}</span></div>
  7. <div class="pull-right">{{orderList.createtime || orderList.creattime | time}}</div>
  8. </div>
  9. <div class="orderStatus clearfix">
  10. <div class="clearfix">
  11. <span style="color: #666">订单状态:</span>
  12. <template v-if="vendorType === 'buyer'">
  13. <span v-if="orderList.status === 404">待收货</span>
  14. <span v-if="orderList.status === 404" style="color: #666">{{restTime()}}</span>
  15. <span v-else-if="orderList.status === 505 || orderList.status === 406 || orderList.status === 407 || orderList.status === 403 || orderList.status === 408">待卖家发货</span>
  16. <span v-else-if="orderList.status === 501 || orderList.status === 502 || orderList.status === 503 || orderList.status === 524">待付款</span>
  17. <span v-else-if="orderList.status === 602 || orderList.status === 603 || orderList.status === 315 || orderList.status === 604 || orderList.status === 605 || orderList.status === 606">已取消</span>
  18. <span v-else-if="orderList.status === 504">付款确认中</span>
  19. <span v-else-if="orderList.status === 520 || orderList.status === 405">交易已完成</span>
  20. <span v-else-if="orderList.status === 525">卖家请求取消</span>
  21. </template>
  22. <template v-else>
  23. <span v-if="orderList.status === 502 || orderList.status === 406">买家已付款</span>
  24. <span v-else-if="orderList.status === 602 || orderList.status === 603 || orderList.status === 315 || orderList.status === 604 || orderList.status === 605 || orderList.status === 606">订单已取消</span>
  25. <span v-else-if="orderList.status === 501 || orderList.status === 524 ">待买家付款</span>
  26. <span v-else-if="orderList.status === 404">请耐心等待买家确认收货</span>
  27. <span v-else-if="orderList.status === 405 || orderList.status === 514 || orderList.status === 503 || orderList.status === 506">待商城付款</span>
  28. <span v-else-if="orderList.status === 606">交易关闭</span>
  29. <span v-else-if="orderList.status === 520">交易完成</span>
  30. <span v-else-if="orderList.status === 525">卖家发起取消,待确认</span>
  31. <span v-else-if="orderList.status === 504">付款确认中</span>
  32. </template>
  33. </div>
  34. </div>
  35. </div>
  36. <ul class="order-list-wrap">
  37. <li class="clearfix">
  38. <div class="clearfix top-t-wrap">
  39. <div class="pull-left clearfix">
  40. <template v-if="vendorType !== 'buyer'">
  41. <div style="color: #666">买家:</div>
  42. <!--<span class="labelInfo_ForItem" v-if="item.storeid === '33069557578d44e69bd91ad12d28a8d4'">寄售</span>-->
  43. <div style="color: #333">{{orderList.buyentername || '(个人账户)'}}</div><div>&nbsp;|&nbsp;{{orderList.buyername}}</div>
  44. </template>
  45. </div>
  46. <div class="pull-right" v-if="vendorType !== 'buyer'">
  47. <div class="concat" @click="cancatAlert()">
  48. <i class="iconfont icon-kefu1"></i>联系买家
  49. </div>
  50. </div>
  51. <div class="pull-right" v-if="vendorType === 'buyer'">
  52. <div class="concat" @click="cancatAlert()">
  53. <i class="iconfont icon-kefu1"></i>联系卖家
  54. </div>
  55. </div>
  56. </div>
  57. <div class="list-wrap-content" @click="toproductdetails(details)" v-for="(details, index) in orderList.purchaseDetails" v-if="index < showItem">
  58. <div class="list-item clearfix">
  59. <div class="list-wrap-content-brand clearfix pull-left">
  60. <div class="name pull-left">品牌:</div>
  61. <div class="pull-left spec">{{details.brName || '-'}}</div>
  62. </div>
  63. <div class="pull-left list-wrap-content-brand clearfix">
  64. <div class="name pull-left">交期(天):</div>
  65. <div class="pull-left spec noMargin">{{details.b2cMinDelivery}}-{{details.b2cMaxDelivery}}</div>
  66. </div>
  67. </div>
  68. <div class="list-item clearfix">
  69. <div class="list-wrap-content-brand clearfix pull-left">
  70. <div class="name pull-left">物料名称(类目):</div>
  71. <div class="pull-left spec">{{details.kiName || '-'}}</div>
  72. </div>
  73. <div class="pull-left list-wrap-content-brand clearfix">
  74. <div class="name pull-left">单价:</div>
  75. <div class="pull-left spec noMargin">
  76. <span>¥</span>{{details.taxUnitprice || details.taxUnitPrice}}
  77. </div>
  78. </div>
  79. </div>
  80. <div class="list-item clearfix">
  81. <div class="list-wrap-content-brand clearfix pull-left">
  82. <div class="name pull-left">型号:</div>
  83. <div class="pull-left spec">{{details.cmpCode || '-'}}</div>
  84. </div>
  85. <div class="pull-left list-wrap-content-brand clearfix">
  86. <div class="name pull-left">数量:</div>
  87. <div class="pull-left spec noMargin"><span>x</span>{{details.number}}</div>
  88. </div>
  89. </div>
  90. <div class="list-item clearfix">
  91. <div class="list-wrap-content-brand clearfix pull-left">
  92. <div class="name pull-left">规格:</div>
  93. <div class="pull-left spec">{{details.spec || '-'}}</div>
  94. </div>
  95. <div class="pull-left pri clearfix">
  96. <div class="name pull-left">小计:</div>
  97. <span>¥</span>{{details.ensurePrice}}
  98. </div>
  99. </div>
  100. </div>
  101. </li>
  102. </ul>
  103. <div class="lookMorePro" @click="showItem = orderList.purchaseDetails.length" v-if="showItem === 3 && orderList.purchaseDetails && orderList.purchaseDetails.length > 3">查看剩余产品<img src="/images/mobile/user/icon-right.png"/></div>
  104. <!--<div class="clearfix top-w-wrap">-->
  105. <!--<div class="name pull-left">订单备注</div>-->
  106. <!--<div class="detailsinfo pull-left">{{orderList.purchaseRemark || '无'}}</div>-->
  107. <!--</div>-->
  108. <div class="order-details-priInfo">
  109. <div class="clearfix">
  110. <div class="justifyAlign">运费:</div>
  111. <span style="display: inline-block;min-width:2rem;text-align: left">
  112. <a class="red" style="color:#f43938;">¥{{orderList.fare | priceFiter}}</a>
  113. </span>
  114. </div>
  115. <div class="clearfix">
  116. <div class="justifyAlign">手续费:</div>
  117. <span style="display: inline-block;width:2rem;text-align: left">
  118. <a class="red" style="color:#f43938;">¥0.00</a>
  119. <!--<a class="del" style="text-decoration: line-through;color: #999;font-size: 0.24rem;">(¥{{parseFloat(orderList.ensurePrice * 0.0045).toFixed(2)}})</a>-->
  120. <span class="jianmian">减免</span>
  121. <img src="/images/order/remem_icon.png" style="min-width:0.2rem;height:0.2rem" />
  122. </span>
  123. </div>
  124. </div>
  125. <div class="list-all-info clearfix">
  126. <!--共<span>{{orderList.batchQty}}</span>件商品&nbsp;&nbsp;合计:-->
  127. <div style="font-size: 0.27rem;" class="justifyAlign">合计:</div>
  128. <span class="pri" style="min-width: 2rem;text-align: left"><a class="red" style="color:#f43938;font-size: 0.32rem;">¥</a>{{orderList.ensurePrice}}</span>
  129. <!--<span class="lab">(含运费:<a class="red">¥</a><a class="red">{{orderList.fare | priceFiter}}</a>)</span>-->
  130. <!--<div>手续费:<a class="red">¥0.00</a><span class="del">(¥{{parseFloat(orderList.ensurePrice * 0.0045).toFixed(2)}})</span></div>-->
  131. </div>
  132. <div class="order-details-info">
  133. <!--<div class="clearfix">-->
  134. <!--<div class="name pull-left">配送方式</div>-->
  135. <!--<div class="pull-right" :style="!orderList.rule.ruleName ? {lineHeight: '0.88rem'} : ''">-->
  136. <!--<div :style="orderList.rule.ruleName ? {margin: '0.13rem 0 0.06rem 0'} : ''">{{orderList.sendType === 1301 ? '第三方配送' : (orderList.sendType === 1302 ? '卖家配送': '上门自提')}}</div>-->
  137. <!--<div class="smallfont">{{orderList.rule.ruleName ? orderList.rule.ruleName : ''}}</div>-->
  138. <!--</div>-->
  139. <!--</div>-->
  140. <div class="clearfix">
  141. <div class="name pull-left">收货地址</div>
  142. <div class="pull-right" style="text-align: left">
  143. <div class="name" style="margin: 0.22rem 0 0 0">{{orderList.area.area}} &nbsp;&nbsp;{{orderList.area.detailAddress}}</div>
  144. </div>
  145. <div style="clear:both"></div>
  146. <div style="padding-bottom: 0.1rem;" class="smallfont">
  147. <span class="tel" style="width: 50%;display: inline-block">收货人:<a style="color: #333">{{orderList.area.name}}</a></span>
  148. <span class="tel" style="width: 50%;display: inline-block">电话:<a style="color: #333">{{orderList.area.tel}}</a></span>
  149. </div>
  150. </div>
  151. <div class="clearfix">
  152. <div class="name pull-left">发票信息</div>
  153. <template v-if="orderList.invoicetype === 1205 || orderList.invoicetype === 1206">
  154. <div class="pull-right clearfix" @click="showinvoiceType = !showinvoiceType" style="line-height: 0.88rem;padding: 0;border-bottom: 0;max-width: 6rem;">
  155. <div class="overHiddenText" style="float:left">{{orderList.invoicetitle}}</div>
  156. <div class="smallfont" style="font-size: 0.24rem;float: left">
  157. ({{orderList.invoicetype === 1205 ? '增值税(专用)发票': '增值税普通发票'}})
  158. </div>
  159. <img src="/images/mobile/user/icon-right.png" :class="showinvoiceType ? 'dropList' : '' " style="float: left"/>
  160. </div>
  161. </template>
  162. <template v-else>
  163. <div class="pull-right clearfix" style="line-height: 0.88rem;padding: 0;border-bottom: 0;">
  164. 暂不开票
  165. </div>
  166. </template>
  167. </div>
  168. <div class="clearfix">
  169. <div class="name pull-left">支付方式</div>
  170. <div class="pull-right" style="line-height: 0.88rem">
  171. <!--{{orderList.paytype}}-->
  172. {{orderList.paytype === '1103' ? '线下付款' : '线下付款'}}
  173. </div>
  174. </div>
  175. <div class="clearfix">
  176. <template v-if="logisticsInfo.length === 0">
  177. <div class="name pull-left">物流信息</div>
  178. <div class="pull-right" style="line-height: 0.88rem">暂无信息</div>
  179. </template>
  180. <template v-else>
  181. <div class="name" style="line-height: 0.88rem;">物流信息</div>
  182. <ul class="logistics_ul" v-if="logisticsInfo.length > 0" style="width: 100%">
  183. <li class="clearfix" v-for="(item, index) in logisticsInfo">
  184. <div class="pull-left" :class="index > 0 ? '' : 'marginL'">
  185. <div class="logistics_icon" :class="index > 0 ? '' : 'active'">
  186. <div class="red" v-if="index === 0"></div>
  187. </div>
  188. </div>
  189. <div class="pull-right" :class="index > 0 ? '' : 'marginT'">
  190. <div class="logistics_time">{{item.AcceptTime}}</div>
  191. <div class="logistics_info">{{item.AcceptStation}}</div>
  192. </div>
  193. </li>
  194. </ul>
  195. </template>
  196. </div>
  197. </div>
  198. <div class="order-details-moreinfo clearfix">
  199. <div class="clearfix moreinfoList">
  200. <div class="pull-left">
  201. <div class="">创建时间:
  202. {{orderList.createtime || orderList.creattime | time2}}</div>
  203. <div class="" v-if="vendorType === 'buyer'">付款时间:
  204. <template v-if="getOverTiem(505) > 0">{{getOverTiem(505) | time2 }}</template>
  205. <template v-else>暂未付款</template>
  206. </div>
  207. <div class="" v-else>付款时间:
  208. <template v-if="getOverTiem(502) > 0 && vendorType !== 'buyer'">
  209. {{getOverTiem(502) | time2 }}
  210. </template>
  211. <template v-else-if="getOverTiem(505) > 0 && vendorType === 'buyer'">
  212. {{getOverTiem(505) | time2 }}
  213. </template>
  214. <template v-else>暂未付款</template>
  215. </div>
  216. <div class="">发货时间:
  217. <template v-if="getOverTiem(404) > 0">{{getOverTiem(404) | time2 }}</template>
  218. <template v-else>暂未发货</template>
  219. </div>
  220. </div>
  221. <!--<div class="pull-right copyBtn" @click="copyBtn()">复制</div>-->
  222. </div>
  223. <div class="list-btn clearfix" ref="listBtn" v-show="ShowFixedBtn">
  224. <template v-if="vendorType === 'buyer'">
  225. <div class="sendGoods" v-if="orderList.status === 404" @click="buyerGetGoods(orderList)">确认收货</div>
  226. <div class="sendGoods" v-if="!orderList.installmentId && (orderList.status === 503 || orderList.status === 501)" @click="gotoPay(orderList)">立即付款</div>
  227. <div class="sendGoods" @click="onMind('此订单为分期付款,请前往【PC】端进行相关操作')" v-if="orderList.installmentId && (orderList.status === 503 || orderList.status === 504 || orderList.status === 524 ) && orderList.installment.status !== 505 && !orderList.againUpload">立即付款</div>
  228. <div class="" @click="onMind('此订单为分期付款,请前往【PC】端进行相关操作')" v-if="orderList.installmentId && (orderList.status === 503 || orderList.status === 504 || orderList.status === 524 ) && orderList.installment.status !== 505 && orderList.againUpload">重新上传</div>
  229. <div class="" @click="cancelOrder(orderList)" v-if="orderList.status === 503 || orderList.status === 501 || orderList.status === 502">取消订单</div>
  230. <div @click="paidTime(orderList)" class="" v-if="_getHoursFromNow(orderList.paytime) > sellsendGoodsTime - 1 && orderList.status !== 404 && orderList.status !== 524 && orderList.status !== 520 && orderList.status !== 405 && orderList.status !== 521">提醒发货</div>
  231. <!--<div @click="lookLogisticsInfo(orderList)" class="" v-if="orderList.status === 404 || orderList.status === 520 || orderList.status === 405 || orderList.status === 521">查看物流</div>-->
  232. </template>
  233. <template v-else>
  234. <div class="sendGoods" v-if="(orderList.status === 502 || orderList.status === 406) && !orderList.uasPurcid" @click="sendGoods(orderList)">点击发货</div>
  235. <div @click="changelogistics(orderList)" class="sendGoods" v-if="orderList.status === 404 && !orderList.uasPurcid && status === ''">修改物流</div>
  236. <!--<div @click="lookLogisticsInfo(orderList)" class="" v-if="orderList.status === 404 || orderList.status === 520 || orderList.status === 405 || orderList.status === 503 || orderList.status === 514">查看物流</div>-->
  237. <div @click="onMind('此订单为分期付款,请前往【PC】端进行相关操作')" class="" v-if="orderList.installmentId && ((orderList.installment.status === 503 && orderList.Overtime) || orderList.installment.status === 504) && orderList.status !== 606 && orderList.status !== 525">
  238. 取消订单
  239. </div>
  240. <div @click="onMind('此订单为分期付款,请前往【PC】端进行相关操作')" class="" v-if="installmentDetailPaid(orderList) && orderList.status !== 525 && orderList.status !== 606">
  241. 确认收款
  242. </div>
  243. </template>
  244. </div>
  245. </div>
  246. </div>
  247. <!-- 发票信息 -->
  248. <div class="mobile-modal" @touchmove="preventTouchMove($event)" v-if="orderList.invoicetype === 1205 || orderList.invoicetype === 1206" v-show="showinvoiceType">
  249. <div class="mobile-modal-box mobile-link-en mobile-link-en2">
  250. <div class="mobile-modal-header">发票信息<i @click="showinvoiceType = false" class="icon-guanbi iconfont"></i></div>
  251. <div class="order-details-invoiceinfo" >
  252. <div class="order-details-invoiceinfo-content">
  253. <!--<div class="invoiceList clearfix" >-->
  254. <!--<div class="pull-left">发票类型:</div>-->
  255. <!--<div class="pull-right">-->
  256. <!--{{orderList.invoicetype === 1205 ? '增值税(专用)发票': '增值税普通发票'}}-->
  257. <!--</div>-->
  258. <!--</div>-->
  259. <img src="/images/order/zhuanpiao.png" v-if="orderList.invoicetype === 1205"/>
  260. <img src="/images/order/pupiao.png" v-else/>
  261. <div class="invoiceList clearfix" style="font-size: 0.28rem;color: #333">
  262. {{orderList.invoicetitle}}
  263. <!--<div class="pull-left">发票抬头:</div>-->
  264. <!--<div class="pull-right">{{orderList.invoicetitle || '空'}}</div>-->
  265. </div>
  266. <div class="invoiceList clearfix" v-if="orderList.invoicetype === 1205">
  267. <div class="pull-left">单位地址:</div>
  268. <div class="pull-left">{{invoiceAddress.companyAddress || '空'}}</div>
  269. </div>
  270. <div class="invoiceList clearfix" v-if="orderList.invoicetype === 1205">
  271. <div class="pull-left">单位电话:</div>
  272. <div class="pull-left">{{invoiceAddress.companyPhone || '空'}}</div>
  273. </div>
  274. <div class="invoiceList clearfix" v-if="orderList.invoicetype === 1205">
  275. <div class="pull-left">税务登记号:</div>
  276. <div class="pull-left">{{invoiceAddress.companyTaxNumber || '空'}}</div>
  277. </div>
  278. <div class="invoiceList clearfix" v-if="orderList.invoicetype === 1205">
  279. <div class="pull-left">{{invoiceAddress.bankName}}:</div>
  280. <div class="pull-left">{{invoiceAddress.bankAccount}}</div>
  281. </div>
  282. <div class="invoiceList clearfix">
  283. <div class="pull-left">{{invoiceAddress.name}}:</div>
  284. <div class="pull-left">{{invoiceAddress.telephone || '空'}}</div>
  285. </div>
  286. <div class="invoiceList clearfix">
  287. {{invoiceAddress.area}}{{invoiceAddress.detailAddress}}
  288. </div>
  289. </div>
  290. </div>
  291. </div>
  292. </div>
  293. <!-- /end -->
  294. <!-- 发货弹窗 -->
  295. <div class="mobile-modal" v-if="showSend" @touchmove="preventTouchMove($event)">
  296. <div class="sendGoods_Alert">
  297. <div class="sendGoods_title">发货信息<span><i class="iconfont icon-guanbi1" @click="showSend = false"></i></span></div>
  298. <div class="sendGoods_buyer">
  299. <div class="sendGoods_buyer_top">
  300. <span class="name">{{sendGoodsInfo.area.name}}</span>
  301. <span class="tel">{{sendGoodsInfo.area.tel}}</span>
  302. </div>
  303. <div class="sendGoods_buyer_bottom">
  304. <img src="/images/order/address_icon.png"/>
  305. <span>{{sendGoodsInfo.area.area}}{{sendGoodsInfo.area.detailAddress}}</span>
  306. </div>
  307. </div>
  308. <div class="sendGoods_list clearfix">
  309. <div class="ti pull-left">配送方式</div>
  310. <div class="pull-right">
  311. {{sendGoodsInfo.sendType === 1301 ? '第三方配送' : (sendGoodsInfo.sendType === 1302 ? '卖家配送': '上门自提')}}
  312. </div>
  313. </div>
  314. <div class="sendGoods_list clearfix" @click="choosePeisong()">
  315. <div class="ti pull-left">配送商</div>
  316. <div class="pull-right">{{peisongShowName ? peisongShowName : '请选择'}}<img src="/images/mobile/user/icon-right.png"/></div>
  317. </div>
  318. <div class="sendGoods_list clearfix">
  319. <div class="ti pull-left">运单号</div>
  320. <div class="pull-right"><input type="number" placeholder="请输入运单号" v-model="sendGoodsInfo.kuaidinumber"/></div>
  321. </div>
  322. <div class="sendGoods_Btn" @click="saveSendGoods()">
  323. 确定
  324. </div>
  325. </div>
  326. </div>
  327. <!-- /end 发货弹窗 -->
  328. <!-- 选择配送商 -->
  329. <div class="mobile-modal" v-if="peisongShow">
  330. <div class="peisong_Alert">
  331. <div class="com-mobile-header" >
  332. <a @click="peisongShow = false"><i class="iconfont icon-fanhui"></i></a>
  333. <p>选择配送商
  334. </p>
  335. </div>
  336. <div class="search-content">
  337. <input type="text" v-model="seekKeyword" placeholder="请输入您要查找的配送商" @keyup.13="searchSeek" ref="searchSeekInput" @focus="inputGetFocus()" @blur="blur()">
  338. <span @click="searchSeek" >
  339. <i class="iconfont icon-sousuo"></i>
  340. </span>
  341. </div>
  342. <ul>
  343. <li class="clearfix" v-for="(item, index) in peisongList" @click="selectPeisong(index, item)">
  344. <div class="name pull-left">{{item.companyName}}</div>
  345. <div class="pull-right target" :class="peisongChooseIndex === index ? 'active' : ''"></div>
  346. </li>
  347. </ul>
  348. <div @click="savePeisongChoose()" class="sendGoods_Btn">保存</div>
  349. </div>
  350. </div>
  351. <!-- /end 选择配送商 -->
  352. <!-- 删除订单 -->
  353. <!-- 删除提示框 -->
  354. <div class="deleteKuang" v-if="showDeleteAlert" @touchmove="preventTouchMove($event)">
  355. <div class="kuangContent">
  356. <div class="title">删除信息</div>
  357. <div class="titleinfo">是否删除此订单</div>
  358. <!--<div class="info" v-show="isUploadpro">*存在已上架信息</div>-->
  359. <div class="K_btn">
  360. <div class="cancelBtn" @click="showDeleteAlert = false">取消</div>
  361. <div class="answerBtn" @click="deleteFn()">确定</div>
  362. </div>
  363. </div>
  364. </div>
  365. <!-- /end 删除订单 -->
  366. <!-- 取消订单原因弹窗 -->
  367. <div class="mobile-modal" v-if="showBuyerAlert" @touchmove="preventTouchMove($event)">
  368. <div class="cancelOrder">
  369. <div class="sendGoods_title">取消订单<span><i class="iconfont icon-guanbi1" @click="showBuyerAlert = false"></i></span></div>
  370. <div class="cancelOrder_title">请选择取消订单的原因(必选):</div>
  371. <ul>
  372. <li v-for="(item, index) in cancelList" class="clearfix" @click="ChooseOrderCancel(item, index)">
  373. <div class="target pull-left" :class="index === OrderCancelIndex ? 'active' : ''"></div>
  374. <div class="name pull-left">{{item}}</div>
  375. </li>
  376. </ul>
  377. <div @click="cancenFn()" class="sendGoods_Btn">确定</div>
  378. </div>
  379. </div>
  380. <!-- /end 取消订单原因弹窗 -->
  381. <!-- 联系卖买家 -->
  382. <div class="mobile-modal" v-if="showStoreInfo" @touchmove="preventTouchMove($event)">
  383. <div class="mobile-modal-box mobile-link-en">
  384. <div class="mobile-modal-header">联系方式<i @click="showStoreInfo = false" class="icon-guanbi iconfont"></i></div>
  385. <div class="mobile-modal-content">
  386. <div v-if="vendorType === 'buyer'">
  387. <div v-if="checkInfo(cancatInfo.enterprise.enTel)" class="clearfix"><span class="pull-left">电话:</span><a :href="'tel:' + cancatInfo.enterprise.enTel" target="_blank" class="content-line link-url pull-left">{{cancatInfo.enterprise.enTel}}</a></div>
  388. <div v-if="checkInfo(cancatInfo.enterprise.enPhone)" class="clearfix"><span class="pull-left">手机:</span><a :href="'tel:' + cancatInfo.enterprise.enPhone" target="_blank" class="content-line link-url pull-left">{{cancatInfo.enterprise.enPhone}}</a></div>
  389. <div v-if="checkInfo(cancatInfo.enterprise.enWeixin)" class="clearfix"><span class="pull-left">微信:</span><span class="content-line pull-left">{{cancatInfo.enterprise.enWeixin}}</span></div>
  390. <div v-if="checkInfo(cancatInfo.enterprise.enQQ)" class="clearfix"><span class="pull-left">Q&nbsp;Q:</span><span class="content-line pull-left">{{cancatInfo.enterprise.enQQ}}</span></div>
  391. <div v-if="!empty">暂无联系方式</div>
  392. </div>
  393. <div v-else>
  394. <div class="clearfix"><span class="pull-left"></span>抱歉,暂时无法与买家在线沟通!</div>
  395. <div v-if="checkInfo(cancatInfo.entel)" class="clearfix"><span class="pull-left">电话:</span><a :href="'tel:' + cancatInfo.entel" target="_blank" class="content-line link-url pull-left">{{cancatInfo.entel}}</a></div>
  396. </div>
  397. </div>
  398. </div>
  399. </div>
  400. <!-- /联系买卖家 -->
  401. <remind-box :title="collectResult" :timeoutCount="timeoutCount"></remind-box>
  402. </div>
  403. </template>
  404. <script>
  405. import axios from '~plugins/axios'
  406. import { EncryptionFilter } from '~utils/tools.js'
  407. import { RemindBox } from '~components/mobile/common'
  408. export default {
  409. name: 'orderdetails',
  410. layout: 'mobile',
  411. middleware: 'authenticated',
  412. data() {
  413. return {
  414. ShowFixedBtn: false, // 是否显示悬浮按钮
  415. showStoreInfo: false, // 联系信息弹窗
  416. showinvoiceType: false, // 是否展示发票信息
  417. cancatInfo: {
  418. enterprise: ''
  419. }, // 联系信息
  420. isSearchSearchingMore: false,
  421. collectResult: '',
  422. timeoutCount: 0,
  423. orderList: {}, // 订单列表
  424. showSend: false, // 是否显示发货弹窗
  425. sendGoodsInfo: { // 发货弹窗对象
  426. area: {}
  427. },
  428. status: '1', // 物流状态
  429. peisongShow: false, // 是否显示配送商选择弹窗
  430. seekKeyword: '',
  431. peisongChooseIndex: 0, // 配送商选择下标
  432. peisongList: [], // 配送商数组
  433. peisongShowName: '', // 选择完后的配送
  434. showDeleteAlert: false, // 是否显示删除订单
  435. sellsendGoodsTime: '', // 卖家发货时间
  436. showBuyerAlert: false, // 买家取消订单原因
  437. cancelList: ['我不想买了', '信息填写有误,重新购买', '先看看样品再下单', '付款遇到问题(如余额不足、超出限额等)', '买错了', '其他原因'], // 取消订单原因数组
  438. $CancenOrderId: '', // 取消订单id
  439. $Orderreason: '', // 取消订单原因
  440. OrderCancelIndex: '', // 取消订单原因下标
  441. showItem: 3, // 允许展示多个产品
  442. invoiceAddress: {}, // 发票信息
  443. logisticsInfo: [] // 物流信息
  444. }
  445. },
  446. async asyncData({route}) {
  447. if (route.query.type === 'buyer') {
  448. let sellsendGoodsTime
  449. let { data } = await axios.get(`/trade/order/${route.query.uuid}`)
  450. data[0].area = JSON.parse(data[0].jsonAddress)
  451. data[0].rule = JSON.parse(data[0].jsonRule)
  452. data[0].paytype = route.query.paytype
  453. data[0].historyS = JSON.parse(data[0].statushistory)
  454. data[0].purchaseDetails = data[0].orderDetails
  455. data[0].purchaseRemark = data[0].orderRemark ? JSON.parse(data[0].orderRemark)[data[0].storeid] : ''
  456. data[0].sendType = data[0].rule.method
  457. let invoiceAddress = data[0].invoiceAddress ? JSON.parse(data[0].invoiceAddress) : ''
  458. if (route.query.type === 'buyer') {
  459. sellsendGoodsTime = await axios.get(`/trade/tradebasicproperties/get/1054`)
  460. }
  461. return {
  462. orderList: data[0],
  463. sellsendGoodsTime: parseInt(sellsendGoodsTime.data.info),
  464. invoiceAddress: invoiceAddress
  465. }
  466. }
  467. let { data } = await axios.get(`/trade/purchase/purchaseId/${route.query.uuid}`)
  468. console.log(data)
  469. data.data.area = JSON.parse(data.data.jsonAddress)
  470. data.data.rule = data.data.jsonRule ? JSON.parse(data.data.jsonRule) : ''
  471. data.data.paytype = route.query.paytype
  472. data.data.historyS = JSON.parse(data.data.statushistory)
  473. let invoiceAddress = data.data.invoiceAddress ? JSON.parse(data.data.invoiceAddress) : ''
  474. return {
  475. orderList: data.data,
  476. invoiceAddress: invoiceAddress
  477. }
  478. },
  479. computed: {
  480. vendorType() {
  481. return this.$route.query.type
  482. },
  483. shopuuid() {
  484. return this.$store.state.option.storeStatus.data
  485. },
  486. empty () {
  487. return this.checkInfo(this.cancatInfo.enterprise.enTel) || this.checkInfo(this.cancatInfo.enterprise.enPhone) || this.checkInfo(this.cancatInfo.enterprise.enWeixin) || this.checkInfo(this.cancatInfo.enterprise.enQQ)
  488. }
  489. },
  490. filters: {
  491. priceFiter(val) {
  492. if (!val) return '0.00'
  493. return val.toFixed(2)
  494. },
  495. time: function (time) {
  496. if (typeof time === 'number') {
  497. if (!time) {
  498. return '无'
  499. } else {
  500. let d = new Date(time)
  501. let year = d.getFullYear()
  502. let month = d.getMonth() + 1
  503. let day = d.getDate() < 10 ? '0' + d.getDate() : '' + d.getDate()
  504. return year + '-' + month + '-' + day
  505. }
  506. }
  507. },
  508. time2: function (time) {
  509. if (typeof time === 'number') {
  510. if (!time) {
  511. return '无'
  512. } else {
  513. let d = new Date(time)
  514. let year = d.getFullYear()
  515. let month = d.getMonth() + 1
  516. let day = d.getDate() < 10 ? '0' + d.getDate() : '' + d.getDate()
  517. let hour = d.getHours() < 10 ? '0' + d.getHours() : '' + d.getHours()
  518. let minutes = d.getMinutes() < 10 ? '0' + d.getMinutes() : '' + d.getMinutes()
  519. let seconds = d.getSeconds() < 10 ? '0' + d.getSeconds() : '' + d.getSeconds()
  520. let _arr = [year, month, day].map(item => {
  521. return item.toString().length < 2 ? '0' + item : item
  522. })
  523. return _arr.join('-') + ' ' + hour + ':' + minutes + ':' + seconds
  524. }
  525. }
  526. }
  527. },
  528. created() {
  529. if (this.orderList.lgtId) {
  530. this.$http.get(`/trade/logistics/${this.orderList.lgtId}`).then(data => {
  531. this.$http.get(`/kdn/logistics/query?companyName=${data.data.companyName}&logisticsCode=${data.data.number}`).then(res => {
  532. let str = res.data.traces
  533. this.logisticsInfo = JSON.parse(str).reverse()
  534. if (str.indexOf('揽件') !== -1 || str.indexOf('收件') !== -1 || str.indexOf('转运') !== -1 || str.indexOf('运输') !== -1 || str.indexOf('发往') !== -1 ||
  535. str.indexOf('发出') !== -1 || str.indexOf('收入') !== -1 || str.indexOf('扫描') !== -1 || str.indexOf('到达') !== -1) {
  536. this.status = 'transit'
  537. }
  538. if (str.indexOf('派送') !== -1 || str.indexOf('派件') !== -1) {
  539. this.status = 'send'
  540. }
  541. if (str.indexOf('签收') !== -1) {
  542. this.status = 'signin'
  543. }
  544. })
  545. })
  546. }
  547. },
  548. methods: {
  549. // 确认付款
  550. gotoPay(item) {
  551. let id = EncryptionFilter(item.orderid)
  552. this.$router.push(`/mobile/center/user/doPay/${id}`)
  553. },
  554. // 店铺详情页
  555. toShopdetails(item) {
  556. this.$router.push(`/mobile/shop/${item.storeid}`)
  557. },
  558. // 产品详情页
  559. toproductdetails(item) {
  560. this.$router.push(`/mobile/product/${item.batchCode}`)
  561. },
  562. // 返回剩余时间
  563. restTime() {
  564. for (let i = 0; i < this.orderList.historyS.length; i++) {
  565. if (this.orderList.historyS[i].status === 404) {
  566. let h = 360 - this._getHoursFromNow(this.orderList.historyS[i].time)
  567. let day = parseInt(h) / 24
  568. let hours = parseInt(h) % 24
  569. return '还剩 ' + parseInt(day) + '天' + parseInt(hours) + '小时自动确认'
  570. }
  571. }
  572. return ''
  573. },
  574. checkInfo: function (str) {
  575. return str && str.trim() !== ''
  576. },
  577. // 联系买卖家
  578. cancatAlert() {
  579. this.showStoreInfo = true
  580. if (this.vendorType === 'buyer') {
  581. this.$http.get(`/api/store-service/stores?uuid=${this.orderList.storeid}&condition=store_uuid`).then(res => {
  582. this.cancatInfo = res.data
  583. })
  584. } else {
  585. this.$http.get(`/basic/enterprise/${this.orderList.buyerenuu}/tels`).then(res => {
  586. this.cancatInfo = res.data.data
  587. })
  588. }
  589. },
  590. getOverTiem(status) {
  591. for (let j = 0; j < this.orderList.historyS.length; j++) {
  592. if (this.orderList.historyS[j].status === status) {
  593. return this.orderList.historyS[j].time
  594. }
  595. }
  596. return ''
  597. },
  598. // 是否为分期付款
  599. installmentDetailPaid(item) {
  600. if (!item.installment) return false
  601. let _flag = false
  602. item.installment.installmentDetails.forEach(list => {
  603. if (list.detno === item.installment.currentNo && list.status === 504) {
  604. _flag = true
  605. }
  606. })
  607. return _flag
  608. },
  609. // 发货
  610. sendGoods(item) {
  611. if (!(this.user.data.pwdEnable && this.user.data.haveUserQuestion && this.user.data.emailValidCode === 2)) {
  612. // 等级不够
  613. this.onMind('您的账户安全等级较低,请先在pc端进行信息完善')
  614. return
  615. }
  616. this.$http.get(`/trade/bankInfo/vender/enterprise?status=104&type=sup`).then(res => {
  617. if (res.data && res.data[0]) {
  618. this.$http.get(`/trade/address/enterprise?ship=false`).then(res => {
  619. // 选择发货地址
  620. if (res.data[0]) {
  621. this.sendGoodstype = 'add'
  622. if (item.inid) {
  623. this._id = EncryptionFilter(item.inid)
  624. this.$http.get(`/trade/inFpu/tobeshipped/${this._id}`).then(res => {
  625. this.sendGoodsInfo = res.data[0]
  626. this.sendGoodsInfo.area = JSON.parse(res.data[0].jsonSpAddress)
  627. this.showSend = true
  628. })
  629. } else {
  630. this.$http.get(`/trade/purchase/vendor/tobeshiped/${item.id}`).then(res => {
  631. this._id = EncryptionFilter(res.data.inId)
  632. this.$http.get(`/trade/inFpu/tobeshipped/${this._id}`).then(res => {
  633. this.sendGoodsInfo = res.data[0]
  634. this.sendGoodsInfo.area = JSON.parse(res.data[0].jsonSpAddress)
  635. this.showSend = true
  636. })
  637. }, err => {
  638. this.onMind('转出货单失败' + err.response.data)
  639. })
  640. }
  641. } else {
  642. this.onMind('您还未填写设置发货地址 ,请进行完善')
  643. }
  644. })
  645. } else {
  646. this.onMind('您还未填写收款账户信息 ,请进行完善')
  647. }
  648. })
  649. },
  650. // 选择配送商
  651. choosePeisong() {
  652. this.seekKeyword = ''
  653. if (this.peisongList.length > 0) {
  654. this.peisongList = this.AllpeisongList.slice()
  655. this.peisongShow = true
  656. return
  657. }
  658. this.$http.get('/trade/distributor/selected').then(res => {
  659. this.AllpeisongList = res.data
  660. this.peisongList = res.data
  661. this.peisongList.splice(0, 0, {
  662. companyName: '请选择配送商'
  663. })
  664. this.peisongShow = true
  665. })
  666. },
  667. // 配送商列表选择
  668. selectPeisong(index, item) {
  669. this.peisongChooseIndex = index
  670. this.peisongChooseItem = item
  671. },
  672. // 确定选择当前配送商
  673. savePeisongChoose() {
  674. this.peisongShow = false
  675. this.peisongShowName = this.peisongChooseItem.companyName === '请选择配送商' ? '' : this.peisongChooseItem.companyName
  676. },
  677. // 发货最终步骤
  678. saveSendGoods() {
  679. // 发货
  680. if (this.sendGoodstype === 'add') {
  681. let patt = new RegExp('^[A-Za-z0-9]+$')
  682. if (this.peisongShowName === '') {
  683. this.onMind('请选择配送商')
  684. } else if (!this.sendGoodsInfo.kuaidinumber) {
  685. this.onMind('请填写物流单号')
  686. } else if (!patt.test(this.sendGoodsInfo.kuaidinumber)) {
  687. this.onMind('请输入正确的物流单号')
  688. } else {
  689. let sendInfo = this.getLogisticsInfo()
  690. this.$http.post(`/trade/inFpu/save?id=${this.sendGoodsInfo.id}`, sendInfo).then(res => {
  691. if (res.data.success) {
  692. this.onMind('发货成功')
  693. setTimeout(() => {
  694. location.reload()
  695. this.showSend = false
  696. this.peisongChooseIndex = 0
  697. this.peisongChooseItem = {companyName: '请选择配送商'}
  698. }, 1500)
  699. }
  700. })
  701. }
  702. } else if (this.sendGoodstype === 'change') {
  703. // 修改物流
  704. let sendInfo = this.getLogisticsInfo('change')
  705. let patt = new RegExp('^[A-Za-z0-9]+$')
  706. if (!this.sendGoodsInfo.lgtId) {
  707. // 如果快递公司 以及 快递编号为空
  708. if (!this.peisongShowName && !this.sendGoodsInfo.kuaidinumber) {
  709. this.showSend = false
  710. return
  711. }
  712. // 如果快递公司为空
  713. if (!this.peisongShowName && this.sendGoodsInfo.kuaidinumber) {
  714. this.onMind('请选择配送商')
  715. return
  716. } else if (!this.sendGoodsInfo.kuaidinumber) {
  717. this.onMind('请填写物流单号')
  718. return
  719. } else if (!patt.test(this.sendGoodsInfo.kuaidinumber)) {
  720. this.onMind('请输入正确的物流单号')
  721. return
  722. }
  723. // 没有物流信息则添加物流信息
  724. this.$http.post(`/trade/logistics/add?inid=${this.sendGoodsInfo.inid}`, sendInfo).then(res => {
  725. if (res.data.success) {
  726. this.onMind('物流信息保存成功')
  727. setTimeout(() => {
  728. location.reload()
  729. this.peisongChooseIndex = 0
  730. this.peisongChooseItem = {companyName: '请选择配送商'}
  731. this.showSend = false
  732. }, 1500)
  733. }
  734. })
  735. } else {
  736. if (this.ChangeInfoObj.number === this.sendGoodsInfo.kuaidinumber && this.peisongShowName === this.ChangeInfoObj.peisongShowName) {
  737. this.showSend = false
  738. return
  739. }
  740. if (this.peisongShowName !== '' || this.sendGoodsInfo.kuaidinumber !== '') {
  741. // 如果用户未做任何信息修改
  742. if (!this.peisongShowName) {
  743. this.onMind('请选择配送商')
  744. return
  745. } else if (!this.sendGoodsInfo.kuaidinumber) {
  746. this.onMind('请填写物流单号')
  747. return
  748. } else if (!patt.test(this.sendGoodsInfo.kuaidinumber)) {
  749. this.onMind('请输入正确的物流单号')
  750. return
  751. }
  752. this.$http.post(`/trade/logistics/${this.sendGoodsInfo.lgtId}?invoiceFuid=${this.sendGoodsInfo.inid}`, sendInfo).then(res => {
  753. if (res.data.success) {
  754. this.onMind('修改物流信息成功')
  755. setTimeout(() => {
  756. location.reload()
  757. this.peisongChooseIndex = 0
  758. this.peisongChooseItem = {companyName: '请选择配送商'}
  759. this.showSend = false
  760. }, 1500)
  761. }
  762. })
  763. } else {
  764. if (this.sendGoodsInfo.sendType !== 1301) {
  765. // 如果清空了物流信息
  766. this.$http.put(`/trade/logistics/clear?inid=${this.sendGoodsInfo.inid}`).then(res => {
  767. if (res.data.success) {
  768. this.onMind('修改物流信息成功')
  769. setTimeout(() => {
  770. location.reload()
  771. this.peisongChooseIndex = 0
  772. this.peisongChooseItem = {companyName: '请选择配送商'}
  773. this.showSend = false
  774. }, 1500)
  775. }
  776. })
  777. }
  778. }
  779. }
  780. }
  781. },
  782. // 买家取消订单
  783. cancelOrder(item) {
  784. this.$CancenOrderId = item.orderid
  785. this.showBuyerAlert = true
  786. },
  787. // 买家取消订单原因选择
  788. ChooseOrderCancel(item, index) {
  789. this.OrderCancelIndex = index
  790. this.$Orderreason = item
  791. },
  792. // 买家提醒卖家发货
  793. paidTime(item) {
  794. item = this.baseUtils.deepCopy(item)
  795. if (this._getHoursFromNow(item.paytime) < this.sellsendGoodsTime) {
  796. this.onMind('距离付款的时间还不到' + this.sellsendGoodsTime + '小时,不能提醒发货')
  797. return
  798. }
  799. if (this._getHoursFromNow(item.lastNotifyDeliveryTime) < this.sellsendGoodsTime && this._getHoursFromNow(item.lastNotifyDeliveryTime) !== 0) {
  800. this.onMind('距离上次付款的时间还不到' + this.sellsendGoodsTime + '小时,不能提醒发货')
  801. return
  802. }
  803. this.$http.post(`/trade/message/order/${item.id}`).then(res => {
  804. let returnResult = res.data
  805. if (returnResult.status === 505 || returnResult.status === 406 || returnResult.status === 407 || returnResult.status === 403 || returnResult.status === 408) {
  806. this.onMind('提醒成功')
  807. location.reload()
  808. } else {
  809. this.onMind('提醒发货失败:' + returnResult.message)
  810. }
  811. })
  812. },
  813. // 取消订单确认事件
  814. cancenFn() {
  815. if (!this.$Orderreason || this.$Orderreason === '') {
  816. this.onMind('请选择取消订单的原因')
  817. } else {
  818. let reason = {
  819. reason: this.$Orderreason
  820. }
  821. this.$http.put(`/trade/order/simpleinfo/ones/${this.$CancenOrderId}/release`, reason).then(res => {
  822. this.onMind('取消订单成功,等待买家确认')
  823. this.$Orderreason = '我不想买了'
  824. this.OrderCancelIndex = 0
  825. location.reload()
  826. this.showBuyerAlert = false
  827. })
  828. }
  829. },
  830. // 修改物流
  831. changelogistics(item) {
  832. this.sendGoodstype = 'change'
  833. this.peisongShowName = ''
  834. this.sendGoodsInfo.kuaidinumber = ''
  835. let _obj = this.baseUtils.deepCopy(item)
  836. if (!item.lgtId) {
  837. // 如果没有订单编号
  838. this.sendGoodsInfo = _obj
  839. this.sendGoodsInfo.area = JSON.parse(_obj.jsonSdAddress)
  840. this.showSend = true
  841. this.ChangeInfoObj = {
  842. number: '',
  843. peisongShowName: ''
  844. }
  845. } else {
  846. this.$http.get(`/trade/logistics/${_obj.lgtId}`).then(res => {
  847. this.sendGoodsInfo = _obj
  848. this.sendGoodsInfo.area = JSON.parse(_obj.jsonSdAddress)
  849. this.sendGoodsInfo.kuaidinumber = res.data.number
  850. this.peisongShowName = res.data.companyName
  851. this.ChangeInfoObj = {
  852. number: res.data.number,
  853. peisongShowName: res.data.companyName
  854. }
  855. this.showSend = true
  856. })
  857. }
  858. },
  859. // 搜索
  860. searchSeek() {
  861. let _arr = this.AllpeisongList.slice()
  862. let addrPatt = /^[\u4e00-\u9fa5]+$/
  863. if (addrPatt.test(this.seekKeyword) && this.seekKeyword.length > 0) {
  864. this.peisongList = []
  865. this.peisongList = _arr.filter((data) => {
  866. if (data.companyName.indexOf(this.seekKeyword) >= 0) {
  867. return data
  868. }
  869. })
  870. this.peisongList.splice(0, 0, {
  871. companyName: '请选择配送商'
  872. })
  873. } else if (this.seekKeyword === '' || !this.seekKeyword) {
  874. this.peisongList = _arr
  875. }
  876. this.peisongChooseIndex = 0
  877. this.peisongChooseItem = {companyName: '请选择配送商'}
  878. },
  879. // 获取物流提交信息
  880. getLogisticsInfo(_type) {
  881. let sendInfo = {}
  882. sendInfo.sendType = this.sendGoodsInfo.sendType
  883. sendInfo.jsonSdAddress = this.sendGoodsInfo.jsonSpAddress
  884. sendInfo.logisticsInfo = {}
  885. if (this.peisongShowName) {
  886. sendInfo.logisticsInfo.companyName = this.peisongShowName
  887. }
  888. if (this.sendGoodsInfo.kuaidinumber) {
  889. sendInfo.logisticsInfo.number = this.sendGoodsInfo.kuaidinumber
  890. }
  891. return _type ? sendInfo.logisticsInfo : sendInfo
  892. },
  893. // 查看物流信息
  894. lookLogisticsInfo(item) {
  895. let id = item.purchaseid || item.orderid
  896. this.$router.push(`/mobile/order/logistics?uuid=${EncryptionFilter(id)}&type=${this.vendorType}`)
  897. },
  898. // 买家确认收货
  899. buyerGetGoods(item) {
  900. this.$http.put(`/trade/order/simpleinfo/ones/${item.id}?_status=ensureaccept`).then(res => {
  901. this.onMind('确认收货成功')
  902. location.reload()
  903. })
  904. },
  905. // 买卖家中心字段同步化
  906. _initSetParams(_obj) {
  907. _obj = this.baseUtils.deepCopy(_obj)
  908. for (let i = 0; i < _obj.length; i++) {
  909. if (!_obj[i].purchaseDetails) {
  910. _obj[i].purchaseDetails = _obj[i].orderDetails
  911. }
  912. if (_obj[i].status === 505 || _obj[i].status === 406 || _obj[i].status === 407 || _obj[i].status === 403 || _obj[i].status === 408) {
  913. _obj[i].paidTimeFromNow = this._getHoursFromNow(_obj[i].paytime)
  914. _obj[i].lastNotiDelivery = this._getHoursFromNow(_obj[i].lastNotifyDeliveryTime)
  915. }
  916. }
  917. return _obj
  918. },
  919. // 传入时间,计算距离现在的时间是多少小时了
  920. _getHoursFromNow(time) {
  921. if (!time) {
  922. return 0
  923. }
  924. let newTime = new Date()
  925. let msec = newTime.getTime() - time
  926. let hours = parseInt(parseInt(msec) / (1000 * 60 * 60))
  927. return hours
  928. },
  929. // 拷贝
  930. copyBtn() {
  931. let text = document.getElementById('orderNumber').innerText
  932. let input = document.getElementById('input')
  933. input.value = text // 修改文本框的内容
  934. input.select() // 选中文本
  935. if (document.execCommand('copy', false, null)) {
  936. this.onMind('复制成功')
  937. }
  938. },
  939. onMind(str) {
  940. this.collectResult = str
  941. this.timeoutCount++
  942. },
  943. blur: function() {
  944. setTimeout(() => {
  945. this.$store.dispatch('mobile/SetInputGetFocus', false)
  946. }, 300)
  947. },
  948. inputGetFocus: function() {
  949. setTimeout(() => {
  950. this.$store.dispatch('mobile/SetInputGetFocus', true)
  951. }, 300)
  952. }
  953. },
  954. components: {
  955. RemindBox
  956. },
  957. mounted() {
  958. this.$nextTick(res => {
  959. this.$refs.listBtn.children.length > 0 ? this.ShowFixedBtn = true : this.ShowFixedBtn = false
  960. })
  961. }
  962. }
  963. </script>
  964. <style scoped lang='scss'>
  965. @mixin overFlowHidden {
  966. overflow: hidden;
  967. text-overflow: ellipsis;
  968. white-space: nowrap;
  969. }
  970. @mixin lineHeight($value) {
  971. height: $value;
  972. line-height: $value;
  973. }
  974. .order-wrapper {
  975. background: #f1f3f6;
  976. margin: 1.26rem 0 0.98rem 0;
  977. height: calc(100vh - 1.26rem - 0.98rem);
  978. overflow-y: scroll;
  979. position: absolute;
  980. .order-details-wrap {
  981. .order-details-top {
  982. .orderNumber {
  983. margin-bottom: 0.2rem;
  984. font-size: 0.27rem;
  985. color: #666;
  986. @include lineHeight(0.88rem);
  987. background: #fff;
  988. padding: 0 0.2rem;
  989. .pull-left {
  990. width: 5rem;
  991. @include overFlowHidden();
  992. span {
  993. color: #3f84f6
  994. }
  995. }
  996. }
  997. .orderStatus {
  998. background: #fff;
  999. padding: 0 0.2rem;
  1000. height: 0.88rem;
  1001. line-height: 0.88rem;
  1002. margin-bottom: 0.2rem;
  1003. .clearfix {
  1004. font-size: 0.28rem;
  1005. color: #333;
  1006. span {
  1007. float: left;
  1008. color: #333;
  1009. }
  1010. img {
  1011. width: 0.18rem;
  1012. height: 0.32rem;
  1013. vertical-align: top;
  1014. margin-top: 0.18rem;
  1015. margin-left: 0.1rem;
  1016. }
  1017. }
  1018. }
  1019. .sendGoods_buyer {
  1020. background: #fff;
  1021. padding: 0.3rem 0.2rem;
  1022. border-top: 1px solid #d9d9d9;
  1023. .sendGoods_buyer_top {
  1024. color: #333;
  1025. font-size: 0.3rem;
  1026. font-weight: bold;
  1027. .name {
  1028. margin-right: 0.3rem;
  1029. margin-left: 0.32rem;
  1030. }
  1031. }
  1032. .sendGoods_buyer_bottom {
  1033. color: #333;
  1034. font-size: 0.26rem;
  1035. margin-top: 0.2rem;
  1036. img {
  1037. width: 0.22rem;
  1038. height: 0.29rem;
  1039. margin-right: 0.1rem;
  1040. margin-top: -0.1rem;
  1041. }
  1042. }
  1043. }
  1044. }
  1045. .order-list-wrap {
  1046. .top-t-wrap {
  1047. background: #fff;
  1048. padding: 0 0.2rem;
  1049. height: 0.88rem;
  1050. line-height: 0.88rem;
  1051. .pull-left {
  1052. font-size: 0.28rem;
  1053. color: #333;
  1054. width: 5rem;
  1055. @include overFlowHidden();
  1056. div {
  1057. max-width: 3rem;
  1058. @include overFlowHidden();
  1059. float: left;
  1060. }
  1061. img {
  1062. width: 0.18rem;
  1063. height: 0.32rem;
  1064. vertical-align: top;
  1065. margin-top: 0.18rem;
  1066. margin-left: 0.1rem;
  1067. }
  1068. }
  1069. .pull-right {
  1070. @include lineHeight(0.56rem);
  1071. border: 1px solid #3f84f6;
  1072. color: #3f84f6;
  1073. font-size: 0.26rem;
  1074. text-align: center;
  1075. border-radius: 3px;
  1076. margin-top: 0.14rem;
  1077. padding: 0 0.1rem;
  1078. overflow: hidden;
  1079. i {
  1080. font-size: 0.26rem;
  1081. margin-left: 0.05rem;
  1082. }
  1083. }
  1084. }
  1085. li {
  1086. margin-top: 0.2rem;
  1087. }
  1088. .list-wrap-title{
  1089. padding: 0 0.2rem;
  1090. background: #fff;
  1091. @include lineHeight(0.67rem);
  1092. font-size: 0.28rem;
  1093. color: #333;
  1094. border-bottom: 1px solid #e4e4e4;
  1095. .pull-left {
  1096. width: 5rem;
  1097. @include overFlowHidden();
  1098. span {
  1099. max-width: 3rem;
  1100. @include overFlowHidden();
  1101. display: inline-block;
  1102. }
  1103. img {
  1104. width: 0.18rem;
  1105. height: 0.32rem;
  1106. vertical-align: top;
  1107. margin-top: 0.18rem;
  1108. margin-left: 0.1rem;
  1109. }
  1110. }
  1111. .pull-right {
  1112. .red {
  1113. color: #f21c1c;
  1114. }
  1115. }
  1116. }
  1117. .list-wrap-content {
  1118. background: #f9f9f8;
  1119. padding: 0.3rem 0.2rem;
  1120. padding-right: 0.32rem;
  1121. border-bottom: 1px solid #e4e4e4;
  1122. .list-item {
  1123. font-size: 0.28rem;
  1124. color: #333;
  1125. /*line-height: 0.5rem;*/
  1126. margin-top: 0.22rem;
  1127. &:nth-child(1) {
  1128. margin-top: 0px;
  1129. }
  1130. .list-wrap-content-brand {
  1131. @include overFlowHidden();
  1132. .spec {
  1133. width: 3.1rem;
  1134. @include overFlowHidden();
  1135. margin-right: 0.2rem;
  1136. &.noMargin {
  1137. margin-right: 0;
  1138. width: 1.5rem;
  1139. }
  1140. }
  1141. }
  1142. .name {
  1143. color: #666;
  1144. }
  1145. .lab {
  1146. color: #999;
  1147. font-size: 0.24rem;
  1148. max-width: 2.1rem;
  1149. @include overFlowHidden();
  1150. span {
  1151. font-size: 0.16rem;
  1152. }
  1153. }
  1154. .pri {
  1155. font-size: 0.28rem;
  1156. color: #f43938;
  1157. }
  1158. }
  1159. }
  1160. .list-btn {
  1161. background: #fff;
  1162. @include lineHeight(0.8rem);
  1163. padding: 0 0.2rem;
  1164. div {
  1165. display: inline-block;
  1166. width: 1.5rem;
  1167. @include lineHeight(0.56rem);
  1168. border: 1px solid #333;
  1169. font-size: 0.26rem;
  1170. color: #333;
  1171. text-align: center;
  1172. margin-top: 0.11rem;
  1173. margin-left: 0.2rem;
  1174. border-radius: 3px;
  1175. &.sendGoods {
  1176. color: #f43938;
  1177. border: 1px solid #f43938;
  1178. }
  1179. }
  1180. }
  1181. }
  1182. .top-w-wrap {
  1183. background: #fff;
  1184. padding: 0 0.2rem;
  1185. border-bottom: 1px solid #e4e4e4;
  1186. @include lineHeight(0.88rem);
  1187. .name {
  1188. color: #333;
  1189. font-size: 0.28rem;
  1190. margin-right: 0.2rem;
  1191. }
  1192. .detailsinfo {
  1193. font-size: 0.28rem;
  1194. color: #999;
  1195. width: 5.6rem;
  1196. @include overFlowHidden()
  1197. }
  1198. }
  1199. .lookMorePro {
  1200. background: #fff;
  1201. font-size: 0.28rem;
  1202. color: #999;
  1203. text-align: center;
  1204. border-bottom: 1px solid #e4e4e4;
  1205. @include lineHeight(0.67rem);
  1206. img {
  1207. transform: rotate(90deg);
  1208. width: 0.16rem;
  1209. height: 0.26rem;
  1210. vertical-align: top;
  1211. margin-top: 0.23rem;
  1212. margin-left: 0.1rem;
  1213. }
  1214. }
  1215. .order-details-priInfo {
  1216. /*border-top: 1px solid #e4e4e4;*/
  1217. border-bottom: 1px solid #e4e4e4;
  1218. font-size: 0.28rem;
  1219. color: #333;
  1220. padding: 0.1rem;
  1221. background: #fff;
  1222. text-align: right;
  1223. .clearfix {
  1224. @include lineHeight(0.5rem);
  1225. }
  1226. span {
  1227. @include overFlowHidden();
  1228. }
  1229. .small {
  1230. font-size: 0.24rem;
  1231. color: #999;
  1232. }
  1233. .jianmian {
  1234. font-size: 0.22rem;
  1235. color: #fff;
  1236. width: 0.48rem;
  1237. height:0.25rem;
  1238. text-align: center;
  1239. line-height: 0.25rem;
  1240. background: #15b262;
  1241. margin: 0 0.1rem;
  1242. }
  1243. }
  1244. .list-all-info{
  1245. text-align: right;
  1246. background: #fff;
  1247. padding: 0 0.1rem;
  1248. @include lineHeight(0.72rem);
  1249. font-size: 0.26rem;
  1250. color: #333;
  1251. border-bottom: 1px solid #e4e4e4;
  1252. span {
  1253. display: inline-block;
  1254. }
  1255. .pri {
  1256. font-size: 0.32rem;
  1257. color: #f43938;
  1258. }
  1259. .red {
  1260. color: #f43938;
  1261. font-size: 0.24rem;
  1262. }
  1263. .lab {
  1264. color: #999;
  1265. font-size: 0.24rem;
  1266. }
  1267. .del {
  1268. text-decoration: line-through;
  1269. color: #999;
  1270. font-size: 0.24rem;
  1271. }
  1272. }
  1273. .order-details-info {
  1274. background: #fff;
  1275. margin-top: 0.2rem;
  1276. .clearfix{
  1277. padding: 0 0.2rem;
  1278. font-size: 0.28rem;
  1279. color: #333;
  1280. .pull-left {
  1281. @include lineHeight(0.88rem);
  1282. }
  1283. img {
  1284. width: 0.18rem;
  1285. height: 0.32rem;
  1286. vertical-align: top;
  1287. margin-top: 0.3rem;
  1288. margin-left: 0.1rem;
  1289. margin-right: 0.1rem;
  1290. }
  1291. border-bottom: 1px solid #e4e4e4;
  1292. .pull-right {
  1293. max-width: 5rem;
  1294. text-align: right;
  1295. }
  1296. .smallfont{
  1297. color: #666;
  1298. }
  1299. }
  1300. }
  1301. .order-details-moreinfo {
  1302. background: #fff;
  1303. font-size: 0.24rem;
  1304. color: #999;
  1305. padding: 0.2rem 0;
  1306. margin-bottom: 0.8rem;
  1307. .clearfix.moreinfoList {
  1308. padding: 0 0.2rem;
  1309. /*border-bottom: 1px solid #e4e4e4;*/
  1310. .pull-left {
  1311. div {
  1312. @include lineHeight(0.5rem);
  1313. }
  1314. }
  1315. }
  1316. margin-top: 0.2rem;
  1317. .copyBtn {
  1318. width: 1.1rem;
  1319. border-radius: 3px;
  1320. border: 1px solid #dfdfdf;
  1321. @include lineHeight(0.4rem);
  1322. text-align: center;
  1323. padding: 0 0.2rem;
  1324. }
  1325. .list-btn {
  1326. position: fixed;
  1327. bottom: 0.98rem;
  1328. width: 100%;
  1329. left: 0;
  1330. background: #fff;
  1331. height: 0.8rem;
  1332. border-top: 1px solid #dcdcdc;
  1333. div {
  1334. float: right;
  1335. width: 1.5rem;
  1336. @include lineHeight(0.56rem);
  1337. background: #3f84f6;
  1338. color: #fff;
  1339. border-radius: 3px;
  1340. text-align: center;
  1341. font-size: 0.26rem;
  1342. margin-top: 0.15rem;
  1343. margin-right: 0.2rem;
  1344. }
  1345. }
  1346. }
  1347. .logistics_ul {
  1348. background: #fff;
  1349. li.clearfix {
  1350. position: relative;
  1351. border-left: 2px solid #e4e5ea;
  1352. margin-left: 0.2rem;
  1353. border-bottom: 0px;
  1354. .pull-left {
  1355. position: absolute;
  1356. left: -7px;
  1357. top: 0.36rem;
  1358. .logistics_icon {
  1359. width: 12px;
  1360. height: 12px;
  1361. border-radius: 50%;
  1362. background: #b5b5b5;
  1363. &.active {
  1364. width: 20px;
  1365. height: 20px;
  1366. border-radius: 50%;
  1367. background: rgba(0, 0, 0, 0);
  1368. position: relative;
  1369. &~.logistics_line {
  1370. margin-left: 9px;
  1371. }
  1372. .red {
  1373. position: absolute;
  1374. width: 12px;
  1375. height: 12px;
  1376. background: #0ca43a;
  1377. margin-left: 4px;
  1378. margin-top: 4px;
  1379. border-radius: 50%;
  1380. }
  1381. }
  1382. }
  1383. &.marginL {
  1384. left: -10px;
  1385. top: -0.1rem
  1386. }
  1387. }
  1388. .pull-right {
  1389. padding-top: 0.2rem;
  1390. font-size: 0.24rem;
  1391. color: #333;
  1392. border-bottom: 1px solid #f3f3f3;
  1393. padding-bottom: 0.2rem;
  1394. max-width: 6.4rem;
  1395. width: 6.4rem;
  1396. .logistics_time {
  1397. @include lineHeight(20px);
  1398. }
  1399. .logistics_info {
  1400. margin-top: 0.2rem;
  1401. word-break:break-all;
  1402. word-wrap: break-word;
  1403. line-height: 0.45rem
  1404. }
  1405. &.marginT {
  1406. padding-top: 0;
  1407. margin-top: -0.1rem;
  1408. }
  1409. }
  1410. }
  1411. }
  1412. }
  1413. .sendGoods_Alert {
  1414. background: #fff;
  1415. position: fixed;
  1416. bottom: 0.98rem;
  1417. left: 0;
  1418. width: 100%;
  1419. border-top-left-radius: 5px;
  1420. border-top-right-radius: 5px;
  1421. overflow: hidden;
  1422. .sendGoods_title {
  1423. color: #333;
  1424. font-size: 0.42rem;
  1425. text-align: center;
  1426. line-height: 1rem;
  1427. font-weight: 600;
  1428. position: relative;
  1429. i {
  1430. position: absolute;
  1431. font-size: 16px;
  1432. right: 0.2rem;
  1433. }
  1434. }
  1435. .sendGoods_buyer {
  1436. padding: 0.3rem 0.2rem;
  1437. border-bottom: 1px solid #d9d9d9;
  1438. border-top: 1px solid #d9d9d9;
  1439. .sendGoods_buyer_top {
  1440. color: #333;
  1441. font-size: 0.3rem;
  1442. font-weight: bold;
  1443. .name {
  1444. margin-right: 0.3rem;
  1445. margin-left: 0.32rem;
  1446. }
  1447. }
  1448. .sendGoods_buyer_bottom {
  1449. color: #333;
  1450. font-size: 0.26rem;
  1451. margin-top: 0.2rem;
  1452. img {
  1453. width: 0.22rem;
  1454. height: 0.29rem;
  1455. margin-right: 0.1rem;
  1456. margin-top: -0.1rem;
  1457. }
  1458. }
  1459. }
  1460. .sendGoods_list {
  1461. padding: 0 0.2rem;
  1462. @include lineHeight(0.8rem);
  1463. border-bottom: 1px solid #d9d9d9;
  1464. font-size: 0.32rem;
  1465. color: #333;
  1466. /*.ti {*/
  1467. /*font-weight: bold;*/
  1468. /*}*/
  1469. .pull-right {
  1470. font-size: 0.28rem;
  1471. color: #999;
  1472. img {
  1473. width: 0.14rem;
  1474. height: 0.24rem;
  1475. vertical-align: middle;
  1476. margin-top: -0.02rem;
  1477. margin-left: 0.1rem;
  1478. }
  1479. }
  1480. input {
  1481. width: 4rem;
  1482. text-align: right;
  1483. color: #333;
  1484. }
  1485. }
  1486. .sendGoods_Btn {
  1487. @include lineHeight(1rem);
  1488. text-align: center;
  1489. color: #fff;
  1490. font-size: 0.36rem;
  1491. background: #3f84f6;
  1492. }
  1493. }
  1494. .search-content {
  1495. margin-top: 0.88rem;
  1496. margin-bottom: 0.2rem;
  1497. text-align: center;
  1498. padding: .25rem 0 0 0;
  1499. input {
  1500. border: 1px solid #376ff3;
  1501. }
  1502. span {
  1503. height: .46rem;
  1504. line-height: .46rem;
  1505. }
  1506. }
  1507. .peisong_Alert {
  1508. background: #f1f3f6;
  1509. position: fixed;
  1510. bottom: 0.98rem;
  1511. left: 0;
  1512. right: 0;
  1513. top: 0;
  1514. z-index: 11111;
  1515. ul {
  1516. height: calc(100vh - 1.2rem - 1.7rem);
  1517. overflow-y: scroll;
  1518. li {
  1519. line-height: 1rem;
  1520. background: #fff;
  1521. padding: 0 0.2rem;
  1522. font-size: 0.28rem;
  1523. color: #333;
  1524. border-bottom: 1px solid #e0e1e2;
  1525. div.name {
  1526. @include overFlowHidden();
  1527. }
  1528. div.target {
  1529. width: 0.36rem;
  1530. height: 0.36rem;
  1531. border-radius: 50%;
  1532. overflow: hidden;
  1533. border: 1px solid #a4a4a4;
  1534. margin-top: 0.3rem;
  1535. &.active {
  1536. background-image: url('/images/order/getChoose_icon.png');
  1537. background-size: 100% 100%;
  1538. border: 0px;
  1539. }
  1540. }
  1541. }
  1542. }
  1543. .sendGoods_Btn {
  1544. @include lineHeight(1rem);
  1545. text-align: center;
  1546. color: #fff;
  1547. font-size: 0.36rem;
  1548. background: #3f84f6;
  1549. }
  1550. }
  1551. .deleteKuang {
  1552. position: fixed;
  1553. background: rgba(0,0,0,0.5);
  1554. top: 0;
  1555. left: 0;
  1556. right: 0;
  1557. bottom: 0;
  1558. z-index: 9999;
  1559. .kuangContent {
  1560. border-radius: 5px;
  1561. background: #fff;
  1562. width: 5rem;
  1563. position: absolute;
  1564. left: 50%;
  1565. top: 50%;
  1566. transform: translate3d(-50%, -50%, 0);
  1567. overflow: hidden;
  1568. .titleinfo {
  1569. font-size: .3rem;
  1570. color: #666;
  1571. text-align: center;
  1572. margin-top: 0.5rem;
  1573. margin-bottom: 0.1rem;
  1574. }
  1575. .title {
  1576. background: #5078cb;
  1577. height: .7rem;
  1578. line-height: .7rem;
  1579. font-size: .3rem;
  1580. color: #fff;
  1581. text-align: center;
  1582. }
  1583. .info {
  1584. color: #f00;
  1585. text-align: center;
  1586. }
  1587. .K_btn {
  1588. margin-top: 0.4rem;
  1589. line-height: 0.7rem;
  1590. height: 0.7rem;
  1591. &::after{
  1592. clear: both;
  1593. display: block;
  1594. content: ' ';
  1595. visibility: hidden;
  1596. zoom: 1;
  1597. }
  1598. div {
  1599. float: left;
  1600. width: 50%;
  1601. font-size: 0.3rem;
  1602. text-align: center;
  1603. &.cancelBtn {
  1604. background: #b4b5b9;
  1605. color: #333;
  1606. }
  1607. &.answerBtn {
  1608. background: #5078cb;
  1609. color: #fff;
  1610. }
  1611. }
  1612. }
  1613. }
  1614. i {
  1615. font-size: .6rem;
  1616. position: absolute;
  1617. right: -0.3rem;
  1618. top: -0.35rem;
  1619. color: #fff;
  1620. &::after{
  1621. position: absolute;
  1622. top: -0.1rem;
  1623. left: -0.1rem;
  1624. right: -0.1rem;
  1625. bottom: -0.1rem;
  1626. content: ' '
  1627. }
  1628. }
  1629. .title {
  1630. background: #3f84f6;
  1631. height: 0.7rem;
  1632. line-height: 0.7rem;
  1633. color: #fff;
  1634. text-align: center;
  1635. font-size: 0.3rem;
  1636. position: relative;
  1637. }
  1638. .Kuang {
  1639. max-height: 10rem;
  1640. width: 6.7rem;
  1641. position: absolute;
  1642. left: 50%;
  1643. top: 50%;
  1644. transform: translate3d(-50%, -50%, 0);
  1645. background: #ececec;
  1646. border-radius: 5px;
  1647. }
  1648. .content {
  1649. overflow-y: scroll;
  1650. max-height: 9.3rem;
  1651. .infob {
  1652. background: #e3edfd;
  1653. padding: 0.2rem;
  1654. .info {
  1655. color: #333;
  1656. font-size: 0.3rem;
  1657. overflow: hidden;
  1658. text-overflow: ellipsis;
  1659. white-space: nowrap;
  1660. margin-bottom: 0.18rem;
  1661. .name {
  1662. color: #666;
  1663. }
  1664. div {
  1665. display: inline-block;
  1666. }
  1667. }
  1668. }
  1669. .content_sq {
  1670. width: 6.4rem;
  1671. margin: 0.1rem auto;
  1672. background: #fff;
  1673. padding: 0.2rem 0rem;
  1674. .list {
  1675. margin-bottom: 0.18rem;
  1676. }
  1677. .fl {
  1678. width: 3.2rem;
  1679. }
  1680. .table {
  1681. width: 4.2rem;
  1682. margin-top: -0.1rem;
  1683. }
  1684. .labelinfo {
  1685. background-image: url('/images/mobile/@2x/labelTop.png');
  1686. background-repeat: no-repeat;
  1687. width: 6.29rem;
  1688. height: 0.64rem;
  1689. line-height: 0.64rem;
  1690. background-size: 100%;
  1691. margin-top: 0rem;
  1692. margin-right: 0rem;
  1693. background-color: rgba(0, 0, 0, 0);
  1694. color: #666;
  1695. }
  1696. }
  1697. }
  1698. }
  1699. .cancelOrder {
  1700. background: #fff;
  1701. position: absolute;
  1702. bottom: 0.98rem;
  1703. left: 0;
  1704. width: 100%;
  1705. border-top-left-radius: 5px;
  1706. border-top-right-radius: 5px;
  1707. overflow: hidden;
  1708. .sendGoods_title {
  1709. color: #333;
  1710. font-size: 0.42rem;
  1711. text-align: center;
  1712. line-height: 1rem;
  1713. font-weight: 600;
  1714. position: relative;
  1715. i {
  1716. position: absolute;
  1717. font-size: 16px;
  1718. right: 0.2rem;
  1719. }
  1720. }
  1721. .cancelOrder_title {
  1722. font-size: 0.36rem;
  1723. color: #333;
  1724. border-bottom: 1px solid #d9d9d9;
  1725. font-weight: bold;
  1726. padding: 0 0.2rem;
  1727. line-height: 0.6rem;
  1728. }
  1729. ul {
  1730. li {
  1731. line-height: 1rem;
  1732. background: #fff;
  1733. padding: 0 0.2rem;
  1734. font-size: 0.32rem;
  1735. color: #333;
  1736. border-bottom: 1px solid #d9d9d9;
  1737. div.name {
  1738. @include overFlowHidden();
  1739. }
  1740. div.target {
  1741. margin-right: 0.2rem;
  1742. width: 0.36rem;
  1743. height: 0.36rem;
  1744. border-radius: 50%;
  1745. overflow: hidden;
  1746. border: 1px solid #a4a4a4;
  1747. margin-top: 0.3rem;
  1748. &.active {
  1749. background-image: url('/images/order/getChoose_icon.png');
  1750. background-size: 100% 100%;
  1751. border: 0px;
  1752. }
  1753. }
  1754. }
  1755. }
  1756. .sendGoods_Btn {
  1757. @include lineHeight(1rem);
  1758. text-align: center;
  1759. color: #fff;
  1760. font-size: 0.36rem;
  1761. background: #3f84f6;
  1762. }
  1763. }
  1764. .labelInfo_ForItem {
  1765. color: #fff;
  1766. font-size: 0.24rem;
  1767. padding: 0.05rem 0.1rem;
  1768. background: #15b262;
  1769. margin-right: 0.1rem;
  1770. border-radius: 3px;
  1771. }
  1772. .mobile-link-en2 {
  1773. width: 7.04rem;
  1774. left: 2.5%;
  1775. }
  1776. .order-details-invoiceinfo {
  1777. background: #f3f3f3;
  1778. padding: 0.2rem;
  1779. border-bottom-left-radius: 0.07rem;
  1780. border-bottom-right-radius: 0.07rem;
  1781. .order-details-invoiceinfo-content {
  1782. background: #fff;
  1783. padding: 0.3rem 0.2rem;
  1784. border-radius: 0.07rem;
  1785. position: relative;
  1786. border: 1px solid #dcdcdc;
  1787. img {
  1788. position: absolute;
  1789. right: 0px;
  1790. top: 0px;
  1791. width: 0.85rem;
  1792. height: 0.85rem;
  1793. }
  1794. }
  1795. .invoiceList {
  1796. font-size: 0.24rem;
  1797. color: #666;
  1798. line-height: 0.5rem;
  1799. .pull-left {
  1800. &:first-child {
  1801. width: 2.2rem;
  1802. text-align: right;
  1803. @include overFlowHidden();
  1804. }
  1805. &:last-child{
  1806. width: 3.9rem;
  1807. word-break:break-all;
  1808. word-wrap:break-word;
  1809. }
  1810. }
  1811. }
  1812. }
  1813. .overHiddenText {
  1814. @include overFlowHidden();
  1815. max-width: 3rem;
  1816. }
  1817. .justifyAlign {
  1818. width: 1.2rem;
  1819. display:inline-block;
  1820. text-align: justify;
  1821. vertical-align:top;
  1822. }
  1823. .justifyAlign::after{
  1824. content:"";
  1825. display: inline-block;
  1826. width:100%;
  1827. overflow:hidden;
  1828. height:0;
  1829. }
  1830. }
  1831. </style>