不合格检验单: 保存新增校验

This commit is contained in:
xyz 2024-10-25 15:56:53 +08:00
parent 2729349e92
commit a03a7538e8
1 changed files with 3 additions and 4 deletions

View File

@ -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
}