details.vue 72 KB

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