Commit 68f85b63 authored by stone's avatar stone

[fix] 修改bug

parent c02e856e
...@@ -9,7 +9,8 @@ ...@@ -9,7 +9,8 @@
<bm:operations> <bm:operations>
<bm:operation name="query"> <bm:operation name="query">
<bm:query-sql><![CDATA[ <bm:query-sql><![CDATA[
select t1.unit_id, select *
from (select t1.unit_id,
t1.bp_code, t1.bp_code,
t1.enabled_flag, t1.enabled_flag,
t1.bp_category, t1.bp_category,
...@@ -22,6 +23,8 @@ ...@@ -22,6 +23,8 @@
FROM exp_emp_assign_e_v v FROM exp_emp_assign_e_v v
WHERE v.user_id=${/session/@user_id} WHERE v.user_id=${/session/@user_id}
) )
) v #WHERE_CLAUSE#
]]></bm:query-sql> ]]></bm:query-sql>
</bm:operation> </bm:operation>
</bm:operations> </bm:operations>
...@@ -38,6 +41,6 @@ ...@@ -38,6 +41,6 @@
<bm:query-field field="bp_category" queryOperator="like"/> <bm:query-field field="bp_category" queryOperator="like"/>
</bm:query-fields> </bm:query-fields>
<bm:data-filters> <bm:data-filters>
<bm:data-filter enforceOperations="query" expression="t1.enabled_flag=&apos;Y&apos;"/> <bm:data-filter enforceOperations="query" expression="v.enabled_flag=&apos;Y&apos;"/>
</bm:data-filters> </bm:data-filters>
</bm:model> </bm:model>
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
<script><![CDATA[ <script><![CDATA[
function invoice_inf_process(dataset, record, name, value, oldvalue) { function invoice_inf_process(dataset, record, name, value, oldvalue) {
debugger
if(name == 'invoice') { if(name == 'invoice') {
record.getField('invoice').setReadOnly(true); record.getField('invoice').setReadOnly(true);
var contract_id = record.get('contract_id'); var contract_id = record.get('contract_id');
...@@ -18,7 +19,7 @@ ...@@ -18,7 +19,7 @@
var net_amount = strs[4]; var net_amount = strs[4];
var invoice_date = strs[5]; var invoice_date = strs[5];
//检验设备价格需要大于不含税金额 //检验设备价格需要大于不含税金额
if (strs.length == 8) { if (strs.length ==9) {
Leaf.request({ Leaf.request({
url: $('acp_invoice_inf_import_link').getUrl(), url: $('acp_invoice_inf_import_link').getUrl(),
...@@ -47,7 +48,7 @@ ...@@ -47,7 +48,7 @@
}); });
} else { } else {
// $('acp600_acp_invoice_hd_ds').getAt(0).setReadOnly(true); // $('acp600_acp_invoice_hd_ds').getAt(0).setReadOnly(true);
Leaf.showMessage('提示', '发票信息误!'); Leaf.showMessage('提示', '发票信息有错误!');
record.getField('invoice').setReadOnly(false); record.getField('invoice').setReadOnly(false);
} }
}else { }else {
......
...@@ -227,7 +227,7 @@ ...@@ -227,7 +227,7 @@
</a:field> </a:field>
<a:field name="times"/> <a:field name="times"/>
<a:field name="due_date_to" defaultValue="${/model/sys_time_default_value_list/record/@now_time}"/> <a:field name="due_date_to"/>
<a:field name="project_number_from" lovGridHeight="300" lovHeight="450" lovService="prj.PRJ501.prj_project_for_lov" lovWidth="500" title="ACR510.FIELD.PROJECT_NUMBER_FROM"> <a:field name="project_number_from" lovGridHeight="300" lovHeight="450" lovService="prj.PRJ501.prj_project_for_lov" lovWidth="500" title="ACR510.FIELD.PROJECT_NUMBER_FROM">
<a:mapping> <a:mapping>
<a:map from="project_number" to="project_number_from"/> <a:map from="project_number" to="project_number_from"/>
......
...@@ -262,8 +262,8 @@ ...@@ -262,8 +262,8 @@
record.getField('unit_id_n').setReadOnly(true); record.getField('unit_id_n').setReadOnly(true);
record.getField('unit_id_n').setRequired(false); record.getField('unit_id_n').setRequired(false);
}else{ }else{
record.getField('unit_id_n').setReadOnly(false); record.getField('unit_id_n').setReadOnly(true);
record.getField('unit_id_n').setRequired(true); record.getField('unit_id_n').setRequired(false);
} }
} }
......
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
modelaction="update"/> modelaction="update"/>
<a:link id="hls_bp_master_modify_link" <a:link id="hls_bp_master_modify_link"
url="${/request/@context_path}/modules/hls/HLS215N/hls_bp_master_query.lview"/> url="${/request/@context_path}/modules/hls/HLS215N/hls_bp_master_query.lview"/>
<a:link id="hls_bp_master_billing_link"
url="${/request/@context_path}/modules/hls/HLS214N/hls_bp_master_billing.lview"/>
<a:link id="hls_bp_ccx_info_link" <a:link id="hls_bp_ccx_info_link"
url="${/request/@context_path}/modules/hls/HLS236/hls_bp_master_query_ccx_report.lview"/> url="${/request/@context_path}/modules/hls/HLS236/hls_bp_master_query_ccx_report.lview"/>
<a:link id="hls_bp_ccx_icinfo_link" <a:link id="hls_bp_ccx_icinfo_link"
...@@ -20,6 +22,44 @@ ...@@ -20,6 +22,44 @@
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
// stopDymanicAutoQuery('${/parameter/@layout_code}', 'G_BP_RESULT', 'hls_bp_master'); // stopDymanicAutoQuery('${/parameter/@layout_code}', 'G_BP_RESULT', 'hls_bp_master');
//信息变更
window['${/parameter/@layout_code}_user_button4_layout_dynamic_click'] = function () {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'hls_bp_master');
var data=$(ds_id).selected[0];
var bp_class = data.get('bp_class');
if(bp_class == 'NP'){
Leaf.showMessage('${l:PROMPT}', '只有法人类型商业伙伴才有开票信息!');
return false;
}else if(bp_class == 'ORG'){
var invoice_bp_bank_account = data.get('invoice_bp_bank_account');
var invoice_title = data.get('invoice_title');
var invoice_bp_address_phone_num = data.get('invoice_bp_address_phone_num');
var phone =data.get('phone');
var taxpayer_type =data.get('taxpayer_type');
var invoice_bp_bank =data.get('invoice_bp_bank');
var bp_id=data.get('bp_id');
new Leaf.Window({
id: 'hls_bp_master_billing',
url: $('hls_bp_master_billing_link').getUrl(),
params: {
function_code:'HLS214NST',
invoice_bp_bank_account:invoice_bp_bank_account,
invoice_title:invoice_title,
function_usage : 'QUERY',
maintain_type : 'READONLY',
invoice_bp_address_phone_num:invoice_bp_address_phone_num,
phone:phone,
taxpayer_type:taxpayer_type,
invoice_bp_bank:invoice_bp_bank,
bp_id:bp_id
},
title: '开票信息查看',
fullScreen: true
});
}
}
function open_bp_modify_win(ds_id, record_id) { function open_bp_modify_win(ds_id, record_id) {
var record = $(ds_id).findById(record_id); var record = $(ds_id).findById(record_id);
var param = record.data; var param = record.data;
......
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