Commit 1cbd732a authored by congzhao's avatar congzhao

[建机]电子合同开发 提前结清发起流程,查询接口,业务系统改造 11.25

parent aef1f821
...@@ -33,6 +33,9 @@ ...@@ -33,6 +33,9 @@
c.last_update_date = sysdate, c.last_update_date = sysdate,
c.last_updated_by = ${/session/@user_id} c.last_updated_by = ${/session/@user_id}
where c.contract_id = ${@contract_id}; where c.contract_id = ${@contract_id};
delete from con_contract_ele_signer cs where cs.contract_id = ${@contract_id};
commit;
end; end;
]]></bm:update-sql> ]]></bm:update-sql>
</bm:operation> </bm:operation>
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
<bm:fields> <bm:fields>
<bm:field name="con_ele_signer_id"/> <bm:field name="con_ele_signer_id"/>
<bm:field name="contract_id"/> <bm:field name="contract_id"/>
<bm:field name="contract_number"/>
<bm:field name="bp_id"/> <bm:field name="bp_id"/>
<bm:field name="bp_name"/> <bm:field name="bp_name"/>
<bm:field name="id_type"/> <bm:field name="id_type"/>
...@@ -26,24 +27,29 @@ ...@@ -26,24 +27,29 @@
<bm:operations> <bm:operations>
<bm:operation name="query"> <bm:operation name="query">
<bm:query-sql><![CDATA[ <bm:query-sql><![CDATA[
select * from (select cs.con_ele_signer_id, select *
cs.contract_id, from (select cs.con_ele_signer_id,
cs.bp_id, (select cc.contract_number
cs.bp_name, from con_contract cc
cs.id_type, where cc.contract_id = cs.contract_id
cs.id_no, and cc.data_class = 'NORMAL') contract_number,
cs.templet_signer_id, cs.contract_id,
cs.ec_sign_status, cs.bp_id,
hs.templet_id, cs.bp_name,
hs.indentity_type, cs.id_type,
hs.key_word, cs.id_no,
nvl(hs.auto_sign,'N') auto_sign, cs.templet_signer_id,
hs.sign_order, cs.ec_sign_status,
hs.sign_type, hs.templet_id,
hs.signer_category hs.indentity_type,
from con_contract_ele_signer cs, hls_doc_file_templet_signer hs hs.key_word,
where cs.templet_signer_id = hs.templet_signer_id nvl(hs.auto_sign, 'N') auto_sign,
and cs.esign_type = 'CE') t hs.sign_order,
hs.sign_type,
hs.signer_category
from con_contract_ele_signer cs, hls_doc_file_templet_signer hs
where cs.templet_signer_id = hs.templet_signer_id
and cs.esign_type = 'CE') t
#WHERE_CLAUSE# #WHERE_CLAUSE#
]]></bm:query-sql> ]]></bm:query-sql>
</bm:operation> </bm:operation>
......
...@@ -16,7 +16,8 @@ ...@@ -16,7 +16,8 @@
update con_contract cc update con_contract cc
set cc.ec_sign_type = 'SIGNING', set cc.ec_sign_type = 'SIGNING',
cc.last_update_date = sysdate cc.last_update_date = sysdate
where cc.ele_flow_id = ${@flow_id}; where cc.ele_flow_id = ${@flow_id}
and cc.ec_sign_type != 'SIGNED';
END; END;
]]></bm:update-sql> ]]></bm:update-sql>
</bm:operation> </bm:operation>
...@@ -31,6 +32,12 @@ ...@@ -31,6 +32,12 @@
cc.last_update_date = sysdate cc.last_update_date = sysdate
where cc.ele_flow_id = ${@flow_id} where cc.ele_flow_id = ${@flow_id}
and cc.contract_id = ${@contract_id}; and cc.contract_id = ${@contract_id};
update con_contract_ele_signer cs
set cs.ec_sign_status = 'Y',
cs.last_update_date = sysdate
where cs.contract_id = ${@contract_id};
wx_ele_contract_pkg.downloadEleFile(p_contract_id => ${@contract_id}, wx_ele_contract_pkg.downloadEleFile(p_contract_id => ${@contract_id},
p_ele_flow_id => ${@flow_id}, p_ele_flow_id => ${@flow_id},
p_user_id => 1, p_user_id => 1,
......
...@@ -14,16 +14,19 @@ ...@@ -14,16 +14,19 @@
<bm:operations> <bm:operations>
<bm:operation name="query"> <bm:operation name="query">
<bm:query-sql><![CDATA[ <bm:query-sql><![CDATA[
select fa.file_name,fa.file_path,fa.file_size select fa.file_name,fa.file_path,fa.file_size,ct.order_seq
from fnd_atm_attachment fa, fnd_atm_attachment_multi fm from fnd_atm_attachment fa, fnd_atm_attachment_multi fm,con_contract_content cc,con_clause_templet ct
where fa.attachment_id = fm.attachment_id where fa.attachment_id = fm.attachment_id
and fm.table_name = 'CON_CONTRACT_CONTENT' and fm.table_name = 'CON_CONTRACT_CONTENT'
and cc.content_id = fm.table_pk_value
and cc.templet_id = ct.templet_id
and fm.table_pk_value in and fm.table_pk_value in
(select t.content_id (select t.content_id
from con_contract_content t,con_ele_signer_file cf from con_contract_content t,con_ele_signer_file cf
where t.contract_id = ${@contract_id} where t.contract_id = ${@contract_id}
and t.templet_id = cf.templet_id and t.templet_id = cf.templet_id
and cf.templet_code != 'SETTLE_ADVANCE_OEC') and cf.templet_code != 'SETTLE_ADVANCE_OEC')
order by ct.order_seq
]]></bm:query-sql> ]]></bm:query-sql>
</bm:operation> </bm:operation>
</bm:operations> </bm:operations>
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm"> <bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:fields> <bm:fields>
<bm:field name="con_ele_signer_id"/> <bm:field name="con_ele_signer_id"/>
<bm:field name="contract_number"/>
<bm:field name="contract_id"/> <bm:field name="contract_id"/>
<bm:field name="bp_id"/> <bm:field name="bp_id"/>
<bm:field name="bp_name"/> <bm:field name="bp_name"/>
...@@ -27,6 +28,10 @@ ...@@ -27,6 +28,10 @@
<bm:operation name="query"> <bm:operation name="query">
<bm:query-sql><![CDATA[ <bm:query-sql><![CDATA[
select * from (select cs.con_ele_signer_id, select * from (select cs.con_ele_signer_id,
(select cc.contract_number
from con_contract cc
where cc.contract_id = cs.contract_id
and cc.data_class = 'NORMAL') contract_number,
cs.contract_id, cs.contract_id,
cs.bp_id, cs.bp_id,
cs.bp_name, cs.bp_name,
......
...@@ -16,7 +16,8 @@ ...@@ -16,7 +16,8 @@
update con_contract_change_req cc update con_contract_change_req cc
set cc.ec_sign_type = 'SIGNING', set cc.ec_sign_type = 'SIGNING',
cc.last_update_date = sysdate cc.last_update_date = sysdate
where cc.ele_flow_id = ${@flow_id}; where cc.ele_flow_id = ${@flow_id}
and cc.ec_sign_type != 'SIGNED';
END; END;
]]></bm:update-sql> ]]></bm:update-sql>
</bm:operation> </bm:operation>
...@@ -30,6 +31,12 @@ ...@@ -30,6 +31,12 @@
cc.last_update_date = sysdate cc.last_update_date = sysdate
where cc.ele_flow_id = ${@flow_id} where cc.ele_flow_id = ${@flow_id}
and cc.contract_id = ${@contract_id}; and cc.contract_id = ${@contract_id};
update con_contract_ele_signer cs
set cs.ec_sign_status = 'Y',
cs.last_update_date = sysdate
where cs.contract_id = ${@contract_id};
wx_ele_contract_pkg.downloadEleFile(p_contract_id => ${@contract_id}, wx_ele_contract_pkg.downloadEleFile(p_contract_id => ${@contract_id},
p_ele_flow_id => ${@flow_id}, p_ele_flow_id => ${@flow_id},
p_user_id => 1, p_user_id => 1,
......
...@@ -14,16 +14,19 @@ ...@@ -14,16 +14,19 @@
<bm:operations> <bm:operations>
<bm:operation name="query"> <bm:operation name="query">
<bm:query-sql><![CDATA[ <bm:query-sql><![CDATA[
select fa.file_name,fa.file_path,fa.file_size select fa.file_name,fa.file_path,fa.file_size,ct.order_seq
from fnd_atm_attachment fa, fnd_atm_attachment_multi fm from fnd_atm_attachment fa, fnd_atm_attachment_multi fm,con_contract_content cc,con_clause_templet ct
where fa.attachment_id = fm.attachment_id where fa.attachment_id = fm.attachment_id
and fm.table_name = 'CON_CONTRACT_CONTENT' and fm.table_name = 'CON_CONTRACT_CONTENT'
and cc.content_id = fm.table_pk_value
and cc.templet_id = ct.templet_id
and fm.table_pk_value in and fm.table_pk_value in
(select t.content_id (select t.content_id
from con_contract_content t,con_ele_signer_file cf from con_contract_content t,con_ele_signer_file cf
where t.contract_id = ${@contract_id} where t.contract_id = ${@contract_id}
and t.templet_id = cf.templet_id and t.templet_id = cf.templet_id
and cf.templet_code = 'SETTLE_ADVANCE_OEC') and cf.templet_code = 'SETTLE_ADVANCE_OEC')
order by ct.order_seq
]]></bm:query-sql> ]]></bm:query-sql>
</bm:operation> </bm:operation>
</bm:operations> </bm:operations>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
BEGIN BEGIN
wx_ele_contract_pkg.send_email(p_user_id => nvl(${/session/@user_id},1), wx_ele_contract_pkg.send_email(p_user_id => nvl(${/session/@user_id},1),
p_mail_to => ${@mail_to}, p_mail_to => ${@mail_to},
p_id_no => ${@id_no},
p_contract_id => ${@contract_id}); p_contract_id => ${@contract_id});
END; END;
]]></bm:update-sql> ]]></bm:update-sql>
......
...@@ -56,6 +56,8 @@ ...@@ -56,6 +56,8 @@
else{ else{
param['function_code'] = 'CON301'; param['function_code'] = 'CON301';
param['function_usage'] = 'QUERY'; param['function_usage'] = 'QUERY';
//add by 24976
param['sign_contract_status'] = record.get('sign_contract_status');
} }
param['winid'] = 'con_contract_modify_win_id'; param['winid'] = 'con_contract_modify_win_id';
param['url_title'] = '${l:CON301.CONTRACT_DETAIL}'; param['url_title'] = '${l:CON301.CONTRACT_DETAIL}';
......
...@@ -141,7 +141,7 @@ ...@@ -141,7 +141,7 @@
} else if (name == 'attachment') { } else if (name == 'attachment') {
link_function = '${/parameter/@layout_code}_prj500_cdd_attachtment_upload'; link_function = '${/parameter/@layout_code}_prj500_cdd_attachtment_upload';
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.ds.id + '\',\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + config_record.get('prompt') + '</a>'; return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.ds.id + '\',\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + config_record.get('prompt') + '</a>';
} else if (name == 'attach_file_name' || name == 'attach_file_name_print' ) { } else if (name == 'attach_file_name' || name == 'attach_file_name_print' || name == 'attachment_new') {
var content_type = record.get('content_type'); var content_type = record.get('content_type');
var content_id = record.get('content_id'); var content_id = record.get('content_id');
//电子合同 //电子合同
...@@ -160,10 +160,10 @@ ...@@ -160,10 +160,10 @@
if (!Leaf.isEmpty(temp[0])) { if (!Leaf.isEmpty(temp[0])) {
var file_name = temp[0].toUpperCase(); var file_name = temp[0].toUpperCase();
var file_suffix = temp[0].substr(temp[0].lastIndexOf('.') + 1).toUpperCase(); var file_suffix = temp[0].substr(temp[0].lastIndexOf('.') + 1).toUpperCase();
// if (file_name.indexOf('.PDF') >= 0) { // if (file_name.indexOf('.PDF') >= 0) {
// url = url + '<a href=javascript:view_pdf(\'' + temp[1] + '\')>' + temp[0] + '</a>' + ','; // url = url + '<a href=javascript:view_pdf(\'' + temp[1] + '\')>' + temp[0] + '</a>' + ',';
// } else // } else
if (file_suffix == 'BMP' || file_suffix == 'JPG' || file_suffix == 'JPEG' || file_suffix == 'PNG' || file_suffix == 'GIF') { if (file_suffix == 'BMP' || file_suffix == 'JPG' || file_suffix == 'JPEG' || file_suffix == 'PNG' || file_suffix == 'GIF') {
url = url + '<a href=' + link + temp[1] + ' ref="img">' + temp[0] + '</a>' + ','; url = url + '<a href=' + link + temp[1] + ' ref="img">' + temp[0] + '</a>' + ',';
} else { } else {
url = url + '<a href=' + link + temp[1] + '>' + temp[0] + '</a>' + ','; url = url + '<a href=' + link + temp[1] + '>' + temp[0] + '</a>' + ',';
...@@ -180,6 +180,9 @@ ...@@ -180,6 +180,9 @@
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.ds.id + '\',\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + Leaf.formatMoney(value) + '</a>'; return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.ds.id + '\',\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + Leaf.formatMoney(value) + '</a>';
} }
return ''; return '';
} else if (name == 'attach_file_name_new') {
link_function = '${/parameter/@layout_code}_prj500_cdd_attachtment_new_upload';
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.ds.id + '\',\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">' + config_record.get('prompt') + '</a>';
} }
}; };
...@@ -312,6 +315,32 @@ ...@@ -312,6 +315,32 @@
Leaf.showMessage('${l:HLS.PROMPT}', '请先保存!'); Leaf.showMessage('${l:HLS.PROMPT}', '请先保存!');
} }
}; };
//add by 24976
window['${/parameter/@layout_code}_prj500_cdd_attachtment_new_upload'] = function (ds_id, id, name, query_only) {
var record = $(ds_id).findById(id);
if (record.get('check_id')) {
var url;
//add by lijingjing 2019-11-15
if (query_only == 'Y' || '${/parameter/@download}' == 'Y') {
url = $('${/parameter/@layout_code}_prj500_cdd_downloadFile_id').getUrl() + '?table_name=CON_CONTRACT&header_id=' + record.get('check_id');
} else {
url = $('${/parameter/@layout_code}_prj500_cdd_uploadFile_id').getUrl() + '?table_name=CON_CONTRACT&header_id=' + record.get('check_id');
}
var win = new Leaf.Window({
url: url,
title: '${l:HLS.SUPPORTING_DOCUMENT}',
id: '${/parameter/@layout_code}${/parameter/@tree_code}_prj500_cdd_uploadFile_screen_id',
width: 850,
height: 400
});
win.on('close', function () {
record.ds.query();
});
} else {
Leaf.showMessage('${l:HLS.PROMPT}', '请先保存!');
}
};
window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function () { window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function () {
// //
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract'); var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
...@@ -469,13 +498,13 @@ ...@@ -469,13 +498,13 @@
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_query'] = function(ds, qpara, bp_seq) { window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_query'] = function(ds, qpara, bp_seq) {
// var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_bs_score'); // var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_bs_score');
// if (ds == $(ds_id)) { // if (ds == $(ds_id)) {
// qpara.contract_id = '${/parameter/@contract_id}'; // qpara.contract_id = '${/parameter/@contract_id}';
//$(ds_id).setQueryParameter('contract_id', '${/parameter/@contract_id}'); //$(ds_id).setQueryParameter('contract_id', '${/parameter/@contract_id}');
// } // }
}; };
window['${/parameter/@layout_code}_submit_approval_layout_dynamic_click'] = function () { window['${/parameter/@layout_code}_submit_approval_layout_dynamic_click'] = function () {
......
...@@ -300,7 +300,7 @@ ...@@ -300,7 +300,7 @@
var req_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASE_01', 'con_contract_change_req'); var req_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASE_01', 'con_contract_change_req');
var req_record = $(req_ds_id).getAt(0); var req_record = $(req_ds_id).getAt(0);
var req_status = req_record.get('req_status'); var req_status = req_record.get('req_status');
var contact_id = req_record.get('contact_id'); var contract_id = req_record.get('contract_id');
if (req_status != 'NEW') { if (req_status != 'NEW') {
Leaf.showMessage('${l:PROMPT}', '只有新建状态的才能发起电子签约'); Leaf.showMessage('${l:PROMPT}', '只有新建状态的才能发起电子签约');
return; return;
...@@ -311,7 +311,7 @@ ...@@ -311,7 +311,7 @@
Leaf.request({ Leaf.request({
url: $('${/parameter/@layout_code}_con_ele_terminate_create_link_id').getUrl(), url: $('${/parameter/@layout_code}_con_ele_terminate_create_link_id').getUrl(),
para: { para: {
contract_id: contact_id contract_id: contract_id
}, },
success: function(res) { success: function(res) {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
......
...@@ -69,6 +69,7 @@ ...@@ -69,6 +69,7 @@
"totalTimes": contract_list_detail.lease_times, "totalTimes": contract_list_detail.lease_times,
"signAmt": contract_list_detail.total_sign, "signAmt": contract_list_detail.total_sign,
"signUrl":contract_list_detail.sign_url, "signUrl":contract_list_detail.sign_url,
"userSignStatus":contract_list_detail.userSignStatus,
"signFiles": signFiles "signFiles": signFiles
}); });
} }
......
...@@ -239,6 +239,7 @@ ...@@ -239,6 +239,7 @@
contract_id: $ctx.parameter.contract_id contract_id: $ctx.parameter.contract_id
}); });
var ele_contract_signer_data = ele_contract_signer_map.getChildren(); var ele_contract_signer_data = ele_contract_signer_map.getChildren();
var contract_number = ele_contract_signer_data[0].contract_number;
for (var k = 0 ; k < ele_contract_signer_data.length;k++){ for (var k = 0 ; k < ele_contract_signer_data.length;k++){
var signerFileList = []; var signerFileList = [];
var signer_record_data = ele_contract_signer_data[k]; var signer_record_data = ele_contract_signer_data[k];
...@@ -273,6 +274,7 @@ ...@@ -273,6 +274,7 @@
var httpUrl = info.code_value; var httpUrl = info.code_value;
var signParam = { var signParam = {
contractNo:$ctx.parameter.contract_id, contractNo:$ctx.parameter.contract_id,
contractNumber:contract_number,
esignType:"CE", esignType:"CE",
userInfo:userInfoList, userInfo:userInfoList,
conFileList:conFileList, conFileList:conFileList,
...@@ -300,7 +302,8 @@ ...@@ -300,7 +302,8 @@
if (result_ob.code != 0) { if (result_ob.code != 0) {
//rollback //rollback
$bm('wx.WX100.rollback').update(); $bm('wx.WX100.rollback').update();
raise_app_error('发起签约失败,请联系技术人员检查!'); //raise_app_error('发起签约失败,请联系技术人员检查!');
raise_app_error(result_ob.message.toString());
}else if(result_ob.code == 0){ }else if(result_ob.code == 0){
var flow_id = result_ob.flowId; var flow_id = result_ob.flowId;
var flow_update_bm = $bm('wx.WX100.con_ele_flow_update'); var flow_update_bm = $bm('wx.WX100.con_ele_flow_update');
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
signer_status_update_bm = $bm('wx.WX100.con_et_signer_status_update'); signer_status_update_bm = $bm('wx.WX100.con_et_signer_status_update');
} }
//个人签署完成 //个人签署完成
if ($ctx.parameter.action == 'SIGN_FLOW_UPDATE'){ if ($ctx.parameter.action == 'SIGN_FLOW_UPDATE' && $ctx.parameter.signResult == '2'){
var idNos = $ctx.parameter.idNos; var idNos = $ctx.parameter.idNos;
var idNos_json = JSON.parse(idNos); var idNos_json = JSON.parse(idNos);
var idNos_list = idNos_json.idNoList; var idNos_list = idNos_json.idNoList;
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
$ctx.parameter.return_message = '修改成功'; $ctx.parameter.return_message = '修改成功';
} }
//合同签署完成 //合同签署完成
else if($ctx.parameter.action == 'SIGN_FLOW_FINISH'){ else if($ctx.parameter.action == 'SIGN_FLOW_FINISH' && $ctx.parameter.flowStatus == '2'){
signer_status_update_bm.insert({ signer_status_update_bm.insert({
contract_id:contract_no, contract_id:contract_no,
flow_id:$ctx.parameter.flowId, flow_id:$ctx.parameter.flowId,
......
...@@ -203,6 +203,7 @@ ...@@ -203,6 +203,7 @@
contract_id: $ctx.parameter.contract_id contract_id: $ctx.parameter.contract_id
}); });
var ele_contract_signer_data = ele_contract_signer_map.getChildren(); var ele_contract_signer_data = ele_contract_signer_map.getChildren();
var contract_number = ele_contract_signer_data[0].contract_number;
for (var k = 0 ; k < ele_contract_signer_data.length;k++){ for (var k = 0 ; k < ele_contract_signer_data.length;k++){
var signerFileList = []; var signerFileList = [];
var signer_record_data = ele_contract_signer_data[k]; var signer_record_data = ele_contract_signer_data[k];
...@@ -237,6 +238,7 @@ ...@@ -237,6 +238,7 @@
var httpUrl = info.code_value; var httpUrl = info.code_value;
var signParam = { var signParam = {
contractNo:$ctx.parameter.contract_id, contractNo:$ctx.parameter.contract_id,
contractNumber:contract_number,
esignType:"ET", esignType:"ET",
userInfo:userInfoList, userInfo:userInfoList,
conFileList:conFileList, conFileList:conFileList,
...@@ -262,7 +264,8 @@ ...@@ -262,7 +264,8 @@
if (result_ob.code != 0) { if (result_ob.code != 0) {
//rollback //rollback
$bm('wx.WX100.rollback').update(); $bm('wx.WX100.rollback').update();
raise_app_error('发起签约失败,请联系技术人员检查!'); //raise_app_error('发起签约失败,请联系技术人员检查!');
raise_app_error(result_ob.message.toString());
}else if(result_ob.code == 0){ }else if(result_ob.code == 0){
var flow_id = result_ob.flowId; var flow_id = result_ob.flowId;
var flow_update_bm = $bm('wx.WX100.con_et_flow_update'); var flow_update_bm = $bm('wx.WX100.con_et_flow_update');
......
...@@ -4,11 +4,12 @@ ...@@ -4,11 +4,12 @@
<s:server-script import="app/app_login_check.js"><![CDATA[ <s:server-script import="app/app_login_check.js"><![CDATA[
function send_email() { function send_email() {
try { try {
if($ctx.parameter.email && $ctx.parameter.contractNo) { if($ctx.parameter.email && $ctx.parameter.contractNo && $ctx.parameter.idNo) {
var ele_file_email_bm = $bm('wx.WX100.wx_ele_file_email'); var ele_file_email_bm = $bm('wx.WX100.wx_ele_file_email');
ele_file_email_bm.insert({ ele_file_email_bm.insert({
mail_to: $ctx.parameter.email, mail_to: $ctx.parameter.email,
contract_id:$ctx.parameter.contractNo contract_id:$ctx.parameter.contractNo,
id_no:$ctx.parameter.idNo
}); });
$ctx.parameter.return_status = '0'; $ctx.parameter.return_status = '0';
$ctx.parameter.return_message = '执行成功'; $ctx.parameter.return_message = '执行成功';
...@@ -20,7 +21,7 @@ function send_email() { ...@@ -20,7 +21,7 @@ function send_email() {
} }
var result = { var result = {
code: $ctx.parameter.return_status, code: $ctx.parameter.return_status,
message: $ctx.parameter.return_message, message: $ctx.parameter.return_message
}; };
$ctx.parameter.json = JSON.stringify(result); $ctx.parameter.json = JSON.stringify(result);
......
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