index.vue 48 KB

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