|
@@ -118,7 +118,7 @@ export const ChemCost = ({ open, showTip = false }) => {
|
|
const { data: snapshot } = useRequest(queryConditionSnapshot, {
|
|
const { data: snapshot } = useRequest(queryConditionSnapshot, {
|
|
defaultParams: [{ project_id: projectId }],
|
|
defaultParams: [{ project_id: projectId }],
|
|
formatResult: (result) => {
|
|
formatResult: (result) => {
|
|
- const otcCost = Number(getValue(result.data.otc_cost_unit));
|
|
|
|
|
|
+ const otcCost = Number(getValue(result.data.otc_day_cost_unit));
|
|
let resultText = `当前药耗持平理论值 (${
|
|
let resultText = `当前药耗持平理论值 (${
|
|
result?.data?.otc_unit_theory || 0
|
|
result?.data?.otc_unit_theory || 0
|
|
}kg/m³)`;
|
|
}kg/m³)`;
|
|
@@ -257,7 +257,7 @@ export const ChemCost = ({ open, showTip = false }) => {
|
|
// 确定保留的小数点
|
|
// 确定保留的小数点
|
|
const chemUsedMaxValue = [...planChem, ...actualChem]
|
|
const chemUsedMaxValue = [...planChem, ...actualChem]
|
|
.map((item) => item.value)
|
|
.map((item) => item.value)
|
|
- .reduce((a, b) => Math.max(a, b));
|
|
|
|
|
|
+ .reduce((a, b) => Math.max(a, b), 0);
|
|
const chemUsedFixed = getFixed(chemUsedMaxValue);
|
|
const chemUsedFixed = getFixed(chemUsedMaxValue);
|
|
chemUsed.dataList = [
|
|
chemUsed.dataList = [
|
|
{
|
|
{
|
|
@@ -329,7 +329,7 @@ export const ChemCost = ({ open, showTip = false }) => {
|
|
<div className={styles.curEnergyCost}>
|
|
<div className={styles.curEnergyCost}>
|
|
<div className={styles.item}>
|
|
<div className={styles.item}>
|
|
<div className={styles.value}>
|
|
<div className={styles.value}>
|
|
- {open ? getValue(snapshot?.otc_unit || '') : '***'}
|
|
|
|
|
|
+ {open ? getValue(snapshot?.otc_day_unit || '') : '***'}
|
|
<span className={styles.unit}>元/m³</span>
|
|
<span className={styles.unit}>元/m³</span>
|
|
</div>
|
|
</div>
|
|
<div className={styles.name}>近一天吨水药成本</div>
|
|
<div className={styles.name}>近一天吨水药成本</div>
|