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
f01a6664
Commit
f01a6664
authored
Feb 24, 2022
by
乔延琦
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop-yuancheng' into 'develop'
Develop yuancheng See merge request GFP/RBC/rbc-frontend!63
parents
9a221604
280eb4b3
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
163 additions
and
18 deletions
+163
-18
cacheSaveAction.js
...@gms/gms-plugin-billexpand/src/actions/cacheSaveAction.js
+8
-3
index.vue
...ms-plugin-billexpand/src/control/baseDataSelect/index.vue
+1
-3
select-table.vue
...in-billexpand/src/control/baseDataSelect/select-table.vue
+2
-3
buttonGrouop.vue
...p/@gms/gms-plugin-billexpand/src/control/buttonGrouop.vue
+1
-0
integerControl.vue
...@gms/gms-plugin-billexpand/src/control/integerControl.vue
+21
-0
userSelect.vue
...lop/@gms/gms-plugin-billexpand/src/control/userSelect.vue
+57
-0
bc_input.js
...p/@gms/gms-plugin-billexpand/src/control/util/bc_input.js
+14
-7
emcon.js
develop/@gms/gms-plugin-billexpand/src/emcon.js
+54
-1
mcon.js
develop/@gms/gms-plugin-billexpand/src/mcon.js
+5
-1
No files found.
develop/@gms/gms-plugin-billexpand/src/actions/cacheSaveAction.js
View file @
f01a6664
...
...
@@ -66,15 +66,19 @@ export default {
}
}
else
{
if
(
msg
[
0
]
==
1
){
GAMS
.
Common
.
messagePrompt
(
msg
[
1
]);
GAMS
.
Common
.
messagePrompt
(
msg
[
1
]);
this
.
bill
.
setControlsSate
(
param
[
"_control_name_"
],
'enable'
,
true
)
}
else
{
GMS
.
$hideContainer
.
$Modal
.
confirm
({
title
:
'信息提示'
,
content
:
msg
[
1
],
onOk
:
()
=>
{
this
.
bill
.
setControlsSate
(
param
[
"_control_name_"
],
'enable'
,
true
)
GMS
.
vbus
.
$emit
(
'cacheEcho'
,
buidData
);
//正常情况回去给子表赋值
},
onCancel
:
()
=>
{}
onCancel
:
()
=>
{
this
.
bill
.
setControlsSate
(
param
[
"_control_name_"
],
'enable'
,
true
)
}
});
}
}
...
...
@@ -82,7 +86,8 @@ export default {
}).
catch
(
resp
=>
{
// bill.setControlsSate(param["_control_name_"], 'enable',true);
console
.
error
(
"cacheSaveAction:接口调用失败 resp:"
+
resp
)
GAMS
.
Common
.
messagePrompt
(
'单据保存失败..'
);
this
.
bill
.
setControlsSate
(
param
[
"_control_name_"
],
'enable'
,
true
)
GAMS
.
Common
.
messagePrompt
(
'单据保存失败。'
);
})
}
}
develop/@gms/gms-plugin-billexpand/src/control/baseDataSelect/index.vue
View file @
f01a6664
...
...
@@ -7,7 +7,6 @@
<Icon
type=
"ios-more"
class=
"more-select"
slot=
"suffix"
@
click=
"handleInputSelect"
/>
</Input>
</div>
<!--
<div
class=
"api"
slot=
"content"
>
-->
<ul
ref=
"searchList"
class=
"acct-search-list"
:class=
"
{'is-focus': hasFocus}" @mouseleave="onResultList = false" @mouseenter="onResultList = true">
<li
:class=
"['acct-search-item',selectIndex === index ? 'selected' : '',
{active: activeName == item.name}]" v-for="(item,index) in baseDataList" :key="item.code" :value="item.code" @click="handleMainSearchSelectClick(item)">
<span
class=
"acct-search-label"
>
{{
item
.
code
+
' '
+
item
.
name
}}
</span>
...
...
@@ -16,7 +15,6 @@
<span
class=
"list-empty"
>
无匹配数据
</span>
</li>
</ul>
<!--
</div>
-->
</el-popover>
<!-- 弹框 -->
<EditModal
v-if=
"showModal"
v-model=
"showModal"
:title=
"title"
:selection=
"selection"
:table-name=
"tableName"
:multiple=
"multiple"
:tableKey=
"tableKey"
:treeKey=
"treeKey"
:tableColumns=
"tableColumns"
:searchPlaceholder=
"searchPlaceholder"
:authType=
"authType"
:versionDate=
"versionDate"
:modalWidth=
"modalWidth"
:isLeaf=
"isLeaf"
:hideSelected=
"hideSelected"
:structtype=
"structtype"
:groupTableName=
"groupTableName"
:treeTableName=
"treeTableName"
:filterFormular=
"filterFormular"
:filterFormularSP=
"filterFormularSP"
:billdefineName=
"billdefineName"
:billId=
"billId"
:bill=
"bill"
:isFilter=
"isFilter"
:rowIndex=
"rowIndex"
@
on-ok=
"onSelectOk"
/>
...
...
@@ -26,7 +24,7 @@
import
EditModal
from
'./edit-modal.vue'
import
baseDataMixin
from
'./baseDataMixin'
import
indexMixin
from
'./indexMixin'
import
{
addResizeListener
,
removeResizeListener
}
from
'element-ui/src/utils/resize-event'
import
{
addResizeListener
}
from
'element-ui/src/utils/resize-event'
export
default
{
mixins
:
[
indexMixin
,
baseDataMixin
],
...
...
develop/@gms/gms-plugin-billexpand/src/control/baseDataSelect/select-table.vue
View file @
f01a6664
...
...
@@ -178,7 +178,7 @@ export default {
GMS
.
$http
.
post
(
'/org/data/list'
,
param
)
.
then
((
res
)
=>
{
const
{
rows
,
rs
,
total
}
=
res
.
data
const
{
rows
,
total
}
=
res
.
data
this
.
pageTotal
=
total
let
_tabledatas
=
rows
this
.
refreshRowsCheckStatus
(
this
.
selection
,
_tabledatas
)
...
...
@@ -190,7 +190,6 @@ export default {
console
.
log
(
'error'
,
err
)
})
}
else
{
let
that
=
this
this
.
loading
=
true
// 更新右侧table
let
postData
=
{}
...
...
@@ -248,7 +247,7 @@ export default {
this
.
tableDatas
=
[]
return
}
const
{
rows
,
rs
,
total
}
=
response
.
data
const
{
rows
,
total
}
=
response
.
data
this
.
pageTotal
=
total
let
_tabledatas
=
rows
...
...
develop/@gms/gms-plugin-billexpand/src/control/buttonGrouop.vue
View file @
f01a6664
...
...
@@ -106,6 +106,7 @@ export default {
layout
:
{},
name
:
'ButtonControl_1'
,
title
:
'关闭'
,
except
:
true
},
billStateDisable
:
false
}
...
...
develop/@gms/gms-plugin-billexpand/src/control/integerControl.vue
0 → 100644
View file @
f01a6664
<
template
>
<div>
<Input
v-model=
"value"
type=
'number'
:disabled=
"state=='readOnly'"
@
on-blur=
"onBlur"
/>
</div>
</
template
>
<
script
>
import
Input
from
'./util/bc_input'
export
default
{
mixins
:
[
Input
],
data
()
{
return
{}
},
methods
:
{}
}
</
script
>
<
style
lang=
'less'
scoped
>
</
style
>
\ No newline at end of file
develop/@gms/gms-plugin-billexpand/src/control/userSelect.vue
0 → 100644
View file @
f01a6664
<
template
>
<div>
<Select
v-model=
"value"
clearable
:disabled=
"state=='readOnly'"
@
on-change=
"onBlur"
>
<Option
v-for=
"item in userList"
:value=
"item.id"
:key=
"item.id"
:disabled=
"!item.enabled"
>
{{
item
.
fullname
}}
</Option>
</Select>
</div>
</
template
>
<
script
>
import
input
from
'./util/bc_input'
export
default
{
mixins
:
[
input
],
data
()
{
return
{
userList
:
[]
}
},
mounted
()
{
this
.
getUserList
()
},
methods
:
{
getUserList
()
{
// 获取当前单位下的用户
let
orgCode
=
''
try
{
orgCode
=
nros
.
userContext
.
userInfo
.
loginUnit
}
catch
(
error
)
{
this
.
$Message
.
error
(
error
)
}
GMS
.
$http
.
get
(
`/nvwa-user/v1/user/orgCode/
${
orgCode
}
`
)
.
then
((
res
)
=>
{
const
{
data
}
=
res
this
.
userList
=
data
})
.
catch
((
err
)
=>
{
console
.
log
(
'error'
,
err
)
})
}
}
}
</
script
>
<
style
lang=
'less'
scoped
>
</
style
>
\ No newline at end of file
develop/@gms/gms-plugin-billexpand/src/control/util/bc_input.js
View file @
f01a6664
...
...
@@ -200,7 +200,7 @@ export default {
if
(
config
.
formulas
[
key
]
===
"false"
){
this
[
`setControl
${
key
}
`
]
&&
this
[
`setControl
${
key
}
`
]();
}
else
{
this
.
context
.
bill
.
getControlState
(
key
,
this
.
define
.
name
);
this
.
context
.
bill
.
getControlState
(
key
,
this
.
define
.
name
,
this
.
define
.
config
.
field
);
}
}
}
...
...
@@ -260,18 +260,25 @@ export default {
this
.
addControlStateListener
();
}
if
(
!
this
.
context
.
bill
.
getGlobalParam
(
'_old_action_status'
)){
if
(
this
.
context
.
controlState
===
'readOnly'
){
this
.
state
=
'readOnly'
;
}
else
if
(
!
this
.
context
.
bill
.
getGlobalParam
(
'_old_action_status'
)){
this
.
getControlState
(
this
.
define
.
config
);
}
}
}.
bind
(
this
));
if
(
this
.
define
.
config
.
field
==
'gams_inspectionentry.inspector'
){
console
.
log
(
this
.
define
,
'this.define'
)
}
},
created
(){
this
.
getContentStatus
();
if
(
this
.
define
.
config
.
formulas
){
let
_fieldNameRelation
=
this
.
context
.
bill
.
getGlobalParam
(
'_field_name_relation_'
)
||
{};
_fieldNameRelation
[
this
.
define
.
config
.
field
]
=
{
name
:
this
.
define
.
name
,
editable
:
this
.
define
.
config
.
formulas
.
editable
};
this
.
context
.
bill
.
setGlobalParam
(
'_field_name_relation_'
,
_fieldNameRelation
);
}
else
{
let
_fieldNameRelation
=
this
.
context
.
bill
.
getGlobalParam
(
'_field_name_relation_'
)
||
{};
_fieldNameRelation
[
this
.
define
.
config
.
field
]
=
{
name
:
this
.
define
.
name
,
editable
:
true
};
this
.
context
.
bill
.
setGlobalParam
(
'_field_name_relation_'
,
_fieldNameRelation
);
}
this
.
getContentStatus
();
},
props
:
{
define
:
{
...
...
develop/@gms/gms-plugin-billexpand/src/emcon.js
View file @
f01a6664
...
...
@@ -46,6 +46,60 @@ export default {
"path"
:
"单据/通用"
},
{
"title"
:
"用户选择"
,
"description"
:
""
,
"discard"
:
false
,
"dynamicComponent"
:
'billForm'
,
"extends"
:
{
"config"
:
[
{
"key"
:
"formulas.editable"
,
"type"
:
"formula"
,
"title"
:
"是否可编辑"
,
"configFormula"
:
true
,
"disableSwitch"
:
false
,
"formulas.editable"
:
true
},
{
"key"
:
"field"
,
"type"
:
"field"
,
"ref"
:
"BillClassVO.attributes"
,
"disableReload"
:
false
,
"title"
:
"关联字段"
},
]
},
"value"
:
"userSelectControl"
,
"path"
:
"资产/通用"
},
{
"title"
:
"整数输入"
,
"description"
:
""
,
"discard"
:
false
,
"dynamicComponent"
:
'billForm'
,
"extends"
:
{
"config"
:
[
{
"key"
:
"formulas.editable"
,
"type"
:
"formula"
,
"title"
:
"是否可编辑"
,
"configFormula"
:
true
,
"disableSwitch"
:
false
,
"formulas.editable"
:
true
},
{
"key"
:
"field"
,
"type"
:
"field"
,
"ref"
:
"BillClassVO.attributes"
,
"disableReload"
:
false
,
"title"
:
"关联字段"
},
]
},
"value"
:
"integerControl"
,
"path"
:
"资产/通用"
},
{
"value"
:
"ButtonControl"
,
"discard"
:
false
,
"path"
:
"资产/通用"
,
...
...
@@ -1299,7 +1353,6 @@ export default {
"description"
:
""
,
"title"
:
"财务_查询草稿[CW_draftSearchAction]"
,
"value"
:
"draftSearchAction"
,
"btnDisable"
:
"false"
,
"btnDisable"
:
"billReadOnly;1;90;91;92"
},
{
"discard"
:
false
,
...
...
develop/@gms/gms-plugin-billexpand/src/mcon.js
View file @
f01a6664
...
...
@@ -69,6 +69,8 @@ import buttonGroupControl from './control/buttonGrouop'
import
rbcBasedataTree
from
'./control/baseDataSelect/index.vue'
import
newsDetail
from
'./components-control/news-detail.vue'
import
queryDate
from
'./control/query-date.vue'
import
userSelectControl
from
'./control/userSelect.vue'
import
integerControl
from
'./control/integerControl.vue'
//formula
import
GetMdByFormerCode
from
'./formula/GetMdByFormerCode'
import
GetBrowserVersion
from
'./formula/GetBrowserVersion'
...
...
@@ -257,7 +259,9 @@ export default {
buttonGroupControl
,
ApprovalUserControl
,
WorkflowTrack
,
rbcBasedataTree
rbcBasedataTree
,
userSelectControl
,
integerControl
},
formula
:
{
SubTableSetBaseData
,
...
...
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