details.vue 58 KB

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