明树Git Lab
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
J
jt_front
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
jt_front
Commits
1691ab65
Commit
1691ab65
authored
Mar 31, 2026
by
zhanghan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d27fdd74
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
692 additions
and
1 deletion
+692
-1
routes.js
src/router/routes.js
+15
-1
workForHousing.vue
src/views/elseManage/workForHousing.vue
+241
-0
workForHousingAdd.vue
src/views/elseManage/workForHousingAdd.vue
+436
-0
No files found.
src/router/routes.js
View file @
1691ab65
...
@@ -437,9 +437,23 @@ const routes = [
...
@@ -437,9 +437,23 @@ const routes = [
path
:
"/costAdd"
,
path
:
"/costAdd"
,
name
:
"costAdd"
,
name
:
"costAdd"
,
title
:
"成本管理"
,
title
:
"成本管理"
,
meta
:
{
title
:
"成本管理详情"
},
// 修改:成本管理 → 成本管理详情
meta
:
{
title
:
"成本管理详情"
},
component
:
()
=>
import
(
"@/views/elseManage/costAdd.vue"
),
component
:
()
=>
import
(
"@/views/elseManage/costAdd.vue"
),
},
},
{
path
:
"/workForHousing"
,
name
:
"workForHousing"
,
title
:
"工抵房管理"
,
meta
:
{
title
:
"工抵房管理"
},
component
:
()
=>
import
(
"@/views/elseManage/workForHousing.vue"
),
},
{
path
:
"/workForHousingAdd"
,
name
:
"workForHousingAdd"
,
title
:
"工抵房管理详情"
,
meta
:
{
title
:
"工抵房管理详情"
},
component
:
()
=>
import
(
"@/views/elseManage/workForHousingAdd.vue"
),
},
{
{
path
:
"/property"
,
path
:
"/property"
,
name
:
"property"
,
name
:
"property"
,
...
...
src/views/elseManage/workForHousing.vue
0 → 100644
View file @
1691ab65
<
template
>
<div
class=
"manage-container"
>
<div
class=
"manage-wrap"
>
<search-form
@
search=
"handleSearch"
/>
<div
class=
"manage-header"
>
<div
class=
"header-left"
></div>
<div
class=
"header-right"
>
<el-button
type=
"primary"
@
click=
"workForHousingAdd"
>
新增
</el-button>
</div>
</div>
<div
class=
"manage-content"
v-loading=
"loading"
>
<common-table
:autoHeight=
"true"
:maxRows=
"10"
:data=
"tableData"
:columns=
"tableColumns"
:total=
"total"
:current-page=
"currentPage"
:page-size=
"pageSize"
:index=
"true"
:indexLabel=
"'序号'"
title=
""
:border=
"true"
@
size-change=
"handleSizeChange"
@
current-page-change=
"handleCurrentPageChange"
>
<template
#
operations=
"
{ row, index }">
<el-button
link
type=
"primary"
size=
"small"
@
click=
"previewRecord(row)"
>
查看
</el-button
>
<el-button
link
type=
"primary"
size=
"small"
@
click=
"editRecord(row)"
>
编辑
</el-button
>
<el-button
link
type=
"danger"
size=
"small"
@
click=
"deleteRecord(row)"
>
删除
</el-button
>
</
template
>
</common-table>
</div>
</div>
</div>
</template>
<
script
setup
>
import
{
ref
,
onMounted
,
getCurrentInstance
}
from
"vue"
;
import
{
useRouter
}
from
"vue-router"
;
import
{
ElMessage
,
ElMessageBox
}
from
"element-plus"
;
import
CommonTable
from
"@/components/common/commonTable.vue"
;
import
SearchForm
from
"@/components/common/SearchForm.vue"
;
const
handleSearch
=
(
formData
)
=>
{
currentPage
.
value
=
1
;
getProjectData
(
formData
);
};
const
router
=
useRouter
();
const
{
proxy
}
=
getCurrentInstance
();
let
tableData
=
ref
([]);
let
tableColumns
=
ref
([
{
prop
:
"djbh"
,
label
:
"登记编号"
,
showOverflowTooltip
:
true
,
},
{
prop
:
"xmmc"
,
label
:
"项目名称"
,
showOverflowTooltip
:
true
,
},
{
prop
:
"htbh"
,
label
:
"合同编号"
,
showOverflowTooltip
:
true
,
},
{
prop
:
"kklx"
,
label
:
"抵扣类型"
,
width
:
100
,
},
{
prop
:
"htje"
,
label
:
"合同金额"
,
width
:
120
,
},
{
prop
:
"djrq"
,
label
:
"登记日期"
,
width
:
120
,
},
{
prop
:
"jbr"
,
label
:
"经办人"
,
width
:
100
,
},
{
prop
:
"operations"
,
label
:
"操作"
,
width
:
170
,
slot
:
"operations"
,
fixed
:
"right"
,
align
:
"center"
,
},
]);
let
loading
=
ref
(
false
);
let
total
=
ref
(
0
);
let
currentPage
=
ref
(
1
);
let
pageSize
=
ref
(
10
);
// 获取列表数据
const
getProjectData
=
(
params
=
{})
=>
{
loading
.
value
=
true
;
// TODO: 替换为实际的后端接口
// proxy.$post({
// url: "/api/workForHousing/getList",
// data: {
// page: currentPage.value,
// pagesize: pageSize.value,
// ...params,
// },
// callback: (data) => {
// tableData.value = data.rows;
// total.value = data.count;
// loading.value = false;
// },
// });
// 临时模拟数据
setTimeout
(()
=>
{
tableData
.
value
=
[
{
id
:
1
,
djbh
:
"DJ202403001"
,
xmmc
:
"某某工程项目"
,
htbh
:
"HT202403001"
,
kklx
:
"工程款"
,
htje
:
"1000000"
,
djrq
:
"2024-03-15"
,
jbr
:
"张三"
,
},
{
id
:
2
,
djbh
:
"DJ202403002"
,
xmmc
:
"另一个工程项目"
,
htbh
:
"HT202403002"
,
kklx
:
"材料款"
,
htje
:
"500000"
,
djrq
:
"2024-03-16"
,
jbr
:
"李四"
,
},
];
total
.
value
=
2
;
loading
.
value
=
false
;
},
500
);
};
// 分页
const
handleSizeChange
=
(
size
)
=>
{
pageSize
.
value
=
size
;
currentPage
.
value
=
1
;
getProjectData
();
};
const
handleCurrentPageChange
=
(
page
)
=>
{
currentPage
.
value
=
page
;
getProjectData
();
};
// 新增
const
workForHousingAdd
=
()
=>
{
router
.
push
(
"/workForHousingAdd"
);
};
// 编辑
const
editRecord
=
(
item
)
=>
{
router
.
push
({
name
:
"workForHousingAdd"
,
query
:
{
id
:
item
.
id
,
},
});
};
// 查看
const
previewRecord
=
(
item
)
=>
{
router
.
push
({
name
:
"workForHousingAdd"
,
query
:
{
isPreview
:
true
,
id
:
item
.
id
,
},
});
};
// 删除
const
deleteRecord
=
(
item
)
=>
{
ElMessageBox
.
confirm
(
"确认删除该项?"
,
"提示"
,
{
confirmButtonText
:
"确认"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
})
.
then
(()
=>
{
// TODO: 替换为实际的后端接口
// proxy.$post({
// url: "/api/workForHousing/delete",
// data: {
// id: item.id,
// },
// callback: (data) => {
// ElMessage.success("删除成功");
// getProjectData();
// },
// });
// 临时模拟删除
ElMessage
.
success
(
"删除成功"
);
getProjectData
();
})
.
catch
(()
=>
{});
};
onMounted
(()
=>
{
getProjectData
();
});
</
script
>
<
style
scoped
lang=
"less"
></
style
>
src/views/elseManage/workForHousingAdd.vue
0 → 100644
View file @
1691ab65
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment