details.vue 72 KB

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