Commit cad76f82 authored by yanzhengyang's avatar yanzhengyang

费用审批-日常报销详情页完善

parent d446e96a
...@@ -144,19 +144,25 @@ const ruleForm = ref({ ...@@ -144,19 +144,25 @@ const ruleForm = ref({
}], }],
}) })
let type = proxy.$route.query.type
function getDetail() { function getDetail() {
let id = proxy.$route.query.id let id = proxy.$route.query.id
console.log("路由",id) // console.log("路由",id)
detailCostManage(id).then(res => { detailCostManage(id).then(res => {
ruleForm.value = res.data ruleForm.value = res.data
console.log("我是数据",ruleForm.value) // console.log("我是数据",ruleForm.value)
}) })
// console.log("坤坤",Id.value) // console.log("坤坤",Id.value)
// console.log("test",ruleForm.value.childList) // console.log("test",ruleForm.value.childList)
} }
function back(){ function back(){
if(type === '审批'){
router.push({path:'/costManage/costManage/examineAndApprove'})
}else{
router.push('/costManage/dailyReimburse') router.push('/costManage/dailyReimburse')
}
} }
getDetail() getDetail()
</script> </script>
......
...@@ -157,11 +157,13 @@ ...@@ -157,11 +157,13 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="detail" label="详情" align="center" width="100px"> <el-table-column prop="detail" label="详情" align="center" width="100px">
<template #default="scope">
<el-tooltip content="详情" placement="top"> <el-tooltip content="详情" placement="top">
<el-button link type="text" @click="handleView(scope.row)"> <el-button link type="text" @click="handleView(scope.row)">
<img src="@/assets/icons/common/check.png" height="32" width="32"/> <img src="@/assets/icons/common/check.png" height="32" width="32"/>
</el-button> </el-button>
</el-tooltip> </el-tooltip>
</template>
</el-table-column> </el-table-column>
<!-- 操作按钮--> <!-- 操作按钮-->
<el-table-column label="操作" align="center" fixed="right" width="120px"> <el-table-column label="操作" align="center" fixed="right" width="120px">
...@@ -483,13 +485,13 @@ const getNodeList = ()=>{ ...@@ -483,13 +485,13 @@ const getNodeList = ()=>{
const costManageList = ref([]); const costManageList = ref([]);
const getList = () => { const getList = () => {
loading.value = true; loading.value = true;
console.log("参数",queryParams); // console.log("参数",queryParams);
listDailyApprove(queryParams).then(res => { listDailyApprove(queryParams).then(res => {
loading.value = false; loading.value = false;
total.value = res.total; total.value = res.total;
// Object.assign(costManageList,res.rows); // Object.assign(costManageList,res.rows);
costManageList.value = res.rows costManageList.value = res.rows
console.log("审批页数据",res.rows); // console.log("审批页数据",res.rows);
for(let i in costManageList.value){ for(let i in costManageList.value){
costManageList.value[i].currentStatus = approvalStatusChange(costManageList.value[i].approvalStatus,costManageList.value[i].currentAudiRoleId) costManageList.value[i].currentStatus = approvalStatusChange(costManageList.value[i].approvalStatus,costManageList.value[i].currentAudiRoleId)
} }
...@@ -511,6 +513,11 @@ function handleQuery() { ...@@ -511,6 +513,11 @@ function handleQuery() {
getList(); getList();
} }
/** 出差申请详情页 */
function handleView(row) {
router.push({ path: '/costManage/dailyReimburse/detail', query: { id: row.id , type: "审批" } });
}
// 切换展开/折叠状态 // 切换展开/折叠状态
const toggleSearch = () => { const toggleSearch = () => {
isExpanded.value = !isExpanded.value; isExpanded.value = !isExpanded.value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment