Commit 684dcbce authored by gzj34291's avatar gzj34291

建行两方

parent b26f88ff
...@@ -165,6 +165,7 @@ ...@@ -165,6 +165,7 @@
<a:datas> <a:datas>
<!-- <a:record code_value="AGRI_THREE" code_value_name="农行扣款(三方)"/>--> <!-- <a:record code_value="AGRI_THREE" code_value_name="农行扣款(三方)"/>-->
<a:record code_value="CCB_THREE" code_value_name="建行扣款(三方)"/> <a:record code_value="CCB_THREE" code_value_name="建行扣款(三方)"/>
<a:record code_value="CCB_TWO" code_value_name="建行扣款(两方)"/>
<!-- <a:record code_value="AGRI_TWO" code_value_name="农行扣款(两方)"/>--> <!-- <a:record code_value="AGRI_TWO" code_value_name="农行扣款(两方)"/>-->
</a:datas> </a:datas>
</a:dataSet> </a:dataSet>
...@@ -192,7 +193,7 @@ ...@@ -192,7 +193,7 @@
</a:field> </a:field>
<a:field name="bp_id_agent" /> <a:field name="bp_id_agent" />
<a:field name="bp_id_tenant"/> <a:field name="bp_id_tenant"/>
<a:field name="contract_number" lovGridHeight="350" lovHeight="500" lovService="ccb.CCB600.con_contract_lov?pay_method=CCB_THREE" lovWidth="470" title="合同"> <a:field name="contract_number" lovGridHeight="350" lovHeight="500" lovService="ccb.CCB600.con_contract_lov?pay_method=${@pay_method}" lovWidth="470" title="合同">
<a:mapping> <a:mapping>
<a:map from="contract_id" to="contract_id"/> <a:map from="contract_id" to="contract_id"/>
<a:map from="contract_number" to="contract_number"/> <a:map from="contract_number" to="contract_number"/>
...@@ -226,8 +227,8 @@ ...@@ -226,8 +227,8 @@
</a:mapping> </a:mapping>
</a:field> </a:field>
<a:field name="currency_name" readOnly="true"/> <a:field name="currency_name" readOnly="true"/>
<a:field name="pay_method_desc" defaultValue="建行扣款(三方)" required="true" prompt="支付方式" displayField="code_value_name" options="pay_methods_ds" returnField="pay_method" valueField="code_value"/> <a:field name="pay_method_desc" required="true" prompt="支付方式" displayField="code_value_name" options="pay_methods_ds" returnField="pay_method" valueField="code_value"/>
<a:field name="pay_method" defaultValue="CCB_THREE"/> <a:field name="pay_method" />
<a:field name="bank_account_name" readOnly="true"/> <a:field name="bank_account_name" readOnly="true"/>
<a:field name="bank_name" readOnly="true"/> <a:field name="bank_name" readOnly="true"/>
<a:field name="currency" readOnly="true"/> <a:field name="currency" readOnly="true"/>
...@@ -245,7 +246,7 @@ ...@@ -245,7 +246,7 @@
selectable="true"> selectable="true">
</a:dataSet> </a:dataSet>
<a:dataSet id="hls_ccb_grid_ln_ds" fetchAll="true" queryDataSet="hls_ccb_form_query_ds" model="ccb.CCB600.hls_ebank_batch_ln" queryUrl="${/request/@context_path}/autocrud/ccb.CCB600.con_contract_cashflow_query/query?pay_method=CCB_THREE"> <a:dataSet id="hls_ccb_grid_ln_ds" fetchAll="true" queryDataSet="hls_ccb_form_query_ds" model="ccb.CCB600.hls_ebank_batch_ln" queryUrl="${/request/@context_path}/autocrud/ccb.CCB600.con_contract_cashflow_query/query?pay_method=${@pay_method}">
<a:fields> <a:fields>
<a:field name="cashflow_id"/> <a:field name="cashflow_id"/>
<a:field name="bp_tenant_name" readOnly="true"/> <a:field name="bp_tenant_name" readOnly="true"/>
......
...@@ -253,7 +253,7 @@ ...@@ -253,7 +253,7 @@
function export_batch() { function export_batch() {
var r = $('hls_ccb_batch_result_ds').getCurrentRecord(); var r = $('hls_ccb_batch_result_ds').getCurrentRecord();
if (r) { if (r) {
if (r.get('pay_method') == 'CCB_THREE') {//建行 if (r.get('pay_method') == 'CCB_THREE'||r.get('pay_method') == 'CCB_TWO') {//建行
$('hls_ccb_batch_merge_result_grid')._export(); $('hls_ccb_batch_merge_result_grid')._export();
} else if (r.get('pay_method') == 'AGRI_TWO' || r.get('pay_method') == 'AGRI_THREE') { } else if (r.get('pay_method') == 'AGRI_TWO' || r.get('pay_method') == 'AGRI_THREE') {
$('hls_abc_batch_merge_result_grid')._export(); $('hls_abc_batch_merge_result_grid')._export();
...@@ -272,7 +272,7 @@ ...@@ -272,7 +272,7 @@
var pay_method = record.get('pay_method'); var pay_method = record.get('pay_method');
var due_date_to = new Date(record.get('due_date')).format('yyyy-mm-dd').toString(); var due_date_to = new Date(record.get('due_date')).format('yyyy-mm-dd').toString();
var bank_type; var bank_type;
if (pay_method == 'CCB_THREE') { if (pay_method == 'CCB_THREE'||pay_method == 'CCB_TWO') {
bank_type = 'CCB'; bank_type = 'CCB';
str = '建行'; str = '建行';
} else if (pay_method == 'AGRI_TWO' || pay_method == 'AGRI_THREE') { } else if (pay_method == 'AGRI_TWO' || pay_method == 'AGRI_THREE') {
...@@ -372,6 +372,7 @@ ...@@ -372,6 +372,7 @@
width="100"/> width="100"/>
<a:column name="total_success_count" align="right" prompt="扣款成功账号数" width="100"/> <a:column name="total_success_count" align="right" prompt="扣款成功账号数" width="100"/>
<a:column name="message" align="right" prompt="错误消息" width="150"/> <a:column name="message" align="right" prompt="错误消息" width="150"/>
<a:column name="pay_method_desc" align="center" prompt="支付方式" width="120"/>
</a:columns> </a:columns>
</a:grid> </a:grid>
<a:grid hidden="true" width="1" height="1" id="hls_ccb_batch_merge_result_grid" <a:grid hidden="true" width="1" height="1" id="hls_ccb_batch_merge_result_grid"
...@@ -390,23 +391,23 @@ ...@@ -390,23 +391,23 @@
<a:column prompt="备注(选填)"/> <a:column prompt="备注(选填)"/>
</a:columns> </a:columns>
</a:grid> </a:grid>
<!-- <a:grid hidden="true" width="1" height="1" id="hls_abc_batch_merge_result_grid"--> <!-- <a:grid hidden="true" width="1" height="1" id="hls_abc_batch_merge_result_grid"-->
<!-- bindTarget="hls_ccb_batch_merge_result_ds">--> <!-- bindTarget="hls_ccb_batch_merge_result_ds">-->
<!-- <a:columns>--> <!-- <a:columns>-->
<!-- <a:column name="abc_sequence_num" prompt="serial-no"/>--> <!-- <a:column name="abc_sequence_num" prompt="serial-no"/>-->
<!-- <a:column name="abc_pay_type" prompt="pay-type"/>--> <!-- <a:column name="abc_pay_type" prompt="pay-type"/>-->
<!-- <a:column name="abc_transaction_type" prompt="transaction-type"/>--> <!-- <a:column name="abc_transaction_type" prompt="transaction-type"/>-->
<!-- <a:column name="csh_bank_account_num" prompt="account-no"/>--> <!-- <a:column name="csh_bank_account_num" prompt="account-no"/>-->
<!-- <a:column name="csh_bank_account_name" prompt="account-name"/>--> <!-- <a:column name="csh_bank_account_name" prompt="account-name"/>-->
<!-- <a:column name="bank_account_num" prompt="payee-account-to"/>--> <!-- <a:column name="bank_account_num" prompt="payee-account-to"/>-->
<!-- <a:column name="bank_account_name" prompt="payee-name"/>--> <!-- <a:column name="bank_account_name" prompt="payee-name"/>-->
<!-- <a:column name="abc_payee_bank" prompt="payee-bank"/>--> <!-- <a:column name="abc_payee_bank" prompt="payee-bank"/>-->
<!-- <a:column name="abc_usage" prompt="usage"/>--> <!-- <a:column name="abc_usage" prompt="usage"/>-->
<!-- <a:column name="abc_fen_code" prompt="fen-code"/>--> <!-- <a:column name="abc_fen_code" prompt="fen-code"/>-->
<!-- <a:column name="abc_curr_flag" prompt="curr-flag"/>--> <!-- <a:column name="abc_curr_flag" prompt="curr-flag"/>-->
<!-- <a:column name="actual_amount" align="right" renderer="Leaf.formatMoney" prompt="amount"/>--> <!-- <a:column name="actual_amount" align="right" renderer="Leaf.formatMoney" prompt="amount"/>-->
<!-- </a:columns>--> <!-- </a:columns>-->
<!-- </a:grid>--> <!-- </a:grid>-->
</a:screenBody> </a:screenBody>
</a:view> </a:view>
</a:screen> </a:screen>
...@@ -247,7 +247,7 @@ ...@@ -247,7 +247,7 @@
record.getField('bank_account_id').setRequired(true); record.getField('bank_account_id').setRequired(true);
record.getField('bank_account_id_n').setRequired(true); record.getField('bank_account_id_n').setRequired(true);
record.set('withhold_way', 'ABC_2'); record.set('withhold_way', 'ABC_2');
} else if (value == 'CCB_THREE') { } else if (value == 'CCB_THREE'||value == 'CCB_TWO') {
record.getField('bank_account_id').setReadOnly(false); record.getField('bank_account_id').setReadOnly(false);
record.getField('bank_account_id_n').setReadOnly(false); record.getField('bank_account_id_n').setReadOnly(false);
record.getField('bank_account_id').setRequired(true); record.getField('bank_account_id').setRequired(true);
...@@ -258,7 +258,7 @@ ...@@ -258,7 +258,7 @@
//新增 “限制金额”字段; //新增 “限制金额”字段;
//“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改; //“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改;
if (name == 'pay_method') { if (name == 'pay_method') {
if (value == 'CCB_THREE') { if (value == 'CCB_THREE'||value == 'CCB_TWO') {
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_DEDUCTION_LIMIT_prompt').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_DEDUCTION_LIMIT_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_DEDUCTION_LIMIT').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_DEDUCTION_LIMIT').style.display = 'block';
record.getField('deduction_limit').setRequired(true); record.getField('deduction_limit').setRequired(true);
...@@ -300,7 +300,7 @@ ...@@ -300,7 +300,7 @@
record.getField('bank_account_id').setRequired(true); record.getField('bank_account_id').setRequired(true);
record.getField('bank_account_id_n').setRequired(true); record.getField('bank_account_id_n').setRequired(true);
record.set('withhold_way', 'ABC_2'); record.set('withhold_way', 'ABC_2');
} else if (value == 'CCB_THREE') { } else if (value == 'CCB_THREE'||value == 'CCB_TWO') {
record.getField('bank_account_id').setReadOnly(false); record.getField('bank_account_id').setReadOnly(false);
record.getField('bank_account_id_n').setReadOnly(false); record.getField('bank_account_id_n').setReadOnly(false);
record.getField('bank_account_id').setRequired(true); record.getField('bank_account_id').setRequired(true);
...@@ -311,7 +311,7 @@ ...@@ -311,7 +311,7 @@
//新增 “限制金额”字段; //新增 “限制金额”字段;
//“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改; //“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改;
if (name == 'pay_method') { if (name == 'pay_method') {
if (value == 'CCB_THREE') { if (value == 'CCB_THREE'|| value == 'CCB_TWO') {
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_DEDUCTION_LIMIT_prompt').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_DEDUCTION_LIMIT_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_DEDUCTION_LIMIT').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_DEDUCTION_LIMIT').style.display = 'block';
record.getField('deduction_limit').setRequired(true); record.getField('deduction_limit').setRequired(true);
...@@ -399,7 +399,7 @@ ...@@ -399,7 +399,7 @@
if ('${/parameter/@layout_code}' == 'CON_ACCOUNT_CHANGE_MODIFY' || '${/parameter/@layout_code}' == 'CON_TENANT_CHANGE_MODIFY') { if ('${/parameter/@layout_code}' == 'CON_ACCOUNT_CHANGE_MODIFY' || '${/parameter/@layout_code}' == 'CON_TENANT_CHANGE_MODIFY') {
//新增 “限制金额”字段; //新增 “限制金额”字段;
//“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改; //“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改;
if (record.get('pay_method') == 'CCB_THREE') { if (record.get('pay_method') == 'CCB_THREE'||record.get('pay_method') == 'CCB_TWO') {
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_DEDUCTION_LIMIT_prompt').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_DEDUCTION_LIMIT_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_DEDUCTION_LIMIT').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_DEDUCTION_LIMIT').style.display = 'block';
record.getField('deduction_limit').setRequired(true); record.getField('deduction_limit').setRequired(true);
...@@ -411,7 +411,7 @@ ...@@ -411,7 +411,7 @@
} }
//原楼扣款限额隐藏 //原楼扣款限额隐藏
if ('${/parameter/@layout_code}' == 'CON_ACCOUNT_CHANGE_MODIFY') { if ('${/parameter/@layout_code}' == 'CON_ACCOUNT_CHANGE_MODIFY') {
if (record.get('pay_method_old') == 'CCB_THREE') { if (record.get('pay_method_old') == 'CCB_THREE'||record.get('pay_method') == 'CCB_TWO') {
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_DEDUCTION_LIMIT_S_prompt').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_DEDUCTION_LIMIT_S_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_DEDUCTION_LIMIT_S').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_01_CON_CONTRACT_DEDUCTION_LIMIT_S').style.display = 'block';
} else { } else {
...@@ -839,7 +839,7 @@ ...@@ -839,7 +839,7 @@
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');
if (ds_id == ds.id && ds_id) { if (ds_id == ds.id && ds_id) {
if ('${/parameter/@layout_code}' == 'CON_ACCOUNT_CHANGE_MODIFY' || '${/parameter/@layout_code}' == 'CON_TENANT_CHANGE_MODIFY') { if ('${/parameter/@layout_code}' == 'CON_ACCOUNT_CHANGE_MODIFY' || '${/parameter/@layout_code}' == 'CON_TENANT_CHANGE_MODIFY') {
if (record.get('pay_method') == 'CCB_THREE') { if (record.get('pay_method') == 'CCB_THREE'||record.get('pay_method') == 'CCB_TWO') {
if (record.get('deduction_limit') <= 0) { if (record.get('deduction_limit') <= 0) {
Leaf.showMessage('${l:HLS.PROMPT}', '扣款限额应大于0'); Leaf.showMessage('${l:HLS.PROMPT}', '扣款限额应大于0');
return false; return false;
......
...@@ -370,7 +370,7 @@ ...@@ -370,7 +370,7 @@
var score_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail'); var score_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail');
var bp_tenant_detail_r = $(score_ds_id).getCurrentRecord(); var bp_tenant_detail_r = $(score_ds_id).getCurrentRecord();
if (prj_project_ds_id == ds.id && prj_project_ds_id) { if (prj_project_ds_id == ds.id && prj_project_ds_id) {
if (record.get('pay_method') == 'CCB_THREE' && record.get('deduction_limit') <=0) { if ((record.get('pay_method') == 'CCB_THREE'||record.get('pay_method') == 'CCB_TWO') && record.get('deduction_limit') <=0) {
Leaf.showMessage('${l:HLS.PROMPT}', '扣款限额应大于0'); Leaf.showMessage('${l:HLS.PROMPT}', '扣款限额应大于0');
return false; return false;
} }
...@@ -614,8 +614,27 @@ ...@@ -614,8 +614,27 @@
return returnAge;//返回周岁年龄   return returnAge;//返回周岁年龄  
} }
var division=''; var division='';
//新增和加载时调用(form)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function (ds, record, config_records, bp_seq) { window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function (ds, record, config_records, bp_seq) {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project'); var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var tenant_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC_INFO_1', 'prj_project');
if(tenant_ds_id == ds.id){
//debugger;
if (Leaf.isEmpty(record.get('send_message'))){
record.set('send_message', 'YES');
record.set('send_message_n', '是');
record.getField('cell_phone').setRequired(true);
} else if( record.get('send_message') == 'YES'){
record.getField('cell_phone').setRequired(true);
}
if (Leaf.isEmpty(record.get('cell_phone'))){
record.set('cell_phone', record.get('phone_number'));
}
}
var prj_quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation'); var prj_quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation');
if (prj_quotation_ds_id == ds.id && prj_quotation_ds_id) { if (prj_quotation_ds_id == ds.id && prj_quotation_ds_id) {
debugger; debugger;
...@@ -734,8 +753,8 @@ ...@@ -734,8 +753,8 @@
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE').style.display = 'none';
} }
//新增 “限制金额”字段; //新增 “限制金额”字段;
//“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改; //“扣款限额”:“租金支付方式”为“建行扣款(三方)”或"建行扣款(两方)"时展示,必填,大于0,默认20万,可修改;
if (record.get('PAY_METHOD') == 'CCB_THREE') { if (record.get('PAY_METHOD') == 'CCB_THREE'||record.get('PAY_METHOD') == 'CCB_TWO') {
document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT_prompt').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT').style.display = 'block';
record.getField('deduction_limit').setRequired(true); record.getField('deduction_limit').setRequired(true);
...@@ -765,6 +784,31 @@ ...@@ -765,6 +784,31 @@
var prj_project_history_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'T_HISTORY_INGO', 'hls_bp_master'); var prj_project_history_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'T_HISTORY_INGO', 'hls_bp_master');
var score_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail'); var score_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail');
var tenant_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC_INFO_1', 'prj_project');
if(tenant_ds_id == ds.id&&tenant_ds_id){
if(name == 'send_message_n'){
if(value=='是'){
record.getField('cell_phone').setRequired(true);
} else if(value=='否'){
record.getField('cell_phone').setRequired(false);
}
}
}
var lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
if (lease_item_ds_id == ds.id && lease_item_ds_id) {
if(division=='30'||division=='50'||division=='80'){
record.getField('set_number').setRequired(true);
}else{
record.getField('set_number').setReadOnly(true);
if(Ext.isEmpty(record.get('set_number'))){
record.set('set_number',1);
}
}
}
var lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item'); var lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
if (lease_item_ds_id == ds.id && lease_item_ds_id) { if (lease_item_ds_id == ds.id && lease_item_ds_id) {
if(division=='70'){ if(division=='70'){
...@@ -918,9 +962,10 @@ ...@@ -918,9 +962,10 @@
} }
//新增 “限制金额”字段; //新增 “限制金额”字段;
//“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改; //“扣款限额”:“租金支付方式”为“建行扣款(三方)或建行扣款(两方)”时展示,必填,大于0,默认20万,可修改;
if (name=='pay_method') { if (name=='pay_method') {
if(value=='CCB_THREE'){ debugger;
if(value=='CCB_THREE'||value=='CCB_TWO'){
document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT_prompt').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT').style.display = 'block';
record.getField('deduction_limit').setRequired(true); record.getField('deduction_limit').setRequired(true);
...@@ -1020,6 +1065,7 @@ ...@@ -1020,6 +1065,7 @@
record.getField('modelcd').setReadOnly(true); record.getField('modelcd').setReadOnly(true);
} }
} }
} }
if (bp_ds_id == ds.id && bp_ds_id) { if (bp_ds_id == ds.id && bp_ds_id) {
if (record.get('bp_category') == 'TENANT') { if (record.get('bp_category') == 'TENANT') {
......
...@@ -812,7 +812,7 @@ ...@@ -812,7 +812,7 @@
//新增 “限制金额”字段; //新增 “限制金额”字段;
//“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改; //“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改;
if (name=='pay_method') { if (name=='pay_method') {
if(value=='CCB_THREE'){ if(value=='CCB_THREE'||value=='CCB_TWO'){
document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT_prompt').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT').style.display = 'block';
record.getField('deduction_limit').setRequired(true); record.getField('deduction_limit').setRequired(true);
...@@ -996,7 +996,7 @@ ...@@ -996,7 +996,7 @@
//新增 “限制金额”字段; //新增 “限制金额”字段;
//“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改; //“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改;
if (record.get('pay_method') == 'CCB_THREE') { if (record.get('pay_method') == 'CCB_THREE'||record.get('pay_method') == 'CCB_TWO') {
document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT_prompt').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT').style.display = 'block';
record.getField('deduction_limit').setRequired(true); record.getField('deduction_limit').setRequired(true);
...@@ -1651,7 +1651,7 @@ ...@@ -1651,7 +1651,7 @@
var score_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail'); var score_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail');
var bp_tenant_detail_r = $(score_ds_id).getCurrentRecord(); var bp_tenant_detail_r = $(score_ds_id).getCurrentRecord();
if (prj_project_ds_id == ds.id && prj_project_ds_id) { if (prj_project_ds_id == ds.id && prj_project_ds_id) {
if (record.get('pay_method') == 'CCB_THREE' && record.get('deduction_limit') <= 0) { if ((record.get('pay_method') == 'CCB_THREE'||record.get('pay_method') == 'CCB_TWO') && record.get('deduction_limit') <= 0) {
Leaf.showMessage('${l:HLS.PROMPT}', '扣款限额应大于0'); Leaf.showMessage('${l:HLS.PROMPT}', '扣款限额应大于0');
return false; return false;
} }
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <!--
$Author: wangwei5743 $Author: wangwei5743
$Date: 2014-10-8 下午3:16:19 $Date: 2014-10-8 下午3:16:19
$Revision: 1.0 $Revision: 1.0
$purpose: 租赁申请创建 创建界面 $purpose: 租赁申请创建 创建界面
--> -->
<a:screen xmlns:a="http://www.leaf-framework.org/application" xmlns:s="leaf.plugin.script" <a:screen xmlns:a="http://www.leaf-framework.org/application" xmlns:s="leaf.plugin.script"
customizationEnabled="true" dynamiccreateenabled="true" trace="true"> customizationEnabled="true" dynamiccreateenabled="true" trace="true">
...@@ -135,10 +135,10 @@ ...@@ -135,10 +135,10 @@
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}'); Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
return; return;
} }
if (record.dirty == true) { if (record.dirty == true) {
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}'); Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
return; return;
} }
if ($(quotation_ds_id).validate()) { if ($(quotation_ds_id).validate()) {
/* if (!record.get('price_list') || !record.get('currency') || !record.get('lease_times')) { /* if (!record.get('price_list') || !record.get('currency') || !record.get('lease_times')) {
Leaf.showMessage('${l:PROMPT}', '${l:HLS.QUOTATION_EXECUTE_AFTER_SAVE}'); Leaf.showMessage('${l:PROMPT}', '${l:HLS.QUOTATION_EXECUTE_AFTER_SAVE}');
...@@ -312,10 +312,10 @@ ...@@ -312,10 +312,10 @@
var score_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail'); var score_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail');
var bp_tenant_detail_r = $(score_ds_id).getCurrentRecord(); var bp_tenant_detail_r = $(score_ds_id).getCurrentRecord();
if (prj_project_ds_id == ds.id && prj_project_ds_id) { if (prj_project_ds_id == ds.id && prj_project_ds_id) {
if (record.get('pay_method') == 'CCB_THREE' && record.get('deduction_limit') < 0) { if ((record.get('pay_method') == 'CCB_THREE' ||record.get('pay_method') == 'CCB_TWO') && record.get('deduction_limit') < 0) {
Leaf.showMessage('${l:HLS.PROMPT}', '扣款限额不能小于0'); Leaf.showMessage('${l:HLS.PROMPT}', '扣款限额不能小于0');
return false; return false;
} }
if (record.get('signing_city')){ if (record.get('signing_city')){
var reg = /^([\u2E80-\u9FFF]){4,}$/; var reg = /^([\u2E80-\u9FFF]){4,}$/;
if (!reg.test(record.get('signing_city'))) { if (!reg.test(record.get('signing_city'))) {
...@@ -474,15 +474,15 @@ ...@@ -474,15 +474,15 @@
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('.BMP') >= 0 || file_name.indexOf('.JPG') >= 0 || file_name.indexOf('.JPEG') >= 0 || file_name.indexOf('.PNG') >= 0 || file_name.indexOf('.GIF') >= 0) { // if (file_name.indexOf('.BMP') >= 0 || file_name.indexOf('.JPG') >= 0 || file_name.indexOf('.JPEG') >= 0 || file_name.indexOf('.PNG') >= 0 || file_name.indexOf('.GIF') >= 0) {
// url = url + '<a href=' + link + temp[1] + ' ref="img">' + temp[0] + '</a>' + ','; // url = url + '<a href=' + link + temp[1] + ' ref="img">' + temp[0] + '</a>' + ',';
// } // }
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 ref="img" href=' + link + temp[1] + '>' + temp[0] + '</a>' + ','; // url = url + '<a ref="img" href=' + link + temp[1] + '>' + temp[0] + '</a>' + ',';
link_function = 'show_viewer_more'; link_function = 'show_viewer_more';
url = url + '<a href="javascript:window[\'' + link_function + '\'](\'' + link + '\',\'' + temp[1] + '\',\'' + temp[0] + '\',\'' + value + '\');">' + temp[0] + '</a>' + ','; url = url + '<a href="javascript:window[\'' + link_function + '\'](\'' + link + '\',\'' + temp[1] + '\',\'' + temp[0] + '\',\'' + value + '\');">' + 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>' + ',';
} }
} }
...@@ -849,10 +849,10 @@ ...@@ -849,10 +849,10 @@
//业务类型回租时,默认只读“首付款抵扣”选项 //业务类型回租时,默认只读“首付款抵扣”选项
if (record.get('business_type') == 'LEASEBACK') { if (record.get('business_type') == 'LEASEBACK') {
// record.set('payment_deduction', 'DOWN_PAYMENT_DEDUCTION'); // record.set('payment_deduction', 'DOWN_PAYMENT_DEDUCTION');
// record.set('payment_deduction_n', "首付款抵扣"); // record.set('payment_deduction_n', "首付款抵扣");
// record.getField('payment_deduction').setReadOnly(true); // record.getField('payment_deduction').setReadOnly(true);
// record.getField('payment_deduction_n').setReadOnly(true); // record.getField('payment_deduction_n').setReadOnly(true);
record.set('pay_method', 'WIRE_TRANSFER'); record.set('pay_method', 'WIRE_TRANSFER');
record.set('pay_method_n', "电汇"); record.set('pay_method_n', "电汇");
record.getField('pay_method').setReadOnly(true); record.getField('pay_method').setReadOnly(true);
...@@ -880,37 +880,37 @@ ...@@ -880,37 +880,37 @@
//获取员工类型 //获取员工类型
var create_bp_code = '${/model/approve_history_rp/record/@bp_code}'; var create_bp_code = '${/model/approve_history_rp/record/@bp_code}';
var credit_record = $(ds_id).getCurrentRecord(); var credit_record = $(ds_id).getCurrentRecord();
if(!Ext.isEmpty(create_bp_code)){ if(!Ext.isEmpty(create_bp_code)){
debugger; debugger;
if(create_bp_code == 'D00000029' || create_bp_code == 'D00000026' || create_bp_code == 'D00000030' || create_bp_code == 'D00000031'){ if(create_bp_code == 'C00010180' || create_bp_code == 'C00010175' || create_bp_code == 'C00010176' || create_bp_code == 'C00010187'){
if('${/parameter/@editable_flag}' == 'Y' || '${/parameter/@editable_flag}' == 'YE'){ if('${/parameter/@editable_flag}' == 'Y' || '${/parameter/@editable_flag}' == 'YE'){
credit_record.getField('credit_line').setReadOnly(false); credit_record.getField('credit_line').setReadOnly(false);
credit_record.getField('credit_line_n').setReadOnly(false); credit_record.getField('credit_line_n').setReadOnly(false);
credit_record.getField('credit_line').setRequired(true); credit_record.getField('credit_line').setRequired(true);
credit_record.getField('credit_line_n').setRequired(true); credit_record.getField('credit_line_n').setRequired(true);
record.set('editable_flag','Y'); record.set('editable_flag','Y');
}else {
document.getElementById('${/parameter/@layout_code}_save').style.display = "none";
}
}else if(create_bp_code =='X00010005' || create_bp_code =='J00010006') {
credit_record.getField('credit_line').setReadOnly(true);
credit_record.getField('credit_line_n').setReadOnly(true);
credit_record.getField('credit_line').setRequired(false);
credit_record.getField('credit_line_n').setRequired(false);
if('${/parameter/@editable_flag}' != 'YE'){
document.getElementById('${/parameter/@layout_code}_save').style.display = "none";
}
}else if('${/parameter/@editable_flag}' != 'YE'){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE').style.display = 'none';
if(document.getElementById('${/parameter/@layout_code}_save')){
document.getElementById('${/parameter/@layout_code}_save').style.display = "none";
}
}else { }else {
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_save').style.display = "none";
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE').style.display = 'none'; }
}else if(create_bp_code =='D00010001') {
credit_record.getField('credit_line').setReadOnly(true);
credit_record.getField('credit_line_n').setReadOnly(true);
credit_record.getField('credit_line').setRequired(false);
credit_record.getField('credit_line_n').setRequired(false);
if('${/parameter/@editable_flag}' != 'YE'){
document.getElementById('${/parameter/@layout_code}_save').style.display = "none";
}
}else if('${/parameter/@editable_flag}' != 'YE'){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE').style.display = 'none';
if(document.getElementById('${/parameter/@layout_code}_save')){
document.getElementById('${/parameter/@layout_code}_save').style.display = "none";
} }
}else {
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE').style.display = 'none';
} }
}
} }
if (prj_quotation_ds_id == ds.id && prj_quotation_ds_id){ if (prj_quotation_ds_id == ds.id && prj_quotation_ds_id){
if(division!='70'&&division!=''){ if(division!='70'&&division!=''){
...@@ -983,9 +983,9 @@ ...@@ -983,9 +983,9 @@
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'none'; document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'none';
if('${/parameter/@function_usage}' == 'QUERY' && '${/parameter/@editable_flag}' != 'YE' && '${/parameter/@editable_flag}' != 'Y' ){ if('${/parameter/@function_usage}' == 'QUERY' && '${/parameter/@editable_flag}' != 'YE' && '${/parameter/@editable_flag}' != 'Y' ){
debugger;
document.getElementById('${/parameter/@layout_code}_save').style.display = "none"; document.getElementById('${/parameter/@layout_code}_save').style.display = "none";
} }
}; };
if('${/parameter/@editable_flag}' == 'Y' || '${/parameter/@editable_flag}' == 'YE'){ if('${/parameter/@editable_flag}' == 'Y' || '${/parameter/@editable_flag}' == 'YE'){
zjwfl5110_ApproveChecker_add('zjwfl5110_submit', function (type) { zjwfl5110_ApproveChecker_add('zjwfl5110_submit', function (type) {
...@@ -1006,6 +1006,21 @@ ...@@ -1006,6 +1006,21 @@
} }
//更新时调用 //更新时调用
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) {
debugger;
var tenant_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC_INFO_1', 'prj_project');
if(tenant_ds_id == ds.id&&tenant_ds_id){
if(name == 'send_message_n'){
if(value=='是'){
record.getField('cell_phone').setRequired(true);
} else if(value=='否'){
record.getField('cell_phone').setRequired(false);
}
}
}
//选择承租人带出开票信息 //选择承租人带出开票信息
var prj_project_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project'); var prj_project_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var prj_project_history_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'T_HISTORY_INGO', 'hls_bp_master'); var prj_project_history_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'T_HISTORY_INGO', 'hls_bp_master');
...@@ -1189,7 +1204,7 @@ ...@@ -1189,7 +1204,7 @@
//新增 “限制金额”字段; //新增 “限制金额”字段;
//“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改; //“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改;
if (name=='pay_method') { if (name=='pay_method') {
if(value=='CCB_THREE'){ if(value=='CCB_THREE' || value=='CCB_TWO'){
document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT_prompt').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT').style.display = 'block'; document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT').style.display = 'block';
record.getField('deduction_limit').setRequired(true); record.getField('deduction_limit').setRequired(true);
...@@ -1273,4 +1288,4 @@ ...@@ -1273,4 +1288,4 @@
]]></script> ]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/> <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
</a:view> </a:view>
</a:screen> </a:screen>
\ No newline at end of file
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