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
ea67414c
Commit
ea67414c
authored
Oct 29, 2024
by
江和松
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
31eca5f9
56e5b50c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
6 deletions
+47
-6
HGSC012.xml
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC012.xml
+6
-6
HGWD001H.js
src/main/webapp/HG/WD/HGWD001H.js
+41
-0
No files found.
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC012.xml
View file @
ea67414c
...
...
@@ -13,8 +13,8 @@
h.INVENT_CODE as "lcinventCode",
<!-- 原料编码 -->
h.INVENT_NAME as "lcinventName",
<!-- 原料名称 -->
h.SPEC_CL as "lcspec",
h.
OUT_QTY as "jhckQty",
<!-- 出库
数量 -->
h.
OUT_WEIGHT as "jhckWeight",
<!-- 出库
重量 -->
h.
PCS_QTY as "jhckQty",
<!-- 加工
数量 -->
h.
PCS_WEIGHT as "jhckWeight",
<!-- 加工
重量 -->
hd.OUT_DATE as "outDate",
<!-- 出库日期 -->
hd.OUT_QTY as "sjckoutQty",
<!-- 出库数量 -->
hd.OUT_WEIGHT as "sjckoutWeight",
<!-- 出库重量 -->
...
...
@@ -38,13 +38,13 @@
hb.INVENT_CODE ,
hb.INVENT_NAME ,
hb.SPEC as "SPEC_CL",
hb.OUT
_QTY ,
hb.OUT
_WEIGHT ,
hb.PCS
_QTY ,
hb.PCS
_WEIGHT ,
ha.PRODUCT_CODE ,
ha.PRODUCT_NAME ,
ha.SPEC as "SPEC_CP",
ha.
DEPOSIT_QTY ,
ha.
DEPOSIT_WEIGHT
ha.PCS_QTY as
DEPOSIT_QTY ,
ha.PCS_WEIGHT
DEPOSIT_WEIGHT
from hggp.hgsc010 h
left join hggp.hgsc010a ha on h.ID = ha.PARENT_ID AND h.ACCOUNT_CODE = ha.ACCOUNT_CODE
left join hggp.hgsc010b hb on h.ID = hb.PARENT_ID AND h.ACCOUNT_CODE = ha.ACCOUNT_CODE and ha.INVENT_CODE = hb.INVENT_CODE
...
...
src/main/webapp/HG/WD/HGWD001H.js
View file @
ea67414c
...
...
@@ -34,6 +34,8 @@ $(function () {
$
(
window
).
load
(
function
()
{
// 查询
query
();
showAuthButton
();
});
/**
...
...
@@ -164,3 +166,42 @@ let checkSelectMain = function () {
}
return
true
;
}
/**
* 显示授权按钮
*/
let
showAuthButton
=
function
()
{
let
label
=
IPLAT
.
EFInput
.
value
(
$
(
"#inqu_status-0-fileId"
))
// C:目录
$
(
"#SAVE"
).
hide
();
$
(
"#AUTH"
).
hide
();
$
(
"#REMOVE_USER"
).
hide
();
$
(
"#COPY_USER"
).
hide
();
// 管理员或者是项目经理,才能进行授权和操作用户
let
inInfo
=
new
EiInfo
();
inInfo
.
set
(
"inqu_status-0-fileId"
,
label
);
EiCommunicator
.
send
(
'HGWD003'
,
'isProjectManager'
,
inInfo
,
{
onSuccess
:
function
(
res
)
{
let
status
=
res
.
getStatus
();
if
(
status
>=
0
&&
res
.
extAttr
.
isManager
==
1
)
{
$
(
"#AUTH"
).
show
();
$
(
"#REMOVE_USER"
).
show
();
$
(
"#COPY_USER"
).
show
();
$
(
"#SAVE"
).
show
();
}
else
if
(
status
>=
0
&&
res
.
extAttr
.
isProjectManager
==
1
)
{
$
(
"#AUTH"
).
show
();
$
(
"#REMOVE_USER"
).
show
();
$
(
"#COPY_USER"
).
show
();
$
(
"#SAVE"
).
hide
();
}
else
{
$
(
"#SAVE"
).
hide
();
$
(
"#AUTH"
).
hide
();
$
(
"#REMOVE_USER"
).
hide
();
$
(
"#COPY_USER"
).
hide
();
}
},
onFail
:
function
(
res
)
{
NotificationUtil
(
"操作失败,原因["
+
res
.
getMsg
()
+
"]"
,
"error"
);
}
});
}
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