details.vue 71 KB

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