Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
psa-web
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
高滢
psa-web
Commits
e1d65834
Commit
e1d65834
authored
Mar 10, 2025
by
wangjiancheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:项目管理列表
parent
95da1fbf
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
195 additions
and
52 deletions
+195
-52
add.vue
src/views/project/add.vue
+13
-9
index.vue
src/views/project/index.vue
+182
-43
No files found.
src/views/project/add.vue
View file @
e1d65834
...
...
@@ -91,6 +91,7 @@
size=
"large"
multiple
filterable
v-hasPermi=
"['project-manager']"
style=
"width: 100%;"
>
<el-option
...
...
@@ -114,19 +115,19 @@
<el-form-item
label=
"项目附件"
>
<el-upload
list-type=
"text"
v-model:file-list=
"form.
file
List"
v-model:file-list=
"form.
projectAnnex
List"
action=
"https://jsonplaceholder.typicode.com/posts/"
:on-preview=
"handlePreview"
:on-remove=
"handleRemove"
:before-remove=
"beforeRemove"
:file-list=
"form.
file
List"
:file-list=
"form.
projectAnnex
List"
:on-exceed=
"handleExceed"
:auto-upload=
"false"
:on-success=
"handleSuccess"
>
<el-button
size=
"large"
type=
"text"
>
<img
src=
"../../assets/icons/common/upl.png"
height=
"16"
width=
"16"
alt=
"上传"
/>
点击上传
点击上传
附件
</el-button>
</el-upload>
</el-form-item>
...
...
@@ -138,6 +139,7 @@
placeholder=
"请选择项目回款笔数"
@
change=
"updateRepaymentInputs"
size=
"large"
clearable
>
<el-option
v-for=
"num in 10"
...
...
@@ -147,13 +149,13 @@
></el-option>
</el-select>
</el-form-item>
<el-form
:model=
"form"
:rules=
"rules"
label-width=
"1
40
px"
>
<el-form
:model=
"form"
:rules=
"rules"
label-width=
"1
58
px"
>
<div
v-for=
"(item, index) in form.repaymentDetails"
:key=
"index"
>
<!-- 回款比例 -->
<el-form-item
:label=
"'第 ' + (index + 1) + ' 笔'"
>
<el-form-item
:label=
"'第 ' + (index + 1) + ' 笔
回款百分比
'"
>
<el-input
v-model=
"item.repaymentPercentage"
placeholder=
"请输入回款
比例
"
placeholder=
"请输入回款
百分比
"
@
blur=
"checkPercentage(item.repaymentPercentage, index)"
>
<template
#
suffix
>
...
...
@@ -162,7 +164,7 @@
</el-input>
</el-form-item>
<!-- 回款条件 -->
<el-form-item
label=
"回款前置条件
"
>
<el-form-item
:label=
"'第 ' + (index + 1) + ' 笔回款前置条件'
"
>
<el-input
type=
"textarea"
:autosize=
"{ minRows: 3, maxRows: 20 }"
...
...
@@ -208,7 +210,7 @@ const form = reactive({
projectCost
:
''
,
projectDescribe
:
''
,
projectStatus
:
''
,
file
List
:
[],
projectAnnex
List
:
[],
repaymentCount
:
null
,
repaymentDetails
:
[],
draft
:
''
,
...
...
@@ -244,6 +246,8 @@ const rules = ref({
],
})
// 获取用户列表
const
getUserList
=
()
=>
{
listUser
().
then
(
response
=>
{
headOptions
.
value
=
response
.
rows
.
map
(
item
=>
{
...
...
@@ -318,7 +322,7 @@ const resetForm = () => {
form
.
projectCost
=
''
form
.
projectDescribe
=
''
form
.
projectStatus
=
''
form
.
file
List
=
[]
form
.
projectAnnex
List
=
[]
form
.
repaymentCount
=
''
form
.
repaymentDetails
=
[]
form
.
draft
=
''
...
...
src/views/project/index.vue
View file @
e1d65834
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