details.vue 59 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556
  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 || orderList.status === 520 || orderList.status === 405 || orderList.status === 503 || orderList.status === 514)">
  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. if (route.query.type === 'buyer') {
  431. sellsendGoodsTime = await axios.get(`/trade/tradebasicproperties/get/1054`)
  432. }
  433. return {
  434. orderList: data[0],
  435. sellsendGoodsTime: parseInt(sellsendGoodsTime.data.info)
  436. }
  437. }
  438. let { data } = await axios.get(`/trade/purchase/purchaseId/${route.query.uuid}`)
  439. console.log(data)
  440. data.data.area = JSON.parse(data.data.jsonAddress)
  441. data.data.rule = data.data.jsonRule ? JSON.parse(data.data.jsonRule) : ''
  442. data.data.paytype = route.query.paytype
  443. data.data.historyS = JSON.parse(data.data.statushistory)
  444. let invoiceAddress = data.data.invoiceAddress ? JSON.parse(data.data.invoiceAddress) : ''
  445. return {
  446. orderList: data.data,
  447. invoiceAddress: invoiceAddress
  448. }
  449. },
  450. computed: {
  451. vendorType() {
  452. return this.$route.query.type
  453. },
  454. shopuuid() {
  455. return this.$store.state.option.storeStatus.data
  456. },
  457. empty () {
  458. 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)
  459. }
  460. },
  461. filters: {
  462. priceFiter(val) {
  463. if (!val) return '0.00'
  464. return val.toFixed(2)
  465. }
  466. },
  467. created() {
  468. if (this.orderList.lgtId && this.vendorType !== 'buyer') {
  469. this.$http.get(`/trade/logistics/${this.orderList.lgtId}`).then(data => {
  470. this.$http.get(`/kdn/logistics/query?companyName=${data.data.companyName}&logisticsCode=${data.data.number}`).then(res => {
  471. let str = res.data.traces
  472. if (str.indexOf('揽件') !== -1 || str.indexOf('收件') !== -1 || str.indexOf('转运') !== -1 || str.indexOf('运输') !== -1 || str.indexOf('发往') !== -1 ||
  473. str.indexOf('发出') !== -1 || str.indexOf('收入') !== -1 || str.indexOf('扫描') !== -1 || str.indexOf('到达') !== -1) {
  474. this.status = 'transit'
  475. }
  476. if (str.indexOf('派送') !== -1 || str.indexOf('派件') !== -1) {
  477. this.status = 'send'
  478. }
  479. if (str.indexOf('签收') !== -1) {
  480. this.status = 'signin'
  481. }
  482. })
  483. })
  484. }
  485. },
  486. methods: {
  487. // 确认付款
  488. gotoPay(item) {
  489. let id = EncryptionFilter(item.orderid)
  490. this.$router.push(`/mobile/center/user/doPay/${id}`)
  491. },
  492. // 店铺详情页
  493. toShopdetails(item) {
  494. this.$router.push(`/mobile/shop/${item.storeid}`)
  495. },
  496. // 产品详情页
  497. toproductdetails(item) {
  498. this.$router.push(`/mobile/product/${item.batchCode}`)
  499. },
  500. // 返回剩余时间
  501. restTime() {
  502. for (let i = 0; i < this.orderList.historyS.length; i++) {
  503. if (this.orderList.historyS[i].status === 404) {
  504. let h = 360 - this._getHoursFromNow(this.orderList.historyS[i].time)
  505. let day = parseInt(h) / 24
  506. let hours = parseInt(h) % 24
  507. return '还剩 ' + parseInt(day) + '天' + parseInt(hours) + '小时自动确认'
  508. }
  509. }
  510. return ''
  511. },
  512. checkInfo: function (str) {
  513. return str && str.trim() !== ''
  514. },
  515. // 联系买卖家
  516. cancatAlert() {
  517. this.showStoreInfo = true
  518. if (this.vendorType === 'buyer') {
  519. this.$http.get(`/api/store-service/stores?uuid=${this.orderList.storeid}&condition=store_uuid`).then(res => {
  520. this.cancatInfo = res.data
  521. })
  522. } else {
  523. this.$http.get(`/basic/enterprise/${this.orderList.buyerenuu}/tels`).then(res => {
  524. this.cancatInfo = res.data.data
  525. })
  526. }
  527. },
  528. getOverTiem(status) {
  529. for (let j = 0; j < this.orderList.historyS.length; j++) {
  530. if (this.orderList.historyS[j].status === status) {
  531. return this.orderList.historyS[j].time
  532. }
  533. }
  534. return ''
  535. },
  536. // 是否为分期付款
  537. installmentDetailPaid(item) {
  538. if (!item.installment) return false
  539. let _flag = false
  540. item.installment.installmentDetails.forEach(list => {
  541. if (list.detno === item.installment.currentNo && list.status === 504) {
  542. _flag = true
  543. }
  544. })
  545. return _flag
  546. },
  547. // 发货
  548. sendGoods(item) {
  549. this.sendGoodstype = 'add'
  550. if (item.inid) {
  551. this._id = EncryptionFilter(item.inid)
  552. this.$http.get(`/trade/inFpu/tobeshipped/${this._id}`).then(res => {
  553. this.sendGoodsInfo = res.data[0]
  554. this.sendGoodsInfo.area = JSON.parse(res.data[0].jsonSpAddress)
  555. this.showSend = true
  556. })
  557. } else {
  558. this.$http.get(`/trade/purchase/vendor/tobeshiped/${item.id}`).then(res => {
  559. this._id = EncryptionFilter(res.data.inId)
  560. this.$http.get(`/trade/inFpu/tobeshipped/${this._id}`).then(res => {
  561. this.sendGoodsInfo = res.data[0]
  562. this.sendGoodsInfo.area = JSON.parse(res.data[0].jsonSpAddress)
  563. this.showSend = true
  564. })
  565. }, err => {
  566. this.onMind('转出货单失败' + err.data)
  567. })
  568. }
  569. },
  570. // 选择配送商
  571. choosePeisong() {
  572. this.seekKeyword = ''
  573. if (this.peisongList.length > 0) {
  574. this.peisongList = this.AllpeisongList.slice()
  575. this.peisongShow = true
  576. return
  577. }
  578. this.$http.get('/trade/distributor/selected').then(res => {
  579. this.AllpeisongList = res.data
  580. this.peisongList = res.data
  581. this.peisongList.splice(0, 0, {
  582. companyName: '请选择配送商'
  583. })
  584. this.peisongShow = true
  585. })
  586. },
  587. // 配送商列表选择
  588. selectPeisong(index, item) {
  589. this.peisongChooseIndex = index
  590. this.peisongChooseItem = item
  591. },
  592. // 确定选择当前配送商
  593. savePeisongChoose() {
  594. this.peisongShow = false
  595. this.peisongShowName = this.peisongChooseItem.companyName === '请选择配送商' ? '' : this.peisongChooseItem.companyName
  596. },
  597. // 发货最终步骤
  598. saveSendGoods() {
  599. // 发货
  600. if (this.sendGoodstype === 'add') {
  601. let patt = new RegExp('^[A-Za-z0-9]+$')
  602. if (this.peisongShowName === '') {
  603. this.onMind('请选择配送商')
  604. } else if (!this.sendGoodsInfo.kuaidinumber) {
  605. this.onMind('请填写物流单号')
  606. } else if (!patt.test(this.sendGoodsInfo.kuaidinumber)) {
  607. this.onMind('请输入正确的物流单号')
  608. } else {
  609. let sendInfo = this.getLogisticsInfo()
  610. this.$http.post(`/trade/inFpu/save?id=${this.sendGoodsInfo.id}`, sendInfo).then(res => {
  611. if (res.data.success) {
  612. this.onMind('发货成功')
  613. setTimeout(() => {
  614. location.reload()
  615. this.showSend = false
  616. this.peisongChooseIndex = 0
  617. this.peisongChooseItem = {companyName: '请选择配送商'}
  618. }, 1500)
  619. }
  620. })
  621. }
  622. } else if (this.sendGoodstype === 'change') {
  623. // 修改物流
  624. let sendInfo = this.getLogisticsInfo('change')
  625. let patt = new RegExp('^[A-Za-z0-9]+$')
  626. if (!this.sendGoodsInfo.lgtId) {
  627. // 如果快递公司 以及 快递编号为空
  628. if (!this.peisongShowName && !this.sendGoodsInfo.kuaidinumber) {
  629. this.showSend = false
  630. return
  631. }
  632. // 如果快递公司为空
  633. if (!this.peisongShowName && this.sendGoodsInfo.kuaidinumber) {
  634. this.onMind('请选择配送商')
  635. return
  636. } else if (!this.sendGoodsInfo.kuaidinumber) {
  637. this.onMind('请填写物流单号')
  638. return
  639. } else if (!patt.test(this.sendGoodsInfo.kuaidinumber)) {
  640. this.onMind('请输入正确的物流单号')
  641. return
  642. }
  643. // 没有物流信息则添加物流信息
  644. this.$http.post(`/trade/logistics/add?inid=${this.sendGoodsInfo.inid}`, sendInfo).then(res => {
  645. if (res.data.success) {
  646. this.onMind('物流信息保存成功')
  647. setTimeout(() => {
  648. location.reload()
  649. this.peisongChooseIndex = 0
  650. this.peisongChooseItem = {companyName: '请选择配送商'}
  651. this.showSend = false
  652. }, 1500)
  653. }
  654. })
  655. } else {
  656. if (this.ChangeInfoObj.number === this.sendGoodsInfo.kuaidinumber && this.peisongShowName === this.ChangeInfoObj.peisongShowName) {
  657. this.showSend = false
  658. return
  659. }
  660. if (this.peisongShowName !== '' || this.sendGoodsInfo.kuaidinumber !== '') {
  661. // 如果用户未做任何信息修改
  662. if (!this.peisongShowName) {
  663. this.onMind('请选择配送商')
  664. return
  665. } else if (!this.sendGoodsInfo.kuaidinumber) {
  666. this.onMind('请填写物流单号')
  667. return
  668. } else if (!patt.test(this.sendGoodsInfo.kuaidinumber)) {
  669. this.onMind('请输入正确的物流单号')
  670. return
  671. }
  672. this.$http.post(`/trade/logistics/${this.sendGoodsInfo.lgtId}?invoiceFuid=${this.sendGoodsInfo.inid}`, sendInfo).then(res => {
  673. if (res.data.success) {
  674. this.onMind('修改物流信息成功')
  675. setTimeout(() => {
  676. location.reload()
  677. this.peisongChooseIndex = 0
  678. this.peisongChooseItem = {companyName: '请选择配送商'}
  679. this.showSend = false
  680. }, 1500)
  681. }
  682. })
  683. } else {
  684. if (this.sendGoodsInfo.sendType !== 1301) {
  685. // 如果清空了物流信息
  686. this.$http.put(`/trade/logistics/clear?inid=${this.sendGoodsInfo.inid}`).then(res => {
  687. if (res.data.success) {
  688. this.onMind('修改物流信息成功')
  689. setTimeout(() => {
  690. location.reload()
  691. this.peisongChooseIndex = 0
  692. this.peisongChooseItem = {companyName: '请选择配送商'}
  693. this.showSend = false
  694. }, 1500)
  695. }
  696. })
  697. }
  698. }
  699. }
  700. }
  701. },
  702. // 买家取消订单
  703. cancelOrder(item) {
  704. this.$CancenOrderId = item.orderid
  705. this.showBuyerAlert = true
  706. },
  707. // 买家取消订单原因选择
  708. ChooseOrderCancel(item, index) {
  709. this.OrderCancelIndex = index
  710. this.$Orderreason = item
  711. },
  712. // 买家提醒卖家发货
  713. paidTime(item) {
  714. item = this.baseUtils.deepCopy(item)
  715. if (this._getHoursFromNow(item.paytime) < this.sellsendGoodsTime) {
  716. this.onMind('距离付款的时间还不到' + this.sellsendGoodsTime + '小时,不能提醒发货')
  717. return
  718. }
  719. if (this._getHoursFromNow(item.lastNotifyDeliveryTime) < this.sellsendGoodsTime && this._getHoursFromNow(item.lastNotifyDeliveryTime) !== 0) {
  720. this.onMind('距离上次付款的时间还不到' + this.sellsendGoodsTime + '小时,不能提醒发货')
  721. return
  722. }
  723. this.$http.post(`/trade/message/order/${item.id}`).then(res => {
  724. let returnResult = res.data
  725. if (returnResult.status === 505 || returnResult.status === 406 || returnResult.status === 407 || returnResult.status === 403 || returnResult.status === 408) {
  726. this.onMind('提醒成功')
  727. location.reload()
  728. }
  729. })
  730. },
  731. // 取消订单确认事件
  732. cancenFn() {
  733. if (!this.$Orderreason || this.$Orderreason === '') {
  734. this.onMind('请选择取消订单的原因')
  735. } else {
  736. let reason = {
  737. reason: this.$Orderreason
  738. }
  739. this.$http.put(`/trade/order/simpleinfo/ones/${this.$CancenOrderId}/release`, reason).then(res => {
  740. this.onMind('取消订单成功,等待买家确认')
  741. this.$Orderreason = '我不想买了'
  742. this.OrderCancelIndex = 0
  743. location.reload()
  744. this.showBuyerAlert = false
  745. })
  746. }
  747. },
  748. // 修改物流
  749. changelogistics(item) {
  750. this.sendGoodstype = 'change'
  751. this.peisongShowName = ''
  752. this.sendGoodsInfo.kuaidinumber = ''
  753. let _obj = this.baseUtils.deepCopy(item)
  754. if (!item.lgtId) {
  755. // 如果没有订单编号
  756. this.sendGoodsInfo = _obj
  757. this.sendGoodsInfo.area = JSON.parse(_obj.jsonSdAddress)
  758. this.showSend = true
  759. this.ChangeInfoObj = {
  760. number: '',
  761. peisongShowName: ''
  762. }
  763. } else {
  764. this.$http.get(`/trade/logistics/${_obj.lgtId}`).then(res => {
  765. this.sendGoodsInfo = _obj
  766. this.sendGoodsInfo.area = JSON.parse(_obj.jsonSdAddress)
  767. this.sendGoodsInfo.kuaidinumber = res.data.number
  768. this.peisongShowName = res.data.companyName
  769. this.ChangeInfoObj = {
  770. number: res.data.number,
  771. peisongShowName: res.data.companyName
  772. }
  773. this.showSend = true
  774. })
  775. }
  776. },
  777. // 搜索
  778. searchSeek() {
  779. let _arr = this.AllpeisongList.slice()
  780. let addrPatt = /^[\u4e00-\u9fa5]+$/
  781. if (addrPatt.test(this.seekKeyword) && this.seekKeyword.length > 0) {
  782. this.peisongList = []
  783. this.peisongList = _arr.filter((data) => {
  784. if (data.companyName.indexOf(this.seekKeyword) >= 0) {
  785. return data
  786. }
  787. })
  788. this.peisongList.splice(0, 0, {
  789. companyName: '请选择配送商'
  790. })
  791. } else if (this.seekKeyword === '' || !this.seekKeyword) {
  792. this.peisongList = _arr
  793. }
  794. this.peisongChooseIndex = 0
  795. this.peisongChooseItem = {companyName: '请选择配送商'}
  796. },
  797. // 获取物流提交信息
  798. getLogisticsInfo(_type) {
  799. let sendInfo = {}
  800. sendInfo.sendType = this.sendGoodsInfo.sendType
  801. sendInfo.jsonSdAddress = this.sendGoodsInfo.jsonSpAddress
  802. sendInfo.logisticsInfo = {}
  803. if (this.peisongShowName) {
  804. sendInfo.logisticsInfo.companyName = this.peisongShowName
  805. }
  806. if (this.sendGoodsInfo.kuaidinumber) {
  807. sendInfo.logisticsInfo.number = this.sendGoodsInfo.kuaidinumber
  808. }
  809. return _type ? sendInfo.logisticsInfo : sendInfo
  810. },
  811. // 查看物流信息
  812. lookLogisticsInfo(item) {
  813. let id = item.purchaseid || item.orderid
  814. this.$router.push(`/mobile/order/logistics?uuid=${EncryptionFilter(id)}&type=${this.vendorType}`)
  815. },
  816. // 买家确认收货
  817. buyerGetGoods(item) {
  818. this.$http.put(`/trade/order/simpleinfo/ones/${item.id}?_status=ensureaccept`).then(res => {
  819. this.onMind('确认收货成功')
  820. location.reload()
  821. })
  822. },
  823. // 买卖家中心字段同步化
  824. _initSetParams(_obj) {
  825. _obj = this.baseUtils.deepCopy(_obj)
  826. for (let i = 0; i < _obj.length; i++) {
  827. if (!_obj[i].purchaseDetails) {
  828. _obj[i].purchaseDetails = _obj[i].orderDetails
  829. }
  830. if (_obj[i].status === 505 || _obj[i].status === 406 || _obj[i].status === 407 || _obj[i].status === 403 || _obj[i].status === 408) {
  831. _obj[i].paidTimeFromNow = this._getHoursFromNow(_obj[i].paytime)
  832. _obj[i].lastNotiDelivery = this._getHoursFromNow(_obj[i].lastNotifyDeliveryTime)
  833. }
  834. }
  835. return _obj
  836. },
  837. // 传入时间,计算距离现在的时间是多少小时了
  838. _getHoursFromNow(time) {
  839. if (!time) {
  840. return 0
  841. }
  842. let newTime = new Date()
  843. let msec = newTime.getTime() - time
  844. let hours = parseInt(parseInt(msec) / (1000 * 60 * 60))
  845. return hours
  846. },
  847. // 拷贝
  848. copyBtn() {
  849. let text = document.getElementById('orderNumber').innerText
  850. let input = document.getElementById('input')
  851. input.value = text // 修改文本框的内容
  852. input.select() // 选中文本
  853. if (document.execCommand('copy', false, null)) {
  854. this.onMind('复制成功')
  855. }
  856. },
  857. onMind(str) {
  858. this.collectResult = str
  859. this.timeoutCount++
  860. },
  861. blur: function() {
  862. setTimeout(() => {
  863. this.$store.dispatch('mobile/SetInputGetFocus', false)
  864. }, 300)
  865. },
  866. inputGetFocus: function() {
  867. setTimeout(() => {
  868. this.$store.dispatch('mobile/SetInputGetFocus', true)
  869. }, 300)
  870. }
  871. },
  872. components: {
  873. RemindBox
  874. }
  875. }
  876. </script>
  877. <style scoped lang='scss'>
  878. @mixin overFlowHidden {
  879. overflow: hidden;
  880. text-overflow: ellipsis;
  881. white-space: nowrap;
  882. }
  883. @mixin lineHeight($value) {
  884. height: $value;
  885. line-height: $value;
  886. }
  887. .order-wrapper {
  888. background: #f1f3f6;
  889. margin: 0.88rem 0 0.98rem 0;
  890. height: calc(100vh - 0.88rem - 0.96rem);
  891. overflow-y: scroll;
  892. .order-details-wrap {
  893. .order-details-top {
  894. .top-t-wrap {
  895. background: #fff;
  896. padding: 0 0.2rem;
  897. height: 0.88rem;
  898. line-height: 0.88rem;
  899. .pull-left {
  900. font-size: 0.28rem;
  901. color: #333;
  902. span {
  903. color: #f21c1c
  904. }
  905. }
  906. .pull-right {
  907. @include lineHeight(0.56rem);
  908. border: 1px solid #3f84f6;
  909. color: #3f84f6;
  910. font-size: 0.26rem;
  911. text-align: center;
  912. border-radius: 3px;
  913. margin-top: 0.14rem;
  914. padding: 0 0.1rem;
  915. overflow: hidden;
  916. i {
  917. font-size: 0.26rem;
  918. margin-left: 0.05rem;
  919. }
  920. }
  921. }
  922. .sendGoods_buyer {
  923. background: #fff;
  924. padding: 0.3rem 0.2rem;
  925. border-top: 1px solid #d9d9d9;
  926. .sendGoods_buyer_top {
  927. color: #333;
  928. font-size: 0.3rem;
  929. font-weight: bold;
  930. .name {
  931. margin-right: 0.3rem;
  932. margin-left: 0.32rem;
  933. }
  934. }
  935. .sendGoods_buyer_bottom {
  936. color: #333;
  937. font-size: 0.26rem;
  938. margin-top: 0.2rem;
  939. img {
  940. width: 0.22rem;
  941. height: 0.29rem;
  942. margin-right: 0.1rem;
  943. margin-top: -0.1rem;
  944. }
  945. }
  946. }
  947. .top-w-wrap {
  948. background: #fff;
  949. margin: 0.2rem 0;
  950. padding: 0 0.2rem;
  951. @include lineHeight(0.88rem);
  952. .name {
  953. color: #333;
  954. font-size: 0.28rem;
  955. margin-right: 0.2rem;
  956. }
  957. .detailsinfo {
  958. font-size: 0.28rem;
  959. color: #999;
  960. width: 5.6rem;
  961. @include overFlowHidden()
  962. }
  963. }
  964. }
  965. .order-list-wrap {
  966. li {
  967. margin-top: 0.2rem;
  968. }
  969. .list-wrap-title{
  970. padding: 0 0.2rem;
  971. background: #fff;
  972. @include lineHeight(0.88rem);
  973. font-size: 0.28rem;
  974. color: #333;
  975. .pull-left {
  976. width: 5rem;
  977. @include overFlowHidden()
  978. }
  979. .pull-right {
  980. .red {
  981. color: #f21c1c;
  982. }
  983. }
  984. }
  985. .list-wrap-content {
  986. background: #f9f9f8;
  987. padding: 0.3rem 0.2rem;
  988. padding-right: 0.32rem;
  989. border-bottom: 1px solid #e4e4e4;
  990. .list-item {
  991. font-size: 0.28rem;
  992. color: #333;
  993. margin-top: 0.18rem;
  994. &:nth-child(1) {
  995. margin-top: 0px;
  996. }
  997. &:nth-child(2) {
  998. margin-top: 0.21rem;
  999. }
  1000. &:nth-child(3) {
  1001. margin-top: 0.1rem;
  1002. }
  1003. .list-wrap-content-brand {
  1004. @include overFlowHidden();
  1005. .spec {
  1006. width: 4rem;
  1007. @include overFlowHidden()
  1008. }
  1009. }
  1010. .name {
  1011. color: #666;
  1012. }
  1013. .lab {
  1014. color: #999;
  1015. font-size: 0.24rem;
  1016. max-width: 2.1rem;
  1017. @include overFlowHidden();
  1018. span {
  1019. font-size: 0.16rem;
  1020. }
  1021. }
  1022. .pri {
  1023. font-size: 0.32rem;
  1024. color: #f43938;
  1025. max-width: 2.2rem;
  1026. @include overFlowHidden();
  1027. span {
  1028. font-size: 0.24rem;
  1029. }
  1030. }
  1031. .blue {
  1032. color: #3f84f6
  1033. }
  1034. }
  1035. }
  1036. .list-btn {
  1037. background: #fff;
  1038. @include lineHeight(0.8rem);
  1039. padding: 0 0.2rem;
  1040. div {
  1041. display: inline-block;
  1042. width: 1.5rem;
  1043. @include lineHeight(0.56rem);
  1044. border: 1px solid #333;
  1045. font-size: 0.26rem;
  1046. color: #333;
  1047. text-align: center;
  1048. margin-top: 0.11rem;
  1049. margin-left: 0.2rem;
  1050. border-radius: 3px;
  1051. &.sendGoods {
  1052. color: #f43938;
  1053. border: 1px solid #f43938;
  1054. }
  1055. }
  1056. }
  1057. }
  1058. .lookMorePro {
  1059. background: #fff;
  1060. font-size: 0.28rem;
  1061. color: #999;
  1062. text-align: center;
  1063. border-bottom: 1px solid #e4e4e4;
  1064. @include lineHeight(0.67rem);
  1065. img {
  1066. transform: rotate(90deg);
  1067. width: 0.16rem;
  1068. height: 0.26rem;
  1069. vertical-align: top;
  1070. margin-top: 0.23rem;
  1071. margin-left: 0.1rem;
  1072. }
  1073. }
  1074. .order-details-priInfo {
  1075. margin-top: 0.2rem;
  1076. border-top: 1px solid #e4e4e4;
  1077. border-bottom: 1px solid #e4e4e4;
  1078. font-size: 0.28rem;
  1079. color: #333;
  1080. padding: 0.2rem;
  1081. background: #fff;
  1082. .clearfix {
  1083. @include lineHeight(0.5rem);
  1084. }
  1085. .small {
  1086. font-size: 0.24rem;
  1087. color: #999;
  1088. }
  1089. }
  1090. .list-all-info{
  1091. text-align: right;
  1092. background: #fff;
  1093. padding: 0 0.2rem;
  1094. @include overFlowHidden();
  1095. line-height: 0.5rem;
  1096. font-size: 0.26rem;
  1097. color: #333;
  1098. border-bottom: 1px solid #e4e4e4;
  1099. .pri {
  1100. font-size: 0.32rem;
  1101. color: #f43938;
  1102. }
  1103. .red {
  1104. color: #f43938;
  1105. font-size: 0.24rem;
  1106. }
  1107. .lab {
  1108. color: #999;
  1109. font-size: 0.24rem;
  1110. }
  1111. .del {
  1112. text-decoration: line-through;
  1113. color: #999;
  1114. font-size: 0.24rem;
  1115. }
  1116. }
  1117. .order-details-info {
  1118. background: #fff;
  1119. margin-top: 0.2rem;
  1120. .clearfix{
  1121. img {
  1122. transform: rotate(90deg);
  1123. width: 0.16rem;
  1124. height: 0.26rem;
  1125. vertical-align: top;
  1126. margin-top: 0.3rem;
  1127. margin-left: 0.1rem;
  1128. margin-right: 0.1rem;
  1129. &.dropList {
  1130. transform: rotate(270deg);
  1131. }
  1132. }
  1133. padding: 0 0.2rem;
  1134. font-size: 0.28rem;
  1135. color: #666;
  1136. @include lineHeight(0.89rem);
  1137. border-bottom: 1px solid #e4e4e4;
  1138. .pull-right {
  1139. @include overFlowHidden();
  1140. max-width: 5rem;
  1141. }
  1142. }
  1143. }
  1144. .order-details-moreinfo {
  1145. background: #fff;
  1146. font-size: 0.24rem;
  1147. color: #999;
  1148. padding: 0.2rem 0;
  1149. margin-bottom: 0.3rem;
  1150. .clearfix.moreinfoList {
  1151. padding: 0 0.2rem;
  1152. /*border-bottom: 1px solid #e4e4e4;*/
  1153. .pull-left {
  1154. div {
  1155. @include lineHeight(0.5rem);
  1156. }
  1157. }
  1158. }
  1159. margin-top: 0.2rem;
  1160. .copyBtn {
  1161. width: 1.1rem;
  1162. border-radius: 3px;
  1163. border: 1px solid #dfdfdf;
  1164. @include lineHeight(0.4rem);
  1165. text-align: center;
  1166. padding: 0 0.2rem;
  1167. }
  1168. .list-btn {
  1169. div {
  1170. float: right;
  1171. width: 1.5rem;
  1172. @include lineHeight(0.56rem);
  1173. background: #3f84f6;
  1174. color: #fff;
  1175. border-radius: 3px;
  1176. text-align: center;
  1177. font-size: 0.26rem;
  1178. margin-top: 0.2rem;
  1179. margin-right: 0.2rem;
  1180. }
  1181. }
  1182. }
  1183. }
  1184. .sendGoods_Alert {
  1185. background: #fff;
  1186. position: fixed;
  1187. bottom: 0.98rem;
  1188. left: 0;
  1189. width: 100%;
  1190. border-top-left-radius: 5px;
  1191. border-top-right-radius: 5px;
  1192. overflow: hidden;
  1193. .sendGoods_title {
  1194. color: #333;
  1195. font-size: 0.42rem;
  1196. text-align: center;
  1197. line-height: 1rem;
  1198. font-weight: 600;
  1199. position: relative;
  1200. i {
  1201. position: absolute;
  1202. font-size: 16px;
  1203. right: 0.2rem;
  1204. }
  1205. }
  1206. .sendGoods_buyer {
  1207. padding: 0.3rem 0.2rem;
  1208. border-bottom: 1px solid #d9d9d9;
  1209. border-top: 1px solid #d9d9d9;
  1210. .sendGoods_buyer_top {
  1211. color: #333;
  1212. font-size: 0.3rem;
  1213. font-weight: bold;
  1214. .name {
  1215. margin-right: 0.3rem;
  1216. margin-left: 0.32rem;
  1217. }
  1218. }
  1219. .sendGoods_buyer_bottom {
  1220. color: #333;
  1221. font-size: 0.26rem;
  1222. margin-top: 0.2rem;
  1223. img {
  1224. width: 0.22rem;
  1225. height: 0.29rem;
  1226. margin-right: 0.1rem;
  1227. margin-top: -0.1rem;
  1228. }
  1229. }
  1230. }
  1231. .sendGoods_list {
  1232. padding: 0 0.2rem;
  1233. @include lineHeight(0.8rem);
  1234. border-bottom: 1px solid #d9d9d9;
  1235. font-size: 0.32rem;
  1236. color: #333;
  1237. /*.ti {*/
  1238. /*font-weight: bold;*/
  1239. /*}*/
  1240. .pull-right {
  1241. font-size: 0.28rem;
  1242. color: #999;
  1243. img {
  1244. width: 0.14rem;
  1245. height: 0.24rem;
  1246. vertical-align: middle;
  1247. margin-top: -0.02rem;
  1248. margin-left: 0.1rem;
  1249. }
  1250. }
  1251. input {
  1252. width: 4rem;
  1253. text-align: right;
  1254. color: #333;
  1255. }
  1256. }
  1257. .sendGoods_Btn {
  1258. @include lineHeight(1rem);
  1259. text-align: center;
  1260. color: #fff;
  1261. font-size: 0.36rem;
  1262. background: #3f84f6;
  1263. }
  1264. }
  1265. .search-content {
  1266. margin-top: 0.88rem;
  1267. margin-bottom: 0.2rem;
  1268. text-align: center;
  1269. padding: .25rem 0 0 0;
  1270. input {
  1271. border: 1px solid #376ff3;
  1272. }
  1273. span {
  1274. height: .46rem;
  1275. line-height: .46rem;
  1276. }
  1277. }
  1278. .peisong_Alert {
  1279. background: #f1f3f6;
  1280. position: fixed;
  1281. bottom: 0.98rem;
  1282. left: 0;
  1283. right: 0;
  1284. top: 0;
  1285. z-index: 11111;
  1286. ul {
  1287. height: calc(100vh - 1.2rem - 1.7rem);
  1288. overflow-y: scroll;
  1289. li {
  1290. line-height: 1rem;
  1291. background: #fff;
  1292. padding: 0 0.2rem;
  1293. font-size: 0.28rem;
  1294. color: #333;
  1295. border-bottom: 1px solid #e0e1e2;
  1296. div.name {
  1297. @include overFlowHidden();
  1298. }
  1299. div.target {
  1300. width: 0.36rem;
  1301. height: 0.36rem;
  1302. border-radius: 50%;
  1303. overflow: hidden;
  1304. border: 1px solid #a4a4a4;
  1305. margin-top: 0.3rem;
  1306. &.active {
  1307. background-image: url('/images/order/getChoose_icon.png');
  1308. background-size: 100% 100%;
  1309. border: 0px;
  1310. }
  1311. }
  1312. }
  1313. }
  1314. .sendGoods_Btn {
  1315. @include lineHeight(1rem);
  1316. text-align: center;
  1317. color: #fff;
  1318. font-size: 0.36rem;
  1319. background: #3f84f6;
  1320. }
  1321. }
  1322. .deleteKuang {
  1323. position: fixed;
  1324. background: rgba(0,0,0,0.5);
  1325. top: 0;
  1326. left: 0;
  1327. right: 0;
  1328. bottom: 0;
  1329. z-index: 9999;
  1330. .kuangContent {
  1331. border-radius: 5px;
  1332. background: #fff;
  1333. width: 5rem;
  1334. position: absolute;
  1335. left: 50%;
  1336. top: 50%;
  1337. transform: translate3d(-50%, -50%, 0);
  1338. overflow: hidden;
  1339. .titleinfo {
  1340. font-size: .3rem;
  1341. color: #666;
  1342. text-align: center;
  1343. margin-top: 0.5rem;
  1344. margin-bottom: 0.1rem;
  1345. }
  1346. .title {
  1347. background: #5078cb;
  1348. height: .7rem;
  1349. line-height: .7rem;
  1350. font-size: .3rem;
  1351. color: #fff;
  1352. text-align: center;
  1353. }
  1354. .info {
  1355. color: #f00;
  1356. text-align: center;
  1357. }
  1358. .K_btn {
  1359. margin-top: 0.4rem;
  1360. line-height: 0.7rem;
  1361. height: 0.7rem;
  1362. &::after{
  1363. clear: both;
  1364. display: block;
  1365. content: ' ';
  1366. visibility: hidden;
  1367. zoom: 1;
  1368. }
  1369. div {
  1370. float: left;
  1371. width: 50%;
  1372. font-size: 0.3rem;
  1373. text-align: center;
  1374. &.cancelBtn {
  1375. background: #b4b5b9;
  1376. color: #333;
  1377. }
  1378. &.answerBtn {
  1379. background: #5078cb;
  1380. color: #fff;
  1381. }
  1382. }
  1383. }
  1384. }
  1385. i {
  1386. font-size: .6rem;
  1387. position: absolute;
  1388. right: -0.3rem;
  1389. top: -0.35rem;
  1390. color: #fff;
  1391. &::after{
  1392. position: absolute;
  1393. top: -0.1rem;
  1394. left: -0.1rem;
  1395. right: -0.1rem;
  1396. bottom: -0.1rem;
  1397. content: ' '
  1398. }
  1399. }
  1400. .title {
  1401. background: #3f84f6;
  1402. height: 0.7rem;
  1403. line-height: 0.7rem;
  1404. color: #fff;
  1405. text-align: center;
  1406. font-size: 0.3rem;
  1407. position: relative;
  1408. }
  1409. .Kuang {
  1410. max-height: 10rem;
  1411. width: 6.7rem;
  1412. position: absolute;
  1413. left: 50%;
  1414. top: 50%;
  1415. transform: translate3d(-50%, -50%, 0);
  1416. background: #ececec;
  1417. border-radius: 5px;
  1418. }
  1419. .content {
  1420. overflow-y: scroll;
  1421. max-height: 9.3rem;
  1422. .infob {
  1423. background: #e3edfd;
  1424. padding: 0.2rem;
  1425. .info {
  1426. color: #333;
  1427. font-size: 0.3rem;
  1428. overflow: hidden;
  1429. text-overflow: ellipsis;
  1430. white-space: nowrap;
  1431. margin-bottom: 0.18rem;
  1432. .name {
  1433. color: #666;
  1434. }
  1435. div {
  1436. display: inline-block;
  1437. }
  1438. }
  1439. }
  1440. .content_sq {
  1441. width: 6.4rem;
  1442. margin: 0.1rem auto;
  1443. background: #fff;
  1444. padding: 0.2rem 0rem;
  1445. .list {
  1446. margin-bottom: 0.18rem;
  1447. }
  1448. .fl {
  1449. width: 3.2rem;
  1450. }
  1451. .table {
  1452. width: 4.2rem;
  1453. margin-top: -0.1rem;
  1454. }
  1455. .labelinfo {
  1456. background-image: url('/images/mobile/@2x/labelTop.png');
  1457. background-repeat: no-repeat;
  1458. width: 6.29rem;
  1459. height: 0.64rem;
  1460. line-height: 0.64rem;
  1461. background-size: 100%;
  1462. margin-top: 0rem;
  1463. margin-right: 0rem;
  1464. background-color: rgba(0, 0, 0, 0);
  1465. color: #666;
  1466. }
  1467. }
  1468. }
  1469. }
  1470. .cancelOrder {
  1471. background: #fff;
  1472. position: absolute;
  1473. bottom: 0.98rem;
  1474. left: 0;
  1475. width: 100%;
  1476. border-top-left-radius: 5px;
  1477. border-top-right-radius: 5px;
  1478. overflow: hidden;
  1479. .sendGoods_title {
  1480. color: #333;
  1481. font-size: 0.42rem;
  1482. text-align: center;
  1483. line-height: 1rem;
  1484. font-weight: 600;
  1485. position: relative;
  1486. i {
  1487. position: absolute;
  1488. font-size: 16px;
  1489. right: 0.2rem;
  1490. }
  1491. }
  1492. .cancelOrder_title {
  1493. font-size: 0.36rem;
  1494. color: #333;
  1495. border-bottom: 1px solid #d9d9d9;
  1496. font-weight: bold;
  1497. padding: 0 0.2rem;
  1498. line-height: 0.6rem;
  1499. }
  1500. ul {
  1501. li {
  1502. line-height: 1rem;
  1503. background: #fff;
  1504. padding: 0 0.2rem;
  1505. font-size: 0.32rem;
  1506. color: #333;
  1507. border-bottom: 1px solid #d9d9d9;
  1508. div.name {
  1509. @include overFlowHidden();
  1510. }
  1511. div.target {
  1512. margin-right: 0.2rem;
  1513. width: 0.36rem;
  1514. height: 0.36rem;
  1515. border-radius: 50%;
  1516. overflow: hidden;
  1517. border: 1px solid #a4a4a4;
  1518. margin-top: 0.3rem;
  1519. &.active {
  1520. background-image: url('/images/order/getChoose_icon.png');
  1521. background-size: 100% 100%;
  1522. border: 0px;
  1523. }
  1524. }
  1525. }
  1526. }
  1527. .sendGoods_Btn {
  1528. @include lineHeight(1rem);
  1529. text-align: center;
  1530. color: #fff;
  1531. font-size: 0.36rem;
  1532. background: #3f84f6;
  1533. }
  1534. }
  1535. .labelInfo_ForItem {
  1536. color: #fff;
  1537. font-size: 0.24rem;
  1538. padding: 0.05rem 0.1rem;
  1539. background: #15b262;
  1540. margin-right: 0.1rem;
  1541. border-radius: 3px;
  1542. }
  1543. .order-details-invoiceinfo {
  1544. padding: 0.1rem 0.4rem;
  1545. background: #fff;
  1546. .invoiceList {
  1547. font-size: 0.24rem;
  1548. color: #999;
  1549. height: 0.5rem;
  1550. line-height: 0.5rem;
  1551. }
  1552. }
  1553. }
  1554. </style>