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
e699388f
Commit
e699388f
authored
Mar 18, 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
829c68a6
0fdcb3aa
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
282 additions
and
45 deletions
+282
-45
copyBillAction.js
.../@gms/gms-plugin-billexpand/src/actions/copyBillAction.js
+7
-0
editAction.js
develop/@gms/gms-plugin-billexpand/src/actions/editAction.js
+7
-0
showDetailAction.js
...gms/gms-plugin-billexpand/src/actions/showDetailAction.js
+15
-6
showDetailSPAction.js
...s/gms-plugin-billexpand/src/actions/showDetailSPAction.js
+14
-5
add-info-modal.vue
...ugin-billexpand/src/components-control/add-info-modal.vue
+0
-1
index.vue
...ms-plugin-billexpand/src/control/baseDataSelect/index.vue
+0
-18
copy-bill-modal.vue
...gms/gms-plugin-billexpand/src/control/copy-bill-modal.vue
+14
-0
emcon.js
develop/@gms/gms-plugin-billexpand/src/emcon.js
+48
-2
ApplyTemplateString.js
.../gms-plugin-billexpand/src/formula/ApplyTemplateString.js
+24
-6
FormulaConstants.js
...gms/gms-plugin-billexpand/src/formula/FormulaConstants.js
+17
-0
SetSubFieldsByBaseData.js
...s-plugin-billexpand/src/formula/SetSubFieldsByBaseData.js
+95
-0
mcon.js
develop/@gms/gms-plugin-billexpand/src/mcon.js
+2
-1
plugin.js
develop/@gms/gms-plugin-billexpand/src/plugin.js
+0
-2
utils.js
develop/@gms/gms-plugin-billexpand/src/utils.js
+34
-0
solution.json
solution.json
+5
-4
No files found.
develop/@gms/gms-plugin-billexpand/src/actions/copyBillAction.js
View file @
e699388f
...
@@ -29,6 +29,13 @@ export default {
...
@@ -29,6 +29,13 @@ export default {
}
else
{
}
else
{
GAMS
.
Common
.
messagePrompt
(
'请在单据中录入数据'
);
GAMS
.
Common
.
messagePrompt
(
'请在单据中录入数据'
);
}
}
c
.
$nextTick
(()
=>
{
component
.
addListener
({
close
:
function
()
{
GMS
.
$hideContainer
.
remove
(
name
);
}
});
})
});
});
}
else
{
}
else
{
GAMS
.
Common
.
messagePrompt
(
'缺少参数'
);
GAMS
.
Common
.
messagePrompt
(
'缺少参数'
);
...
...
develop/@gms/gms-plugin-billexpand/src/actions/editAction.js
View file @
e699388f
...
@@ -29,6 +29,13 @@ export default {
...
@@ -29,6 +29,13 @@ export default {
c
.
modal_visible
=
true
;
c
.
modal_visible
=
true
;
GMS
.
editSubIndex
=
bill
.
getSubFocus
();
GMS
.
editSubIndex
=
bill
.
getSubFocus
();
console
.
log
(
'param'
,
param
,
obj
);
console
.
log
(
'param'
,
param
,
obj
);
c
.
$nextTick
(()
=>
{
component
.
addListener
({
close
:
function
()
{
GMS
.
$hideContainer
.
remove
(
name
);
}
});
})
});
});
}
else
{
}
else
{
GAMS
.
Common
.
messagePrompt
(
'缺少参数'
);
GAMS
.
Common
.
messagePrompt
(
'缺少参数'
);
...
...
develop/@gms/gms-plugin-billexpand/src/actions/showDetailAction.js
View file @
e699388f
...
@@ -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,21 +17,26 @@ export default {
...
@@ -13,21 +17,26 @@ 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
);
c
.
$nextTick
(()
=>
{
component
.
addListener
({
close
:
function
()
{
GMS
.
$hideContainer
.
remove
(
name
);
}
});
})
});
});
}
else
{
}
else
{
GAMS
.
Common
.
messagePrompt
(
'无详情参数'
);
GAMS
.
Common
.
messagePrompt
(
'无详情参数'
);
...
...
develop/@gms/gms-plugin-billexpand/src/actions/showDetailSPAction.js
View file @
e699388f
...
@@ -4,6 +4,9 @@ export default {
...
@@ -4,6 +4,9 @@ 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,20 +18,26 @@ export default {
...
@@ -15,20 +18,26 @@ 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
);
c
.
$nextTick
(()
=>
{
component
.
addListener
({
close
:
function
()
{
GMS
.
$hideContainer
.
remove
(
name
);
}
});
})
});
});
}
else
{
}
else
{
GAMS
.
Common
.
messagePrompt
(
'无详情参数'
);
GAMS
.
Common
.
messagePrompt
(
'无详情参数'
);
...
...
develop/@gms/gms-plugin-billexpand/src/components-control/add-info-modal.vue
View file @
e699388f
...
@@ -614,7 +614,6 @@ export default {
...
@@ -614,7 +614,6 @@ export default {
path
:
billPath
,
path
:
billPath
,
});
});
window
.
open
(
routeData
.
href
,
"_blank"
);
window
.
open
(
routeData
.
href
,
"_blank"
);
//this.close();
},
},
handleAddAssetsSave
()
{
handleAddAssetsSave
()
{
this
.
chekData
(
this
.
chekData
(
...
...
develop/@gms/gms-plugin-billexpand/src/control/baseDataSelect/index.vue
View file @
e699388f
...
@@ -198,24 +198,6 @@ export default {
...
@@ -198,24 +198,6 @@ export default {
this
.
hasFocus
=
true
this
.
hasFocus
=
true
this
.
getBaseDataList
()
this
.
getBaseDataList
()
},
},
// handleBlur() {
// if (!this.onResultList) {
// this.hasFocus = false
// this.dataListShow = false
// }
// this.selectValue = String(this.selectValue)
// if (this.value === null) {
// this.selectValue = ''
// this.selectIndex = -1
// this.selectedItem = {}
// } else {
// this.selectValue = this.value.name
// this.selectedItem = this.value
// this.findIndex()
// }
// this.$emit('data-change', this.value)
// },
// 输入查询时
// 输入查询时
handleChange
()
{
handleChange
()
{
if
(
this
.
selectValue
===
''
||
this
.
selectValue
===
null
)
{
if
(
this
.
selectValue
===
''
||
this
.
selectValue
===
null
)
{
...
...
develop/@gms/gms-plugin-billexpand/src/control/copy-bill-modal.vue
View file @
e699388f
...
@@ -110,7 +110,21 @@ export default {
...
@@ -110,7 +110,21 @@ export default {
.
catch
((
XMLHttpRequest
,
textStatus
,
errorThrown
)
=>
{});
.
catch
((
XMLHttpRequest
,
textStatus
,
errorThrown
)
=>
{});
},
},
handleCancel
()
{
handleCancel
()
{
this
.
close
();
},
addListener
(
l
)
{
this
.
listener
=
l
;
},
close
()
{
this
.
modal_visible
=
false
;
this
.
modal_visible
=
false
;
if
(
this
.
listener
)
{
this
.
$nextTick
(
function
()
{
this
.
$destroy
();
this
.
listener
.
close
();
}.
bind
(
this
)
);
}
},
},
},
},
watch
:
{},
watch
:
{},
...
...
develop/@gms/gms-plugin-billexpand/src/emcon.js
View file @
e699388f
...
@@ -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]"
,
...
@@ -4307,6 +4337,22 @@ export default {
...
@@ -4307,6 +4337,22 @@ export default {
"extends"
:
{
"extends"
:
{
"info"
:
{
"info"
:
{
"param"
:
[],
"param"
:
[],
"name"
:
"SetSubFieldsByBaseData"
,
"description"
:
"从子表基础数据带出数据到子表同行的其他字段中,支持带出基础数据/普通数据 SetSubFieldsByBaseData(HJ_YSXXZB_I.YSXM,
\"
jfly#MD_JFLY
\"
,HJ_YSXXZB_I.JFLY,
\"
zclb#MD_ZCLB
\"
,HJ_YSXXZB_I.ZCLB,
\"
ysje#
\"
,HJ_YSXXZB_I.YSJE)"
,
"title"
:
"子表赋值公式:根据子表基础数据给子表其他字段赋值"
,
"return"
:
0
}
},
"description"
:
""
,
"title"
:
"子表赋值公式:根据子表基础数据给子表其他字段赋值"
,
"value"
:
"SetSubFieldsByBaseData"
},
{
"discard"
:
false
,
"path"
:
"通用"
,
"extends"
:
{
"info"
:
{
"param"
:
[],
"name"
:
"ApplyTemplateString"
,
"name"
:
"ApplyTemplateString"
,
"description"
:
"1.基础数据字段,2.赋值的字段,3.模板字符串4.field+对应基础数据table5.分隔符"
,
"description"
:
"1.基础数据字段,2.赋值的字段,3.模板字符串4.field+对应基础数据table5.分隔符"
,
"title"
:
"基础数据赋值模板字符串"
,
"title"
:
"基础数据赋值模板字符串"
,
...
...
develop/@gms/gms-plugin-billexpand/src/formula/ApplyTemplateString.js
View file @
e699388f
// 子表根据基础数据带出基础数据
// 子表根据基础数据带出基础数据
export
default
{
export
default
{
execute
:
function
()
{
execute
:
function
()
{
const
GLOBAL_PARAM_KEY
=
'applyTemplateStringData'
if
(
arguments
&&
arguments
[
0
]
&&
arguments
[
1
])
{
if
(
arguments
&&
arguments
[
0
]
&&
arguments
[
1
])
{
const
context
=
arguments
[
1
]
const
context
=
arguments
[
1
]
if
(
!
context
.
getGlobalParam
(
GLOBAL_PARAM_KEY
))
{
context
.
setGlobalParam
(
GLOBAL_PARAM_KEY
,
{})
}
const
originField
=
arguments
[
0
][
0
]
const
originField
=
arguments
[
0
][
0
]
const
targetField
=
arguments
[
0
][
1
]
const
targetField
=
arguments
[
0
][
1
]
let
templateString
=
arguments
[
0
][
2
].
StaticValue
let
templateString
=
arguments
[
0
][
2
].
StaticValue
...
@@ -12,6 +17,18 @@ export default {
...
@@ -12,6 +17,18 @@ export default {
const
argList
=
args
.
split
(
','
)
const
argList
=
args
.
split
(
','
)
const
originTableType
=
context
.
getTableType
(
originField
.
FieldTableCode
)
const
originTableType
=
context
.
getTableType
(
originField
.
FieldTableCode
)
const
originTableObject
=
context
.
getSubData
(
originTableType
.
title
)
const
originTableObject
=
context
.
getSubData
(
originTableType
.
title
)
const
oldValue
=
context
.
getGlobalParam
(
GLOBAL_PARAM_KEY
)[
originTableType
.
title
]
if
(
originTableObject
instanceof
Array
)
{
const
newValue
=
originTableObject
.
map
((
o
)
=>
o
.
getValue
(
originField
.
FieldCode
))
.
filter
((
o
)
=>
o
&&
o
.
code
)
.
map
((
o
)
=>
o
.
code
)
.
join
(
','
)
if
(
oldValue
!=
newValue
)
{
context
.
getGlobalParam
(
GLOBAL_PARAM_KEY
)[
originTableType
.
title
]
=
newValue
}
else
return
}
const
requestParam
=
{
const
requestParam
=
{
pagination
:
false
,
pagination
:
false
,
searchKey
:
""
,
searchKey
:
""
,
...
@@ -19,11 +36,7 @@ export default {
...
@@ -19,11 +36,7 @@ export default {
stopflag
:
-
1
,
stopflag
:
-
1
,
authType
:
"NONE"
authType
:
"NONE"
}
}
const
replaceMap
=
new
Map
()
const
replaceTemplatePart
=
templateString
.
match
(
/{{.+
?
}}/g
)
replaceTemplatePart
.
forEach
((
part
)
=>
{
replaceMap
.
set
(
part
,
[])
})
const
getBaseDataList
=
(
originFieldValue
)
=>
{
const
getBaseDataList
=
(
originFieldValue
)
=>
{
const
promistList
=
[]
const
promistList
=
[]
for
(
let
i
=
0
;
i
<
argList
.
length
;
i
+=
2
)
{
for
(
let
i
=
0
;
i
<
argList
.
length
;
i
+=
2
)
{
...
@@ -63,12 +76,17 @@ export default {
...
@@ -63,12 +76,17 @@ export default {
return
templateString
return
templateString
}
}
if
(
originTableObject
instanceof
Array
)
{
if
(
originTableObject
instanceof
Array
)
{
const
replaceMap
=
new
Map
()
const
replaceTemplatePart
=
templateString
.
match
(
/{{.+
?
}}/g
)
replaceTemplatePart
.
forEach
((
part
)
=>
{
replaceMap
.
set
(
part
,
[])
})
const
getBasedataPromiseList
=
[]
const
getBasedataPromiseList
=
[]
let
count
=
0
let
count
=
0
for
(
let
i
=
0
;
i
<
originTableObject
.
length
;
++
i
)
{
for
(
let
i
=
0
;
i
<
originTableObject
.
length
;
++
i
)
{
const
originObject
=
originTableObject
[
i
]
const
originObject
=
originTableObject
[
i
]
const
curOriginFieldValue
=
originObject
.
getValue
(
originField
.
FieldCode
)
const
curOriginFieldValue
=
originObject
.
getValue
(
originField
.
FieldCode
)
if
(
!
curOriginFieldValue
||
!
curOriginFieldValue
.
object
code
)
{
if
(
!
curOriginFieldValue
||
!
curOriginFieldValue
.
code
)
{
continue
continue
}
}
getBasedataPromiseList
.
push
(
getBaseDataList
(
curOriginFieldValue
).
then
((
basedataObjectList
)
=>
{
getBasedataPromiseList
.
push
(
getBaseDataList
(
curOriginFieldValue
).
then
((
basedataObjectList
)
=>
{
...
...
develop/@gms/gms-plugin-billexpand/src/formula/FormulaConstants.js
View file @
e699388f
...
@@ -51,5 +51,22 @@ export default {
...
@@ -51,5 +51,22 @@ export default {
}
}
return
obj
return
obj
},
},
isValidString
(
s
)
{
return
_
.
isString
(
s
)
&&
s
.
length
>
0
}
}
export
{
BaseDataParam
,
_
}
class
BaseDataParam
{
tableName
;
objectcode
;
constructor
(
tableName
,
objectcode
)
{
this
.
objectcode
=
objectcode
;
this
.
tableName
=
tableName
;
this
.
queryDataStructure
=
"ALL"
this
.
limit
=
1
;
this
.
offset
=
0
;
this
.
pagination
=
true
}
}
}
develop/@gms/gms-plugin-billexpand/src/formula/SetSubFieldsByBaseData.js
0 → 100644
View file @
e699388f
import
FormulaConstants
,
{
BaseDataParam
,
_
}
from
"./FormulaConstants"
/**
* 子表赋值公式 处理子表基础数据带出基础数据/标准金额/其他字段时 给同行其他字段赋值的问题
* @author fengjiansheng
* @date 2022-03-17
*/
export
default
{
execute
:
function
()
{
let
formulaName
=
"SetSubFieldsByBaseData"
let
delimiter
=
"#"
;
if
(
arguments
&&
arguments
[
0
]
&&
arguments
[
0
].
length
>
1
)
{
let
context
=
arguments
[
1
]
debugger
let
sourceBaseDataField
=
arguments
[
0
][
0
]
let
sourceBaseData
=
FormulaConstants
.
getFormulaParamValue
(
sourceBaseDataField
)
let
oldIndex
=
context
.
getSubFocus
()
let
subTableObject
=
null
let
focusData
=
null
let
baseDataParamArrayList
=
[]
let
targetSubTableFieldList
=
[]
let
sourceCommonValueList
=
[]
let
targetSubTableCommonFieldList
=
[]
for
(
let
i
=
1
;
i
<
arguments
[
0
].
length
;
i
+=
2
)
{
let
tempTargetSubTableField
=
arguments
[
0
][
i
+
1
]
let
combString
=
FormulaConstants
.
getFormulaParamValue
(
arguments
[
0
][
i
])
let
sourceBaseDataFieldName
=
combString
.
split
(
delimiter
)[
0
]
let
targetBaseDataTableName
=
combString
.
split
(
delimiter
)[
1
]
let
targetBaseDataValueObjectcode
=
sourceBaseData
[
sourceBaseDataFieldName
]
if
(
subTableObject
==
null
)
{
subTableObject
=
context
.
getTableType
(
tempTargetSubTableField
.
FieldTableCode
)
}
if
(
focusData
==
null
)
{
focusData
=
context
.
getAllSubData
()[
subTableObject
.
title
][
oldIndex
].
getData
()
}
if
(
!
(
_
.
isEqual
(
focusData
[
sourceBaseDataField
.
FieldCode
].
_field_old_value_
,
focusData
[
sourceBaseDataField
.
FieldCode
].
value
)))
{
if
(
FormulaConstants
.
isValidString
(
targetBaseDataTableName
)
&&
targetBaseDataTableName
.
indexOf
(
"MD_"
)
===
0
&&
FormulaConstants
.
isValidString
(
targetBaseDataValueObjectcode
))
{
let
baseDataParam
=
new
BaseDataParam
(
targetBaseDataTableName
,
targetBaseDataValueObjectcode
);
baseDataParamArrayList
.
push
(
baseDataParam
)
targetSubTableFieldList
.
push
(
tempTargetSubTableField
)
}
else
{
sourceCommonValueList
.
push
(
targetBaseDataValueObjectcode
)
targetSubTableCommonFieldList
.
push
(
tempTargetSubTableField
)
}
}
}
if
(
sourceCommonValueList
.
length
===
targetSubTableCommonFieldList
.
length
&&
targetSubTableCommonFieldList
.
length
>
0
)
{
focusData
[
sourceBaseDataField
.
FieldCode
].
_field_old_value_
=
focusData
[
sourceBaseDataField
.
FieldCode
].
value
for
(
let
i
=
0
;
i
<
targetSubTableCommonFieldList
.
length
;
i
++
)
{
focusData
[
targetSubTableCommonFieldList
[
i
].
FieldCode
].
_field_old_value_
=
focusData
[
targetSubTableCommonFieldList
[
i
].
FieldCode
].
value
=
sourceCommonValueList
[
i
]
}
if
(
baseDataParamArrayList
.
length
===
0
)
{
context
.
refreshSubDataRow
(
subTableObject
.
title
)
}
}
if
(
baseDataParamArrayList
.
length
===
targetSubTableFieldList
.
length
&&
targetSubTableFieldList
.
length
>
0
)
{
this
.
getCombBaseDataList
(
baseDataParamArrayList
,
(
baseDataList
)
=>
{
let
newIndex
=
context
.
getSubFocus
()
if
(
oldIndex
!==
newIndex
)
{
context
.
setSubFocus
(
oldIndex
)
}
focusData
[
sourceBaseDataField
.
FieldCode
].
_field_old_value_
=
focusData
[
sourceBaseDataField
.
FieldCode
].
value
for
(
let
i
=
0
;
i
<
targetSubTableFieldList
.
length
;
i
++
)
{
focusData
[
targetSubTableFieldList
[
i
].
FieldCode
].
_field_old_value_
=
focusData
[
targetSubTableFieldList
[
i
].
FieldCode
].
value
=
baseDataList
[
i
]
}
context
.
refreshSubDataRow
(
subTableObject
.
title
)
},
(
resp
)
=>
{
console
.
error
(
resp
)
})
}
}
},
getCombBaseDataList
(
param
,
callBack
,
errorCallBack
)
{
GMS
.
$http
.
post
(
"/rbcfunc/getCombBaseDataList"
,
param
).
then
(
data
=>
{
let
baseDataList
=
data
.
data
.
data
let
res
=
[]
baseDataList
.
forEach
(
e
=>
{
if
(
e
instanceof
Array
)
{
if
(
e
.
length
>
0
)
{
res
.
push
(
e
[
0
])
}
else
{
res
.
push
(
null
)
}
}
else
{
res
.
push
(
e
)
}
})
callBack
(
res
)
}).
catch
((
resp
)
=>
{
errorCallBack
(
resp
)
});
},
getResultType
:
function
()
{
return
FormulaConstants
.
resultType
.
anyType
},
}
develop/@gms/gms-plugin-billexpand/src/mcon.js
View file @
e699388f
...
@@ -183,8 +183,8 @@ import EqualsMasterAndSubField from "./formula/EqualsMasterAndSubField";
...
@@ -183,8 +183,8 @@ import EqualsMasterAndSubField from "./formula/EqualsMasterAndSubField";
import
SubTableHasContainField
from
"./formula/SubTableHasContainField"
;
import
SubTableHasContainField
from
"./formula/SubTableHasContainField"
;
import
GetUserStaffInfo
from
"./formula/GetUserStaffInfo"
;
import
GetUserStaffInfo
from
"./formula/GetUserStaffInfo"
;
import
MdFilterInfiniteValue
from
"./formula/MdFilterInfiniteValue"
;
import
MdFilterInfiniteValue
from
"./formula/MdFilterInfiniteValue"
;
import
SetSubFieldsByBaseData
from
"./formula/SetSubFieldsByBaseData"
;
import
UpdateBillMoneyFunction
from
"./formula/UpdateBillMoneyFunction"
;
import
UpdateBillMoneyFunction
from
"./formula/UpdateBillMoneyFunction"
;
export
default
{
export
default
{
actions
:
{
actions
:
{
updateFieldAction
,
updateFieldAction
,
...
@@ -276,6 +276,7 @@ export default {
...
@@ -276,6 +276,7 @@ export default {
formula
:
{
formula
:
{
MdFilterInfiniteValue
,
MdFilterInfiniteValue
,
SubTableSetBaseData
,
SubTableSetBaseData
,
SetSubFieldsByBaseData
,
LoginUserIsContianRole
,
LoginUserIsContianRole
,
SubTableJointString
,
SubTableJointString
,
GetSubTableRows
,
GetSubTableRows
,
...
...
develop/@gms/gms-plugin-billexpand/src/plugin.js
View file @
e699388f
...
@@ -2,9 +2,7 @@ import mcon from './mcon';
...
@@ -2,9 +2,7 @@ import mcon from './mcon';
import
emcon
from
'./emcon'
;
import
emcon
from
'./emcon'
;
import
'./styles/common/normalize.less'
import
'./styles/common/normalize.less'
import
Vue
from
'vue'
;
import
Vue
from
'vue'
;
// import ElementUI from 'element-ui';
import
{
Popover
}
from
'element-ui'
;
import
{
Popover
}
from
'element-ui'
;
// import 'element-ui/lib/theme-chalk/index.css';
Vue
.
use
(
Popover
)
Vue
.
use
(
Popover
)
export
default
{
export
default
{
install
:
function
(){
install
:
function
(){
...
...
develop/@gms/gms-plugin-billexpand/src/utils.js
0 → 100644
View file @
e699388f
/**
* 请求基础数据
* @param {string} tableName 基础数据表名
* @param {object} param 其他请求参数,如分页、检索等
*/
export
const
getBaseData
=
(
tableName
,
param
=
{})
=>
{
let
defaultParam
=
{
tableName
:
tableName
,
pagination
:
false
,
queryDataStructure
:
'ALL_WITH_REF'
,
stopflag
:
-
1
,
authType
:
'NONE'
,
}
defaultParam
=
{
...
defaultParam
,
...
param
,
}
if
(
param
.
limit
||
param
.
offset
)
{
defaultParam
=
{
limit
:
10
,
offset
:
0
,
...
defaultParam
,
pagination
:
true
,
}
}
return
window
.
GMS
.
$http
.
post
(
'/baseData/data/list'
,
defaultParam
).
then
((
res
)
=>
{
const
result
=
res
&&
res
.
data
||
{}
return
result
})
}
\ No newline at end of file
solution.json
View file @
e699388f
...
@@ -36,15 +36,15 @@
...
@@ -36,15 +36,15 @@
},
},
{
{
"name"
:
"basedata-app"
,
"name"
:
"basedata-app"
,
"version"
:
"1.
0.39
"
"version"
:
"1.
1.3
"
},
},
{
{
"name"
:
"basedata-item-auth-plugin"
,
"name"
:
"basedata-item-auth-plugin"
,
"version"
:
"1.
0.1
"
"version"
:
"1.
1.2
"
},
},
{
{
"name"
:
"basedata-rule-auth-plugin"
,
"name"
:
"basedata-rule-auth-plugin"
,
"version"
:
"1.
0.4
"
"version"
:
"1.
1.2
"
},
},
{
{
"name"
:
"multi-language-config"
,
"name"
:
"multi-language-config"
,
...
@@ -179,4 +179,4 @@
...
@@ -179,4 +179,4 @@
}
}
]
]
}
}
}
}
\ No newline at end of file
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