Commit 031939f2 authored by 38823's avatar 38823

授信管理(经租)工作流改造

parent 8c5ee931
......@@ -133,21 +133,27 @@ $Purpose: 商业伙伴授信维护
//驳回单据.
window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function() {
var credit_ds=get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_credit_hd');
var datas=$(credit_ds).selected;
debugger;
var credit_ds=get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'F_CREDIT_HD', 'hls_bp_master_credit_hd');
var op_credit_ds=get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'F_CREDIT_OP', 'hls_bp_master_credit_hd');
var credit_datas = $(credit_ds).selected;
var op_credit_datas = $(op_credit_ds).selected;
if(credit_datas == ''){
var datas=$(op_credit_ds).selected;
}else {
datas = $(credit_ds).selected;
}
if(credit_datas!='' && op_credit_datas!=''){
$L.showErrorMessage("提示",'请勾选同一业务类型的单据进行授信确认操作!');
return;
}
var param = {};
var saveData = [];
//角色判断
//002 营业本部长
for (var i = 0; i < datas.length; i++){
if(user_code==''||user_code==undefined){
$L.showInfoMessage("提示",'只有营业本部长才能操作数据!');
return;
}else if (user_code =='9065' && datas[i].get('bp_category')!='RENTER' ){
$L.showInfoMessage("提示",'当前用户只能选择<font color="red">'+'租赁商'+'</font>类型进行授信操作');
return;
}else if (user_code =='003' && datas[i].get('bp_category')=='RENTER'){
$L.showInfoMessage("提示",'当前用户只能选择<font color="red">'+'非租赁商'+'</font>类型进行授信操作');
$L.showInfoMessage("提示",'只有营业本部长/营业副部长(经租)才能操作数据!');
return;
}
}
......@@ -159,7 +165,7 @@ $Purpose: 商业伙伴授信维护
for (var i = 0; i < datas.length; i++) {
//审批冻结判断
var credit_status=datas[i].data.credit_status;
if(credit_status!='APPROVING'){
if(credit_status!='APPROVING' && credit_status!='APPROVING_OP'){
$L.showInfoMessage("提示",'请选择状态为审批中的数据!',null,null)
return;
}
......
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