Commit cad76f82 authored by yanzhengyang's avatar yanzhengyang

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

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