duy пре 8 месеци
родитељ
комит
9c42834675
1 измењених фајлова са 4 додато и 2 уклоњено
  1. 4 2
      src/components/hc-report/hc-report.vue

+ 4 - 2
src/components/hc-report/hc-report.vue

@@ -58,7 +58,7 @@
 
 <script setup>
 import { ref, watch } from 'vue'
-import { arrIndex, formValidate, getArrValue, getObjValue } from 'js-fast-way'
+import { arrIndex, formValidate, getArrValue, getObjVal, getObjValue } from 'js-fast-way'
 import HcReportTasksUser from './modules/index.vue'
 import { useAppStore } from '~src/store'
 import mainApi from '~api/tasks/flow'
@@ -126,7 +126,9 @@ const getReportTaskName = async () => {
         id: periodId,
         type,
     })
-    formModel.value.taskName = data ?? ''
+    const { name, submitApprovalMoney } = getObjVal(data)
+    formModel.value.taskName = name ?? ''
+       formModel.value.submitApprovalMoney = Number(submitApprovalMoney) ?? 0
 }
 
 //任务流程