Commit e82d4f98 authored by 18083's avatar 18083

手工凭证导入增加校验

parent 7388bf7c
......@@ -91,7 +91,7 @@
// 提交审批
// 可以批量提交,批量提交审批的数据在一个工作流里面,有一个批次表 存 batch_id,这里要把批量提交的数据 update batch_id
function hls536_journal_send() {
var ds_id = 'hls_journal_header_result_ds';
var ds_id = 'hls_journal_header_result_ds';
var records = $(ds_id).getSelected();
if(records.length == 0){
Leaf.showMessage('${l:PROMPT}', '未选择!');
......@@ -105,6 +105,10 @@
Leaf.showMessage('提示', '审批中、审批通过的凭证不可提交审批!');
return;
}
if (!Ext.isEmpty(record.get('error_message'))){
Leaf.showMessage('提示', '凭证导入存在报错信息,不允许提交审批!');
return;
}
}
var journal_header_imp_list = [];
......@@ -166,7 +170,7 @@
scope: this
});
}, null);
}
}
}
//反冲
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment