style(ui): 调整对话框和表格样式

- 增加对话框主体的最大高度
- 修改表格高度属性为固定值
- 合并重量列并调整格式
- 优化入场卷号列的宽度
- 格式化更新时间显示
This commit is contained in:
砂糖
2025-12-05 15:47:05 +08:00
parent 1656f3da6a
commit fba896b6e1
2 changed files with 14 additions and 6 deletions

View File

@@ -932,7 +932,7 @@ body {
// 对话框主体
.el-dialog__body {
padding: $--spacing-lg;
max-height: 60vh;
max-height: 80vh;
overflow-y: auto;
}

View File

@@ -28,7 +28,7 @@
<!-- 钻取表格 -->
<el-table
max-height="400"
height="400"
v-loading="loading"
:data="list"
border
@@ -39,7 +39,7 @@
<el-table-column prop="warehouseName" label="库位" align="center" min-width="150"></el-table-column>
<el-table-column label="实际库区" align="center" prop="actualWarehouseName" v-if="!hideWarehouseQuery"/>
<el-table-column prop="currentCoilNo" label="当前卷号" align="center" min-width="120"></el-table-column>
<el-table-column prop="enterCoilNo" label="入场卷号" align="center" min-width="180"></el-table-column>
<el-table-column prop="enterCoilNo" label="入场卷号" align="center"></el-table-column>
<el-table-column label="物料类型" align="center" prop="itemType">
<template slot-scope="scope">
{{ scope.row.itemType == 'product' ? '成品' : '原料' }}
@@ -51,9 +51,17 @@
<RawMaterialInfo v-else-if="scope.row.itemType === 'raw_material'" :material="scope.row.rawMaterial" />
</template>
</el-table-column>
<el-table-column label="更新时间" align="center" prop="updateTime" />
<el-table-column prop="grossWeight" label="毛重(kg)" align="center" min-width="100"></el-table-column>
<el-table-column prop="netWeight" label="净重(kg)" align="center" min-width="100"></el-table-column>
<el-table-column label="更新时间" align="center" prop="updateTime">
<template slot-scope="scope">
{{ parseTime(scope.row.updateTime, '{y}-{m}-{d}') }}
</template>
</el-table-column>
<el-table-column prop="grossWeight" label="重量(t)" align="center" min-width="100">
<template slot-scope="scope">
{{ scope.row.netWeight }} / {{ scope.row.grossWeight }}
</template>
</el-table-column>
<!-- <el-table-column prop="netWeight" label="净重(kg)" align="center" min-width="100"></el-table-column> -->
</el-table>
</el-skeleton>