|
|
@ -141,6 +141,14 @@ |
|
|
</download-excel> |
|
|
</download-excel> |
|
|
<el-button type="primary" icon="el-icon-printer" @click="printLabelModel()">打印</el-button> |
|
|
<el-button type="primary" icon="el-icon-printer" @click="printLabelModel()">打印</el-button> |
|
|
<el-button type="warning" icon="el-icon-edit" @click="openAttributeChangeDialog()">属性变动</el-button> |
|
|
<el-button type="warning" icon="el-icon-edit" @click="openAttributeChangeDialog()">属性变动</el-button> |
|
|
|
|
|
<div class="summary-bar"> |
|
|
|
|
|
<span class="summary-item-inline"><span class="summary-label-inline">卷数量:</span><span class="summary-value-inline">{{ summaryData.rollQty }}</span></span> |
|
|
|
|
|
<span class="summary-item-inline"><span class="summary-label-inline">良品数:</span><span class="summary-value-inline">{{ summaryData.goodQty }}</span></span> |
|
|
|
|
|
<span class="summary-item-inline"><span class="summary-label-inline">面损:</span><span class="summary-value-inline">{{ summaryData.surfaceLossQty }}</span></span> |
|
|
|
|
|
<span class="summary-item-inline"><span class="summary-label-inline">性能不良:</span><span class="summary-value-inline">{{ summaryData.poorPerformanceQty }}</span></span> |
|
|
|
|
|
<span class="summary-item-inline"><span class="summary-label-inline">不良数:</span><span class="summary-value-inline">{{ summaryData.defectQty }}</span></span> |
|
|
|
|
|
<span class="summary-item-inline"><span class="summary-label-inline">总数:</span><span class="summary-value-inline">{{ summaryData.totalQty }}</span></span> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
@ -539,6 +547,14 @@ import labelPrintTemplates from '@/mixins/labelPrintTemplates.js'; |
|
|
pageIndex: 1, |
|
|
pageIndex: 1, |
|
|
pageSize: 50, |
|
|
pageSize: 50, |
|
|
totalPage: 0, |
|
|
totalPage: 0, |
|
|
|
|
|
summaryData: { |
|
|
|
|
|
rollQty: 0, |
|
|
|
|
|
goodQty: 0, |
|
|
|
|
|
surfaceLossQty: 0, |
|
|
|
|
|
poorPerformanceQty: 0, |
|
|
|
|
|
defectQty: 0, |
|
|
|
|
|
totalQty: 0 |
|
|
|
|
|
}, |
|
|
// 标签打印相关 |
|
|
// 标签打印相关 |
|
|
printDialogVisible: false, |
|
|
printDialogVisible: false, |
|
|
printDialogData: { |
|
|
printDialogData: { |
|
|
@ -1091,6 +1107,16 @@ import labelPrintTemplates from '@/mixins/labelPrintTemplates.js'; |
|
|
searchSfdcRollsReport(params).then(({data}) => { |
|
|
searchSfdcRollsReport(params).then(({data}) => { |
|
|
this.dataList = data.rows || []; |
|
|
this.dataList = data.rows || []; |
|
|
this.totalPage = data.total || 0; |
|
|
this.totalPage = data.total || 0; |
|
|
|
|
|
if (data.summary) { |
|
|
|
|
|
this.summaryData = { |
|
|
|
|
|
rollQty: data.summary.rollQty || 0, |
|
|
|
|
|
goodQty: data.summary.goodQty || 0, |
|
|
|
|
|
surfaceLossQty: data.summary.surfaceLossQty || 0, |
|
|
|
|
|
poorPerformanceQty: data.summary.poorPerformanceQty || 0, |
|
|
|
|
|
defectQty: data.summary.defectQty || 0, |
|
|
|
|
|
totalQty: data.summary.totalQty || 0 |
|
|
|
|
|
}; |
|
|
|
|
|
} |
|
|
this.dataListLoading = false; |
|
|
this.dataListLoading = false; |
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
|
console.error('查询失败:', err); |
|
|
console.error('查询失败:', err); |
|
|
@ -1682,6 +1708,37 @@ import labelPrintTemplates from '@/mixins/labelPrintTemplates.js'; |
|
|
gap: 8px; |
|
|
gap: 8px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* 汇总数据栏 */ |
|
|
|
|
|
.summary-bar { |
|
|
|
|
|
margin-left: auto; |
|
|
|
|
|
display: flex; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
gap: 16px; |
|
|
|
|
|
background: #f2f6fa; |
|
|
|
|
|
border: 1px solid #c8dff0; |
|
|
|
|
|
border-radius: 6px; |
|
|
|
|
|
padding: 5px 14px; |
|
|
|
|
|
font-size: 13px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.summary-item-inline { |
|
|
|
|
|
display: flex; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
white-space: nowrap; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.summary-label-inline { |
|
|
|
|
|
color: #5a7a8f; |
|
|
|
|
|
font-weight: 500; |
|
|
|
|
|
margin-right: 2px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.summary-value-inline { |
|
|
|
|
|
color: #3a7ba8; |
|
|
|
|
|
font-weight: bold; |
|
|
|
|
|
font-size: 13px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/* 展开时显示上边框 */ |
|
|
/* 展开时显示上边框 */ |
|
|
.search-card:not(.collapsed) .search-actions { |
|
|
.search-card:not(.collapsed) .search-actions { |
|
|
border-top: 1px solid #f0f0f0; |
|
|
border-top: 1px solid #f0f0f0; |
|
|
|