Commit aae534c5 authored by homunculus's avatar homunculus

Merge branch 'feature/acr_invoice_v4' into develop

parents fb0dd2f1 00bbfc60
WHENEVER SQLERROR EXIT FAILURE ROLLBACK;
WHENEVER OSERROR EXIT FAILURE ROLLBACK;
spool INITIALIZE_ACR516_INVOICE_CLAIM_STATUS_ERROR.log
set feedback off
set define off
<!--系统代码取值-->
BEGIN
sys_message_pkg.delete_message('ACR516_INVOICE_CLAIM_STATUS_ERROR');
sys_message_pkg.insert_message('ACR516_INVOICE_CLAIM_STATUS_ERROR','错误','发票认领状态错误!','ZHS');
END;
commit;
set feedback on
set define on
spool off
exit
\ No newline at end of file
......@@ -14,6 +14,9 @@ SYS_LOAD_SYS_FUNCTION_PKG.SYS_FUNCTION_LOAD('ACR516','发票认领申请','发
SYS_LOAD_SYS_FUNCTION_PKG.SYS_FUNCTION_LOAD('ACR516','发票认领申请','发票认领申请','100','','','modules/acr/ACR516/acr_invoice_claim_application.lview','US',-1);
--分配页面
sys_function_assign_pkg.func_service_load('ACR516','modules/acr/ACR516/acr_invoice_claim_application.lview');
--分配bm
sys_function_assign_pkg.func_bm_load('ACR516','csh.CSH518.hls_cashflow_item_v_lov');
sys_function_assign_pkg.func_bm_load('ACR516','acr.ACR604.acr_invoice_claim_application');
--分配菜单
sys_load_sys_function_grp_pkg.sys_function_group_item_load(p_function_group_code=>'ACR_INVOICE',p_function_code=>'ACR516',p_enabled_flag=>'Y',P_USER_ID=>-1);
end;
......
WHENEVER SQLERROR EXIT FAILURE ROLLBACK;
WHENEVER OSERROR EXIT FAILURE ROLLBACK;
spool REGISTER_ACR517.log
set feedback off
set define off
begin
--页面注册
sys_function_assign_pkg.service_load('modules/acr/ACR517/acr_invoice_claim_confirm.lview','发票认领确认',1,1,0);
--功能定义
SYS_LOAD_SYS_FUNCTION_PKG.SYS_FUNCTION_LOAD('ACR517','发票认领确认','发票认领确认','100','','','modules/acr/ACR517/acr_invoice_claim_confirm.lview','ZHS',-1);
SYS_LOAD_SYS_FUNCTION_PKG.SYS_FUNCTION_LOAD('ACR517','发票认领确认','发票认领确认','100','','','modules/acr/ACR517/acr_invoice_claim_confirm.lview','US',-1);
--分配页面
sys_function_assign_pkg.func_service_load('ACR517','modules/acr/ACR517/acr_invoice_claim_confirm.lview');
--分配bm
sys_function_assign_pkg.func_bm_load('ACR517','csh.CSH518.hls_cashflow_item_v_lov');
sys_function_assign_pkg.func_bm_load('ACR517','acr.ACR605.acr_invoice_claim_confirm');
--分配菜单
sys_load_sys_function_grp_pkg.sys_function_group_item_load(p_function_group_code=>'ACR_INVOICE',p_function_code=>'ACR517',p_enabled_flag=>'Y',P_USER_ID=>-1);
end;
/
commit;
set feedback on
set define on
spool off
exit
<?xml version="1.0" encoding="UTF-8"?>
<!--
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations>
<bm:operation name="query">
......@@ -35,7 +32,8 @@
to_char(t1.accounting_date, 'yyyy-mm-dd') as accounting_date,
t1.CREATE_JE_FLAG,
t1.bp_tax_registry_num,
t1.claim_status
t1.claim_status,
t2.cf_item_desc
FROM acr_invoice_hd_v t1, acr_invoice_contract_cf_v t2
#WHERE_CLAUSE#
ORDER BY t1.invoice_date desc , t1.document_number desc
......@@ -43,12 +41,27 @@
</bm:operation>
<bm:operation name="update">
<bm:update-sql><![CDATA[
BEGIN
acr_invoice_claim_pkg.apply_invoice(p_invoice_hd_id => ${@invoice_hd_id},
p_user_id => ${/session/@user_id});
END;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
<bm:query-fields>
<bm:query-field name="total_amount_f" queryExpression="t1.total_amount &gt;= ${@total_amount_f}"/>
<bm:query-field name="total_amount_t" queryExpression="t1.total_amount &gt;= ${@total_amount_t}"/>
<bm:query-field name="invoice_kind_desc" queryExpression="t1.invoice_kind_desc = ${@invoice_kind_desc}"/>
<bm:query-field name="invoice_status_desc" queryExpression="t1.invoice_status_desc = ${@invoice_status_desc}"/>
<bm:query-field name="claim_status" queryExpression="t1.claim_status = ${@claim_status}"/>
<bm:query-field name="cf_item_desc" queryExpression="t1.cf_item_desc = ${@cf_item_desc}"/>
<bm:query-field name="query_contract_number" queryExpression="exists (select 1 from hls_document_flow_all_v df, con_contract cc where df.contract_id = cc.contract_id and df.ar_invoice_hd_id = t1.invoice_hd_id and cc.contract_number between nvl(${@contract_number_f}, cc.contract_number) and nvl(${@contract_number_t}, cc.contract_number))"/>
<bm:query-field name="query_project_number" queryExpression="exists (select 1 from hls_document_flow_all_v df, prj_project pp where df.ar_invoice_hd_id = t1.invoice_hd_id and df.project_id = pp.project_id and pp.project_number between nvl(${@project_number_f}, pp.project_number) and nvl(${@project_number_t}, pp.project_number))"/>
</bm:query-fields>
<bm:data-filters>
<bm:data-filter enforceOperations="query" expression="t1.contract_id = t2.contract_id"/>
<bm:data-filter enforceOperations="query" expression="t2.write_off_flag = &apos;FULL&apos;"/>
<bm:data-filter name="query" expression="rownum &lt;=1000"/>
</bm:data-filters>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
SELECT t1.document_number,
t1.contract_id,
t1.contract_number,
t1.contract_name,
t2.cf_item,
t2.write_off_flag,
t1.total_amount,
t1.invoice_title,
t1.invoice_kind,
t1.invoice_kind_desc,
t1.invoice_status,
t1.invoice_status_desc,
t1.invoice_number,
t1.bp_agent_name,
t1.vat_invoice_code,
TO_CHAR(t1.invoice_date, 'yyyy-mm-dd') as invoice_date,
t1.invoice_bp_id,
t1.invoice_bp_code,
t1.invoice_bp_name,
t1.tax_amount,
t1.net_amount,
t1.currency,
t1.created_by_name,
t1.created_by,
t1.vat_interface_status_desc,
t1.vat_interface_status,
to_char(t1.accounting_date, 'yyyy-mm-dd') as accounting_date,
t1.CREATE_JE_FLAG,
t1.bp_tax_registry_num,
t1.claim_status,
t2.cf_item_desc
FROM acr_invoice_hd_v t1, acr_invoice_contract_cf_v t2
#WHERE_CLAUSE#
ORDER BY t1.invoice_date desc , t1.document_number desc
]]></bm:query-sql>
</bm:operation>
<!-- <bm:operation name="update">-->
<!-- <bm:update-sql><![CDATA[-->
<!-- BEGIN-->
<!-- -->
<!-- END;-->
<!-- ]]></bm:update-sql>-->
<!-- </bm:operation>-->
</bm:operations>
<bm:query-fields>
<bm:query-field name="total_amount_f" queryExpression="t1.total_amount &gt;= ${@total_amount_f}"/>
<bm:query-field name="total_amount_t" queryExpression="t1.total_amount &gt;= ${@total_amount_t}"/>
<bm:query-field name="invoice_kind_desc" queryExpression="t1.invoice_kind_desc = ${@invoice_kind_desc}"/>
<bm:query-field name="invoice_status_desc" queryExpression="t1.invoice_status_desc = ${@invoice_status_desc}"/>
<bm:query-field name="claim_status" queryExpression="t1.claim_status = ${@claim_status}"/>
<bm:query-field name="cf_item_desc" queryExpression="t1.cf_item_desc = ${@cf_item_desc}"/>
<bm:query-field name="query_contract_number" queryExpression="exists (select 1 from hls_document_flow_all_v df, con_contract cc where df.contract_id = cc.contract_id and df.ar_invoice_hd_id = t1.invoice_hd_id and cc.contract_number between nvl(${@contract_number_f}, cc.contract_number) and nvl(${@contract_number_t}, cc.contract_number))"/>
<bm:query-field name="query_project_number" queryExpression="exists (select 1 from hls_document_flow_all_v df, prj_project pp where df.ar_invoice_hd_id = t1.invoice_hd_id and df.project_id = pp.project_id and pp.project_number between nvl(${@project_number_f}, pp.project_number) and nvl(${@project_number_t}, pp.project_number))"/>
</bm:query-fields>
<bm:data-filters>
<bm:data-filter enforceOperations="query" expression="t1.contract_id = t2.contract_id"/>
<bm:data-filter enforceOperations="query" expression="t2.write_off_flag = &apos;FULL&apos;"/>
<bm:data-filter name="query" expression="rownum &lt;=1000"/>
</bm:data-filters>
</bm:model>
......@@ -7,6 +7,17 @@
<script><![CDATA[
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function () {
}
//超链接渲染
window['${/parameter/@bp_seq}${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record, bp_seq) {
//
var link_function = '';
var invoice_line_id = record.get('invoice_line_id');
window['${/parameter/@bp_seq}${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record;
if (name == 'attachment') {
return '<a href="javascript:attachment_window_open(\'' + invoice_line_id + '\',\'' + record.id + '\',\'' + record.ds.id + '\');">' + '上传' + '</a>';
}
};
]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
</a:view>
......
......@@ -299,7 +299,7 @@
<a:textField name="document_number_t" bindTarget="acr513_invoice_query_ds" prompt="单据号到" width="135"/>
<a:textField name="bp_agent_name" bindTarget="acr513_invoice_query_ds" prompt="代理商" width="135"/>
</a:form>
<a:grid id="acr513_invoice_grid_id" bindTarget="acr513_invoice_result_ds" marginHeight="325"
<a:grid id="acr513_invoice_grid_id" bindTarget="acr513_invoice_result_ds" marginHeight="225"
marginWidth="30" navBar="true">
<a:columns>
<a:column name="document_number" lock="true" prompt="HLS.DOCUMENT_NUMBER"
......
......@@ -13,11 +13,16 @@
$('acr516_invoice_query_ds').reset();
}
function acr516_invoice_apply() {
$('acr516_invoice_result_ds').submitSelected();
}
]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
<a:dataSets>
<a:dataSet id="acr516_invoice_kind_ds" lookupCode="ACR510_INVOICE_KIND"/>
<a:dataSet id="acr516_invoice_statu_ds" lookupCode="ACR510_AR_INVOICE_STATUS"/>
<a:dataSet id="acr516_claim_status_ds" lookupCode="CLAIM_STATUS"/>
<a:dataSet id="cf_item_options">
<a:datas dataSource="/model/hls_cashflow_item_list"/>
</a:dataSet>
......@@ -28,15 +33,22 @@
<a:field name="invoice_kind_desc" displayField="code_value_name" options="acr516_invoice_kind_ds"
returnField="invoice_kind" valueField="code_value"/>
<a:field name="invoice_status_desc" displayField="code_value_name" options="acr516_invoice_statu_ds" returnField="invoice_status" valueField="code_value"/>
<a:field name="total_amount"/>
<a:field name="cf_item"/>
<a:field name="cf_item_n" options="cf_item_options" displayField="description" returnField="cf_item"
valueField="cf_item"/>
<a:field name="cf_item_n" options="cf_item_options" displayField="description" returnField="cf_item" valueField="cf_item"/>
<a:field name="claim_status" options="claim_status_ds" displayField="code_value_name" valueField="code_value" returnField="claim_status"/>
<a:field name="cf_item_desc" autoComplete="true" lovGridHeight="350" lovHeight="500" lovLabelWidth="100" lovService="csh.CSH518.hls_cashflow_item_v_lov?cf_direction=INFLOW" lovWidth="520" title="现金流项目">
<a:mapping>
<a:map from="cf_item" to="cf_item"/>
<a:map from="cf_item_desc" to="cf_item_desc"/>
</a:mapping>
</a:field>
<a:field name="claim_status" displayField="code_value_name" options="acr516_claim_status_ds"
returnField="claim_status" valueField="code_value"/>
</a:fields>
</a:dataSet>
<a:dataSet id="acr516_invoice_result_ds" autoPageSize="true" autoQuery="true"
model="" queryDataSet="acr516_invoice_query_ds" selectable="true">
model="acr.ACR604.acr_invoice_claim_application" queryDataSet="acr516_invoice_query_ds" selectable="true">
</a:dataSet>
</a:dataSets>
<a:screenBody>
......@@ -44,23 +56,23 @@
<a:screenTitle/>
<a:toolbarButton click="acr516_invoice_query" text="HLS.QUERY"/>
<a:toolbarButton click="acr516_invoice_reset" text="HLS.RESET"/>
<a:toolbarButton click="" text="申请"/>
<a:toolbarButton click="acr516_invoice_apply" text="申请"/>
</a:screenTopToolbar>
<a:form marginWidth="30" padding="0" title="查询条件" column="6">
<a:textField name="document_number" bindTarget="" prompt="单据编号" width="135"/>
<a:textField name="contract_number" bindTarget="" prompt="合同编号" width="135"/>
<a:textField name="contract_name" bindTarget="" prompt="合同名称" width="135"/>
<a:lov name="cf_item" bindTarget="" prompt="现金流项目" width="135"/>
<a:numberField name="total_amount_f" allowFormat="true" bindTarget="" prompt="开票金额含税额从" width="135"/>
<a:numberField name="total_amount_t" allowFormat="true" bindTarget="" prompt="开票金额含税额到" width="135"/>
<a:textField name="invoice_title" bindTarget="" prompt="发票抬头"/>
<a:comboBox name="invoice_kind_desc" bindTarget="" prompt="ACR.INVOICE_KIND" width="135"/>
<a:comboBox name="invoice_status_desc" bindTarget="" prompt="发票状态" width="135"/>
<a:textField name="invoice_code" bindTarget="" prompt="发票代码"/>
<a:textField name="invoice_number" bindTarget="" prompt="发票号码" width="135"/>
<a:textField name="claim_status" bindTarget="" prompt="认领状态" width="135"/>
<a:form marginWidth="30" padding="0" title="查询条件" column="4">
<a:textField name="document_number" bindTarget="acr516_invoice_query_ds" prompt="单据编号" width="135"/>
<a:textField name="contract_number" bindTarget="acr516_invoice_query_ds" prompt="合同编号" width="135"/>
<a:textField name="contract_name" bindTarget="acr516_invoice_query_ds" prompt="合同名称" width="135"/>
<a:lov name="cf_item_desc" bindTarget="acr516_invoice_query_ds" prompt="现金流项目" width="135"/>
<a:numberField name="total_amount_f" allowFormat="true" bindTarget="acr516_invoice_query_ds" prompt="开票金额含税额从" width="135"/>
<a:numberField name="total_amount_t" allowFormat="true" bindTarget="acr516_invoice_query_ds" prompt="开票金额含税额到" width="135"/>
<a:textField name="invoice_title" bindTarget="acr516_invoice_query_ds" prompt="发票抬头" width="135"/>
<a:comboBox name="invoice_kind_desc" bindTarget="acr516_invoice_query_ds" prompt="ACR.INVOICE_KIND" width="135"/>
<a:comboBox name="invoice_status_desc" bindTarget="acr516_invoice_query_ds" prompt="发票状态" width="135"/>
<a:textField name="invoice_code" bindTarget="acr516_invoice_query_ds" prompt="发票代码" width="135"/>
<a:textField name="invoice_number" bindTarget="acr516_invoice_query_ds" prompt="发票号码" width="135"/>
<a:comboBox name="claim_status" bindTarget="acr516_invoice_query_ds" prompt="认领状态" width="135"/>
</a:form>
<a:grid id="" bindTarget="" marginHeight="325" marginWidth="30" navBar="true">
<a:grid id="acr516_invoice_grid_id" bindTarget="acr516_invoice_result_ds" marginHeight="225" marginWidth="30" navBar="true">
<a:columns>
<a:column name="document_number" lock="true" prompt="HLS.DOCUMENT_NUMBER" width="120"/>
<a:column name="contract_number" autoAdjust="false" prompt="HLS.CONTRACT_NUMBER" showTitle="true" width="150"/>
......@@ -72,14 +84,10 @@
<a:column name="invoice_date" renderer="Leaf.formatDate" prompt="发票日期" width="100"/>
<a:column name="invoice_bp_code" prompt="开票客户编号" width="100"/>
<a:column name="invoice_bp_name" autoAdjust="false" showTitle="true" prompt="开票客户名称" width="150"/>
<a:column name="invoice_title" autoAdjust="false" footerRenderer="summaryRenderer" showTitle="true"
prompt="发票抬头" width="150"/>
<a:column name="total_amount" align="right" footerRenderer="summaryRenderer"
renderer="Leaf.formatMoney" prompt="发票金额"width="100"/>
<a:column name="tax_amount" align="right" footerRenderer="summaryRenderer"
renderer="Leaf.formatMoney" prompt="税额" width="100"/>
<a:column name="net_amount" align="right" footerRenderer="summaryRenderer"
renderer="Leaf.formatMoney" prompt="不含税金额" width="100"/>
<a:column name="invoice_title" autoAdjust="false" showTitle="true" prompt="发票抬头" width="150"/>
<a:column name="total_amount" align="right" renderer="Leaf.formatMoney" prompt="发票金额" width="100"/>
<a:column name="tax_amount" align="right" renderer="Leaf.formatMoney" prompt="税额" width="100"/>
<a:column name="net_amount" align="right" renderer="Leaf.formatMoney" prompt="不含税金额" width="100"/>
<a:column name="currency" prompt="币种" width="80"/>
<a:column name="created_by_name" autoAdjust="false" showTitle="true" prompt="开票人" width="150"/>
<a:column name="invoice_status_desc" prompt="发票状态" width="100"/>
......
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true">
<a:init-procedure>
</a:init-procedure>
<a:view>
<script type="text/javascript"><![CDATA[
function acr517_invoice_query() {
$('acr517_invoice_result_ds').query();
}
function acr517_invoice_reset() {
$('acr517_invoice_query_ds').reset();
}
function acr517_invoice_confirm() {
$('acr517_invoice_result_ds').submitSelected();
}
]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
<a:dataSets>
<a:dataSet id="acr517_invoice_kind_ds" lookupCode="ACR510_INVOICE_KIND"/>
<a:dataSet id="acr517_invoice_statu_ds" lookupCode="ACR510_AR_INVOICE_STATUS"/>
<a:dataSet id="acr517_claim_status_ds" lookupCode="CLAIM_STATUS"/>
<a:dataSet id="cf_item_options">
<a:datas dataSource="/model/hls_cashflow_item_list"/>
</a:dataSet>
<a:dataSet id="claim_status_ds" loadData="true" lookupCode="CLAIM_STATUS"/>
<a:dataSet id="acr517_invoice_query_ds" autoCreate="true">
<a:fields>
<a:field name="invoice_kind_desc" displayField="code_value_name" options="acr517_invoice_kind_ds"
returnField="invoice_kind" valueField="code_value"/>
<a:field name="invoice_status_desc" displayField="code_value_name" options="acr517_invoice_statu_ds" returnField="invoice_status" valueField="code_value"/>
<a:field name="total_amount"/>
<a:field name="cf_item"/>
<a:field name="cf_item_n" options="cf_item_options" displayField="description" returnField="cf_item" valueField="cf_item"/>
<a:field name="claim_status" options="claim_status_ds" displayField="code_value_name" valueField="code_value" returnField="claim_status"/>
<a:field name="cf_item_desc" autoComplete="true" lovGridHeight="350" lovHeight="500" lovLabelWidth="100" lovService="csh.CSH518.hls_cashflow_item_v_lov?cf_direction=INFLOW" lovWidth="520" title="现金流项目">
<a:mapping>
<a:map from="cf_item" to="cf_item"/>
<a:map from="cf_item_desc" to="cf_item_desc"/>
</a:mapping>
</a:field>
<a:field name="claim_status" displayField="code_value_name" options="acr517_claim_status_ds"
returnField="claim_status" valueField="code_value"/>
</a:fields>
</a:dataSet>
<a:dataSet id="acr517_invoice_result_ds" autoPageSize="true" autoQuery="true"
model="acr.ACR605.acr_invoice_claim_confirm" queryDataSet="acr517_invoice_query_ds" selectable="true">
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:screenTitle/>
<a:toolbarButton click="acr517_invoice_query" text="HLS.QUERY"/>
<a:toolbarButton click="acr517_invoice_reset" text="HLS.RESET"/>
<a:toolbarButton click="" text="确认"/>
<a:toolbarButton click="" text="返回"/>
</a:screenTopToolbar>
<a:form marginWidth="30" padding="0" title="查询条件" column="4">
<a:textField name="document_number" bindTarget="acr517_invoice_query_ds" prompt="单据编号" width="135"/>
<a:textField name="contract_number" bindTarget="acr517_invoice_query_ds" prompt="合同编号" width="135"/>
<a:textField name="contract_name" bindTarget="acr517_invoice_query_ds" prompt="合同名称" width="135"/>
<a:lov name="cf_item_desc" bindTarget="acr517_invoice_query_ds" prompt="现金流项目" width="135"/>
<a:numberField name="total_amount_f" allowFormat="true" bindTarget="acr517_invoice_query_ds" prompt="开票金额含税额从" width="135"/>
<a:numberField name="total_amount_t" allowFormat="true" bindTarget="acr517_invoice_query_ds" prompt="开票金额含税额到" width="135"/>
<a:textField name="invoice_title" bindTarget="acr517_invoice_query_ds" prompt="发票抬头" width="135"/>
<a:comboBox name="invoice_kind_desc" bindTarget="acr517_invoice_query_ds" prompt="ACR.INVOICE_KIND" width="135"/>
<a:comboBox name="invoice_status_desc" bindTarget="acr517_invoice_query_ds" prompt="发票状态" width="135"/>
<a:textField name="invoice_code" bindTarget="acr517_invoice_query_ds" prompt="发票代码" width="135"/>
<a:textField name="invoice_number" bindTarget="acr517_invoice_query_ds" prompt="发票号码" width="135"/>
<a:comboBox name="claim_status" bindTarget="acr517_invoice_query_ds" prompt="认领状态" width="135"/>
</a:form>
<a:grid id="acr516_invoice_grid_id" bindTarget="acr517_invoice_result_ds" marginHeight="225" marginWidth="30" navBar="true">
<a:columns>
<a:column name="document_number" lock="true" prompt="HLS.DOCUMENT_NUMBER" width="120"/>
<a:column name="contract_number" autoAdjust="false" prompt="HLS.CONTRACT_NUMBER" showTitle="true" width="150"/>
<a:column name="contract_name" width="150" prompt="合同名称"/>
<a:column name="bp_agent_name" prompt="代理商" width="100"/>
<a:column name="invoice_kind_desc" prompt="发票种类" width="100"/>
<a:column name="invoice_number" width="120" prompt="发票号码"/>
<a:column name="vat_invoice_code" width="120" prompt="发票代码"/>
<a:column name="invoice_date" renderer="Leaf.formatDate" prompt="发票日期" width="100"/>
<a:column name="invoice_bp_code" prompt="开票客户编号" width="100"/>
<a:column name="invoice_bp_name" autoAdjust="false" showTitle="true" prompt="开票客户名称" width="150"/>
<a:column name="invoice_title" autoAdjust="false" showTitle="true" prompt="发票抬头" width="150"/>
<a:column name="total_amount" align="right" renderer="Leaf.formatMoney" prompt="发票金额" width="100"/>
<a:column name="tax_amount" align="right" renderer="Leaf.formatMoney" prompt="税额" width="100"/>
<a:column name="net_amount" align="right" renderer="Leaf.formatMoney" prompt="不含税金额" width="100"/>
<a:column name="currency" prompt="币种" width="80"/>
<a:column name="created_by_name" autoAdjust="false" showTitle="true" prompt="开票人" width="150"/>
<a:column name="invoice_status_desc" prompt="发票状态" width="100"/>
<a:column name="vat_interface_status_desc" prompt="金税状态" width="100"/>
<a:column name="accounting_date" renderer="Leaf.formatDate" prompt="期间序号" width="100"/>
<a:column name="create_je_flag" prompt="凭证标志" width="60"/>
<a:column name="bp_tax_registry_num" prompt="纳税人识别号"/>
<a:column name="ele_invoice_status_desc" prompt="电子发票状态"/>
<a:column name="swno" prompt="电子发票流水号" width="100"/>
<a:column name="claim_status" prompt="认领状态" width="100"/>
</a:columns>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
\ No newline at end of file
......@@ -25,11 +25,14 @@
<!-- <a:link id="identity_query_link" model="interface.CCX_INTERFACE.identity_query" modelaction="update"/>-->
<script type="text/javascript"><![CDATA[
Leaf.onReady(function () {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_role');
var bp_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
var bp_record = $(bp_ds_id).getCurrentRecord();
bp_record.set('bp_category','${/parameter/@bp_category}');
bp_record.set('owner_user_id','${/session/@user_id}');
if ('${/parameter/@bp_type}' == 'AGENT') {
bp_record.getField('agent_type_n').setReadOnly(false);
bp_record.getField('agent_type_n').setRequired(true);
......@@ -82,6 +85,7 @@
window['${/parameter/@layout_code}_on_layout_dynamic_submitsuccess'] = function (ds, record, res, bp_seq) {
var bp_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
console.log($(bp_ds_id));
var bp_record = $(bp_ds_id).getCurrentRecord();
var bp_id = bp_record.get('bp_id');
......@@ -276,7 +280,7 @@
//保存前调用,生成商机编号
window['${/parameter/@layout_code}_on_layout_dynamic_before_submit'] = function (ds, record) {
//
debugger;
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
var head_record = $(ds_id).getCurrentRecord();
var bp_class = head_record.get('bp_class');
......
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