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
0fe8a0e0
Commit
0fe8a0e0
authored
Nov 19, 2019
by
25484
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix]商业伙伴SBO修改
parent
37b7cb1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
2 deletions
+34
-2
hls_bp_master_modify.lview
...ain/webapp/modules/hls/HLS214N/hls_bp_master_modify.lview
+34
-2
No files found.
src/main/webapp/modules/hls/HLS214N/hls_bp_master_modify.lview
View file @
0fe8a0e0
...
...
@@ -102,8 +102,19 @@
// }
var bp_record = $(bp_ds_id).getCurrentRecord();
var bp_id = bp_record.get('bp_id');
if(old_id_card != new_id_card){
record.set('id_card_no_change_flag','Y');
}else{
record.set('id_card_no_change_flag','N');
}
if(old_bp_name != new_bp_name){
record.set('bp_name_change_flag','Y');
}else{
record.set('bp_name_change_flag','N');
}
// Leaf.request({
...
...
@@ -220,6 +231,11 @@
// return true;
// }
var old_id_card;
var new_id_card;
var old_bp_name;
var new_bp_name;
//新增和加载时调用form
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function(ds, record, config_records, bp_seq) {
// if ((ds.id).indexOf('hls_bp_master_credit') != -1 && (ds.id).indexOf('F_ORG_CREDIT') != -1) {
...
...
@@ -234,6 +250,12 @@
if ((ds.id).indexOf('hls_bp_master') != -1 && (ds.id).indexOf('F_BASIC') != -1) {
var employee_type_id = '${/model/modify_user/record/@employee_type_id}';
old_bp_name = record.get('bp_name');
new_bp_name = record.get('bp_name');
if(record.get('id_type') == 'ID_CARD'){
old_id_card = record.get('id_card_no');
new_id_card = record.get('id_card_no');
}
if (record.get('bp_category') == 'VENDER') {
record.getField('unit_id_n').setReadOnly(true);
...
...
@@ -319,6 +341,10 @@
var bp_record = $(hls_bp_master_ds_id).getCurrentRecord();
if ((ds.id).indexOf('hls_bp_master') != -1 && (ds.id).indexOf('F_BASIC') != -1) {
if(name == 'bp_name'){
new_bp_name = record.get('bp_name');
}
if (name == 'agent_type') {
if (value == 'AGENT_NO_REBATE' || value == 'AGENT_EE') {
record.getField('parent_id_n').setReadOnly(false);
...
...
@@ -413,6 +439,9 @@
Leaf.showMessage('提示', '基本信息中,请输入正确格式的身份证!');
return '请输入正确格式的身份证';
} else if (value.length == 18) {
new_id_card = record.get('id_card_no');
//自动带出籍贯
record.set('resident_addres', get_native_place(value));
record.set('date_of_birth', new Date(value.substr(6, 4) + '/' + value.substr(10, 2) + '/' + value.substr(12, 2)));
...
...
@@ -435,7 +464,10 @@
Leaf.showMessage('提示', '配偶信息中,请输入正确格式的身份证!');
return '请输入正确格式的身份证';
} else if (value.length == 18) {
record.set('resident_addres_sp',get_native_place(value))
new_id_card = record.get('id_card_no_leg');
record.set('resident_addres_sp',get_native_place(value));
record.set('date_of_birth', new Date(value.substr(6, 4) + '/' + value.substr(10, 2) + '/' + value.substr(12, 2)));
record.set('age', new Date().getFullYear() - value.substr(6, 4));
if (value.substr(16, 1) % 2 == 1) {
...
...
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