Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rbc-demo
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
王衍超
rbc-demo
Commits
0fa8667a
Commit
0fa8667a
authored
Mar 15, 2022
by
qiaoyanqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
没有页签
parent
b0a8f7db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
queryTag.js
.../gms-plugin-billexpand/src/query-actions/util/queryTag.js
+5
-5
No files found.
develop/@gms/gms-plugin-billexpand/src/query-actions/util/queryTag.js
View file @
0fa8667a
...
...
@@ -12,7 +12,7 @@
* @param {string} uuid - 打开单据的uuid
*/
export
function
setQueryTag
(
querySet
,
index
,
templateName
,
uuid
)
{
let
curTagId
=
uuid
||
'router'
;
let
curTagId
=
window
.
nros
.
context
.
getCurrTag
()?
uuid
:
'router'
;
if
(
!
GMS
.
queryObject
){
GMS
.
queryObject
=
{};
}
...
...
@@ -27,14 +27,14 @@ export function setQueryTag(querySet, index, templateName,uuid) {
//获取查询条件
export
function
getQuerySet
()
{
let
curTagId
=
window
.
nros
.
context
.
getCurrTag
()
||
"router"
;
return
GMS
.
queryObject
&&
GMS
.
queryObject
[
curTagId
].
currentDataQueryConditionSet
;
return
GMS
.
queryObject
&&
GMS
.
queryObject
[
curTagId
]
&&
GMS
.
queryObject
[
curTagId
]
.
currentDataQueryConditionSet
;
console
.
log
(
'没有获取到查询条件'
);
}
//获取下标
export
function
getQueryIndex
()
{
let
curTagId
=
window
.
nros
.
context
.
getCurrTag
()
||
"router"
;
return
GMS
.
queryObject
&&
GMS
.
queryObject
[
curTagId
].
index
;
return
GMS
.
queryObject
&&
GMS
.
queryObject
[
curTagId
]
&&
GMS
.
queryObject
[
curTagId
]
.
index
;
console
.
log
(
'没有获取到下标'
);
}
...
...
@@ -59,7 +59,7 @@ export function setQueryIndex(index) {
//如果index为-1的话,设置为0
export
function
initIndexZero
()
{
let
curTagId
=
window
.
nros
.
context
.
getCurrTag
()
||
"router"
;
if
(
GMS
.
queryObject
&&
getQueryIndex
()
==
-
1
)
{
if
(
GMS
.
queryObject
&&
GMS
.
queryObject
[
curTagId
]
&&
getQueryIndex
()
==
-
1
)
{
GMS
.
queryObject
[
curTagId
].
index
=
0
;
}
}
...
...
@@ -67,7 +67,7 @@ export function initIndexZero() {
//下标减一
export
function
minusIndex
()
{
let
curTagId
=
window
.
nros
.
context
.
getCurrTag
()
||
"router"
;
if
(
GMS
.
queryObject
)
{
if
(
GMS
.
queryObject
&&
GMS
.
queryObject
[
curTagId
]
)
{
GMS
.
queryObject
[
curTagId
].
index
=
getQueryIndex
()
*
1
-
1
;
//上张下张用
}
}
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