From 32db31db2a81eb9280c1353e3233bef845af6836 Mon Sep 17 00:00:00 2001 From: qiankanghui Date: Tue, 8 Sep 2026 13:39:44 +0800 Subject: [PATCH] =?UTF-8?q?feat(qc):=20=E6=B7=BB=E5=8A=A0=E6=A3=80?= =?UTF-8?q?=E9=AA=8C=E7=B1=BB=E5=9E=8B=E7=BC=96=E7=A0=81=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=80=BC=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在检验项目导入时为缺失的检验类型编码列设置默认值 105(IQC) - 确保上传表单中始终包含有效的检验类型编码 - 优化了文件上传流程中的数据完整性检查 --- src/views/modules/qc/qcItem.vue | 1 + src/views/modules/qc/qc_upload.vue | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/views/modules/qc/qcItem.vue b/src/views/modules/qc/qcItem.vue index ba33746..820d0ba 100644 --- a/src/views/modules/qc/qcItem.vue +++ b/src/views/modules/qc/qcItem.vue @@ -1549,6 +1549,7 @@ flag: 'item', createBy: this.$store.state.user.name, site: this.$store.state.user.site, + inspectionTypeNo: '105', // 检验项目导入文件无检验类型编码列,默认传 IQC(105) } //打开组件 去做新增业务 this.$nextTick(() => { diff --git a/src/views/modules/qc/qc_upload.vue b/src/views/modules/qc/qc_upload.vue index a8c1b63..9ab1903 100644 --- a/src/views/modules/qc/qc_upload.vue +++ b/src/views/modules/qc/qc_upload.vue @@ -123,6 +123,8 @@ export default { formData.append("createBy", this.pageData.createBy); formData.append("site", buildQcBu(parseQcBu(this.bu).site)); if (this.pageData.flag === 'item'){ + // 检验项目导入文件无检验类型编码列,默认传前端指定的检验类型(缺省 105 IQC) + formData.append("inspectionTypeNo", this.pageData.inspectionTypeNo || '105'); uploadExcel(formData).then(({data}) => { if (data.code === 0) { this.$message.success(data.msg);