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 }