details.vue 60 KB

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