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
49cd4c97
Commit
49cd4c97
authored
Aug 19, 2024
by
江和松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
采购合同详情、合同变更超链接逻辑修改
parent
03376375
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
8 deletions
+13
-8
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
+9
-6
No files found.
src/main/webapp/HG/CG/HGCG001.jsp
View file @
49cd4c97
...
...
@@ -57,6 +57,7 @@
</EF:EFComboColumn>
<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=
"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=
"createdName"
cname=
"创建人"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"createdTime"
cname=
"创建时间"
enable=
"false"
width=
"140"
align=
"center"
...
...
src/main/webapp/HG/CG/HGCG001A.jsp
View file @
49cd4c97
...
...
@@ -46,6 +46,7 @@
<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=
"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=
"material"
cname=
"材质"
width=
"80"
align=
"center"
required=
"true"
/>
<EF:EFColumn
ename=
"unit"
cname=
"单位"
enable=
"false"
width=
"80"
align=
"center"
/>
...
...
src/main/webapp/HG/CG/HGCG002.js
View file @
49cd4c97
...
...
@@ -21,8 +21,8 @@ $(function () {
+
'onclick="showDetail('
+
item
.
id
+
', '
+
item
.
status
+
',0, '
+
item
.
source
+
')" >详情</a>'
;
}
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" '
+
'onclick="showDetail('
+
item
.
id
+
', '
+
item
.
status
+
', 1, '
+
item
.
source
+
')" >合同变更</a>'
;
}
...
...
src/main/webapp/HG/CG/HGCG002B.js
View file @
49cd4c97
...
...
@@ -102,7 +102,7 @@ $(function () {
beforeEdit
:
function
(
e
)
{
var
status
=
$
(
"#inqu_status-0-status"
).
val
();
let
updateFlag
=
$
(
"#updateFlag"
).
val
();
if
(
updateFlag
==
0
){
if
(
status
!=
0
&&
status
!=
2
){
e
.
preventDefault
();
}
let
item
=
e
.
model
;
...
...
@@ -239,21 +239,24 @@ $(window).load(function () {
initInventCode
();
let
status
=
$
(
"#inqu_status-0-status"
).
val
();
let
updateFlag
=
$
(
"#updateFlag"
).
val
();
//只有审核的、合同变更的可以修改
if
(
updateFlag
==
0
){
if
(
status
!=
0
&&
status
!=
2
){
$
(
".k-grid-add"
).
hide
();
$
(
".k-grid-save-changes"
).
hide
();
$
(
".k-grid-cancel-changes"
).
hide
();
$
(
".k-grid-delete"
).
hide
();
}
else
{
}
else
if
(
status
==
2
){
//审批通过的,但是点了详情
let
updateFlag
=
$
(
"#updateFlag"
).
val
();
if
(
updateFlag
==
0
){
$
(
".k-grid-save-changes"
).
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