Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-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
hp-smart
Commits
ad712b3c
Commit
ad712b3c
authored
Feb 06, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复库存类型和库存名称联动
parent
6e3c82a8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletions
+13
-1
HPKC006.js
src/main/webapp/HP/KC/HPKC006.js
+4
-1
HPSC002.js
src/main/webapp/HP/SC/HPSC002.js
+9
-0
No files found.
src/main/webapp/HP/KC/HPKC006.js
View file @
ad712b3c
...
...
@@ -12,6 +12,7 @@ $(function() {
"result"
:
{
columns
:
[{
field
:
"whCode"
,
title
:
"仓库名称"
,
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
whNameGlobalData
.
length
;
i
++
)
{
if
(
whNameGlobalData
[
i
][
'valueField'
]
===
dataItem
[
'whCode'
])
{
...
...
@@ -32,6 +33,7 @@ $(function() {
}
},
{
field
:
"inventName"
,
title
:
"存货名称"
,
template
:
function
(
dataItem
)
{
//let flag = false;
for
(
let
i
=
0
;
i
<
inventNameGlobalData
.
length
;
i
++
)
{
...
...
@@ -54,7 +56,7 @@ $(function() {
var
eiInfo
=
new
EiInfo
();
eiInfo
.
set
(
"inqu_status-0-inventTypes"
,
[
1
,
2
,
5
]);
eiInfo
.
set
(
"in
qu_status-0-in
ventType"
,
options
.
model
[
"inventType"
]);
eiInfo
.
set
(
"inventType"
,
options
.
model
[
"inventType"
]);
eiInfo
.
set
(
"isSplicingSymbol"
,
false
);
//eiInfo.set("inqu_status-0-inventTypes", [1, 2, 5]);
//eiInfo.set("inqu_status-0-inventCode", options.model["inventCode"]);
...
...
@@ -92,6 +94,7 @@ $(function() {
}*/
},
{
field
:
"inventRecordId"
,
title
:
"规格"
,
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
specGlobalData
.
length
;
i
++
)
{
if
(
specGlobalData
[
i
][
'valueField'
]
===
dataItem
[
'inventRecordId'
])
{
...
...
src/main/webapp/HP/SC/HPSC002.js
View file @
ad712b3c
...
...
@@ -211,6 +211,7 @@ $(function () {
columns
:
[
{
field
:
"operator"
,
title
:
"操作"
,
template
:
function
(
item
)
{
console
.
log
(
item
)
let
auditStatus
=
item
.
status
;
...
...
@@ -235,6 +236,7 @@ $(function () {
}
},{
field
:
"prdtName"
,
title
:
"部件名称"
,
/*query: function (container, options) {
let eiInfo = new EiInfo();
eiInfo.set("inqu_status-0-inventTypes", [3, 4]);
...
...
@@ -259,7 +261,14 @@ $(function () {
input
.
attr
(
"id"
,
options
.
field
);
input
.
appendTo
(
container
);
let
eiInfo
=
new
EiInfo
();
let
selectTreeNode
=
IPLATUI
.
EFTree
.
materialTree
.
selectTreeNode
;
if
(
selectTreeNode
.
lv
==
1
){
eiInfo
.
set
(
"inventType"
,
4
);
}
else
if
(
selectTreeNode
.
lv
==
2
){
eiInfo
.
set
(
"inventType"
,
3
);
}
else
{
eiInfo
.
set
(
"inventTypes"
,
[
3
,
4
]);
}
eiInfo
.
set
(
"isSplicingSymbol"
,
false
);
var
dataSource
;
EiCommunicator
.
send
(
"HPPZ004"
,
"queryComboBox"
,
eiInfo
,
{
...
...
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