index.vue 47 KB

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