orderList.vue 49 KB

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