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
bc5e468d
Commit
bc5e468d
authored
Dec 23, 2022
by
TIANZHI.HU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
凭证导入工作流开发3 add by HuTianzhi 39135
parent
690a2c1d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
6 deletions
+21
-6
hls_journal_import_header.lwm
.../WEB-INF/classes/hls/HLS536/hls_journal_import_header.lwm
+1
-0
hls_journal_import_entrance.lview
...bapp/modules/hls/HLS536/hls_journal_import_entrance.lview
+10
-0
hls_journal_import_wfl.lview
...in/webapp/modules/hls/HLS536/hls_journal_import_wfl.lview
+10
-6
No files found.
src/main/webapp/WEB-INF/classes/hls/HLS536/hls_journal_import_header.lwm
View file @
bc5e468d
...
...
@@ -42,5 +42,6 @@
<bm:query-field
name=
"journal_date_to"
queryExpression=
"t1.journal_date <= 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) >= ${@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) <= ${@total_amount_dr_to}"
/>
<bm:query-field
name=
"journal_submit_batch_id"
queryExpression=
"t1.journal_submit_batch_id = ${@journal_submit_batch_id}"
/>
</bm:query-fields>
</bm:model>
src/main/webapp/modules/hls/HLS536/hls_journal_import_entrance.lview
View file @
bc5e468d
...
...
@@ -98,6 +98,14 @@
Leaf.showMessage('${l:PROMPT}', '未选择!');
return ;
}
//审批中、审批通过的单据不可提交审批
for (let i = 0; i < records.length; i++) {
var record = records[i];
if (record.get('wfl_status') === 'APPROVING' || record.get('wfl_status') !== 'APPROVED') {
Leaf.showMessage('提示', '审批中、审批通过的凭证不可提交审批!');
return;
}
}
var journal_header_imp_list = [];
...
...
@@ -142,6 +150,8 @@
success: function (res) {
Leaf.Masker.unmask(Ext.getBody());
Leaf.showMessage('提示', '提交审批成功!');
// 审批成功后查询gird
hls536_journal_query();
},
failure: function () {
Leaf.Masker.unmask(Ext.getBody());
...
...
src/main/webapp/modules/hls/HLS536/hls_journal_import_wfl.lview
View file @
bc5e468d
...
...
@@ -15,9 +15,13 @@
<script>
<![CDATA[
Leaf.onReady(function () {
$('hls_journal_header_result_ds').setQueryParameter('journal_submit_batch_id','${/parameter/@journal_submit_batch_id}');
})
//查询按钮
function hls536_journal_query() {
$('hls_journal_header_result_ds').setQueryParameter('journal_submit_batch_id','${/parameter/@journal_submit_batch_id}');
$('hls_journal_header_result_ds').query();
}
//重置按钮
...
...
@@ -136,13 +140,13 @@
</a:screenTopToolbar>
<a:form
column=
"5"
labelSeparator=
" "
labelWidth=
"100"
marginWidth=
"40"
title=
"HAP_QUERY_TITLE"
>
<a:textField
name=
"journal_num"
bindTarget=
"hls_journal_header_query"
prompt=
"凭证编号"
/>
<
a:comboBox
name=
"merge_parent_flag_desc"
bindTarget=
"hls_journal_header_query"
prompt=
"合并凭证"
/
>
<
!--<a:comboBox name="merge_parent_flag_desc" bindTarget="hls_journal_header_query" prompt="合并凭证"/>--
>
<a:datePicker
name=
"journal_date_from"
bindTarget=
"hls_journal_header_query"
prompt=
"凭证日期从"
/>
<a:datePicker
name=
"journal_date_to"
bindTarget=
"hls_journal_header_query"
prompt=
"凭证日期到"
/>
<
a:lov
name=
"company_short_name"
bindTarget=
"hls_journal_header_query"
prompt=
"记账公司"
/
>
<
!--<a:lov name="company_short_name" bindTarget="hls_journal_header_query" prompt="记账公司"/>--
>
<a:numberField
name=
"total_amount_dr_from"
allowFormat=
"true"
bindTarget=
"hls_journal_header_query"
prompt=
"金额从"
/>
<a:numberField
name=
"total_amount_dr_to"
allowFormat=
"true"
bindTarget=
"hls_journal_header_query"
prompt=
"金额到"
/>
<
a:lov
name=
"je_transaction_desc"
bindTarget=
"hls_journal_header_query"
prompt=
"凭证来源"
/
>
<
!--<a:lov name="je_transaction_desc" bindTarget="hls_journal_header_query" prompt="凭证来源"/>--
>
<!-- <a:lov name="bp_id_tenant_desc" bindTarget="hls_journal_header_query" prompt="商业伙伴"/>
<a:textField name="contract_number" bindTarget="hls_journal_header_query" prompt="合同编号"/>-->
</a:form>
...
...
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