index.vue 52 KB

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