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
2b803332
authored
2025-08-14 17:02:38 +0800
by
lxs
Committed by
lihua
2025-10-13 11:29:06 +0800
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
数据定价更新
1 parent
633503c2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
src/views/data_pricing/calculateConfig.vue
src/views/data_pricing/calculateConfig.vue
View file @
2b80333
...
...
@@ -658,14 +658,10 @@ const matchTableFields = (rData, tData) => {
},
0
);
}
const
setTableRowData
=
(
dGuid
,
rIndex
)
=>
{
let
rowData
=
tableData
.
value
[
rIndex
],
currDataTableGuid
=
""
;
const
setRowData
=
(
rowData
,
dGuid
)
=>
{
const
detailDataTable
=
(
flowDetail
.
value
.
dataPricingDemandmatchingRQVOS
||
[]).
find
(
f
=>
f
.
dataTableGuid
==
dGuid
);
detailDataTable
&&
(
currDataTableGuid
=
detailDataTable
.
dataTableGuid
);
if
(
guid
&&
dGuid
==
rowData
.
dataTableGuid
)
{
const
sourceTableField
=
flowDetail
.
value
.
dataPricingDemandmatchingRQVOS
?.
find
(
s
=>
dGuid
==
s
.
dataTableGuid
);
const
pricingDemandField
=
sourceTableField
?.
pricingDemandFieldRQVOS
||
[];
const
pricingDemandField
=
detailDataTable
?.
pricingDemandFieldRQVOS
||
[];
rowData
.
dataFields
.
map
(
f
=>
{
f
.
chName
=
pricingDemandField
.
find
(
s
=>
f
.
guid
==
s
.
guid
)?.
chName
||
''
})
...
...
@@ -679,13 +675,12 @@ const setTableRowData = (dGuid, rIndex) => {
return
accumulator
+
Number
(
currentValue
.
dataFieldsNum
);
},
0
);
resourceTableAllNum
.
value
=
tableData
.
value
.
filter
(
item
=>
item
.
dataTableGuid
!=
''
&&
item
.
dataTableGuid
!=
null
).
length
;
return
detailDataTable
.
dataTableGuid
||
''
;
}
const
setTableRowData
=
(
dGuid
,
rIndex
,
setRow
=
true
)
=>
{
let
rowData
=
tableData
.
value
[
rIndex
];
const
detailDataTable
=
(
flowDetail
.
value
.
dataPricingDemandmatchingRQVOS
||
[]).
find
(
f
=>
f
.
dataTableGuid
==
dGuid
&&
f
.
demandTableGuid
==
rowData
.
demandTableGuid
);
setRow
&&
setRowData
(
rowData
,
dGuid
,
detailDataTable
);
const
currDataTableGuid
=
detailDataTable
?.
dataTableGuid
||
''
;
let
rowData
=
tableData
.
value
[
rIndex
],
currDataTableGuid
=
""
;
setRow
&&
(
currDataTableGuid
=
setRowData
(
rowData
,
dGuid
));
if
(
dGuid
)
{
tableLoading
.
value
=
true
;
getRegisterCatalogTableDetail
(
dGuid
).
then
((
res
:
any
)
=>
{
...
...
@@ -932,7 +927,6 @@ const checkForm = (type) => {
const
priceData
=
await
getCalculatPrice
(
paramsInfo
);
// 显示结果
dataTransactionPrice
.
value
=
priceData
.
transactionPrice
.
toFixed
(
2
);
if
(
type
==
'export'
)
{
loading
.
value
=
true
;
const
exportOut
=
{
...
...
@@ -958,7 +952,7 @@ const checkForm = (type) => {
message
:
'下载报告请求失败'
,
});
})
}
else
{
}
else
if
(
type
==
'submit'
)
{
let
params
=
{
...
paramsInfo
,
dataTransactionPrice
:
dataTransactionPrice
.
value
,
...
...
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