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
2005dd19
authored
2025-08-14 17:02:38 +0800
by
lxs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
数据定价更新
1 parent
3fa48dc4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
src/views/data_pricing/calculateConfig.vue
src/views/data_pricing/calculateConfig.vue
View file @
2005dd1
...
...
@@ -583,7 +583,7 @@ const getResourceDetail = (sGuid, toPromise = true) => {
const
dGuid
=
item
.
dataTableGuid
;
const
rIndex
=
i
;
(()
=>
{
!
toPromise
&&
dGuid
&&
setTableRowData
(
dGuid
,
rIndex
)
!
toPromise
&&
dGuid
&&
setTableRowData
(
dGuid
,
rIndex
,
false
)
})()
})
resourceTableAllNum
.
value
=
tableData
.
value
.
filter
(
item
=>
item
.
dataTableGuid
!=
''
&&
item
.
dataTableGuid
!=
null
).
length
;
...
...
@@ -660,14 +660,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
||
''
})
...
...
@@ -681,6 +677,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
],
currDataTableGuid
=
""
;
setRow
&&
(
currDataTableGuid
=
setRowData
(
rowData
,
dGuid
));
if
(
dGuid
)
{
tableLoading
.
value
=
true
;
getRegisterCatalogTableDetail
(
dGuid
).
then
((
res
:
any
)
=>
{
...
...
@@ -927,7 +929,6 @@ const checkForm = (type) => {
const
priceData
=
await
getCalculatPrice
(
paramsInfo
);
// 显示结果
dataTransactionPrice
.
value
=
priceData
.
transactionPrice
.
toFixed
(
2
);
if
(
type
==
'export'
)
{
loading
.
value
=
true
;
const
exportOut
=
{
...
...
@@ -953,7 +954,7 @@ const checkForm = (type) => {
message
:
'下载报告请求失败'
,
});
})
}
else
{
}
else
if
(
type
==
'submit'
)
{
let
params
=
{
...
paramsInfo
,
dataTransactionPrice
:
dataTransactionPrice
.
value
,
...
...
@@ -991,6 +992,11 @@ const btnClick = async (btn, row: any = null) => {
expendTableRef
.
value
.
toggleRowExpansion
(
row
);
}
else
if
(
type
==
'calculate'
||
type
==
'submit'
)
{
if
(
type
==
'submit'
)
{
const
errorMsgText
=
document
.
querySelectorAll
(
'.el-form-item__error'
);
if
(
errorMsgText
.
length
)
{
ElMessage
.
info
(
'请修改错误提示项内容后,再操作'
);
return
}
ElMessageBox
.
confirm
(
dataTransactionPrice
.
value
===
''
?
'是否直接计算价格并提交'
:
'请确认当前数据交易价格是否为最新计算结果'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
...
...
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