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
da6ab3f7
Commit
da6ab3f7
authored
Nov 21, 2023
by
38823
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商业伙伴创建将生成编码规则的逻辑放到保存前
parent
f7f8c93a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
26 deletions
+52
-26
social_code_exist.lwm
.../webapp/WEB-INF/classes/hls/HLS213N/social_code_exist.lwm
+1
-1
hls_bp_master_create.lview
...ain/webapp/modules/hls/HLS213N/hls_bp_master_create.lview
+51
-25
No files found.
src/main/webapp/WEB-INF/classes/hls/HLS213N/social_code_exist.lwm
View file @
da6ab3f7
...
...
@@ -13,7 +13,7 @@
</bm:parameters>
<bm:update-sql>
<![CDATA[
begin
hls_bp_master_pkg.update_bp_master_code(p_bp_
id =>
${@bp_id
},
hls_bp_master_pkg.update_bp_master_code(p_bp_
type =>
${@bp_type
},
p_user_id =>${/session/@user_id},
p_document_number =>${@document_number});
end;
...
...
src/main/webapp/modules/hls/HLS213N/hls_bp_master_create.lview
View file @
da6ab3f7
...
...
@@ -505,6 +505,7 @@
//
// };
window['${/parameter/@layout_code}_on_layout_dynamic_before_submit'] = function (ds, record) {
debugger;
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
var head_record = $(ds_id).getCurrentRecord();
...
...
@@ -513,6 +514,31 @@
var file_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_cdd_item_doc_ref');
var file_record = $(file_ds_id).getAll();
var bank_flag=true;
var check_flag=true;
//保存前生成商业伙伴编码
if(Ext.isEmpty(head_record.get('bp_code'))){
Leaf.request({
url: $('get_special_fields_link_id').getUrl(),
para: {
bp_type: head_record.get('bp_type')
},
success: function (res) {
var document_number = res.result.document_number;
head_record.set('bp_code', document_number);
check_flag = true;
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
error: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
failure: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
sync: true,
scope: this
});
}
//校验银行账户必须与商业伙伴名称一致 18083 2023/9/5
var bp_name=head_record.get('bp_name');
var bank_flag1=true;
...
...
@@ -715,31 +741,31 @@
window['${/parameter/@layout_code}_on_layout_dynamic_submitsuccess'] = function (ds, record, res, bp_seq) {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
var head_record = $(ds_id).getCurrentRecord();
if (!head_record.get('bp_code')) {
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({
url: $('get_special_fields_link_id').getUrl(),
para: {
bp_id: head_record.get('bp_id')
},
success: function (res) {
var document_number = res.result.document_number;
head_record.set('bp_code', document_number);
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
error: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
failure: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
sync: true,
scope: this
});
}
$(ds_id).setQueryParameter('bp_id', head_record.get('bp_id'));
$(ds_id).query();
//
if (!head_record.get('bp_code')) {
//
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
//
Leaf.request({
//
url: $('get_special_fields_link_id').getUrl(),
//
para: {
//
bp_id: head_record.get('bp_id')
//
},
//
success: function (res) {
//
var document_number = res.result.document_number;
//
head_record.set('bp_code', document_number);
//
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
//
//
},
//
error: function () {
//
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
//
},
//
failure: function () {
//
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
//
},
//
sync: true,
//
scope: this
//
});
//
}
//
$(ds_id).setQueryParameter('bp_id', head_record.get('bp_id'));
//
$(ds_id).query();
//add by zc
var signer_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_signer');
if(head_record.get('bp_id')){
...
...
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