Commit e2d04fff authored by stone's avatar stone

[feat] 完成付款申请书功能 [fix]修改收款申请bug

parent c5a010e9
......@@ -204,8 +204,8 @@
<bm:field name="tax_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="tax_code"/>
<bm:field name="tax_msg" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="tax_msg"/>
<bm:field name="error_code" expression="(select aeih.error_code from acr_ele_invoice_hd aeih where aeih.invoice_hd_id = t1.invoice_hd_id)"/>
<bm:field name="error_message" expression="(select aeih.error_message from acr_ele_invoice_hd aeih where aeih.invoice_hd_id = t1.invoice_hd_id)"/>
<!--<bm:field name="error_code" expression="(select aeih.error_code from acr_ele_invoice_hd aeih where aeih.invoice_hd_id = t1.invoice_hd_id)"/>
<bm:field name="error_message" expression="(select aeih.error_message from acr_ele_invoice_hd aeih where aeih.invoice_hd_id = t1.invoice_hd_id)"/>-->
<bm:field name="ele_invoice_status"
expression="nvl((select nvl(aeih.status, 'NEW') from acr_ele_invoice_hd aeih where aeih.invoice_hd_id = t1.invoice_hd_id),'NEW')"/>
......
......@@ -9,11 +9,24 @@
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select *
select rownum, v.*
from (select c.contract_number,
c.contract_name,
c.contract_id,
(select hli.pattern
from con_contract_lease_item ccli, hls_lease_item hli
where ccli.lease_item_id = hli.lease_item_id
and ccli.contract_id = c.contract_id) pattern,
(select hli.machine_number
from con_contract_lease_item ccli, hls_lease_item hli
where ccli.lease_item_id = hli.lease_item_id
and ccli.contract_id = c.contract_id) machine_number,
--add 添加预付款的时间
(select hbm.bp_name
from hls_bp_master hbm
where hbm.bp_id = c.bp_id_tenant) bp_id_tenant_n,
hbm.bp_name,
cpr.apply_pay_date,
to_char(cpr.apply_pay_date,'yyyy-mm-dd') apply_pay_date,
cpr.bp_bank_account_id,
(select cph.payment_req_number
from csh_payment_req_hd cph
......@@ -40,7 +53,6 @@
and c.source_doc_id = cpr.payment_req_id
and c.transaction_type = 'PAYMENT') bank_slip_num,*/
(select bp_name
from hls_bp_master hbm
where hbm.bp_id = cpr.bp_id) BP_ID_AGENT_N,
......@@ -48,6 +60,9 @@
(select hbm.bank_account_num
from hls_bp_master_bank_account hbm
where hbm.bank_account_id = cpr.bp_bank_account_id) BP_BANK_ACCOUNT_NUM,
(select hbm.bank_account_num
from hls_bp_master_bank_account hbm
where hbm.bank_account_id = cpr.bp_bank_account_id) BP_BANK_ACCOUNT_NUM_N,
(select hbm.bank_account_name
from hls_bp_master_bank_account hbm
......@@ -63,17 +78,18 @@
(select bp_name
from hls_bp_master hbm
where hbm.bp_id =
(select ccli.vender_id
from con_contract_lease_item ccli,
hls_lease_item hli
where ccli.lease_item_id = hli.lease_item_id
and ccli.contract_id = c.contract_id)) vender_name,
(select bp_id
from hls_bp_master_bank_account t
where t.bank_account_id = cpr.vender_bank_account_id)) vender_name,
(select hbm.bank_account_name
from hls_bp_master_bank_account hbm
where hbm.bank_account_id = cpr.vender_bank_account_id) VENDER_BANK_ACCOUNT_ID,
(select hbm.bank_account_num
from hls_bp_master_bank_account hbm
where hbm.bank_account_id = cpr.vender_bank_account_id) VENDER_BANK_ACCOUNT_number,
(select hbm.bank_account_num
from hls_bp_master_bank_account hbm
where hbm.bank_account_id = cpr.vender_bank_account_id) vender_bank_account_number_n,
cpr.amount,
--首付款抵充金额
(select nvl(hd.other_payment2, 0)
......
......@@ -32,8 +32,8 @@ var override_queryfields = [
name: 'lease_execution_date_to',
queryexpression: "trunc(t1.lease_execution_date)<=to_date(${@lease_execution_date_to},'yyyy-mm-dd')"
},
{custtelephone
name: 'total_amount_from',
{//custtelephone',
name : 'total_amount_from',
queryexpression: "t1.total_amount>=${@total_amount_from}"
},
{
......
......@@ -103,6 +103,7 @@
flag = flag + 1;
}
}
//一次只能对同一个合同进行确认
if (flag > 0) {
Leaf.showErrorMessage('${l:PROMPT}', '请选择同一条合同');
return;
......
......@@ -696,8 +696,8 @@
<a:screenTitle/>
<a:gridButton click="acr515_invoice_query" text="HLS.QUERY"/>
<a:gridButton click="acr515_invoice_reset" text="HLS.RESET"/>
<!--<a:gridButton click="acr515_invoice_post" text="开票"/>-->
<!--<a:gridButton click="acr515_invoice_import" text="导入开票结果"/>-->
<a:gridButton click="acr515_invoice_post" text="开票"/>
<a:gridButton click="acr515_invoice_import" text="导入开票结果"/>
<a:gridButton click="acr515_invoice_post_interface" text="传入电子金税接口"/>
<a:gridButton click="acr515_invoice_download_interface" text="下载电子发票"/>
<!-- <a:gridButton click="acr515_vat_pause" text="暂挂"/>
......
......@@ -30,7 +30,7 @@
var records = $(ds_id).getSelected();
var param = {};
var datas = [];
var win = Leaf.showConfirm('${l:HLS.PROMPT}', '${l:HLS.DELETE_CONFIRM}', function okFun() {
var win = Leaf.showConfirm('${l:HLS.PROMPT}', '是否确认取消该笔申请?', function okFun() {
if (!records.length) {
Leaf.showMessage('提示', '请至少选择一条数据!');
} else {
......@@ -79,7 +79,7 @@
var records = $(ds_id).getSelected();
var param = {};
var datas = [];
var win = Leaf.showConfirm('${l:HLS.PROMPT}', '${l:HLS.DELETE_CONFIRM}', function okFun() {
var win = Leaf.showConfirm('${l:HLS.PROMPT}', '是否确认取消该笔申请?', function okFun() {
if (!records.length) {
Leaf.showMessage('提示', '请至少选择一条数据!');
} else {
......@@ -123,57 +123,56 @@
});
}
// //删除
// window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function () {
// var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_hd');
//
// var records = $(ds_id).getSelected();
// var param = {};
// var datas = [];
// var win = Leaf.showConfirm('${l:HLS.PROMPT}', '${l:HLS.DELETE_CONFIRM}', function okFun() {
// if (!records.length) {
// Leaf.showMessage('提示', '请至少选择一条数据!');
// } else {
// for (var i = 0; i < records.length; i++) {
// if (records[i].get('payment_req_id')) {
// if (records[i].get('approval_status') != 'NEW'&& records[i].get('approval_status') != 'RETURN') {
// Leaf.showWarningMessage('${l:HLS.PROMPT}', '该付款申请状态不是新建或退回,不能删除!');
// return;
// }
// data = {};
// data['payment_req_id'] = records[i].get('payment_req_id');
// data['_status'] = 'update';
// datas.push(data);
//
// }
// }
// param['details'] = datas;
// var url_l = $('delete_payment_req_link_id').getUrl();
// Leaf.request({
// url: url_l,
// para: datas,
// success: function () {
// window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// $(ds_id).query();
// },
// error: function () {
// window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// },
// failure: function () {
// window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// },
// scope: this
// });
// }
// }, function cancelFun() {
// Leaf.SideBar.enable = true;
// window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// });
// win.on('close', function () {
// Leaf.SideBar.enable = true;
// });
//
// };
// //删除
// window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function () {
// var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_hd');
// var records = $(ds_id).getSelected();
// var param = {};
// var datas = [];
// var win = Leaf.showConfirm('${l:HLS.PROMPT}', '${l:HLS.DELETE_CONFIRM}', function okFun() {
// if (!records.length) {
// Leaf.showMessage('提示', '请至少选择一条数据!');
// } else {
// for (var i = 0; i < records.length; i++) {
// if (records[i].get('payment_req_id')) {
// if (records[i].get('approval_status') != 'NEW'&& records[i].get('approval_status') != 'RETURN') {
// Leaf.showWarningMessage('${l:HLS.PROMPT}', '该付款申请状态不是新建或退回,不能删除!');
// return;
// }
// data = {};
// data['payment_req_id'] = records[i].get('payment_req_id');
// data['_status'] = 'update';
// datas.push(data);
//
// }
// }
// param['details'] = datas;
// var url_l = $('delete_payment_req_link_id').getUrl();
// Leaf.request({
// url: url_l,
// para: datas,
// success: function () {
// window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// $(ds_id).query();
// },
// error: function () {
// window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// },
// failure: function () {
// window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// },
// scope: this
// });
// }
// }, function cancelFun() {
// Leaf.SideBar.enable = true;
// window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// });
// win.on('close', function () {
// Leaf.SideBar.enable = true;
// });
//
// };
function detail_link(id, name, query_only) {
......
......@@ -346,7 +346,7 @@
<!-- <a:gridButton click="csh502_payment_doc_print_d" text="汇签单"/>-->
<!-- <div style="margin-left:30px;margin-top:13px"><![CDATA[注:汇签单打印之后请重新点击查询按钮以获取最新数据后进行其它操作]]></div>-->
</a:screenTopToolbar>
<a:form column="3" labelWidth="130" marginWidth="35" title="CSH502.CSH_PAYMENT_REQ_PAY">
<a:form column="4" labelWidth="130" marginWidth="35" title="CSH502.CSH_PAYMENT_REQ_PAY">
<a:textField name="payment_req_number" bindTarget="csh_payment_req_query_ds" prompt="申请单号"/>
<!-- <a:textField name="bp_id_tenant_n" bindTarget="csh_payment_req_query_ds" prompt="商业伙伴名称"/>-->
<!-- <a:datePicker name="approval_date_from" bindTarget="csh_payment_req_query_ds" prompt="CSH502.CSH_APR_DATE_FROM" width="150"/>-->
......@@ -354,9 +354,11 @@
<a:textField name="contract_number" bindTarget="csh_payment_req_query_ds" prompt="合同编号"/>
<a:datePicker name="req_date_from" bindTarget="csh_payment_req_query_ds" prompt="CSH502.CSH_REQ_DATE_FROM" width="150"/>
<a:datePicker name="req_date_to" bindTarget="csh_payment_req_query_ds" prompt="CSH502.CSH_REQ_DATE_TO" width="150"/>
<a:textField name="amount_from" bindTarget="csh_payment_req_query_ds" prompt="应付金额从"/>
<a:textField name="amount_to" bindTarget="csh_payment_req_query_ds" prompt="应付金额到"/>
<!-- <a:lov name="user_name" bindTarget="csh_payment_req_query_ds" prompt="提交人帐号" width="150"/> -->
<!-- <a:textField name="employee_name" bindTarget="csh_payment_req_query_ds" prompt="提交人姓名" readOnly="true" width="150"/> -->
<a:textField name="user_name" bindTarget="csh_payment_req_query_ds" prompt="申请人" width="150"/>
<!-- <a:textField name="user_name" bindTarget="csh_payment_req_query_ds" prompt="申请人" width="150"/>-->
<!-- <a:comboBox name="print_flag_des" bindTarget="csh_payment_req_query_ds" prompt="汇签单" width="150"/>-->
<!-- <a:comboBox name="approval_status_desc" bindTarget="csh_payment_req_query_ds" prompt="CSH502.CSH_APR_STATE" width="150"/> -->
<!-- <a:textField name="submitted_flag" bindTarget="csh_payment_req_query_ds" prompt="CSH502.CSH_SUBMIT_STATE" width="150"/> -->
......
......@@ -219,7 +219,7 @@
<a:gridButton click="csh503_payment_reset" text="HLS.RESET"/>
<a:gridButton click="csh503_payment_reverse" text="HLS.REVERSE"/>
</a:screenTopToolbar>
<a:form column="4" labelWidth="100" title="CSH502.CSH_PAYMENT_REVERSE_QUERY">
<a:form column="4" labelWidth="100" title="CSH502.CSH_PAYMENT_REVERSE_QUERY" width="1310">
<!-- <a:textField name="payment_req_number_from" bindTarget="csh_payment_reverse_query_ds" prompt="申请单号从" width="150"/>
<a:textField name="payment_req_number_to" bindTarget="csh_payment_reverse_query_ds" prompt="申请单号到" width="150"/> -->
<a:textField name="transaction_num_from" bindTarget="csh_payment_reverse_query_ds" prompt="CSH502.CSH_TRANSACTION.TRANSACTION_NUM_FROM" width="150"/>
......
......@@ -86,7 +86,7 @@
})
}
//新增申请按钮
//新增申请按钮
function csh510_csh_trx_bank_apply_new() {
$('csh510_csh_trx_bank_apply_new').disable();
var datas = $('csh_transaction_receipt_maintain_result_ds').selected;
......@@ -103,11 +103,13 @@
var bp_name=datas[i].get('bp_name');
if(bp_name==''||bp_name==undefined){
$L.showInfoMessage("提示", '商业伙伴为空,不能提交', null, null);
$('csh510_csh_trx_bank_apply_new').enable();
return;
}
//不是新增就报错
if (confirmed_flag != 'NEW' && confirmed_flag != undefined) {
$L.showInfoMessage("提示", '请选择单据为未提交的数据', null, null);
$('csh510_csh_trx_bank_apply_new').enable();
return;
}
......@@ -144,6 +146,8 @@
},
scope: this
});
},function(){
$('csh510_csh_trx_bank_apply_new').enable();
});
}
......
<?xml version="1.0" encoding="UTF-8"?>
<a:service xmlns:a="http://www.leaf-framework.org/application" xmlns:dr="leaf.plugin.excelreport" trace="true">
<a:service xmlns:a="http://www.leaf-framework.org/application" xmlns:dr="leaf.plugin.excelreport" trace="true">
<a:init-procedure>
<a:model-query fetchAll="true" model="zx.ZX5020.zx_query_excel" rootPath="/model/datasource"/>
<dr:excel-report enableTask="false" filename="征信查询清单.xlsx">
......
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