Merge remote-tracking branch 'origin/main' into main
This commit is contained in:
commit
11bc92ef9c
@ -134,13 +134,18 @@ const {
|
|||||||
const suffixMap = {
|
const suffixMap = {
|
||||||
'BIZ030': ' * 交易金额',
|
'BIZ030': ' * 交易金额',
|
||||||
'BIZ031': ' * 交易金额',
|
'BIZ031': ' * 交易金额',
|
||||||
'default': ' 元/条'
|
'default': '元/条'
|
||||||
};
|
};
|
||||||
|
let formattedValue;
|
||||||
|
if(row.typeId !== 'BIZ030' && row.typeId !== 'BIZ031' ){
|
||||||
|
formattedValue = parseFloat(row.pricingRule).toFixed(2);
|
||||||
|
}else{
|
||||||
|
formattedValue = row.pricingRule;
|
||||||
|
}
|
||||||
const suffix = suffixMap[row.typeId] || suffixMap.default;
|
const suffix = suffixMap[row.typeId] || suffixMap.default;
|
||||||
return (
|
return (
|
||||||
<NEllipsis style="width: 100%;" tooltip={true}>
|
<NEllipsis style="width: 100%;" tooltip={true}>
|
||||||
{`${row.pricingRule}${suffix}`}
|
{`${formattedValue}${suffix}`}
|
||||||
</NEllipsis>
|
</NEllipsis>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -149,7 +149,7 @@ watch(visible, () => {
|
|||||||
:rows="3"
|
:rows="3"
|
||||||
placeholder="请输入计价规则说明"
|
placeholder="请输入计价规则说明"
|
||||||
>
|
>
|
||||||
<template v-if="model.typeId === 'BIZ006' || model.typeId === 'BIZ028' " #suffix>
|
<template v-if="model.typeId === 'BIZ030' || model.typeId === 'BIZ031' " #suffix>
|
||||||
* 交易金额
|
* 交易金额
|
||||||
</template>
|
</template>
|
||||||
<template else #suffix>
|
<template else #suffix>
|
||||||
|
Loading…
Reference in New Issue
Block a user