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
2aea26f5
Commit
2aea26f5
authored
May 13, 2022
by
yangchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
创建单据增加默认值
parent
daf1dbd8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
6 deletions
+22
-6
typesBill.vue
...ms-plugin-billexpand/src/components-control/typesBill.vue
+7
-2
IntroduceInputControl.vue
...s-plugin-billexpand/src/control/IntroduceInputControl.vue
+4
-4
createBill.js
...gms/gms-plugin-billexpand/src/query-actions/createBill.js
+4
-0
bill-form-runner.vue
develop/@rbc/runner-bill-form/src/views/bill-form-runner.vue
+7
-0
No files found.
develop/@gms/gms-plugin-billexpand/src/components-control/typesBill.vue
View file @
2aea26f5
...
...
@@ -89,7 +89,12 @@ export default {
},
0
);
return
}
const
workflowState
=
bill
.
getMasterData
().
getValue
(
'billState'
)
// 给bill设置默认值
let
defaultValueList
=
this
.
defaultValueList
for
(
let
item
of
defaultValueList
){
bill
.
getMasterData
().
setValue
(
item
.
field
,
item
.
defaultValue
)
}
const
workflowState
=
bill
.
getMasterData
().
getValue
(
'billState'
)
// setV
let
readArr
=
this
.
templateName
.
endsWith
(
'_A'
)?[
92
]:[
90
,
92
];
//如果是审批界面话,90能编辑
if
(
this
.
state
!=
'readOnly'
&&
readArr
.
includes
(
workflowState
))
{
this
.
state
=
'readOnly'
;
...
...
@@ -102,7 +107,7 @@ export default {
setTimeout
(()
=>
{
that
.
billClass
=
bill
;
GMS
.
oldBillData
=
bill
.
getBuillData
();
that
.
oldBillData
=
bill
.
getBuillData
();
that
.
oldBillData
=
bill
.
getBuillData
();
// 单据整体对象
},
100
);
},
handleCancel
()
{
...
...
develop/@gms/gms-plugin-billexpand/src/control/IntroduceInputControl.vue
View file @
2aea26f5
...
...
@@ -29,11 +29,7 @@
</
template
>
<
script
>
import
introduce
from
"./util/introduce.js"
;
import
bc_input
from
"./util/bc_input.js"
;
import
stateFormulaMixins
from
"./util/control-state-formula.js"
;
import
util
from
"./util/util"
;
function
validateNull
(
val
)
{
if
(
val
instanceof
Array
)
{
if
(
val
.
length
===
0
)
{
...
...
@@ -205,4 +201,7 @@ export default {
/
deep
/
.ivu-input-suffix
{
cursor
:
pointer
;
}
/
deep
/
.ivu-input
{
background
:
#f3f3f3
!important
;
}
</
style
>
\ No newline at end of file
develop/@gms/gms-plugin-billexpand/src/query-actions/createBill.js
View file @
2aea26f5
...
...
@@ -11,6 +11,8 @@ export default {
}
else
{
templateName
=
param
.
viewName
;
}
let
defaultValueList
=
param
.
defaultValueList
if
(
window
.
osConfig
.
appOpenMode
&&
window
.
osConfig
.
appOpenMode
==
"apploader"
...
...
@@ -23,6 +25,7 @@ export default {
templateName
:
templateName
,
init
:
true
,
state
:
''
,
defaultValueList
,
},
{
openWay
:
"FUNCTAB"
,
...
...
@@ -35,6 +38,7 @@ export default {
c
.
init
=
true
;
c
.
modal_visible
=
true
;
c
.
state
=
''
c
.
defaultValueList
=
defaultValueList
})
}
},
...
...
develop/@rbc/runner-bill-form/src/views/bill-form-runner.vue
View file @
2aea26f5
...
...
@@ -8,6 +8,7 @@
:state=
"state"
:params=
"params"
:hideButtonGroup=
"hideButtonGroup"
:defaultValueList=
"defaultValueList"
@
loadFinish=
"loadFinishFun"
></gms-bill-form>
</div>
...
...
@@ -43,6 +44,7 @@ export default {
};
},
created
()
{
this
.
defaultValueList
=
this
.
config
.
defaultValueList
||
[]
this
.
type
=
this
.
config
.
id
?
"load"
:
"init"
;
this
.
billId
=
this
.
config
.
id
;
this
.
state
=
this
.
config
.
state
||
''
;
...
...
@@ -124,6 +126,11 @@ export default {
},
0
);
return
}
// 给bill设置默认值
let
defaultValueList
=
this
.
defaultValueList
for
(
let
item
of
defaultValueList
){
bill
.
getMasterData
().
setValue
(
item
.
field
,
item
.
defaultValue
)
}
this
.
curBill
=
bill
;
const
billState
=
bill
.
getMasterData
().
getValue
(
'billState'
)
let
readArr
=
this
.
templateName
.
endsWith
(
'_A'
)?[
92
]:[
90
,
92
];
//如果是审批界面话,90能编辑
...
...
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