Commit 2cb916c1 authored by Luochenglong's avatar Luochenglong

Merge remote-tracking branch 'origin/develop' into develop

parents bfd34465 7b345dce
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<select id="selectCashflowList" parameterType="integer" resultType="java.util.LinkedHashMap"> <select id="selectCashflowList" parameterType="integer" resultType="java.util.LinkedHashMap">
Select Select
contract_id, contract_id,
cashflow_id, cashflow_id,
write_off_id, write_off_id,
...@@ -806,35 +806,20 @@ ...@@ -806,35 +806,20 @@
nvl(cc2.write_off_flag, 'NOT') != nvl(cc2.write_off_flag, 'NOT') !=
'NOT')) 'NOT'))
And rownum = 1)) due_date, And rownum = 1)) due_date,
nvl(t1.due_amount, nvl(t1.due_amount,
(Select cc2.due_amount (Select cc2.due_amount
From con_contract_cashflow cc2 From con_contract_cashflow cc2
Where cc2.contract_id = t2.contract_id Where cc2.contract_id = t2.contract_id
And cc2.times = t2.times And cc2.times = t2.times
And cc2.cf_item Not In (0, 9) And cc2.cf_item Not In (0, 9)
And ((cc2.cf_direction = 'INFLOW' And And ((cc2.cf_direction = 'INFLOW' And
cc2.cf_status = 'RELEASE') Or cc2.cf_status = 'RELEASE') Or
(t2.contract_status In (t2.contract_status In
('REPURING', 'REPUR') And ('REPURING', 'REPUR') And
cc2.cf_direction = 'NONCASH' And cc2.cf_direction = 'NONCASH' And
cc2.cf_status = 'BLOCK' And cc2.cf_status = 'BLOCK' And
nvl(cc2.write_off_flag, 'NOT') != nvl(cc2.write_off_flag, 'NOT') != 'NOT'))
'NOT')) And rownum = 1) ) As due_amount,
And rownum = 1) -
nvl((Select nvl(Sum(cc2.received_amount), 0)
From con_contract_cashflow cc2
Where cc2.contract_id = t2.contract_id
And cc2.times = t2.times
And cc2.cf_item Not In (0, 9)
And ((cc2.cf_direction = 'INFLOW' And
cc2.cf_status = 'RELEASE') Or
(t2.contract_status In
('REPURING', 'REPUR') And
cc2.cf_direction = 'NONCASH' And
cc2.cf_status = 'BLOCK' And
nvl(cc2.write_off_flag, 'NOT') !=
'NOT'))),
0)) As due_amount,
nvl(t1.transaction_date, t2.transaction_date) transaction_date, nvl(t1.transaction_date, t2.transaction_date) transaction_date,
nvl(t1.write_off_date, t2.write_off_date) write_off_date, nvl(t1.write_off_date, t2.write_off_date) write_off_date,
nvl(t1.received_amount, 0) As received_amount, nvl(t1.received_amount, 0) As received_amount,
...@@ -1102,10 +1087,10 @@ ...@@ -1102,10 +1087,10 @@
And nvl(cc2.received_amount, 0) != 0), And nvl(cc2.received_amount, 0) != 0),
-1)))) -1))))
Order By times, Order By times,
--cf_item,
--due_amount Desc, --due_amount Desc,
transaction_date, transaction_date,
write_off_date, write_off_date,
cf_item,
write_off_id) write_off_id)
</select> </select>
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<!-- <!--
$Author: trd $Author: trd
$Date: 2022-12-6 下午2:36:27 $Date: 2022-12-6 下午2:36:27
$Revision: 1.0 $Revision: 1.0
$Purpose: $Purpose:
--> -->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm"> <bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations> <bm:operations>
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
from sys_code_values_v v from sys_code_values_v v
where v.code = 'HLS536_WFL_STATUS' where v.code = 'HLS536_WFL_STATUS'
and v.code_value = t1.wfl_status) wfl_status_n, and v.code_value = t1.wfl_status) wfl_status_n,
t1.reversed_flag,
t1.reverse_wfl_status, t1.reverse_wfl_status,
(select v.code_value_name value_name (select v.code_value_name value_name
from sys_code_values_v v from sys_code_values_v v
...@@ -45,7 +46,8 @@ ...@@ -45,7 +46,8 @@
t1.journal_type, t1.journal_type,
(select t.post_gl_status (select t.post_gl_status
from hls_journal_header t from hls_journal_header t
where t.journal_num = t1.journal_num) post_gl_status where t.journal_header_imp_id = t1.journal_header_id
) post_gl_status
FROM hls_journal_header_imp t1 FROM hls_journal_header_imp t1
#WHERE_CLAUSE# #WHERE_CLAUSE#
order by t1.journal_header_id desc order by t1.journal_header_id desc
...@@ -53,17 +55,18 @@ ...@@ -53,17 +55,18 @@
</bm:operation> </bm:operation>
</bm:operations> </bm:operations>
<bm:data-filters> <bm:data-filters>
<bm:data-filter name="query" expression="t1.reversed_journal_header_id is null "/> <bm:data-filter name="query" expression="t1.reversed_journal_header_id is null "/>
</bm:data-filters> </bm:data-filters>
<bm:query-fields> <bm:query-fields>
<bm:query-field name="journal_num" queryExpression="t1.journal_num like ${@journal_num}"/> <bm:query-field name="journal_num" queryExpression="t1.journal_num like ${@journal_num}"/>
<bm:query-field name="journal_date_from" queryExpression="to_date(t1.journal_date,'yyyy-mm-dd') &gt;= to_date(${@journal_date_from},'yyyy-mm-dd')"/> <bm:query-field name="journal_date_from" queryExpression="to_date(t1.journal_date,'yyyy-mm-dd') &gt;= to_date(${@journal_date_from},'yyyy-mm-dd')"/>
<bm:query-field name="journal_date_to" queryExpression="to_date(t1.journal_date,'yyyy-mm-dd') &lt;= to_date(${@journal_date_to},'yyyy-mm-dd')"/> <bm:query-field name="journal_date_to" queryExpression="to_date(t1.journal_date,'yyyy-mm-dd') &lt;= to_date(${@journal_date_to},'yyyy-mm-dd')"/>
<bm:query-field name="total_amount_dr_from" datatype="java.lang.Double" queryExpression="nvl(t1.total_amount_dr,t1.total_amount_cr) &gt;= ${@total_amount_dr_from}"/> <bm:query-field name="total_amount_dr_from" datatype="java.lang.Double" queryExpression="nvl(t1.total_amount_dr,t1.total_amount_cr) &gt;= ${@total_amount_dr_from}"/>
<bm:query-field name="total_amount_dr_to" datatype="java.lang.Double" queryExpression="nvl(t1.total_amount_dr,t1.total_amount_cr) &lt;= ${@total_amount_dr_to}"/> <bm:query-field name="total_amount_dr_to" datatype="java.lang.Double" queryExpression="nvl(t1.total_amount_dr,t1.total_amount_cr) &lt;= ${@total_amount_dr_to}"/>
<bm:query-field name="journal_submit_batch_id" queryExpression="t1.journal_submit_batch_id = ${@journal_submit_batch_id}"/> <bm:query-field name="journal_submit_batch_id" queryExpression="t1.journal_submit_batch_id = ${@journal_submit_batch_id}"/>
<bm:query-field name="description" queryExpression="t1.description like ${@description}"/> <bm:query-field name="description" queryExpression="t1.description like ${@description}"/>
<bm:query-field name="wfl_status" queryExpression="t1.wfl_status=${@wfl_status}"/> <bm:query-field name="wfl_status" queryExpression="t1.wfl_status=${@wfl_status}"/>
</bm:query-fields> <bm:query-field name="reverse_wfl_status" queryExpression="t1.reverse_wfl_status=${@reverse_wfl_status}"/>
</bm:query-fields>
</bm:model> </bm:model>
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
t1.journal_type, t1.journal_type,
(select t.post_gl_status (select t.post_gl_status
from hls_journal_header t from hls_journal_header t
where t.journal_num = t1.journal_num) post_gl_status where t.journal_header_imp_id = t1.journal_header_id) post_gl_status
FROM hls_journal_header_imp t1 FROM hls_journal_header_imp t1
#WHERE_CLAUSE# #WHERE_CLAUSE#
order by t1.journal_header_id desc order by t1.journal_header_id desc
......
...@@ -58,11 +58,20 @@ ...@@ -58,11 +58,20 @@
<!--<bm:data-filter name="query" expression="( (${/session/@role_id} = (select role_id from sys_role where role_code = '0006') and t1.workflow_code in (&apos;CONTRACT_INCEPT_WFL&apos;, &apos;DCFL_CSH_PAYMENT_REQ&apos;)) or (${/session/@role_id} in (select role_id from sys_role where role_code in ('0012', '0013', '0014')) and t1.workflow_code in (&apos;DCFL_CSH_PAYMENT_REQ&apos;, &apos;DEPOSIT_RETURN&apos;)) or (${/session/@role_id} = (select role_id from sys_role where role_code = '0005') and t1.workflow_code in (&apos;PROJECT_WFL&apos;)) or (${/session/@role_id} = (select role_id from sys_role where role_code = '0008') and t1.workflow_code in (&apos;CON_ET_WFL&apos;,&apos;TENANT_CHANGE_WFL&apos;,&apos;CON_BUYBACK_WFL&apos;,&apos;DEPOSIT_RETURN&apos;)) or (${/session/@role_id} not in (select role_id from sys_role where role_code in('0005', '0006', '0008', '0012', '0013', '0014')) and 1 = 1))"/>--> <!--<bm:data-filter name="query" expression="( (${/session/@role_id} = (select role_id from sys_role where role_code = '0006') and t1.workflow_code in (&apos;CONTRACT_INCEPT_WFL&apos;, &apos;DCFL_CSH_PAYMENT_REQ&apos;)) or (${/session/@role_id} in (select role_id from sys_role where role_code in ('0012', '0013', '0014')) and t1.workflow_code in (&apos;DCFL_CSH_PAYMENT_REQ&apos;, &apos;DEPOSIT_RETURN&apos;)) or (${/session/@role_id} = (select role_id from sys_role where role_code = '0005') and t1.workflow_code in (&apos;PROJECT_WFL&apos;)) or (${/session/@role_id} = (select role_id from sys_role where role_code = '0008') and t1.workflow_code in (&apos;CON_ET_WFL&apos;,&apos;TENANT_CHANGE_WFL&apos;,&apos;CON_BUYBACK_WFL&apos;,&apos;DEPOSIT_RETURN&apos;)) or (${/session/@role_id} not in (select role_id from sys_role where role_code in('0005', '0006', '0008', '0012', '0013', '0014')) and 1 = 1))"/>-->
<!--凭证导出工作流只能由提交人和审批人看到,其余人无法在工作流监控中看到--> <!--凭证导出工作流只能由提交人和审批人看到,其余人无法在工作流监控中看到-->
<bm:data-filter name="query" expression="( (${/session/@role_id} = (select role_id from sys_role where role_code = '0006') and t1.workflow_code in (&apos;CONTRACT_INCEPT_WFL&apos;, &apos;DCFL_CSH_PAYMENT_REQ&apos;)) or (${/session/@role_id} in (select role_id from sys_role where role_code in ('0012', '0013', '0014')) and t1.workflow_code in (&apos;DCFL_CSH_PAYMENT_REQ&apos;, &apos;DEPOSIT_RETURN&apos;)) or (${/session/@role_id} = (select role_id from sys_role where role_code = '0005') and t1.workflow_code in (&apos;PROJECT_WFL&apos;)) or (${/session/@role_id} = (select role_id from sys_role where role_code = '0008') and t1.workflow_code in (&apos;CON_ET_WFL&apos;,&apos;TENANT_CHANGE_WFL&apos;,&apos;CON_BUYBACK_WFL&apos;,&apos;DEPOSIT_RETURN&apos;)) or (${/session/@role_id} not in (select role_id from sys_role where role_code in('0005', '0006', '0008', '0012', '0013', '0014')) and 1 = 1) <bm:data-filter name="query" expression="( (${/session/@role_id} = (select role_id from sys_role where role_code = '0006') and t1.workflow_code in (&apos;CONTRACT_INCEPT_WFL&apos;, &apos;DCFL_CSH_PAYMENT_REQ&apos;)) or (${/session/@role_id} in (select role_id from sys_role where role_code in ('0012', '0013', '0014')) and t1.workflow_code in (&apos;DCFL_CSH_PAYMENT_REQ&apos;, &apos;DEPOSIT_RETURN&apos;)) or (${/session/@role_id} = (select role_id from sys_role where role_code = '0005') and t1.workflow_code in (&apos;PROJECT_WFL&apos;)) or (${/session/@role_id} = (select role_id from sys_role where role_code = '0008') and t1.workflow_code in (&apos;CON_ET_WFL&apos;,&apos;TENANT_CHANGE_WFL&apos;,&apos;CON_BUYBACK_WFL&apos;,&apos;DEPOSIT_RETURN&apos;)) or (${/session/@role_id} not in (select role_id from sys_role where role_code in('0005', '0006', '0008', '0012', '0013', '0014')) and 1 = 1)
or( ((t1.SUBMITTED_BY = ${/session/@user_id}) or (t1.APPROVE_USER_CODE = ( or( ((t1.SUBMITTED_BY = ${/session/@user_id}) or (
Select distinct e.employee_code From exp_employees e, exp_employee_assigns ea Where e.employee_id = (${/session/@user_id}
ea.employee_id And nvl(e.enabled_flag, 'N') = 'Y' And nvl(ea.enabled_flag, 'N') = in (Select t.user_id
'Y' And From zj_wfl_instance_node_recipient t
e.employee_id = (Select t.employee_id From sys_user t Where t.user_id = ${/session/@user_id}) Where t.instance_id = t1.instance_id
) ) ) and t1.workflow_code = 'HLS_JOURNAL_WFL'))"/> And t.record_type = 'APPROVER')
</bm:data-filters> and t1.instance_status = 1)
or
(${/session/@user_id}
in (Select t.user_id
From zj_wfl_instance_node_rcpt_ht t
Where t.instance_id = t1.instance_id
And t.record_type = 'APPROVER')
and t1.instance_status in (-1000,-1,10))
) ) and t1.workflow_code in('HLS_JOURNAL_WFL','HLS_JOURNAL_REVERSE_WFL')))"/>
</bm:data-filters>
</bm:model> </bm:model>
...@@ -772,32 +772,35 @@ ...@@ -772,32 +772,35 @@
var machine_number = lease_item_record.get('machine_number_70'); var machine_number = lease_item_record.get('machine_number_70');
var division = lease_item_record.get('division'); var division = lease_item_record.get('division');
var machine_number_num = 0; var machine_number_num = 0;
if(division == '92' && !Leaf.isEmpty(machine_number)){ var secondary_lease = record.get('secondary_lease') ;
Leaf.request({ if(!Leaf.isEmpty(secondary_lease) && secondary_lease!='YES') {
url: $('check_machine_number_id').getUrl(), if (division == '92' && !Leaf.isEmpty(machine_number)) {
para: { Leaf.request({
machine_number: machine_number, url: $('check_machine_number_id').getUrl(),
project_id : project_id para: {
}, machine_number: machine_number,
scope: this, project_id: project_id
success: function (res) { },
machine_number_num= res.result.record.v_count; scope: this,
}, success: function (res) {
failure: function () { machine_number_num = res.result.record.v_count;
return false; },
}, failure: function () {
scope: this, return false;
sync: true },
}); scope: this,
sync: true
});
} }
if (machine_number_num>0 && count == 0){ if (machine_number_num > 0 && count == 0) {
count = count+1; count = count + 1;
$L.showErrorMessage('提示', '该机号已存在,请重新确认!'); $L.showErrorMessage('提示', '该机号已存在,请重新确认!');
return false; return false;
}else if(machine_number_num> 0 && count != 0){ } else if (machine_number_num > 0 && count != 0) {
count = 0; count = 0;
return false; return false;
}
} }
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -974,6 +974,13 @@ ...@@ -974,6 +974,13 @@
var hls_bp_master_ds_id = f_bp_create_ds_id; var hls_bp_master_ds_id = f_bp_create_ds_id;
if (ds.id == hls_bp_master_ds_id && hls_bp_master_ds_id) { if (ds.id == hls_bp_master_ds_id && hls_bp_master_ds_id) {
if (name == 'due_box') {
if (value == 'Y') {
record.set('due_date', '2099-12-31');
}else if(value == 'N'){
record.set('due_date', '');
}
}
if (name == 'id_card_no_leg') { if (name == 'id_card_no_leg') {
if (!value) { if (!value) {
record.set('ccx_resmsg1', ''); record.set('ccx_resmsg1', '');
......
...@@ -805,6 +805,13 @@ ...@@ -805,6 +805,13 @@
var test_ds_id2 = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_SPOUSE', 'hls_bp_master'); var test_ds_id2 = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_SPOUSE', 'hls_bp_master');
if (ds.id == f_bp_create_ds_id) { if (ds.id == f_bp_create_ds_id) {
if (name == 'due_box') {
if (value == 'Y') {
record.set('due_date', '2099-12-31');
}else if(value == 'N'){
record.set('due_date', '');
}
}
var hd_ds = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC', 'hls_bp_master'); var hd_ds = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC', 'hls_bp_master');
record = $(hd_ds).getCurrentRecord(); record = $(hd_ds).getCurrentRecord();
......
...@@ -808,6 +808,13 @@ ...@@ -808,6 +808,13 @@
var test_ds_id2 = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_SPOUSE', 'hls_bp_master_req'); var test_ds_id2 = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_SPOUSE', 'hls_bp_master_req');
if (ds.id == f_bp_create_ds_id) { if (ds.id == f_bp_create_ds_id) {
if (name == 'due_box') {
if (value == 'Y') {
record.set('due_date', '2099-12-31');
}else if(value == 'N'){
record.set('due_date', '');
}
}
var hd_ds = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC', 'hls_bp_master_req'); var hd_ds = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC', 'hls_bp_master_req');
record = $(hd_ds).getCurrentRecord(); record = $(hd_ds).getCurrentRecord();
......
...@@ -77,6 +77,7 @@ ...@@ -77,6 +77,7 @@
<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:dataSets> <a:dataSets>
<a:dataSet id="hls536_wfl_status_ds" lookupCode="HLS536_WFL_STATUS"/> <a:dataSet id="hls536_wfl_status_ds" lookupCode="HLS536_WFL_STATUS"/>
<a:dataSet id="hls536_reverse_wfl_status_ds" lookupCode="HLS536_WFL_STATUS_REVERSE"/>
<a:dataSet id="hls_journal_header_query"> <a:dataSet id="hls_journal_header_query">
<a:fields> <a:fields>
<a:field name="journal_num"/> <a:field name="journal_num"/>
...@@ -87,6 +88,8 @@ ...@@ -87,6 +88,8 @@
<a:field name="description"/> <a:field name="description"/>
<a:field name="wfl_status_n" displayField="code_value_name" options="hls536_wfl_status_ds" returnField="wfl_status" valueField="code_value"/> <a:field name="wfl_status_n" displayField="code_value_name" options="hls536_wfl_status_ds" returnField="wfl_status" valueField="code_value"/>
<a:field name="wfl_status" /> <a:field name="wfl_status" />
<a:field name="reverse_wfl_status_n" displayField="code_value_name" options="hls536_reverse_wfl_status_ds" returnField="reverse_wfl_status" valueField="code_value"/>
<a:field name="reverse_wfl_status" />
</a:fields> </a:fields>
</a:dataSet> </a:dataSet>
<a:dataSet id="hls_journal_header_result_ds" autoPageSize="true" autoQuery="true" model="hls.HLS536.hls_journal_import_header_wfl" queryDataSet="hls_journal_header_query" selectable="true"> <a:dataSet id="hls_journal_header_result_ds" autoPageSize="true" autoQuery="true" model="hls.HLS536.hls_journal_import_header_wfl" queryDataSet="hls_journal_header_query" selectable="true">
...@@ -106,6 +109,7 @@ ...@@ -106,6 +109,7 @@
<a:numberField name="total_amount_dr_to" allowFormat="true" bindTarget="hls_journal_header_query" prompt="金额到"/> <a:numberField name="total_amount_dr_to" allowFormat="true" bindTarget="hls_journal_header_query" prompt="金额到"/>
<a:textField name="description" bindTarget="hls_journal_header_query" prompt="凭证摘要"/> <a:textField name="description" bindTarget="hls_journal_header_query" prompt="凭证摘要"/>
<a:comboBox name="wfl_status_n" bindTarget="hls_journal_header_query" prompt="凭证导入状态"/> <a:comboBox name="wfl_status_n" bindTarget="hls_journal_header_query" prompt="凭证导入状态"/>
<a:comboBox name="reverse_wfl_status_n" bindTarget="hls_journal_header_query" prompt="凭证反冲状态"/>
</a:form> </a:form>
<a:grid id="hls_journal_headers_grid" bindTarget="hls_journal_header_result_ds" marginHeight="250" marginWidth="40" navBar="true"> <a:grid id="hls_journal_headers_grid" bindTarget="hls_journal_header_result_ds" marginHeight="250" marginWidth="40" navBar="true">
<a:columns> <a:columns>
......
...@@ -424,33 +424,37 @@ ...@@ -424,33 +424,37 @@
var machine_number = lease_item_record.get('machine_number_70'); var machine_number = lease_item_record.get('machine_number_70');
var project_id = project_record.get('project_id'); var project_id = project_record.get('project_id');
var machine_number_num = 0; var machine_number_num = 0;
if(division == '92' && !Leaf.isEmpty(machine_number)){ var secondary_lease = project_record.get('secondary_lease');
Leaf.request({ if(!Leaf.isEmpty(secondary_lease) && secondary_lease !='YES'){
url: $('check_machine_number_id').getUrl(), if(division == '92' && !Leaf.isEmpty(machine_number)){
para: { Leaf.request({
machine_number: machine_number, url: $('check_machine_number_id').getUrl(),
project_id :project_id para: {
}, machine_number: machine_number,
scope: this, project_id :project_id
success: function (res) { },
machine_number_num= res.result.record.v_count; scope: this,
}, success: function (res) {
failure: function () { machine_number_num= res.result.record.v_count;
return false; },
}, failure: function () {
scope: this, return false;
sync: true },
}); scope: this,
sync: true
});
}
if (machine_number_num>0 && count == 0){
count = count+1;
$L.showErrorMessage('提示', '该机号已存在,请重新确认!');
return false;
}else if(machine_number_num>0 && count != 0){
count = 0;
return false;
}
} }
if (machine_number_num>0 && count == 0){
count = count+1;
$L.showErrorMessage('提示', '该机号已存在,请重新确认!');
return false;
}else if(machine_number_num>0 && count != 0){
count = 0;
return false;
}
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();
......
...@@ -1119,6 +1119,13 @@ ...@@ -1119,6 +1119,13 @@
record.getField('bank_account_id_n').setRequired(false); record.getField('bank_account_id_n').setRequired(false);
} }
if ('${/parameter/@function_usage}' != 'QUERY') {
if (division == '92') {
record.getField('pay_method').setReadOnly(false);
record.getField('pay_method_n').setReadOnly(false);
}
}
if (division=='91') { //若为神钢建机 if (division=='91') { //若为神钢建机
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 current_record = $(ds_id).getCurrentRecord(); var current_record = $(ds_id).getCurrentRecord();
...@@ -1878,36 +1885,40 @@ ...@@ -1878,36 +1885,40 @@
var machine_number = lease_item_record.get('machine_number_70'); var machine_number = lease_item_record.get('machine_number_70');
var project_id = project_record.get('project_id'); var project_id = project_record.get('project_id');
var machine_number_num = 0; var machine_number_num = 0;
if(division == '92' && !Leaf.isEmpty(machine_number)){ var secondary_lease = project_record.get('secondary_lease');
Leaf.request({ if(!Leaf.isEmpty(secondary_lease) && secondary_lease!='YES'){
url: $('check_machine_number_id').getUrl(), if(division == '92' && !Leaf.isEmpty(machine_number)){
para: { Leaf.request({
machine_number: machine_number, url: $('check_machine_number_id').getUrl(),
project_id : project_id para: {
}, machine_number: machine_number,
scope: this, project_id : project_id
success: function (res) { },
machine_number_num= res.result.record.v_count; scope: this,
}, success: function (res) {
failure: function () { machine_number_num= res.result.record.v_count;
return false; },
}, failure: function () {
scope: this, return false;
sync: true },
}); scope: this,
sync: true
});
} }
if (machine_number_num>0 && count == 0){ if (machine_number_num>0 && count == 0){
count = count+1; count = count+1;
$L.showErrorMessage('提示', '该机号已存在,请重新确认!'); $L.showErrorMessage('提示', '该机号已存在,请重新确认!');
return false; return false;
}else if(machine_number_num>0 && count != 0){ }else if(machine_number_num>0 && count != 0){
count = 0; count = 0;
return false; return false;
}
} }
return true; return true;
}; };
//附件打包下载 //附件打包下载
......
...@@ -378,32 +378,35 @@ ...@@ -378,32 +378,35 @@
var project_id = project_record.get('project_id'); var project_id = project_record.get('project_id');
var machine_number = lease_item_record.get('machine_number_70'); var machine_number = lease_item_record.get('machine_number_70');
var machine_number_num = 0; var machine_number_num = 0;
if(division == '92' && !Leaf.isEmpty(machine_number)){ var secondary_lease = project_record.get('secondary_lease');
Leaf.request({ if(!Leaf.isEmpty(secondary_lease) && secondary_lease !='YES') {
url: $('check_machine_number_id').getUrl(), if (division == '92' && !Leaf.isEmpty(machine_number)) {
para: { Leaf.request({
machine_number: machine_number, url: $('check_machine_number_id').getUrl(),
project_id : project_id para: {
}, machine_number: machine_number,
scope: this, project_id: project_id
success: function (res) { },
machine_number_num= res.result.record.v_count; scope: this,
}, success: function (res) {
failure: function () { machine_number_num = res.result.record.v_count;
return false; },
}, failure: function () {
scope: this, return false;
sync: true },
}); scope: this,
sync: true
});
} }
if (machine_number_num>0 && count == 0){ if (machine_number_num > 0 && count == 0) {
count = count+1; count = count + 1;
$L.showErrorMessage('提示', '该机号已存在,请重新确认!'); $L.showErrorMessage('提示', '该机号已存在,请重新确认!');
return false; return false;
}else if(machine_number_num> 0 && count != 0){ } else if (machine_number_num > 0 && count != 0) {
count = 0; count = 0;
return false; return false;
}
} }
if(!bp_rate_flag){ if(!bp_rate_flag){
return false; return false;
...@@ -974,6 +977,12 @@ ...@@ -974,6 +977,12 @@
record.getField('bank_account_id_n').setRequired(false); record.getField('bank_account_id_n').setRequired(false);
} }
if ('${/parameter/@function_usage}' != 'QUERY') {
if (division == '92') {
record.getField('pay_method').setReadOnly(false);
record.getField('pay_method_n').setReadOnly(false);
}
}
//深圳美鹏和hcs显示分公司,其他隐藏 //深圳美鹏和hcs显示分公司,其他隐藏
var bp_code = '${/model/user_agent_description/record/@bp_code}'; var bp_code = '${/model/user_agent_description/record/@bp_code}';
if (!Ext.isEmpty(bp_code) && bp_code !== 'D00010001' && bp_code !== 'D00000009') { if (!Ext.isEmpty(bp_code) && bp_code !== 'D00010001' && bp_code !== 'D00000009') {
......
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