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
3b88366d
Commit
3b88366d
authored
Mar 01, 2022
by
袁成
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
ssh://nvwa.jiuqi.com.cn:2222/GFP/RBC/rbc-frontend
into develop-yuancheng
parents
08777958
0c1c06b6
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
58 additions
and
3 deletions
+58
-3
showDetailSPAction.js
...s/gms-plugin-billexpand/src/actions/showDetailSPAction.js
+36
-0
emcon.js
develop/@gms/gms-plugin-billexpand/src/emcon.js
+11
-0
SetSubFieldNull.js
...@gms/gms-plugin-billexpand/src/formula/SetSubFieldNull.js
+6
-2
SetSubFieldValue.js
...gms/gms-plugin-billexpand/src/formula/SetSubFieldValue.js
+3
-1
mcon.js
develop/@gms/gms-plugin-billexpand/src/mcon.js
+2
-0
No files found.
develop/@gms/gms-plugin-billexpand/src/actions/showDetailSPAction.js
0 → 100644
View file @
3b88366d
import
addInfoModal
from
'../components-control/add-info-modal.vue'
;
export
default
{
execute
:
function
(
bill
,
param
)
{
if
(
param
)
{
let
component
=
null
;
let
name
=
GMS
.
$hideContainer
.
addComponent
(
addInfoModal
,
{},
function
(
c
)
{
GMS
.
showDetailAction
=
true
;
//详情,点击确定按钮。记录此参数
component
=
c
;
c
.
bill
=
bill
;
c
.
isReadOnly
=
true
let
tableName
=
null
;
if
(
param
.
param
&&
param
.
param
.
tableName
){
tableName
=
param
.
param
.
tableName
}
let
obj
=
c
.
getCurrentRowData
(
tableName
);
if
(
!
obj
[
'BILLNAME'
]
&&
tableName
==
'SRMXZB'
){
GAMS
.
Common
.
messagePrompt
(
'此条数据没有详情信息'
);
return
}
if
(
!
obj
[
'BILLNAME'
]){
GAMS
.
Common
.
messagePrompt
(
'无详情参数'
);
return
}
c
.
showDetail
=
true
;
c
.
selectBill
=
obj
[
'BILLEDITNAME'
];
c
.
billId
=
obj
[
'BILLID'
];
c
.
subBillData
=
obj
.
BILLDETAILOBJ
;
c
.
modal_visible
=
true
;
console
.
log
(
'param'
,
param
,
obj
);
});
}
else
{
GAMS
.
Common
.
messagePrompt
(
'无详情参数'
);
}
}
}
\ No newline at end of file
develop/@gms/gms-plugin-billexpand/src/emcon.js
View file @
3b88366d
...
@@ -1349,6 +1349,17 @@ export default {
...
@@ -1349,6 +1349,17 @@ export default {
"param"
:
[]
"param"
:
[]
},
},
"description"
:
""
,
"description"
:
""
,
"title"
:
"审批查看详情[showDetailSPAction]"
,
"value"
:
"showDetailSPAction"
,
"alwaysUse"
:
true
},
{
"discard"
:
false
,
"path"
:
"资产/通用"
,
"extends"
:
{
"param"
:
[]
},
"description"
:
""
,
"title"
:
"编辑[editAction]"
,
"title"
:
"编辑[editAction]"
,
"value"
:
"editAction"
"value"
:
"editAction"
},
{
},
{
...
...
develop/@gms/gms-plugin-billexpand/src/formula/SetSubFieldNull.js
View file @
3b88366d
...
@@ -14,11 +14,15 @@ export default {
...
@@ -14,11 +14,15 @@ export default {
let
tmpField
=
subField
.
FieldCode
;
let
tmpField
=
subField
.
FieldCode
;
let
subTableObject
=
context
.
getTableType
(
subField
.
FieldTableCode
)
let
subTableObject
=
context
.
getTableType
(
subField
.
FieldTableCode
)
let
oldIndex
=
context
.
getSubFocus
()
let
oldIndex
=
context
.
getSubFocus
()
let
focusData
=
oldIndex
&&
context
.
getAllSubData
()[
subTableObject
.
title
][
oldIndex
].
getData
()
try
{
if
(
focusData
&&
(
!
_
.
isEqual
(
focusData
[
tmpField
].
_field_old_value_
,
focusData
[
tmpField
].
value
)
||
!
_
.
isEmpty
(
focusData
[
tmpField
].
value
)))
{
let
focusData
=
context
.
getAllSubData
()[
subTableObject
.
title
][
oldIndex
].
getData
()
if
(
!
_
.
isEqual
(
focusData
[
tmpField
].
_field_old_value_
,
focusData
[
tmpField
].
value
)
||
!
_
.
isEmpty
(
focusData
[
tmpField
].
value
))
{
focusData
[
tmpField
].
_field_old_value_
=
focusData
[
tmpField
].
value
=
null
focusData
[
tmpField
].
_field_old_value_
=
focusData
[
tmpField
].
value
=
null
context
.
refreshSubDataRow
(
subTableObject
.
title
);
context
.
refreshSubDataRow
(
subTableObject
.
title
);
}
}
}
catch
(
error
)
{
console
.
log
(
error
)
}
}
}
},
},
getResultType
:
function
()
{
getResultType
:
function
()
{
...
...
develop/@gms/gms-plugin-billexpand/src/formula/SetSubFieldValue.js
View file @
3b88366d
...
@@ -27,7 +27,7 @@ export default {
...
@@ -27,7 +27,7 @@ export default {
let
subTableFocusOldIndex
=
context
.
getSubFocus
()
let
subTableFocusOldIndex
=
context
.
getSubFocus
()
let
subTableFocusData
=
subTableFocusOldIndex
&&
context
.
getAllSubData
()[
targetObject
.
title
][
subTableFocusOldIndex
].
getData
()
let
subTableFocusData
=
subTableFocusOldIndex
&&
context
.
getAllSubData
()[
targetObject
.
title
][
subTableFocusOldIndex
].
getData
()
let
oldIndex
=
context
.
getSubFocus
()
let
oldIndex
=
context
.
getSubFocus
()
if
(
subTableFocusData
)
{
try
{
switch
(
valueType
)
{
switch
(
valueType
)
{
case
FormulaConstants
.
billFiled
.
BMJJFL
:
{
case
FormulaConstants
.
billFiled
.
BMJJFL
:
{
let
comp1
=
arguments
[
0
][
2
].
getResult
().
Value
;
let
comp1
=
arguments
[
0
][
2
].
getResult
().
Value
;
...
@@ -86,6 +86,8 @@ export default {
...
@@ -86,6 +86,8 @@ export default {
console
.
log
(
""
)
console
.
log
(
""
)
}
}
}
}
}
catch
(
error
)
{
console
.
log
(
error
)
}
}
}
else
{
}
else
{
console
.
error
(
"SetSubFieldValue公式配置错误,暂不支持主表字段赋值"
)
console
.
error
(
"SetSubFieldValue公式配置错误,暂不支持主表字段赋值"
)
...
...
develop/@gms/gms-plugin-billexpand/src/mcon.js
View file @
3b88366d
...
@@ -6,6 +6,7 @@ import copyAction from './actions/copyAction';
...
@@ -6,6 +6,7 @@ import copyAction from './actions/copyAction';
import
printAction
from
'./actions/printAction'
import
printAction
from
'./actions/printAction'
import
printMultiAction
from
'./actions/printMultiAction'
import
printMultiAction
from
'./actions/printMultiAction'
import
showDetailAction
from
'./actions/showDetailAction'
import
showDetailAction
from
'./actions/showDetailAction'
import
showDetailSPAction
from
'./actions/showDetailSPAction'
;
import
editAction
from
'./actions/editAction'
;
import
editAction
from
'./actions/editAction'
;
import
updatebillStateAction
from
'./actions/updatebillStateAction'
;
import
updatebillStateAction
from
'./actions/updatebillStateAction'
;
import
updateStateLincaoAction
from
'./actions/updateStateLincaoAction'
;
import
updateStateLincaoAction
from
'./actions/updateStateLincaoAction'
;
...
@@ -221,6 +222,7 @@ export default {
...
@@ -221,6 +222,7 @@ export default {
copyAction
,
copyAction
,
printAction
,
printAction
,
showDetailAction
,
showDetailAction
,
showDetailSPAction
,
editAction
,
editAction
,
updatebillStateAction
,
updatebillStateAction
,
updateStateLincaoAction
,
updateStateLincaoAction
,
...
...
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