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
6d85f6b6
authored
2025-07-31 16:56:06 +0800
by
lxs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
数据定价对接计算接口
1 parent
ffe5da2f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
src/views/data_pricing/calculateConfig.vue
src/views/data_pricing/calculateConfig.vue
View file @
6d85f6b
...
...
@@ -990,12 +990,12 @@ const checkForm = (type) => {
const
baseConfigFormInfo
=
baseConfigFormObj
.
formInline
;
baseConfigFormEl
.
validate
(
async
(
valid
,
errorItem
)
=>
{
if
(
valid
)
{
const
params
=
getCalculateParams
(
baseConfigFormObj
,
baseConfigFormInfo
);
const
params
Info
=
getCalculateParams
(
baseConfigFormObj
,
baseConfigFormInfo
);
loading
.
value
=
true
;
// 先获取计算结果
const
priceData
=
await
getCalculatPrice
(
params
);
const
priceData
=
await
getCalculatPrice
(
params
Info
);
// 显示结果
dataTransactionPrice
.
value
=
priceData
.
transactionPrice
;
dataTransactionPrice
.
value
=
priceData
.
transactionPrice
.
toFixed
(
2
)
;
if
(
type
==
'calculate'
)
{
// const { signatoryData, resultInfo } = reporting(baseConfigFormInfo);
...
...
@@ -1084,7 +1084,10 @@ const checkForm = (type) => {
// const { signatoryData, resultInfo } = reporting(baseConfigFormInfo);
// exportData.value = resultInfo;
// !dataTransactionPrice.value && calculatePrice(signatoryData);
let
params
=
{
...
paramsInfo
,
dataTransactionPrice
:
dataTransactionPrice
.
value
,
}
loading
.
value
=
true
;
savePrice
(
params
).
then
((
res
:
any
)
=>
{
loading
.
value
=
false
;
...
...
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