Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
leaf-hlcm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hlcm
leaf-hlcm
Commits
aa335554
Commit
aa335554
authored
May 25, 2023
by
lizhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
租金催收短信
parent
151ee9e9
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
250 additions
and
10 deletions
+250
-10
con620_send_dun_msg.lwm
...ebapp/WEB-INF/classes/cont/CON620/con620_send_dun_msg.lwm
+26
-0
con_contract_dun_for_query.lwm
...EB-INF/classes/cont/CON620/con_contract_dun_for_query.lwm
+10
-1
con_contract_dun_for_repur_query.lwm
.../classes/cont/CON620/con_contract_dun_for_repur_query.lwm
+10
-1
con_contract_rent_dun_query.lview
...app/modules/cont/CON620/con_contract_rent_dun_query.lview
+192
-6
sys_sms_query.lview
src/main/webapp/modules/sys/SYS402/sys_sms_query.lview
+12
-2
No files found.
src/main/webapp/WEB-INF/classes/cont/CON620/con620_send_dun_msg.lwm
0 → 100644
View file @
aa335554
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: LR
$Date: 2013-7-16 下午06:07:55
$Revision: 1.0
$Purpose:
-->
<bm:model
xmlns:bm=
"http://www.leaf-framework.org/schema/bm"
>
<bm:operations>
<bm:operation
name=
"execute"
>
<bm:update-sql>
<![CDATA[
begin
for cur in(select cc.contract_id from
con_contract cc
where cc.contract_id in (${:@contract_ids}) ) loop
con_rent_dun_msg_pkg.rent_dun_sms_create(p_user_id =>
${/session/@user_id},
p_contract_id => cur.contract_id,
p_msg_type => ${@msg_type});
end loop;
end;
]]>
</bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
src/main/webapp/WEB-INF/classes/cont/CON620/con_contract_dun_for_query.lwm
View file @
aa335554
...
...
@@ -236,7 +236,15 @@
And gwo.times = ccc.times
And gwo.cf_item = ccc.cf_item),
0)) As account_due_days -- 会计逾期天数*/
,(select to_char(max(t.creation_date), 'yyyy-mm-dd')
from cux_rent_dun_msg t
where t.contract_id = cc.contract_id) dun_date,
cc.send_message,
(select v.code_value_name
From sys_code_values_v v
Where v.code = 'SEND_MESSAGE'
And cc.send_message = v.code_value ) send_message_n,
cc.cell_phone
FROM con_contract cc
WHERE
EXISTS(SELECT 1
...
...
@@ -325,6 +333,7 @@
<bm:query-field
name=
"owner_user_id"
queryExpression=
"t1.owner_user_id = ${@owner_user_id}"
/>
<bm:query-field
name=
"lease_organization"
queryExpression=
"t1.lease_organization = ${@lease_organization}"
/>
<bm:query-field
name=
"business_type_n"
queryExpression=
"t1.business_type = ${@business_type}"
/>
<bm:query-field
name=
"send_message"
queryExpression=
"t1.send_message = ${@send_message}"
/>
</bm:query-fields>
<bm:data-filters>
<bm:data-filter
name=
"contract_status"
enforceOperations=
"query"
...
...
src/main/webapp/WEB-INF/classes/cont/CON620/con_contract_dun_for_repur_query.lwm
View file @
aa335554
...
...
@@ -148,7 +148,15 @@
cc.contract_status,
cc.BUSINESS_TYPE,
cc.repurchase_types
,(select to_char(max(t.creation_date), 'yyyy-mm-dd')
from cux_rent_dun_msg t
where t.contract_id = cc.contract_id) dun_date,
cc.send_message,
(select v.code_value_name
From sys_code_values_v v
Where v.code = 'SEND_MESSAGE'
And cc.send_message = v.code_value ) send_message_n,
cc.cell_phone
FROM con_contract cc
WHERE
cc.contract_status='REPURING'
...
...
@@ -239,6 +247,7 @@
<bm:query-field
name=
"owner_user_id"
queryExpression=
"t1.owner_user_id = ${@owner_user_id}"
/>
<bm:query-field
name=
"lease_organization"
queryExpression=
"t1.lease_organization = ${@lease_organization}"
/>
<bm:query-field
name=
"business_type_n"
queryExpression=
"t1.business_type = ${@business_type}"
/>
<bm:query-field
name=
"send_message"
queryExpression=
"t1.send_message = ${@send_message}"
/>
</bm:query-fields>
<bm:data-filters>
<bm:data-filter
enforceOperations=
"query"
expression=
"t1.data_class = 'NORMAL'"
/>
...
...
src/main/webapp/modules/cont/CON620/con_contract_rent_dun_query.lview
View file @
aa335554
...
...
@@ -21,6 +21,7 @@
url=
"${/request/@context_path}/modules/cont/CON620/con_contract_account_detail.lview"
/>
<a:link
id=
"con_contract_query_link_id"
url=
"${/request/@context_path}/modules/cont/CON3200/con_re_incept_modify.lview"
/>
<a:link
id=
"con601_send_dun_msg"
model=
"cont.CON620.con620_send_dun_msg"
modelaction=
"execute"
/>
<script
type=
"text/javascript"
>
<![CDATA[
function CON601_con_contract_query() {
$('CON620_contract_result_ds').query();
...
...
@@ -344,6 +345,176 @@
}
function CON601_dun_msg_money() {
var records = $('CON620_contract_result_ds').getSelected();
var records_repur = $('CON620_contract_repur_result_ds').getSelected();
if (records_repur.length > 0) {
$L.showInfoMessage('提示', '解约回购合同不在催收短信发送范围!');
return;
}
if (records.length == 0 ) {
$L.showInfoMessage('提示', '请勾选合同!');
return;
} else {
var contract_ids = '';
var no_phone_cons = '';
var no_send_message = '';
//判断单据的状态
for (var i = 0; i
< records.length
;
i++)
{
if
(
contract_ids =
=
'')
{
contract_ids =
records[i].get('contract_id');
}
else
{
contract_ids =
contract_ids
+
','
+
records[i].get('contract_id');
}
if(Ext.isEmpty(records[i].get('cell_phone'))){
if
(
no_phone_cons =
=
'')
{
no_phone_cons =
records[i].get('contract_number');
}
else
{
no_phone_cons =
no_phone_cons
+
','
+
records[i].get('contract_number');
}
}
if(Ext.isEmpty(records[i].get('send_message'))
||
records[i].get('send_message')
==
'NO'){
if
(
no_send_message =
=
'')
{
no_send_message =
records[i].get('contract_number');
}
else
{
no_send_message =
no_send_message
+
','
+
records[i].get('contract_number');
}
}
}
if(!Ext.isEmpty(no_send_message)){
$L.showInfoMessage('提示',
'合同'+no_send_message+'发送催收短信为否,该原因合同将无法发送短信');
return;
}
var
detail_mask =
Ext.getBody();
Leaf.showConfirm('提示',
"即将对当前勾选合同发送催收短信,请确认。",
function
()
{
Leaf.Masker.mask(detail_mask,
'${l:HLS.EXECUTING}');
Leaf.request({
url:
$('con601_send_dun_msg').getUrl(),
para:
{
contract_ids:
contract_ids,
msg_type:
'MONEY'
},
success:
function
()
{
Leaf.Masker.unmask(detail_mask,
'${l:HLS.EXECUTING}');
Leaf.SideBar.show({
msg:
'操作成功',
duration:
2000
});
$('CON620_contract_result_ds').query();
$('CON620_contract_repur_result_ds').query();
if(!Ext.isEmpty(no_phone_cons)){
Leaf.showMessage('提示',
no_phone_cons+'催收手机号为空,该原因合同将无法发送短信');
}
},
error:
function
()
{
Leaf.Masker.unmask(detail_mask,
'${l:HLS.EXECUTING}');
},
scope:
this
});
},
function
()
{
Leaf.Masker.unmask(detail_mask,
'${l:HLS.EXECUTING}');
})
}
}
function
CON601_dun_msg_no_money()
{
var
records =
$('CON620_contract_result_ds').getSelected();
var
records_repur =
$('CON620_contract_repur_result_ds').getSelected();
if
(records_repur.length
>
0) {
$L.showInfoMessage('提示', '解约回购合同不在催收短信发送范围!');
return;
}
if (records.length == 0) {
$L.showInfoMessage('提示', '请勾选合同!');
return;
} else {
var contract_ids = '';
var no_phone_cons = '';
var contract_30_50 = '';
var no_send_message = '';
for (var i = 0; i
< records.length
;
i++)
{
if
(
contract_ids =
=
'')
{
contract_ids =
records[i].get('contract_id');
}
else
{
contract_ids =
contract_ids
+
','
+
records[i].get('contract_id');
}
if(Ext.isEmpty(records[i].get('cell_phone'))){
if
(
no_phone_cons =
=
'')
{
no_phone_cons =
records[i].get('contract_number');
}
else
{
no_phone_cons =
no_phone_cons
+
','
+
records[i].get('contract_number');
}
}
if(records[i].get('division')
==
'30'
||
records[i].get('division')
==
'50'){
if
(
contract_30_50 =
=
'')
{
contract_30_50 =
records[i].get('contract_number');
}
else
{
contract_30_50 =
contract_30_50
+
','
+
records[i].get('contract_number');
}
}
if(Ext.isEmpty(records[i].get('send_message'))
||
records[i].get('send_message')
==
'NO'){
if
(
no_send_message =
=
'')
{
no_send_message =
records[i].get('contract_number');
}
else
{
no_send_message =
no_send_message
+
','
+
records[i].get('contract_number');
}
}
}
if(!Ext.isEmpty(contract_30_50)){
$L.showInfoMessage('提示',
contract_30_50
+'高空车合同只能发送含金额催收短信!');
return;
}
if(!Ext.isEmpty(no_send_message)){
$L.showInfoMessage('提示',
'合同'+no_send_message+'发送催收短信为否,该原因合同将无法发送短信');
return;
}
var
detail_mask =
Ext.getBody();
Leaf.showConfirm('提示',
"即将对当前勾选合同发送催收短信,请确认。",
function
()
{
Leaf.Masker.mask(detail_mask,
'${l:HLS.EXECUTING}');
Leaf.request({
url:
$('con601_send_dun_msg').getUrl(),
para:
{
contract_ids:
contract_ids,
msg_type:
'NO_MONEY'
},
success:
function
()
{
Leaf.Masker.unmask(detail_mask,
'${l:HLS.EXECUTING}');
Leaf.SideBar.show({
msg:
'操作成功',
duration:
2000
});
$('CON620_contract_result_ds').query();
$('CON620_contract_repur_result_ds').query();
if(!Ext.isEmpty(no_phone_cons)){
Leaf.showMessage('提示',
no_phone_cons+'催收手机号为空,该原因合同将无法发送短信');
}
},
error:
function
()
{
Leaf.Masker.unmask(detail_mask,
'${l:HLS.EXECUTING}');
},
scope:
this
});
},
function
()
{
Leaf.Masker.unmask(detail_mask,
'${l:HLS.EXECUTING}');
})
}
}
]]
></script>
<a:screen-include
screen=
"modules/cont/CON500/con_contract_get_layout_code.lview"
/>
<a:dataSets>
...
...
@@ -357,6 +528,7 @@
</a:dataSet>
<a:dataSet
id=
"CON601_lease_organization_name_ds"
loadData=
"true"
model=
"basic.hls_lease_organization_for_lov"
/>
<a:dataSet
id=
"con620_send_message_ds"
lookupCode=
"SEND_MESSAGE"
/>
<a:dataSet
id=
"CON620_contract_query_ds"
autoCreate=
"true"
>
<a:fields>
<!-- <a:field name="bp_id_tenant_n" autoComplete="true" lovGridHeight="350" lovHeight="500"-->
...
...
@@ -387,12 +559,15 @@
returnField=
"business_type"
valueField=
"code_value"
/>
<a:field
name=
"division_n"
displayField=
"value_name"
options=
"con501_division_name_ds"
returnField=
"division"
valueField=
"value_code"
/>
<a:field
name=
"send_message"
/>
<a:field
name=
"send_message_n"
displayField=
"code_value_name"
options=
"con620_send_message_ds"
returnField=
"send_message"
valueField=
"code_value"
/>
</a:fields>
</a:dataSet>
<a:dataSet
id=
"CON620_contract_result_ds"
autoPageSize=
"true"
autoQuery=
"true"
model=
"cont.CON620.con_contract_dun_for_query"
queryDataSet=
"CON620_contract_query_ds"
queryUrl=
"${/request/@context_path}/autocrud/cont.CON620.con_contract_dun_for_query/query"
selectable=
"true"
selectionModel=
"
sing
le"
>
selectable=
"true"
selectionModel=
"
multip
le"
>
<a:fields>
<a:field
name=
"promised_return_date"
datatype=
"date"
/>
</a:fields>
...
...
@@ -404,7 +579,7 @@
<a:dataSet
id=
"CON620_contract_repur_result_ds"
autoPageSize=
"true"
autoQuery=
"true"
model=
"cont.CON620.con_contract_dun_for_repur_query"
queryDataSet=
"CON620_contract_query_ds"
queryUrl=
"${/request/@context_path}/autocrud/cont.CON620.con_contract_dun_for_repur_query/query"
selectable=
"true"
selectionModel=
"
sing
le"
>
selectable=
"true"
selectionModel=
"
multip
le"
>
</a:dataSet>
<!--<a:dataSet id="bgt_contract_payment_detail_line_ds" fetchAll="true" model="cont.CON620.bgt_contract_payment_detail_line"/>-->
</a:dataSets>
...
...
@@ -413,6 +588,8 @@
<a:screenTitle/>
<a:gridButton
click=
"CON601_con_contract_reset"
text=
"HLS.RESET"
/>
<a:gridButton
click=
"CON601_con_contract_query"
text=
"HLS.QUERY"
/>
<a:gridButton
click=
"CON601_dun_msg_money"
text=
"催收短信发送(含金额)"
/>
<a:gridButton
click=
"CON601_dun_msg_no_money"
text=
"催收短信发送(无金额)"
/>
<!--<a:gridButton id="CON601_con_contract_print_btn" click="CON601_con_contract_print" text="打印催收函"/>-->
</a:screenTopToolbar>
...
...
@@ -429,6 +606,11 @@
<a:textField
name=
"bp_id_agent_desc"
bindTarget=
"CON620_contract_query_ds"
prompt=
"代理店"
/>
<a:comboBox
name=
"business_type_n"
bindTarget=
"CON620_contract_query_ds"
prompt=
"业务类型"
/>
<a:comboBox
name=
"division_n"
bindTarget=
"CON620_contract_query_ds"
prompt=
"租赁物"
/>
<a:numberField
name=
"business_due_days_from"
bindTarget=
"CON620_contract_query_ds"
prompt=
"逾期天数(营业)从"
allowDecimals=
"false"
/>
<a:numberField
name=
"business_due_days_to"
bindTarget=
"CON620_contract_query_ds"
prompt=
"逾期天数(营业)到"
allowDecimals=
"false"
/>
<a:comboBox
name=
"send_message_n"
bindTarget=
"CON620_contract_query_ds"
prompt=
"发送催收短信"
/>
</a:box>
</a:formToolBar>
<a:formBody
style=
"background-color: white;"
>
...
...
@@ -437,10 +619,10 @@
prompt=
"逾期期数(营业)从"
allowDecimals=
"false"
/>
<a:numberField
name=
"business_due_times_to"
bindTarget=
"CON620_contract_query_ds"
prompt=
"逾期期数(营业)到"
allowDecimals=
"false"
/>
<a:numberField
name=
"business_due_days_from"
bindTarget=
"CON620_contract_query_ds"
prompt=
"逾期天数(营业)从"
allowDecimals=
"false"
/
>
<a:numberField
name=
"business_due_days_to"
bindTarget=
"CON620_contract_query_ds"
prompt=
"逾期天数(营业)到"
allowDecimals=
"false"
/
>
<!-- <a:numberField name="business_due_days_from" bindTarget="CON620_contract_query_ds"-->
<!-- prompt="逾期天数(营业)从" allowDecimals="false"/>--
>
<!-- <a:numberField name="business_due_days_to" bindTarget="CON620_contract_query_ds"-->
<!-- prompt="逾期天数(营业)到" allowDecimals="false"/>--
>
<a:numberField
name=
"business_due_amount_from"
bindTarget=
"CON620_contract_query_ds"
prompt=
"逾期金额(营业)从"
/>
<a:numberField
name=
"business_due_amount_to"
bindTarget=
"CON620_contract_query_ds"
...
...
@@ -547,6 +729,8 @@
<a:column
name=
"lease_times"
align=
"center"
prompt=
"期数"
width=
"100"
/>
<a:column
name=
"total_due_amount"
align=
"right"
prompt=
"租金合计"
width=
"100"
renderer=
"Leaf.formatMoney"
/>
<a:column
name=
"send_message_n"
align=
"center"
prompt=
"发送催收短信"
width=
"60"
/>
<a:column
name=
"dun_date"
align=
"center"
prompt=
"催收短信发送日期"
width=
"120"
/>
<!-- <a:column name="contract_status" align="center" prompt="合同状态" width="100"/>-->
</a:columns>
</a:grid>
...
...
@@ -611,6 +795,8 @@
<a:column
name=
"lease_times"
align=
"center"
prompt=
"分期期数"
width=
"100"
/>
<a:column
name=
"total_due_amount"
align=
"right"
prompt=
"分期回购款合计"
width=
"100"
renderer=
"Leaf.formatMoney"
/>
<a:column
name=
"send_message_n"
align=
"center"
prompt=
"发送催收短信"
width=
"60"
/>
<a:column
name=
"dun_date"
align=
"center"
prompt=
"催收短信发送日期"
width=
"120"
/>
<!-- <a:column name="contract_status" align="center" prompt="合同状态" width="100"/>-->
</a:columns>
</a:grid>
...
...
src/main/webapp/modules/sys/SYS402/sys_sms_query.lview
View file @
aa335554
...
...
@@ -5,8 +5,9 @@
$purpose:短信发送
-->
<a:screen
xmlns:a=
"http://www.leaf-framework.org/application"
>
<a:init-procedure>
<![CDATA[
]]>
</a:init-procedure>
<a:init-procedure>
<a:model-query
model=
"cont.CON620.get_sys_role"
rootPath=
"role_info"
/>
</a:init-procedure>
<a:view>
<a:link
id=
"pageLink_view_log"
url=
"${/request/@context_path}/modules/sys/SYS402/sys_sms_log.lview"
/>
<!--<a:link id="bmLink_re_submit_sms" model="sys.SYS401.sys_sms_list" modelaction="update"/>-->
...
...
@@ -82,6 +83,15 @@
function smsQueryPage_reset(){
$('sys402_query_ds').reset();
}
//债权担当,隐藏重发列
Leaf.onReady(function () {
var role_code = "${/model/role_info/record/@role_code}";
if (role_code =='0008') {
var grid=$('smsQueryDs_grid');
grid.hideColumn('re_submit');
}
});
]]>
</script>
<a:dataSets>
<a:dataSet
id=
"sys402_query_ds"
autoCreate=
"true"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment