index.vue 54 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483
  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 || item.signReceive" @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. // this.showSend = true
  512. // if (item.inid) {
  513. // this._id = EncryptionFilter(item.inid)
  514. let _id = EncryptionFilter(item.purchaseid)
  515. this.$http.get(`/trade/purchase/purchaseId/${_id}`).then(res => {
  516. this.sendGoodsInfo = res.data.data
  517. this.sendGoodsInfo.area = JSON.parse(res.data.data.jsonAddress)
  518. this.showSend = true
  519. })
  520. // } else {
  521. // this.$http.get(`/trade/purchase/vendor/tobeshiped/${item.id}`).then(res => {
  522. // this._id = EncryptionFilter(res.data.inId)
  523. // this.$http.get(`/trade/invoice/inFpu/tobeshipped/${this._id}`).then(res => {
  524. // this.sendGoodsInfo = res.data[0]
  525. // this.sendGoodsInfo.area = JSON.parse(res.data[0].jsonSpAddress)
  526. // this.showSend = true
  527. // })
  528. // }, err => {
  529. // this.onMind('转出货单失败' + err.response.data)
  530. // })
  531. // }
  532. } else {
  533. this.onMind('您还未填写设置发货地址 ,请进行完善')
  534. }
  535. })
  536. } else {
  537. this.onMind('您还未填写收款账户信息 ,请进行完善')
  538. }
  539. })
  540. },
  541. // 选择配送商
  542. choosePeisong() {
  543. this.seekKeyword = ''
  544. if (this.peisongList.length > 0) {
  545. this.peisongList = this.AllpeisongList.slice()
  546. this.peisongShow = true
  547. return
  548. }
  549. this.$http.get('/trade/distributor/selected').then(res => {
  550. this.AllpeisongList = res.data
  551. this.peisongList = res.data
  552. this.peisongList.splice(0, 0, {
  553. companyName: '请选择配送商'
  554. })
  555. this.peisongShow = true
  556. })
  557. },
  558. // 配送商列表选择
  559. selectPeisong(index, item) {
  560. this.peisongChooseIndex = index
  561. this.peisongChooseItem = item
  562. },
  563. // 确定选择当前配送商
  564. savePeisongChoose() {
  565. this.peisongShow = false
  566. this.peisongShowName = this.peisongChooseItem.companyName === '请选择配送商' ? '' : this.peisongChooseItem.companyName
  567. },
  568. // 发货最终步骤
  569. saveSendGoods() {
  570. // 发货
  571. if (this.sendGoodstype === 'add') {
  572. let patt = new RegExp('^[A-Za-z0-9]+$')
  573. if (this.peisongShowName === '') {
  574. this.onMind('请选择配送商')
  575. } else if (!this.sendGoodsInfo.kuaidinumber) {
  576. this.onMind('请填写物流单号')
  577. } else if (!patt.test(this.sendGoodsInfo.kuaidinumber)) {
  578. this.onMind('请输入正确的物流单号')
  579. } else {
  580. let _obj = []
  581. let sendInfo = this.getLogisticsInfo()
  582. for (let i = 0; i < this.sendGoodsInfo.purchaseDetails.length; i++) {
  583. if (Math.abs(this.sendGoodsInfo.purchaseDetails[i].number) > 0) {
  584. let _id = this.sendGoodsInfo.purchaseDetails[i].id
  585. _obj.push({
  586. id: _id,
  587. qty: this.sendGoodsInfo.purchaseDetails[i].number - (this.sendGoodsInfo.purchaseDetails[i].shipQty || 0)
  588. })
  589. }
  590. }
  591. sendInfo.map = _obj
  592. this.$http.post(`/trade/invoice/inFpu/save?id=${this.sendGoodsInfo.id}`, sendInfo).then(res => {
  593. if (res.data.success) {
  594. this.onMind('发货成功')
  595. setTimeout(() => {
  596. this.ChangeList(this.activeType)
  597. this.showSend = false
  598. this.peisongChooseIndex = 0
  599. this.peisongChooseItem = {companyName: '请选择配送商'}
  600. }, 1500)
  601. }
  602. })
  603. }
  604. } else if (this.sendGoodstype === 'change') {
  605. // 修改物流
  606. let sendInfo = this.getLogisticsInfo('change')
  607. let patt = new RegExp('^[A-Za-z0-9]+$')
  608. if (!this.sendGoodsInfo.lgtId) {
  609. // 如果快递公司 以及 快递编号为空
  610. if (!this.peisongShowName && !this.sendGoodsInfo.kuaidinumber) {
  611. this.showSend = false
  612. return
  613. }
  614. // 如果快递公司为空
  615. if (!this.peisongShowName && this.sendGoodsInfo.kuaidinumber) {
  616. this.onMind('请选择配送商')
  617. return
  618. } else if (!this.sendGoodsInfo.kuaidinumber) {
  619. this.onMind('请填写物流单号')
  620. return
  621. } else if (!patt.test(this.sendGoodsInfo.kuaidinumber)) {
  622. this.onMind('请输入正确的物流单号')
  623. return
  624. }
  625. // 没有物流信息则添加物流信息
  626. this.$http.post(`/trade/logistics/add?inid=${this.sendGoodsInfo.inid}`, sendInfo).then(res => {
  627. if (res.data.success) {
  628. this.onMind('物流信息保存成功')
  629. setTimeout(() => {
  630. this.ChangeList(this.activeType)
  631. this.peisongChooseIndex = 0
  632. this.peisongChooseItem = {companyName: '请选择配送商'}
  633. this.showSend = false
  634. }, 1500)
  635. }
  636. })
  637. } else {
  638. if (this.ChangeInfoObj.number === this.sendGoodsInfo.kuaidinumber && this.peisongShowName === this.ChangeInfoObj.peisongShowName) {
  639. this.showSend = false
  640. return
  641. }
  642. if (this.peisongShowName !== '' || this.sendGoodsInfo.kuaidinumber !== '') {
  643. // 如果用户未做任何信息修改
  644. if (!this.peisongShowName) {
  645. this.onMind('请选择配送商')
  646. return
  647. } else if (!this.sendGoodsInfo.kuaidinumber) {
  648. this.onMind('请填写物流单号')
  649. return
  650. } else if (!patt.test(this.sendGoodsInfo.kuaidinumber)) {
  651. this.onMind('请输入正确的物流单号')
  652. return
  653. }
  654. this.$http.post(`/trade/logistics/${this.sendGoodsInfo.lgtId}?invoiceFuid=${this.sendGoodsInfo.inid}`, sendInfo).then(res => {
  655. if (res.data.success) {
  656. this.onMind('修改物流信息成功')
  657. setTimeout(() => {
  658. this.ChangeList(this.activeType)
  659. this.peisongChooseIndex = 0
  660. this.peisongChooseItem = {companyName: '请选择配送商'}
  661. this.showSend = false
  662. }, 1500)
  663. }
  664. })
  665. } else {
  666. if (this.sendGoodsInfo.sendType !== 1301) {
  667. // 如果清空了物流信息
  668. this.$http.put(`/trade/logistics/clear?inid=${this.sendGoodsInfo.inid}`).then(res => {
  669. if (res.data.success) {
  670. this.onMind('修改物流信息成功')
  671. setTimeout(() => {
  672. this.ChangeList(this.activeType)
  673. this.peisongChooseIndex = 0
  674. this.peisongChooseItem = {companyName: '请选择配送商'}
  675. this.showSend = false
  676. }, 1500)
  677. }
  678. })
  679. }
  680. }
  681. }
  682. }
  683. },
  684. // 买家取消订单
  685. cancelOrder(item) {
  686. this.$CancenOrderId = item.orderid
  687. this.showBuyerAlert = true
  688. },
  689. // 买家取消订单原因选择
  690. ChooseOrderCancel(item, index) {
  691. this.OrderCancelIndex = index
  692. this.$Orderreason = item
  693. },
  694. // 买家提醒卖家发货
  695. paidTime(item) {
  696. item = this.baseUtils.deepCopy(item)
  697. if (this._getHoursFromNow(item.paytime) < this.sellsendGoodsTime) {
  698. this.onMind('距离付款的时间还不到' + this.sellsendGoodsTime + '小时,不能提醒发货')
  699. return
  700. }
  701. if (this._getHoursFromNow(item.lastNotifyDeliveryTime) < this.sellsendGoodsTime && this._getHoursFromNow(item.lastNotifyDeliveryTime) !== 0) {
  702. this.onMind('距离上次付款的时间还不到' + this.sellsendGoodsTime + '小时,不能提醒发货')
  703. return
  704. }
  705. this.$http.post(`/trade/message/order/${item.id}`).then(res => {
  706. let returnResult = res.data
  707. if (returnResult.status === 505 || returnResult.status === 406 || returnResult.status === 407 || returnResult.status === 403 || returnResult.status === 408) {
  708. this.onMind('提醒成功')
  709. this.ChangeList(this.activeType)
  710. } else {
  711. this.onMind('提醒发货失败:' + returnResult.message)
  712. }
  713. })
  714. },
  715. // 取消订单确认事件
  716. cancenFn() {
  717. if (!this.$Orderreason || this.$Orderreason === '') {
  718. this.onMind('请选择取消订单的原因')
  719. } else {
  720. let reason = {
  721. reason: this.$Orderreason
  722. }
  723. this.$http.put(`/trade/order/simpleinfo/ones/${this.$CancenOrderId}/release`, reason).then(res => {
  724. this.onMind('取消订单成功,等待买家确认')
  725. this.$Orderreason = '我不想买了'
  726. this.OrderCancelIndex = 0
  727. this.ChangeList(this.activeType)
  728. this.showBuyerAlert = false
  729. })
  730. }
  731. },
  732. // 删除订单弹窗
  733. deleteOrder(item) {
  734. this.sendGoodsInfo = this.baseUtils.deepCopy(item)
  735. this.showDeleteAlert = true
  736. },
  737. // 删除订单确定按钮
  738. deleteFn() {
  739. if (this.$route.query.type !== 'buyer') {
  740. this.$http.post(`/trade/purchase/used/${this.sendGoodsInfo.purchaseid}`).then(res => {
  741. this.ChangeList(this.activeType)
  742. this.showDeleteAlert = false
  743. this.onMind('删除成功')
  744. })
  745. } else {
  746. this.$http.post(`/trade/order/used/${this.sendGoodsInfo.orderid}`).then(res => {
  747. this.ChangeList(this.activeType)
  748. this.showDeleteAlert = false
  749. this.onMind('删除成功')
  750. })
  751. }
  752. },
  753. // 修改物流
  754. changelogistics(item) {
  755. this.sendGoodstype = 'change'
  756. this.peisongShowName = ''
  757. this.sendGoodsInfo.kuaidinumber = ''
  758. let _obj = this.baseUtils.deepCopy(item)
  759. if (!item.lgtId) {
  760. // 如果没有订单编号
  761. this.sendGoodsInfo = _obj
  762. this.sendGoodsInfo.area = JSON.parse(_obj.jsonSdAddress)
  763. this.showSend = true
  764. this.ChangeInfoObj = {
  765. number: '',
  766. peisongShowName: ''
  767. }
  768. } else {
  769. this.$http.get(`/trade/logistics/${_obj.lgtId}`).then(res => {
  770. this.sendGoodsInfo = _obj
  771. this.sendGoodsInfo.area = JSON.parse(_obj.jsonSdAddress)
  772. this.sendGoodsInfo.kuaidinumber = res.data.number
  773. this.peisongShowName = res.data.companyName
  774. this.ChangeInfoObj = {
  775. number: res.data.number,
  776. peisongShowName: res.data.companyName
  777. }
  778. this.showSend = true
  779. })
  780. }
  781. },
  782. // 搜索
  783. searchSeek() {
  784. let _arr = this.AllpeisongList.slice()
  785. let addrPatt = /^[\u4e00-\u9fa5]+$/
  786. if (addrPatt.test(this.seekKeyword) && this.seekKeyword.length > 0) {
  787. this.peisongList = []
  788. this.peisongList = _arr.filter((data) => {
  789. if (data.companyName.indexOf(this.seekKeyword) >= 0) {
  790. return data
  791. }
  792. })
  793. this.peisongList.splice(0, 0, {
  794. companyName: '请选择配送商'
  795. })
  796. } else if (this.seekKeyword === '' || !this.seekKeyword) {
  797. this.peisongList = _arr
  798. }
  799. this.peisongChooseIndex = 0
  800. this.peisongChooseItem = {companyName: '请选择配送商'}
  801. },
  802. // 获取物流提交信息
  803. getLogisticsInfo(_type) {
  804. let sendInfo = {}
  805. sendInfo.sendType = this.sendGoodsInfo.sendType
  806. sendInfo.jsonSdAddress = this.sendGoodsInfo.jsonSpAddress || this.sendGoodsInfo.jsonAddress
  807. sendInfo.logisticsInfo = {}
  808. if (this.peisongShowName) {
  809. sendInfo.logisticsInfo.companyName = this.peisongShowName
  810. }
  811. if (this.sendGoodsInfo.kuaidinumber) {
  812. sendInfo.logisticsInfo.number = this.sendGoodsInfo.kuaidinumber
  813. }
  814. return _type ? sendInfo.logisticsInfo : sendInfo
  815. },
  816. // 查看物流信息
  817. lookLogisticsInfo(item) {
  818. let id = item.purchaseid || item.orderid
  819. this.$router.push(`/mobile/order/logistics?uuid=${EncryptionFilter(id)}&type=${this.vendorType}`)
  820. },
  821. // 查看订单详情
  822. lookOrderDetail(item) {
  823. let id = EncryptionFilter(item.purchaseid)
  824. if (this.vendorType === 'buyer') {
  825. id = EncryptionFilter(item.orderid)
  826. }
  827. this.$router.push(`/mobile/order/details?uuid=${id}&type=${this.vendorType}&paytype=${item.paytype}`)
  828. },
  829. // 买家确认收货
  830. buyerGetGoods(item) {
  831. this.$http.put(`/trade/order/signReceive?id=${item.id}&_status=ensureaccept`).then(res => {
  832. this.onMind('确认收货成功')
  833. this.ChangeList(this.activeType)
  834. })
  835. },
  836. // 买卖家中心字段同步化
  837. _initSetParams(_obj) {
  838. _obj = this.baseUtils.deepCopy(_obj)
  839. for (let i = 0; i < _obj.length; i++) {
  840. if (!_obj[i].purchaseDetails) {
  841. _obj[i].purchaseDetails = _obj[i].orderDetails
  842. }
  843. if (_obj[i].status === 505 || _obj[i].status === 406 || _obj[i].status === 407 || _obj[i].status === 403 || _obj[i].status === 408) {
  844. // _obj[i].paidTimeFromNow = this._getHoursFromNow(_obj[i].paytime)
  845. // _obj[i].lastNotiDelivery = this._getHoursFromNow(_obj[i].lastNotifyDeliveryTime)
  846. }
  847. _obj[i].showItem = _obj[i].purchaseDetails.length > 3 ? 3 : _obj[i].purchaseDetails.length
  848. }
  849. return _obj
  850. },
  851. // 传入时间,计算距离现在的时间是多少小时了
  852. _getHoursFromNow(time) {
  853. if (!time) {
  854. return 0
  855. }
  856. let newTime = new Date()
  857. let msec = newTime.getTime() - time
  858. let hours = parseInt(parseInt(msec) / (1000 * 60 * 60))
  859. return hours
  860. },
  861. onMind(str) {
  862. this.collectResult = str
  863. this.timeoutCount++
  864. },
  865. blur: function() {
  866. setTimeout(() => {
  867. this.$store.dispatch('mobile/SetInputGetFocus', false)
  868. }, 300)
  869. },
  870. inputGetFocus: function() {
  871. setTimeout(() => {
  872. this.$store.dispatch('mobile/SetInputGetFocus', true)
  873. }, 300)
  874. }
  875. },
  876. filters: {
  877. priceFiter(val) {
  878. if (!val) return '0.00'
  879. return val.toFixed(2)
  880. },
  881. time: function (time) {
  882. if (typeof time === 'number') {
  883. if (!time) {
  884. return '无'
  885. } else {
  886. let d = new Date(time)
  887. let year = d.getFullYear()
  888. let month = d.getMonth() + 1
  889. let day = d.getDate() < 10 ? '0' + d.getDate() : '' + d.getDate()
  890. return year + '-' + month + '-' + day
  891. }
  892. }
  893. }
  894. },
  895. components: {
  896. RemindBox,
  897. PullUp
  898. }
  899. }
  900. </script>
  901. <style scoped lang="scss">
  902. @mixin overFlowHidden {
  903. overflow: hidden;
  904. text-overflow: ellipsis;
  905. white-space: nowrap;
  906. }
  907. @mixin lineHeight($value) {
  908. height: $value;
  909. line-height: $value;
  910. }
  911. .order-wrapper {
  912. background: #f1f3f6;
  913. margin: 1.26rem 0 0.98rem 0;
  914. height: calc(100vh - 1.26rem - 0.98rem);
  915. /*padding-bottom: 0.96rem;*/
  916. .order-nav {
  917. background: #fff;
  918. div {
  919. height: 0.82rem;
  920. line-height: 0.82rem;
  921. display: inline-block;
  922. width: 25%;
  923. text-align: center;
  924. font-size: .28rem;
  925. color: #666;
  926. &.active span{
  927. color: #3f84f6;
  928. border-bottom: 0.04rem solid #3f84f6;
  929. padding-bottom: 0.2rem;
  930. }
  931. }
  932. }
  933. .search-content2 {
  934. text-align: center;
  935. padding: .25rem 0 0 0;
  936. margin-top: 0 !important;
  937. input {
  938. width: 7.1rem;
  939. border: 1px solid #376ff3;
  940. }
  941. span {
  942. /*height: .46rem;*/
  943. /*line-height: .46rem;*/
  944. }
  945. }
  946. .order-list-wrap {
  947. height: calc(100vh - 1.26rem - 0.96rem - 0.84rem - 1rem);
  948. overflow-y: scroll;
  949. li {
  950. margin-bottom: 0.2rem;
  951. }
  952. .list-wrap-title{
  953. padding: 0 0.2rem;
  954. background: #fff;
  955. @include lineHeight(0.67rem);
  956. font-size: 0.28rem;
  957. color: #333;
  958. border-bottom: 1px solid #e4e4e4;
  959. .pull-left {
  960. width: 5rem;
  961. @include overFlowHidden();
  962. span {
  963. max-width: 3rem;
  964. @include overFlowHidden();
  965. display: inline-block;
  966. }
  967. img {
  968. width: 0.18rem;
  969. height: 0.32rem;
  970. vertical-align: top;
  971. margin-top: 0.18rem;
  972. margin-left: 0.1rem;
  973. }
  974. }
  975. .pull-right {
  976. .red {
  977. color: #f21c1c;
  978. }
  979. }
  980. }
  981. .list-wrap-content {
  982. background: #f9f9f8;
  983. padding: 0.3rem 0.2rem;
  984. padding-right: 0.32rem;
  985. border-bottom: 1px solid #e4e4e4;
  986. .list-item {
  987. font-size: 0.28rem;
  988. color: #333;
  989. /*line-height: 0.5rem;*/
  990. margin-top: 0.22rem;
  991. &:nth-child(1) {
  992. margin-top: 0px;
  993. }
  994. .list-wrap-content-brand {
  995. @include overFlowHidden();
  996. .spec {
  997. width: 3.1rem;
  998. @include overFlowHidden();
  999. margin-right: 0.2rem;
  1000. &.noMargin {
  1001. margin-right: 0;
  1002. width: 1.5rem;
  1003. }
  1004. }
  1005. }
  1006. .name {
  1007. color: #666;
  1008. }
  1009. .lab {
  1010. color: #999;
  1011. font-size: 0.24rem;
  1012. max-width: 2.1rem;
  1013. @include overFlowHidden();
  1014. span {
  1015. font-size: 0.16rem;
  1016. }
  1017. }
  1018. .pri {
  1019. font-size: 0.28rem;
  1020. color: #f43938;
  1021. @include overFlowHidden();
  1022. width: 2.4rem;
  1023. }
  1024. }
  1025. }
  1026. .orderNumber {
  1027. font-size: 0.27rem;
  1028. color: #666;
  1029. border-bottom: 1px solid #e4e4e4;
  1030. @include lineHeight(0.88rem);
  1031. background: #fff;
  1032. padding: 0 0.2rem;
  1033. .pull-left {
  1034. width: 5rem;
  1035. @include overFlowHidden();
  1036. span {
  1037. color: #3f84f6
  1038. }
  1039. }
  1040. }
  1041. .list-all-info{
  1042. text-align: right;
  1043. background: #fff;
  1044. padding: 0 0.2rem;
  1045. @include overFlowHidden();
  1046. line-height: 0.66rem;
  1047. font-size: 0.26rem;
  1048. color: #333;
  1049. border-bottom: 1px solid #e4e4e4;
  1050. .pri {
  1051. font-size: 0.32rem;
  1052. color: #f43938;
  1053. }
  1054. .red {
  1055. color: #f43938;
  1056. font-size: 0.24rem;
  1057. }
  1058. .lab {
  1059. color: #999;
  1060. font-size: 0.24rem;
  1061. }
  1062. }
  1063. .list-btn {
  1064. background: #fff;
  1065. @include lineHeight(0.8rem);
  1066. padding: 0 0.2rem;
  1067. div {
  1068. display: inline-block;
  1069. width: 1.5rem;
  1070. @include lineHeight(0.56rem);
  1071. border: 1px solid #333;
  1072. font-size: 0.26rem;
  1073. color: #333;
  1074. text-align: center;
  1075. margin-top: 0.11rem;
  1076. margin-left: 0.2rem;
  1077. border-radius: 3px;
  1078. &.sendGoods {
  1079. color: #f43938;
  1080. border: 1px solid #f43938;
  1081. }
  1082. &.cancat {
  1083. height: 0.56rem;
  1084. line-height: 0.56rem;
  1085. border: 1px solid #3f84f6;
  1086. color: #3f84f6;
  1087. font-size: 0.26rem;
  1088. text-align: center;
  1089. border-radius: 3px;
  1090. padding: 0 0.1rem;
  1091. overflow: hidden;
  1092. width: auto;
  1093. i {
  1094. font-size: 0.26rem;
  1095. }
  1096. }
  1097. }
  1098. }
  1099. .lookMorePro {
  1100. background: #fff;
  1101. font-size: 0.28rem;
  1102. color: #999;
  1103. text-align: center;
  1104. border-bottom: 1px solid #e4e4e4;
  1105. @include lineHeight(0.67rem);
  1106. img {
  1107. transform: rotate(90deg);
  1108. width: 0.16rem;
  1109. height: 0.26rem;
  1110. vertical-align: top;
  1111. margin-top: 0.23rem;
  1112. margin-left: 0.1rem;
  1113. }
  1114. }
  1115. }
  1116. .sendGoods_Alert {
  1117. background: #fff;
  1118. position: fixed;
  1119. bottom: 0.98rem;
  1120. left: 0;
  1121. width: 100%;
  1122. border-top-left-radius: 5px;
  1123. border-top-right-radius: 5px;
  1124. overflow: hidden;
  1125. .sendGoods_title {
  1126. color: #333;
  1127. font-size: 0.42rem;
  1128. text-align: center;
  1129. line-height: 1rem;
  1130. font-weight: 600;
  1131. position: relative;
  1132. i {
  1133. position: absolute;
  1134. font-size: 16px;
  1135. right: 0.2rem;
  1136. }
  1137. }
  1138. .sendGoods_buyer {
  1139. padding: 0.3rem 0.2rem;
  1140. border-bottom: 1px solid #d9d9d9;
  1141. border-top: 1px solid #d9d9d9;
  1142. .sendGoods_buyer_top {
  1143. color: #333;
  1144. font-size: 0.3rem;
  1145. font-weight: bold;
  1146. .name {
  1147. margin-right: 0.3rem;
  1148. margin-left: 0.32rem;
  1149. }
  1150. }
  1151. .sendGoods_buyer_bottom {
  1152. color: #333;
  1153. font-size: 0.26rem;
  1154. margin-top: 0.2rem;
  1155. img {
  1156. width: 0.22rem;
  1157. height: 0.29rem;
  1158. margin-right: 0.1rem;
  1159. margin-top: -0.1rem;
  1160. }
  1161. }
  1162. }
  1163. .sendGoods_list {
  1164. padding: 0 0.2rem;
  1165. @include lineHeight(0.8rem);
  1166. border-bottom: 1px solid #d9d9d9;
  1167. font-size: 0.32rem;
  1168. color: #333;
  1169. /*.ti {*/
  1170. /*font-weight: bold;*/
  1171. /*}*/
  1172. .pull-right {
  1173. font-size: 0.28rem;
  1174. color: #999;
  1175. img {
  1176. width: 0.14rem;
  1177. height: 0.24rem;
  1178. vertical-align: middle;
  1179. margin-top: -0.02rem;
  1180. margin-left: 0.1rem;
  1181. }
  1182. }
  1183. input {
  1184. width: 4rem;
  1185. text-align: right;
  1186. color: #333;
  1187. }
  1188. }
  1189. .sendGoods_Btn {
  1190. @include lineHeight(1rem);
  1191. text-align: center;
  1192. color: #fff;
  1193. font-size: 0.36rem;
  1194. background: #3f84f6;
  1195. }
  1196. }
  1197. .search-content {
  1198. margin-top: 0.88rem;
  1199. margin-bottom: 0.2rem;
  1200. text-align: center;
  1201. padding: .25rem 0 0 0;
  1202. input {
  1203. border: 1px solid #376ff3;
  1204. }
  1205. span {
  1206. /*height: .46rem;*/
  1207. /*line-height: .46rem;*/
  1208. }
  1209. }
  1210. .peisong_Alert {
  1211. background: #f1f3f6;
  1212. position: fixed;
  1213. bottom: 0.98rem;
  1214. left: 0;
  1215. right: 0;
  1216. top: 0;
  1217. z-index: 11111;
  1218. ul {
  1219. height: calc(100vh - 1.2rem - 1.7rem - 1rem);
  1220. overflow-y: scroll;
  1221. li {
  1222. line-height: 1rem;
  1223. background: #fff;
  1224. padding: 0 0.2rem;
  1225. font-size: 0.28rem;
  1226. color: #333;
  1227. border-bottom: 1px solid #e0e1e2;
  1228. div.name {
  1229. @include overFlowHidden();
  1230. }
  1231. div.target {
  1232. width: 0.36rem;
  1233. height: 0.36rem;
  1234. border-radius: 50%;
  1235. overflow: hidden;
  1236. border: 1px solid #a4a4a4;
  1237. margin-top: 0.3rem;
  1238. &.active {
  1239. background-image: url('/images/order/getChoose_icon.png');
  1240. background-size: 100% 100%;
  1241. border: 0px;
  1242. }
  1243. }
  1244. }
  1245. }
  1246. .sendGoods_Btn {
  1247. @include lineHeight(1rem);
  1248. text-align: center;
  1249. color: #fff;
  1250. font-size: 0.36rem;
  1251. background: #3f84f6;
  1252. }
  1253. }
  1254. .deleteKuang {
  1255. position: fixed;
  1256. background: rgba(0,0,0,0.5);
  1257. top: 0;
  1258. left: 0;
  1259. right: 0;
  1260. bottom: 0;
  1261. z-index: 9999;
  1262. .kuangContent {
  1263. border-radius: 5px;
  1264. background: #fff;
  1265. width: 5rem;
  1266. position: absolute;
  1267. left: 50%;
  1268. top: 50%;
  1269. transform: translate3d(-50%, -50%, 0);
  1270. overflow: hidden;
  1271. .titleinfo {
  1272. font-size: .3rem;
  1273. color: #666;
  1274. text-align: center;
  1275. margin-top: 0.5rem;
  1276. margin-bottom: 0.1rem;
  1277. }
  1278. .title {
  1279. background: #5078cb;
  1280. height: .7rem;
  1281. line-height: .7rem;
  1282. font-size: .3rem;
  1283. color: #fff;
  1284. text-align: center;
  1285. }
  1286. .info {
  1287. color: #f00;
  1288. text-align: center;
  1289. }
  1290. .K_btn {
  1291. margin-top: 0.4rem;
  1292. line-height: 0.7rem;
  1293. height: 0.7rem;
  1294. &::after{
  1295. clear: both;
  1296. display: block;
  1297. content: ' ';
  1298. visibility: hidden;
  1299. zoom: 1;
  1300. }
  1301. div {
  1302. float: left;
  1303. width: 50%;
  1304. font-size: 0.3rem;
  1305. text-align: center;
  1306. &.cancelBtn {
  1307. background: #b4b5b9;
  1308. color: #333;
  1309. }
  1310. &.answerBtn {
  1311. background: #5078cb;
  1312. color: #fff;
  1313. }
  1314. }
  1315. }
  1316. }
  1317. i {
  1318. font-size: .6rem;
  1319. position: absolute;
  1320. right: -0.3rem;
  1321. top: -0.35rem;
  1322. color: #fff;
  1323. &::after{
  1324. position: absolute;
  1325. top: -0.1rem;
  1326. left: -0.1rem;
  1327. right: -0.1rem;
  1328. bottom: -0.1rem;
  1329. content: ' '
  1330. }
  1331. }
  1332. .title {
  1333. background: #3f84f6;
  1334. height: 0.7rem;
  1335. line-height: 0.7rem;
  1336. color: #fff;
  1337. text-align: center;
  1338. font-size: 0.3rem;
  1339. position: relative;
  1340. }
  1341. .Kuang {
  1342. max-height: 10rem;
  1343. width: 6.7rem;
  1344. position: absolute;
  1345. left: 50%;
  1346. top: 50%;
  1347. transform: translate3d(-50%, -50%, 0);
  1348. background: #ececec;
  1349. border-radius: 5px;
  1350. }
  1351. .content {
  1352. overflow-y: scroll;
  1353. max-height: 9.3rem;
  1354. .infob {
  1355. background: #e3edfd;
  1356. padding: 0.2rem;
  1357. .info {
  1358. color: #333;
  1359. font-size: 0.3rem;
  1360. overflow: hidden;
  1361. text-overflow: ellipsis;
  1362. white-space: nowrap;
  1363. margin-bottom: 0.18rem;
  1364. .name {
  1365. color: #666;
  1366. }
  1367. div {
  1368. display: inline-block;
  1369. }
  1370. }
  1371. }
  1372. .content_sq {
  1373. width: 6.4rem;
  1374. margin: 0.1rem auto;
  1375. background: #fff;
  1376. padding: 0.2rem 0rem;
  1377. .list {
  1378. margin-bottom: 0.18rem;
  1379. }
  1380. .fl {
  1381. width: 3.2rem;
  1382. }
  1383. .table {
  1384. width: 4.2rem;
  1385. margin-top: -0.1rem;
  1386. }
  1387. .labelinfo {
  1388. background-image: url('/images/mobile/@2x/labelTop.png');
  1389. background-repeat: no-repeat;
  1390. width: 6.29rem;
  1391. height: 0.64rem;
  1392. line-height: 0.64rem;
  1393. background-size: 100%;
  1394. margin-top: 0rem;
  1395. margin-right: 0rem;
  1396. background-color: rgba(0, 0, 0, 0);
  1397. color: #666;
  1398. }
  1399. }
  1400. }
  1401. }
  1402. .cancelOrder {
  1403. background: #fff;
  1404. position: absolute;
  1405. bottom: 0.98rem;
  1406. left: 0;
  1407. width: 100%;
  1408. border-top-left-radius: 5px;
  1409. border-top-right-radius: 5px;
  1410. overflow: hidden;
  1411. .sendGoods_title {
  1412. color: #333;
  1413. font-size: 0.42rem;
  1414. text-align: center;
  1415. line-height: 1rem;
  1416. font-weight: 600;
  1417. position: relative;
  1418. i {
  1419. position: absolute;
  1420. font-size: 16px;
  1421. right: 0.2rem;
  1422. }
  1423. }
  1424. .cancelOrder_title {
  1425. font-size: 0.36rem;
  1426. color: #333;
  1427. border-bottom: 1px solid #d9d9d9;
  1428. font-weight: bold;
  1429. padding: 0 0.2rem;
  1430. line-height: 0.6rem;
  1431. }
  1432. ul {
  1433. li {
  1434. line-height: 1rem;
  1435. background: #fff;
  1436. padding: 0 0.2rem;
  1437. font-size: 0.32rem;
  1438. color: #333;
  1439. border-bottom: 1px solid #d9d9d9;
  1440. div.name {
  1441. @include overFlowHidden();
  1442. }
  1443. div.target {
  1444. margin-right: 0.2rem;
  1445. width: 0.36rem;
  1446. height: 0.36rem;
  1447. border-radius: 50%;
  1448. overflow: hidden;
  1449. border: 1px solid #a4a4a4;
  1450. margin-top: 0.3rem;
  1451. &.active {
  1452. background-image: url('/images/order/getChoose_icon.png');
  1453. background-size: 100% 100%;
  1454. border: 0px;
  1455. }
  1456. }
  1457. }
  1458. }
  1459. .sendGoods_Btn {
  1460. @include lineHeight(1rem);
  1461. text-align: center;
  1462. color: #fff;
  1463. font-size: 0.36rem;
  1464. background: #3f84f6;
  1465. }
  1466. }
  1467. .labelInfo_ForItem {
  1468. color: #fff;
  1469. font-size: 0.24rem;
  1470. padding: 0.05rem 0.1rem;
  1471. background: #15b262;
  1472. margin-right: 0.1rem;
  1473. border-radius: 3px;
  1474. }
  1475. .com-none-state{
  1476. background: #f1f3f6
  1477. }
  1478. }
  1479. </style>