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
f8f7f89f
authored
2025-06-27 10:59:08 +0800
by
lxs
Committed by
lihua
2025-06-30 14:28:40 +0800
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
数据定价更新
1 parent
84d72f58
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
18 deletions
src/views/data_pricing/calculateConfig.vue
src/views/data_pricing/calculateConfig.vue
View file @
f8f7f89
...
...
@@ -904,32 +904,41 @@ const checkForm = (type) => {
// 字典
let dictList: any = [], hasModelScore = false;
const dictStr = exportData.value.map(e => {
const targetList: any = [];
e.pricingTargetRSVOS.map(t => {
if (t.targetType == '2' && t.functionName == '1') {
hasModelScore = true
;
}
// 维度指标数大于1显示
明细
// 检查是否有质量模型评分
hasModelScore = hasModelScore || e.pricingTargetRSVOS.some(
t => t.targetType === '2' && t.functionName === '1'
)
;
// 只有当维度指标数大于1时才处理
明细
if (e.pricingTargetRSVOS.length > 1) {
targetList.push({
targetName: t.targetName,
tNum: t.tNum,
})
const targetStr = e.pricingTargetRSVOS
.map(t => `${t.targetName}为${changeNum(t.tNum, 2)}`)
.join('、');
dictList.push(`${e.dimensionalityName}为${changeNum(e.sNum, 2)},其中${targetStr}`);
}
})
const targetStr = targetList.length ? targetList.map(t => `${t.targetName}为${changeNum(t.tNum, 2)}`).join('、') : '';
targetStr && dictList.push(`${e.dimensionalityName}为${changeNum(e.sNum, 2)},其中${targetStr}`);
return `${e.dimensionalityName}为${changeNum(e.sNum, 2)}`;
})
let dictListStr = `${dictStr.join(',')}。\n${dictList.join(';\n')}`
// 质量模型
if (hasModelScore) {
const largeCategoryScoreList = qualityScoreData.value.largeCategoryScoreList || [];
const largeCategoryScore = largeCategoryScoreList.map(q => `${q.largeCategoryName}方面得分为${changeNum(q.largeCategoryScore || 0, 2)}`);
dictListStr += largeCategoryScore.length ? `;\n数据的总体质量得分为${changeNum(qualityScoreData.value.qualityScore || 0, 2)}。其中${largeCategoryScore.join(',')}` : `;\n数据的总体质量得分为${changeNum(qualityScoreData.value.qualityScore || 0, 2)}。`
const { largeCategoryScoreList = [], qualityScore = 0 } = qualityScoreData.value;
const qualityParts = [
`数据的总体质量得分为${changeNum(qualityScore, 2)}`
];
if (largeCategoryScoreList.length) {
const categoryScores = largeCategoryScoreList.map(
q => `${q.largeCategoryName}方面得分为${changeNum(q.largeCategoryScore || 0, 2)}`
);
qualityParts.push(`其中${categoryScores.join(',')}`);
}
exportOut.three = `${baseConfigFormInfo.belongingEntityGuid}持有的\"${damName}\"的数据(患者人次)单价为${changeNum(dataTransactionPrice.value, 2)}元`;
exportOut.three = dictListStr ? `${exportOut.three};其中${dictListStr}` : `${exportOut.three}。`
dictListStr += `;\n${qualityParts.join('。')}`;
}
exportOut.three = `${baseConfigFormInfo.belongingEntityGuid}持有的"
$
{
damName
}
"的数据(患者人次)单价为${changeNum(dataTransactionPrice.value, 2)}元${dictListStr ? `;其中${dictListStr}` : '。'}`;
exportModelScore(exportOut).then((res: any) => {
loading.value = false;
if (res && !res.msg) {
...
...
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