소스 검색

产值填报字符串转数值类型

songxy 10 달 전
부모
커밋
c9142f293d

+ 7 - 6
client/src/views/OaSystem/marketCenter/projectReport/index.vue

@@ -236,12 +236,13 @@ const commitProjectReport = async (row: { reportId: string }) => {
 }
 const reportProgressHandle = (row) => {
   if (row.reportProgress) {
-    row.periodValue = (
-      ((row.reportProgress - row.finishProgress) / 100) *
-      row.virtualAmount
-    ).toFixed(2)
-    row.surplusValue = (((100 - row.reportProgress) / 100) * row.virtualAmount).toFixed(2)
-    row.periodCheckValue = (row.shareRatio * row.periodValue).toFixed(2)
+    row.periodValue = parseFloat(
+      (((row.reportProgress - row.finishProgress) / 100) * row.virtualAmount).toFixed(2)
+    )
+    row.surplusValue = parseFloat(
+      (((100 - row.reportProgress) / 100) * row.virtualAmount).toFixed(2)
+    )
+    row.periodCheckValue = parseFloat((row.shareRatio * row.periodValue).toFixed(2))
   }
 }
 const editorHandle = async (row) => {

+ 1 - 0
client/src/views/OaSystem/mineCenter/components/CopperModal.vue

@@ -107,6 +107,7 @@
           </template>
         </div>
       </div>
+      <p style="color: red; margin-top: 15px">请上传本人近期清晰正面露脸照片</p>
       <template #footer>
         <el-button type="primary" @click="handleOk">{{ t('cropper.okText') }}</el-button>
       </template>