index.vue 53 KB

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