Commit 0a27fce9 authored by gzj34291's avatar gzj34291

会计关账添加校验保证金复核审批中校验

parent 340f4635
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: gzj
$Date: 2022年6月14日
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select count(1) trans_review_number
from csh_transaction_contemp t,con_contract cc
where (t.trans_review_status ='REVIEWING'
or t.trans_review_status ='REVIEWING1')
and cc.contract_id = t.source_contract_id
and cc.data_class = 'NORMAL'
]]></bm:query-sql>
</bm:operation>
</bm:operations>
<bm:fields>
<bm:field name="trans_review_number"></bm:field>
</bm:fields>
</bm:model>
......@@ -27,6 +27,10 @@
var deposit_records = $('deposit_transfer_detail_result_ds').getAll();
var param = {};
var saveData = [];
if(Leaf.isEmpty(deposit_records)){
Leaf.showMessage('提示', "请完整填写划转信息");
return;
}
for (var i = 0; i < deposit_records.length; i++) {
if(deposit_records[i].get('file_num') == 0){
Leaf.showMessage('${l:PROMPT}', "请完成附件上传!");
......
......@@ -250,7 +250,7 @@
// var quer_ds_1 = $('unearned_finance_income_query_ds');
// var qrec_1 = quer_ds_1.getAt(0);
// qrec_1.set('day', day);
// qrec_1.set('calc_end_date', value);
// qrec_1.set('calc_end_date', value);
$('unearned_finance_income_ds').setQueryParameter('calc_end_date', record.get('calc_end_date'));
$('unearned_finance_income_ds').query();
}
......@@ -577,13 +577,44 @@
}
function csh_transaction_confirm() {
//gzj 111
var role_flag = '${/model/sys_role_path/record/@role_code}';
var record = $('csh_transaction_confirm_ds').getSelected()[0];
//校验是否还有未审核的保证金划转
var trans_review_count;
$L.request({
url: '${/request/@context_path}/autocrud/csh.CSH531.get_trans_review_status/query',
para: {
csh_date: record.get('csh_date')
},
sync: true,
success: function (res) {
trans_review_count=res.result.record.trans_review_number;
},
error: function () {
},
failure: function () {
},
scope: this,
sync: true,
});
if( trans_review_count >0){
$L.showMessage('提示','有复核中的保证金,请完成复核后,再进行会计关账');
return ;
}
if (role_flag == 'NO') {
if (record.get('csh_confirm_flag') == 'Y') {
$L.showMessage('提示', '该月收款已确认,无需再次确认');
return;
}
$L.showConfirm('提示', '是否进行月结确认?', function () {
$L.Masker.mask(Ext.getBody(), '正在确认......');
$L.request({
......@@ -593,8 +624,8 @@
csh_date: record.get('csh_date'),
role_flag: role_flag
},
success: function (args) {
debugger;
$L.Masker.unmask(Ext.getBody());
if (args.result.p_err_msg) {
$L.showErrorMessage("提示", args.result.p_err_msg, null, 800, 300);
......@@ -614,7 +645,8 @@
error: function () {
$L.Masker.unmask(Ext.getBody());
},
scope: this
scope: this,
sync: true,
});
});
}
......
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