details.vue 72 KB

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