details.vue 69 KB

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