diff --git a/src/main/resources/views/platform/zhgh/dayofficework/ghkh/zp.html b/src/main/resources/views/platform/zhgh/dayofficework/ghkh/zp.html index b00e37a..7387018 100644 --- a/src/main/resources/views/platform/zhgh/dayofficework/ghkh/zp.html +++ b/src/main/resources/views/platform/zhgh/dayofficework/ghkh/zp.html @@ -434,7 +434,6 @@ layout("/layouts/platform.html"){ const params = [] let valid = true let msg = '' - outerLoop: for (let i = 0; i < this.formData.nrs.length; i++) { const n = this.formData.nrs[i] for (let j = 0; j < n.bzs.length; j++) { @@ -444,16 +443,10 @@ layout("/layouts/platform.html"){ "bz_id": b.id, "clnr": b.zp?.clnr, "zpf": b.zp?.zpf, "files": b.zp?.files, "id": b.zp?.id ? b.zp?.id : null }) - if(v === 'submit') { - if(!b.zp?.clnr) { - msg = '考核内容第' + (i + 1) + '项,考核标准第' + (j + 1) + '项,材料说明为空,是否继续提交?' - valid = false - break outerLoop - } + if(v === 'submit' && valid === true) { if(b.isEvidence === true && !b.zp?.files) { msg = '考核内容第' + (i + 1) + '项,考核标准第' + (j + 1) + '项,佐证材料为空,是否继续提交?' valid = false - break outerLoop } } }