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
d1821d72
Commit
d1821d72
authored
Aug 23, 2022
by
yangchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
单据复制参数修改
parent
d6eed906
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
copyBillQueryAction.js
...lugin-billexpand/src/query-actions/copyBillQueryAction.js
+9
-7
No files found.
develop/@gms/gms-plugin-billexpand/src/query-actions/copyBillQueryAction.js
View file @
d1821d72
...
...
@@ -16,13 +16,15 @@ export default {
return
;
}
const
index
=
context
.
selects
[
0
].
_index
||
(
context
.
selects
[
0
].
_serialIndex
)
*
1
-
1
;
setQueryTag
(
context
.
currentDataQueryConditionSet
,
index
,
param
.
viewName
,
uuid
);
//上张下张用
let
billId
=
context
.
selects
[
0
][
param
.
billId
];
let
billDefine
=
context
.
selects
[
0
][
param
.
billDefine
];
let
templateName
=
context
.
selects
[
0
][
param
.
viewName
];
setQueryTag
(
context
.
currentDataQueryConditionSet
,
index
,
templateName
,
uuid
);
//上张下张用
if
(
param
.
hideCertainComponent
)
{
GMS
.
queryObject
[
uuid
||
'router'
].
hidePageSwitcher
=
true
}
GMS
.
vbus
.
$emit
(
'onCloseDrawer'
);
//关闭右侧划出面板
let
billId
=
context
.
selects
[
0
][
param
.
billId
];
let
billDefine
=
context
.
selects
[
0
][
param
.
billDefine
];
const
params
=
{
billId
,
billName
:
billDefine
...
...
@@ -32,7 +34,7 @@ export default {
const
data
=
res
&&
res
.
data
||
{}
if
(
data
.
code
===
0
)
{
const
id
=
data
.
billdata
.
id
previewBill
(
id
,
param
,
uuid
)
previewBill
(
id
,
param
,
uuid
,
templateName
)
}
else
{
GMS
.
$hideContainer
.
$Message
.
error
(
data
.
msg
||
'复制单据失败'
)
}
...
...
@@ -40,7 +42,7 @@ export default {
},
};
function
previewBill
(
billId
,
param
,
uuid
)
{
function
previewBill
(
billId
,
param
,
uuid
,
templateName
)
{
if
(
window
.
osConfig
.
appOpenMode
&&
...
...
@@ -52,7 +54,7 @@ function previewBill(billId, param, uuid) {
openWay
:
"FUNCTAB"
,
title
:
param
.
displayName
||
"单据详情"
,
config
:
{
templateName
:
param
.
view
Name
,
templateName
:
template
Name
,
id
:
billId
,
state
:
'readOnly'
,
hideButtonGroup
:
param
.
hideButton
?
true
:
false
...
...
@@ -60,7 +62,7 @@ function previewBill(billId, param, uuid) {
})
}
else
{
GMS
.
$hideContainer
.
addComponent
(
typesBill
,
{},
function
(
c
)
{
c
.
templateName
=
param
.
view
Name
;
c
.
templateName
=
template
Name
;
c
.
billId
=
billId
;
c
.
init
=
true
;
c
.
modal_visible
=
true
;
...
...
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