details.vue 71 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856
  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: 2.5rem">{{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">运 &nbsp;&nbsp;费:</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">合 &nbsp;&nbsp;计:</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">
  276. <!--{{orderList.invoicetitle}}-->
  277. <div class="pull-left">发票抬头:</div>
  278. <div class="pull-left">{{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 ? '' : ''">收票人:</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 ? '' : ''">联系电话:</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. <div class="pull-left">收票地址:</div>
  314. <div class="pull-left">{{invoiceAddress.area}}{{invoiceAddress.detailAddress}}</div>
  315. </div>
  316. </div>
  317. </div>
  318. </div>
  319. </div>
  320. <!-- /end -->
  321. <!-- 发货弹窗 -->
  322. <div class="mobile-modal" v-if="showSend" @touchmove="preventTouchMove($event)">
  323. <div class="sendGoods_Alert">
  324. <div class="sendGoods_title">发货信息<span><i class="iconfont icon-guanbi1" @click="showSend = false"></i></span></div>
  325. <div class="sendGoods_buyer">
  326. <div class="sendGoods_buyer_top">
  327. <span class="name">{{sendGoodsInfo.area.name}}</span>
  328. <span class="tel">{{sendGoodsInfo.area.tel}}</span>
  329. </div>
  330. <div class="sendGoods_buyer_bottom">
  331. <img src="/images/order/address_icon.png"/>
  332. <span>{{sendGoodsInfo.area.area}}{{sendGoodsInfo.area.detailAddress}}</span>
  333. </div>
  334. </div>
  335. <div class="sendGoods_list clearfix">
  336. <div class="ti pull-left">配送方式</div>
  337. <div class="pull-right">
  338. {{sendGoodsInfo.sendType === 1301 ? '第三方配送' : (sendGoodsInfo.sendType === 1302 ? '卖家配送': '上门自提')}}
  339. </div>
  340. </div>
  341. <div class="sendGoods_list clearfix" @click="choosePeisong()">
  342. <div class="ti pull-left">配送商</div>
  343. <div class="pull-right">{{peisongShowName ? peisongShowName : '请选择'}}<img src="/images/mobile/user/icon-right.png"/></div>
  344. </div>
  345. <div class="sendGoods_list clearfix">
  346. <div class="ti pull-left">运单号</div>
  347. <div class="pull-right"><input type="number" placeholder="请输入运单号" v-model="sendGoodsInfo.kuaidinumber"/></div>
  348. </div>
  349. <div class="sendGoods_Btn" @click="saveSendGoods()">
  350. 确定
  351. </div>
  352. </div>
  353. </div>
  354. <!-- /end 发货弹窗 -->
  355. <!-- 选择配送商 -->
  356. <div class="mobile-modal" v-if="peisongShow">
  357. <div class="peisong_Alert">
  358. <div class="com-mobile-header" >
  359. <a @click="peisongShow = false"><i class="iconfont icon-fanhui"></i></a>
  360. <p>选择配送商
  361. </p>
  362. </div>
  363. <div class="search-content">
  364. <input type="text" v-model="seekKeyword" placeholder="请输入您要查找的配送商" @keyup.13="searchSeek" ref="searchSeekInput" @focus="inputGetFocus()" @blur="blur()">
  365. <span @click="searchSeek" >
  366. <i class="iconfont icon-sousuo"></i>
  367. </span>
  368. </div>
  369. <ul>
  370. <li class="clearfix" v-for="(item, index) in peisongList" @click="selectPeisong(index, item)">
  371. <div class="name pull-left">{{item.companyName}}</div>
  372. <div class="pull-right target" :class="peisongChooseIndex === index ? 'active' : ''"></div>
  373. </li>
  374. </ul>
  375. <div @click="savePeisongChoose()" class="sendGoods_Btn">保存</div>
  376. </div>
  377. </div>
  378. <!-- /end 选择配送商 -->
  379. <!-- 删除订单 -->
  380. <!-- 删除提示框 -->
  381. <div class="deleteKuang" v-if="showDeleteAlert" @touchmove="preventTouchMove($event)">
  382. <div class="kuangContent">
  383. <div class="title">删除信息</div>
  384. <div class="titleinfo">是否删除此订单</div>
  385. <!--<div class="info" v-show="isUploadpro">*存在已上架信息</div>-->
  386. <div class="K_btn">
  387. <div class="cancelBtn" @click="showDeleteAlert = false">取消</div>
  388. <div class="answerBtn" @click="deleteFn()">确定</div>
  389. </div>
  390. </div>
  391. </div>
  392. <!-- /end 删除订单 -->
  393. <!-- 取消订单原因弹窗 -->
  394. <div class="mobile-modal" v-if="showBuyerAlert" @touchmove="preventTouchMove($event)">
  395. <div class="cancelOrder">
  396. <div class="sendGoods_title">取消订单<span><i class="iconfont icon-guanbi1" @click="showBuyerAlert = false"></i></span></div>
  397. <div class="cancelOrder_title">请选择取消订单的原因(必选):</div>
  398. <ul>
  399. <li v-for="(item, index) in cancelList" class="clearfix" @click="ChooseOrderCancel(item, index)">
  400. <div class="target pull-left" :class="index === OrderCancelIndex ? 'active' : ''"></div>
  401. <div class="name pull-left">{{item}}</div>
  402. </li>
  403. </ul>
  404. <div @click="cancenFn()" class="sendGoods_Btn">确定</div>
  405. </div>
  406. </div>
  407. <!-- /end 取消订单原因弹窗 -->
  408. <!-- 联系卖买家 -->
  409. <div class="mobile-modal" v-if="showStoreInfo" @touchmove="preventTouchMove($event)">
  410. <div class="mobile-modal-box mobile-link-en">
  411. <div class="mobile-modal-header">联系方式<i @click="showStoreInfo = false" class="icon-guanbi iconfont"></i></div>
  412. <div class="mobile-modal-content">
  413. <div v-if="vendorType === 'buyer'">
  414. <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>
  415. <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>
  416. <div v-if="checkInfo(cancatInfo.enterprise.enWeixin)" class="clearfix"><span >微信:</span><span class="content-line">{{cancatInfo.enterprise.enWeixin}}</span></div>
  417. <div v-if="checkInfo(cancatInfo.enterprise.enQQ)" class="clearfix"><span >Q&nbsp;Q:</span><span class="content-line">{{cancatInfo.enterprise.enQQ}}</span></div>
  418. <div v-if="!empty">暂无联系方式</div>
  419. </div>
  420. <div v-else>
  421. <div v-if="checkInfo(cancatInfo.entel)"><span>电话:</span><a :href="'tel:' + cancatInfo.entel" target="_blank" class="content-line link-url">{{cancatInfo.entel}}</a></div>
  422. <div v-else><span></span>抱歉,暂时无法与买家在线沟通!</div>
  423. </div>
  424. </div>
  425. </div>
  426. </div>
  427. <!-- /联系买卖家 -->
  428. <remind-box :title="collectResult" :timeoutCount="timeoutCount"></remind-box>
  429. </div>
  430. </template>
  431. <script>
  432. import axios from '~plugins/axios'
  433. import { RemindStr } from '~components/mobile/base'
  434. import { EncryptionFilter } from '~utils/tools.js'
  435. import { RemindBox } from '~components/mobile/common'
  436. export default {
  437. name: 'orderdetails',
  438. layout: 'mobile',
  439. middleware: 'authenticated',
  440. data() {
  441. return {
  442. showRemindStr: false, // 是否显示减免说明
  443. ShowFixedBtn: false, // 是否显示悬浮按钮
  444. showStoreInfo: false, // 联系信息弹窗
  445. showinvoiceType: false, // 是否展示发票信息
  446. cancatInfo: {
  447. enterprise: ''
  448. }, // 联系信息
  449. isSearchSearchingMore: false,
  450. collectResult: '',
  451. timeoutCount: 0,
  452. orderList: {}, // 订单列表
  453. showSend: false, // 是否显示发货弹窗
  454. sendGoodsInfo: { // 发货弹窗对象
  455. area: {}
  456. },
  457. status: '1', // 物流状态
  458. peisongShow: false, // 是否显示配送商选择弹窗
  459. seekKeyword: '',
  460. peisongChooseIndex: 0, // 配送商选择下标
  461. peisongList: [], // 配送商数组
  462. peisongShowName: '', // 选择完后的配送
  463. showDeleteAlert: false, // 是否显示删除订单
  464. sellsendGoodsTime: '', // 卖家发货时间
  465. showBuyerAlert: false, // 买家取消订单原因
  466. cancelList: ['我不想买了', '信息填写有误,重新购买', '先看看样品再下单', '付款遇到问题(如余额不足、超出限额等)', '买错了', '其他原因'], // 取消订单原因数组
  467. $CancenOrderId: '', // 取消订单id
  468. $Orderreason: '', // 取消订单原因
  469. OrderCancelIndex: '', // 取消订单原因下标
  470. showItem: 3, // 允许展示多个产品
  471. invoiceAddress: {}, // 发票信息
  472. logisticsInfo: [] // 物流信息
  473. }
  474. },
  475. async asyncData({route}) {
  476. if (route.query.type === 'buyer') {
  477. let sellsendGoodsTime
  478. let { data } = await axios.get(`/trade/order/${route.query.uuid}`)
  479. data[0].area = JSON.parse(data[0].jsonAddress)
  480. data[0].rule = JSON.parse(data[0].jsonRule)
  481. data[0].paytype = route.query.paytype
  482. data[0].historyS = JSON.parse(data[0].statushistory)
  483. data[0].purchaseDetails = data[0].orderDetails
  484. data[0].purchaseRemark = data[0].orderRemark ? JSON.parse(data[0].orderRemark)[data[0].storeid] : ''
  485. data[0].sendType = data[0].rule.method
  486. let invoiceAddress = data[0].invoiceAddress ? JSON.parse(data[0].invoiceAddress) : ''
  487. if (route.query.type === 'buyer') {
  488. sellsendGoodsTime = await axios.get(`/trade/tradebasicproperties/get/1054`)
  489. }
  490. return {
  491. orderList: data[0],
  492. sellsendGoodsTime: parseInt(sellsendGoodsTime.data.info),
  493. invoiceAddress: invoiceAddress
  494. }
  495. }
  496. let { data } = await axios.get(`/trade/purchase/purchaseId/${route.query.uuid}`)
  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. display:inline-block;
  1250. vertical-align: middle;
  1251. font-size: 0.22rem;
  1252. color: #fff;
  1253. width: 0.6rem;
  1254. height: 0.28rem;
  1255. border-radius:.05rem;
  1256. text-align: center;
  1257. line-height: 0.25rem;
  1258. background: #15b262;
  1259. margin: 0 0.1rem;
  1260. }
  1261. }
  1262. .list-all-info{
  1263. text-align: right;
  1264. background: #fff;
  1265. padding: 0 0.1rem;
  1266. @include lineHeight(0.72rem);
  1267. font-size: 0.26rem;
  1268. color: #333;
  1269. border-bottom: 1px solid #e4e4e4;
  1270. span {
  1271. display: inline-block;
  1272. }
  1273. .pri {
  1274. font-size: 0.32rem;
  1275. color: #f43938;
  1276. }
  1277. .red {
  1278. color: #f43938;
  1279. font-size: 0.24rem;
  1280. }
  1281. .lab {
  1282. color: #999;
  1283. font-size: 0.24rem;
  1284. }
  1285. .del {
  1286. text-decoration: line-through;
  1287. color: #999;
  1288. font-size: 0.24rem;
  1289. }
  1290. }
  1291. .order-details-info {
  1292. background: #fff;
  1293. margin-top: 0.2rem;
  1294. .clearfix{
  1295. padding: 0 0.2rem;
  1296. font-size: 0.28rem;
  1297. color: #333;
  1298. .pull-left {
  1299. @include lineHeight(0.88rem);
  1300. }
  1301. img {
  1302. width: 0.18rem;
  1303. height: 0.32rem;
  1304. vertical-align: top;
  1305. margin-top: 0.3rem;
  1306. margin-left: 0.1rem;
  1307. margin-right: 0.1rem;
  1308. }
  1309. border-bottom: 1px solid #e4e4e4;
  1310. .pull-right {
  1311. max-width: 5rem;
  1312. text-align: right;
  1313. }
  1314. .smallfont{
  1315. color: #666;
  1316. }
  1317. }
  1318. }
  1319. .order-details-moreinfo {
  1320. background: #fff;
  1321. font-size: 0.24rem;
  1322. color: #999;
  1323. padding: 0.2rem 0;
  1324. margin-bottom: 0.8rem;
  1325. .clearfix.moreinfoList {
  1326. padding: 0 0.2rem;
  1327. /*border-bottom: 1px solid #e4e4e4;*/
  1328. .pull-left {
  1329. div {
  1330. @include lineHeight(0.5rem);
  1331. }
  1332. }
  1333. }
  1334. margin-top: 0.2rem;
  1335. .copyBtn {
  1336. width: 1.1rem;
  1337. border-radius: 3px;
  1338. border: 1px solid #dfdfdf;
  1339. @include lineHeight(0.4rem);
  1340. text-align: center;
  1341. padding: 0 0.2rem;
  1342. }
  1343. .list-btn {
  1344. position: fixed;
  1345. bottom: 0.98rem;
  1346. width: 100%;
  1347. left: 0;
  1348. background: #fff;
  1349. height: 0.8rem;
  1350. border-top: 1px solid #dcdcdc;
  1351. div {
  1352. float: right;
  1353. width: 1.5rem;
  1354. @include lineHeight(0.56rem);
  1355. background: #3f84f6;
  1356. color: #fff;
  1357. border-radius: 3px;
  1358. text-align: center;
  1359. font-size: 0.26rem;
  1360. margin-top: 0.15rem;
  1361. margin-right: 0.2rem;
  1362. }
  1363. }
  1364. }
  1365. .logistics_ul {
  1366. background: #fff;
  1367. li.clearfix {
  1368. position: relative;
  1369. border-left: 2px solid #e4e5ea;
  1370. margin-left: 0.2rem;
  1371. border-bottom: 0px;
  1372. .pull-left {
  1373. position: absolute;
  1374. left: -7px;
  1375. top: 0.36rem;
  1376. .logistics_icon {
  1377. width: 12px;
  1378. height: 12px;
  1379. border-radius: 50%;
  1380. background: #b5b5b5;
  1381. &.active {
  1382. width: 20px;
  1383. height: 20px;
  1384. border-radius: 50%;
  1385. background: rgba(0, 0, 0, 0);
  1386. position: relative;
  1387. &~.logistics_line {
  1388. margin-left: 9px;
  1389. }
  1390. .red {
  1391. position: absolute;
  1392. width: 12px;
  1393. height: 12px;
  1394. background: #0ca43a;
  1395. margin-left: 4px;
  1396. margin-top: 4px;
  1397. border-radius: 50%;
  1398. }
  1399. }
  1400. }
  1401. &.marginL {
  1402. left: -10px;
  1403. top: -0.1rem
  1404. }
  1405. }
  1406. .pull-right {
  1407. padding-top: 0.2rem;
  1408. font-size: 0.24rem;
  1409. color: #333;
  1410. border-bottom: 1px solid #f3f3f3;
  1411. padding-bottom: 0.2rem;
  1412. max-width: 6.4rem;
  1413. width: 6.4rem;
  1414. .logistics_time {
  1415. @include lineHeight(20px);
  1416. }
  1417. .logistics_info {
  1418. margin-top: 0.2rem;
  1419. word-break:break-all;
  1420. word-wrap: break-word;
  1421. line-height: 0.45rem
  1422. }
  1423. &.marginT {
  1424. padding-top: 0;
  1425. margin-top: -0.1rem;
  1426. }
  1427. }
  1428. }
  1429. }
  1430. }
  1431. .sendGoods_Alert {
  1432. background: #fff;
  1433. position: fixed;
  1434. bottom: 0.98rem;
  1435. left: 0;
  1436. width: 100%;
  1437. border-top-left-radius: 5px;
  1438. border-top-right-radius: 5px;
  1439. overflow: hidden;
  1440. .sendGoods_title {
  1441. color: #333;
  1442. font-size: 0.42rem;
  1443. text-align: center;
  1444. line-height: 1rem;
  1445. font-weight: 600;
  1446. position: relative;
  1447. i {
  1448. position: absolute;
  1449. font-size: 16px;
  1450. right: 0.2rem;
  1451. }
  1452. }
  1453. .sendGoods_buyer {
  1454. padding: 0.3rem 0.2rem;
  1455. border-bottom: 1px solid #d9d9d9;
  1456. border-top: 1px solid #d9d9d9;
  1457. .sendGoods_buyer_top {
  1458. color: #333;
  1459. font-size: 0.3rem;
  1460. font-weight: bold;
  1461. .name {
  1462. margin-right: 0.3rem;
  1463. margin-left: 0.32rem;
  1464. }
  1465. }
  1466. .sendGoods_buyer_bottom {
  1467. color: #333;
  1468. font-size: 0.26rem;
  1469. margin-top: 0.2rem;
  1470. img {
  1471. width: 0.22rem;
  1472. height: 0.29rem;
  1473. margin-right: 0.1rem;
  1474. margin-top: -0.1rem;
  1475. }
  1476. }
  1477. }
  1478. .sendGoods_list {
  1479. padding: 0 0.2rem;
  1480. @include lineHeight(0.8rem);
  1481. border-bottom: 1px solid #d9d9d9;
  1482. font-size: 0.32rem;
  1483. color: #333;
  1484. /*.ti {*/
  1485. /*font-weight: bold;*/
  1486. /*}*/
  1487. .pull-right {
  1488. font-size: 0.28rem;
  1489. color: #999;
  1490. img {
  1491. width: 0.14rem;
  1492. height: 0.24rem;
  1493. vertical-align: middle;
  1494. margin-top: -0.02rem;
  1495. margin-left: 0.1rem;
  1496. }
  1497. }
  1498. input {
  1499. width: 4rem;
  1500. text-align: right;
  1501. color: #333;
  1502. }
  1503. }
  1504. .sendGoods_Btn {
  1505. @include lineHeight(1rem);
  1506. text-align: center;
  1507. color: #fff;
  1508. font-size: 0.36rem;
  1509. background: #3f84f6;
  1510. }
  1511. }
  1512. .search-content {
  1513. margin-top: 0.88rem;
  1514. margin-bottom: 0.2rem;
  1515. text-align: center;
  1516. padding: .25rem 0 0 0;
  1517. input {
  1518. border: 1px solid #376ff3;
  1519. }
  1520. span {
  1521. height: .46rem;
  1522. line-height: .46rem;
  1523. }
  1524. }
  1525. .peisong_Alert {
  1526. background: #f1f3f6;
  1527. position: fixed;
  1528. bottom: 0.98rem;
  1529. left: 0;
  1530. right: 0;
  1531. top: 0;
  1532. z-index: 11111;
  1533. ul {
  1534. height: calc(100vh - 1.2rem - 1.7rem);
  1535. overflow-y: scroll;
  1536. li {
  1537. line-height: 1rem;
  1538. background: #fff;
  1539. padding: 0 0.2rem;
  1540. font-size: 0.28rem;
  1541. color: #333;
  1542. border-bottom: 1px solid #e0e1e2;
  1543. div.name {
  1544. @include overFlowHidden();
  1545. }
  1546. div.target {
  1547. width: 0.36rem;
  1548. height: 0.36rem;
  1549. border-radius: 50%;
  1550. overflow: hidden;
  1551. border: 1px solid #a4a4a4;
  1552. margin-top: 0.3rem;
  1553. &.active {
  1554. background-image: url('/images/order/getChoose_icon.png');
  1555. background-size: 100% 100%;
  1556. border: 0px;
  1557. }
  1558. }
  1559. }
  1560. }
  1561. .sendGoods_Btn {
  1562. @include lineHeight(1rem);
  1563. text-align: center;
  1564. color: #fff;
  1565. font-size: 0.36rem;
  1566. background: #3f84f6;
  1567. }
  1568. }
  1569. .deleteKuang {
  1570. position: fixed;
  1571. background: rgba(0,0,0,0.5);
  1572. top: 0;
  1573. left: 0;
  1574. right: 0;
  1575. bottom: 0;
  1576. z-index: 9999;
  1577. .kuangContent {
  1578. border-radius: 5px;
  1579. background: #fff;
  1580. width: 5rem;
  1581. position: absolute;
  1582. left: 50%;
  1583. top: 50%;
  1584. transform: translate3d(-50%, -50%, 0);
  1585. overflow: hidden;
  1586. .titleinfo {
  1587. font-size: .3rem;
  1588. color: #666;
  1589. text-align: center;
  1590. margin-top: 0.5rem;
  1591. margin-bottom: 0.1rem;
  1592. }
  1593. .title {
  1594. background: #5078cb;
  1595. height: .7rem;
  1596. line-height: .7rem;
  1597. font-size: .3rem;
  1598. color: #fff;
  1599. text-align: center;
  1600. }
  1601. .info {
  1602. color: #f00;
  1603. text-align: center;
  1604. }
  1605. .K_btn {
  1606. margin-top: 0.4rem;
  1607. line-height: 0.7rem;
  1608. height: 0.7rem;
  1609. &::after{
  1610. clear: both;
  1611. display: block;
  1612. content: ' ';
  1613. visibility: hidden;
  1614. zoom: 1;
  1615. }
  1616. div {
  1617. float: left;
  1618. width: 50%;
  1619. font-size: 0.3rem;
  1620. text-align: center;
  1621. &.cancelBtn {
  1622. background: #b4b5b9;
  1623. color: #333;
  1624. }
  1625. &.answerBtn {
  1626. background: #5078cb;
  1627. color: #fff;
  1628. }
  1629. }
  1630. }
  1631. }
  1632. i {
  1633. font-size: .6rem;
  1634. position: absolute;
  1635. right: -0.3rem;
  1636. top: -0.35rem;
  1637. color: #fff;
  1638. &::after{
  1639. position: absolute;
  1640. top: -0.1rem;
  1641. left: -0.1rem;
  1642. right: -0.1rem;
  1643. bottom: -0.1rem;
  1644. content: ' '
  1645. }
  1646. }
  1647. .title {
  1648. background: #3f84f6;
  1649. height: 0.7rem;
  1650. line-height: 0.7rem;
  1651. color: #fff;
  1652. text-align: center;
  1653. font-size: 0.3rem;
  1654. position: relative;
  1655. }
  1656. .Kuang {
  1657. max-height: 10rem;
  1658. width: 6.7rem;
  1659. position: absolute;
  1660. left: 50%;
  1661. top: 50%;
  1662. transform: translate3d(-50%, -50%, 0);
  1663. background: #ececec;
  1664. border-radius: 5px;
  1665. }
  1666. .content {
  1667. overflow-y: scroll;
  1668. max-height: 9.3rem;
  1669. .infob {
  1670. background: #e3edfd;
  1671. padding: 0.2rem;
  1672. .info {
  1673. color: #333;
  1674. font-size: 0.3rem;
  1675. overflow: hidden;
  1676. text-overflow: ellipsis;
  1677. white-space: nowrap;
  1678. margin-bottom: 0.18rem;
  1679. .name {
  1680. color: #666;
  1681. }
  1682. div {
  1683. display: inline-block;
  1684. }
  1685. }
  1686. }
  1687. .content_sq {
  1688. width: 6.4rem;
  1689. margin: 0.1rem auto;
  1690. background: #fff;
  1691. padding: 0.2rem 0rem;
  1692. .list {
  1693. margin-bottom: 0.18rem;
  1694. }
  1695. .fl {
  1696. width: 3.2rem;
  1697. }
  1698. .table {
  1699. width: 4.2rem;
  1700. margin-top: -0.1rem;
  1701. }
  1702. .labelinfo {
  1703. background-image: url('/images/mobile/@2x/labelTop.png');
  1704. background-repeat: no-repeat;
  1705. width: 6.29rem;
  1706. height: 0.64rem;
  1707. line-height: 0.64rem;
  1708. background-size: 100%;
  1709. margin-top: 0rem;
  1710. margin-right: 0rem;
  1711. background-color: rgba(0, 0, 0, 0);
  1712. color: #666;
  1713. }
  1714. }
  1715. }
  1716. }
  1717. .cancelOrder {
  1718. background: #fff;
  1719. position: absolute;
  1720. bottom: 0.98rem;
  1721. left: 0;
  1722. width: 100%;
  1723. border-top-left-radius: 5px;
  1724. border-top-right-radius: 5px;
  1725. overflow: hidden;
  1726. .sendGoods_title {
  1727. color: #333;
  1728. font-size: 0.42rem;
  1729. text-align: center;
  1730. line-height: 1rem;
  1731. font-weight: 600;
  1732. position: relative;
  1733. i {
  1734. position: absolute;
  1735. font-size: 16px;
  1736. right: 0.2rem;
  1737. }
  1738. }
  1739. .cancelOrder_title {
  1740. font-size: 0.36rem;
  1741. color: #333;
  1742. border-bottom: 1px solid #d9d9d9;
  1743. font-weight: bold;
  1744. padding: 0 0.2rem;
  1745. line-height: 0.6rem;
  1746. }
  1747. ul {
  1748. li {
  1749. line-height: 1rem;
  1750. background: #fff;
  1751. padding: 0 0.2rem;
  1752. font-size: 0.32rem;
  1753. color: #333;
  1754. border-bottom: 1px solid #d9d9d9;
  1755. div.name {
  1756. @include overFlowHidden();
  1757. }
  1758. div.target {
  1759. margin-right: 0.2rem;
  1760. width: 0.36rem;
  1761. height: 0.36rem;
  1762. border-radius: 50%;
  1763. overflow: hidden;
  1764. border: 1px solid #a4a4a4;
  1765. margin-top: 0.3rem;
  1766. &.active {
  1767. background-image: url('/images/order/getChoose_icon.png');
  1768. background-size: 100% 100%;
  1769. border: 0px;
  1770. }
  1771. }
  1772. }
  1773. }
  1774. .sendGoods_Btn {
  1775. @include lineHeight(1rem);
  1776. text-align: center;
  1777. color: #fff;
  1778. font-size: 0.36rem;
  1779. background: #3f84f6;
  1780. }
  1781. }
  1782. .labelInfo_ForItem {
  1783. color: #fff;
  1784. font-size: 0.24rem;
  1785. padding: 0.05rem 0.1rem;
  1786. background: #15b262;
  1787. margin-right: 0.1rem;
  1788. border-radius: 3px;
  1789. }
  1790. .mobile-link-en2 {
  1791. width: 7.04rem;
  1792. left: 2.5%;
  1793. }
  1794. .order-details-invoiceinfo {
  1795. background: #f3f3f3;
  1796. padding: 0.2rem;
  1797. border-bottom-left-radius: 0.07rem;
  1798. border-bottom-right-radius: 0.07rem;
  1799. .order-details-invoiceinfo-content {
  1800. background: #fff;
  1801. padding: 0.3rem 0.2rem;
  1802. border-radius: 0.07rem;
  1803. position: relative;
  1804. border: 1px solid #dcdcdc;
  1805. img {
  1806. position: absolute;
  1807. right: 0px;
  1808. top: 0px;
  1809. width: 0.85rem;
  1810. height: 0.85rem;
  1811. }
  1812. }
  1813. .invoiceList {
  1814. font-size: 0.24rem;
  1815. color: #666;
  1816. line-height: 0.5rem;
  1817. .pull-left {
  1818. &:first-child {
  1819. width: 2.2rem;
  1820. text-align: right;
  1821. @include overFlowHidden();
  1822. }
  1823. &:last-child{
  1824. width: 3.9rem;
  1825. word-break:break-all;
  1826. word-wrap:break-word;
  1827. }
  1828. }
  1829. }
  1830. }
  1831. .overHiddenText {
  1832. @include overFlowHidden();
  1833. max-width: 3rem;
  1834. }
  1835. .justifyAlign {
  1836. width: 1.2rem;
  1837. display:inline-block;
  1838. text-align: justify;
  1839. vertical-align:top;
  1840. }
  1841. .justifyAlign::after{
  1842. content:"";
  1843. display: inline-block;
  1844. width:100%;
  1845. overflow:hidden;
  1846. height:0;
  1847. }
  1848. }
  1849. </style>