diff --git a/src/views/naturalWaterArea/tableDalgo.vue b/src/views/naturalWaterArea/tableDalgo.vue index 1e137b5..65f4d9b 100644 --- a/src/views/naturalWaterArea/tableDalgo.vue +++ b/src/views/naturalWaterArea/tableDalgo.vue @@ -126,7 +126,7 @@ function loadProjerctListData() { FormList.value = typeList.data; fileSaveRequestList.value = typeList.fileList1; - IsStandFlag1.value = typeList.data.trsyArea * 1 - ((itemTarget.value * typeList.allRealValue) / 100 || 0); + IsStandFlag1.value = typeList.data.trsyArea * 1 - (((itemTarget.value * typeList.allRealValue) / 100).toFixed(3) || 0); proxy.$refs.ruleForm.resetFields(); } function resetFiled() { @@ -137,7 +137,7 @@ emits('onModalClose'); } function trsyAreaChange(v) { - let st = v * 1 - ((itemTarget.value * typeList.allRealValue) / 100 || 0); + let st = v * 1 - (((itemTarget.value * typeList.allRealValue) / 100 ).toFixed(3)|| 0); console.log(st, 333); if (st >= 0) { IsStandFlag1.value = 1; diff --git a/src/views/naturalWaterArea/tableDalgo.vue b/src/views/naturalWaterArea/tableDalgo.vue index 1e137b5..65f4d9b 100644 --- a/src/views/naturalWaterArea/tableDalgo.vue +++ b/src/views/naturalWaterArea/tableDalgo.vue @@ -126,7 +126,7 @@ function loadProjerctListData() { FormList.value = typeList.data; fileSaveRequestList.value = typeList.fileList1; - IsStandFlag1.value = typeList.data.trsyArea * 1 - ((itemTarget.value * typeList.allRealValue) / 100 || 0); + IsStandFlag1.value = typeList.data.trsyArea * 1 - (((itemTarget.value * typeList.allRealValue) / 100).toFixed(3) || 0); proxy.$refs.ruleForm.resetFields(); } function resetFiled() { @@ -137,7 +137,7 @@ emits('onModalClose'); } function trsyAreaChange(v) { - let st = v * 1 - ((itemTarget.value * typeList.allRealValue) / 100 || 0); + let st = v * 1 - (((itemTarget.value * typeList.allRealValue) / 100 ).toFixed(3)|| 0); console.log(st, 333); if (st >= 0) { IsStandFlag1.value = 1; diff --git a/src/views/naturalWaterArea/todoDon.vue b/src/views/naturalWaterArea/todoDon.vue index 60bc6d3..ad9d1ed 100644 --- a/src/views/naturalWaterArea/todoDon.vue +++ b/src/views/naturalWaterArea/todoDon.vue @@ -14,7 +14,7 @@ {{ row.itemDataTypePerformanceEvaluateItemList[0]?.itemTarget || 0 }}