From a03a7538e8974dc991726dd1ab3cc6bba6f95bb0 Mon Sep 17 00:00:00 2001 From: xyz <747050115@qq.com> Date: Fri, 25 Oct 2024 15:56:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E5=90=88=E6=A0=BC=E6=A3=80=E9=AA=8C?= =?UTF-8?q?=E5=8D=95:=20=E4=BF=9D=E5=AD=98=E6=96=B0=E5=A2=9E=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pu/dhjyd/dhjydmaster/main/index.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/pu/dhjyd/dhjydmaster/main/index.js b/src/pu/dhjyd/dhjydmaster/main/index.js index 869c02a..25f73dd 100644 --- a/src/pu/dhjyd/dhjydmaster/main/index.js +++ b/src/pu/dhjyd/dhjydmaster/main/index.js @@ -2111,12 +2111,11 @@ export class ApplicationPage extends Component { if (this.config.appcode == '4004012H9400') { let bodyList = saveData.bodys['dhjydSlave0Sub'].rows || [] let nnum = saveData.head['dhjydMasterForm'].rows[0].values[FIELDS.NNUM].value - let def2Total = 0 + let numTotal = 0 bodyList.forEach((row, i) => { - //todo qualifiednum临时用合格数量, 后面模板修改后需替换成def2 - def2Total += row.values['qualifiednum'].value * 1 + numTotal += row.values['qualifiednum'].value * 1 }) - if (def2Total != nnum * 1) { + if (numTotal != nnum * 1) { toast({color: 'danger', content: '子表数量之和需要等于检验数量,请检查'}); return false }