index.vue 52 KB

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