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
b346ca3b
Commit
b346ca3b
authored
Mar 22, 2022
by
乔延琦
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop-zhouyi' into 'develop'
Develop zhouyi See merge request GFP/RBC/rbc-frontend!117
parents
0c586a66
f05271fe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
7 deletions
+32
-7
approval-user-control.vue
...c/control/approval-user-control/approval-user-control.vue
+5
-0
ApplyTemplateString.js
.../gms-plugin-billexpand/src/formula/ApplyTemplateString.js
+27
-7
No files found.
develop/@gms/gms-plugin-billexpand/src/control/approval-user-control/approval-user-control.vue
View file @
b346ca3b
...
...
@@ -173,6 +173,7 @@ export default {
selectedSuggestion
:
[],
themeColor
:
this
.
define
?.
config
?.
fontColor
||
'#5369D8'
,
currentHoverSuggestion
:
null
,
currentTagId
:
null
,
}
},
watch
:
{
...
...
@@ -187,6 +188,7 @@ export default {
// this.reviewParam['billid'] = this.$route.query.id;
this
.
context
.
bill
.
setGlobalParam
(
'reviewParam'
,
this
.
reviewParam
);
this
.
value
=
this
.
context
.
bill
.
getGlobalParam
(
'reviewParam'
).
suggestions
this
.
currentTagId
=
window
.
nros
.
context
.
getCurrTag
()
window
.
GMS
.
vbus
.
$on
(
'approval-user-control-edit'
,
this
.
openEditModal
)
window
.
GMS
.
vbus
.
$on
(
'approval-user-control-add'
,
this
.
handleAdd
)
this
.
getSuggestionOptions
()
...
...
@@ -200,6 +202,7 @@ export default {
this
.
$set
(
suggestion
,
'visible'
,
true
)
},
openEditModal
()
{
if
(
this
.
currentTagId
&&
this
.
currentTagId
!=
window
.
nros
.
context
.
getCurrTag
())
return
this
.
suggestionOptionModal
=
true
},
genCode
()
{
...
...
@@ -260,6 +263,8 @@ export default {
this
.
value
=
s
.
spyj
},
handleAdd
()
{
if
(
this
.
currentTagId
&&
this
.
currentTagId
!=
window
.
nros
.
context
.
getCurrTag
())
return
this
.
currentEditSuggestion
=
{
code
:
this
.
genCode
(),
spyj
:
this
.
value
,
...
...
develop/@gms/gms-plugin-billexpand/src/formula/ApplyTemplateString.js
View file @
b346ca3b
...
...
@@ -38,15 +38,29 @@ export default {
}
const
getBaseDataList
=
(
originFieldValue
)
=>
{
const
promistList
=
[]
for
(
let
i
=
0
;
i
<
argList
.
length
;
i
+=
2
)
{
promistList
.
push
(
this
.
getMDObject
({
const
getList
=
(
originFieldValue
)
=>
{
const
paramList
=
[]
for
(
let
i
=
0
;
i
<
argList
.
length
;
i
+=
2
)
{
paramList
.
push
({
...
requestParam
,
tableName
:
argList
[
i
+
1
],
objectcode
:
originFieldValue
[
argList
[
i
]],
})
}
return
this
.
getCombBaseDataList
(
paramList
)
}
if
(
originFieldValue
.
_type
)
{
return
this
.
getMDObject
({
...
requestParam
,
tableName
:
argList
[
i
+
1
],
objectcode
:
originFieldValue
[
argList
[
i
]],
}))
tableName
:
originFieldValue
.
_type
.
split
(
'.'
)[
1
],
code
:
originFieldValue
.
code
,
}).
then
((
res
)
=>
{
return
getList
(
res
)
})
}
else
{
return
getList
(
originFieldValue
)
}
return
Promise
.
all
(
promistList
)
}
const
getFormattedString
=
(
originFieldValue
,
basedataObjectList
,
templateString
)
=>
{
const
matchList
=
templateString
.
match
(
/`.+
?
`/g
)
...
...
@@ -114,6 +128,12 @@ export default {
}).
catch
((
resp
)
=>
{
});
},
getCombBaseDataList
(
param
)
{
return
GMS
.
$http
.
post
(
"/rbcfunc/getCombBaseDataList"
,
param
).
then
(
res
=>
{
return
(
res
&&
res
.
data
&&
res
.
data
.
data
||
[]).
map
((
o
)
=>
o
&&
o
[
0
]
||
{})
}).
catch
((
res
)
=>
{
});
},
getResultType
:
function
()
{
return
FMR
.
ConstDataTypes
.
General
;
}
...
...
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