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
c3befb39
Commit
c3befb39
authored
Dec 19, 2022
by
TIANZHI.HU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
凭证导入工作流开发1 add by 39135 HuTianzhi
parent
0aa092a2
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
251 additions
and
4 deletions
+251
-4
hls_journal_import_header.lwm
.../WEB-INF/classes/hls/HLS536/hls_journal_import_header.lwm
+2
-2
submit_hls_journal_tmp.lwm
...app/WEB-INF/classes/hls/HLS536/submit_hls_journal_tmp.lwm
+18
-0
hls_journal_import_create.lview
...webapp/modules/hls/HLS536/hls_journal_import_create.lview
+6
-0
hls_journal_import_entrance.lview
...bapp/modules/hls/HLS536/hls_journal_import_entrance.lview
+60
-2
hls_journal_import_wfl.lview
...in/webapp/modules/hls/HLS536/hls_journal_import_wfl.lview
+165
-0
No files found.
src/main/webapp/WEB-INF/classes/hls/HLS536/hls_journal_import_header.lwm
View file @
c3befb39
...
...
@@ -28,8 +28,8 @@
FROM hls_journal_detail_imp t
WHERE t.journal_header_id = t1.journal_header_id) je_detail_count,
t1.wfl_status,
(select v.code_value_name value_name from sys_code_values_v v where v.code = 'HLS536_WFL_STATUS' and v.code_value = t1.wfl_status) wfl_status_n
(select v.code_value_name value_name from sys_code_values_v v where v.code = 'HLS536_WFL_STATUS' and v.code_value = t1.wfl_status) wfl_status_n
,
t1.journal_type
FROM hls_journal_header_imp t1 order by t1.journal_header_id desc
]]>
</bm:query-sql>
</bm:operation>
...
...
src/main/webapp/WEB-INF/classes/hls/HLS536/submit_hls_journal_tmp.lwm
0 → 100644
View file @
c3befb39
<?xml version="1.0" encoding="UTF-8"?>
<bm:model
xmlns:bm=
"http://www.leaf-framework.org/schema/bm"
>
<bm:operations>
<bm:operation
name=
"execute"
>
<bm:update-sql>
<![CDATA[
begin
hls_journal_import_pkg.submit_hls_journal_tmp(
p_journal_header_id =>
${@journal_header_id});
end;
]]>
</bm:update-sql>
<!--<bm:parameters>
<bm:parameter inputPath="/session/@session_id"/>
</bm:parameters>-->
</bm:operation>
</bm:operations>
</bm:model>
src/main/webapp/modules/hls/HLS536/hls_journal_import_create.lview
View file @
c3befb39
...
...
@@ -13,6 +13,12 @@
<a:link
id=
"get_new_journal_num_link_id"
model=
"hls.HLS530.get_new_journal_number"
modelaction=
"update"
/>
<a:link
id=
"get_document_type_id"
model=
"csh.CSH511.get_document_type"
modelaction=
"update"
/>
<script>
<![CDATA[
Leaf.onReady(function() {
if ('${/parameter/@maintain_type}' == 'READONLY') {
const btn_dom = document.getElementById('${/parameter/@layout_code}' + '_save');
btn_dom.remove();
}
});
window['${/parameter/@layout_code}_on_layout_dynamic_before_submit'] = function(ds, record) {
var journal_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_journal_header');
...
...
src/main/webapp/modules/hls/HLS536/hls_journal_import_entrance.lview
View file @
c3befb39
...
...
@@ -16,7 +16,7 @@
<a:screen-include
screen=
"modules/hls/hls_common_javascript.lview"
/>
<!--<a:link id="hls_journal_import_link" url="${/request/@context_path}/modules/hls/HLS536/hls_journal_import_handle.lview"/>-->
<a:link
id=
"hls_journal_import_link"
url=
"${/request/@context_path}/modules/hls/HLS536/hls_journal_import_upload.lview"
/>
<a:link
id=
"hls_journal_submit_link_id"
model=
"hls.HLS536.submit_hls_journal_tmp"
modelaction=
"execute"
/>
<script>
<![CDATA[
//查询按钮
...
...
@@ -56,6 +56,64 @@
});
}
// 提交审批
// 可以批量提交,批量提交审批的数据在一个工作流里面,有一个批次表 存 batch_id,这里要把批量提交的数据 update batch_id
function hls536_journal_send() {
debugger;
var ds_id = 'hls_journal_header_result_ds';
var records = $(ds_id).getSelected();
if(records.length == 0){
Leaf.showMessage('${l:PROMPT}', '未选择!');
return ;
}
var journal_header_id_list = [];
var journal_type_list = [];
//同一个模板的凭证才能批量提交
for (let i = 0; i < records.length; i++) {
var record = records[i];
//凭证模板类型
var journal_type = record.get('journal_type');
//单据主键
var journal_header_id = record.get('journal_header_id');
journal_header_id_list.push(journal_header_id);
journal_type_list.push(journal_type);
}
var check_flag = journal_type_list.every(val =>
val === journal_type_list[0]);
if (check_flag){
Leaf.showMessage('${l:PROMPT}', '同一个模板的凭证才能批量提交!');
return ;
}
/*if ($(ds_id).validate()) {
if (record.dirty != true) {
Leaf.showConfirm('${HLS.PROMPT}', '是否确认提交?', function () {
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({
url: $('hls_journal_submit_link_id').getUrl(),
para: {
journal_header_id: journal_header_id
},
success: function (res) {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
Leaf.showMessage('提示', '提交审批成功!');
},
failure: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
error: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
scope: this
});
}, null);
}
else {
Leaf.showMessage('提示', '请先保存再提交审批!', null, 350);
}
}*/
}
function hls536_link_dynamic(reocrd_id, journal_header_id) {
var maintain_type = 'UPDATE';
var record = $('hls_journal_header_result_ds').findById(reocrd_id);
...
...
@@ -159,7 +217,7 @@
<a:toolbarButton
click=
"hls536_journal_reset"
text=
"HLS.RESET"
/>
<a:toolbarButton
click=
"hls536_journal_query"
text=
"HLS.QUERY"
/>
<a:toolbarButton
click=
"hls536_journal_import"
text=
"导入凭证模板"
/>
<
!--<a:toolbarButton click="hls536_journal_send" text="提交审批"/>--
>
<
a:toolbarButton
click=
"hls536_journal_send"
text=
"提交审批"
/
>
</a:screenTopToolbar>
<a:form
column=
"5"
labelSeparator=
" "
labelWidth=
"100"
marginWidth=
"40"
title=
"HAP_QUERY_TITLE"
>
...
...
src/main/webapp/modules/hls/HLS536/hls_journal_import_wfl.lview
0 → 100644
View file @
c3befb39
This diff is collapsed.
Click to expand it.
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