details.vue 71 KB

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