index.vue 56 KB

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