index.vue 48 KB

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