Browse Source

审批判断可为空

laiguoran 3 years ago
parent
commit
3da1d213fc
1 changed files with 6 additions and 6 deletions
  1. 6 6
      app/public/js/change_information_approval.js

+ 6 - 6
app/public/js/change_information_approval.js

@@ -380,12 +380,12 @@ $(document).ready(() => {
             // 判断并提交变更清单表格数据到表单中
             const clist = [];
             for(const [i,cl] of changeList.entries()) {
-                if (cl['audit_amount_' + accountId] === null || cl['audit_amount_' + accountId] === '') {
-                    toastr.error('清单第' + (i+1) + '行审批变更数量不能为空');
-                    returnflag = false;
-                } else {
-                    clist.push(cl.id + '_' + cl['audit_amount_' + accountId]);
-                }
+                // if (cl['audit_amount_' + accountId] === null || cl['audit_amount_' + accountId] === '') {
+                //     toastr.error('清单第' + (i+1) + '行审批变更数量不能为空');
+                //     returnflag = false;
+                // } else {
+                clist.push(cl.id + '_' + (cl['audit_amount_' + accountId] ? cl['audit_amount_' + accountId] : 0));
+                // }
             }
             $('#change-list-approval').val(clist.join(','));