index.vue 53 KB

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