Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
f44693c3
authored
2025-08-14 19:57:28 +0800
by
lxs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
数据定价更新
1 parent
0c16ed30
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
src/views/data_pricing/calculateConfig.vue
src/views/data_pricing/calculateConfig.vue
View file @
f44693c
...
...
@@ -380,7 +380,7 @@ const setBuildInFormItems = (buildList) => {
type
:
'input'
,
placeholder
:
''
,
field
:
buildField
,
default
:
''
,
default
:
b
.
isInputParameter
!=
'Y'
?
changeNum
(
b
.
defaultValue
,
2
)
:
b
.
defaultValue
!=
''
&&
b
.
defaultValue
!=
null
?
parseFloat
(
b
.
defaultValue
).
toFixed
(
2
)
:
''
,
inputType
:
'moneyNumber'
,
maxlength
:
18
,
clearable
:
true
,
...
...
@@ -491,12 +491,10 @@ const setTableData = (dataArr) => {
if
((
item
.
demandTableGuid
||
item
.
guid
))
{
const
rGuid
=
item
.
demandTableGuid
||
item
.
guid
;
const
rIndex
=
i
;
if
(
!
guid
||
(
guid
&&
rGuid
!=
(
demInfo
?.
demandTableGuid
||
''
)))
{
(()
=>
{
getDemandField
(
rGuid
,
rIndex
);
})()
}
}
})
resourceTableFieldAllNum
.
value
=
tableData
.
value
.
reduce
((
accumulator
,
currentValue
)
=>
{
return
accumulator
+
Number
(
currentValue
.
dataFieldsNum
);
...
...
@@ -680,7 +678,7 @@ const setRowData = (rowData, dGuid, detailDataTable) => {
const
setTableRowData
=
(
dGuid
,
rIndex
,
setRow
=
true
)
=>
{
let
rowData
=
tableData
.
value
[
rIndex
];
const
detailDataTable
=
(
flowDetail
.
value
.
dataPricingDemandmatchingRQVOS
||
[]).
find
(
f
=>
f
.
dataTableGuid
==
dGuid
);
const
detailDataTable
=
(
flowDetail
.
value
.
dataPricingDemandmatchingRQVOS
||
[]).
find
(
f
=>
f
.
dataTableGuid
==
dGuid
&&
f
.
demandTableGuid
==
rowData
.
demandTableGuid
);
setRow
&&
setRowData
(
rowData
,
dGuid
,
detailDataTable
);
const
currDataTableGuid
=
detailDataTable
?.
dataTableGuid
||
''
;
if
(
dGuid
)
{
...
...
@@ -866,8 +864,8 @@ const getCalculateParams = (baseConfigFormObj, baseConfigFormInfo) => {
}
buildInData
.
value
.
map
(
item
=>
{
let
targetValue
=
baseConfigFormInfo
[
`build_
${
item
.
guid
}
`
];
if
(
typeof
targetValue
===
'string'
)
{
if
(
/^
[
+-
]?\d{1,3}(
,
\d{3})
*
(\.\d{2})?
$/
.
test
(
targetValue
))
{
if
(
typeof
targetValue
===
'string'
)
{
if
(
/^
[
+-
]?\d{1,3}(
,
\d{3})
*
(\.\d{2})?
$/
.
test
(
targetValue
))
{
targetValue
=
parseFloat
(
targetValue
.
replace
(
/,/g
,
''
))
}
}
...
...
@@ -1158,11 +1156,6 @@ onMounted(() => {
clearable
/>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
fixed=
"right"
width=
"100"
>
<
template
#
default=
"scope"
>
<el-button
type=
"primary"
link
@
click=
"btnClick(
{ value: 'expend' }, scope.row)">字段映射
</el-button>
</
template
>
</el-table-column>
</el-table>
</div>
</div>
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment