details.vue 59 KB

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