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
550e3dd8
Commit
550e3dd8
authored
May 17, 2022
by
yangchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
单据默认值增加对实体类型的判断
parent
b1964e21
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
4 deletions
+36
-4
typesBill.vue
...ms-plugin-billexpand/src/components-control/typesBill.vue
+18
-2
bill-form-runner.vue
develop/@rbc/runner-bill-form/src/views/bill-form-runner.vue
+18
-2
No files found.
develop/@gms/gms-plugin-billexpand/src/components-control/typesBill.vue
View file @
550e3dd8
...
...
@@ -81,7 +81,7 @@ export default {
this
.
init
=
true
;
});
},
loadFinishFun
(
bill
,
err
)
{
async
loadFinishFun
(
bill
,
err
)
{
if
(
err
)
{
this
.
$Message
.
error
(
err
)
setTimeout
(()
=>
{
...
...
@@ -90,8 +90,24 @@ export default {
return
}
// 给bill设置默认值
let
defaultValueList
=
this
.
defaultValueList
||
[]
let
defaultValueList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
defaultValueList
||
[]))
for
(
let
item
of
defaultValueList
){
if
(
item
.
tableName
){
const
postData
=
{
pagination
:
false
,
tableName
:
item
.
tableName
,
searchKey
:
""
,
queryDataStructure
:
"ALL"
,
queryChildrenType
:
"ALL_CHILDREN_WITH_SELF"
,
code
:
item
.
defaultValue
,
authType
:
"ACCESS"
,
versionDate
:
""
,
expression
:
""
,
}
const
{
data
}
=
await
GMS
.
$http
.
post
(
`/baseData/data/list`
,
postData
)
const
value
=
data
.
rows
&&
data
.
rows
[
0
]
||
''
item
.
defaultValue
=
value
}
bill
.
getMasterData
().
setValue
(
item
.
field
,
item
.
defaultValue
)
}
const
workflowState
=
bill
.
getMasterData
().
getValue
(
'billState'
)
// setV
...
...
develop/@rbc/runner-bill-form/src/views/bill-form-runner.vue
View file @
550e3dd8
...
...
@@ -116,7 +116,7 @@ export default {
});
}
},
loadFinishFun
(
bill
,
err
)
{
async
loadFinishFun
(
bill
,
err
)
{
if
(
!
GMS
.
oldBillDataMap
)
GMS
.
oldBillDataMap
=
{}
if
(
err
)
{
this
.
$Message
.
error
(
errMap
[
err
]?
errMap
[
err
]:
err
)
...
...
@@ -127,8 +127,24 @@ export default {
return
}
// 给bill设置默认值
let
defaultValueList
=
this
.
defaultValueList
||
[]
let
defaultValueList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
defaultValueList
||
[]))
for
(
let
item
of
defaultValueList
){
if
(
item
.
tableName
){
const
postData
=
{
pagination
:
false
,
tableName
:
item
.
tableName
,
searchKey
:
""
,
queryDataStructure
:
"ALL"
,
queryChildrenType
:
"ALL_CHILDREN_WITH_SELF"
,
code
:
item
.
defaultValue
,
authType
:
"ACCESS"
,
versionDate
:
""
,
expression
:
""
,
}
const
{
data
}
=
await
GMS
.
$http
.
post
(
`/baseData/data/list`
,
postData
)
const
value
=
data
.
rows
&&
data
.
rows
[
0
]
||
''
item
.
defaultValue
=
value
}
bill
.
getMasterData
().
setValue
(
item
.
field
,
item
.
defaultValue
)
}
this
.
curBill
=
bill
;
...
...
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