Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
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
fukai
vue-gjjs
Commits
1facce2d
Commit
1facce2d
authored
Nov 03, 2023
by
yangxiaolei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
函数封装
parent
ba51dd98
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
58 deletions
+21
-58
index.js
src/business/brtset/event/index.js
+1
-19
index.js
src/business/litopn/event/index.js
+1
-19
index.js
src/business/trtset/event/index.js
+1
-19
commonFunctions.js
src/mixin/commonFunctions.js
+18
-1
No files found.
src/business/brtset/event/index.js
View file @
1facce2d
...
...
@@ -143,26 +143,8 @@ export default {
let
res
=
await
Api
.
post
(
'/service/ptspta/fetch'
,
params
);
if
(
res
.
respCode
==
SUCCESS
)
{
this
.
$set
(
this
.
model
.
gidgrp
,
row
.
role
.
toLowerCase
(),
res
.
data
);
let
keyLabel
=
row
.
role
.
toLowerCase
()
let
extkeyLabel
=
`brtset.
${
keyLabel
}
.pts`
let
deepData
=
this
.
getProperty
(
extkeyLabel
,
this
.
model
)
console
.
log
(
"deepData=>"
,
deepData
)
console
.
log
(
"deepData1=>"
,
deepData
.
modifySet
)
if
(
Array
.
isArray
(
deepData
.
modifySet
)
&&
!
deepData
.
modifySet
.
includes
(
'extkey'
)){
deepData
.
modifySet
.
push
(
'extkey'
,
'adrblk'
)
}
console
.
log
(
"deepData2=>"
,
deepData
.
modifySet
)
}
},
getProperty
(
str
,
value
)
{
let
keys
=
str
?.
split
(
'.'
)
for
(
let
key
of
keys
)
{
if
(
value
)
{
value
=
value
[
key
]
}
this
.
modifySetCollect
(
row
,
'gidgrp'
,
this
.
model
)
}
return
value
},
// 业务信息=》基本信息=》支出目的
purposChange
(
key
,
value
)
{
...
...
src/business/litopn/event/index.js
View file @
1facce2d
...
...
@@ -120,26 +120,8 @@ export default {
let
res
=
await
Api
.
post
(
'/service/ptspta/fetch'
,
params
);
if
(
res
.
respCode
==
SUCCESS
)
{
this
.
$set
(
this
.
model
.
lidgrp
,
row
.
role
.
toLowerCase
(),
res
.
data
);
let
keyLabel
=
row
.
role
.
toLowerCase
()
let
extkeyLabel
=
`lidgrp.
${
keyLabel
}
.pts`
let
deepData
=
this
.
getProperty
(
extkeyLabel
,
this
.
model
)
console
.
log
(
"deepData=>"
,
deepData
)
console
.
log
(
"deepData1=>"
,
deepData
.
modifySet
)
if
(
Array
.
isArray
(
deepData
.
modifySet
)
&&
!
deepData
.
modifySet
.
includes
(
'extkey'
)){
deepData
.
modifySet
.
push
(
'extkey'
,
'adrblk'
)
}
console
.
log
(
"deepData2=>"
,
deepData
.
modifySet
)
}
},
getProperty
(
str
,
value
)
{
let
keys
=
str
?.
split
(
'.'
)
for
(
let
key
of
keys
)
{
if
(
value
)
{
value
=
value
[
key
]
}
this
.
modifySetCollect
(
row
,
'lidgrp'
,
this
.
model
)
}
return
value
},
//获取信用证编号
async
onLitpButgetref
()
{
...
...
src/business/trtset/event/index.js
View file @
1facce2d
...
...
@@ -143,27 +143,9 @@ export default {
let
res
=
await
Api
.
post
(
'/service/ptspta/fetch'
,
params
);
if
(
res
.
respCode
==
SUCCESS
)
{
this
.
$set
(
this
.
model
.
gidgrp
,
row
.
role
.
toLowerCase
(),
res
.
data
);
let
keyLabel
=
row
.
role
.
toLowerCase
()
let
extkeyLabel
=
`trtset.
${
keyLabel
}
.pts`
let
deepData
=
this
.
getProperty
(
extkeyLabel
,
this
.
model
)
console
.
log
(
"deepData=>"
,
deepData
)
console
.
log
(
"deepData1=>"
,
deepData
.
modifySet
)
if
(
Array
.
isArray
(
deepData
.
modifySet
)
&&
!
deepData
.
modifySet
.
includes
(
'extkey'
)){
deepData
.
modifySet
.
push
(
'extkey'
,
'adrblk'
)
}
console
.
log
(
"deepData2=>"
,
deepData
.
modifySet
)
this
.
modifySetCollect
(
row
,
'gidgrp'
,
this
.
model
)
}
},
getProperty
(
str
,
value
)
{
let
keys
=
str
?.
split
(
'.'
)
for
(
let
key
of
keys
)
{
if
(
value
)
{
value
=
value
[
key
]
}
}
return
value
},
// 业务信息=》基本信息=》支出目的
purposChange
(
key
,
value
)
{
this
.
handleChangeForm
(
key
,
value
);
...
...
src/mixin/commonFunctions.js
View file @
1facce2d
...
...
@@ -9,5 +9,22 @@ export default {
});
return
loading
;
},
},
modifySetCollect
(
row
,
area
,
model
){
let
keyLabel
=
row
.
role
.
toLowerCase
()
let
extkeyLabel
=
`
${
area
}
.
${
keyLabel
}
.pts`
let
deepData
=
this
.
getProperty
(
extkeyLabel
,
model
)
if
(
Array
.
isArray
(
deepData
.
modifySet
)
&&
!
deepData
.
modifySet
.
includes
(
'extkey'
)){
deepData
.
modifySet
.
push
(
'extkey'
,
'adrblk'
)
}
},
getProperty
(
str
,
value
)
{
let
keys
=
str
?.
split
(
'.'
)
for
(
let
key
of
keys
)
{
if
(
value
)
{
value
=
value
[
key
]
}
}
return
value
}
}
};
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