|
@@ -174,6 +174,12 @@
|
|
|
prop="quantity"
|
|
|
width="100"
|
|
|
/>
|
|
|
+ <el-table-column
|
|
|
+ label="是否有次品"
|
|
|
+ prop="isReject"
|
|
|
+ width="100"
|
|
|
+ :formatter="(row) => (row.isReject ? '是' : '否')"
|
|
|
+ />
|
|
|
</el-table>
|
|
|
</div>
|
|
|
<template #reference>
|
|
@@ -214,7 +220,46 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="qualityQuantity" label="已质检数量" />
|
|
|
+ <el-table-column prop="qualityQuantity" label="已质检数量">
|
|
|
+ <template #default="{ row }">
|
|
|
+ <div>
|
|
|
+ <el-popover
|
|
|
+ placement="bottom-start"
|
|
|
+ title="质检记录"
|
|
|
+ :width="500"
|
|
|
+ trigger="hover"
|
|
|
+ >
|
|
|
+ <div default>
|
|
|
+ <el-table :data="row.qualityDetailsList">
|
|
|
+ <el-table-column
|
|
|
+ prop="createTime"
|
|
|
+ label="质检时间"
|
|
|
+ width="155"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ prop="qualifiedCount"
|
|
|
+ label="合格数量"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ prop="noQualifiedCount"
|
|
|
+ label="不合格数量"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ prop="createUserName"
|
|
|
+ label="质检人"
|
|
|
+ width="120"
|
|
|
+ />
|
|
|
+ </el-table>
|
|
|
+ </div>
|
|
|
+ <template #reference>
|
|
|
+ <div style="cursor: pointer; color: #0084ff">
|
|
|
+ {{ row.qualityQuantity }}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-popover>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column prop="noQualifiedCount" label="不合格数量" />
|
|
|
</el-table>
|
|
|
</div>
|
|
@@ -348,6 +393,13 @@ const config = computed(() => {
|
|
|
},
|
|
|
{
|
|
|
attrs: {
|
|
|
+ label: "物流单号",
|
|
|
+ prop: "logisticsCode",
|
|
|
+ width: 160,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ attrs: {
|
|
|
label: "异常说明",
|
|
|
prop: "title",
|
|
|
},
|
|
@@ -402,7 +454,7 @@ const config = computed(() => {
|
|
|
{
|
|
|
attrs: {
|
|
|
label: "操作",
|
|
|
- width: "200",
|
|
|
+ width: "160",
|
|
|
align: "right",
|
|
|
},
|
|
|
// 渲染 el-button,一般用在最后一列。
|