index.vue 53 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470
  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. this.$router.push(`/mobile/order/details?uuid=${id}&type=${this.vendorType}&paytype=${item.paytype}`)
  815. },
  816. // 买家确认收货
  817. buyerGetGoods(item) {
  818. this.$http.put(`/trade/order/simpleinfo/ones/${item.id}?_status=ensureaccept`).then(res => {
  819. this.onMind('确认收货成功')
  820. this.ChangeList(this.activeType)
  821. })
  822. },
  823. // 买卖家中心字段同步化
  824. _initSetParams(_obj) {
  825. _obj = this.baseUtils.deepCopy(_obj)
  826. for (let i = 0; i < _obj.length; i++) {
  827. if (!_obj[i].purchaseDetails) {
  828. _obj[i].purchaseDetails = _obj[i].orderDetails
  829. }
  830. if (_obj[i].status === 505 || _obj[i].status === 406 || _obj[i].status === 407 || _obj[i].status === 403 || _obj[i].status === 408) {
  831. // _obj[i].paidTimeFromNow = this._getHoursFromNow(_obj[i].paytime)
  832. // _obj[i].lastNotiDelivery = this._getHoursFromNow(_obj[i].lastNotifyDeliveryTime)
  833. }
  834. _obj[i].showItem = _obj[i].purchaseDetails.length > 3 ? 3 : _obj[i].purchaseDetails.length
  835. }
  836. return _obj
  837. },
  838. // 传入时间,计算距离现在的时间是多少小时了
  839. _getHoursFromNow(time) {
  840. if (!time) {
  841. return 0
  842. }
  843. let newTime = new Date()
  844. let msec = newTime.getTime() - time
  845. let hours = parseInt(parseInt(msec) / (1000 * 60 * 60))
  846. return hours
  847. },
  848. onMind(str) {
  849. this.collectResult = str
  850. this.timeoutCount++
  851. },
  852. blur: function() {
  853. setTimeout(() => {
  854. this.$store.dispatch('mobile/SetInputGetFocus', false)
  855. }, 300)
  856. },
  857. inputGetFocus: function() {
  858. setTimeout(() => {
  859. this.$store.dispatch('mobile/SetInputGetFocus', true)
  860. }, 300)
  861. }
  862. },
  863. filters: {
  864. priceFiter(val) {
  865. if (!val) return '0.00'
  866. return val.toFixed(2)
  867. },
  868. time: function (time) {
  869. if (typeof time === 'number') {
  870. if (!time) {
  871. return '无'
  872. } else {
  873. let d = new Date(time)
  874. let year = d.getFullYear()
  875. let month = d.getMonth() + 1
  876. let day = d.getDate() < 10 ? '0' + d.getDate() : '' + d.getDate()
  877. return year + '-' + month + '-' + day
  878. }
  879. }
  880. }
  881. },
  882. components: {
  883. RemindBox,
  884. PullUp
  885. }
  886. }
  887. </script>
  888. <style scoped lang="scss">
  889. @mixin overFlowHidden {
  890. overflow: hidden;
  891. text-overflow: ellipsis;
  892. white-space: nowrap;
  893. }
  894. @mixin lineHeight($value) {
  895. height: $value;
  896. line-height: $value;
  897. }
  898. .order-wrapper {
  899. background: #f1f3f6;
  900. margin: 1.26rem 0 0.98rem 0;
  901. height: calc(100vh - 1.26rem - 0.98rem);
  902. /*padding-bottom: 0.96rem;*/
  903. .order-nav {
  904. background: #fff;
  905. div {
  906. height: 0.82rem;
  907. line-height: 0.82rem;
  908. display: inline-block;
  909. width: 25%;
  910. text-align: center;
  911. font-size: .28rem;
  912. color: #666;
  913. &.active span{
  914. color: #3f84f6;
  915. border-bottom: 0.04rem solid #3f84f6;
  916. padding-bottom: 0.2rem;
  917. }
  918. }
  919. }
  920. .search-content2 {
  921. text-align: center;
  922. padding: .25rem 0 0 0;
  923. margin-top: 0 !important;
  924. input {
  925. width: 7.1rem;
  926. border: 1px solid #376ff3;
  927. }
  928. span {
  929. /*height: .46rem;*/
  930. /*line-height: .46rem;*/
  931. }
  932. }
  933. .order-list-wrap {
  934. height: calc(100vh - 1.26rem - 0.96rem - 0.84rem - 1rem);
  935. overflow-y: scroll;
  936. li {
  937. margin-bottom: 0.2rem;
  938. }
  939. .list-wrap-title{
  940. padding: 0 0.2rem;
  941. background: #fff;
  942. @include lineHeight(0.67rem);
  943. font-size: 0.28rem;
  944. color: #333;
  945. border-bottom: 1px solid #e4e4e4;
  946. .pull-left {
  947. width: 5rem;
  948. @include overFlowHidden();
  949. span {
  950. max-width: 3rem;
  951. @include overFlowHidden();
  952. display: inline-block;
  953. }
  954. img {
  955. width: 0.18rem;
  956. height: 0.32rem;
  957. vertical-align: top;
  958. margin-top: 0.18rem;
  959. margin-left: 0.1rem;
  960. }
  961. }
  962. .pull-right {
  963. .red {
  964. color: #f21c1c;
  965. }
  966. }
  967. }
  968. .list-wrap-content {
  969. background: #f9f9f8;
  970. padding: 0.3rem 0.2rem;
  971. padding-right: 0.32rem;
  972. border-bottom: 1px solid #e4e4e4;
  973. .list-item {
  974. font-size: 0.28rem;
  975. color: #333;
  976. /*line-height: 0.5rem;*/
  977. margin-top: 0.22rem;
  978. &:nth-child(1) {
  979. margin-top: 0px;
  980. }
  981. .list-wrap-content-brand {
  982. @include overFlowHidden();
  983. .spec {
  984. width: 3.1rem;
  985. @include overFlowHidden();
  986. margin-right: 0.2rem;
  987. &.noMargin {
  988. margin-right: 0;
  989. width: 1.5rem;
  990. }
  991. }
  992. }
  993. .name {
  994. color: #666;
  995. }
  996. .lab {
  997. color: #999;
  998. font-size: 0.24rem;
  999. max-width: 2.1rem;
  1000. @include overFlowHidden();
  1001. span {
  1002. font-size: 0.16rem;
  1003. }
  1004. }
  1005. .pri {
  1006. font-size: 0.28rem;
  1007. color: #f43938;
  1008. @include overFlowHidden();
  1009. width: 2.4rem;
  1010. }
  1011. }
  1012. }
  1013. .orderNumber {
  1014. font-size: 0.27rem;
  1015. color: #666;
  1016. border-bottom: 1px solid #e4e4e4;
  1017. @include lineHeight(0.88rem);
  1018. background: #fff;
  1019. padding: 0 0.2rem;
  1020. .pull-left {
  1021. width: 5rem;
  1022. @include overFlowHidden();
  1023. span {
  1024. color: #3f84f6
  1025. }
  1026. }
  1027. }
  1028. .list-all-info{
  1029. text-align: right;
  1030. background: #fff;
  1031. padding: 0 0.2rem;
  1032. @include overFlowHidden();
  1033. line-height: 0.66rem;
  1034. font-size: 0.26rem;
  1035. color: #333;
  1036. border-bottom: 1px solid #e4e4e4;
  1037. .pri {
  1038. font-size: 0.32rem;
  1039. color: #f43938;
  1040. }
  1041. .red {
  1042. color: #f43938;
  1043. font-size: 0.24rem;
  1044. }
  1045. .lab {
  1046. color: #999;
  1047. font-size: 0.24rem;
  1048. }
  1049. }
  1050. .list-btn {
  1051. background: #fff;
  1052. @include lineHeight(0.8rem);
  1053. padding: 0 0.2rem;
  1054. div {
  1055. display: inline-block;
  1056. width: 1.5rem;
  1057. @include lineHeight(0.56rem);
  1058. border: 1px solid #333;
  1059. font-size: 0.26rem;
  1060. color: #333;
  1061. text-align: center;
  1062. margin-top: 0.11rem;
  1063. margin-left: 0.2rem;
  1064. border-radius: 3px;
  1065. &.sendGoods {
  1066. color: #f43938;
  1067. border: 1px solid #f43938;
  1068. }
  1069. &.cancat {
  1070. height: 0.56rem;
  1071. line-height: 0.56rem;
  1072. border: 1px solid #3f84f6;
  1073. color: #3f84f6;
  1074. font-size: 0.26rem;
  1075. text-align: center;
  1076. border-radius: 3px;
  1077. padding: 0 0.1rem;
  1078. overflow: hidden;
  1079. width: auto;
  1080. i {
  1081. font-size: 0.26rem;
  1082. }
  1083. }
  1084. }
  1085. }
  1086. .lookMorePro {
  1087. background: #fff;
  1088. font-size: 0.28rem;
  1089. color: #999;
  1090. text-align: center;
  1091. border-bottom: 1px solid #e4e4e4;
  1092. @include lineHeight(0.67rem);
  1093. img {
  1094. transform: rotate(90deg);
  1095. width: 0.16rem;
  1096. height: 0.26rem;
  1097. vertical-align: top;
  1098. margin-top: 0.23rem;
  1099. margin-left: 0.1rem;
  1100. }
  1101. }
  1102. }
  1103. .sendGoods_Alert {
  1104. background: #fff;
  1105. position: fixed;
  1106. bottom: 0.98rem;
  1107. left: 0;
  1108. width: 100%;
  1109. border-top-left-radius: 5px;
  1110. border-top-right-radius: 5px;
  1111. overflow: hidden;
  1112. .sendGoods_title {
  1113. color: #333;
  1114. font-size: 0.42rem;
  1115. text-align: center;
  1116. line-height: 1rem;
  1117. font-weight: 600;
  1118. position: relative;
  1119. i {
  1120. position: absolute;
  1121. font-size: 16px;
  1122. right: 0.2rem;
  1123. }
  1124. }
  1125. .sendGoods_buyer {
  1126. padding: 0.3rem 0.2rem;
  1127. border-bottom: 1px solid #d9d9d9;
  1128. border-top: 1px solid #d9d9d9;
  1129. .sendGoods_buyer_top {
  1130. color: #333;
  1131. font-size: 0.3rem;
  1132. font-weight: bold;
  1133. .name {
  1134. margin-right: 0.3rem;
  1135. margin-left: 0.32rem;
  1136. }
  1137. }
  1138. .sendGoods_buyer_bottom {
  1139. color: #333;
  1140. font-size: 0.26rem;
  1141. margin-top: 0.2rem;
  1142. img {
  1143. width: 0.22rem;
  1144. height: 0.29rem;
  1145. margin-right: 0.1rem;
  1146. margin-top: -0.1rem;
  1147. }
  1148. }
  1149. }
  1150. .sendGoods_list {
  1151. padding: 0 0.2rem;
  1152. @include lineHeight(0.8rem);
  1153. border-bottom: 1px solid #d9d9d9;
  1154. font-size: 0.32rem;
  1155. color: #333;
  1156. /*.ti {*/
  1157. /*font-weight: bold;*/
  1158. /*}*/
  1159. .pull-right {
  1160. font-size: 0.28rem;
  1161. color: #999;
  1162. img {
  1163. width: 0.14rem;
  1164. height: 0.24rem;
  1165. vertical-align: middle;
  1166. margin-top: -0.02rem;
  1167. margin-left: 0.1rem;
  1168. }
  1169. }
  1170. input {
  1171. width: 4rem;
  1172. text-align: right;
  1173. color: #333;
  1174. }
  1175. }
  1176. .sendGoods_Btn {
  1177. @include lineHeight(1rem);
  1178. text-align: center;
  1179. color: #fff;
  1180. font-size: 0.36rem;
  1181. background: #3f84f6;
  1182. }
  1183. }
  1184. .search-content {
  1185. margin-top: 0.88rem;
  1186. margin-bottom: 0.2rem;
  1187. text-align: center;
  1188. padding: .25rem 0 0 0;
  1189. input {
  1190. border: 1px solid #376ff3;
  1191. }
  1192. span {
  1193. /*height: .46rem;*/
  1194. /*line-height: .46rem;*/
  1195. }
  1196. }
  1197. .peisong_Alert {
  1198. background: #f1f3f6;
  1199. position: fixed;
  1200. bottom: 0.98rem;
  1201. left: 0;
  1202. right: 0;
  1203. top: 0;
  1204. z-index: 11111;
  1205. ul {
  1206. height: calc(100vh - 1.2rem - 1.7rem - 1rem);
  1207. overflow-y: scroll;
  1208. li {
  1209. line-height: 1rem;
  1210. background: #fff;
  1211. padding: 0 0.2rem;
  1212. font-size: 0.28rem;
  1213. color: #333;
  1214. border-bottom: 1px solid #e0e1e2;
  1215. div.name {
  1216. @include overFlowHidden();
  1217. }
  1218. div.target {
  1219. width: 0.36rem;
  1220. height: 0.36rem;
  1221. border-radius: 50%;
  1222. overflow: hidden;
  1223. border: 1px solid #a4a4a4;
  1224. margin-top: 0.3rem;
  1225. &.active {
  1226. background-image: url('/images/order/getChoose_icon.png');
  1227. background-size: 100% 100%;
  1228. border: 0px;
  1229. }
  1230. }
  1231. }
  1232. }
  1233. .sendGoods_Btn {
  1234. @include lineHeight(1rem);
  1235. text-align: center;
  1236. color: #fff;
  1237. font-size: 0.36rem;
  1238. background: #3f84f6;
  1239. }
  1240. }
  1241. .deleteKuang {
  1242. position: fixed;
  1243. background: rgba(0,0,0,0.5);
  1244. top: 0;
  1245. left: 0;
  1246. right: 0;
  1247. bottom: 0;
  1248. z-index: 9999;
  1249. .kuangContent {
  1250. border-radius: 5px;
  1251. background: #fff;
  1252. width: 5rem;
  1253. position: absolute;
  1254. left: 50%;
  1255. top: 50%;
  1256. transform: translate3d(-50%, -50%, 0);
  1257. overflow: hidden;
  1258. .titleinfo {
  1259. font-size: .3rem;
  1260. color: #666;
  1261. text-align: center;
  1262. margin-top: 0.5rem;
  1263. margin-bottom: 0.1rem;
  1264. }
  1265. .title {
  1266. background: #5078cb;
  1267. height: .7rem;
  1268. line-height: .7rem;
  1269. font-size: .3rem;
  1270. color: #fff;
  1271. text-align: center;
  1272. }
  1273. .info {
  1274. color: #f00;
  1275. text-align: center;
  1276. }
  1277. .K_btn {
  1278. margin-top: 0.4rem;
  1279. line-height: 0.7rem;
  1280. height: 0.7rem;
  1281. &::after{
  1282. clear: both;
  1283. display: block;
  1284. content: ' ';
  1285. visibility: hidden;
  1286. zoom: 1;
  1287. }
  1288. div {
  1289. float: left;
  1290. width: 50%;
  1291. font-size: 0.3rem;
  1292. text-align: center;
  1293. &.cancelBtn {
  1294. background: #b4b5b9;
  1295. color: #333;
  1296. }
  1297. &.answerBtn {
  1298. background: #5078cb;
  1299. color: #fff;
  1300. }
  1301. }
  1302. }
  1303. }
  1304. i {
  1305. font-size: .6rem;
  1306. position: absolute;
  1307. right: -0.3rem;
  1308. top: -0.35rem;
  1309. color: #fff;
  1310. &::after{
  1311. position: absolute;
  1312. top: -0.1rem;
  1313. left: -0.1rem;
  1314. right: -0.1rem;
  1315. bottom: -0.1rem;
  1316. content: ' '
  1317. }
  1318. }
  1319. .title {
  1320. background: #3f84f6;
  1321. height: 0.7rem;
  1322. line-height: 0.7rem;
  1323. color: #fff;
  1324. text-align: center;
  1325. font-size: 0.3rem;
  1326. position: relative;
  1327. }
  1328. .Kuang {
  1329. max-height: 10rem;
  1330. width: 6.7rem;
  1331. position: absolute;
  1332. left: 50%;
  1333. top: 50%;
  1334. transform: translate3d(-50%, -50%, 0);
  1335. background: #ececec;
  1336. border-radius: 5px;
  1337. }
  1338. .content {
  1339. overflow-y: scroll;
  1340. max-height: 9.3rem;
  1341. .infob {
  1342. background: #e3edfd;
  1343. padding: 0.2rem;
  1344. .info {
  1345. color: #333;
  1346. font-size: 0.3rem;
  1347. overflow: hidden;
  1348. text-overflow: ellipsis;
  1349. white-space: nowrap;
  1350. margin-bottom: 0.18rem;
  1351. .name {
  1352. color: #666;
  1353. }
  1354. div {
  1355. display: inline-block;
  1356. }
  1357. }
  1358. }
  1359. .content_sq {
  1360. width: 6.4rem;
  1361. margin: 0.1rem auto;
  1362. background: #fff;
  1363. padding: 0.2rem 0rem;
  1364. .list {
  1365. margin-bottom: 0.18rem;
  1366. }
  1367. .fl {
  1368. width: 3.2rem;
  1369. }
  1370. .table {
  1371. width: 4.2rem;
  1372. margin-top: -0.1rem;
  1373. }
  1374. .labelinfo {
  1375. background-image: url('/images/mobile/@2x/labelTop.png');
  1376. background-repeat: no-repeat;
  1377. width: 6.29rem;
  1378. height: 0.64rem;
  1379. line-height: 0.64rem;
  1380. background-size: 100%;
  1381. margin-top: 0rem;
  1382. margin-right: 0rem;
  1383. background-color: rgba(0, 0, 0, 0);
  1384. color: #666;
  1385. }
  1386. }
  1387. }
  1388. }
  1389. .cancelOrder {
  1390. background: #fff;
  1391. position: absolute;
  1392. bottom: 0.98rem;
  1393. left: 0;
  1394. width: 100%;
  1395. border-top-left-radius: 5px;
  1396. border-top-right-radius: 5px;
  1397. overflow: hidden;
  1398. .sendGoods_title {
  1399. color: #333;
  1400. font-size: 0.42rem;
  1401. text-align: center;
  1402. line-height: 1rem;
  1403. font-weight: 600;
  1404. position: relative;
  1405. i {
  1406. position: absolute;
  1407. font-size: 16px;
  1408. right: 0.2rem;
  1409. }
  1410. }
  1411. .cancelOrder_title {
  1412. font-size: 0.36rem;
  1413. color: #333;
  1414. border-bottom: 1px solid #d9d9d9;
  1415. font-weight: bold;
  1416. padding: 0 0.2rem;
  1417. line-height: 0.6rem;
  1418. }
  1419. ul {
  1420. li {
  1421. line-height: 1rem;
  1422. background: #fff;
  1423. padding: 0 0.2rem;
  1424. font-size: 0.32rem;
  1425. color: #333;
  1426. border-bottom: 1px solid #d9d9d9;
  1427. div.name {
  1428. @include overFlowHidden();
  1429. }
  1430. div.target {
  1431. margin-right: 0.2rem;
  1432. width: 0.36rem;
  1433. height: 0.36rem;
  1434. border-radius: 50%;
  1435. overflow: hidden;
  1436. border: 1px solid #a4a4a4;
  1437. margin-top: 0.3rem;
  1438. &.active {
  1439. background-image: url('/images/order/getChoose_icon.png');
  1440. background-size: 100% 100%;
  1441. border: 0px;
  1442. }
  1443. }
  1444. }
  1445. }
  1446. .sendGoods_Btn {
  1447. @include lineHeight(1rem);
  1448. text-align: center;
  1449. color: #fff;
  1450. font-size: 0.36rem;
  1451. background: #3f84f6;
  1452. }
  1453. }
  1454. .labelInfo_ForItem {
  1455. color: #fff;
  1456. font-size: 0.24rem;
  1457. padding: 0.05rem 0.1rem;
  1458. background: #15b262;
  1459. margin-right: 0.1rem;
  1460. border-radius: 3px;
  1461. }
  1462. .com-none-state{
  1463. background: #f1f3f6
  1464. }
  1465. }
  1466. </style>