Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web
Project
Project
Details
Activity
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
INET-TWO
web
Commits
032e5d73
Commit
032e5d73
authored
Oct 24, 2024
by
ztf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目要素-经费页面
parent
713a05ad
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
269 additions
and
9 deletions
+269
-9
index.vue
...-plan/src/privateComponents/components/newFunds/index.vue
+3
-9
index.vue
...rivateComponents/components/projectContractList/index.vue
+144
-0
index.vue
.../components/projectFundsExpenditureContractList/index.vue
+122
-0
No files found.
applications/dee-plan/src/privateComponents/components/newFunds/index.vue
View file @
032e5d73
<!--
* @Author: zhangtianfeng 3232807530@qq.com
* @Date: 2024-09-03 16:02:46
* @LastEditors: zhangtianfeng 3232807530@qq.com
* @LastEditTime: 2024-09-09 14:05:46
-->
<
template
>
<
template
>
<el-tabs
type=
"card"
>
<el-tabs
type=
"card"
>
<el-tab-pane
label=
"收入合同"
>
<el-tab-pane
v-if=
"$route.query.type==='项目'"
label=
"收入合同"
>
<div
class=
"content"
>
<div
class=
"content"
>
<dee-as-page
<dee-as-page
:key=
"incomeContractPageKey"
:key=
"incomeContractPageKey"
...
@@ -39,8 +33,8 @@ export default {
...
@@ -39,8 +33,8 @@ export default {
data
()
{
data
()
{
return
{
return
{
spendingContractPageKey
:
'
87b4f333-5f0e-4055-b215-f66b5d45f919
'
,
spendingContractPageKey
:
'
94c7a401-56da-4fee-ba2c-dfef91045393
'
,
incomeContractPageKey
:
'
80bff7f2-0038-4ca6-9544-1496ce0b6459
'
incomeContractPageKey
:
'
725ad38d-c85a-44a8-ae71-50cc257fe15a
'
}
}
},
},
watch
:
{
watch
:
{
...
...
applications/dee-plan/src/privateComponents/components/projectContractList/index.vue
0 → 100644
View file @
032e5d73
<
template
>
<div
class=
"projectContractList"
>
<dee-as-com
:lay-config=
"
{
typeName: 'ExtInComeContract',
layKey: 'projectContractList'
}"
dis-business
:result-data="tableData"
@row-click="rowClickFunction"
/>
</div>
</
template
>
<
script
>
import
{
post
}
from
'@/utils/http'
export
default
{
name
:
'ProjectContractList'
,
componentName
:
'经费-收入合同列表'
,
props
:
{
basicData
:
{
type
:
Object
,
default
:
()
=>
{}
}
},
data
()
{
return
{
// emitMethods: [
// {
// methods: 'getData',
// methodsName: '获取列表数据'
// }
// ],
evenList
:
[
{
even
:
'row-click'
,
name
:
'行点击事件'
}
],
tableData
:
[],
type
:
null
,
id
:
null
}
},
watch
:
{
// '$route.query.type': {
// immediate: true,
// deep: true,
// handler(val) {
// if (val) {
// console.log('val', val)
// if (val === '项目') {
// console.log('项目')
// this.id = this.$route.query.id
// } else {
// console.log('子项')
// this.getParentId()
// }
// this.getTableList()
// }
// }
// }
},
mounted
()
{
console
.
log
(
'经费'
,
this
.
basicData
)
this
.
getTableList
()
},
methods
:
{
getTableList
()
{
const
params
=
{
'pageFrom'
:
1
,
'pageSize'
:
9999
,
'searchItems'
:
{
'children'
:
[],
'items'
:
[
{
'fieldName'
:
'sourceId'
,
'operator'
:
'EQ'
,
'value'
:
this
.
$route
.
query
.
id
}
],
'operator'
:
'AND'
},
'openProps'
:
[
{
'name'
:
'target'
}
],
'sortItem'
:
[
{
'fieldName'
:
'modifyTime'
,
'sortOrder'
:
'desc'
}
]
}
post
(
'/ExtProjectContractLink/search'
,
params
).
then
(
res
=>
{
if
(
res
.
items
.
content
)
{
this
.
tableData
=
[
res
.
items
.
content
[
0
].
target
]
}
})
},
rowClickFunction
(
data
)
{
this
.
$emit
(
'row-click'
,
data
.
row
)
}
// getParentId() {
// const params = {
// 'pageFrom': 1,
// 'pageSize': 9999,
// 'searchItems': {
// 'children': [],
// 'items': [
// {
// 'fieldName': 'id',
// 'operator': 'EQ',
// 'value': this.$route.query.id
// }
// ],
// 'operator': 'AND'
// },
// 'openProps': [
// {
// 'name': 'target'
// }
// ],
// 'sortItem': [
// {
// 'fieldName': 'modifyTime',
// 'sortOrder': 'desc'
// }
// ]
// }
// post('/DxContextProject/search', params).then(res => {
// if (res.items) {
// this.id = res.items.content[0].parentId
// }
// })
// }
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
</
style
>
applications/dee-plan/src/privateComponents/components/projectFundsExpenditureContractList/index.vue
0 → 100644
View file @
032e5d73
<
template
>
<div
class=
"projectFundsExpenditureContractList"
>
<dee-as-com
:lay-config=
"
{
typeName: 'ExtExpenditureContract',
layKey: 'projectFunds-expenditureContractList'
}"
dis-business
:result-data="tableData"
@row-click="rowClickFunction"
/>
</div>
</
template
>
<
script
>
import
{
post
}
from
'@/utils/http'
export
default
{
name
:
'ProjectFundsExpenditureContractList'
,
componentName
:
'经费-支出合同列表'
,
props
:
{
basicData
:
{
type
:
Object
,
default
:
()
=>
{}
}
},
data
()
{
return
{
evenList
:
[
{
even
:
'row-click'
,
name
:
'行点击事件'
}
],
tableData
:
[],
itemNumber
:
null
}
},
watch
:
{
},
async
mounted
()
{
console
.
log
(
'经费'
,
this
.
basicData
)
await
this
.
getProjectNumber
()
this
.
getTableList
()
},
methods
:
{
async
getProjectNumber
()
{
const
params
=
{
'pageFrom'
:
1
,
'pageSize'
:
9999
,
'searchItems'
:
{
'children'
:
[],
'items'
:
[
{
'fieldName'
:
'id'
,
'operator'
:
'EQ'
,
'value'
:
this
.
$route
.
query
.
id
}
],
'operator'
:
'AND'
},
'openProps'
:
[
{
'name'
:
'target'
}
],
'sortItem'
:
[
{
'fieldName'
:
'modifyTime'
,
'sortOrder'
:
'desc'
}
]
}
await
post
(
'/DxContextProject/search'
,
params
).
then
(
res
=>
{
if
(
res
.
items
.
content
)
{
console
.
log
(
'获取项目编号'
)
this
.
itemNumber
=
res
.
items
.
content
[
0
].
number
}
})
},
async
getTableList
()
{
const
params
=
{
'pageFrom'
:
1
,
'pageSize'
:
9999
,
'searchItems'
:
{
'children'
:
[],
'items'
:
[
{
'fieldName'
:
'itemNumber'
,
'operator'
:
'EQ'
,
'value'
:
this
.
itemNumber
}
],
'operator'
:
'AND'
},
'openProps'
:
[
{
'name'
:
'target'
}
],
'sortItem'
:
[
{
'fieldName'
:
'modifyTime'
,
'sortOrder'
:
'desc'
}
]
}
await
post
(
'/ExtExpenditureContract/search'
,
params
).
then
(
res
=>
{
if
(
res
.
items
.
content
)
{
this
.
tableData
=
res
.
items
.
content
}
})
},
rowClickFunction
(
data
)
{
this
.
$emit
(
'row-click'
,
data
.
row
)
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
</
style
>
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