index.vue 47 KB

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