Commit cd160c57 authored by 邓乾隆's avatar 邓乾隆

财报及征信授权书校验添加

parent 6f4da94f
...@@ -26,5 +26,12 @@ ...@@ -26,5 +26,12 @@
end; end;
]]></bm:update-sql> ]]></bm:update-sql>
</bm:operation> </bm:operation>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select con_contract_workflow_pkg.get_rsc_upload_flag(p_contract_id =>${@contract_id}) as is_rsc_upload_flag
from dual
]]></bm:query-sql>
</bm:operation>
</bm:operations> </bm:operations>
</bm:model> </bm:model>
...@@ -63,6 +63,7 @@ ...@@ -63,6 +63,7 @@
<link href="${/request/@context_path}/modules/viewerjs/viewer.css" rel="stylesheet"/> <link href="${/request/@context_path}/modules/viewerjs/viewer.css" rel="stylesheet"/>
<script src="${/request/@context_path}/modules/viewerjs/viewer.js"/> <script src="${/request/@context_path}/modules/viewerjs/viewer.js"/>
<script src="${/request/@context_path}/modules/viewerjs/viewer_tool.js"/> <script src="${/request/@context_path}/modules/viewerjs/viewer_tool.js"/>
<a:link id="con_get_rsc_upload" model="cont.CON505.con505_contract_content" modelaction="query"/>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
function lock_current_window() { function lock_current_window() {
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}'); Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}');
...@@ -621,26 +622,64 @@ ...@@ -621,26 +622,64 @@
// Leaf.showMessage('${l:PROMPT}', '北京卡家业务需要保证金入账后才能起租'); // Leaf.showMessage('${l:PROMPT}', '北京卡家业务需要保证金入账后才能起租');
// return; // return;
// } // }
Leaf.showConfirm('${HLS.PROMPT}', '确认要提交工作流吗?', function () { //为法人且不为95时,财报是否上传提示
window['${/parameter/@layout_code}_lock_layout_dynamic_window'](); var is_rsc_flag = '';
if (record.get('division') != '95' && record.get('bp_class') == 'ORG'){
Leaf.request({ Leaf.request({
url: $('con_approval_link_id').getUrl(), url: $('con_get_rsc_upload').getUrl(),
para: { para: {
contract_id: contract_id contract_id: contract_id
}, },
scope: this, scope: this,
success: function () { sync: true,
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); success: function (res) {
$('${/parameter/@winid}').close(); is_rsc_flag = res.result.record.is_rsc_upload_flag;
},
failure: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
error: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
} }
}); });
}); }
if (is_rsc_flag == 'N'){
Leaf.showConfirm('${HLS.PROMPT}', '当前承租人未上传财报,是否提交工作流?', function () {
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({
url: $('con_approval_link_id').getUrl(),
para: {
contract_id: contract_id
},
scope: this,
success: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
$('${/parameter/@winid}').close();
},
failure: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
error: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}
});
});
}else{
Leaf.showConfirm('${HLS.PROMPT}', '确认要提交工作流吗?', function () {
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({
url: $('con_approval_link_id').getUrl(),
para: {
contract_id: contract_id
},
scope: this,
success: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
$('${/parameter/@winid}').close();
},
failure: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
error: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}
});
});
}
} }
......
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