Commit b280cdc4 authored by homunculus's avatar homunculus

[feat](新增租赁物GPS管理页面)

parent 6497b2c6
...@@ -141,7 +141,7 @@ ...@@ -141,7 +141,7 @@
var sp_identity_flag; var sp_identity_flag;
function id_card_no_validate(record, name, value) { function id_card_no_validate(record, name, value) {
if (name == 'id_card_no') { if (name == 'id_card_no') {
var bp_name = record.get('bp_name'); var bp_name = record.get('bp_name');
} else if (name == 'id_no_sp') { } else if (name == 'id_no_sp') {
...@@ -157,79 +157,79 @@ ...@@ -157,79 +157,79 @@
//由于中诚信测试环境只能测试张三,所以这里限定身份证号为张三的123456199001011233 //由于中诚信测试环境只能测试张三,所以这里限定身份证号为张三的123456199001011233
// if(value=='123456199001011233'){ // if(value=='123456199001011233'){
// //
var url1 = $('identity_query_link').getUrl(); // var url1 = $('identity_query_link').getUrl();
window['${/parameter/@layout_code}_lock_layout_dynamic_window'](); // window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({ // Leaf.request({
url: url1, // url: url1,
para: { // para: {
id_card_no: value,//身份证号码 // id_card_no: value,//身份证号码
bp_name: bp_name // bp_name: bp_name
}, // },
success: function (res) { // success: function (res) {
var resmsg_1 = res.result.resmsg_1; // var resmsg_1 = res.result.resmsg_1;
if (resmsg_1 == '1') { // if (resmsg_1 == '1') {
if (name == 'id_card_no') { // if (name == 'id_card_no') {
record.set('ccx_resmsg', '身份验证成功'); // record.set('ccx_resmsg', '身份验证成功');
card_identity_flag = 'Y'; // card_identity_flag = 'Y';
} else { // } else {
record.set('ccx_resmsg1', '身份验证成功'); // record.set('ccx_resmsg1', '身份验证成功');
sp_identity_flag = 'Y'; // sp_identity_flag = 'Y';
} // }
} else { // } else {
//个人身份验证 // //个人身份验证
var url = $('Identity_ccx_link').getUrl(); // var url = $('Identity_ccx_link').getUrl();
//
window['${/parameter/@layout_code}_lock_layout_dynamic_window'](); // window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({ // Leaf.request({
url: url, // url: url,
para: { // para: {
bp_name: bp_name,//姓名 // bp_name: bp_name,//姓名
id_card_no: value//身份证号码 // id_card_no: value//身份证号码
}, // },
success: function (res) { // success: function (res) {
//
//
var resmsg = res.result.resmsg; // var resmsg = res.result.resmsg;
if (name == 'id_card_no') { // if (name == 'id_card_no') {
record.set('ccx_resmsg', resmsg); // record.set('ccx_resmsg', resmsg);
if (resmsg == '身份验证成功') { // if (resmsg == '身份验证成功') {
card_identity_flag = 'Y'; // card_identity_flag = 'Y';
} // }
} else { // } else {
record.set('ccx_resmsg1', resmsg); // record.set('ccx_resmsg1', resmsg);
if (resmsg == '身份验证成功') { // if (resmsg == '身份验证成功') {
sp_identity_flag = 'Y'; // sp_identity_flag = 'Y';
} // }
//
} // }
//
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); // window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
Leaf.SideBar.show({ // Leaf.SideBar.show({
msg: '${l:HLS.SUBMIT_SUCCESS}', // msg: '${l:HLS.SUBMIT_SUCCESS}',
duration: 2000 // duration: 2000
}); // });
}, // },
failure: function () { // failure: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); // window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}, // },
error: function () { // error: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); // window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}, // },
scope: this, // scope: this,
sync: true // sync: true
}); // });
} // }
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); // window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}, // },
failure: function () { // failure: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); // window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}, // },
error: function () { // error: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); // window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}, // },
scope: this, // scope: this,
sync: true // sync: true
}); // });
} }
if (value.length == 18) { if (value.length == 18) {
......
...@@ -11,16 +11,16 @@ ...@@ -11,16 +11,16 @@
<a:link id="get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/> <a:link id="get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() { window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master'); var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
var record = $(ds_id).getCurrentRecord(); var record = $(ds_id).getCurrentRecord();
if ($(ds_id).validate()) { if ($(ds_id).validate()) {
record.set('function_code', 'HLS213D'); record.set('function_code', 'HLS213D');
record.set('function_usage', 'CREATE'); record.set('function_usage', 'CREATE');
record.set('default_value_dsid', ds_id); record.set('default_value_dsid', ds_id);
record.data['url_title'] = '商业伙伴创建'; record.data['url_title'] = '商业伙伴创建';
var param = record.data; var param = record.data;
hls_doc_get_layout_code('get_layout_code_link_id', param, 'hls_bp_master_link', null, '${/parameter/@layout_code}'); hls_doc_get_layout_code('get_layout_code_link_id', param, 'hls_bp_master_link', null, '${/parameter/@layout_code}');
} }
}; };
//更新时调用 //更新时调用
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value, bp_seq){ window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value, bp_seq){
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
<a:link id="hls214N_cdd_downloadFile_id" url="${/request/@context_path}/downloadFile.lview"/> <a:link id="hls214N_cdd_downloadFile_id" url="${/request/@context_path}/downloadFile.lview"/>
<a:link id="${/parameter/@layout_code}_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/> <a:link id="${/parameter/@layout_code}_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
<a:link id="hls214_bp_master_save_link_id" model="hls.HLS214.hls_bp_change_agent" modelaction="update"/> <a:link id="hls214_bp_master_save_link_id" model="hls.HLS214.hls_bp_change_agent" modelaction="update"/>
<a:link id="hls214_sap_eai_create_customer_link" url="${/request/@context_path}/modules/interface/INTERFACE_EAI/hls_sap_eai_CrCustomer.lsc"/> <!-- <a:link id="hls214_sap_eai_create_customer_link" url="${/request/@context_path}/modules/interface/INTERFACE_EAI/hls_sap_eai_CrCustomer.lsc"/>-->
<a:link id="hls214_sap_eai_create_vender_link" url="${/request/@context_path}/modules/interface/INTERFACE_EAI/hls_sap_eai_CrVender.lsc"/> <!-- <a:link id="hls214_sap_eai_create_vender_link" url="${/request/@context_path}/modules/interface/INTERFACE_EAI/hls_sap_eai_CrVender.lsc"/>-->
<script src="${/request/@context_path}/javascripts/identity_card_info_query.js" <script src="${/request/@context_path}/javascripts/identity_card_info_query.js"
type="text/javascript"></script> type="text/javascript"></script>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
...@@ -33,41 +33,41 @@ ...@@ -33,41 +33,41 @@
var bp_record = $(bp_ds_id).getCurrentRecord(); var bp_record = $(bp_ds_id).getCurrentRecord();
var bp_id = bp_record.get('bp_id'); var bp_id = bp_record.get('bp_id');
Leaf.request({ // Leaf.request({
url: $('hls214_sap_eai_create_customer_link').getUrl(), // url: $('hls214_sap_eai_create_customer_link').getUrl(),
para: { // para: {
bp_id: bp_id // bp_id: bp_id
}, // },
scope: this, // scope: this,
success: function () { // success: function () {
Leaf.request({ // Leaf.request({
url: $('hls214_sap_eai_create_vender_link').getUrl(), // url: $('hls214_sap_eai_create_vender_link').getUrl(),
para: { // para: {
bp_id: bp_id // bp_id: bp_id
}, // },
scope: this, // scope: this,
success: function () { // success: function () {
$(bp_ds_id).query(); // $(bp_ds_id).query();
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); // window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}, // },
failure: function () { // failure: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); // window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}, // },
error: function () { // error: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); // window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}, // },
sync: true // sync: true
}); // });
}, // },
failure: function () { // failure: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); // window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}, // },
error: function () { // error: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); // window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}, // },
sync: true // sync: true
}); // });
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}; };
function prj_check_bp_id(record) { function prj_check_bp_id(record) {
......
...@@ -26,6 +26,12 @@ ...@@ -26,6 +26,12 @@
<script src="${/request/@context_path}/javascripts/hap/dynamicStopAutoQuery.js" type="text/javascript"/> <script src="${/request/@context_path}/javascripts/hap/dynamicStopAutoQuery.js" type="text/javascript"/>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
//信息变更
window['${/parameter/@layout_code}_user_button4_layout_dynamic_click'] = function () {
}
stopDymanicAutoQuery('${/parameter/@layout_code}', 'G_BP_RESULT', 'hls_bp_master'); stopDymanicAutoQuery('${/parameter/@layout_code}', 'G_BP_RESULT', 'hls_bp_master');
function open_bp_modify_win(ds_id, record_id) { function open_bp_modify_win(ds_id, record_id) {
......
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