Commit fcc3ed97 by wangzhihui

feat: 调整工单详情页面布局和状态显示逻辑

- 将工单号从头部左侧移动到右侧,优化页面结构布局
- 根据工单状态条件渲染检测完成时间和更新时间,未完成状态下显示"-"
- 调整CSS样式:修正overflow属性设置,优化页面滚动和布局
- 重新排列头部元素的样式属性顺序,统一间距和对齐方式
- 修复安全区域底部填充问题,确保页面内容正确显
1 parent 3b65d242
Pipeline #177 for fcc3ed97 failed in 0 seconds
...@@ -122,9 +122,11 @@ onMounted(() => { ...@@ -122,9 +122,11 @@ onMounted(() => {
<van-tag class="head-tag" :style="{ background: pageStatusTag.bg, color: pageStatusTag.color }"> <van-tag class="head-tag" :style="{ background: pageStatusTag.bg, color: pageStatusTag.color }">
{{ pageStatusTag.text }} {{ pageStatusTag.text }}
</van-tag> </van-tag>
工单号 <span class="head-order">{{ orderNo }}</span>
</div> </div>
<div class="head-right"> <div class="head-right">
工单号 <span class="head-order">{{ orderNo }}</span>
<WorkOrderStatusTags :audit-status="auditStatus" <WorkOrderStatusTags :audit-status="auditStatus"
only-audit only-audit
:status="status" /> :status="status" />
...@@ -208,7 +210,7 @@ onMounted(() => { ...@@ -208,7 +210,7 @@ onMounted(() => {
检测完成时间 检测完成时间
</div> </div>
<div class="tl-value"> <div class="tl-value">
{{ fmtTime(detail?.inspectionCompletedTime) }} {{ status == 3 ? fmtTime(detail?.inspectionCompletedTime) : '-' }}
</div> </div>
</div> </div>
<div class="tl-line"></div> <div class="tl-line"></div>
...@@ -222,7 +224,7 @@ onMounted(() => { ...@@ -222,7 +224,7 @@ onMounted(() => {
检测更新时间 检测更新时间
</div> </div>
<div class="tl-value"> <div class="tl-value">
{{ fmtTime(detail?.updateTime) }} {{ status == 2 || status == 3 ? fmtTime(detail?.updateTime) : '-' }}
</div> </div>
</div> </div>
<div class="tl-line"></div> <div class="tl-line"></div>
...@@ -289,8 +291,8 @@ onMounted(() => { ...@@ -289,8 +291,8 @@ onMounted(() => {
height: 100vh; height: 100vh;
height: 100dvh; height: 100dvh;
max-height: 100dvh; max-height: 100dvh;
overflow: hidden;
padding: 6px 0; padding: 6px 0;
overflow: hidden;
background: #f2f3f7; background: #f2f3f7;
.header-top { .header-top {
...@@ -307,8 +309,7 @@ onMounted(() => { ...@@ -307,8 +309,7 @@ onMounted(() => {
.wo-detail-main { .wo-detail-main {
flex: 1; flex: 1;
min-height: 0; min-height: 0;
overflow-x: hidden; overflow: hidden auto;
overflow-y: auto;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
&--with-foot { &--with-foot {
...@@ -318,16 +319,15 @@ onMounted(() => { ...@@ -318,16 +319,15 @@ onMounted(() => {
.page-head { .page-head {
display: flex; display: flex;
justify-content: space-between;
align-items: center;
gap: 8px; gap: 8px;
margin-left: 12px; align-items: center;
background: #f0f2f5; justify-content: space-between;
margin:0 12px;
background: #f0f2f5
} }
.head-left { .head-left {
display: flex; display: flex;
gap: 8px;
align-items: center; align-items: center;
} }
...@@ -344,12 +344,12 @@ onMounted(() => { ...@@ -344,12 +344,12 @@ onMounted(() => {
.head-right { .head-right {
display: flex; display: flex;
flex-wrap: wrap;
gap: 6px; gap: 6px;
align-items: center; align-items: center;
flex-wrap: wrap; margin-right:12px;
font-size: 12px; font-size: 12px;
color: #999; color: #999;
margin-right:12px;
} }
.head-order { .head-order {
...@@ -574,9 +574,9 @@ onMounted(() => { ...@@ -574,9 +574,9 @@ onMounted(() => {
box-sizing: border-box; box-sizing: border-box;
width: 100%; width: 100%;
max-width: 430px; max-width: 430px;
margin: 0 auto;
padding: 12px; padding: 12px;
padding-bottom: calc(12px + env(safe-area-inset-bottom)); padding-bottom: calc(12px + env(safe-area-inset-bottom));
margin: 0 auto;
background: #fff; background: #fff;
.edit-btn{ .edit-btn{
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!