details.vue 70 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845
  1. <template>
  2. <div class="order-wrapper">
  3. <div class="order-details-wrap">
  4. <div class="order-details-top">
  5. <div class="orderNumber clearfix">
  6. <div class="pull-left">订单号:<span>{{orderList.orderid}}</span></div>
  7. <div class="pull-right">{{orderList.createtime || orderList.creattime | time}}</div>
  8. </div>
  9. <div class="orderStatus clearfix">
  10. <div class="clearfix">
  11. <span style="color: #666">订单状态:</span>
  12. <template v-if="vendorType === 'buyer'">
  13. <span v-if="orderList.status === 404">待收货</span>
  14. <span v-if="orderList.status === 404" style="color: #666">{{restTime()}}</span>
  15. <span v-else-if="orderList.status === 505 || orderList.status === 406 || orderList.status === 407 || orderList.status === 403 || orderList.status === 408">待卖家发货</span>
  16. <span v-else-if="orderList.status === 501 || orderList.status === 502 || orderList.status === 503 || orderList.status === 524">待付款</span>
  17. <span v-else-if="orderList.status === 602 || orderList.status === 603 || orderList.status === 315 || orderList.status === 604 || orderList.status === 605 || orderList.status === 606">已取消</span>
  18. <span v-else-if="orderList.status === 504">付款确认中</span>
  19. <span v-else-if="orderList.status === 520 || orderList.status === 405">交易已完成</span>
  20. <span v-else-if="orderList.status === 525">卖家请求取消</span>
  21. </template>
  22. <template v-else>
  23. <span v-if="orderList.status === 502 || orderList.status === 406">买家已付款</span>
  24. <span v-else-if="orderList.status === 602 || orderList.status === 603 || orderList.status === 315 || orderList.status === 604 || orderList.status === 605 || orderList.status === 606">订单已取消</span>
  25. <span v-else-if="orderList.status === 501 || orderList.status === 524 ">待买家付款</span>
  26. <span v-else-if="orderList.status === 404">请耐心等待买家确认收货</span>
  27. <span v-else-if="orderList.status === 405 || orderList.status === 514 || orderList.status === 503 || orderList.status === 506">待商城付款</span>
  28. <span v-else-if="orderList.status === 606">交易关闭</span>
  29. <span v-else-if="orderList.status === 520">交易完成</span>
  30. <span v-else-if="orderList.status === 525">卖家发起取消,待确认</span>
  31. <span v-else-if="orderList.status === 504">付款确认中</span>
  32. </template>
  33. </div>
  34. </div>
  35. </div>
  36. <ul class="order-list-wrap">
  37. <li class="clearfix">
  38. <div class="clearfix top-t-wrap">
  39. <div class="pull-left clearfix">
  40. <template v-if="vendorType !== 'buyer'">
  41. <div style="color: #666">买家:</div>
  42. <!--<span class="labelInfo_ForItem" v-if="item.storeid === '33069557578d44e69bd91ad12d28a8d4'">寄售</span>-->
  43. <div style="color: #333">{{orderList.buyentername || '(个人账户)'}}</div><div>&nbsp;|&nbsp;{{orderList.buyername}}</div>
  44. </template>
  45. </div>
  46. <div class="pull-right" v-if="vendorType !== 'buyer'">
  47. <div class="concat" @click="cancatAlert()">
  48. <i class="iconfont icon-kefu1"></i>联系买家
  49. </div>
  50. </div>
  51. <div class="pull-right" v-if="vendorType === 'buyer'">
  52. <div class="concat" @click="cancatAlert()">
  53. <i class="iconfont icon-kefu1"></i>联系卖家
  54. </div>
  55. </div>
  56. </div>
  57. <div class="list-wrap-content" @click="toproductdetails(details)" v-for="(details, index) in orderList.purchaseDetails" v-if="index < showItem">
  58. <div class="list-item clearfix">
  59. <div class="list-wrap-content-brand clearfix pull-left">
  60. <div class="name pull-left">品牌:</div>
  61. <div class="pull-left spec">{{details.brName || '-'}}</div>
  62. </div>
  63. <div class="pull-left list-wrap-content-brand clearfix">
  64. <div class="name pull-left">交期(天):</div>
  65. <div class="pull-left spec noMargin" v-if="details.b2cMinDelivery !== details.b2cMaxDelivery">{{details.b2cMinDelivery}}-{{details.b2cMaxDelivery}}</div>
  66. <div class="pull-left spec noMargin" v-else>{{details.b2cMinDelivery}}</div>
  67. </div>
  68. </div>
  69. <div class="list-item clearfix">
  70. <div class="list-wrap-content-brand clearfix pull-left">
  71. <div class="name pull-left">物料名称(类目):</div>
  72. <div class="pull-left spec" style="width: 1.79rem">{{details.kiName || '-'}}</div>
  73. </div>
  74. <div class="pull-left list-wrap-content-brand clearfix">
  75. <div class="name pull-left">单价:</div>
  76. <div class="pull-left spec noMargin">
  77. <span v-if="orderList.currency === 'RMB'">¥</span><span v-else>$</span>{{details.taxUnitprice || details.taxUnitPrice}}
  78. </div>
  79. </div>
  80. </div>
  81. <div class="list-item clearfix">
  82. <div class="list-wrap-content-brand clearfix pull-left">
  83. <div class="name pull-left">型号:</div>
  84. <div class="pull-left spec">{{details.cmpCode || '-'}}</div>
  85. </div>
  86. <div class="pull-left list-wrap-content-brand clearfix">
  87. <div class="name pull-left">数量:</div>
  88. <div class="pull-left spec noMargin"><span></span>{{details.number}}</div>
  89. </div>
  90. </div>
  91. <div class="list-item clearfix">
  92. <div class="list-wrap-content-brand clearfix pull-left">
  93. <div class="name pull-left">规格:</div>
  94. <div class="pull-left spec">{{details.spec || '-'}}</div>
  95. </div>
  96. <div class="pull-left pri clearfix">
  97. <div class="name pull-left">小计:</div>
  98. <span v-if="orderList.currency === 'RMB'">¥</span><span v-else>$</span>{{details.ensurePrice}}
  99. </div>
  100. </div>
  101. </div>
  102. </li>
  103. </ul>
  104. <div class="lookMorePro" @click="showItem = orderList.purchaseDetails.length" v-if="showItem === 3 && orderList.purchaseDetails && orderList.purchaseDetails.length > 3">查看剩余产品<img src="/images/mobile/user/icon-right.png"/></div>
  105. <!--<div class="clearfix top-w-wrap">-->
  106. <!--<div class="name pull-left">订单备注</div>-->
  107. <!--<div class="detailsinfo pull-left">{{orderList.purchaseRemark || '无'}}</div>-->
  108. <!--</div>-->
  109. <div class="order-details-priInfo">
  110. <div class="clearfix">
  111. <div class="justifyAlign">运费:</div>
  112. <span style="display: inline-block;min-width:2rem;text-align: left">
  113. <a v-if="orderList.currency === 'RMB'" class="red" style="color:#f43938;">¥{{orderList.fare | priceFiter}}</a>
  114. <a class="red" style="color:#f43938;" v-else>${{orderList.fare | priceFiter}}</a>
  115. </span>
  116. </div>
  117. <div class="clearfix">
  118. <div class="justifyAlign">手续费:</div>
  119. <span style="display: inline-block;width:2rem;text-align: left">
  120. <a v-if="orderList.currency === 'RMB'" class="red" style="color:#f43938;">¥0.00</a><a class="red" style="color:#f43938;" v-else>$0.00</a>
  121. <!--<a class="del" style="text-decoration: line-through;color: #999;font-size: 0.24rem;">(¥{{parseFloat(orderList.ensurePrice * 0.0045).toFixed(2)}})</a>-->
  122. <span class="jianmian">减免</span>
  123. <img src="/images/order/remem_icon.png" style="min-width:0.2rem;height:0.2rem" @click="showRemindStr = true" />
  124. </span>
  125. </div>
  126. </div>
  127. <div class="list-all-info clearfix">
  128. <!--共<span>{{orderList.batchQty}}</span>件商品&nbsp;&nbsp;合计:-->
  129. <div style="font-size: 0.27rem;" class="justifyAlign">合计:</div>
  130. <span class="pri" style="min-width: 2rem;text-align: left">
  131. <a v-if="orderList.currency === 'RMB'" class="red" style="color:#f43938;font-size: 0.32rem;">¥</a><a class="red" style="color:#f43938;font-size: 0.32rem;" v-else>$</a>{{orderList.ensurePrice}}
  132. </span>
  133. <!--<span class="lab">(含运费:<a class="red">¥</a><a class="red">{{orderList.fare | priceFiter}}</a>)</span>-->
  134. <!--<div>手续费:<a class="red">¥0.00</a><span class="del">(¥{{parseFloat(orderList.ensurePrice * 0.0045).toFixed(2)}})</span></div>-->
  135. </div>
  136. <div class="order-details-info">
  137. <!--<div class="clearfix">-->
  138. <!--<div class="name pull-left">配送方式</div>-->
  139. <!--<div class="pull-right" :style="!orderList.rule.ruleName ? {lineHeight: '0.88rem'} : ''">-->
  140. <!--<div :style="orderList.rule.ruleName ? {margin: '0.13rem 0 0.06rem 0'} : ''">{{orderList.sendType === 1301 ? '第三方配送' : (orderList.sendType === 1302 ? '卖家配送': '上门自提')}}</div>-->
  141. <!--<div class="smallfont">{{orderList.rule.ruleName ? orderList.rule.ruleName : ''}}</div>-->
  142. <!--</div>-->
  143. <!--</div>-->
  144. <div class="clearfix">
  145. <div class="name pull-left">收货地址</div>
  146. <div class="pull-right" style="text-align: left">
  147. <div class="name" style="margin: 0.22rem 0 0 0">{{orderList.area.area}} &nbsp;&nbsp;{{orderList.area.detailAddress}}</div>
  148. </div>
  149. <div style="clear:both"></div>
  150. <div style="padding-bottom: 0.1rem;" class="smallfont">
  151. <span class="tel" style="width: 50%;display: inline-block">收货人:<a style="color: #333">{{orderList.area.name}}</a></span>
  152. <span class="tel" style="width: 50%;display: inline-block">电话:<a style="color: #333">{{orderList.area.tel}}</a></span>
  153. </div>
  154. </div>
  155. <div class="clearfix">
  156. <div class="name pull-left">发票信息</div>
  157. <template v-if="orderList.invoicetype === 1205 || orderList.invoicetype === 1206">
  158. <div class="pull-right clearfix" @click="showinvoiceType = !showinvoiceType" style="line-height: 0.88rem;padding: 0;border-bottom: 0;max-width: 6rem;">
  159. <div class="overHiddenText" style="float:left">{{orderList.invoicetitle}}</div>
  160. <div class="smallfont" style="font-size: 0.24rem;float: left">
  161. ({{orderList.invoicetype === 1205 ? '增值税(专用)发票': '增值税普通发票'}})
  162. </div>
  163. <img src="/images/mobile/user/icon-right.png" :class="showinvoiceType ? 'dropList' : '' " style="float: left"/>
  164. </div>
  165. </template>
  166. <template v-else>
  167. <div class="pull-right clearfix" style="line-height: 0.88rem;padding: 0;border-bottom: 0;">
  168. 暂不开票
  169. </div>
  170. </template>
  171. </div>
  172. <div class="clearfix">
  173. <div class="name pull-left">支付方式</div>
  174. <div class="pull-right" style="line-height: 0.88rem">
  175. <!--{{orderList.paytype}}-->
  176. {{orderList.paytype === '1103' ? '线下付款' : '线下付款'}}
  177. </div>
  178. </div>
  179. <div class="clearfix">
  180. <template v-if="logisticsInfo.length === 0">
  181. <div class="name pull-left">物流信息</div>
  182. <div class="pull-right" style="line-height: 0.88rem">暂无信息</div>
  183. </template>
  184. <template v-else>
  185. <div class="name" style="line-height: 0.88rem;">物流信息</div>
  186. <ul class="logistics_ul" v-if="logisticsInfo.length > 0" style="width: 100%">
  187. <li class="clearfix" v-for="(item, index) in logisticsInfo">
  188. <div class="pull-left" :class="index > 0 ? '' : 'marginL'">
  189. <div class="logistics_icon" :class="index > 0 ? '' : 'active'">
  190. <div class="red" v-if="index === 0"></div>
  191. </div>
  192. </div>
  193. <div class="pull-right" :class="index > 0 ? '' : 'marginT'">
  194. <div class="logistics_time">{{item.AcceptTime}}</div>
  195. <div class="logistics_info">{{item.AcceptStation}}</div>
  196. </div>
  197. </li>
  198. </ul>
  199. </template>
  200. </div>
  201. </div>
  202. <div class="order-details-moreinfo clearfix">
  203. <div class="clearfix moreinfoList">
  204. <div class="pull-left">
  205. <div class="">创建时间:
  206. {{orderList.createtime || orderList.creattime | time2}}</div>
  207. <div class="" v-if="vendorType === 'buyer'">付款时间:
  208. <template v-if="getOverTiem(505) > 0">{{getOverTiem(505) | time2 }}</template>
  209. <template v-else>暂未付款</template>
  210. </div>
  211. <div class="" v-else>付款时间:
  212. <template v-if="getOverTiem(502) > 0 && vendorType !== 'buyer'">
  213. {{getOverTiem(502) | time2 }}
  214. </template>
  215. <template v-else-if="getOverTiem(505) > 0 && vendorType === 'buyer'">
  216. {{getOverTiem(505) | time2 }}
  217. </template>
  218. <template v-else>暂未付款</template>
  219. </div>
  220. <div class="">发货时间:
  221. <template v-if="getOverTiem(404) > 0">{{getOverTiem(404) | time2 }}</template>
  222. <template v-else>暂未发货</template>
  223. </div>
  224. </div>
  225. <!--<div class="pull-right copyBtn" @click="copyBtn()">复制</div>-->
  226. </div>
  227. <div class="list-btn clearfix" ref="listBtn" v-show="ShowFixedBtn">
  228. <template v-if="vendorType === 'buyer'">
  229. <div class="sendGoods" v-if="orderList.status === 404" @click="buyerGetGoods(orderList)">确认收货</div>
  230. <div class="sendGoods" v-if="!orderList.installmentId && (orderList.status === 503 || orderList.status === 501)" @click="gotoPay(orderList)">立即付款</div>
  231. <div class="sendGoods" @click="onMind('此订单为分期付款,请前往【PC】端进行相关操作')" v-if="orderList.installmentId && (orderList.status === 503 || orderList.status === 504 || orderList.status === 524 ) && orderList.installment.status !== 505 && !orderList.againUpload">立即付款</div>
  232. <div class="" @click="onMind('此订单为分期付款,请前往【PC】端进行相关操作')" v-if="orderList.installmentId && (orderList.status === 503 || orderList.status === 504 || orderList.status === 524 ) && orderList.installment.status !== 505 && orderList.againUpload">重新上传</div>
  233. <div class="" @click="cancelOrder(orderList)" v-if="orderList.status === 503 || orderList.status === 501 || orderList.status === 502">取消订单</div>
  234. <div @click="paidTime(orderList)" class="" v-if="_getHoursFromNow(orderList.paytime) > sellsendGoodsTime - 1 && orderList.status !== 404 && orderList.status !== 524 && orderList.status !== 520 && orderList.status !== 405 && orderList.status !== 521">提醒发货</div>
  235. <!--<div @click="lookLogisticsInfo(orderList)" class="" v-if="orderList.status === 404 || orderList.status === 520 || orderList.status === 405 || orderList.status === 521">查看物流</div>-->
  236. </template>
  237. <template v-else>
  238. <div class="sendGoods" v-if="(orderList.status === 502 || orderList.status === 406) && !orderList.uasPurcid" @click="sendGoods(orderList)">点击发货</div>
  239. <div @click="changelogistics(orderList)" class="sendGoods" v-if="orderList.status === 404 && !orderList.uasPurcid && status === ''">修改物流</div>
  240. <!--<div @click="lookLogisticsInfo(orderList)" class="" v-if="orderList.status === 404 || orderList.status === 520 || orderList.status === 405 || orderList.status === 503 || orderList.status === 514">查看物流</div>-->
  241. <div @click="onMind('此订单为分期付款,请前往【PC】端进行相关操作')" class="" v-if="orderList.installmentId && ((orderList.installment.status === 503 && orderList.Overtime) || orderList.installment.status === 504) && orderList.status !== 606 && orderList.status !== 525">
  242. 取消订单
  243. </div>
  244. <div @click="onMind('此订单为分期付款,请前往【PC】端进行相关操作')" class="" v-if="installmentDetailPaid(orderList) && orderList.status !== 525 && orderList.status !== 606">
  245. 确认收款
  246. </div>
  247. </template>
  248. </div>
  249. </div>
  250. </div>
  251. <remind-str :showRemind="showRemindStr"
  252. :text="'手续费:是指第三方支付机构在交易过程中,按照一定的百分比进行收取的费用。手续费金额=订单金额 * 0.45%'"
  253. @closeAction="showRemindStr = false"
  254. ></remind-str>
  255. <!-- 发票信息 -->
  256. <div class="mobile-modal" @touchmove="preventTouchMove($event)" v-if="orderList.invoicetype === 1205 || orderList.invoicetype === 1206" v-show="showinvoiceType">
  257. <div class="mobile-modal-box mobile-link-en mobile-link-en2">
  258. <div class="mobile-modal-header">发票信息<i @click="showinvoiceType = false" class="icon-guanbi iconfont"></i></div>
  259. <div class="order-details-invoiceinfo" >
  260. <div class="order-details-invoiceinfo-content">
  261. <!--<div class="invoiceList clearfix" >-->
  262. <!--<div class="pull-left">发票类型:</div>-->
  263. <!--<div class="pull-right">-->
  264. <!--{{orderList.invoicetype === 1205 ? '增值税(专用)发票': '增值税普通发票'}}-->
  265. <!--</div>-->
  266. <!--</div>-->
  267. <img src="/images/order/zhuanpiao.png" v-if="orderList.invoicetype === 1205"/>
  268. <img src="/images/order/pupiao.png" v-else/>
  269. <div class="invoiceList clearfix" style="font-size: 0.28rem;color: #333">
  270. {{orderList.invoicetitle}}
  271. <!--<div class="pull-left">发票抬头:</div>-->
  272. <!--<div class="pull-right">{{orderList.invoicetitle || '空'}}</div>-->
  273. </div>
  274. <div class="invoiceList clearfix" v-if="orderList.invoicetype === 1205">
  275. <div class="pull-left">单位地址:</div>
  276. <div class="pull-left">{{invoiceAddress.companyAddress || '空'}}</div>
  277. </div>
  278. <div class="invoiceList clearfix" v-if="orderList.invoicetype === 1205">
  279. <div class="pull-left">单位电话:</div>
  280. <div class="pull-left">{{invoiceAddress.companyPhone || '空'}}</div>
  281. </div>
  282. <div class="invoiceList clearfix" v-if="orderList.invoicetype === 1205">
  283. <div class="pull-left">税务登记号:</div>
  284. <div class="pull-left">{{invoiceAddress.companyTaxNumber || '空'}}</div>
  285. </div>
  286. <div class="invoiceList clearfix" v-if="orderList.invoicetype === 1205">
  287. <div class="pull-left">{{invoiceAddress.bankName}}:</div>
  288. <div class="pull-left">{{invoiceAddress.bankAccount}}</div>
  289. </div>
  290. <div class="invoiceList clearfix">
  291. <div class="pull-left">{{invoiceAddress.name}}:</div>
  292. <div class="pull-left">{{invoiceAddress.telephone || '空'}}</div>
  293. </div>
  294. <div class="invoiceList clearfix">
  295. {{invoiceAddress.area}}{{invoiceAddress.detailAddress}}
  296. </div>
  297. </div>
  298. </div>
  299. </div>
  300. </div>
  301. <!-- /end -->
  302. <!-- 发货弹窗 -->
  303. <div class="mobile-modal" v-if="showSend" @touchmove="preventTouchMove($event)">
  304. <div class="sendGoods_Alert">
  305. <div class="sendGoods_title">发货信息<span><i class="iconfont icon-guanbi1" @click="showSend = false"></i></span></div>
  306. <div class="sendGoods_buyer">
  307. <div class="sendGoods_buyer_top">
  308. <span class="name">{{sendGoodsInfo.area.name}}</span>
  309. <span class="tel">{{sendGoodsInfo.area.tel}}</span>
  310. </div>
  311. <div class="sendGoods_buyer_bottom">
  312. <img src="/images/order/address_icon.png"/>
  313. <span>{{sendGoodsInfo.area.area}}{{sendGoodsInfo.area.detailAddress}}</span>
  314. </div>
  315. </div>
  316. <div class="sendGoods_list clearfix">
  317. <div class="ti pull-left">配送方式</div>
  318. <div class="pull-right">
  319. {{sendGoodsInfo.sendType === 1301 ? '第三方配送' : (sendGoodsInfo.sendType === 1302 ? '卖家配送': '上门自提')}}
  320. </div>
  321. </div>
  322. <div class="sendGoods_list clearfix" @click="choosePeisong()">
  323. <div class="ti pull-left">配送商</div>
  324. <div class="pull-right">{{peisongShowName ? peisongShowName : '请选择'}}<img src="/images/mobile/user/icon-right.png"/></div>
  325. </div>
  326. <div class="sendGoods_list clearfix">
  327. <div class="ti pull-left">运单号</div>
  328. <div class="pull-right"><input type="number" placeholder="请输入运单号" v-model="sendGoodsInfo.kuaidinumber"/></div>
  329. </div>
  330. <div class="sendGoods_Btn" @click="saveSendGoods()">
  331. 确定
  332. </div>
  333. </div>
  334. </div>
  335. <!-- /end 发货弹窗 -->
  336. <!-- 选择配送商 -->
  337. <div class="mobile-modal" v-if="peisongShow">
  338. <div class="peisong_Alert">
  339. <div class="com-mobile-header" >
  340. <a @click="peisongShow = false"><i class="iconfont icon-fanhui"></i></a>
  341. <p>选择配送商
  342. </p>
  343. </div>
  344. <div class="search-content">
  345. <input type="text" v-model="seekKeyword" placeholder="请输入您要查找的配送商" @keyup.13="searchSeek" ref="searchSeekInput" @focus="inputGetFocus()" @blur="blur()">
  346. <span @click="searchSeek" >
  347. <i class="iconfont icon-sousuo"></i>
  348. </span>
  349. </div>
  350. <ul>
  351. <li class="clearfix" v-for="(item, index) in peisongList" @click="selectPeisong(index, item)">
  352. <div class="name pull-left">{{item.companyName}}</div>
  353. <div class="pull-right target" :class="peisongChooseIndex === index ? 'active' : ''"></div>
  354. </li>
  355. </ul>
  356. <div @click="savePeisongChoose()" class="sendGoods_Btn">保存</div>
  357. </div>
  358. </div>
  359. <!-- /end 选择配送商 -->
  360. <!-- 删除订单 -->
  361. <!-- 删除提示框 -->
  362. <div class="deleteKuang" v-if="showDeleteAlert" @touchmove="preventTouchMove($event)">
  363. <div class="kuangContent">
  364. <div class="title">删除信息</div>
  365. <div class="titleinfo">是否删除此订单</div>
  366. <!--<div class="info" v-show="isUploadpro">*存在已上架信息</div>-->
  367. <div class="K_btn">
  368. <div class="cancelBtn" @click="showDeleteAlert = false">取消</div>
  369. <div class="answerBtn" @click="deleteFn()">确定</div>
  370. </div>
  371. </div>
  372. </div>
  373. <!-- /end 删除订单 -->
  374. <!-- 取消订单原因弹窗 -->
  375. <div class="mobile-modal" v-if="showBuyerAlert" @touchmove="preventTouchMove($event)">
  376. <div class="cancelOrder">
  377. <div class="sendGoods_title">取消订单<span><i class="iconfont icon-guanbi1" @click="showBuyerAlert = false"></i></span></div>
  378. <div class="cancelOrder_title">请选择取消订单的原因(必选):</div>
  379. <ul>
  380. <li v-for="(item, index) in cancelList" class="clearfix" @click="ChooseOrderCancel(item, index)">
  381. <div class="target pull-left" :class="index === OrderCancelIndex ? 'active' : ''"></div>
  382. <div class="name pull-left">{{item}}</div>
  383. </li>
  384. </ul>
  385. <div @click="cancenFn()" class="sendGoods_Btn">确定</div>
  386. </div>
  387. </div>
  388. <!-- /end 取消订单原因弹窗 -->
  389. <!-- 联系卖买家 -->
  390. <div class="mobile-modal" v-if="showStoreInfo" @touchmove="preventTouchMove($event)">
  391. <div class="mobile-modal-box mobile-link-en">
  392. <div class="mobile-modal-header">联系方式<i @click="showStoreInfo = false" class="icon-guanbi iconfont"></i></div>
  393. <div class="mobile-modal-content">
  394. <div v-if="vendorType === 'buyer'">
  395. <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>
  396. <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>
  397. <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>
  398. <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>
  399. <div v-if="!empty">暂无联系方式</div>
  400. </div>
  401. <div v-else>
  402. <div class="clearfix"><span class="pull-left"></span>抱歉,暂时无法与买家在线沟通!</div>
  403. <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>
  404. </div>
  405. </div>
  406. </div>
  407. </div>
  408. <!-- /联系买卖家 -->
  409. <remind-box :title="collectResult" :timeoutCount="timeoutCount"></remind-box>
  410. </div>
  411. </template>
  412. <script>
  413. import axios from '~plugins/axios'
  414. import { RemindStr } from '~components/mobile/base'
  415. import { EncryptionFilter } from '~utils/tools.js'
  416. import { RemindBox } from '~components/mobile/common'
  417. export default {
  418. name: 'orderdetails',
  419. layout: 'mobile',
  420. middleware: 'authenticated',
  421. data() {
  422. return {
  423. showRemindStr: false, // 是否显示减免说明
  424. ShowFixedBtn: false, // 是否显示悬浮按钮
  425. showStoreInfo: false, // 联系信息弹窗
  426. showinvoiceType: false, // 是否展示发票信息
  427. cancatInfo: {
  428. enterprise: ''
  429. }, // 联系信息
  430. isSearchSearchingMore: false,
  431. collectResult: '',
  432. timeoutCount: 0,
  433. orderList: {}, // 订单列表
  434. showSend: false, // 是否显示发货弹窗
  435. sendGoodsInfo: { // 发货弹窗对象
  436. area: {}
  437. },
  438. status: '1', // 物流状态
  439. peisongShow: false, // 是否显示配送商选择弹窗
  440. seekKeyword: '',
  441. peisongChooseIndex: 0, // 配送商选择下标
  442. peisongList: [], // 配送商数组
  443. peisongShowName: '', // 选择完后的配送
  444. showDeleteAlert: false, // 是否显示删除订单
  445. sellsendGoodsTime: '', // 卖家发货时间
  446. showBuyerAlert: false, // 买家取消订单原因
  447. cancelList: ['我不想买了', '信息填写有误,重新购买', '先看看样品再下单', '付款遇到问题(如余额不足、超出限额等)', '买错了', '其他原因'], // 取消订单原因数组
  448. $CancenOrderId: '', // 取消订单id
  449. $Orderreason: '', // 取消订单原因
  450. OrderCancelIndex: '', // 取消订单原因下标
  451. showItem: 3, // 允许展示多个产品
  452. invoiceAddress: {}, // 发票信息
  453. logisticsInfo: [] // 物流信息
  454. }
  455. },
  456. async asyncData({route}) {
  457. if (route.query.type === 'buyer') {
  458. let sellsendGoodsTime
  459. let { data } = await axios.get(`/trade/order/${route.query.uuid}`)
  460. data[0].area = JSON.parse(data[0].jsonAddress)
  461. data[0].rule = JSON.parse(data[0].jsonRule)
  462. data[0].paytype = route.query.paytype
  463. data[0].historyS = JSON.parse(data[0].statushistory)
  464. data[0].purchaseDetails = data[0].orderDetails
  465. data[0].purchaseRemark = data[0].orderRemark ? JSON.parse(data[0].orderRemark)[data[0].storeid] : ''
  466. data[0].sendType = data[0].rule.method
  467. let invoiceAddress = data[0].invoiceAddress ? JSON.parse(data[0].invoiceAddress) : ''
  468. if (route.query.type === 'buyer') {
  469. sellsendGoodsTime = await axios.get(`/trade/tradebasicproperties/get/1054`)
  470. }
  471. return {
  472. orderList: data[0],
  473. sellsendGoodsTime: parseInt(sellsendGoodsTime.data.info),
  474. invoiceAddress: invoiceAddress
  475. }
  476. }
  477. let { data } = await axios.get(`/trade/purchase/purchaseId/${route.query.uuid}`)
  478. console.log(data)
  479. data.data.area = JSON.parse(data.data.jsonAddress)
  480. data.data.rule = data.data.jsonRule ? JSON.parse(data.data.jsonRule) : ''
  481. data.data.paytype = route.query.paytype
  482. data.data.historyS = JSON.parse(data.data.statushistory)
  483. let invoiceAddress = data.data.invoiceAddress ? JSON.parse(data.data.invoiceAddress) : ''
  484. return {
  485. orderList: data.data,
  486. invoiceAddress: invoiceAddress
  487. }
  488. },
  489. computed: {
  490. vendorType() {
  491. return this.$route.query.type
  492. },
  493. shopuuid() {
  494. return this.$store.state.option.storeStatus.data
  495. },
  496. empty () {
  497. 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)
  498. }
  499. },
  500. filters: {
  501. priceFiter(val) {
  502. if (!val) return '0.00'
  503. return val.toFixed(2)
  504. },
  505. time: function (time) {
  506. if (typeof time === 'number') {
  507. if (!time) {
  508. return '无'
  509. } else {
  510. let d = new Date(time)
  511. let year = d.getFullYear()
  512. let month = d.getMonth() + 1
  513. let day = d.getDate() < 10 ? '0' + d.getDate() : '' + d.getDate()
  514. return year + '-' + month + '-' + day
  515. }
  516. }
  517. },
  518. time2: function (time) {
  519. if (typeof time === 'number') {
  520. if (!time) {
  521. return '无'
  522. } else {
  523. let d = new Date(time)
  524. let year = d.getFullYear()
  525. let month = d.getMonth() + 1
  526. let day = d.getDate() < 10 ? '0' + d.getDate() : '' + d.getDate()
  527. let hour = d.getHours() < 10 ? '0' + d.getHours() : '' + d.getHours()
  528. let minutes = d.getMinutes() < 10 ? '0' + d.getMinutes() : '' + d.getMinutes()
  529. let seconds = d.getSeconds() < 10 ? '0' + d.getSeconds() : '' + d.getSeconds()
  530. let _arr = [year, month, day].map(item => {
  531. return item.toString().length < 2 ? '0' + item : item
  532. })
  533. return _arr.join('-') + ' ' + hour + ':' + minutes + ':' + seconds
  534. }
  535. }
  536. }
  537. },
  538. created() {
  539. if (this.orderList.lgtId) {
  540. this.$http.get(`/trade/logistics/${this.orderList.lgtId}`).then(data => {
  541. this.$http.get(`/kdn/logistics/query?companyName=${data.data.companyName}&logisticsCode=${data.data.number}`).then(res => {
  542. let str = res.data.traces
  543. this.logisticsInfo = JSON.parse(str).reverse()
  544. if (str.indexOf('揽件') !== -1 || str.indexOf('收件') !== -1 || str.indexOf('转运') !== -1 || str.indexOf('运输') !== -1 || str.indexOf('发往') !== -1 ||
  545. str.indexOf('发出') !== -1 || str.indexOf('收入') !== -1 || str.indexOf('扫描') !== -1 || str.indexOf('到达') !== -1) {
  546. this.status = 'transit'
  547. }
  548. if (str.indexOf('派送') !== -1 || str.indexOf('派件') !== -1) {
  549. this.status = 'send'
  550. }
  551. if (str.indexOf('签收') !== -1) {
  552. this.status = 'signin'
  553. }
  554. })
  555. })
  556. }
  557. },
  558. methods: {
  559. // 确认付款
  560. gotoPay(item) {
  561. let id = EncryptionFilter(item.orderid)
  562. this.$router.push(`/mobile/center/user/doPay/${id}`)
  563. },
  564. // 店铺详情页
  565. toShopdetails(item) {
  566. this.$router.push(`/mobile/shop/${item.storeid}`)
  567. },
  568. // 产品详情页
  569. toproductdetails(item) {
  570. this.$router.push(`/mobile/product/${item.batchCode}`)
  571. },
  572. // 返回剩余时间
  573. restTime() {
  574. for (let i = 0; i < this.orderList.historyS.length; i++) {
  575. if (this.orderList.historyS[i].status === 404) {
  576. let h = 360 - this._getHoursFromNow(this.orderList.historyS[i].time)
  577. let day = parseInt(h) / 24
  578. let hours = parseInt(h) % 24
  579. return '还剩 ' + parseInt(day) + '天' + parseInt(hours) + '小时自动确认'
  580. }
  581. }
  582. return ''
  583. },
  584. checkInfo: function (str) {
  585. return str && str.trim() !== ''
  586. },
  587. // 联系买卖家
  588. cancatAlert() {
  589. this.showStoreInfo = true
  590. if (this.vendorType === 'buyer') {
  591. this.$http.get(`/api/store-service/stores?uuid=${this.orderList.storeid}&condition=store_uuid`).then(res => {
  592. this.cancatInfo = res.data
  593. })
  594. } else {
  595. this.$http.get(`/basic/enterprise/${this.orderList.buyerenuu}/tels`).then(res => {
  596. this.cancatInfo = res.data.data
  597. })
  598. }
  599. },
  600. getOverTiem(status) {
  601. for (let j = 0; j < this.orderList.historyS.length; j++) {
  602. if (this.orderList.historyS[j].status === status) {
  603. return this.orderList.historyS[j].time
  604. }
  605. }
  606. return ''
  607. },
  608. // 是否为分期付款
  609. installmentDetailPaid(item) {
  610. if (!item.installment) return false
  611. let _flag = false
  612. item.installment.installmentDetails.forEach(list => {
  613. if (list.detno === item.installment.currentNo && list.status === 504) {
  614. _flag = true
  615. }
  616. })
  617. return _flag
  618. },
  619. // 发货
  620. sendGoods(item) {
  621. if (!(this.user.data.pwdEnable && this.user.data.haveUserQuestion && this.user.data.emailValidCode === 2)) {
  622. // 等级不够
  623. this.onMind('您的账户安全等级较低,请先在pc端进行信息完善')
  624. return
  625. }
  626. this.$http.get(`/trade/bankInfo/vender/enterprise?status=104&type=sup`).then(res => {
  627. if (res.data && res.data[0]) {
  628. this.$http.get(`/trade/address/enterprise?ship=false`).then(res => {
  629. // 选择发货地址
  630. if (res.data[0]) {
  631. this.sendGoodstype = 'add'
  632. if (item.inid) {
  633. this._id = EncryptionFilter(item.inid)
  634. this.$http.get(`/trade/inFpu/tobeshipped/${this._id}`).then(res => {
  635. this.sendGoodsInfo = res.data[0]
  636. this.sendGoodsInfo.area = JSON.parse(res.data[0].jsonSpAddress)
  637. this.showSend = true
  638. })
  639. } else {
  640. this.$http.get(`/trade/purchase/vendor/tobeshiped/${item.id}`).then(res => {
  641. this._id = EncryptionFilter(res.data.inId)
  642. this.$http.get(`/trade/inFpu/tobeshipped/${this._id}`).then(res => {
  643. this.sendGoodsInfo = res.data[0]
  644. this.sendGoodsInfo.area = JSON.parse(res.data[0].jsonSpAddress)
  645. this.showSend = true
  646. })
  647. }, err => {
  648. this.onMind('转出货单失败' + err.response.data)
  649. })
  650. }
  651. } else {
  652. this.onMind('您还未填写设置发货地址 ,请进行完善')
  653. }
  654. })
  655. } else {
  656. this.onMind('您还未填写收款账户信息 ,请进行完善')
  657. }
  658. })
  659. },
  660. // 选择配送商
  661. choosePeisong() {
  662. this.seekKeyword = ''
  663. if (this.peisongList.length > 0) {
  664. this.peisongList = this.AllpeisongList.slice()
  665. this.peisongShow = true
  666. return
  667. }
  668. this.$http.get('/trade/distributor/selected').then(res => {
  669. this.AllpeisongList = res.data
  670. this.peisongList = res.data
  671. this.peisongList.splice(0, 0, {
  672. companyName: '请选择配送商'
  673. })
  674. this.peisongShow = true
  675. })
  676. },
  677. // 配送商列表选择
  678. selectPeisong(index, item) {
  679. this.peisongChooseIndex = index
  680. this.peisongChooseItem = item
  681. },
  682. // 确定选择当前配送商
  683. savePeisongChoose() {
  684. this.peisongShow = false
  685. this.peisongShowName = this.peisongChooseItem.companyName === '请选择配送商' ? '' : this.peisongChooseItem.companyName
  686. },
  687. // 发货最终步骤
  688. saveSendGoods() {
  689. // 发货
  690. if (this.sendGoodstype === 'add') {
  691. let patt = new RegExp('^[A-Za-z0-9]+$')
  692. if (this.peisongShowName === '') {
  693. this.onMind('请选择配送商')
  694. } else if (!this.sendGoodsInfo.kuaidinumber) {
  695. this.onMind('请填写物流单号')
  696. } else if (!patt.test(this.sendGoodsInfo.kuaidinumber)) {
  697. this.onMind('请输入正确的物流单号')
  698. } else {
  699. let sendInfo = this.getLogisticsInfo()
  700. this.$http.post(`/trade/inFpu/save?id=${this.sendGoodsInfo.id}`, sendInfo).then(res => {
  701. if (res.data.success) {
  702. this.onMind('发货成功')
  703. setTimeout(() => {
  704. location.reload()
  705. this.showSend = false
  706. this.peisongChooseIndex = 0
  707. this.peisongChooseItem = {companyName: '请选择配送商'}
  708. }, 1500)
  709. }
  710. })
  711. }
  712. } else if (this.sendGoodstype === 'change') {
  713. // 修改物流
  714. let sendInfo = this.getLogisticsInfo('change')
  715. let patt = new RegExp('^[A-Za-z0-9]+$')
  716. if (!this.sendGoodsInfo.lgtId) {
  717. // 如果快递公司 以及 快递编号为空
  718. if (!this.peisongShowName && !this.sendGoodsInfo.kuaidinumber) {
  719. this.showSend = false
  720. return
  721. }
  722. // 如果快递公司为空
  723. if (!this.peisongShowName && this.sendGoodsInfo.kuaidinumber) {
  724. this.onMind('请选择配送商')
  725. return
  726. } else if (!this.sendGoodsInfo.kuaidinumber) {
  727. this.onMind('请填写物流单号')
  728. return
  729. } else if (!patt.test(this.sendGoodsInfo.kuaidinumber)) {
  730. this.onMind('请输入正确的物流单号')
  731. return
  732. }
  733. // 没有物流信息则添加物流信息
  734. this.$http.post(`/trade/logistics/add?inid=${this.sendGoodsInfo.inid}`, sendInfo).then(res => {
  735. if (res.data.success) {
  736. this.onMind('物流信息保存成功')
  737. setTimeout(() => {
  738. location.reload()
  739. this.peisongChooseIndex = 0
  740. this.peisongChooseItem = {companyName: '请选择配送商'}
  741. this.showSend = false
  742. }, 1500)
  743. }
  744. })
  745. } else {
  746. if (this.ChangeInfoObj.number === this.sendGoodsInfo.kuaidinumber && this.peisongShowName === this.ChangeInfoObj.peisongShowName) {
  747. this.showSend = false
  748. return
  749. }
  750. if (this.peisongShowName !== '' || this.sendGoodsInfo.kuaidinumber !== '') {
  751. // 如果用户未做任何信息修改
  752. if (!this.peisongShowName) {
  753. this.onMind('请选择配送商')
  754. return
  755. } else if (!this.sendGoodsInfo.kuaidinumber) {
  756. this.onMind('请填写物流单号')
  757. return
  758. } else if (!patt.test(this.sendGoodsInfo.kuaidinumber)) {
  759. this.onMind('请输入正确的物流单号')
  760. return
  761. }
  762. this.$http.post(`/trade/logistics/${this.sendGoodsInfo.lgtId}?invoiceFuid=${this.sendGoodsInfo.inid}`, sendInfo).then(res => {
  763. if (res.data.success) {
  764. this.onMind('修改物流信息成功')
  765. setTimeout(() => {
  766. location.reload()
  767. this.peisongChooseIndex = 0
  768. this.peisongChooseItem = {companyName: '请选择配送商'}
  769. this.showSend = false
  770. }, 1500)
  771. }
  772. })
  773. } else {
  774. if (this.sendGoodsInfo.sendType !== 1301) {
  775. // 如果清空了物流信息
  776. this.$http.put(`/trade/logistics/clear?inid=${this.sendGoodsInfo.inid}`).then(res => {
  777. if (res.data.success) {
  778. this.onMind('修改物流信息成功')
  779. setTimeout(() => {
  780. location.reload()
  781. this.peisongChooseIndex = 0
  782. this.peisongChooseItem = {companyName: '请选择配送商'}
  783. this.showSend = false
  784. }, 1500)
  785. }
  786. })
  787. }
  788. }
  789. }
  790. }
  791. },
  792. // 买家取消订单
  793. cancelOrder(item) {
  794. this.$CancenOrderId = item.orderid
  795. this.showBuyerAlert = true
  796. },
  797. // 买家取消订单原因选择
  798. ChooseOrderCancel(item, index) {
  799. this.OrderCancelIndex = index
  800. this.$Orderreason = item
  801. },
  802. // 买家提醒卖家发货
  803. paidTime(item) {
  804. item = this.baseUtils.deepCopy(item)
  805. if (this._getHoursFromNow(item.paytime) < this.sellsendGoodsTime) {
  806. this.onMind('距离付款的时间还不到' + this.sellsendGoodsTime + '小时,不能提醒发货')
  807. return
  808. }
  809. if (this._getHoursFromNow(item.lastNotifyDeliveryTime) < this.sellsendGoodsTime && this._getHoursFromNow(item.lastNotifyDeliveryTime) !== 0) {
  810. this.onMind('距离上次付款的时间还不到' + this.sellsendGoodsTime + '小时,不能提醒发货')
  811. return
  812. }
  813. this.$http.post(`/trade/message/order/${item.id}`).then(res => {
  814. let returnResult = res.data
  815. if (returnResult.status === 505 || returnResult.status === 406 || returnResult.status === 407 || returnResult.status === 403 || returnResult.status === 408) {
  816. this.onMind('提醒成功')
  817. location.reload()
  818. } else {
  819. this.onMind('提醒发货失败:' + returnResult.message)
  820. }
  821. })
  822. },
  823. // 取消订单确认事件
  824. cancenFn() {
  825. if (!this.$Orderreason || this.$Orderreason === '') {
  826. this.onMind('请选择取消订单的原因')
  827. } else {
  828. let reason = {
  829. reason: this.$Orderreason
  830. }
  831. this.$http.put(`/trade/order/simpleinfo/ones/${this.$CancenOrderId}/release`, reason).then(res => {
  832. this.onMind('取消订单成功,等待买家确认')
  833. this.$Orderreason = '我不想买了'
  834. this.OrderCancelIndex = 0
  835. location.reload()
  836. this.showBuyerAlert = false
  837. })
  838. }
  839. },
  840. // 修改物流
  841. changelogistics(item) {
  842. this.sendGoodstype = 'change'
  843. this.peisongShowName = ''
  844. this.sendGoodsInfo.kuaidinumber = ''
  845. let _obj = this.baseUtils.deepCopy(item)
  846. if (!item.lgtId) {
  847. // 如果没有订单编号
  848. this.sendGoodsInfo = _obj
  849. this.sendGoodsInfo.area = JSON.parse(_obj.jsonSdAddress)
  850. this.showSend = true
  851. this.ChangeInfoObj = {
  852. number: '',
  853. peisongShowName: ''
  854. }
  855. } else {
  856. this.$http.get(`/trade/logistics/${_obj.lgtId}`).then(res => {
  857. this.sendGoodsInfo = _obj
  858. this.sendGoodsInfo.area = JSON.parse(_obj.jsonSdAddress)
  859. this.sendGoodsInfo.kuaidinumber = res.data.number
  860. this.peisongShowName = res.data.companyName
  861. this.ChangeInfoObj = {
  862. number: res.data.number,
  863. peisongShowName: res.data.companyName
  864. }
  865. this.showSend = true
  866. })
  867. }
  868. },
  869. // 搜索
  870. searchSeek() {
  871. let _arr = this.AllpeisongList.slice()
  872. let addrPatt = /^[\u4e00-\u9fa5]+$/
  873. if (addrPatt.test(this.seekKeyword) && this.seekKeyword.length > 0) {
  874. this.peisongList = []
  875. this.peisongList = _arr.filter((data) => {
  876. if (data.companyName.indexOf(this.seekKeyword) >= 0) {
  877. return data
  878. }
  879. })
  880. this.peisongList.splice(0, 0, {
  881. companyName: '请选择配送商'
  882. })
  883. } else if (this.seekKeyword === '' || !this.seekKeyword) {
  884. this.peisongList = _arr
  885. }
  886. this.peisongChooseIndex = 0
  887. this.peisongChooseItem = {companyName: '请选择配送商'}
  888. },
  889. // 获取物流提交信息
  890. getLogisticsInfo(_type) {
  891. let sendInfo = {}
  892. sendInfo.sendType = this.sendGoodsInfo.sendType
  893. sendInfo.jsonSdAddress = this.sendGoodsInfo.jsonSpAddress
  894. sendInfo.logisticsInfo = {}
  895. if (this.peisongShowName) {
  896. sendInfo.logisticsInfo.companyName = this.peisongShowName
  897. }
  898. if (this.sendGoodsInfo.kuaidinumber) {
  899. sendInfo.logisticsInfo.number = this.sendGoodsInfo.kuaidinumber
  900. }
  901. return _type ? sendInfo.logisticsInfo : sendInfo
  902. },
  903. // 查看物流信息
  904. lookLogisticsInfo(item) {
  905. let id = item.purchaseid || item.orderid
  906. this.$router.push(`/mobile/order/logistics?uuid=${EncryptionFilter(id)}&type=${this.vendorType}`)
  907. },
  908. // 买家确认收货
  909. buyerGetGoods(item) {
  910. this.$http.put(`/trade/order/simpleinfo/ones/${item.id}?_status=ensureaccept`).then(res => {
  911. this.onMind('确认收货成功')
  912. location.reload()
  913. })
  914. },
  915. // 买卖家中心字段同步化
  916. _initSetParams(_obj) {
  917. _obj = this.baseUtils.deepCopy(_obj)
  918. for (let i = 0; i < _obj.length; i++) {
  919. if (!_obj[i].purchaseDetails) {
  920. _obj[i].purchaseDetails = _obj[i].orderDetails
  921. }
  922. if (_obj[i].status === 505 || _obj[i].status === 406 || _obj[i].status === 407 || _obj[i].status === 403 || _obj[i].status === 408) {
  923. _obj[i].paidTimeFromNow = this._getHoursFromNow(_obj[i].paytime)
  924. _obj[i].lastNotiDelivery = this._getHoursFromNow(_obj[i].lastNotifyDeliveryTime)
  925. }
  926. }
  927. return _obj
  928. },
  929. // 传入时间,计算距离现在的时间是多少小时了
  930. _getHoursFromNow(time) {
  931. if (!time) {
  932. return 0
  933. }
  934. let newTime = new Date()
  935. let msec = newTime.getTime() - time
  936. let hours = parseInt(parseInt(msec) / (1000 * 60 * 60))
  937. return hours
  938. },
  939. // 拷贝
  940. copyBtn() {
  941. let text = document.getElementById('orderNumber').innerText
  942. let input = document.getElementById('input')
  943. input.value = text // 修改文本框的内容
  944. input.select() // 选中文本
  945. if (document.execCommand('copy', false, null)) {
  946. this.onMind('复制成功')
  947. }
  948. },
  949. onMind(str) {
  950. this.collectResult = str
  951. this.timeoutCount++
  952. },
  953. blur: function() {
  954. setTimeout(() => {
  955. this.$store.dispatch('mobile/SetInputGetFocus', false)
  956. }, 300)
  957. },
  958. inputGetFocus: function() {
  959. setTimeout(() => {
  960. this.$store.dispatch('mobile/SetInputGetFocus', true)
  961. }, 300)
  962. }
  963. },
  964. components: {
  965. RemindBox,
  966. RemindStr
  967. },
  968. mounted() {
  969. this.$nextTick(res => {
  970. this.$refs.listBtn.children.length > 0 ? this.ShowFixedBtn = true : this.ShowFixedBtn = false
  971. })
  972. }
  973. }
  974. </script>
  975. <style scoped lang='scss'>
  976. @mixin overFlowHidden {
  977. overflow: hidden;
  978. text-overflow: ellipsis;
  979. white-space: nowrap;
  980. }
  981. @mixin lineHeight($value) {
  982. height: $value;
  983. line-height: $value;
  984. }
  985. .order-wrapper {
  986. background: #f1f3f6;
  987. margin: 1.26rem 0 0.98rem 0;
  988. height: calc(100vh - 1.26rem - 0.98rem);
  989. overflow-y: scroll;
  990. position: absolute;
  991. .order-details-wrap {
  992. .order-details-top {
  993. .orderNumber {
  994. margin-bottom: 0.2rem;
  995. font-size: 0.27rem;
  996. color: #666;
  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. .orderStatus {
  1009. background: #fff;
  1010. padding: 0 0.2rem;
  1011. height: 0.88rem;
  1012. line-height: 0.88rem;
  1013. margin-bottom: 0.2rem;
  1014. .clearfix {
  1015. font-size: 0.28rem;
  1016. color: #333;
  1017. span {
  1018. float: left;
  1019. color: #333;
  1020. }
  1021. img {
  1022. width: 0.18rem;
  1023. height: 0.32rem;
  1024. vertical-align: top;
  1025. margin-top: 0.18rem;
  1026. margin-left: 0.1rem;
  1027. }
  1028. }
  1029. }
  1030. .sendGoods_buyer {
  1031. background: #fff;
  1032. padding: 0.3rem 0.2rem;
  1033. border-top: 1px solid #d9d9d9;
  1034. .sendGoods_buyer_top {
  1035. color: #333;
  1036. font-size: 0.3rem;
  1037. font-weight: bold;
  1038. .name {
  1039. margin-right: 0.3rem;
  1040. margin-left: 0.32rem;
  1041. }
  1042. }
  1043. .sendGoods_buyer_bottom {
  1044. color: #333;
  1045. font-size: 0.26rem;
  1046. margin-top: 0.2rem;
  1047. img {
  1048. width: 0.22rem;
  1049. height: 0.29rem;
  1050. margin-right: 0.1rem;
  1051. margin-top: -0.1rem;
  1052. }
  1053. }
  1054. }
  1055. }
  1056. .order-list-wrap {
  1057. .top-t-wrap {
  1058. background: #fff;
  1059. padding: 0 0.2rem;
  1060. height: 0.88rem;
  1061. line-height: 0.88rem;
  1062. .pull-left {
  1063. font-size: 0.28rem;
  1064. color: #333;
  1065. width: 5rem;
  1066. @include overFlowHidden();
  1067. div {
  1068. max-width: 3rem;
  1069. @include overFlowHidden();
  1070. float: left;
  1071. }
  1072. img {
  1073. width: 0.18rem;
  1074. height: 0.32rem;
  1075. vertical-align: top;
  1076. margin-top: 0.18rem;
  1077. margin-left: 0.1rem;
  1078. }
  1079. }
  1080. .pull-right {
  1081. @include lineHeight(0.56rem);
  1082. border: 1px solid #3f84f6;
  1083. color: #3f84f6;
  1084. font-size: 0.26rem;
  1085. text-align: center;
  1086. border-radius: 3px;
  1087. margin-top: 0.14rem;
  1088. padding: 0 0.1rem;
  1089. overflow: hidden;
  1090. i {
  1091. font-size: 0.26rem;
  1092. margin-left: 0.05rem;
  1093. }
  1094. }
  1095. }
  1096. li {
  1097. margin-top: 0.2rem;
  1098. }
  1099. .list-wrap-title{
  1100. padding: 0 0.2rem;
  1101. background: #fff;
  1102. @include lineHeight(0.67rem);
  1103. font-size: 0.28rem;
  1104. color: #333;
  1105. border-bottom: 1px solid #e4e4e4;
  1106. .pull-left {
  1107. width: 5rem;
  1108. @include overFlowHidden();
  1109. span {
  1110. max-width: 3rem;
  1111. @include overFlowHidden();
  1112. display: inline-block;
  1113. }
  1114. img {
  1115. width: 0.18rem;
  1116. height: 0.32rem;
  1117. vertical-align: top;
  1118. margin-top: 0.18rem;
  1119. margin-left: 0.1rem;
  1120. }
  1121. }
  1122. .pull-right {
  1123. .red {
  1124. color: #f21c1c;
  1125. }
  1126. }
  1127. }
  1128. .list-wrap-content {
  1129. background: #f9f9f8;
  1130. padding: 0.3rem 0.2rem;
  1131. padding-right: 0.32rem;
  1132. border-bottom: 1px solid #e4e4e4;
  1133. .list-item {
  1134. font-size: 0.28rem;
  1135. color: #333;
  1136. /*line-height: 0.5rem;*/
  1137. margin-top: 0.22rem;
  1138. &:nth-child(1) {
  1139. margin-top: 0px;
  1140. }
  1141. .list-wrap-content-brand {
  1142. @include overFlowHidden();
  1143. .spec {
  1144. width: 3.1rem;
  1145. @include overFlowHidden();
  1146. margin-right: 0.2rem;
  1147. &.noMargin {
  1148. margin-right: 0;
  1149. width: 1.5rem;
  1150. }
  1151. }
  1152. }
  1153. .name {
  1154. color: #666;
  1155. }
  1156. .lab {
  1157. color: #999;
  1158. font-size: 0.24rem;
  1159. max-width: 2.1rem;
  1160. @include overFlowHidden();
  1161. span {
  1162. font-size: 0.16rem;
  1163. }
  1164. }
  1165. .pri {
  1166. font-size: 0.28rem;
  1167. color: #f43938;
  1168. }
  1169. }
  1170. }
  1171. .list-btn {
  1172. background: #fff;
  1173. @include lineHeight(0.8rem);
  1174. padding: 0 0.2rem;
  1175. div {
  1176. display: inline-block;
  1177. width: 1.5rem;
  1178. @include lineHeight(0.56rem);
  1179. border: 1px solid #333;
  1180. font-size: 0.26rem;
  1181. color: #333;
  1182. text-align: center;
  1183. margin-top: 0.11rem;
  1184. margin-left: 0.2rem;
  1185. border-radius: 3px;
  1186. &.sendGoods {
  1187. color: #f43938;
  1188. border: 1px solid #f43938;
  1189. }
  1190. }
  1191. }
  1192. }
  1193. .top-w-wrap {
  1194. background: #fff;
  1195. padding: 0 0.2rem;
  1196. border-bottom: 1px solid #e4e4e4;
  1197. @include lineHeight(0.88rem);
  1198. .name {
  1199. color: #333;
  1200. font-size: 0.28rem;
  1201. margin-right: 0.2rem;
  1202. }
  1203. .detailsinfo {
  1204. font-size: 0.28rem;
  1205. color: #999;
  1206. width: 5.6rem;
  1207. @include overFlowHidden()
  1208. }
  1209. }
  1210. .lookMorePro {
  1211. background: #fff;
  1212. font-size: 0.28rem;
  1213. color: #999;
  1214. text-align: center;
  1215. border-bottom: 1px solid #e4e4e4;
  1216. @include lineHeight(0.67rem);
  1217. img {
  1218. transform: rotate(90deg);
  1219. width: 0.16rem;
  1220. height: 0.26rem;
  1221. vertical-align: top;
  1222. margin-top: 0.23rem;
  1223. margin-left: 0.1rem;
  1224. }
  1225. }
  1226. .order-details-priInfo {
  1227. /*border-top: 1px solid #e4e4e4;*/
  1228. border-bottom: 1px solid #e4e4e4;
  1229. font-size: 0.28rem;
  1230. color: #333;
  1231. padding: 0.1rem;
  1232. background: #fff;
  1233. text-align: right;
  1234. .clearfix {
  1235. @include lineHeight(0.5rem);
  1236. }
  1237. span {
  1238. @include overFlowHidden();
  1239. }
  1240. .small {
  1241. font-size: 0.24rem;
  1242. color: #999;
  1243. }
  1244. .jianmian {
  1245. font-size: 0.22rem;
  1246. color: #fff;
  1247. width: 0.48rem;
  1248. height:0.25rem;
  1249. text-align: center;
  1250. line-height: 0.25rem;
  1251. background: #15b262;
  1252. margin: 0 0.1rem;
  1253. }
  1254. }
  1255. .list-all-info{
  1256. text-align: right;
  1257. background: #fff;
  1258. padding: 0 0.1rem;
  1259. @include lineHeight(0.72rem);
  1260. font-size: 0.26rem;
  1261. color: #333;
  1262. border-bottom: 1px solid #e4e4e4;
  1263. span {
  1264. display: inline-block;
  1265. }
  1266. .pri {
  1267. font-size: 0.32rem;
  1268. color: #f43938;
  1269. }
  1270. .red {
  1271. color: #f43938;
  1272. font-size: 0.24rem;
  1273. }
  1274. .lab {
  1275. color: #999;
  1276. font-size: 0.24rem;
  1277. }
  1278. .del {
  1279. text-decoration: line-through;
  1280. color: #999;
  1281. font-size: 0.24rem;
  1282. }
  1283. }
  1284. .order-details-info {
  1285. background: #fff;
  1286. margin-top: 0.2rem;
  1287. .clearfix{
  1288. padding: 0 0.2rem;
  1289. font-size: 0.28rem;
  1290. color: #333;
  1291. .pull-left {
  1292. @include lineHeight(0.88rem);
  1293. }
  1294. img {
  1295. width: 0.18rem;
  1296. height: 0.32rem;
  1297. vertical-align: top;
  1298. margin-top: 0.3rem;
  1299. margin-left: 0.1rem;
  1300. margin-right: 0.1rem;
  1301. }
  1302. border-bottom: 1px solid #e4e4e4;
  1303. .pull-right {
  1304. max-width: 5rem;
  1305. text-align: right;
  1306. }
  1307. .smallfont{
  1308. color: #666;
  1309. }
  1310. }
  1311. }
  1312. .order-details-moreinfo {
  1313. background: #fff;
  1314. font-size: 0.24rem;
  1315. color: #999;
  1316. padding: 0.2rem 0;
  1317. margin-bottom: 0.8rem;
  1318. .clearfix.moreinfoList {
  1319. padding: 0 0.2rem;
  1320. /*border-bottom: 1px solid #e4e4e4;*/
  1321. .pull-left {
  1322. div {
  1323. @include lineHeight(0.5rem);
  1324. }
  1325. }
  1326. }
  1327. margin-top: 0.2rem;
  1328. .copyBtn {
  1329. width: 1.1rem;
  1330. border-radius: 3px;
  1331. border: 1px solid #dfdfdf;
  1332. @include lineHeight(0.4rem);
  1333. text-align: center;
  1334. padding: 0 0.2rem;
  1335. }
  1336. .list-btn {
  1337. position: fixed;
  1338. bottom: 0.98rem;
  1339. width: 100%;
  1340. left: 0;
  1341. background: #fff;
  1342. height: 0.8rem;
  1343. border-top: 1px solid #dcdcdc;
  1344. div {
  1345. float: right;
  1346. width: 1.5rem;
  1347. @include lineHeight(0.56rem);
  1348. background: #3f84f6;
  1349. color: #fff;
  1350. border-radius: 3px;
  1351. text-align: center;
  1352. font-size: 0.26rem;
  1353. margin-top: 0.15rem;
  1354. margin-right: 0.2rem;
  1355. }
  1356. }
  1357. }
  1358. .logistics_ul {
  1359. background: #fff;
  1360. li.clearfix {
  1361. position: relative;
  1362. border-left: 2px solid #e4e5ea;
  1363. margin-left: 0.2rem;
  1364. border-bottom: 0px;
  1365. .pull-left {
  1366. position: absolute;
  1367. left: -7px;
  1368. top: 0.36rem;
  1369. .logistics_icon {
  1370. width: 12px;
  1371. height: 12px;
  1372. border-radius: 50%;
  1373. background: #b5b5b5;
  1374. &.active {
  1375. width: 20px;
  1376. height: 20px;
  1377. border-radius: 50%;
  1378. background: rgba(0, 0, 0, 0);
  1379. position: relative;
  1380. &~.logistics_line {
  1381. margin-left: 9px;
  1382. }
  1383. .red {
  1384. position: absolute;
  1385. width: 12px;
  1386. height: 12px;
  1387. background: #0ca43a;
  1388. margin-left: 4px;
  1389. margin-top: 4px;
  1390. border-radius: 50%;
  1391. }
  1392. }
  1393. }
  1394. &.marginL {
  1395. left: -10px;
  1396. top: -0.1rem
  1397. }
  1398. }
  1399. .pull-right {
  1400. padding-top: 0.2rem;
  1401. font-size: 0.24rem;
  1402. color: #333;
  1403. border-bottom: 1px solid #f3f3f3;
  1404. padding-bottom: 0.2rem;
  1405. max-width: 6.4rem;
  1406. width: 6.4rem;
  1407. .logistics_time {
  1408. @include lineHeight(20px);
  1409. }
  1410. .logistics_info {
  1411. margin-top: 0.2rem;
  1412. word-break:break-all;
  1413. word-wrap: break-word;
  1414. line-height: 0.45rem
  1415. }
  1416. &.marginT {
  1417. padding-top: 0;
  1418. margin-top: -0.1rem;
  1419. }
  1420. }
  1421. }
  1422. }
  1423. }
  1424. .sendGoods_Alert {
  1425. background: #fff;
  1426. position: fixed;
  1427. bottom: 0.98rem;
  1428. left: 0;
  1429. width: 100%;
  1430. border-top-left-radius: 5px;
  1431. border-top-right-radius: 5px;
  1432. overflow: hidden;
  1433. .sendGoods_title {
  1434. color: #333;
  1435. font-size: 0.42rem;
  1436. text-align: center;
  1437. line-height: 1rem;
  1438. font-weight: 600;
  1439. position: relative;
  1440. i {
  1441. position: absolute;
  1442. font-size: 16px;
  1443. right: 0.2rem;
  1444. }
  1445. }
  1446. .sendGoods_buyer {
  1447. padding: 0.3rem 0.2rem;
  1448. border-bottom: 1px solid #d9d9d9;
  1449. border-top: 1px solid #d9d9d9;
  1450. .sendGoods_buyer_top {
  1451. color: #333;
  1452. font-size: 0.3rem;
  1453. font-weight: bold;
  1454. .name {
  1455. margin-right: 0.3rem;
  1456. margin-left: 0.32rem;
  1457. }
  1458. }
  1459. .sendGoods_buyer_bottom {
  1460. color: #333;
  1461. font-size: 0.26rem;
  1462. margin-top: 0.2rem;
  1463. img {
  1464. width: 0.22rem;
  1465. height: 0.29rem;
  1466. margin-right: 0.1rem;
  1467. margin-top: -0.1rem;
  1468. }
  1469. }
  1470. }
  1471. .sendGoods_list {
  1472. padding: 0 0.2rem;
  1473. @include lineHeight(0.8rem);
  1474. border-bottom: 1px solid #d9d9d9;
  1475. font-size: 0.32rem;
  1476. color: #333;
  1477. /*.ti {*/
  1478. /*font-weight: bold;*/
  1479. /*}*/
  1480. .pull-right {
  1481. font-size: 0.28rem;
  1482. color: #999;
  1483. img {
  1484. width: 0.14rem;
  1485. height: 0.24rem;
  1486. vertical-align: middle;
  1487. margin-top: -0.02rem;
  1488. margin-left: 0.1rem;
  1489. }
  1490. }
  1491. input {
  1492. width: 4rem;
  1493. text-align: right;
  1494. color: #333;
  1495. }
  1496. }
  1497. .sendGoods_Btn {
  1498. @include lineHeight(1rem);
  1499. text-align: center;
  1500. color: #fff;
  1501. font-size: 0.36rem;
  1502. background: #3f84f6;
  1503. }
  1504. }
  1505. .search-content {
  1506. margin-top: 0.88rem;
  1507. margin-bottom: 0.2rem;
  1508. text-align: center;
  1509. padding: .25rem 0 0 0;
  1510. input {
  1511. border: 1px solid #376ff3;
  1512. }
  1513. span {
  1514. height: .46rem;
  1515. line-height: .46rem;
  1516. }
  1517. }
  1518. .peisong_Alert {
  1519. background: #f1f3f6;
  1520. position: fixed;
  1521. bottom: 0.98rem;
  1522. left: 0;
  1523. right: 0;
  1524. top: 0;
  1525. z-index: 11111;
  1526. ul {
  1527. height: calc(100vh - 1.2rem - 1.7rem);
  1528. overflow-y: scroll;
  1529. li {
  1530. line-height: 1rem;
  1531. background: #fff;
  1532. padding: 0 0.2rem;
  1533. font-size: 0.28rem;
  1534. color: #333;
  1535. border-bottom: 1px solid #e0e1e2;
  1536. div.name {
  1537. @include overFlowHidden();
  1538. }
  1539. div.target {
  1540. width: 0.36rem;
  1541. height: 0.36rem;
  1542. border-radius: 50%;
  1543. overflow: hidden;
  1544. border: 1px solid #a4a4a4;
  1545. margin-top: 0.3rem;
  1546. &.active {
  1547. background-image: url('/images/order/getChoose_icon.png');
  1548. background-size: 100% 100%;
  1549. border: 0px;
  1550. }
  1551. }
  1552. }
  1553. }
  1554. .sendGoods_Btn {
  1555. @include lineHeight(1rem);
  1556. text-align: center;
  1557. color: #fff;
  1558. font-size: 0.36rem;
  1559. background: #3f84f6;
  1560. }
  1561. }
  1562. .deleteKuang {
  1563. position: fixed;
  1564. background: rgba(0,0,0,0.5);
  1565. top: 0;
  1566. left: 0;
  1567. right: 0;
  1568. bottom: 0;
  1569. z-index: 9999;
  1570. .kuangContent {
  1571. border-radius: 5px;
  1572. background: #fff;
  1573. width: 5rem;
  1574. position: absolute;
  1575. left: 50%;
  1576. top: 50%;
  1577. transform: translate3d(-50%, -50%, 0);
  1578. overflow: hidden;
  1579. .titleinfo {
  1580. font-size: .3rem;
  1581. color: #666;
  1582. text-align: center;
  1583. margin-top: 0.5rem;
  1584. margin-bottom: 0.1rem;
  1585. }
  1586. .title {
  1587. background: #5078cb;
  1588. height: .7rem;
  1589. line-height: .7rem;
  1590. font-size: .3rem;
  1591. color: #fff;
  1592. text-align: center;
  1593. }
  1594. .info {
  1595. color: #f00;
  1596. text-align: center;
  1597. }
  1598. .K_btn {
  1599. margin-top: 0.4rem;
  1600. line-height: 0.7rem;
  1601. height: 0.7rem;
  1602. &::after{
  1603. clear: both;
  1604. display: block;
  1605. content: ' ';
  1606. visibility: hidden;
  1607. zoom: 1;
  1608. }
  1609. div {
  1610. float: left;
  1611. width: 50%;
  1612. font-size: 0.3rem;
  1613. text-align: center;
  1614. &.cancelBtn {
  1615. background: #b4b5b9;
  1616. color: #333;
  1617. }
  1618. &.answerBtn {
  1619. background: #5078cb;
  1620. color: #fff;
  1621. }
  1622. }
  1623. }
  1624. }
  1625. i {
  1626. font-size: .6rem;
  1627. position: absolute;
  1628. right: -0.3rem;
  1629. top: -0.35rem;
  1630. color: #fff;
  1631. &::after{
  1632. position: absolute;
  1633. top: -0.1rem;
  1634. left: -0.1rem;
  1635. right: -0.1rem;
  1636. bottom: -0.1rem;
  1637. content: ' '
  1638. }
  1639. }
  1640. .title {
  1641. background: #3f84f6;
  1642. height: 0.7rem;
  1643. line-height: 0.7rem;
  1644. color: #fff;
  1645. text-align: center;
  1646. font-size: 0.3rem;
  1647. position: relative;
  1648. }
  1649. .Kuang {
  1650. max-height: 10rem;
  1651. width: 6.7rem;
  1652. position: absolute;
  1653. left: 50%;
  1654. top: 50%;
  1655. transform: translate3d(-50%, -50%, 0);
  1656. background: #ececec;
  1657. border-radius: 5px;
  1658. }
  1659. .content {
  1660. overflow-y: scroll;
  1661. max-height: 9.3rem;
  1662. .infob {
  1663. background: #e3edfd;
  1664. padding: 0.2rem;
  1665. .info {
  1666. color: #333;
  1667. font-size: 0.3rem;
  1668. overflow: hidden;
  1669. text-overflow: ellipsis;
  1670. white-space: nowrap;
  1671. margin-bottom: 0.18rem;
  1672. .name {
  1673. color: #666;
  1674. }
  1675. div {
  1676. display: inline-block;
  1677. }
  1678. }
  1679. }
  1680. .content_sq {
  1681. width: 6.4rem;
  1682. margin: 0.1rem auto;
  1683. background: #fff;
  1684. padding: 0.2rem 0rem;
  1685. .list {
  1686. margin-bottom: 0.18rem;
  1687. }
  1688. .fl {
  1689. width: 3.2rem;
  1690. }
  1691. .table {
  1692. width: 4.2rem;
  1693. margin-top: -0.1rem;
  1694. }
  1695. .labelinfo {
  1696. background-image: url('/images/mobile/@2x/labelTop.png');
  1697. background-repeat: no-repeat;
  1698. width: 6.29rem;
  1699. height: 0.64rem;
  1700. line-height: 0.64rem;
  1701. background-size: 100%;
  1702. margin-top: 0rem;
  1703. margin-right: 0rem;
  1704. background-color: rgba(0, 0, 0, 0);
  1705. color: #666;
  1706. }
  1707. }
  1708. }
  1709. }
  1710. .cancelOrder {
  1711. background: #fff;
  1712. position: absolute;
  1713. bottom: 0.98rem;
  1714. left: 0;
  1715. width: 100%;
  1716. border-top-left-radius: 5px;
  1717. border-top-right-radius: 5px;
  1718. overflow: hidden;
  1719. .sendGoods_title {
  1720. color: #333;
  1721. font-size: 0.42rem;
  1722. text-align: center;
  1723. line-height: 1rem;
  1724. font-weight: 600;
  1725. position: relative;
  1726. i {
  1727. position: absolute;
  1728. font-size: 16px;
  1729. right: 0.2rem;
  1730. }
  1731. }
  1732. .cancelOrder_title {
  1733. font-size: 0.36rem;
  1734. color: #333;
  1735. border-bottom: 1px solid #d9d9d9;
  1736. font-weight: bold;
  1737. padding: 0 0.2rem;
  1738. line-height: 0.6rem;
  1739. }
  1740. ul {
  1741. li {
  1742. line-height: 1rem;
  1743. background: #fff;
  1744. padding: 0 0.2rem;
  1745. font-size: 0.32rem;
  1746. color: #333;
  1747. border-bottom: 1px solid #d9d9d9;
  1748. div.name {
  1749. @include overFlowHidden();
  1750. }
  1751. div.target {
  1752. margin-right: 0.2rem;
  1753. width: 0.36rem;
  1754. height: 0.36rem;
  1755. border-radius: 50%;
  1756. overflow: hidden;
  1757. border: 1px solid #a4a4a4;
  1758. margin-top: 0.3rem;
  1759. &.active {
  1760. background-image: url('/images/order/getChoose_icon.png');
  1761. background-size: 100% 100%;
  1762. border: 0px;
  1763. }
  1764. }
  1765. }
  1766. }
  1767. .sendGoods_Btn {
  1768. @include lineHeight(1rem);
  1769. text-align: center;
  1770. color: #fff;
  1771. font-size: 0.36rem;
  1772. background: #3f84f6;
  1773. }
  1774. }
  1775. .labelInfo_ForItem {
  1776. color: #fff;
  1777. font-size: 0.24rem;
  1778. padding: 0.05rem 0.1rem;
  1779. background: #15b262;
  1780. margin-right: 0.1rem;
  1781. border-radius: 3px;
  1782. }
  1783. .mobile-link-en2 {
  1784. width: 7.04rem;
  1785. left: 2.5%;
  1786. }
  1787. .order-details-invoiceinfo {
  1788. background: #f3f3f3;
  1789. padding: 0.2rem;
  1790. border-bottom-left-radius: 0.07rem;
  1791. border-bottom-right-radius: 0.07rem;
  1792. .order-details-invoiceinfo-content {
  1793. background: #fff;
  1794. padding: 0.3rem 0.2rem;
  1795. border-radius: 0.07rem;
  1796. position: relative;
  1797. border: 1px solid #dcdcdc;
  1798. img {
  1799. position: absolute;
  1800. right: 0px;
  1801. top: 0px;
  1802. width: 0.85rem;
  1803. height: 0.85rem;
  1804. }
  1805. }
  1806. .invoiceList {
  1807. font-size: 0.24rem;
  1808. color: #666;
  1809. line-height: 0.5rem;
  1810. .pull-left {
  1811. &:first-child {
  1812. width: 2.2rem;
  1813. text-align: right;
  1814. @include overFlowHidden();
  1815. }
  1816. &:last-child{
  1817. width: 3.9rem;
  1818. word-break:break-all;
  1819. word-wrap:break-word;
  1820. }
  1821. }
  1822. }
  1823. }
  1824. .overHiddenText {
  1825. @include overFlowHidden();
  1826. max-width: 3rem;
  1827. }
  1828. .justifyAlign {
  1829. width: 1.2rem;
  1830. display:inline-block;
  1831. text-align: justify;
  1832. vertical-align:top;
  1833. }
  1834. .justifyAlign::after{
  1835. content:"";
  1836. display: inline-block;
  1837. width:100%;
  1838. overflow:hidden;
  1839. height:0;
  1840. }
  1841. }
  1842. </style>