feat(qc): 新增入场钢卷号字段并优化质检相关流程
1. 在质检任务相关BO、VO、实体类中新增enterCoilNos字段 2. 调整检验任务查询逻辑,支持按入场钢卷号筛选 3. 优化钢卷相关页面的字段展示和表单校验 4. 简化理化导入流程,移除钢卷匹配步骤
This commit is contained in:
@@ -519,11 +519,11 @@ export default {
|
||||
};
|
||||
this.getCoilList();
|
||||
},
|
||||
async fetchLatestChemAndPhys(coilId) {
|
||||
if (!coilId) return {};
|
||||
async fetchLatestChemAndPhys(coilNo) {
|
||||
if (!coilNo) return {};
|
||||
const [chemRes, physRes] = await Promise.all([
|
||||
listChemicalItem({ coilId, pageNum: 1, pageSize: 1 }),
|
||||
listPhysicalItem({ coilId, pageNum: 1, pageSize: 1 })
|
||||
listChemicalItem({ coilNo, pageNum: 1, pageSize: 1 }),
|
||||
listPhysicalItem({ coilNo, pageNum: 1, pageSize: 1 })
|
||||
]);
|
||||
const chem = chemRes.rows && chemRes.rows[0] || {};
|
||||
const phys = physRes.rows && physRes.rows[0] || {};
|
||||
@@ -538,7 +538,7 @@ export default {
|
||||
editRow.size = row.specification;
|
||||
editRow.weight = row.netWeight;
|
||||
editRow.pieces = 1;
|
||||
const data = await this.fetchLatestChemAndPhys(row.coilId);
|
||||
const data = await this.fetchLatestChemAndPhys(row.enterCoilNo);
|
||||
Object.assign(editRow, data);
|
||||
}
|
||||
this.coilDialogVisible = false;
|
||||
@@ -583,11 +583,12 @@ export default {
|
||||
const totalCount = coils.length;
|
||||
let successCount = 0;
|
||||
let failCount = 0;
|
||||
this.loading = true;
|
||||
|
||||
for (let index = 0; index < coils.length; index++) {
|
||||
const coil = coils[index];
|
||||
try {
|
||||
const data = await this.fetchLatestChemAndPhys(coil.coilId);
|
||||
const data = await this.fetchLatestChemAndPhys(coil.enterCoilNo);
|
||||
const newRow = {
|
||||
certificateId: this.currentCertificateId,
|
||||
itemSeqNo: this.certificateItemList.length + index + 1,
|
||||
|
||||
Reference in New Issue
Block a user