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
9b8ff161
Commit
9b8ff161
authored
Dec 16, 2024
by
徐俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xujun
parent
823a5867
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
equipmentsEdit.vue
src/views/report/project/components/equipmentsEdit.vue
+11
-8
projectEdit.vue
src/views/report/project/components/projectEdit.vue
+3
-0
No files found.
src/views/report/project/components/equipmentsEdit.vue
View file @
9b8ff161
...
@@ -74,7 +74,8 @@
...
@@ -74,7 +74,8 @@
</div>
</div>
</a-col>
</a-col>
</a-row>
</a-row>
<a-row
v-for=
"(item, index) in equipments"
:key=
"'equipments' + index"
type=
"flex"
class=
"row_center"
>
<div>
<a-row
v-for=
"(item, index) in equipments"
:key=
"'equipments'+index"
type=
"flex"
class=
"row_center"
>
<a-col
:span=
"1"
>
<a-col
:span=
"1"
>
<div
class=
"special-middle"
><a-button
icon=
"close"
type=
"primary"
shape=
"circle"
size=
"small"
@
click=
"deleteEquipment(item)"
></a-button>
{{
index
+
1
}}
</div>
<div
class=
"special-middle"
><a-button
icon=
"close"
type=
"primary"
shape=
"circle"
size=
"small"
@
click=
"deleteEquipment(item)"
></a-button>
{{
index
+
1
}}
</div>
</a-col>
</a-col>
...
@@ -139,10 +140,10 @@
...
@@ -139,10 +140,10 @@
</a-form-model-item>
</a-form-model-item>
</a-col>
</a-col>
</a-row>
</a-row>
</div>
<a-row
type=
"flex"
class=
"row_center"
>
<a-row
type=
"flex"
class=
"row_center"
>
<a-col
:span=
"5"
>
<a-col
:span=
"5"
>
<div
class=
"special-middle"
><div>
单价5万元及以上购置设备合计
</div></div>
<div
class=
"special-middle"
><div>
单价5
0
万元及以上购置设备合计
</div></div>
</a-col>
</a-col>
<a-col
:span=
"2"
>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
><div>
/
</div></div>
<div
class=
"special-middle"
><div>
/
</div></div>
...
@@ -177,7 +178,7 @@
...
@@ -177,7 +178,7 @@
</a-row>
</a-row>
<a-row
type=
"flex"
class=
"row_center"
>
<a-row
type=
"flex"
class=
"row_center"
>
<a-col
:span=
"5"
>
<a-col
:span=
"5"
>
<div
class=
"special-middle"
><div>
单价5万元以下购置设备合计
</div></div>
<div
class=
"special-middle"
><div>
单价5
0
万元以下购置设备合计
</div></div>
</a-col>
</a-col>
<a-col
:span=
"2"
>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
><div>
/
</div></div>
<div
class=
"special-middle"
><div>
/
</div></div>
...
@@ -258,7 +259,7 @@
...
@@ -258,7 +259,7 @@
<a-row
type=
"flex"
class=
"item_inner"
>
<a-row
type=
"flex"
class=
"item_inner"
>
<a-col
:span=
"24"
>
<a-col
:span=
"24"
>
<span
style=
"color: red;"
>
注:1.本表只填写省级财政科技资金购置的设备;涉及自筹经费购买的设备,请在资金预算编制说明中说明。
<br
/>
<span
style=
"color: red;"
>
注:1.本表只填写省级财政科技资金购置的设备;涉及自筹经费购买的设备,请在资金预算编制说明中说明。
<br
/>
2.单价5万元以下的设备不填写明细。
</span>
2.单价5
0
万元以下的设备不填写明细。
</span>
</a-col>
</a-col>
</a-row>
</a-row>
</div>
</div>
...
@@ -303,6 +304,7 @@ export default {
...
@@ -303,6 +304,7 @@ export default {
},
},
},
},
created
()
{
created
()
{
console
.
log
(
this
.
equipments
)
},
},
methods
:
{
methods
:
{
calNumberAmount
()
{
calNumberAmount
()
{
...
@@ -311,7 +313,7 @@ export default {
...
@@ -311,7 +313,7 @@ export default {
this
.
fiftyUpNumber
=
0
this
.
fiftyUpNumber
=
0
this
.
fiftyDownNumber
=
0
this
.
fiftyDownNumber
=
0
this
.
equipments
.
forEach
(
e
=>
{
this
.
equipments
.
forEach
(
e
=>
{
if
(
e
.
unitPrice
>=
5
)
{
if
(
e
.
unitPrice
>=
5
0
)
{
this
.
fiftyUpAmount
+=
e
.
unitPrice
*
e
.
quantity
this
.
fiftyUpAmount
+=
e
.
unitPrice
*
e
.
quantity
this
.
fiftyUpNumber
+=
e
.
quantity
this
.
fiftyUpNumber
+=
e
.
quantity
}
else
{
}
else
{
...
@@ -331,8 +333,9 @@ export default {
...
@@ -331,8 +333,9 @@ export default {
this
.
calNumberAmount
()
this
.
calNumberAmount
()
},
},
addArrey
()
{
addArrey
()
{
this
.
equipments
.
push
(
Object
.
assign
({
...
Equipment
}))
this
.
equipments
.
push
({
...
Equipment
})
this
.
calNumberAmount
()
console
.
log
(
this
.
equipments
)
//this.calNumberAmount()
},
},
deleteEquipment
(
item
)
{
deleteEquipment
(
item
)
{
let
index
=
this
.
equipments
.
indexOf
(
item
)
let
index
=
this
.
equipments
.
indexOf
(
item
)
...
...
src/views/report/project/components/projectEdit.vue
View file @
9b8ff161
...
@@ -790,6 +790,9 @@ export default {
...
@@ -790,6 +790,9 @@ export default {
if
(
!!!
this
.
formData
.
members
||
this
.
formData
.
members
.
length
==
0
)
if
(
!!!
this
.
formData
.
members
||
this
.
formData
.
members
.
length
==
0
)
this
.
formData
.
members
=
[]
this
.
formData
.
members
=
[]
if
(
!!!
this
.
formData
.
equipments
||
this
.
formData
.
equipments
.
length
==
0
)
this
.
formData
.
equipments
=
[]
if
(
!!!
this
.
formData
.
fileList
||
!
this
.
formData
.
fileList
.
length
||
this
.
formData
.
fileList
.
length
==
0
)
{
if
(
!!!
this
.
formData
.
fileList
||
!
this
.
formData
.
fileList
.
length
||
this
.
formData
.
fileList
.
length
==
0
)
{
this
.
formData
.
fileList
=
[]
this
.
formData
.
fileList
=
[]
}
}
...
...
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