From 94f8599188a50a6db12794482c0140f8d50fc5db Mon Sep 17 00:00:00 2001 From: yangzz <9704.yyds@163.com> Date: Tue, 26 May 2026 15:07:37 +0800 Subject: [PATCH] =?UTF-8?q?QC=E5=AD=90=E4=BB=B6=E4=BF=A1=E6=81=AF=E5=BD=95?= =?UTF-8?q?=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/report/qcSubpart.vue | 30 ++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/views/modules/report/qcSubpart.vue b/src/views/modules/report/qcSubpart.vue index 13cc578..8ea2d36 100644 --- a/src/views/modules/report/qcSubpart.vue +++ b/src/views/modules/report/qcSubpart.vue @@ -92,6 +92,7 @@ + + + + + + + @@ -510,6 +521,7 @@ export default { supplierName: item.supplierName || '', modelNo: item.modelNo || '', manufactureDate: item.manufactureDate || '', + remark: item.remark || '', sortNo: item.sortNo || 0 })) } else { @@ -577,6 +589,7 @@ export default { supplierName: item.supplierName || '', modelNo: item.modelNo || '', manufactureDate: item.manufactureDate || '', + remark: item.remark || '', sortNo: index + 1 })) } else { @@ -603,11 +616,24 @@ export default { this.addForm.detailList[this.chooseContext.rowIndex].supplierName = row.SupplierName || '' } }, + removeDetailRow (index) { + this.$confirm('确定删除该明细吗?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.addForm.detailList.splice(index, 1) + }).catch(() => {}) + }, submitForm () { if (!this.addForm.mainData.seqNo) { this.$message.warning('请先选择主数据') return } + if (!this.addForm.detailList || this.addForm.detailList.length === 0) { + this.$message.warning('明细不能为空,请至少保留一条明细数据') + return + } const buKey = this.addQuery.citemCode || this.queryForm.citemCode const site = this.extractSiteFromBuKey(buKey) const buNo = this.extractPureBuCode(buKey) @@ -741,4 +767,8 @@ export default { margin-left: 4px; flex: 1; } + +.qc-subpart-delete-btn { + margin-top: -3px; +}