details.vue 59 KB

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