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
323a1fa6
Commit
323a1fa6
authored
Mar 17, 2022
by
qiaoyanqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查看详情扩展字段参数
parent
4824910c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
11 deletions
+48
-11
showDetailAction.js
...gms/gms-plugin-billexpand/src/actions/showDetailAction.js
+8
-5
showDetailSPAction.js
...s/gms-plugin-billexpand/src/actions/showDetailSPAction.js
+8
-4
emcon.js
develop/@gms/gms-plugin-billexpand/src/emcon.js
+32
-2
No files found.
develop/@gms/gms-plugin-billexpand/src/actions/showDetailAction.js
View file @
323a1fa6
...
@@ -4,6 +4,10 @@ export default {
...
@@ -4,6 +4,10 @@ export default {
if
(
param
)
{
if
(
param
)
{
let
component
=
null
;
let
component
=
null
;
let
name
=
GMS
.
$hideContainer
.
addComponent
(
addInfoModal
,
{},
function
(
c
)
{
let
name
=
GMS
.
$hideContainer
.
addComponent
(
addInfoModal
,
{},
function
(
c
)
{
let
BILLID
=
param
.
param
.
billId
||
'BILLID'
;
let
BILLNAME
=
param
.
param
.
billName
||
'BILLNAME'
;
let
BILLEDITNAME
=
param
.
param
.
billDefineName
||
'BILLEDITNAME'
;
GMS
.
showDetailAction
=
true
;
//详情,点击确定按钮。记录此参数
GMS
.
showDetailAction
=
true
;
//详情,点击确定按钮。记录此参数
component
=
c
;
component
=
c
;
c
.
bill
=
bill
;
c
.
bill
=
bill
;
...
@@ -13,18 +17,17 @@ export default {
...
@@ -13,18 +17,17 @@ export default {
tableName
=
param
.
param
.
tableName
tableName
=
param
.
param
.
tableName
}
}
let
obj
=
c
.
getCurrentRowData
(
tableName
);
let
obj
=
c
.
getCurrentRowData
(
tableName
);
if
(
!
obj
[
'BILLNAME'
]
&&
tableName
==
'SRMXZB'
){
if
(
!
obj
[
BILLNAME
]
&&
tableName
==
'SRMXZB'
){
GAMS
.
Common
.
messagePrompt
(
'此条数据没有详情信息'
);
GAMS
.
Common
.
messagePrompt
(
'此条数据没有详情信息'
);
return
return
}
}
if
(
!
obj
[
'BILLNAME'
]){
if
(
!
obj
[
BILLNAME
]){
GAMS
.
Common
.
messagePrompt
(
'无详情参数'
);
GAMS
.
Common
.
messagePrompt
(
'无详情参数'
);
return
return
}
}
c
.
showDetail
=
true
;
c
.
showDetail
=
true
;
c
.
selectBill
=
obj
[
'BILLEDITNAME'
].
replace
(
/_E/ig
,
"_R"
);
//后续创建了_R的单子再说吧
c
.
selectBill
=
BILLEDITNAME
?
obj
[
BILLEDITNAME
]:
obj
[
'BILLEDITNAME'
].
replace
(
/_E/ig
,
"_R"
);
//后续创建了_R的单子再说吧
//c.selectBill = obj['BILLEDITNAME'];
c
.
billId
=
obj
[
BILLID
];
c
.
billId
=
obj
[
'BILLID'
];
c
.
subBillData
=
obj
.
BILLDETAILOBJ
;
c
.
subBillData
=
obj
.
BILLDETAILOBJ
;
c
.
modal_visible
=
true
;
c
.
modal_visible
=
true
;
console
.
log
(
'param'
,
param
,
obj
);
console
.
log
(
'param'
,
param
,
obj
);
...
...
develop/@gms/gms-plugin-billexpand/src/actions/showDetailSPAction.js
View file @
323a1fa6
...
@@ -4,6 +4,10 @@ export default {
...
@@ -4,6 +4,10 @@ export default {
if
(
param
)
{
if
(
param
)
{
let
component
=
null
;
let
component
=
null
;
let
name
=
GMS
.
$hideContainer
.
addComponent
(
addInfoModal
,
{},
function
(
c
)
{
let
name
=
GMS
.
$hideContainer
.
addComponent
(
addInfoModal
,
{},
function
(
c
)
{
let
BILLID
=
param
.
param
.
billId
||
'BILLID'
;
let
BILLNAME
=
param
.
param
.
billName
||
'BILLNAME'
;
let
BILLEDITNAME
=
param
.
param
.
billDefineName
||
'BILLEDITNAME'
;
GMS
.
showDetailAction
=
true
;
//详情,点击确定按钮。记录此参数
GMS
.
showDetailAction
=
true
;
//详情,点击确定按钮。记录此参数
component
=
c
;
component
=
c
;
c
.
bill
=
bill
;
c
.
bill
=
bill
;
...
@@ -15,17 +19,17 @@ export default {
...
@@ -15,17 +19,17 @@ export default {
tableName
=
param
.
param
.
tableName
tableName
=
param
.
param
.
tableName
}
}
let
obj
=
c
.
getCurrentRowData
(
tableName
);
let
obj
=
c
.
getCurrentRowData
(
tableName
);
if
(
!
obj
[
'BILLNAME'
]
&&
tableName
==
'SRMXZB'
){
if
(
!
obj
[
BILLNAME
]
&&
tableName
==
'SRMXZB'
){
GAMS
.
Common
.
messagePrompt
(
'此条数据没有详情信息'
);
GAMS
.
Common
.
messagePrompt
(
'此条数据没有详情信息'
);
return
return
}
}
if
(
!
obj
[
'BILLNAME'
]){
if
(
!
obj
[
BILLNAME
]){
GAMS
.
Common
.
messagePrompt
(
'无详情参数'
);
GAMS
.
Common
.
messagePrompt
(
'无详情参数'
);
return
return
}
}
c
.
showDetail
=
true
;
c
.
showDetail
=
true
;
c
.
selectBill
=
obj
[
'BILLEDITNAME'
];
c
.
selectBill
=
obj
[
BILLEDITNAME
];
c
.
billId
=
obj
[
'BILLID'
];
c
.
billId
=
obj
[
BILLID
];
c
.
subBillData
=
obj
.
BILLDETAILOBJ
;
c
.
subBillData
=
obj
.
BILLDETAILOBJ
;
c
.
modal_visible
=
true
;
c
.
modal_visible
=
true
;
console
.
log
(
'param'
,
param
,
obj
);
console
.
log
(
'param'
,
param
,
obj
);
...
...
develop/@gms/gms-plugin-billexpand/src/emcon.js
View file @
323a1fa6
...
@@ -1367,7 +1367,22 @@ export default {
...
@@ -1367,7 +1367,22 @@ export default {
"discard"
:
false
,
"discard"
:
false
,
"path"
:
"资产/通用"
,
"path"
:
"资产/通用"
,
"extends"
:
{
"extends"
:
{
"param"
:
[]
"param"
:
[{
"isRequired"
:
false
,
"title"
:
"单据id"
,
"key"
:
"billId"
,
"type"
:
"String"
,
},{
"isRequired"
:
false
,
"title"
:
"单据标识"
,
"key"
:
"billName"
,
"type"
:
"String"
,
},{
"isRequired"
:
false
,
"title"
:
"单据界面"
,
"key"
:
"billDefineName"
,
"type"
:
"String"
,
}]
},
},
"description"
:
""
,
"description"
:
""
,
"title"
:
"查看详情[showDetailAction]"
,
"title"
:
"查看详情[showDetailAction]"
,
...
@@ -1378,7 +1393,22 @@ export default {
...
@@ -1378,7 +1393,22 @@ export default {
"discard"
:
false
,
"discard"
:
false
,
"path"
:
"资产/通用"
,
"path"
:
"资产/通用"
,
"extends"
:
{
"extends"
:
{
"param"
:
[]
"param"
:
[{
"isRequired"
:
false
,
"title"
:
"单据id"
,
"key"
:
"billId"
,
"type"
:
"String"
,
},{
"isRequired"
:
false
,
"title"
:
"单据标识"
,
"key"
:
"billName"
,
"type"
:
"String"
,
},{
"isRequired"
:
false
,
"title"
:
"单据界面"
,
"key"
:
"billDefineName"
,
"type"
:
"String"
,
}]
},
},
"description"
:
""
,
"description"
:
""
,
"title"
:
"审批查看详情[showDetailSPAction]"
,
"title"
:
"审批查看详情[showDetailSPAction]"
,
...
...
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