Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
Y
yn-science-front
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
徐俊
yn-science-front
Commits
455aec65
Commit
455aec65
authored
Nov 28, 2024
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
444
parent
d921e71b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
126 additions
and
144 deletions
+126
-144
auditEdit.vue
src/views/audit/components/auditEdit.vue
+6
-26
Index.vue
src/views/audit/project/Index.vue
+15
-32
audit.vue
src/views/audit/project/audit.vue
+93
-63
final.vue
src/views/audit/project/final.vue
+11
-23
projectView.vue
src/views/report/project/components/projectView.vue
+1
-0
No files found.
src/views/audit/components/auditEdit.vue
View file @
455aec65
...
...
@@ -8,19 +8,19 @@
</a-col>
</a-row>
<a-row>
<a-col
:span=
"24"
style=
"
padding-top:6px;border-bottom:0px
;"
>
<a-col
:span=
"24"
style=
"
margin-top: 6px;text-align: center
;"
>
<a-form-model-item
prop=
"auditContent"
>
<a-textarea
v-model=
"auditObj.auditContent"
:auto-size=
"
{ minRows: 5, maxRows: 8 }" :max-length="500" style="width: 60%" />
<a-textarea
v-model=
"auditObj.auditContent"
:auto-size=
"
{ minRows: 5, maxRows: 8 }" :max-length="500" style="width: 60%
;height: 115px;
" />
</a-form-model-item>
</a-col>
</a-row>
<a-row>
<a-col
:span=
"24"
>
<a-col
:span=
"24"
style=
"text-align: center;"
>
<a-form-model-item
prop=
"auditResult"
>
<a-radio-group
v-model=
"auditObj.auditResult"
@
change=
"onChange"
>
<a-radio
:value=
"10"
:disabled=
"disabledBtns.btnPassed"
>
通过
</a-radio>
<a-radio
:value=
"30"
:disabled=
"disabledBtns.btnReturn"
>
返回修改
</a-radio>
<a-radio
:value=
"20"
:disabled=
"disabledBtns.btnUnpassed"
>
不通过
</a-radio>
<a-radio
:value=
"10"
>
通过
</a-radio>
<a-radio
:value=
"30"
>
返回修改
</a-radio>
<a-radio
:value=
"20"
>
不通过
</a-radio>
</a-radio-group>
</a-form-model-item>
</a-col>
...
...
@@ -40,26 +40,6 @@ export default {
return
null
;
},
},
disabledBtns
:
{
btnPassed
:
{
type
:
Boolean
,
default
()
{
return
false
}
},
btnReturn
:
{
type
:
Boolean
,
default
()
{
return
false
}
},
btnUnpassed
:
{
type
:
Boolean
,
default
()
{
return
false
}
}
}
},
created
()
{
...
...
src/views/audit/project/Index.vue
View file @
455aec65
...
...
@@ -47,22 +47,12 @@
</
template
>
</a-table>
<a-pagination
v-if=
"pagination.total > 0"
:total=
"pagination.total"
show-size-changer
show-quick-jumper
v-model=
"pagination.pageIndex"
:page-size=
"pagination.pageSize"
:page-size-options=
"pagination.pageSizeOptions"
@
showSizeChange=
"showSizeChange"
@
change=
"change"
:showTotal=
"() => `共 ${pagination.total} 条`"
/>
<s-modal
title=
"项目审核"
v-model=
"visibleAudit"
v-if=
"visibleAudit"
ref=
"s_modal"
>
<div
slot=
"content"
class=
"s_modal_content"
>
<audit
v-model=
"id"
:objId=
"objectId"
:disabledBtns=
"disabledBtns"
@
closeWindow=
"closeAuditWindow"
@
onDisabled=
"onDisabled"
@
changeScroll=
"() => {this.$refs.s_modal.changeScroll()}"
ref=
"projAudit"
></audit>
</div>
<
template
slot=
"footer"
>
<!--
<a-button
@
click=
"() => visibleAudit = false"
>
取消
</a-button>
-->
<a-button
type=
"primary"
@
click=
"() =>
{this.$refs.projAudit.submit()}" :disabled="disabledSubmit" style="margin-left:16px;">提交
</a-button>
</
template
>
</s-modal>
<s-modal
title=
"项目详情"
v-model=
"visibleView"
v-if=
"visibleView"
>
<div
slot=
"content"
>
<project-view
v-model=
"objectId"
@
close=
"() => this.visibleView = false"
></project-view>
</div>
</s-modal>
<a-modal
v-model=
"visibleAudit"
v-if=
"visibleAudit"
title=
"审核"
:footer=
"null"
width=
"94%"
:dialog-style=
"{ top: '8%' }"
destroyOnClose
:maskClosable=
"false"
>
<audit
v-model=
"id"
:objId=
"objectId"
@
close=
"closeWindow"
@
changeScroll=
"() => {this.$refs.s_modal.changeScroll()}"
></audit>
</a-modal>
<a-modal
v-model=
"visibleView"
v-if=
"visibleView"
title=
"项目详情"
width=
"94%"
:footer=
"null"
:dialog-style=
"{ top: '8%' }"
destroyOnClose
:maskClosable=
"false"
>
<project-view
v-model=
"objectId"
@
close=
"closeWindow"
></project-view>
</a-modal>
<a-modal
v-model=
"taskFileInfoView"
title=
"项目任务书"
:width=
"'60%'"
:maskClosable=
"false"
:footer=
"null"
destroyOnClose
class=
"sc_modal"
>
<task-file-info
v-model=
"selectProjId"
@
close=
"closeTaskFileInfoWindow"
/>
</a-modal>
...
...
@@ -138,12 +128,6 @@ export default {
description
:
''
,
id
:
null
,
objectId
:
null
,
disabledBtns
:
{
btnPassed
:
true
,
btnReturn
:
true
,
btnUnpassed
:
true
},
disabledSubmit
:
false
,
taskFileInfoView
:
false
,
selectProjId
:
null
,
};
...
...
@@ -172,15 +156,14 @@ export default {
if
(
data
)
{
this
.
isButten
=
data
.
disabled
this
.
description
=
data
.
description
this
.
disabledBtns
.
btnPassed
=
data
.
btnPassed
this
.
disabledBtns
.
btnReturn
=
data
.
btnReturn
this
.
disabledBtns
.
btnUnpassed
=
data
.
btnUnpassed
this
.
searchForm
.
reportYear
=
data
.
year
console
.
log
(
'1'
)
this
.
getListByPage
()
}
}).
catch
(()
=>
{
})
},
getListByPage
()
{
console
.
log
(
'2'
)
this
.
getCount
()
this
.
loading
=
true
;
let
pars
=
isEmptyParams
(
this
.
searchForm
);
...
...
@@ -210,23 +193,23 @@ export default {
change
()
{
this
.
getListByPage
();
},
knowledgeChange
(
value
)
{
knowledgeChange
(
value
)
{
this
.
searchForm
.
knowledgeParentId
=
value
},
showSizeChange
(
current
,
pageSize
)
{
this
.
pagination
.
pageSize
=
pageSize
this
.
getListByPage
()
},
close
Audit
Window
(
value
)
{
closeWindow
(
value
)
{
if
(
value
===
'audit'
)
{
this
.
getListByPage
()
this
.
visibleAudit
=
false
}
else
if
(
value
===
'auditcel'
)
{
}
else
if
(
value
===
'error'
)
{
this
.
id
=
null
this
.
objectId
=
null
this
.
visibleAudit
=
false
}
else
this
.
visibleView
=
false
}
},
recordClick
(
record
,
type
)
{
if
(
type
===
'view'
)
{
...
...
@@ -248,7 +231,7 @@ export default {
onDisabled
(
value
)
{
this
.
disabledSubmit
=
value
},
closeTaskFileInfoWindow
()
{
closeTaskFileInfoWindow
()
{
this
.
taskFileInfoView
=
true
},
exportData
()
{
...
...
src/views/audit/project/audit.vue
View file @
455aec65
<
template
>
<div>
<div
class=
"app-content"
style=
"height: 76vh;overflow: auto;"
>
<a-spin
:spinning=
"loading"
style=
"width: 100%;height: 100%;"
>
<project-view
v-model=
"objId"
/>
<a-form-model
ref=
"form"
:model=
"auditObj"
:rules=
"rules"
class=
"from-table"
>
<audit-edit
:auditObj
.
sync=
"auditObj"
:disabledBtns
.
sync=
"disabledBtns"
/>
<div
class=
"page-content"
ref=
"main"
>
<div
class=
"x_modal_content"
>
<project-info
v-model=
"projectInfo"
v-if=
"projType"
/>
<project-info-Key
v-model=
"projectInfo"
v-else
/>
<a-form-model
ref=
"form"
:model=
"auditObj"
:rules=
"rules"
class=
"from-table font-line-space"
>
<audit-edit
:auditObj
.
sync=
"auditObj"
/>
</a-form-model>
</div>
</div>
<div
class=
"page-footer"
>
<a-button
type=
"primary"
@
click=
"submit"
style=
"margin-left:16px;"
>
提交
</a-button>
</div>
</a-spin>
</div>
</
template
>
<
script
>
import
{
isEmptyParams
}
from
"@/views/utils/common"
;
import
{
budgetList
}
from
'@/views/report/project/config'
import
ProjectView
from
'@/views/report/project/components/projectView'
import
{
getType
}
from
'@/views/utils/auth'
import
projectInfo
from
'@/views/report/project/components/projectInfo'
import
projectInfoKey
from
"@/views/report/project/components/keyProject/projectInfo"
import
AuditList
from
'@/views/audit/components/auditInfo'
import
AuditEdit
from
'@/views/audit/components/auditEdit'
export
default
{
name
:
"Audit"
,
components
:
{
ProjectView
,
AuditList
,
AuditEdit
projectInfo
,
projectInfoKey
,
AuditList
,
AuditEdit
},
data
()
{
return
{
projectInfo
:
{
projName
:
''
,
startDate
:
''
,
endDate
:
''
,
applyMoney
:
''
,
projClassName
:
''
,
appPersonName
:
''
,
sex
:
''
,
titleName
:
''
,
degreeName
:
''
,
specName
:
''
,
jobUnit
:
''
,
mobile
:
''
,
address
:
''
,
appUnitName
:
''
,
linkName
:
''
,
linkEmail
:
''
,
linkTel
:
''
,
knowledgeName
:
''
,
projContent
:
''
,
projTarget
:
''
,
projKeywords
:
''
,
// 合作单位
together
:
[{
unitName
:
''
,
unitAddress
:
''
,
projectWork
:
''
},
{
unitName
:
''
,
unitAddress
:
''
,
projectWork
:
''
}],
// 项目组成员
id
:
null
,
organizationCode
:
null
,
address
:
null
,
registeredAddress
:
null
,
postCode
:
null
,
legalPerson
:
null
,
workforce
:
null
,
specializedPersonnel
:
null
,
researchPersonnel
:
null
,
depositBank
:
null
,
bankAccount
:
null
,
depositBankAddress
:
null
,
interbankNumber
:
null
,
researchTotal
:
null
,
isResearchActive
:
null
,
researchCount
:
null
,
researchPersonCount
:
null
,
projName
:
null
,
leadUnit
:
null
,
recommendUnit
:
null
,
startDate
:
null
,
endDate
:
null
,
technologyInnovationBase
:
null
,
knowledgeId
:
null
,
totalFunding
:
null
,
govFunding
:
null
,
linkName
:
null
,
linkMobile
:
null
,
linkEmail
:
null
,
projAbstract
:
null
,
projKeywords
:
null
,
researchContent
:
null
,
memResume
:
null
,
researchProgress
:
null
,
researchContent
:
null
,
technologyTarget
:
null
,
economyTarget
:
null
,
achievementTarget
:
null
,
otherTarget
:
null
,
cooperativeUnits
:
[],
members
:
[],
// 经费
budget
:
budgetList
()
,
proj
Doc
:
null
,
fileList
:
[{
fileName
:
''
,
url
:
''
,
remarks
:
''
,
id
:
''
}
],
auditList
:
[{
result
:
''
,
unit
:
''
,
time
:
''
}
],
budget
:
[],
equipments
:
[]
,
proj
ectSubList
:
[]
,
managementRuleList
:
[
],
fileList
:
[
],
},
auditObj
:
{
id
:
this
.
value
,
auditObjectId
:
this
.
objId
,
auditResult
:
null
,
auditType
:
1
,
auditContent
:
''
},
rules
:
{
...
...
@@ -60,6 +86,7 @@ export default {
auditResult
:
{
required
:
true
,
message
:
'请选择审核结果'
,
trigger
:
'change'
},
},
loading
:
false
,
projType
:
getType
()
==
"1"
};
},
props
:
{
...
...
@@ -75,22 +102,12 @@ export default {
return
null
}
},
disabledBtns
:
{
type
:
Object
,
default
()
{
return
{
btnPassed
:
false
,
btnReturn
:
true
,
btnUnpassed
:
false
,
}
}
}
},
created
()
{
this
.
load
()
this
.
load
Project
()
},
methods
:
{
load
()
{
load
Project
()
{
let
pars
=
{
id
:
this
.
objId
}
if
(
this
.
objId
!=
null
)
{
this
.
loading
=
true
...
...
@@ -98,18 +115,14 @@ export default {
if
(
data
)
{
this
.
projectInfo
=
data
this
.
loading
=
false
}
this
.
$emit
(
'onDisabled'
,
false
)
}).
catch
(()
=>
{
})
}
else
this
.
$emit
(
'close'
,
'error'
)
}).
catch
(()
=>
{
this
.
$emit
(
'close'
,
'error'
)
})
}
},
cancel
()
{
this
.
$emit
(
'closeWindow'
,
'auditcel'
)
},
submit
()
{
this
.
$refs
.
form
.
validate
(
valid
=>
{
if
(
valid
)
{
this
.
$emit
(
'onDisabled'
,
true
)
this
.
loading
=
true
let
pars
=
isEmptyParams
(
this
.
auditObj
)
let
par
=
{
...
pars
}
...
...
@@ -119,25 +132,42 @@ export default {
this
.
$message
.
info
(
'项目上报已经到达上限!'
)
}
else
{
this
.
$message
.
success
(
'审核成功!'
)
this
.
$emit
(
'close
Window
'
,
'audit'
)
this
.
$emit
(
'close'
,
'audit'
)
}
}
this
.
loading
=
false
this
.
$emit
(
'onDisabled'
,
false
)
}).
catch
(()
=>
{
this
.
loading
=
false
this
.
$emit
(
'onDisabled'
,
false
)
})
}).
catch
(()
=>
{
this
.
loading
=
false
})
}
else
{
this
.
$emit
(
'changeScroll'
)
this
.
changeScroll
(
)
this
.
$message
.
error
(
'请选择审核结果或填写审核意见!'
)
return
false
}
})
},
changeScroll
()
{
this
.
$refs
.
main
.
scrollTop
=
document
.
getElementsByClassName
(
'x_modal_content'
)[
0
].
offsetHeight
}
},
}
</
script
>
<
style
lang=
"less"
scoped
>
<
style
scoped
lang=
"less"
>
::v-deep .ant-spin-container {
width: 100%;
height: 100%;
}
::v-deep .page-content {
width: 100%;
height: calc(100% - 40px);
overflow: auto;
}
::v-deep .page-footer {
width: 100%;
height: 40px;
line-height: 40px;
background: rgb(248, 248, 248);
text-align: center;
}
textarea {
height: 115px;
}
</
style
>
src/views/audit/project/final.vue
View file @
455aec65
...
...
@@ -56,24 +56,12 @@
<a-modal
v-model=
"assignInfoVisible"
title=
"分配详情"
width=
"85%"
:dialog-style=
"{ top: '8%' }"
:footer=
"null"
destroyOnClose
>
<project-assign-detail
v-model=
"objectId"
@
close=
"() => this.assignInfoVisible = false"
/>
</a-modal>
<s-modal
title=
"项目审核"
v-model=
"visibleAudit"
v-if=
"visibleAudit"
>
<div
slot=
"content"
>
<audit
v-model=
"id"
:objId=
"objectId"
@
closeWindow=
"closeAuditWindow"
ref=
"projAudit"
></audit>
</div>
<
template
slot=
"footer"
>
<a-button
@
click=
"() => visibleAudit = false"
>
取消
</a-button>
<a-button
type=
"primary"
@
click=
"() => this.$refs.projAudit.submit()"
style=
"margin-left:16px;"
>
提交
</a-button>
</
template
>
</s-modal>
<s-modal
title=
"项目详情"
v-model=
"visibleView"
v-if=
"visibleView"
>
<div
slot=
"content"
>
<project-view
v-model=
"objectId"
@
close=
"() => this.visibleView = false"
></project-view>
</div>
</s-modal>
<a-modal
v-model=
"visibleAudit"
v-if=
"visibleAudit"
title=
"审核"
:footer=
"null"
width=
"94%"
:dialog-style=
"{ top: '8%' }"
destroyOnClose
:maskClosable=
"false"
>
<audit
v-model=
"id"
:objId=
"objectId"
@
close=
"closeWindow"
@
changeScroll=
"() => {this.$refs.s_modal.changeScroll()}"
></audit>
</a-modal>
<a-modal
v-model=
"visibleView"
v-if=
"visibleView"
title=
"项目详情"
width=
"94%"
:footer=
"null"
:dialog-style=
"{ top: '8%' }"
destroyOnClose
:maskClosable=
"false"
>
<project-view
v-model=
"objectId"
@
close=
"closeWindow"
></project-view>
</a-modal>
<a-modal
v-model=
"taskFileInfoView"
title=
"查看项目任务书"
:width=
"'60%'"
:maskClosable=
"false"
:footer=
"null"
destroyOnClose
class=
"sc_modal"
>
<task-file-info
v-model=
"ProjId"
@
close=
"() => this.taskFileInfoView = false"
/>
</a-modal>
...
...
@@ -239,16 +227,16 @@ export default {
this
.
pagination
.
pageSize
=
pageSize
this
.
getListByPage
()
},
close
Audit
Window
(
value
)
{
closeWindow
(
value
)
{
if
(
value
===
'audit'
)
{
this
.
getListByPage
()
this
.
visibleAudit
=
false
}
else
if
(
value
===
'auditcel'
)
{
}
else
if
(
value
===
'error'
)
{
this
.
id
=
null
this
.
objectId
=
null
this
.
visibleAudit
=
false
}
else
this
.
visibleView
=
false
}
},
recordClick
(
record
,
type
)
{
if
(
type
===
'view'
)
{
...
...
src/views/report/project/components/projectView.vue
View file @
455aec65
...
...
@@ -10,6 +10,7 @@
</div>
</
template
>
<
script
>
import
{
budgetList
}
from
'@/views/report/project/config'
import
{
getType
}
from
'@/views/utils/auth'
import
projectInfo
from
'@/views/report/project/components/projectInfo'
...
...
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