Commit fcc3ed97 by wangzhihui

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

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