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
0d859d9a
Commit
0d859d9a
authored
Feb 08, 2022
by
Joey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(@gms/gms-plugin-billexpand): 驳回单据可以保存和重复提交
parent
9ae73433
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
25 deletions
+26
-25
saveAction.js
develop/@gms/gms-plugin-billexpand/src/actions/saveAction.js
+23
-23
emcon.js
develop/@gms/gms-plugin-billexpand/src/emcon.js
+2
-1
goToDetail.js
...gms/gms-plugin-billexpand/src/query-actions/goToDetail.js
+1
-1
No files found.
develop/@gms/gms-plugin-billexpand/src/actions/saveAction.js
View file @
0d859d9a
...
...
@@ -3,29 +3,29 @@ import { getUUID } from "../query-actions/util/lib";
export
default
{
execute
:
function
(
bill
,
param
)
{
if
(
bill
)
{
const
masterData
=
bill
.
getMasterData
()
// 驳回状态
// 此时保存创建一张新单据
if
(
masterData
.
getValue
(
'billState'
)
==
91
)
{
;[
'billCode'
,
'billState'
,
'flowFinishTime'
,
'flowProcessId'
,
'flowState'
,
'flowSubmitTime'
,
'orgCode'
,
'createTime'
,
'modifyTime'
,
].
forEach
((
key
)
=>
{
if
(
masterData
.
getValue
(
key
))
masterData
.
setValue
(
key
,
''
)
bill
.
billdata
.
masterFiled
[
key
]
=
''
})
masterData
.
setValue
(
'orgId'
,
'00000000-0000-0000-000000000000'
)
masterData
.
setValue
(
'recver'
,
0
)
masterData
.
setValue
(
'id'
,
getUUID
())
}
//
const masterData = bill.getMasterData()
//
//
驳回状态
//
//
此时保存创建一张新单据
//
if (masterData.getValue('billState') == 91) {
//
;[
//
'billCode',
//
'billState',
//
'flowFinishTime',
//
'flowProcessId',
//
'flowState',
//
'flowSubmitTime',
//
'orgCode',
//
'createTime',
//
'modifyTime',
//
].forEach((key) => {
//
if (masterData.getValue(key))
//
masterData.setValue(key, '')
//
bill.billdata.masterFiled[key] = ''
//
})
//
masterData.setValue('orgId', '00000000-0000-0000-000000000000')
//
masterData.setValue('recver', 0)
//
masterData.setValue('id', getUUID())
//
}
bill
.
runFormulaCheckData
(
param
,
function
(
msg
)
{
if
(
msg
.
length
==
0
)
{
...
...
develop/@gms/gms-plugin-billexpand/src/emcon.js
View file @
0d859d9a
...
...
@@ -1156,7 +1156,8 @@ export default {
"description"
:
""
,
"title"
:
"财务_查询草稿[CW_draftSearchAction]"
,
"value"
:
"draftSearchAction"
,
"btnDisable"
:
"false"
"btnDisable"
:
"false"
,
"btnDisable"
:
"billReadOnly;90;91;92"
},
{
"discard"
:
false
,
"path"
:
"单据/复制单据"
,
...
...
develop/@gms/gms-plugin-billexpand/src/query-actions/goToDetail.js
View file @
0d859d9a
...
...
@@ -7,7 +7,6 @@ export default {
context
.
dom
.
$Message
.
info
(
"请配置跳转页面的参数"
);
return
;
}
if
(
window
.
osConfig
.
appOpenMode
&&
window
.
osConfig
.
appOpenMode
==
"apploader"
...
...
@@ -33,6 +32,7 @@ export default {
c
.
init
=
true
;
c
.
modal_visible
=
true
;
c
.
isReadOnly
=
true
c
.
state
=
'readOnly'
})
}
}
...
...
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