Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
Overview
Overview
Details
Activity
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
platform
hg-smart
Commits
52c8311e
Commit
52c8311e
authored
Aug 01, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-08-01 1、付款单逻辑调整先审核再核销 2、新增选择公司回写公司名称
parent
50e71e74
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
5 deletions
+19
-5
ServiceHGCW016.java
.../java/com/baosight/hggp/hg/cw/service/ServiceHGCW016.java
+1
-1
HGCW016.js
src/main/webapp/HG/CW/HGCW016.js
+16
-3
HGCW016.jsp
src/main/webapp/HG/CW/HGCW016.jsp
+2
-1
No files found.
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW016.java
View file @
52c8311e
...
...
@@ -283,7 +283,7 @@ public class ServiceHGCW016 extends ServiceBase {
hgcw016
.
fromMap
(
resultRows
.
get
(
i
));
hgcw016
.
setCancelStatus
(
2
);
if
(
hgcw016
.
getReviewStatus
()
==
0
){
throw
new
Exception
(
"请先审核!"
);
throw
new
Plat
Exception
(
"请先审核!"
);
}
DaoUtils
.
update
(
"HGCW016.writeoff"
,
hgcw016
);
}
...
...
src/main/webapp/HG/CW/HGCW016.js
View file @
52c8311e
$
(
function
()
{
var
companyCodeBox
=
__eiInfo
.
getBlock
(
"roleCompany"
).
getMappedRows
();
// 查询
$
(
"#QUERY"
).
on
(
"click"
,
function
()
{
...
...
@@ -26,7 +27,19 @@ $(function() {
defaultValue
:
function
()
{
return
currShortDate
();
}
}
},
{
field
:
"companyCode"
,
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
companyCodeBox
.
length
;
i
++
)
{
if
(
companyCodeBox
[
i
][
'companyCode'
]
===
dataItem
[
'companyCode'
])
{
dataItem
[
"companyName"
]
=
companyCodeBox
[
i
][
'companyName'
];
return
companyCodeBox
[
i
][
'companyName'
];
}
}
return
dataItem
[
"companyCode"
];
}
},
],
loadComplete
:
function
(
grid
)
{
$
(
"#BTN_CHOICE"
).
on
(
"click"
,
choiceFunc
);
...
...
@@ -177,11 +190,11 @@ function submitFunc() {
}
var
flag
=
true
;
rows
.
forEach
(
function
(
row
)
{
if
(
row
.
cancelStatus
==
"1"
)
{
/*
if (row.cancelStatus == "1") {
message("勾选的数据中有未核销的单据!");
flag = false;
return;
}
}
*/
if
(
row
.
reviewStatus
==
"3"
)
{
message
(
"勾选的数据中有已经提交的单据!"
);
flag
=
false
;
...
...
src/main/webapp/HG/CW/HGCW016.jsp
View file @
52c8311e
...
...
@@ -37,6 +37,7 @@
align=
"center"
filter=
"contains"
sort=
"true"
>
<EF:EFOptions
blockId=
"roleCompany"
textField=
"companyName"
valueField=
"companyCode"
/>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
hidden=
"true"
/>
<EF:EFComboColumn
ename=
"partyA"
cname=
"供应商名称"
width=
"120"
align=
"left"
defaultValue=
""
filter=
"contains"
readonly=
"true"
>
<EF:EFOptions
blockId=
"sup_record_block_id"
...
...
@@ -54,7 +55,7 @@
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
enable=
"false"
defaultValue=
"1"
>
<EF:EFCodeOption
codeName=
"hggp.cw.cancelStatus"
/>
</EF:EFComboColumn>
<EF:EFComboColumn
ename=
"reviewStatus"
cname=
"审
批
状态"
width=
"100"
align=
"center"
readonly=
"true"
<EF:EFComboColumn
ename=
"reviewStatus"
cname=
"审
核
状态"
width=
"100"
align=
"center"
readonly=
"true"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
enable=
"false"
defaultValue=
"0"
>
<EF:EFCodeOption
codeName=
"hggp.cw.reviewStatus"
/>
</EF:EFComboColumn>
...
...
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