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
04b11448
Commit
04b11448
authored
Aug 19, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://git.pseer.com:8800/platform/hg-smart
into dev-ly
parents
72a18a6d
eb572f0b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
13 deletions
+18
-13
ServiceHGWD001C.java
...java/com/baosight/hggp/hg/wd/service/ServiceHGWD001C.java
+1
-1
HGCG001.jsp
src/main/webapp/HG/CG/HGCG001.jsp
+1
-0
HGCG001A.jsp
src/main/webapp/HG/CG/HGCG001A.jsp
+1
-0
HGCG002.js
src/main/webapp/HG/CG/HGCG002.js
+2
-2
HGCG002B.js
src/main/webapp/HG/CG/HGCG002B.js
+13
-10
No files found.
src/main/java/com/baosight/hggp/hg/wd/service/ServiceHGWD001C.java
View file @
04b11448
...
@@ -89,7 +89,7 @@ public class ServiceHGWD001C extends ServiceBase {
...
@@ -89,7 +89,7 @@ public class ServiceHGWD001C extends ServiceBase {
List
<
HGWD001C
>
fWd001cs
=
MapUtils
.
toDaoEPBases
(
inInfo
,
HGWD001C
.
class
);
List
<
HGWD001C
>
fWd001cs
=
MapUtils
.
toDaoEPBases
(
inInfo
,
HGWD001C
.
class
);
for
(
HGWD001C
fWd001c
:
fWd001cs
)
{
for
(
HGWD001C
fWd001c
:
fWd001cs
)
{
// 下载记录+1
// 下载记录+1
HGWDTools
.
HgWd001
.
preview
Incr
(
fWd001c
.
getFileId
());
HGWDTools
.
HgWd001
.
download
Incr
(
fWd001c
.
getFileId
());
// 新增
// 新增
DaoUtils
.
insert
(
HGWD001C
.
INSERT
,
fWd001c
);
DaoUtils
.
insert
(
HGWD001C
.
INSERT
,
fWd001c
);
}
}
...
...
src/main/webapp/HG/CG/HGCG001.jsp
View file @
04b11448
...
@@ -57,6 +57,7 @@
...
@@ -57,6 +57,7 @@
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"purQty"
cname=
"采购数量"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N3}"
defaultValue=
"0"
/>
<EF:EFColumn
ename=
"purQty"
cname=
"采购数量"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N3}"
defaultValue=
"0"
/>
<EF:EFColumn
ename=
"purWeight"
cname=
"采购重量"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N3}"
defaultValue=
"0"
/>
<EF:EFColumn
ename=
"purWeight"
cname=
"采购重量"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N3}"
defaultValue=
"0"
/>
<EF:EFColumn
ename=
"planQty"
cname=
"计划数量"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N3}"
defaultValue=
"0"
/>
<EF:EFColumn
ename=
"planWeight"
cname=
"计划重量"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N3}"
defaultValue=
"0"
/>
<EF:EFColumn
ename=
"planWeight"
cname=
"计划重量"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N3}"
defaultValue=
"0"
/>
<EF:EFColumn
ename=
"createdName"
cname=
"创建人"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"createdName"
cname=
"创建人"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"createdTime"
cname=
"创建时间"
enable=
"false"
width=
"140"
align=
"center"
<EF:EFColumn
ename=
"createdTime"
cname=
"创建时间"
enable=
"false"
width=
"140"
align=
"center"
...
...
src/main/webapp/HG/CG/HGCG001A.jsp
View file @
04b11448
...
@@ -46,6 +46,7 @@
...
@@ -46,6 +46,7 @@
<EF:EFColumn
ename=
"spec"
cname=
"规格"
width=
"120"
align=
"center"
required=
"true"
/>
<EF:EFColumn
ename=
"spec"
cname=
"规格"
width=
"120"
align=
"center"
required=
"true"
/>
<EF:EFColumn
ename=
"purQty"
cname=
"采购数量"
width=
"120"
align=
"right"
format=
"{0:N3}"
required=
"true"
/>
<EF:EFColumn
ename=
"purQty"
cname=
"采购数量"
width=
"120"
align=
"right"
format=
"{0:N3}"
required=
"true"
/>
<EF:EFColumn
ename=
"purWeight"
cname=
"采购重量"
width=
"120"
align=
"right"
format=
"{0:N3}"
required=
"true"
/>
<EF:EFColumn
ename=
"purWeight"
cname=
"采购重量"
width=
"120"
align=
"right"
format=
"{0:N3}"
required=
"true"
/>
<EF:EFColumn
ename=
"planQty"
cname=
"计划数量"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"planWeight"
cname=
"计划重量"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"planWeight"
cname=
"计划重量"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"material"
cname=
"材质"
width=
"80"
align=
"center"
required=
"true"
/>
<EF:EFColumn
ename=
"material"
cname=
"材质"
width=
"80"
align=
"center"
required=
"true"
/>
<EF:EFColumn
ename=
"unit"
cname=
"单位"
enable=
"false"
width=
"80"
align=
"center"
/>
<EF:EFColumn
ename=
"unit"
cname=
"单位"
enable=
"false"
width=
"80"
align=
"center"
/>
...
...
src/main/webapp/HG/CG/HGCG002.js
View file @
04b11448
...
@@ -21,8 +21,8 @@ $(function () {
...
@@ -21,8 +21,8 @@ $(function () {
+
'onclick="showDetail('
+
item
.
id
+
', '
+
item
.
status
+
',0, '
+
item
.
source
+
')" >详情</a>'
;
+
'onclick="showDetail('
+
item
.
id
+
', '
+
item
.
status
+
',0, '
+
item
.
source
+
')" >详情</a>'
;
}
}
if
(
!
isBlank
(
item
.
id
)){
if
(
!
isBlank
(
item
.
id
)){
//
待审核、
审核通过的,可以进行合同变更
//审核通过的,可以进行合同变更
if
(
item
.
status
==
0
||
item
.
status
==
2
)
if
(
item
.
status
==
2
)
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="showDetail('
+
item
.
id
+
', '
+
item
.
status
+
', 1, '
+
item
.
source
+
')" >合同变更</a>'
;
+
'onclick="showDetail('
+
item
.
id
+
', '
+
item
.
status
+
', 1, '
+
item
.
source
+
')" >合同变更</a>'
;
}
}
...
...
src/main/webapp/HG/CG/HGCG002B.js
View file @
04b11448
...
@@ -102,7 +102,7 @@ $(function () {
...
@@ -102,7 +102,7 @@ $(function () {
beforeEdit
:
function
(
e
)
{
beforeEdit
:
function
(
e
)
{
var
status
=
$
(
"#inqu_status-0-status"
).
val
();
var
status
=
$
(
"#inqu_status-0-status"
).
val
();
let
updateFlag
=
$
(
"#updateFlag"
).
val
();
let
updateFlag
=
$
(
"#updateFlag"
).
val
();
if
(
updateFlag
==
0
){
if
(
status
!=
0
&&
status
!=
2
){
e
.
preventDefault
();
e
.
preventDefault
();
}
}
let
item
=
e
.
model
;
let
item
=
e
.
model
;
...
@@ -239,21 +239,24 @@ $(window).load(function () {
...
@@ -239,21 +239,24 @@ $(window).load(function () {
initInventCode
();
initInventCode
();
let
status
=
$
(
"#inqu_status-0-status"
).
val
();
let
status
=
$
(
"#inqu_status-0-status"
).
val
();
let
updateFlag
=
$
(
"#updateFlag"
).
val
();
if
(
status
!=
0
&&
status
!=
2
){
//只有审核的、合同变更的可以修改
if
(
updateFlag
==
0
){
$
(
".k-grid-add"
).
hide
();
$
(
".k-grid-add"
).
hide
();
$
(
".k-grid-save-changes"
).
hide
();
$
(
".k-grid-save-changes"
).
hide
();
$
(
".k-grid-cancel-changes"
).
hide
();
$
(
".k-grid-cancel-changes"
).
hide
();
$
(
".k-grid-delete"
).
hide
();
$
(
".k-grid-delete"
).
hide
();
}
else
{
}
else
if
(
status
==
2
){
//如果不是手动录入的,并且没生成收款单的,不能新增、删除
//审批通过的,但是点了详情
let
source
=
$
(
"#source"
).
val
();
let
updateFlag
=
$
(
"#updateFlag"
).
val
();
if
(
source
==
0
){
if
(
updateFlag
==
0
){
$
(
".k-grid-add"
).
hide
();
$
(
".k-grid-save-changes"
).
hide
();
$
(
".k-grid-delete"
).
hide
();
}
}
}
}
//如果不是手动录入的,并且没生成收款单的,不能新增、删除
let
source
=
$
(
"#source"
).
val
();
if
(
source
==
0
){
$
(
".k-grid-add"
).
hide
();
$
(
".k-grid-delete"
).
hide
();
}
});
});
...
...
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