Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
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
ReactWeb5
CivManage
Commits
63ab328d
Commit
63ab328d
authored
May 17, 2023
by
涂伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '新台账配置字段形态显示逻辑优化'
parent
26c7c7a6
Pipeline
#72548
passed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
116 additions
and
3 deletions
+116
-3
BookConfigNew.jsx
src/pages/bsmanager/base/standingBook/BookConfigNew.jsx
+116
-3
No files found.
src/pages/bsmanager/base/standingBook/BookConfigNew.jsx
View file @
63ab328d
...
...
@@ -26,7 +26,7 @@ import {
Ledger_QueryLedger
,
Ledger_SaveLedger
,
}
from
'@/services/standingBook/api'
;
import
{
getFieldInfo
}
from
'panda-xform'
;
//
import { getFieldInfo } from 'panda-xform';
import
ChangeAdd
from
'./changeAdd'
;
import
EditTable
from
'./EditTable'
;
import
styles
from
'./BookConfigNew.less'
;
...
...
@@ -194,6 +194,121 @@ const BookConfigNew = props => {
}
});
};
const
getFieldInfo
=
formJson
=>
{
let
obj
=
{};
let
parent
=
formJson
?.
properties
;
if
(
isObject
(
parent
))
{
for
(
let
v
in
parent
)
{
let
child
=
parent
[
v
]?.
properties
;
if
(
isObject
(
child
))
{
for
(
let
s
in
child
)
{
obj
[
s
]
=
{
...
child
[
s
],
...
widgetData
[(
child
?.[
s
]?.
widget
)]
};
}
}
}
}
return
obj
;
};
const
widgetData
=
{
TextInput
:
{
name
:
'文本'
,
type
:
'文本控件'
,
},
TextArea
:
{
name
:
'多行文本'
,
type
:
'文本控件'
,
},
NumberInput
:
{
name
:
'数值'
,
type
:
'文本控件'
,
},
RichText
:
{
name
:
'富文本'
,
type
:
'文本控件'
,
},
Coding
:
{
name
:
'编码'
,
type
:
'文本控件'
,
},
SearchLocation
:
{
name
:
'地址位置'
,
type
:
'文本控件'
,
},
ComboBox
:
{
name
:
'下拉框'
,
type
:
'选择器控件'
,
},
RadioButton
:
{
name
:
'单选框'
,
type
:
'选择器控件'
,
},
CheckBox
:
{
name
:
'复选框'
,
type
:
'选择器控件'
,
},
SwitchSelector
:
{
name
:
'开关按钮'
,
type
:
'选择器控件'
,
},
RelevanceSelect
:
{
name
:
'关联选择'
,
type
:
'选择器控件'
,
},
CascadeSelector
:
{
name
:
'联级选择'
,
type
:
'选择器控件'
,
},
PersonSelector
:
{
name
:
'人员选择'
,
type
:
'业务控件'
,
},
DeptSelector
:
{
name
:
'部门选择'
,
type
:
'业务控件'
,
},
AccountSelector
:
{
name
:
'台账选择'
,
type
:
'业务控件'
,
},
DateTime
:
{
name
:
'日期选择'
,
type
:
'时间控件'
,
},
Time
:
{
name
:
'时间选择'
,
type
:
'时间控件'
,
},
FileUpload
:
{
name
:
'附件'
,
type
:
'附件控件'
,
},
Coordinate
:
{
name
:
'地图坐标'
,
type
:
'GIS控件'
,
},
DrawPath
:
{
name
:
'路径控件'
,
type
:
'GIS控件'
,
},
DrawArea
:
{
name
:
'区域控件'
,
type
:
'GIS控件'
,
},
Device
:
{
name
:
'设备选择'
,
type
:
'GIS控件'
,
},
RelationForm
:
{
name
:
'关联表单'
,
type
:
'高级控件'
,
},
AutoCalculate
:
{
name
:
'自动计算'
,
type
:
'高级控件'
,
},
};
const
isObject
=
obj
=>
typeof
obj
===
'object'
;
// 切换表后数据处理为对应格式
const
changTable
=
(
value
,
editArr
=
[])
=>
{
Ledger_ReloadLedgerFields
({
tableName
:
value
}).
then
(
res
=>
{
...
...
@@ -365,8 +480,6 @@ const BookConfigNew = props => {
}
};
const
isObject
=
obj
=>
typeof
obj
===
'object'
;
return
(
<
Modal
title=
{
`${type === 'add' ? '台账配置' : '台账编辑'}`
}
...
...
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