index.vue 53 KB

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