|
|
@ -109,6 +109,19 @@ |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column v-if="scheduleData.packingListFlag === 'Y'" label="Packing List" align="center" class-name="packing-list-column"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<div class="remark-wrapper"> |
|
|
|
|
|
<el-input |
|
|
|
|
|
type="textarea" |
|
|
|
|
|
v-model="scope.row.packingList" |
|
|
|
|
|
resize="none" |
|
|
|
|
|
:autosize="false" |
|
|
|
|
|
class="remark-textarea"> |
|
|
|
|
|
</el-input> |
|
|
|
|
|
</div> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
<el-table-column label="备注" align="center" class-name="remark-column"> |
|
|
<el-table-column label="备注" align="center" class-name="remark-column"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<div class="remark-wrapper"> |
|
|
<div class="remark-wrapper"> |
|
|
@ -652,6 +665,7 @@ export default { |
|
|
defectQty: Number(item.defectQty) || 0, |
|
|
defectQty: Number(item.defectQty) || 0, |
|
|
yieldRate: this.calculateYieldRate(Number(item.goodQty) || 0, Number(item.defectQty) || 0), |
|
|
yieldRate: this.calculateYieldRate(Number(item.goodQty) || 0, Number(item.defectQty) || 0), |
|
|
totalQty: (Number(item.goodQty) || 0) + (Number(item.defectQty) || 0), |
|
|
totalQty: (Number(item.goodQty) || 0) + (Number(item.defectQty) || 0), |
|
|
|
|
|
packingList: item.packingList || '', |
|
|
remark: item.remark || '' |
|
|
remark: item.remark || '' |
|
|
})); |
|
|
})); |
|
|
|
|
|
|
|
|
@ -693,6 +707,7 @@ export default { |
|
|
defectQty: 0, |
|
|
defectQty: 0, |
|
|
yieldRate: '0.00%', |
|
|
yieldRate: '0.00%', |
|
|
totalQty: 0, |
|
|
totalQty: 0, |
|
|
|
|
|
packingList: '', |
|
|
remark: '' |
|
|
remark: '' |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
@ -812,6 +827,7 @@ export default { |
|
|
surfaceLossQty: row.surfaceLossQty || 0, |
|
|
surfaceLossQty: row.surfaceLossQty || 0, |
|
|
poorPerformanceQty: row.poorPerformanceQty || 0, |
|
|
poorPerformanceQty: row.poorPerformanceQty || 0, |
|
|
defectQty: row.defectQty || 0, |
|
|
defectQty: row.defectQty || 0, |
|
|
|
|
|
packingList: row.packingList || '', |
|
|
remark: row.remark || '' |
|
|
remark: row.remark || '' |
|
|
})) |
|
|
})) |
|
|
}; |
|
|
}; |
|
|
@ -897,6 +913,7 @@ export default { |
|
|
|
|
|
|
|
|
// 获取当前卷的备注 |
|
|
// 获取当前卷的备注 |
|
|
let rollRemark = ''; |
|
|
let rollRemark = ''; |
|
|
|
|
|
let rollPackingList = ''; |
|
|
|
|
|
|
|
|
// 收集当前卷的行数据 |
|
|
// 收集当前卷的行数据 |
|
|
const currentRollRowDataList = []; |
|
|
const currentRollRowDataList = []; |
|
|
@ -908,6 +925,7 @@ export default { |
|
|
|
|
|
|
|
|
if (i === 0) { |
|
|
if (i === 0) { |
|
|
rollRemark = row.remark || ''; |
|
|
rollRemark = row.remark || ''; |
|
|
|
|
|
rollPackingList = row.packingList || ''; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
rollRows.push({ |
|
|
rollRows.push({ |
|
|
@ -917,6 +935,7 @@ export default { |
|
|
poorPerformanceQty: row.poorPerformanceQty || 0, |
|
|
poorPerformanceQty: row.poorPerformanceQty || 0, |
|
|
defectQty: row.defectQty || 0, |
|
|
defectQty: row.defectQty || 0, |
|
|
totalQty: row.totalQty || 0, |
|
|
totalQty: row.totalQty || 0, |
|
|
|
|
|
packingList: row.packingList || '', |
|
|
remark: row.remark || '' |
|
|
remark: row.remark || '' |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
@ -927,6 +946,7 @@ export default { |
|
|
surfaceLossQty: row.surfaceLossQty || 0, |
|
|
surfaceLossQty: row.surfaceLossQty || 0, |
|
|
poorPerformanceQty: row.poorPerformanceQty || 0, |
|
|
poorPerformanceQty: row.poorPerformanceQty || 0, |
|
|
defectQty: row.defectQty || 0, |
|
|
defectQty: row.defectQty || 0, |
|
|
|
|
|
packingList: row.packingList || '', |
|
|
remark: row.remark || '' |
|
|
remark: row.remark || '' |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
@ -938,6 +958,7 @@ export default { |
|
|
rollNums: 1, |
|
|
rollNums: 1, |
|
|
totalDefectQty: totalDefectQty, |
|
|
totalDefectQty: totalDefectQty, |
|
|
rollRows: rollRows, |
|
|
rollRows: rollRows, |
|
|
|
|
|
packingList: rollPackingList, |
|
|
remark: rollRemark |
|
|
remark: rollRemark |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
@ -1021,8 +1042,8 @@ export default { |
|
|
|
|
|
|
|
|
// 表格合并行方法(备注列根据卷数合并) |
|
|
// 表格合并行方法(备注列根据卷数合并) |
|
|
objectSpanMethod({ row, column, rowIndex, columnIndex }) { |
|
|
objectSpanMethod({ row, column, rowIndex, columnIndex }) { |
|
|
// 只对备注列进行合并(最后一列) |
|
|
|
|
|
if (column.label === '备注') { |
|
|
|
|
|
|
|
|
// 对备注和Packing List列进行按卷合并 |
|
|
|
|
|
if (column.label === '备注' || column.label === 'Packing List') { |
|
|
// 计算每卷的排数 |
|
|
// 计算每卷的排数 |
|
|
const rowsPerRoll = Math.floor(this.pageData.rowCount / this.pageData.rollCount) |
|
|
const rowsPerRoll = Math.floor(this.pageData.rowCount / this.pageData.rollCount) |
|
|
const remainingRows = this.pageData.rowCount % this.pageData.rollCount |
|
|
const remainingRows = this.pageData.rowCount % this.pageData.rollCount |
|
|
@ -1405,6 +1426,7 @@ export default { |
|
|
|
|
|
|
|
|
// 获取当前卷的备注(第一排的备注) |
|
|
// 获取当前卷的备注(第一排的备注) |
|
|
let rollRemark = '' |
|
|
let rollRemark = '' |
|
|
|
|
|
let rollPackingList = '' |
|
|
|
|
|
|
|
|
for (let i = 0; i < currentRollRows; i++) { |
|
|
for (let i = 0; i < currentRollRows; i++) { |
|
|
const row = this.rowDataList[currentRowIndex + i] |
|
|
const row = this.rowDataList[currentRowIndex + i] |
|
|
@ -1414,6 +1436,7 @@ export default { |
|
|
// 第一排的备注作为整卷的备注 |
|
|
// 第一排的备注作为整卷的备注 |
|
|
if (i === 0) { |
|
|
if (i === 0) { |
|
|
rollRemark = row.remark || '' |
|
|
rollRemark = row.remark || '' |
|
|
|
|
|
rollPackingList = row.packingList || '' |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
rollRows.push({ |
|
|
rollRows.push({ |
|
|
@ -1423,6 +1446,7 @@ export default { |
|
|
poorPerformanceQty: row.poorPerformanceQty || 0, |
|
|
poorPerformanceQty: row.poorPerformanceQty || 0, |
|
|
defectQty: row.defectQty || 0, |
|
|
defectQty: row.defectQty || 0, |
|
|
totalQty: row.totalQty || 0, |
|
|
totalQty: row.totalQty || 0, |
|
|
|
|
|
packingList: row.packingList || '', |
|
|
remark: row.remark || '' |
|
|
remark: row.remark || '' |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
@ -1434,6 +1458,7 @@ export default { |
|
|
rollNums: 1, // 固定为1 |
|
|
rollNums: 1, // 固定为1 |
|
|
defectQty: totalDefectQty, // 该卷的不良总数 |
|
|
defectQty: totalDefectQty, // 该卷的不良总数 |
|
|
rollRows: rollRows, // 该卷包含的排数据 |
|
|
rollRows: rollRows, // 该卷包含的排数据 |
|
|
|
|
|
packingList: rollPackingList, // 该卷的Packing List |
|
|
remark: rollRemark // 该卷的备注 |
|
|
remark: rollRemark // 该卷的备注 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -1746,12 +1771,16 @@ export default { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/* 备注列单元格样式 - 使用绝对定位填满 */ |
|
|
/* 备注列单元格样式 - 使用绝对定位填满 */ |
|
|
.customer-dialog >>> .el-table td:last-child { |
|
|
|
|
|
|
|
|
.customer-dialog >>> .el-table td:last-child, |
|
|
|
|
|
.customer-dialog >>> .el-table td.remark-column, |
|
|
|
|
|
.customer-dialog >>> .el-table td.packing-list-column { |
|
|
padding: 0 !important; |
|
|
padding: 0 !important; |
|
|
position: relative !important; |
|
|
position: relative !important; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.customer-dialog /deep/ .el-table td:last-child { |
|
|
|
|
|
|
|
|
.customer-dialog /deep/ .el-table td:last-child, |
|
|
|
|
|
.customer-dialog /deep/ .el-table td.remark-column, |
|
|
|
|
|
.customer-dialog /deep/ .el-table td.packing-list-column { |
|
|
padding: 0 !important; |
|
|
padding: 0 !important; |
|
|
position: relative !important; |
|
|
position: relative !important; |
|
|
} |
|
|
} |
|
|
@ -1827,7 +1856,9 @@ export default { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/* 备注列样式 - 只针对创建分卷对话框 */ |
|
|
/* 备注列样式 - 只针对创建分卷对话框 */ |
|
|
.customer-css .el-table td:last-child { |
|
|
|
|
|
|
|
|
.customer-css .el-table td:last-child, |
|
|
|
|
|
.customer-css .el-table td.remark-column, |
|
|
|
|
|
.customer-css .el-table td.packing-list-column { |
|
|
padding: 0 !important; |
|
|
padding: 0 !important; |
|
|
position: relative !important; |
|
|
position: relative !important; |
|
|
} |
|
|
} |
|
|
|