orderList.vue 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457
  1. <template>
  2. <div>
  3. <el-row class="track-detail">
  4. <!-- 订单追踪、订单详情 -->
  5. <el-col :span="7" v-loading="!orderDetailStutus && !showTrack" element-loading-text="拼命加载中">
  6. <div class="order_detail">
  7. <div class="detail_title">
  8. <div v-show="buttonStatus !== 0 && buttonStatus !== 10" class="detail_txt" @click="orderDetailStutus = 0" :class="{ detail_txt_ac: !orderDetailStutus }">
  9. 订单跟踪
  10. </div>
  11. <div class="detail_txt" @click="orderDetailStutus = 1" :class="{ detail_txt_ac: !!orderDetailStutus }">
  12. 订单详情
  13. </div>
  14. </div>
  15. <order-track v-show="showTrack" :riderArriveTime="riderArriveTime" :buttonStatus="buttonStatus" :trackOrder="trackOrder" v-if="!orderDetailStutus && needTrack"></order-track>
  16. <order-detail v-show="showDetail" :buttonStatus="buttonStatus" :orderDetail="orderDetail" v-else></order-detail>
  17. <!-- 订单跟踪、订单详情底部按钮 -->
  18. <div class="bottom-btns" v-show="showDetail || showTrack">
  19. <!-- 新订单 -->
  20. <div class="btns" v-if="buttonStatus === 0">
  21. <el-button size="small" @click.native="itemAddRemark(list[curIdx].id, list[curIdx])" class="btn_bots">添加备注</el-button>
  22. <el-button size="small" @click.native="iGnoreOrder(list[curIdx].id)" class="btn_bots">忽略订单</el-button>
  23. <el-button size="small" @click.native="orderPrinter(list[curIdx].waimaiOrderId,list[curIdx].id)" class="btn_bots">补打小票</el-button>
  24. <el-button size="small" @click.native="sendNow(list[curIdx])" class="btn_bots btn">发起配送</el-button>
  25. </div>
  26. <!-- 预约单 -->
  27. <div class="btns" v-if="buttonStatus === 10">
  28. <div class="btn_bot" v-if="list[curIdx].waimaiOrderId">
  29. <el-dropdown>
  30. <span class="el-dropdown-link">更多</span>
  31. <el-dropdown-menu slot="dropdown">
  32. <el-dropdown-item @click.native="orderPrinter(list[curIdx].waimaiOrderId,list[curIdx].id)"><span style="color: #fc7200">补打小票</span></el-dropdown-item>
  33. <el-dropdown-item @click.native="iGnoreOrder(list[curIdx].id)">忽略订单</el-dropdown-item>
  34. </el-dropdown-menu>
  35. </el-dropdown>
  36. </div>
  37. <el-button size="small" @click.native="itemAddRemark(list[curIdx].id, list[curIdx])" class="btn_bots">添加备注</el-button>
  38. <el-button v-if="list[curIdx].waimaiOrderId" size="small" @click.native="settingTime(list[curIdx])" class="btn_bots btn">{{
  39. list[curIdx].delayTime ? "修改定时" : "预约发单"
  40. }}</el-button>
  41. <el-button v-else size="small" @click.native="cancelOrder(list[curIdx].id)" class="btn_bots">取消订单</el-button>
  42. <!-- <el-button size="small" @click.native="settingTime(list[curIdx])" class="btn_bots ">预约发单</el-button> -->
  43. <el-button size="small" @click.native="sendNow(list[curIdx])" class="btn_bots btn">发起配送</el-button>
  44. <!-- <el-dropdown-item @click.native="orderPrinter(list[curIdx].waimaiOrderId,list[curIdx].id)"><span style="color: #fc7200">补打小票</span></el-dropdown-item> -->
  45. </div>
  46. <!-- 待接单 -->
  47. <div class="btns" v-if="buttonStatus === 1">
  48. <el-button size="small" @click.native="cancelOrder(list[curIdx].id)" class="btn_bots">取消订单</el-button>
  49. <el-button size="small" @click.native="orderPrinter(list[curIdx].waimaiOrderId,list[curIdx].id)" v-if="list[curIdx].waimaiOrderId" class="btn_bots">补打小票</el-button>
  50. <el-button size="small" @click.native="addTip(list[curIdx].id)" class="btn_bots btn">加小费</el-button>
  51. </div>
  52. <!-- 取货中 -->
  53. <div class="btns" v-if="buttonStatus === 2">
  54. <el-button size="small" @click.native="cancelOrder(list[curIdx].id)" class="btn_bots">取消订单</el-button>
  55. <el-button size="small" @click.native="orderPrinter(list[curIdx].waimaiOrderId,list[curIdx].id)" v-if="list[curIdx].waimaiOrderId" class="btn_bots btn">补打小票</el-button>
  56. </div>
  57. <!-- 配送中 -->
  58. <div class="btns" v-if="buttonStatus === 3">
  59. <el-button size="small" @click.native="orderPrinter(list[curIdx].waimaiOrderId)" v-if="list[curIdx].waimaiOrderId" class="btn_bots btn">补打小票</el-button>
  60. <el-button size='small' @click.native="againOrder(list[curIdx])" class="btn_bots btn">再来一单</el-button>
  61. </div>
  62. <!-- 异常单 -->
  63. <div class="btns" v-if="buttonStatus === -2">
  64. <el-button size="small" @click.native="orderPrinter(list[curIdx].waimaiOrderId,list[curIdx].id)" v-if="list[curIdx].waimaiOrderId" class="btn_bots">补打小票</el-button>
  65. <el-button size="small" @click.native="orderBack(list[curIdx].id)" class="btn_bots btn">撤回订单</el-button>
  66. </div>
  67. <!-- 已取消 -->
  68. <div class="btns" v-if="buttonStatus === -1">
  69. <el-button size="small" @click.native="orderPrinter(list[curIdx].waimaiOrderId)" v-if="list[curIdx].waimaiOrderId&&list[curIdx].cancelType===4" class="btn_bots">补打小票</el-button>
  70. <el-button size='small' @click.native="orderPrinter(list[curIdx].waimaiOrderId,list[curIdx].id)" class="btn_bots btn">再来一单</el-button>
  71. </div>
  72. <!-- 已完成 -->
  73. <div class="btns" v-if="buttonStatus === 97">
  74. <el-button size='small' @click.native="againOrder(list[curIdx])" class="btn_bots btn">再来一单</el-button>
  75. </div>
  76. <!-- 其他平台已完成 -->
  77. <div class="btns" v-if="buttonStatus === 98">
  78. <el-button size='small' @click.native="againOrder(list[curIdx])" class="btn_bots btn">再来一单</el-button>
  79. </div>
  80. </div>
  81. </div>
  82. </el-col>
  83. </el-row>
  84. <el-row class="list-info">
  85. <el-col :span="17">
  86. <div v-loading="isLoading" element-loading-text="正在计算中...">
  87. <div class="order_item" @click="chooseOrder(item, i)" v-for="(item, i) in list" :key="i">
  88. <div class="order_item_header">
  89. <div class="order_item_header_l">
  90. <div v-if="item.daySeq" class="Serial_number" :style="daySeqColor(item.orderType)">
  91. #{{ item.daySeq }}
  92. </div>
  93. <img :src="item.logo || item.waimaiLogo" class="logo" />
  94. <span class="name">{{ item.shopName }}</span>
  95. <div class="sign_time" v-if="item.waimaiOrderId && [1,2].includes(item.takeType)">
  96. {{ item.exceptTime.slice(5,16) }}前送达
  97. </div>
  98. <div class="sign_txt" v-if="item.buttonStatus === 0 && item.waimaiOrderId && item.takeType == 0">
  99. 立即送达,{{item.orderTime.slice(-8,-3)}}下单
  100. </div>
  101. <div class="sign_d" v-if="item.buttonStatus === 10 && item.timeTxt">{{item.timeTxt}}自动发起配送</div>
  102. <div v-if="item.buttonStatus === 10 && !item.waimaiOrderId" class="sign_d">{{item.deliveryTime.slice(5)}}自动发起配送</div>
  103. <!-- 近三日订单 -->
  104. <!-- <div class="sign_f" v-if="[-1,7].includes(tabNum) &&item.finishTime">{{item.finishTime && item.finishTime.slice(5)}}已完成</div> -->
  105. </div>
  106. <!-- 新订单 -->
  107. <div class="order_item_header_r" v-if="item.buttonStatus === 0">
  108. <el-tag v-if="[-1,7].includes(tabNum)" class="header_r">新订单</el-tag>
  109. <el-button size="small" class="btn" @click.stop="sendNow(item)">发起配送</el-button>
  110. </div>
  111. <!-- 预约单 -->
  112. <div class="order_item_header_r" v-if="item.buttonStatus === 10">
  113. <el-tag v-if="[-1,7].includes(tabNum)" class="header_r">预约单</el-tag>
  114. <!-- <el-button size='small' @click.stop="iGnoreOrder(item.id)">忽略订单</el-button> -->
  115. <!-- <el-button size='small' @click.stop="itemAddRemark(item.id, item)">添加备注</el-button> -->
  116. <el-button v-if="item.waimaiOrderId" size="small" class="btn" @click.stop="settingTime(item)">{{
  117. item.delayTime ? "修改定时" : "定时发单"
  118. }}</el-button>
  119. <el-button v-else size="small" class="btn" @click.stop="sendNow(item)">立即配送</el-button>
  120. </div>
  121. <!-- 待接单 -->
  122. <div class="order_item_header_r" v-if="item.buttonStatus === 1">
  123. <el-tag v-if="[-1,7].includes(tabNum)" class="header_r">待接单</el-tag>
  124. <span class="header_r">已发单{{ item.takeTimeTxt }}</span>
  125. <!-- <el-button size='small' @click.stop="cancelOrder(item.id)">取消订单</el-button> -->
  126. <el-button size="small" class="btn" @click.stop="orderPrinter(item.waimaiOrderId,item.id)" v-if="item.waimaiOrderId">补打小票</el-button>
  127. <!-- <el-button size='small' class="btn" @click.stop="addTip(item.id)">加&nbsp;小&nbsp;费</el-button> -->
  128. </div>
  129. <!-- 取货中 -->
  130. <div class="order_item_header_r" v-if="item.buttonStatus === 2">
  131. <el-tag v-if="[-1,7].includes(tabNum)" class="header_r">取货中</el-tag>
  132. <!-- <span v-show="Number(item.riderArriveMinute)" class="header_r">预计{{Number(item.riderArriveMinute)}}分钟取件</span> -->
  133. <!-- <el-button size='small' @click.stop="cancelOrder(item.id)">取消订单</el-button> -->
  134. <el-button size="small" class="btn" @click.stop="orderPrinter(item.waimaiOrderId,item.id)" v-if="item.waimaiOrderId">补打小票</el-button>
  135. </div>
  136. <!-- 配送中 -->
  137. <div class="order_item_header_r" v-if="item.buttonStatus === 3">
  138. <el-tag v-if="[-1,7].includes(tabNum)" class="header_r">配送中</el-tag>
  139. <!-- <span class="header_r" v-if="item.exceptTime">预计{{ item.exceptTime }}送达,{{item.surPlusMinute >= 0 ? '剩余'+item.surPlusMinute + '分钟' : '超时' +item.surPlusMinute +"分钟" }}</span> -->
  140. <el-button size="small" class="btn" @click.stop="orderPrinter(item.waimaiOrderId,item.id)" v-if="item.waimaiOrderId">补打小票</el-button>
  141. </div>
  142. <!-- 异常单 -->
  143. <div class="order_item_header_r" v-if="item.buttonStatus === -2">
  144. <el-tag class="header_r">{{
  145. showCancelType(item.cancelType)
  146. }}</el-tag>
  147. <el-button size="small" class="btn" @click.stop="orderBack(item.id)">撤回订单</el-button>
  148. </div>
  149. <!-- 取消单 -->
  150. <div class="order_item_header_r" v-if="item.buttonStatus === -1">
  151. <el-tag class="header_r">{{
  152. showCancelType(item.cancelType)
  153. }}</el-tag>
  154. <!-- <el-button v-if="item.cancelType===4&&item.waimaiOrderId" size='small' class="btn" @click.stop="orderPrinter(item.waimaiOrderId,item.id)">补打小票</el-button> -->
  155. <el-button size="small" class="btn" @click.stop="againOrder(item)">再来一单</el-button>
  156. </div>
  157. <!-- 猎豹平台已完成 -->
  158. <div class="order_item_header_r" v-if="item.buttonStatus === 97">
  159. <el-tag v-if="[-1,7].includes(tabNum)" class="header_r">已完成</el-tag>
  160. <el-button size="small" class="btn" @click.stop="againOrder(item)">再来一单</el-button>
  161. </div>
  162. <!-- 其他平台已完成 -->
  163. <div class="order_item_header_r" v-if="item.buttonStatus === 98">
  164. <el-tag v-if="[-1,7].includes(tabNum)" class="header_r">其他平台已完成</el-tag>
  165. <el-button size="small" class="btn" @click.stop="againOrder(item)">再来一单</el-button>
  166. </div>
  167. </div>
  168. <div class="order_item_cont" :class="curIdx === i ? 'active_order_item_cont' : ''">
  169. <div class="address">
  170. {{ item.receiptAddress }}
  171. <div class="distance" @click.stop="checkMap(item)">
  172. <img class="img" src="../../../static/image/show-map-icon.png" alt="">
  173. <span class="show-map">查看地图</span>
  174. </div>
  175. </div>
  176. <div class="content">
  177. {{ item.receiptContactName
  178. }}<span>{{ item.receiptPhone }}{{item.receiptExtension ? "," + item.receiptExtension : ""}}</span>
  179. </div>
  180. <div v-if="item.caution" class="itme_r">
  181. 备注:{{ item.caution }}
  182. </div>
  183. </div>
  184. </div>
  185. </div>
  186. </el-col>
  187. </el-row>
  188. <!-- 发起配送 -->
  189. <send-order-popup :tabNum="tabNum" ref="sendOrderPopup"></send-order-popup>
  190. <!-- 骑手、商家、发件人地图 -->
  191. <order-map ref="orderMap"></order-map>
  192. <!-- 备注弹出层 -->
  193. <el-dialog width="580px" center title="新增备注" destroy-on-close :visible.sync="dialogTableVisible">
  194. <div>
  195. <el-input placeholder="请添加备注信息,最多输入20个字!" v-model="remark" clearable :maxlength="20" />
  196. </div>
  197. <div style="text-align: center; margin-top: 20px">
  198. <el-button @click.stop="dialogTableVisible = false">取消</el-button>
  199. <el-button type="primary" class="submit-btn" @click.stop="commitRemark(orderId, item)">确定</el-button>
  200. </div>
  201. </el-dialog>
  202. <!-- 设置预约发单时间弹出层 -->
  203. <el-dialog width="580px" center :title="exceptTime" destroy-on-close :visible.sync="settingTimeStatus">
  204. <div>
  205. <span>提前多长时间发起配送:</span>
  206. <el-select size="small" style="width: 80px" v-model="timeValue" placeholder="请选择">
  207. <el-option v-for="(item, index) in timeList" :key="index" :label="item" :value="item"></el-option>
  208. </el-select>
  209. <span>小时</span>
  210. </div>
  211. <p style="color: #f74141">
  212. 提示:设置后系统将根据您设置的提前时间自动发单。{{delayTime ? '' : '如需骑手立即取件请点击立即配送!'}}
  213. </p>
  214. <div style="text-align: center; margin-top: 20px">
  215. <el-button v-if="delayTime" @click.stop="cancalSettingTime">取消预约发单</el-button>
  216. <el-button type="primary" class="submit-btn" @click.stop="commitTimeValue(orderId)">{{delayTime ? '确定修改' : '保存'}}</el-button>
  217. </div>
  218. </el-dialog>
  219. <!-- 取消订单弹出层 -->
  220. <el-dialog width="680px" center title="取消原因" destroy-on-close :visible.sync="cancelStatus">
  221. <div class="cancel-list">
  222. <div class="item" @click.stop="changeReason(item)" :class="[
  223. (index + 1) % 3 == 0 ? 'no-margin' : '',
  224. item.id == reasonIndex ? 'active' : '',
  225. ]" v-for="(item, index) in cancelList" :key="index">
  226. {{ item.name }}
  227. </div>
  228. </div>
  229. <div class="text-area">
  230. <el-input show-word-limit :rows="4" type="textarea" resize="none" :maxlength="50" placeholder="请输入其他原因" v-model="cancelReason"></el-input>
  231. </div>
  232. <div style="text-align: center; margin-top: 20px">
  233. <el-button @click.stop="cancelStatus = false">取消</el-button>
  234. <el-button type="primary" class="submit-btn" @click.stop="commitCancelReason(orderId)">确定</el-button>
  235. </div>
  236. </el-dialog>
  237. <!-- 加小费弹出层 -->
  238. <el-dialog width="580px" center title="加小费" destroy-on-close :visible.sync="addTipStatus">
  239. <div>
  240. <div class="tip-title">小费金额</div>
  241. <div class="tip-list">
  242. <div class="tip-item" @click.stop="tipActive = index" :class="tipActive == index ? 'tip-active' : ''" v-for="(item, index) in tipList" :key="index">
  243. {{ item }}元
  244. </div>
  245. <div class="tip-item" @click.stop="tipActive = -1" :class="tipActive == -1 ? 'tip-active' : ''">
  246. <el-input placeholder="其他金额" v-model="tipAmount" />
  247. </div>
  248. </div>
  249. <!-- 支付方式 -->
  250. <div class="choose-self" style="border: none">
  251. <div class="self-top">
  252. <span>支付方式</span>
  253. </div>
  254. <div class="pay-list">
  255. <div class="pay-item" @click.stop="paymentType = item.id" :class="paymentType == item.id ? 'pay-active' : ''" v-for="(item, index) in payList" :key="index">
  256. <img :src="item.icon" class="pay-icon" />
  257. <span>{{ item.name }}</span>
  258. </div>
  259. </div>
  260. </div>
  261. </div>
  262. <div style="text-align: center; margin-top: 20px">
  263. <el-button @click.stop="addTipStatus = false">取消</el-button>
  264. <el-button type="primary" class="submit-btn" @click.stop="richMoney(orderId)">确定</el-button>
  265. </div>
  266. </el-dialog>
  267. <!-- 支付二维码弹出层 -->
  268. <qr-code v-if="showCode" @paySuccess="paySuccess" @refreshCode="recharge" @closeCode="showCode = false" ref="code" :payAmount="payAmount" :link="link" :paymentType="paymentType" :orderSn="orderSn"></qr-code>
  269. </div>
  270. </template>
  271. <script>
  272. import moment from "moment";
  273. import bus from "../../common/bus.js";
  274. import orderMap from "./orderAMap.vue";
  275. import OrderDetail from "./orderDetail.vue";
  276. import orderTrack from "./orderTrack.vue";
  277. import { mapState } from "vuex";
  278. import sendOrderPopup from "./sendOrderPopup.vue";
  279. import qrCode from "../../common/qrCode.vue";
  280. import {
  281. sendValuation,
  282. waimaiprinter,
  283. addRemark,
  284. ignoreOrder,
  285. rollOrder,
  286. setDeliveryTime,
  287. cancelTimingPublish,
  288. cancelOrder,
  289. trackOrder,
  290. detailOrder,
  291. tips,
  292. getRiderArriveTime,
  293. getPayResult,
  294. getMapData,
  295. } from "../../api/order.js";
  296. export default {
  297. name: "OrderList",
  298. data() {
  299. return {
  300. payAmount: 0,
  301. paymentType: 1, // 1 支付宝 0 微信
  302. payList: [
  303. {
  304. id: 1,
  305. name: "支付宝支付",
  306. icon: require("../../../static/image/alipay.png"),
  307. },
  308. {
  309. id: 2,
  310. name: "微信支付",
  311. icon: require("../../../static/image/we-chat.png"),
  312. },
  313. {
  314. id: 4,
  315. name: "余额/三方支付",
  316. icon: require("../../../static/image/yu-e.png"),
  317. },
  318. ],
  319. tipActive: 0,
  320. tipList: [1, 2, 5, 10, 15, 20, 30, 50],
  321. tipAmount: "", // 小费金额
  322. addTipStatus: false, // 加小费弹出层
  323. reasonIndex: null, // 取消原因索引
  324. chooseReason: "", // 选择取消原因
  325. cancelReason: "", // 输入取消原因
  326. cancelList: [
  327. { id: 1, name: "无骑手接单" },
  328. { id: 2, name: "骑手接单后不取货" },
  329. { id: 3, name: "骑手电车装不下" },
  330. { id: 4, name: "计划有变,无需配送" },
  331. { id: 5, name: "骑手服务态度恶劣" },
  332. { id: 6, name: "骑手要求取消订单" },
  333. { id: 7, name: "信息填写错误" },
  334. { id: 8, name: "其他原因" },
  335. ],
  336. timeList: [1, 1.5, 2, 2.5, 3, 3.5, 4, 5, 6, 7, 8, 9, 10, 11, 12],
  337. timeValue: 1, // 定时发单,默认1小时
  338. cancelStatus: false, // 取消订单弹出层
  339. settingTimeStatus: false, // 定时发单弹出层
  340. needTrack: false,
  341. orderDetailStutus: 1,
  342. isLoading: false,
  343. dialogTableVisible: false,
  344. remark: "",
  345. orderId: "",
  346. item: {},
  347. radio: "",
  348. needTrack: false,
  349. curIdx: 0,
  350. trackOrder: {},
  351. orderDetail: {},
  352. showDetail: false,
  353. showTrack: false,
  354. showCode: false,
  355. link: "",
  356. buttonStatus: 0,
  357. exceptTime: "",
  358. delayTime: "", // 预约延迟时间
  359. riderArriveTime: {}, //骑手预计取货送达时间
  360. };
  361. },
  362. props: {
  363. tabNum: Number,
  364. list: Array,
  365. },
  366. components: {
  367. sendOrderPopup,
  368. orderMap,
  369. OrderDetail,
  370. orderTrack,
  371. qrCode,
  372. },
  373. watch: {
  374. tabNum(newVal, oldVal) {
  375. this.curIdx = 0;
  376. },
  377. list: {
  378. handler(newVal, oldVal) {
  379. this.buttonStatus = newVal.length ? newVal[0].buttonStatus : 0;
  380. if (this.buttonStatus === 0 || this.buttonStatus === 10) {
  381. this.needTrack = false;
  382. this.orderDetailStutus = 1;
  383. } else {
  384. this.needTrack = true;
  385. this.orderDetailStutus = 0;
  386. }
  387. this.getDetailOrder();
  388. this.getTrackOrder();
  389. this.getRiderArriveTime();
  390. },
  391. immediate: true,
  392. },
  393. },
  394. destroyed() {},
  395. computed: {
  396. ...mapState(["userInfo"]),
  397. },
  398. methods: {
  399. daySeqColor(type) {
  400. let bgColor = "";
  401. switch (type) {
  402. case 1:
  403. bgColor = "#FDC502";
  404. break;
  405. case 2:
  406. bgColor = "#2491FF";
  407. break;
  408. case 3:
  409. bgColor = "#2491FF";
  410. break;
  411. case 5:
  412. bgColor = "#FDC502";
  413. break;
  414. case 6:
  415. bgColor = "#00A82D";
  416. break;
  417. case 7:
  418. bgColor = "#2788FE";
  419. break;
  420. case 8:
  421. bgColor = "#EE0000";
  422. break;
  423. default:
  424. bgColor = "#fc7200";
  425. break;
  426. }
  427. return { background: bgColor };
  428. },
  429. // 再来一单
  430. againOrder(order) {
  431. if ([97, 98].includes(order.buttonStatus)) {
  432. this.$confirm("当前订单已完成,确认要再次发起配送吗?", "提示", {
  433. confirmButtonText: "确定",
  434. cancelButtonText: "取消",
  435. center: true,
  436. })
  437. .then(() => {
  438. this.$router.push({
  439. name: "manualCreate",
  440. params: {
  441. orderId: order.id,
  442. },
  443. });
  444. })
  445. .catch(() => {});
  446. } else {
  447. this.$router.push({
  448. name: "manualCreate",
  449. params: {
  450. orderId: order.id,
  451. },
  452. });
  453. }
  454. },
  455. paySuccess() {
  456. this.showCode = false;
  457. this.addTipStatus = false;
  458. bus.$emit("refreshData");
  459. bus.$emit("refreshData2");
  460. },
  461. richMoney() {
  462. let reg = /(^[1-9]\d*$)/g;
  463. if (this.tipActive == -1) {
  464. if (!reg.test(this.tipAmount * 1)) {
  465. return this.$message({
  466. message: "请选择或输入正确的整数金额",
  467. type: "error",
  468. });
  469. }
  470. }
  471. let params = {
  472. orderId: this.orderId,
  473. tipAmount:
  474. this.tipActive == -1 ? this.tipAmount : this.tipList[this.tipActive],
  475. paymentType: this.paymentType,
  476. createType: 1,
  477. };
  478. tips(params).then((res) => {
  479. if (res.code == 200) {
  480. if (this.paymentType == 4) {
  481. // 余额支付
  482. this.$message({
  483. message: "小费添加成功",
  484. type: "success",
  485. });
  486. bus.$emit("refreshData");
  487. bus.$emit("refreshData2");
  488. this.addTipStatus = false;
  489. this.tipAmount = "";
  490. } else if (this.paymentType == 1 || this.paymentType == 2) {
  491. // 支付宝、微信支付
  492. this.payAmount = res.data.amount || 0;
  493. this.orderSn = res.data.orderSn;
  494. this.link = res.data.data;
  495. this.showCode = true;
  496. }
  497. } else {
  498. this.$message({
  499. message: res.msg,
  500. type: "error",
  501. });
  502. }
  503. });
  504. },
  505. addTip(orderId) {
  506. this.orderId = orderId;
  507. this.paymentType = 4;
  508. this.addTipStatus = true;
  509. },
  510. changeReason(item) {
  511. this.reasonIndex = item.id;
  512. this.chooseReason = item.name;
  513. },
  514. doCancelOrder() {
  515. cancelOrder({
  516. orderId: this.orderId,
  517. cancelReason:
  518. this.reasonIndex != 8 ? this.chooseReason : this.cancelReason,
  519. }).then((res) => {
  520. if (res.code == 200) {
  521. this.$message({
  522. message: "取消订单成功",
  523. type: "success",
  524. });
  525. this.orderId = "";
  526. this.cancelReason = "";
  527. this.chooseReason = "";
  528. this.reasonIndex = null;
  529. bus.$emit("refreshData");
  530. bus.$emit("refreshData2");
  531. this.cancelStatus = false;
  532. } else {
  533. this.$message({
  534. message: res.msg,
  535. type: "error",
  536. });
  537. }
  538. });
  539. },
  540. // 取消订单
  541. commitCancelReason() {
  542. if (!this.reasonIndex) {
  543. return this.$message({
  544. message: "请选择取消原因",
  545. type: "error",
  546. });
  547. }
  548. if (this.reasonIndex == 8 && !this.cancelReason.trim()) {
  549. return this.$message({
  550. message: "请填写其他取消原因",
  551. type: "error",
  552. });
  553. }
  554. if (this.buttonStatus !== 2) {
  555. this.doCancelOrder();
  556. return;
  557. }
  558. this.$confirm("取货中取消订单可能会存在违约金, 是否继续?", "提示", {
  559. confirmButtonText: "继续",
  560. showClose: false,
  561. closeOnClickModal: false,
  562. center: true,
  563. type: "warning",
  564. })
  565. .then(() => {
  566. this.doCancelOrder();
  567. })
  568. .catch(() => {
  569. this.cancelStatus = false;
  570. });
  571. },
  572. // 取消定时发单
  573. cancalSettingTime() {
  574. cancelTimingPublish({ orderId: this.item.id }).then((res) => {
  575. this.settingTimeStatus = false;
  576. if (res.code == 200) {
  577. this.$message({
  578. message: "取消定时发单成功",
  579. type: "success",
  580. });
  581. this.item = {};
  582. bus.$emit("refreshData");
  583. bus.$emit("refreshData2");
  584. } else {
  585. this.$message({
  586. message: res.msg,
  587. type: "error",
  588. });
  589. }
  590. });
  591. },
  592. commitTimeValue() {
  593. let timestamp = new Date().valueOf();
  594. let exT = moment(this.item.exceptTime).valueOf();
  595. let nowTime = moment(exT)
  596. .subtract(this.timeValue, "hours")
  597. .format("YYYY-MM-DD HH:mm:ss"); //当前时间的前n小时时间
  598. let t1 = moment(nowTime).valueOf(); // 时间戳
  599. console.log(nowTime, this.item, "-------------");
  600. if (t1 - timestamp < 0) {
  601. return this.$message({
  602. message: `设置发单时间超出当前时间`,
  603. type: "error",
  604. });
  605. }
  606. setDeliveryTime({
  607. orderId: this.item.id,
  608. delayTime: this.timeValue,
  609. }).then((res) => {
  610. this.settingTimeStatus = false;
  611. if (res.code == 200) {
  612. this.$message({
  613. message: "设置定时发单成功",
  614. type: "success",
  615. });
  616. this.item = {};
  617. bus.$emit("refreshData");
  618. bus.$emit("refreshData2");
  619. } else {
  620. this.$message({
  621. message: res.msg,
  622. type: "error",
  623. });
  624. }
  625. });
  626. },
  627. // 定时发单
  628. settingTime(item) {
  629. this.item = item;
  630. this.settingTimeStatus = true;
  631. this.delayTime = item.delayTime;
  632. this.timeValue = item.delayTime ? item.delayTime : 1;
  633. this.exceptTime = `预约期望${item.exceptTime.slice(5)}送达`;
  634. },
  635. // 取消订单
  636. cancelOrder(orderId) {
  637. this.orderId = orderId;
  638. this.cancelStatus = true;
  639. },
  640. chooseOrder(v, index) {
  641. this.buttonStatus = this.list[index].buttonStatus;
  642. if (this.buttonStatus === 0 || this.buttonStatus === 10) {
  643. this.needTrack = false;
  644. this.orderDetailStutus = 1;
  645. } else {
  646. this.needTrack = true;
  647. this.orderDetailStutus = 0;
  648. }
  649. this.curIdx = index;
  650. this.getDetailOrder();
  651. this.getTrackOrder();
  652. this.getRiderArriveTime();
  653. },
  654. // 忽略订单
  655. iGnoreOrder(orderId) {
  656. this.orderId = orderId;
  657. this.$confirm("确定要忽略此单?", "提示", {
  658. confirmButtonText: "确定",
  659. cancelButtonText: "取消",
  660. center: true,
  661. showClose: false,
  662. closeOnClickModal: false,
  663. type: "warning",
  664. })
  665. .then(() => {
  666. ignoreOrder({ orderId }).then((res) => {
  667. if (res.code == 200) {
  668. this.$message({
  669. type: "success",
  670. message: "已忽略!",
  671. });
  672. bus.$emit("refreshData");
  673. bus.$emit("refreshData2");
  674. } else {
  675. this.$message({
  676. message: res.msg,
  677. type: "error",
  678. });
  679. }
  680. });
  681. })
  682. .catch(() => {
  683. this.$message({
  684. type: "info",
  685. message: "已取消",
  686. });
  687. });
  688. },
  689. itemAddRemark(orderId, item) {
  690. this.dialogTableVisible = true;
  691. this.orderId = orderId;
  692. this.item = item;
  693. this.remark = item.takeRemark || "";
  694. },
  695. // 一键发单备注
  696. commitRemark(orderId, item) {
  697. let params = {
  698. orderId,
  699. remark: this.remark.trim(),
  700. };
  701. addRemark(params).then((res) => {
  702. this.dialogTableVisible = false;
  703. if (res.code == 200) {
  704. this.$message({
  705. message: "添加备注成功",
  706. type: "success",
  707. });
  708. bus.$emit("refreshData");
  709. bus.$emit("refreshData2");
  710. } else {
  711. this.$message({
  712. message: res.msg,
  713. type: "error",
  714. });
  715. }
  716. });
  717. },
  718. // 查看地图
  719. checkMap(item) {
  720. this.$refs.orderMap.setDialogStatus(item);
  721. },
  722. sendNow(item) {
  723. this.getValuation(item);
  724. },
  725. // 撤回订单
  726. orderBack(orderId) {
  727. rollOrder({ orderId }).then((res) => {
  728. if (res.code == 200) {
  729. this.$message({
  730. message: "操作成功",
  731. type: "success",
  732. });
  733. bus.$emit("refreshData");
  734. bus.$emit("refreshData2");
  735. } else {
  736. this.$message({
  737. message: res.msg,
  738. type: "error",
  739. });
  740. }
  741. });
  742. },
  743. // 补打小票
  744. orderPrinter(waimaiId, id) {
  745. if (id) {
  746. bus.$emit("startUsbPrint", id);
  747. }
  748. if (!waimaiId) return;
  749. waimaiprinter({ waimaiId }).then((res) => {
  750. if (res.code == 200) {
  751. this.$message({
  752. message: "操作成功",
  753. type: "success",
  754. });
  755. } else {
  756. this.$message({
  757. message: res.msg,
  758. type: "error",
  759. });
  760. }
  761. });
  762. },
  763. // 计价
  764. getValuation(order) {
  765. let requestData = {
  766. productId: order.productId,
  767. transport: 0,
  768. productAmount: 50,
  769. sendAddress: {
  770. id: order.sendAddressId,
  771. provinceName: order.sendProvinceName,
  772. cityName: order.sendCityName,
  773. districtName: order.sendDistrictName,
  774. street: order.sendStreet,
  775. lat: order.sendLat,
  776. lng: order.sendLng,
  777. phone: order.sendPhone,
  778. extension: order.sendExtension,
  779. contact: order.sendContactName,
  780. address: order.sendAddress,
  781. cityCode: order.sendCityCode,
  782. },
  783. receiptAddress: {
  784. id: order.receiptAddressId,
  785. provinceName: order.receiptProvince,
  786. cityName: order.receiptCityName,
  787. districtName: order.receiptDistrictName,
  788. lat: order.receiptLat,
  789. lng: order.receiptLng,
  790. phone: order.receiptPhone,
  791. extension: order.receiptExtension,
  792. contact: order.receiptContactName,
  793. street: order.receiptStreet || "",
  794. address: order.receiptAddress,
  795. cityCode: order.receiptCityCode,
  796. },
  797. takeTime: order.takeTime,
  798. weight: order.weight,
  799. takeType: order.waimaiOrderId ? order.takeType : 0,
  800. type: this.userInfo.memberType == 1 ? 1 : 2,
  801. isWaimai: order.waimaiId ? true : false,
  802. waimaiOrderId: order.waimaiOrderId,
  803. takeRemark: order.takeRemark || "",
  804. orderId: order.id,
  805. };
  806. this.isLoading = true;
  807. sendValuation(requestData).then((res) => {
  808. console.log(res, "发起配送计算");
  809. this.isLoading = false;
  810. if (res.code == 200) {
  811. res.data.optionals.forEach((item) => {
  812. item.optionals = item.optionals ? item.optionals : [];
  813. item.lowOptionals = item.lowOptionals ? item.lowOptionals : [];
  814. item.supports = item.supports ? item.supports : [];
  815. });
  816. this.$refs.sendOrderPopup.init(res.data, {
  817. ...requestData,
  818. orderId: order.id,
  819. orderSn: order.orderSn,
  820. });
  821. }
  822. });
  823. },
  824. // 订单详情
  825. getDetailOrder() {
  826. this.showDetail = false;
  827. if (this.list.length) {
  828. this.orderId = this.list[this.curIdx].id;
  829. } else {
  830. return;
  831. }
  832. detailOrder({ orderId: this.orderId }).then((res) => {
  833. if (res.code === 200) {
  834. this.orderDetail = res.data;
  835. this.showDetail = true;
  836. } else {
  837. this.$message({
  838. message: res.msg,
  839. type: "error",
  840. });
  841. }
  842. });
  843. },
  844. // 订单跟踪
  845. getTrackOrder() {
  846. if (this.buttonStatus === 0 || this.buttonStatus === 10) return;
  847. this.showTrack = false;
  848. if (this.list.length) {
  849. this.orderId = this.list[this.curIdx].id;
  850. } else {
  851. return;
  852. }
  853. trackOrder({ orderId: this.orderId }).then((res) => {
  854. if (res.code === 200) {
  855. this.trackOrder = res.data;
  856. this.showTrack = true;
  857. } else {
  858. this.$message({
  859. message: res.msg,
  860. type: "error",
  861. });
  862. }
  863. });
  864. },
  865. // 获取骑手预计到达时间
  866. getRiderArriveTime() {
  867. // 只有取货中和配送中调用该接口
  868. if (![2, 3].includes(this.buttonStatus)) return;
  869. if (this.list.length) {
  870. this.orderId = this.list[this.curIdx].id;
  871. } else {
  872. return;
  873. }
  874. getRiderArriveTime({ orderId: this.orderId }).then((res) => {
  875. if (res.code === 200) {
  876. this.riderArriveTime = res.data;
  877. }
  878. });
  879. },
  880. showCancelType(type) {
  881. let name = "";
  882. switch (type) {
  883. case 1:
  884. name = "商家取消";
  885. break;
  886. case 2:
  887. name = "骑手取消";
  888. break;
  889. case 3:
  890. name = "系统取消";
  891. break;
  892. case 4:
  893. name = "用户取消";
  894. break;
  895. case 5:
  896. name = "平台取消";
  897. break;
  898. default:
  899. name = "已取消";
  900. break;
  901. }
  902. return name;
  903. },
  904. showDeliveryStatus(item) {
  905. let name = "";
  906. if (item.wmstatus === 4) {
  907. return (name = "其他平台完成");
  908. }
  909. if (item.deliveryStatus === 4) {
  910. return (name = "已完成");
  911. }
  912. if (item.deliveryStatus === -1) {
  913. return (name = "已取消");
  914. }
  915. },
  916. },
  917. };
  918. </script>
  919. <style lang="scss" scoped="scoped">
  920. .el-row {
  921. position: absolute !important;
  922. width: 100%;
  923. left: 0;
  924. top: 0;
  925. }
  926. .track-detail {
  927. display: flex;
  928. justify-content: flex-end;
  929. height: calc(100vh - 210px);
  930. /deep/ .el-col {
  931. // margin-right: 15px;
  932. height: 100%;
  933. z-index: 2;
  934. }
  935. .order-detail {
  936. height: calc(100vh - 250px);
  937. overflow: auto;
  938. }
  939. .detail_cont {
  940. height: calc(100vh - 250px);
  941. overflow: auto;
  942. }
  943. }
  944. .list-info {
  945. height: calc(100vh - 210px);
  946. overflow-y: auto;
  947. }
  948. .choose-self {
  949. padding-top: 25px;
  950. border-bottom: 1px solid #eee;
  951. .self-top {
  952. display: flex;
  953. align-items: center;
  954. margin-bottom: 11px;
  955. .choose-self-icon {
  956. width: 4px;
  957. height: 15px;
  958. margin-right: 10px;
  959. }
  960. span {
  961. font-size: 14px;
  962. font-family: PingFang SC;
  963. font-weight: 400;
  964. color: #92959b;
  965. }
  966. }
  967. .pay-list {
  968. display: flex;
  969. align-items: center;
  970. padding-top: 10px;
  971. .pay-item {
  972. flex: 1;
  973. display: flex;
  974. justify-content: center;
  975. text-align: center;
  976. align-items: center;
  977. height: 51px;
  978. border: 1px solid #eee;
  979. border-radius: 8px;
  980. cursor: pointer;
  981. &.pay-active {
  982. border-color: #fc7200;
  983. }
  984. &:nth-child(2) {
  985. margin: 0 13px;
  986. }
  987. span {
  988. font-size: 14px;
  989. font-family: PingFang SC;
  990. font-weight: bold;
  991. color: #222222;
  992. }
  993. .pay-icon {
  994. margin-right: 6px;
  995. }
  996. .pay-icon:nth-child(1) {
  997. width: 25px;
  998. height: 24px;
  999. }
  1000. }
  1001. }
  1002. }
  1003. .tip-title {
  1004. font-size: 14px;
  1005. font-family: PingFang SC;
  1006. font-weight: 400;
  1007. color: #92959b;
  1008. padding-bottom: 13px;
  1009. }
  1010. .tip-list {
  1011. display: flex;
  1012. flex-wrap: wrap;
  1013. .tip-item {
  1014. margin-right: 10px;
  1015. margin-bottom: 10px;
  1016. width: 93px;
  1017. height: 38px;
  1018. line-height: 38px;
  1019. text-align: center;
  1020. font-size: 13px;
  1021. font-family: PingFang SC;
  1022. font-weight: 400;
  1023. color: #222222;
  1024. box-sizing: border-box;
  1025. background: #f4f4f4;
  1026. cursor: pointer;
  1027. border-radius: 2px;
  1028. border: 1px solid transparent;
  1029. /deep/ .el-input__inner {
  1030. border: none;
  1031. height: 32px !important;
  1032. background-color: #f4f4f4;
  1033. font-size: 13px;
  1034. padding: 0 15px !important;
  1035. }
  1036. }
  1037. .tip-active {
  1038. border-color: #fc7200;
  1039. color: #fc7200;
  1040. }
  1041. }
  1042. .text-area {
  1043. /deep/ .el-textarea__inner {
  1044. background-color: #f2f2f2;
  1045. border: none;
  1046. }
  1047. }
  1048. .cancel-list {
  1049. display: flex;
  1050. flex-wrap: wrap;
  1051. .item {
  1052. color: #222;
  1053. width: 193px;
  1054. height: 50px;
  1055. line-height: 50px;
  1056. box-sizing: border-box;
  1057. text-align: center;
  1058. font-size: 16px;
  1059. border: 2px solid #d7d7d7;
  1060. border-radius: 6px;
  1061. margin-right: 20px;
  1062. margin-bottom: 20px;
  1063. cursor: pointer;
  1064. &:last-child {
  1065. color: #d7d7d7;
  1066. }
  1067. &.active {
  1068. color: #fc7101;
  1069. border-color: #fc7101;
  1070. }
  1071. }
  1072. .no-margin {
  1073. margin-right: 0 !important;
  1074. }
  1075. }
  1076. .ignore-modal {
  1077. .title {
  1078. font-size: 14px;
  1079. font-family: PingFang SC;
  1080. font-weight: 400;
  1081. color: #92959b;
  1082. }
  1083. .check-item {
  1084. display: flex;
  1085. align-items: center;
  1086. margin-top: 20px;
  1087. .radio {
  1088. width: 14px;
  1089. height: 14px;
  1090. margin-right: 6px;
  1091. }
  1092. span {
  1093. font-size: 14px;
  1094. font-family: PingFang SC;
  1095. font-weight: 400;
  1096. color: #222222;
  1097. }
  1098. }
  1099. }
  1100. .submit-btn {
  1101. border: none !important;
  1102. background-color: #fc7200;
  1103. }
  1104. .order_item {
  1105. width: 100%;
  1106. height: 140px;
  1107. background: #fff;
  1108. margin-bottom: 10px;
  1109. border-radius: 5px;
  1110. overflow: hidden;
  1111. cursor: pointer;
  1112. .order_item_header {
  1113. width: 100%;
  1114. height: 49px;
  1115. display: flex;
  1116. align-items: center;
  1117. border-bottom: 1px solid #f0f0f0;
  1118. position: relative;
  1119. display: flex;
  1120. align-items: center;
  1121. justify-content: space-between;
  1122. padding-right: 10px;
  1123. box-sizing: border-box;
  1124. background: rgba(254, 241, 233, 0.39);
  1125. .order_item_header_l,
  1126. .order_item_header_r {
  1127. display: flex;
  1128. align-items: center;
  1129. }
  1130. .Serial_number {
  1131. width: 60px;
  1132. height: 26px;
  1133. border-radius: 0 30px 30px 0;
  1134. font-size: 10px;
  1135. font-weight: 500;
  1136. color: #ffffff;
  1137. text-align: center;
  1138. line-height: 26px;
  1139. }
  1140. .logo {
  1141. width: 21px;
  1142. height: 21px;
  1143. border-radius: 50%;
  1144. margin-left: 23px;
  1145. }
  1146. .name {
  1147. font-size: 14px;
  1148. font-weight: 500;
  1149. color: #333333;
  1150. margin-left: 5px;
  1151. }
  1152. .sign_time {
  1153. padding: 0 8px;
  1154. height: 20px;
  1155. border: 1px solid #fc7200;
  1156. background: #fff;
  1157. border-radius: 2px;
  1158. text-align: center;
  1159. line-height: 20px;
  1160. font-size: 12px;
  1161. font-weight: 600;
  1162. color: #fc7200;
  1163. margin-left: 15px;
  1164. }
  1165. .sign_txt {
  1166. // width: 64px;
  1167. height: 20px;
  1168. border: 1px solid #009cff;
  1169. background: #f2faff;
  1170. border-radius: 2px;
  1171. text-align: center;
  1172. line-height: 20px;
  1173. font-size: 12px;
  1174. font-weight: 600;
  1175. color: #009cff;
  1176. margin-left: 10px;
  1177. padding: 0 5px;
  1178. }
  1179. .sign_d {
  1180. height: 20px;
  1181. border: 1px solid #f74141;
  1182. background: #fff5f5;
  1183. border-radius: 2px;
  1184. text-align: center;
  1185. line-height: 20px;
  1186. font-size: 12px;
  1187. font-weight: 600;
  1188. color: #f74141;
  1189. margin-left: 10px;
  1190. padding: 0 7px;
  1191. }
  1192. .sign_f {
  1193. height: 20px;
  1194. border: 1px solid #999;
  1195. background: #fff;
  1196. border-radius: 2px;
  1197. text-align: center;
  1198. line-height: 20px;
  1199. font-size: 12px;
  1200. font-weight: 600;
  1201. color: #999;
  1202. margin-left: 10px;
  1203. padding: 0 7px;
  1204. }
  1205. .header_r {
  1206. font-size: 14px;
  1207. font-weight: 400;
  1208. color: #333333;
  1209. // margin-right: 22px;
  1210. }
  1211. .btn {
  1212. background: #fc7200;
  1213. border-color: #fc7200;
  1214. color: #fff;
  1215. margin-left: 20px;
  1216. // position: absolute;
  1217. // right: 10px;
  1218. }
  1219. }
  1220. .active_order_item_cont {
  1221. border-color: #fc7200 !important;
  1222. }
  1223. .order_item_cont {
  1224. display: flex;
  1225. flex-direction: column;
  1226. justify-content: space-evenly;
  1227. padding: 0 20px;
  1228. height: calc(100% - 52px);
  1229. border-bottom: 2px solid #ffffff;
  1230. .address {
  1231. display: flex;
  1232. align-items: center;
  1233. font-size: 16px;
  1234. font-weight: bold;
  1235. .distance {
  1236. display: flex;
  1237. align-items: center;
  1238. margin-left: 10px;
  1239. color: #fc7200;
  1240. cursor: pointer;
  1241. .img {
  1242. width: 15px;
  1243. height: 20px;
  1244. margin-right: 5px;
  1245. }
  1246. .show-map {
  1247. font-size: 12px;
  1248. font-weight: bold;
  1249. font-weight: 500;
  1250. color: #fc7200;
  1251. }
  1252. }
  1253. }
  1254. .content {
  1255. font-size: 14px;
  1256. font-weight: 400;
  1257. line-height: 20px;
  1258. color: #999999;
  1259. }
  1260. .itme_r {
  1261. font-size: 15px;
  1262. font-weight: 400;
  1263. color: #333333;
  1264. word-wrap: break-word;
  1265. }
  1266. }
  1267. }
  1268. .order_detail {
  1269. position: relative;
  1270. width: 100%;
  1271. height: 100%;
  1272. border-left: 10px solid #f1f2f5;
  1273. background: #fff;
  1274. box-sizing: border-box;
  1275. border-left: 10px solid #f1f2f5;
  1276. .bottom-btns {
  1277. position: absolute;
  1278. bottom: 0;
  1279. left: 0;
  1280. width: 100%;
  1281. border-top: 2px dotted #f0f0f0;
  1282. background: #fff;
  1283. }
  1284. .detail_title {
  1285. width: 100%;
  1286. height: 44px;
  1287. background: #fafafa;
  1288. padding-left: 16px;
  1289. box-sizing: border-box;
  1290. display: flex;
  1291. align-items: center;
  1292. font-size: 12px;
  1293. font-weight: 600;
  1294. display: flex;
  1295. align-items: flex-end;
  1296. .detail_txt {
  1297. color: #b1b1b1;
  1298. padding-bottom: 13px;
  1299. border-bottom: 2px solid #fafafa;
  1300. margin-right: 28px;
  1301. cursor: pointer;
  1302. z-index: 2;
  1303. }
  1304. .detail_txt_ac {
  1305. color: #00152a;
  1306. border-color: #00152a;
  1307. }
  1308. }
  1309. .btns {
  1310. margin: 10px 15px;
  1311. display: flex;
  1312. flex-wrap: wrap;
  1313. justify-content: space-between;
  1314. .btn {
  1315. background: #fc7200;
  1316. border-color: #fc7200;
  1317. color: #fff !important;
  1318. }
  1319. .btn_bots {
  1320. margin: 0 !important;
  1321. margin-bottom: 10px !important;
  1322. }
  1323. .btn_bot {
  1324. width: 74px;
  1325. display: flex;
  1326. align-items: center;
  1327. justify-content: center;
  1328. color: #888888;
  1329. margin-bottom: 10px !important;
  1330. .el-dropdown-link {
  1331. cursor: pointer;
  1332. }
  1333. }
  1334. }
  1335. .detail_cont {
  1336. width: 100%;
  1337. padding: 16px;
  1338. box-sizing: border-box;
  1339. .detail_title2 {
  1340. width: 100%;
  1341. font-size: 12px;
  1342. font-weight: 600;
  1343. color: #777777;
  1344. margin-bottom: 15px;
  1345. }
  1346. .shop_detail {
  1347. width: 100%;
  1348. display: flex;
  1349. margin-bottom: 10px;
  1350. img {
  1351. width: 47px;
  1352. height: 47px;
  1353. border-radius: 4px 4px 4px 4px;
  1354. margin-right: 12px;
  1355. }
  1356. .info {
  1357. flex-grow: 1;
  1358. display: flex;
  1359. justify-content: space-between;
  1360. .shop_title {
  1361. width: 70%;
  1362. font-size: 14px;
  1363. font-weight: 500;
  1364. color: #333333;
  1365. line-height: 18px;
  1366. }
  1367. .shop_num {
  1368. color: #b1b1b1;
  1369. }
  1370. }
  1371. }
  1372. .detail_ine {
  1373. width: 100%;
  1374. height: 1px;
  1375. border-top: 2px dotted #f0f0f0;
  1376. margin: 16px 0;
  1377. }
  1378. .info2 {
  1379. width: 100%;
  1380. display: flex;
  1381. .title {
  1382. font-size: 14px;
  1383. font-weight: 400;
  1384. width: 80px;
  1385. color: #b1b1b1;
  1386. }
  1387. .cont {
  1388. font-size: 14px;
  1389. font-weight: 400;
  1390. color: #333333;
  1391. line-height: 20px;
  1392. }
  1393. .cont2 {
  1394. color: #fc7200;
  1395. }
  1396. }
  1397. .info3 {
  1398. margin-top: 10px;
  1399. }
  1400. .info4 {
  1401. display: flex;
  1402. justify-content: space-between;
  1403. }
  1404. .btns {
  1405. margin-top: 30px;
  1406. .btn {
  1407. background: #fc7200;
  1408. border-color: #fc7200;
  1409. color: #fff;
  1410. }
  1411. }
  1412. }
  1413. }
  1414. </style>