|
@@ -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
|
|
|
}
|
|
|
|
|
|
//任务流程
|