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
f49bd947
Commit
f49bd947
authored
Oct 12, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-10-12 采购合同手工录入详情按照录入顺序排序,采购收货选择合同时按照合同明细顺序显示
parent
18320f5a
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
14 deletions
+16
-14
ServiceHGCG002B.java
...java/com/baosight/hggp/hg/cg/service/ServiceHGCG002B.java
+6
-5
ServiceHGCG003A.java
...java/com/baosight/hggp/hg/cg/service/ServiceHGCG003A.java
+5
-4
HGCG002A.xml
src/main/java/com/baosight/hggp/hg/cg/sql/HGCG002A.xml
+2
-2
ServiceHGWD002.java
.../java/com/baosight/hggp/hg/wd/service/ServiceHGWD002.java
+0
-0
HGCG002B.js
src/main/webapp/HG/CG/HGCG002B.js
+3
-3
No files found.
src/main/java/com/baosight/hggp/hg/cg/service/ServiceHGCG002B.java
View file @
f49bd947
...
@@ -46,11 +46,12 @@ public class ServiceHGCG002B extends ServiceBase {
...
@@ -46,11 +46,12 @@ public class ServiceHGCG002B extends ServiceBase {
@OperationLogAnnotation
(
operModul
=
"采购合同"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
@OperationLogAnnotation
(
operModul
=
"采购合同"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
try
{
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_CODE_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
SUP_RECORD_BLOCK_ID
));
DdynamicEnum
.
COMPANY_CODE_BLOCK_ID
,
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_RECORD_BLOCK_ID
));
DdynamicEnum
.
SUP_RECORD_BLOCK_ID
,
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
SPEC_NAME_BLOCK_ID
));
DdynamicEnum
.
INVENT_RECORD_BLOCK_ID
,
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_TYPE_BOX_BLOCK_ID
),
null
,
false
);
DdynamicEnum
.
SPEC_NAME_BLOCK_ID
,
DdynamicEnum
.
INVENT_TYPE_BOX_BLOCK_ID
));
EiInfoUtils
.
addBlock
(
inInfo
,
"userByCompany"
,
HGXSTools
.
XsUser
.
listAll
(
UserSessionUtils
.
getAccountCode
()),
User
.
class
);
EiInfoUtils
.
addBlock
(
inInfo
,
"userByCompany"
,
HGXSTools
.
XsUser
.
listAll
(
UserSessionUtils
.
getAccountCode
()),
User
.
class
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_RECORD_BOX_BLOCK_ID
),
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_RECORD_BOX_BLOCK_ID
),
new
HashMap
<
String
,
Object
>(){{
new
HashMap
<
String
,
Object
>(){{
...
...
src/main/java/com/baosight/hggp/hg/cg/service/ServiceHGCG003A.java
View file @
f49bd947
...
@@ -49,10 +49,11 @@ public class ServiceHGCG003A extends ServiceBase {
...
@@ -49,10 +49,11 @@ public class ServiceHGCG003A extends ServiceBase {
@OperationLogAnnotation
(
operModul
=
"采购合同"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
@OperationLogAnnotation
(
operModul
=
"采购合同"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
try
{
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_CODE_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
SUP_RECORD_BLOCK_ID
));
DdynamicEnum
.
COMPANY_CODE_BLOCK_ID
,
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_RECORD_BLOCK_ID
));
DdynamicEnum
.
SUP_RECORD_BLOCK_ID
,
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
SPEC_NAME_BLOCK_ID
));
DdynamicEnum
.
INVENT_RECORD_BLOCK_ID
,
DdynamicEnum
.
SPEC_NAME_BLOCK_ID
));
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGCG002B
().
eiMetadata
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGCG002B
().
eiMetadata
);
}
catch
(
PlatException
e
)
{
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
...
...
src/main/java/com/baosight/hggp/hg/cg/sql/HGCG002A.xml
View file @
f49bd947
...
@@ -183,7 +183,7 @@
...
@@ -183,7 +183,7 @@
$orderBy$
$orderBy$
</isNotEmpty>
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
<isEmpty
property=
"orderBy"
>
ID
a
sc
ID
de
sc
</isEmpty>
</isEmpty>
</dynamic>
</dynamic>
</sql>
</sql>
...
@@ -428,7 +428,7 @@
...
@@ -428,7 +428,7 @@
$orderBy$
$orderBy$
</isNotEmpty>
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
<isEmpty
property=
"orderBy"
>
a.ID desc
b.CONTRACT_DATE desc, b.CONTRACT_NO desc,
a.ID desc
</isEmpty>
</isEmpty>
</dynamic>
</dynamic>
</select>
</select>
...
...
src/main/java/com/baosight/hggp/hg/wd/service/ServiceHGWD002.java
View file @
f49bd947
src/main/webapp/HG/CG/HGCG002B.js
View file @
f49bd947
...
@@ -227,7 +227,7 @@ $(window).load(function () {
...
@@ -227,7 +227,7 @@ $(window).load(function () {
// 查询
// 查询
query
();
query
();
initInventCode
();
//
initInventCode();
let
status
=
$
(
"#inqu_status-0-status"
).
val
();
let
status
=
$
(
"#inqu_status-0-status"
).
val
();
if
(
status
!=
0
&&
status
!=
2
){
if
(
status
!=
0
&&
status
!=
2
){
$
(
".k-grid-add"
).
hide
();
$
(
".k-grid-add"
).
hide
();
...
@@ -292,11 +292,11 @@ let save = function () {
...
@@ -292,11 +292,11 @@ let save = function () {
return
;
return
;
}
}
for
(
let
i
=
0
;
i
<
rows
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
rows
.
length
;
i
++
)
{
if
(
!
isBlank
(
rows
[
i
][
'price'
])
&&
!
isNumber
(
rows
[
i
][
'price'
])){
if
(
isBlank
(
rows
[
i
][
'price'
])
||
!
isNumber
(
rows
[
i
][
'price'
])){
message
(
"勾选的第"
+
(
i
+
1
)
+
"行单价不能小于0"
);
message
(
"勾选的第"
+
(
i
+
1
)
+
"行单价不能小于0"
);
return
;
return
;
}
}
if
(
!
isBlank
(
rows
[
i
][
'taxRate'
])
&&
!
isNumber
(
rows
[
i
][
'taxRate'
])){
if
(
isBlank
(
rows
[
i
][
'taxRate'
])
||
!
isNumber
(
rows
[
i
][
'taxRate'
])){
message
(
"勾选的第"
+
(
i
+
1
)
+
"行税率不能为空"
);
message
(
"勾选的第"
+
(
i
+
1
)
+
"行税率不能为空"
);
return
;
return
;
}
}
...
...
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