index.vue 54 KB

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