details.vue 60 KB

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