OrderDetailDrawer.vue 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931
  1. <template>
  2. <el-drawer v-model="drawerVisible" title="订单详情" direction="rtl" size="60%" class="order-detail-drawer">
  3. <div class="detail-container" v-if="order">
  4. <!-- 1. Header Status -->
  5. <div class="detail-header">
  6. <div class="left-head">
  7. <span class="order-no">{{ order.orderNo }}</span>
  8. <el-tag :type="getStatusTag(order.status)" effect="dark" class="status-tag">{{
  9. getStatusName(order.status) }}</el-tag>
  10. <el-tag effect="plain" class="type-tag"
  11. :type="order.type === 'transport' ? '' : (order.type === 'feeding' ? 'warning' : 'danger')">
  12. {{ getTypeName(order.type) }}
  13. </el-tag>
  14. </div>
  15. <div class="right-head">
  16. <!-- Action Buttons Group -->
  17. <div class="detail-actions">
  18. <!-- <template v-if="[0, 1, 2].includes(order.status)">-->
  19. <!-- <el-button type="success" icon="Bicycle" @click="emit('dispatch', order)">-->
  20. <!-- {{ order.fulfiller || order.fulfillerName ? '重新派单' : '立即派单' }}-->
  21. <!-- </el-button>-->
  22. <!-- </template>-->
  23. <template v-if="order.status === 0">
  24. <el-button type="danger" plain icon="CircleClose"
  25. @click="emit('cancel', order)">取消订单</el-button>
  26. </template>
  27. <template v-if="order.status === 3">
  28. <el-button type="primary" icon="CircleCheck"
  29. @click="emit('command', 'complete', order)">确认完成</el-button>
  30. </template>
  31. <template v-if="[3, 4].includes(order.status)">
  32. <el-button icon="Notebook" @click="emit('care-summary', order)">护理小结</el-button>
  33. </template>
  34. <el-dropdown trigger="click" @command="(cmd) => emit('command', cmd, order)"
  35. style="margin-left: 12px;">
  36. <el-button icon="More">更多操作</el-button>
  37. <template #dropdown>
  38. <el-dropdown-menu>
  39. <el-dropdown-item command="reward" icon="Trophy">奖惩操作</el-dropdown-item>
  40. <el-dropdown-item command="remark" icon="EditPen">订单备注</el-dropdown-item>
  41. <el-dropdown-item command="delete" v-if="[5, 4].includes(order.status)" divided
  42. icon="Delete" style="color: #f56c6c;">删除订单</el-dropdown-item>
  43. </el-dropdown-menu>
  44. </template>
  45. </el-dropdown>
  46. </div>
  47. </div>
  48. </div>
  49. <div class="detail-scroll-area">
  50. <!-- 2. Progress Section -->
  51. <div class="progress-section">
  52. <el-steps :active="currentOrderSteps.active" finish-status="success" align-center
  53. class="custom-steps">
  54. <el-step v-for="(step, index) in currentOrderSteps.steps" :key="index" :title="step.title"
  55. :description="step.time" />
  56. </el-steps>
  57. </div>
  58. <!-- 3. Top Info: Pet & User -->
  59. <div class="top-info-row">
  60. <!-- Left: Pet Info -->
  61. <div class="info-section pet-section" style="cursor: pointer" @click="petDetailVisible = true">
  62. <div class="sec-header">
  63. <span class="label">宠物档案</span>
  64. <el-tag size="small" effect="plain">{{ order.petBreed }}</el-tag>
  65. </div>
  66. <div class="pet-basic-row">
  67. <el-avatar :size="50" :src="order.petAvatar" shape="square" class="pet-avatar-lg">{{
  68. (order.petName || '').charAt(0) }}</el-avatar>
  69. <div class="pet-names">
  70. <div class="b-name">{{ order.petName }}
  71. <el-icon v-if="order.petGender === 'male'" color="#409eff">
  72. <Male />
  73. </el-icon>
  74. <el-icon v-else color="#f56c6c">
  75. <Female />
  76. </el-icon>
  77. </div>
  78. <div class="b-tags">
  79. <el-tag size="small" type="info">{{ order.petAge || '未知年龄' }}</el-tag>
  80. <el-tag size="small" type="info">{{ order.petWeight || '未知体重' }}</el-tag>
  81. </div>
  82. </div>
  83. </div>
  84. <el-descriptions :column="2" size="small" class="pet-desc" border>
  85. <el-descriptions-item label="绝育状态">{{ order.petSterilized ? '已绝育' : '未绝育'
  86. }}</el-descriptions-item>
  87. <el-descriptions-item label="疫苗状态"><span style="color:#67c23a">{{ order.petVaccine || '未知'
  88. }}</span></el-descriptions-item>
  89. <el-descriptions-item label="性格特点">{{ order.petCharacter || '温顺' }}</el-descriptions-item>
  90. <el-descriptions-item label="健康状况">{{ order.petHealth || '健康' }}</el-descriptions-item>
  91. </el-descriptions>
  92. </div>
  93. <!-- Right: User Info -->
  94. <div class="info-section user-section">
  95. <div class="sec-header">
  96. <span class="label">用户信息</span>
  97. </div>
  98. <div class="user-content">
  99. <div class="u-row">
  100. <el-avatar :size="40" :src="order.userAvatar">{{ (order.userName || '').charAt(0)
  101. }}</el-avatar>
  102. <div class="u-info">
  103. <div class="nm">{{ order.userName }}</div>
  104. <div class="ph">{{ order.contactPhone }}</div>
  105. </div>
  106. </div>
  107. <div class="addr-box">
  108. <div class="addr-label">服务地址</div>
  109. <div class="addr-txt">{{ order.city }}{{ order.district }} {{ order.address || '' }}
  110. </div>
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. <!-- 4. Bottom Tabs -->
  116. <el-tabs v-model="activeDetailTab" class="detail-tabs type-card">
  117. <!-- Tab 1: Basic Info -->
  118. <el-tab-pane label="订单基础信息" name="basic">
  119. <div class="tab-pane-content">
  120. <div class="section-block">
  121. <div class="sec-title-bar">基础业务信息</div>
  122. <el-descriptions :column="3" border size="default" class="custom-desc">
  123. <el-descriptions-item label="系统单号">{{ order.orderNo }}</el-descriptions-item>
  124. <el-descriptions-item label="服务类型">
  125. {{ getTypeName(order.type) }}
  126. <el-tag size="small" v-if="order.type === 'transport'" style="margin-left:5px"
  127. effect="light">{{ getTransportModeName(order.transportType) }}</el-tag>
  128. </el-descriptions-item>
  129. <el-descriptions-item label="归属门店">{{ order.merchantName }}
  130. ({{ Number(order.platformId) === 1 ? '门店下单' : '平台代下单' }})</el-descriptions-item>
  131. <el-descriptions-item label="宠主信息">{{ order.userName }} / {{ order.contactPhone
  132. }}</el-descriptions-item>
  133. <el-descriptions-item label="服务费用" label-class-name="money-label">
  134. <span style="color:#f56c6c; font-weight:bold;">¥ {{ order.fulfillerFee }}</span>
  135. </el-descriptions-item>
  136. <el-descriptions-item label="预约时间">{{ getServiceTimeRange(order.serviceTime)
  137. }}</el-descriptions-item>
  138. <el-descriptions-item label="团购套餐">{{ order.groupBuyPackage || '未使用团购套餐'
  139. }}</el-descriptions-item>
  140. <el-descriptions-item label="创建时间">{{ order.createTime }}</el-descriptions-item>
  141. <el-descriptions-item label="订单备注" :span="3">
  142. {{ order.remark || '暂无备注' }}
  143. </el-descriptions-item>
  144. </el-descriptions>
  145. </div>
  146. <div v-if="order.type === 'transport'" class="section-block transport-split-block">
  147. <div class="sec-title-bar">接送任务详情</div>
  148. <div class="transport-one">
  149. <div class="t-row">
  150. <el-tag size="small" effect="plain" class="sub-badge">{{
  151. getTransportLabel(order.subOrderType) }}</el-tag>
  152. <span class="time">{{ order.serviceTime }}</span>
  153. </div>
  154. <div class="t-row">
  155. <span class="t-k">起点</span>
  156. <span class="t-v">{{ order.detail?.fromAddress || order.detail?.pickAddr || '--'
  157. }}</span>
  158. </div>
  159. <div class="t-row">
  160. <span class="t-k">终点</span>
  161. <span class="t-v">{{ order.detail?.toAddress || order.detail?.dropAddr ||
  162. order.toAddress ||
  163. '--' }}</span>
  164. </div>
  165. <div class="t-row sub">
  166. <span class="t-v">{{ order.contact || order.userName || '--' }} {{
  167. order.contactPhoneNumber
  168. || order.contactPhone || '--' }}</span>
  169. </div>
  170. </div>
  171. </div>
  172. <div v-if="['feeding', 'washing'].includes(order.type)" class="section-block">
  173. <div class="sec-title-bar">服务执行要求</div>
  174. <el-descriptions :column="2" border size="default" class="custom-desc">
  175. <el-descriptions-item label="服务地址" :span="2">{{ order.detail?.area || order.address
  176. }}</el-descriptions-item>
  177. </el-descriptions>
  178. </div>
  179. </div>
  180. </el-tab-pane>
  181. <!-- Tab 2: Fulfiller Info -->
  182. <el-tab-pane label="指派履约者" name="fulfiller">
  183. <div class="tab-pane-content">
  184. <div v-if="order.fulfillerName" class="fulfiller-card">
  185. <div class="f-left">
  186. <el-avatar :size="60" :src="order.fulfillerAvatar">{{ order.fulfillerName.charAt(0)
  187. }}</el-avatar>
  188. </div>
  189. <div class="f-right">
  190. <div class="f-row1">
  191. <span class="f-name">{{ order.fulfillerName }}</span>
  192. <el-tag size="small" type="primary" effect="plain" round>Lv1 普通</el-tag>
  193. </div>
  194. <div class="f-row2">
  195. <span>联系电话:{{ order.fulfillerPhone || '138****0000' }}</span>
  196. <span class="sep">|</span>
  197. <span>归属区域:{{ order.fulfillerStation || '朝阳一站' }}</span>
  198. </div>
  199. <div class="f-row3"
  200. style="margin-top: 8px; font-size: 13px; color: #606266; background: #f9fafe; padding: 8px; border-radius: 4px; display: flex; gap: 20px;">
  201. <span><span style="color:#909399;">指派时间:</span>{{ order.createTime }}</span>
  202. <span><span style="color:#909399;">接单时间:</span>{{ order.detail?.receiveTime ||
  203. order.serviceTime }}</span>
  204. </div>
  205. </div>
  206. </div>
  207. <div v-else class="empty-state">
  208. <el-result icon="info" title="暂无履约者" sub-title="该订单尚未指派履约人员"></el-result>
  209. </div>
  210. </div>
  211. </el-tab-pane>
  212. <!-- Tab 3: Service Progress -->
  213. <el-tab-pane label="服务进度" name="service">
  214. <div class="tab-pane-content">
  215. <div v-if="serviceProgressSteps.length === 0" class="empty-progress"
  216. style="padding:40px; text-align:center; color:#909399;">
  217. <el-result icon="info" title="待接单" sub-title="履约者接单后将在此记录服务进度"></el-result>
  218. </div>
  219. <el-timeline style="padding: 10px 20px;" v-else>
  220. <el-timeline-item v-for="(step, index) in serviceProgressSteps" :key="index"
  221. :timestamp="step.time" placement="top" :color="step.color" :icon="step.icon"
  222. size="large">
  223. <div class="progress-card">
  224. <h4 class="p-title">{{ step.title }}</h4>
  225. <p class="p-desc">{{ step.desc }}</p>
  226. <div class="p-media" v-if="step.media && step.media.length">
  227. <div v-for="(item, i) in step.media" :key="i" class="media-item">
  228. <el-image v-if="item.type === 'image'" :src="item.url"
  229. :preview-src-list="step.media.filter(m => m.type === 'image').map(m => m.url)"
  230. fit="cover" class="p-img" :preview-teleported="true" />
  231. <video v-else-if="item.type === 'video'" :src="item.url" controls
  232. class="p-video"></video>
  233. </div>
  234. </div>
  235. </div>
  236. </el-timeline-item>
  237. </el-timeline>
  238. </div>
  239. </el-tab-pane>
  240. <!-- Tab 4: Logs -->
  241. <el-tab-pane label="订单日志" name="logs">
  242. <div class="tab-pane-content">
  243. <div style="display: flex; justify-content: flex-end; margin-bottom: 15px;">
  244. <el-button type="primary" size="small" icon="Download"
  245. @click="handleExportLogs">导出日志Excel</el-button>
  246. </div>
  247. <el-timeline>
  248. <el-timeline-item v-for="(log, index) in (orderLogs || [])" :key="index" :timestamp="''"
  249. :type="'primary'" :icon="undefined" placement="top">
  250. <div class="log-card">
  251. <div class="l-tit">{{ log.title }}</div>
  252. <div class="l-txt">{{ log.content }}</div>
  253. </div>
  254. </el-timeline-item>
  255. </el-timeline>
  256. </div>
  257. </el-tab-pane>
  258. </el-tabs>
  259. </div>
  260. <PetDetailDrawer v-model:visible="petDetailVisible" :pet-id="order?.pet || order?.petId" />
  261. </div>
  262. </el-drawer>
  263. </template>
  264. <script setup>
  265. import { ref, computed, watch, getCurrentInstance } from 'vue'
  266. import { ElMessage } from 'element-plus'
  267. import { getPet } from '@/api/archieves/pet'
  268. import { getCustomer } from '@/api/archieves/customer'
  269. import { listSubOrderLog, exportSubOrderLog } from '@/api/order/subOrderLog'
  270. import PetDetailDrawer from '@/components/PetDetailDrawer/index.vue'
  271. const { proxy } = getCurrentInstance()
  272. const props = defineProps({
  273. visible: Boolean,
  274. order: Object
  275. })
  276. const emit = defineEmits(['update:visible', 'dispatch', 'cancel', 'command', 'care-summary'])
  277. const drawerVisible = computed({
  278. get: () => props.visible,
  279. set: (val) => emit('update:visible', val)
  280. })
  281. const orderDetail = ref(null)
  282. const order = computed(() => orderDetail.value || props.order)
  283. const loadSeq = ref(0)
  284. const orderLogs = ref([])
  285. const fulfillerLogs = ref([])
  286. const loadOrderLogs = async (order) => {
  287. const id = order?.id
  288. if (!id) {
  289. orderLogs.value = []
  290. fulfillerLogs.value = []
  291. return
  292. }
  293. try {
  294. const res = await listSubOrderLog({ orderId: id })
  295. const list = res?.data?.data || res?.data || []
  296. const arr = Array.isArray(list) ? list : []
  297. orderLogs.value = arr.filter(i => Number(i?.logType) === 0)
  298. fulfillerLogs.value = arr.filter(i => Number(i?.logType) === 1)
  299. } catch {
  300. orderLogs.value = []
  301. fulfillerLogs.value = []
  302. }
  303. }
  304. const loadPetAndCustomer = async (order) => {
  305. const seq = ++loadSeq.value
  306. const next = { ...(order || {}) }
  307. const petId = next?.pet || next?.petId
  308. if (petId) {
  309. try {
  310. const res = await getPet(petId)
  311. const pet = res?.data
  312. if (pet) {
  313. next.petName = pet.name ?? next.petName
  314. next.petAvatar = pet.avatarUrl ?? next.petAvatar
  315. next.petGender = pet.gender ?? next.petGender
  316. next.petAge = (pet.age !== undefined && pet.age !== null) ? `${pet.age}岁` : next.petAge
  317. next.petWeight = (pet.weight !== undefined && pet.weight !== null) ? `${pet.weight}kg` : next.petWeight
  318. next.petBreed = pet.breed ?? next.petBreed
  319. next.petSterilized = (pet.isSterilized !== undefined && pet.isSterilized !== null)
  320. ? (Number(pet.isSterilized) === 1)
  321. : next.petSterilized
  322. next.petVaccine = pet.vaccineStatus ?? next.petVaccine
  323. next.petCharacter = pet.personality ?? next.petCharacter
  324. next.petHealth = pet.healthStatus ?? next.petHealth
  325. }
  326. } catch {
  327. }
  328. }
  329. const customerId = next?.customer || next?.customerId
  330. if (customerId) {
  331. try {
  332. const res = await getCustomer(customerId)
  333. const customer = res?.data
  334. if (customer) {
  335. next.userName = customer.name ?? next.userName
  336. next.userAvatar = customer.avatarUrl ?? next.userAvatar
  337. next.contactPhone = customer.phone ?? next.contactPhone
  338. next.city = customer.areaName ?? next.city
  339. next.address = customer.address ?? next.address
  340. }
  341. } catch {
  342. }
  343. }
  344. if (seq !== loadSeq.value) return
  345. orderDetail.value = next
  346. }
  347. watch(() => props.order, (val) => {
  348. if (!val) {
  349. orderDetail.value = null
  350. orderLogs.value = []
  351. fulfillerLogs.value = []
  352. return
  353. }
  354. loadPetAndCustomer(val)
  355. loadOrderLogs(val)
  356. }, { immediate: true, deep: true })
  357. const petDetailVisible = ref(false)
  358. const activeDetailTab = ref('basic')
  359. const getStatusName = (status) => {
  360. const map = { 0: '待派单', 1: '待接单', 2: '服务中', 3: '待商家确认', 4: '已完成', 5: '已取消' }
  361. return map[status] || '未知'
  362. }
  363. const getStatusTag = (status) => {
  364. const map = { 0: 'danger', 1: 'warning', 2: 'primary', 3: 'warning', 4: 'success', 5: 'info' }
  365. return map[status] || 'info'
  366. }
  367. const getTypeName = (type) => {
  368. const map = { transport: '宠物接送', feeding: '上门喂遛', washing: '上门洗护' }
  369. return map[type]
  370. }
  371. const getTransportModeName = (type) => {
  372. const map = { round: '往返接送', pick: '单程接(到店)', drop: '单程送(回家)' }
  373. return map[type] || '接送服务'
  374. }
  375. const getTransportLabel = (t) => {
  376. if (t === 0 || t === '0') return '接'
  377. if (t === 1 || t === '1') return '送'
  378. if (t === 2 || t === '2') return '单程接'
  379. if (t === 3 || t === '3') return '单程送'
  380. return '接送'
  381. }
  382. const getServiceTimeRange = (timeStr) => {
  383. if (!timeStr) return '--'
  384. try {
  385. if (timeStr.length < 16) return timeStr
  386. let timePart = timeStr.substring(11, 16)
  387. let [hh, mm] = timePart.split(':').map(Number)
  388. let endH = hh + 2
  389. if (endH >= 24) endH -= 24
  390. let endHStr = endH.toString().padStart(2, '0')
  391. return `${timeStr}-${endHStr}:${mm.toString().padStart(2, '0')}`
  392. } catch (e) {
  393. return timeStr
  394. }
  395. }
  396. const currentOrderSteps = computed(() => {
  397. if (!props.order) return { active: 0, steps: [] }
  398. const steps = [
  399. { title: '商户下单', status: 'created', time: '' },
  400. { title: '运营派单', status: 'dispatched', time: '' },
  401. { title: '履约接单', status: 'accepted', time: '' },
  402. { title: '服务中', status: 'serving', time: '' },
  403. { title: '待商家确认', status: 'confirming', time: '' },
  404. { title: '已完成', status: 'completed', time: '' }
  405. ]
  406. const logs = orderLogs.value || []
  407. const status = props.order.status
  408. let active = 0
  409. const findTime = (keyword) => {
  410. const log = logs.find(l => l.title.includes(keyword) || l.content.includes(keyword))
  411. return log ? log.time : ''
  412. }
  413. steps[0].time = props.order.createTime || findTime('下单') || findTime('创建')
  414. if (steps[0].time) active = 1
  415. if ([0].includes(status)) {
  416. steps[1].time = findTime('派单') || steps[0].time
  417. } else {
  418. steps[1].time = findTime('派单') || ''
  419. }
  420. if ([1, 2, 3, 4].includes(status)) active = 2
  421. steps[2].time = findTime('接单')
  422. if ([1].includes(status)) {
  423. steps[2].title = '待履约者接单'
  424. } else if ([2, 3, 4].includes(status)) {
  425. steps[2].title = '履约者已接单'
  426. active = 3
  427. }
  428. steps[3].time = findTime('到达') || findTime('出发')
  429. if ([2].includes(status)) {
  430. steps[3].title = '服务进行中'
  431. } else if ([3, 4].includes(status)) {
  432. steps[3].title = '服务已完成'
  433. active = 4
  434. }
  435. steps[4].time = findTime('等待商家确认') || findTime('待验收')
  436. if ([3].includes(status)) {
  437. steps[4].title = '待商家确认'
  438. } else if ([4].includes(status)) {
  439. steps[4].title = '商家已确认'
  440. active = 5
  441. }
  442. if (status === 4) {
  443. steps[5].time = findTime('完成')
  444. active = 6
  445. }
  446. if (status === 5) {
  447. return {
  448. active: 1,
  449. steps: [
  450. { title: '商户下单', time: steps[0].time },
  451. { title: '已取消', time: findTime('取消') || '订单已取消' }
  452. ]
  453. }
  454. }
  455. return { active, steps }
  456. })
  457. const serviceProgressSteps = computed(() => {
  458. const list = fulfillerLogs.value || []
  459. return list.map((i) => {
  460. const media = (i?.photoUrls || []).map(url => {
  461. const isVideo = url.toLowerCase().match(/\.(mp4|mov|avi|wmv|flv|mkv)$/)
  462. return {
  463. type: isVideo ? 'video' : 'image',
  464. url
  465. }
  466. })
  467. return {
  468. title: i?.title || '--',
  469. time: i?.createTime || '',
  470. icon: undefined,
  471. color: '#ff9900',
  472. desc: i?.content || '',
  473. media: media
  474. }
  475. })
  476. })
  477. const handleExportLogs = () => {
  478. const id = order.value?.id
  479. if (!id) {
  480. ElMessage.warning('订单号缺失,无法导出')
  481. return
  482. }
  483. proxy?.download(
  484. `order/subOrderLog/export/${id}`,
  485. {},
  486. `OrderLogs_${order.value.orderNo}_${new Date().getTime()}.xlsx`
  487. )
  488. }
  489. </script>
  490. <style scoped>
  491. /* Detail Styles */
  492. .order-detail-drawer :deep(.el-drawer__body) {
  493. padding: 0 !important;
  494. }
  495. .detail-container {
  496. height: 100%;
  497. display: flex;
  498. flex-direction: column;
  499. background: #f5f7fa;
  500. }
  501. .detail-header {
  502. background: #fff;
  503. padding: 20px 24px;
  504. border-bottom: 1px solid #ebeef5;
  505. display: flex;
  506. justify-content: space-between;
  507. align-items: center;
  508. }
  509. .left-head {
  510. display: flex;
  511. align-items: center;
  512. gap: 12px;
  513. }
  514. .order-no {
  515. font-size: 20px;
  516. font-weight: bold;
  517. color: #303133;
  518. }
  519. .type-tag {
  520. font-weight: normal;
  521. }
  522. .detail-actions {
  523. display: flex;
  524. align-items: center;
  525. gap: 12px;
  526. }
  527. .detail-scroll-area {
  528. flex: 1;
  529. overflow-y: auto;
  530. padding: 20px 24px;
  531. }
  532. /* Progress */
  533. .progress-section {
  534. background: #fff;
  535. padding: 30px 20px 20px;
  536. border-radius: 8px;
  537. margin-bottom: 20px;
  538. box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  539. }
  540. .custom-steps :deep(.el-step__title) {
  541. font-size: 13px;
  542. }
  543. /* Top Info Row */
  544. .top-info-row {
  545. display: flex;
  546. gap: 20px;
  547. margin-bottom: 20px;
  548. align-items: stretch;
  549. }
  550. .info-section {
  551. flex: 1;
  552. background: #fff;
  553. border-radius: 8px;
  554. padding: 15px;
  555. box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  556. }
  557. .sec-header {
  558. display: flex;
  559. justify-content: space-between;
  560. align-items: center;
  561. margin-bottom: 15px;
  562. padding-bottom: 10px;
  563. border-bottom: 1px solid #f2f2f2;
  564. }
  565. .sec-header .label {
  566. font-weight: bold;
  567. font-size: 15px;
  568. color: #303133;
  569. border-left: 3px solid #409eff;
  570. padding-left: 8px;
  571. }
  572. /* Pet Section */
  573. .pet-basic-row {
  574. display: flex;
  575. gap: 15px;
  576. margin-bottom: 15px;
  577. align-items: center;
  578. }
  579. .pet-avatar-lg {
  580. border-radius: 8px;
  581. background: #ecf5ff;
  582. color: #409eff;
  583. font-size: 20px;
  584. font-weight: bold;
  585. }
  586. .pet-names {
  587. display: flex;
  588. flex-direction: column;
  589. gap: 6px;
  590. }
  591. .b-name {
  592. font-size: 18px;
  593. font-weight: bold;
  594. display: flex;
  595. align-items: center;
  596. gap: 6px;
  597. }
  598. .b-tags {
  599. display: flex;
  600. gap: 5px;
  601. }
  602. .pet-desc :deep(.el-descriptions__label) {
  603. width: 70px;
  604. }
  605. /* User Section */
  606. .u-row {
  607. display: flex;
  608. gap: 12px;
  609. align-items: center;
  610. margin-bottom: 12px;
  611. }
  612. .u-info .nm {
  613. font-weight: bold;
  614. font-size: 15px;
  615. color: #303133;
  616. display: flex;
  617. align-items: center;
  618. gap: 6px;
  619. }
  620. .u-info .ph {
  621. font-size: 13px;
  622. color: #909399;
  623. margin-top: 2px;
  624. }
  625. .addr-box {
  626. background: #fdf6ec;
  627. padding: 8px 10px;
  628. border-radius: 4px;
  629. margin-bottom: 10px;
  630. }
  631. .addr-label {
  632. font-size: 12px;
  633. color: #e6a23c;
  634. margin-bottom: 2px;
  635. font-weight: bold;
  636. }
  637. .addr-txt {
  638. font-size: 13px;
  639. color: #606266;
  640. line-height: 1.4;
  641. }
  642. /* Tabs */
  643. .detail-tabs {
  644. background: #fff;
  645. padding: 10px 20px;
  646. border-radius: 8px;
  647. box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  648. min-height: 400px;
  649. }
  650. .tab-pane-content {
  651. padding: 15px 0;
  652. }
  653. /* Fulfiller Card inside Tab */
  654. .fulfiller-card {
  655. display: flex;
  656. align-items: center;
  657. gap: 20px;
  658. padding: 20px;
  659. background: #fff;
  660. border: 1px solid #ebeef5;
  661. border-radius: 8px;
  662. }
  663. .f-right {
  664. flex: 1;
  665. display: flex;
  666. flex-direction: column;
  667. gap: 8px;
  668. }
  669. .f-row1 {
  670. display: flex;
  671. align-items: center;
  672. gap: 10px;
  673. }
  674. .f-name {
  675. font-size: 18px;
  676. font-weight: bold;
  677. color: #303133;
  678. }
  679. .f-row2 {
  680. font-size: 13px;
  681. color: #606266;
  682. display: flex;
  683. gap: 10px;
  684. }
  685. .sep {
  686. color: #e4e7ed;
  687. }
  688. .empty-state {
  689. padding: 40px 0;
  690. text-align: center;
  691. }
  692. /* Progress Card Styles */
  693. .progress-card {
  694. background: #f8fcfb;
  695. border-radius: 8px;
  696. padding: 12px;
  697. border: 1px solid #ebeef5;
  698. }
  699. .p-title {
  700. margin: 0 0 8px;
  701. font-size: 15px;
  702. font-weight: bold;
  703. color: #303133;
  704. }
  705. .p-desc {
  706. margin: 0 0 12px;
  707. color: #606266;
  708. font-size: 13px;
  709. line-height: 1.5;
  710. }
  711. .p-media {
  712. display: flex;
  713. gap: 8px;
  714. flex-wrap: wrap;
  715. }
  716. .p-video {
  717. width: 140px;
  718. height: 80px;
  719. border-radius: 4px;
  720. background: #000;
  721. }
  722. .p-img {
  723. width: 80px;
  724. height: 80px;
  725. border-radius: 4px;
  726. border: 1px solid #e4e7ed;
  727. cursor: pointer;
  728. }
  729. /* New Transport Split Styles */
  730. .transport-split-block {
  731. margin-top: 20px;
  732. }
  733. .transport-grid {
  734. display: flex;
  735. gap: 20px;
  736. }
  737. .transport-card {
  738. flex: 1;
  739. border: 1px solid #ebeef5;
  740. border-radius: 6px;
  741. overflow: hidden;
  742. background: #fff;
  743. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  744. }
  745. .transport-card .t-header {
  746. background: #f5f7fa;
  747. padding: 10px 15px;
  748. border-bottom: 1px solid #ebeef5;
  749. display: flex;
  750. justify-content: space-between;
  751. align-items: center;
  752. }
  753. .transport-card .t-header .time {
  754. font-size: 13px;
  755. font-weight: bold;
  756. color: #f56c6c;
  757. }
  758. .transport-card .t-body {
  759. padding: 15px;
  760. display: flex;
  761. flex-direction: column;
  762. gap: 10px;
  763. }
  764. .transport-card .row {
  765. display: flex;
  766. align-items: flex-start;
  767. gap: 8px;
  768. font-size: 14px;
  769. color: #303133;
  770. line-height: 1.4;
  771. }
  772. .transport-card .row.sub {
  773. color: #909399;
  774. font-size: 13px;
  775. margin-top: 4px;
  776. }
  777. .transport-card .row .el-icon {
  778. margin-top: 3px;
  779. }
  780. .transport-one {
  781. border: 1px solid #ebeef5;
  782. border-radius: 6px;
  783. background: #fff;
  784. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  785. padding: 14px 16px;
  786. display: flex;
  787. flex-direction: column;
  788. gap: 10px;
  789. }
  790. .transport-one .t-row {
  791. display: flex;
  792. align-items: baseline;
  793. gap: 10px;
  794. }
  795. .transport-one .t-row .time {
  796. font-size: 13px;
  797. font-weight: bold;
  798. color: #f56c6c;
  799. }
  800. .transport-one .t-k {
  801. width: 40px;
  802. color: #909399;
  803. font-size: 13px;
  804. }
  805. .transport-one .t-v {
  806. color: #303133;
  807. font-size: 14px;
  808. line-height: 1.4;
  809. }
  810. .transport-one .t-row.sub .t-v {
  811. color: #909399;
  812. font-size: 13px;
  813. }
  814. /* Logs */
  815. .log-card {
  816. background: #f4f4f5;
  817. padding: 10px 15px;
  818. border-radius: 4px;
  819. position: relative;
  820. top: -5px;
  821. width: 100%;
  822. }
  823. .l-tit {
  824. font-weight: bold;
  825. font-size: 14px;
  826. margin-bottom: 4px;
  827. color: #303133;
  828. }
  829. .l-txt {
  830. font-size: 13px;
  831. color: #606266;
  832. line-height: 1.5;
  833. }
  834. </style>