feat(wms):优化代码的排版

wms
YunaiV 2026-05-14 22:53:53 +08:00
parent ae54f938cf
commit e0352af8b0
7 changed files with 62 additions and 60 deletions

View File

@ -57,17 +57,17 @@
<el-table-column label="商品信息" min-width="200">
<template #default="{ row }">
<div>{{ row.itemName || '-' }}</div>
<div v-if="row.itemCode" class="text-12px text-gray-500"
>商品编号{{ row.itemCode }}</div
>
<div v-if="row.itemCode" class="text-12px text-gray-500">
商品编号{{ row.itemCode }}
</div>
</template>
</el-table-column>
<el-table-column label="规格信息" min-width="200">
<template #default="{ row }">
<div>{{ row.skuName || '-' }}</div>
<div v-if="row.skuCode" class="text-12px text-gray-500"
>规格编号{{ row.skuCode }}</div
>
<div v-if="row.skuCode" class="text-12px text-gray-500">
规格编号{{ row.skuCode }}
</div>
</template>
</el-table-column>
<el-table-column align="right" label="账面数量" prop="quantity" width="120">

View File

@ -74,17 +74,17 @@
<el-table-column label="商品信息" min-width="210">
<template #default="{ row }">
<div>{{ row.itemName || '-' }}</div>
<div v-if="row.itemCode" class="text-12px text-gray-500"
>商品编号{{ row.itemCode }}</div
>
<div v-if="row.itemCode" class="text-12px text-gray-500">
商品编号{{ row.itemCode }}
</div>
</template>
</el-table-column>
<el-table-column label="规格信息" min-width="210">
<template #default="{ row }">
<div>{{ row.skuName || '-' }}</div>
<div v-if="row.skuCode" class="text-12px text-gray-500"
>规格编号{{ row.skuCode }}</div
>
<div v-if="row.skuCode" class="text-12px text-gray-500">
规格编号{{ row.skuCode }}
</div>
</template>
</el-table-column>
<el-table-column align="right" label="账面库存" prop="quantity" width="120">
@ -183,8 +183,9 @@
:disabled="formLoading"
type="primary"
@click="submitForm"
>保存</el-button
>
保存
</el-button>
<el-button @click="dialogVisible = false"> </el-button>
</div>
</div>

View File

@ -32,13 +32,13 @@
<th class="border border-solid border-#dcdfe6 bg-#f5f7fa p-8px text-left">账面库存</th>
<th class="border border-solid border-#dcdfe6 bg-#f5f7fa p-8px text-left">单价()</th>
<th class="border border-solid border-#dcdfe6 bg-#f5f7fa p-8px text-left">实际库存</th>
<th class="border border-solid border-#dcdfe6 bg-#f5f7fa p-8px text-left"
>实际金额()</th
>
<th class="border border-solid border-#dcdfe6 bg-#f5f7fa p-8px text-left">
实际金额()
</th>
<th class="border border-solid border-#dcdfe6 bg-#f5f7fa p-8px text-left">盈亏数</th>
<th class="border border-solid border-#dcdfe6 bg-#f5f7fa p-8px text-left"
>实际盈亏金额()</th
>
<th class="border border-solid border-#dcdfe6 bg-#f5f7fa p-8px text-left">
实际盈亏金额()
</th>
</tr>
</thead>
<tbody>

View File

@ -203,17 +203,17 @@
<el-table-column label="商品信息" min-width="220">
<template #default="{ row: detail }">
<div>{{ detail.itemName || '-' }}</div>
<div v-if="detail.itemCode" class="text-12px text-gray-500"
>商品编号{{ detail.itemCode }}</div
>
<div v-if="detail.itemCode" class="text-12px text-gray-500">
商品编号{{ detail.itemCode }}
</div>
</template>
</el-table-column>
<el-table-column label="规格信息" min-width="220">
<template #default="{ row: detail }">
<div>{{ detail.skuName || '-' }}</div>
<div v-if="detail.skuCode" class="text-12px text-gray-500"
>规格编号{{ detail.skuCode }}</div
>
<div v-if="detail.skuCode" class="text-12px text-gray-500">
规格编号{{ detail.skuCode }}
</div>
</template>
</el-table-column>
<el-table-column align="right" label="账面数量" width="120">
@ -301,14 +301,14 @@
</el-table-column>
<el-table-column v-if="isTableColumnVisible('operateInfo')" label="操作信息" min-width="280">
<template #default="{ row }">
<div
>创建{{ formatNullableDate(row.createTime) }} /
{{ row.creatorName || row.creator || '-' }}</div
>
<div
>更新{{ formatNullableDate(row.updateTime) }} /
{{ row.updaterName || row.updater || '-' }}</div
>
<div>
创建{{ formatNullableDate(row.createTime) }} /
{{ row.creatorName || row.creator || '-' }}
</div>
<div>
更新{{ formatNullableDate(row.updateTime) }} /
{{ row.updaterName || row.updater || '-' }}
</div>
</template>
</el-table-column>
<el-table-column

View File

@ -50,17 +50,17 @@
<el-table-column label="商品信息" min-width="200">
<template #default="{ row }">
<div>{{ row.itemName || '-' }}</div>
<div v-if="row.itemCode" class="text-12px text-gray-500"
>商品编号{{ row.itemCode }}</div
>
<div v-if="row.itemCode" class="text-12px text-gray-500">
商品编号{{ row.itemCode }}
</div>
</template>
</el-table-column>
<el-table-column label="规格信息" min-width="200">
<template #default="{ row }">
<div>{{ row.skuName || '-' }}</div>
<div v-if="row.skuCode" class="text-12px text-gray-500"
>规格编号{{ row.skuCode }}</div
>
<div v-if="row.skuCode" class="text-12px text-gray-500">
规格编号{{ row.skuCode }}
</div>
</template>
</el-table-column>
<el-table-column align="right" label="数量" prop="quantity" width="120">

View File

@ -84,17 +84,17 @@
<el-table-column label="商品信息" min-width="210">
<template #default="{ row }">
<div>{{ row.itemName || '-' }}</div>
<div v-if="row.itemCode" class="text-12px text-gray-500"
>商品编号{{ row.itemCode }}</div
>
<div v-if="row.itemCode" class="text-12px text-gray-500">
商品编号{{ row.itemCode }}
</div>
</template>
</el-table-column>
<el-table-column label="规格信息" min-width="210">
<template #default="{ row }">
<div>{{ row.skuName || '-' }}</div>
<div v-if="row.skuCode" class="text-12px text-gray-500"
>规格编号{{ row.skuCode }}</div
>
<div v-if="row.skuCode" class="text-12px text-gray-500">
规格编号{{ row.skuCode }}
</div>
</template>
</el-table-column>
<el-table-column align="right" label="可用库存" width="120">
@ -179,8 +179,9 @@
:disabled="formLoading"
type="primary"
@click="submitForm"
>保存</el-button
>
保存
</el-button>
<el-button @click="dialogVisible = false"> </el-button>
</div>
</div>

View File

@ -187,17 +187,17 @@
<el-table-column label="商品信息" min-width="220">
<template #default="{ row: detail }">
<div>{{ detail.itemName || '-' }}</div>
<div v-if="detail.itemCode" class="text-12px text-gray-500"
>商品编号{{ detail.itemCode }}</div
>
<div v-if="detail.itemCode" class="text-12px text-gray-500">
商品编号{{ detail.itemCode }}
</div>
</template>
</el-table-column>
<el-table-column label="规格信息" min-width="220">
<template #default="{ row: detail }">
<div>{{ detail.skuName || '-' }}</div>
<div v-if="detail.skuCode" class="text-12px text-gray-500"
>规格编号{{ detail.skuCode }}</div
>
<div v-if="detail.skuCode" class="text-12px text-gray-500">
规格编号{{ detail.skuCode }}
</div>
</template>
</el-table-column>
<el-table-column align="right" label="移库数量" width="120">
@ -267,14 +267,14 @@
</el-table-column>
<el-table-column v-if="isTableColumnVisible('operateInfo')" label="操作信息" min-width="280">
<template #default="{ row }">
<div
>创建{{ formatNullableDate(row.createTime) }} /
{{ row.creatorName || row.creator || '-' }}</div
>
<div
>更新{{ formatNullableDate(row.updateTime) }} /
{{ row.updaterName || row.updater || '-' }}</div
>
<div>
创建{{ formatNullableDate(row.createTime) }} /
{{ row.creatorName || row.creator || '-' }}
</div>
<div>
更新{{ formatNullableDate(row.updateTime) }} /
{{ row.updaterName || row.updater || '-' }}
</div>
</template>
</el-table-column>
<el-table-column