|
@@ -151,7 +151,7 @@ import {useRoute, useRouter} from 'vue-router'
|
|
|
import mainApi from "~api/expense/finReimburse";
|
|
|
import {getTokenHeader} from "~src/api/request/header";
|
|
|
import {arrIndex, deepClone, formValidate, getArrValue, getObjValue} from "js-fast-way";
|
|
|
-import {getProjectList, getDictInfo,getuserList} from "~api/other";
|
|
|
+import {getProjectList, getDictInfo,getuserList,getApprovesList} from "~api/other";
|
|
|
import {delMessage} from "~uti/tools";
|
|
|
import {useAppStore} from "~src/store";
|
|
|
const useAppState = useAppStore();
|
|
@@ -178,6 +178,7 @@ const getApi = () => {
|
|
|
expenseFrType()
|
|
|
getLoanListData()
|
|
|
getUserDict()
|
|
|
+ getApprovesListData()
|
|
|
//获取数据详情
|
|
|
if (dataId.value > 0 && dataType.value !== 'add') {
|
|
|
getDetailsData()
|
|
@@ -518,13 +519,30 @@ const setUploadFileData = (echoParams, resData) => {
|
|
|
|
|
|
//流程数据
|
|
|
const timeLineData = ref([
|
|
|
- {title: '审批人', section: '部门负责人'},
|
|
|
- {title: '财务审核', section: '财务'},
|
|
|
- {title: '最终确认付款人', section: '总经理'},
|
|
|
- {title: '出纳付款', section: '出纳'},
|
|
|
- {title: '抄送人', section: '总经理、财务、申请人'},
|
|
|
+ // {title: '审批人', section: '部门负责人'},
|
|
|
+ // {title: '财务审核', section: '财务'},
|
|
|
+ // {title: '最终确认付款人', section: '总经理'},
|
|
|
+ // {title: '出纳付款', section: '出纳'},
|
|
|
+ // {title: '抄送人', section: '总经理、财务、申请人'},
|
|
|
])
|
|
|
+const timeData=ref([])
|
|
|
+const getApprovesListData=async()=>{
|
|
|
+ const {error, code, data} = await getApprovesList()
|
|
|
+ if (!error && code === 200) {
|
|
|
+ console.log(data,'data');
|
|
|
+ timeData.value=data['财务报销流程']
|
|
|
+ console.log( timeData.value,' timeData.value');
|
|
|
+ for(var i in timeData.value) {
|
|
|
+ timeLineData.value.push({
|
|
|
+ title:i,
|
|
|
+ section:timeData.value[i].join(',')
|
|
|
+ })
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ timeLineData.value=[]
|
|
|
|
|
|
+ }
|
|
|
+}
|
|
|
//处理表单数据
|
|
|
const getFormData = (submitStatus = 1) => {
|
|
|
const res = deepClone(detailsData.value)
|