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
8125c3f3
Commit
8125c3f3
authored
Dec 17, 2024
by
wangxl
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.yiboshi.com/XuJun/yn-science-front
parents
b8ab053d
65e737df
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
732 additions
and
64 deletions
+732
-64
deviceEdit.vue
src/views/report/project/components/deviceEdit.vue
+14
-6
deviceInfo.vue
src/views/report/project/components/deviceInfo.vue
+18
-15
projectInfo.vue
...iews/report/project/components/keyProject/projectInfo.vue
+1
-2
manufactureEdit.vue
src/views/report/project/components/manufactureEdit.vue
+298
-6
manufactureInfo.vue
src/views/report/project/components/manufactureInfo.vue
+385
-28
projectEdit.vue
src/views/report/project/components/projectEdit.vue
+8
-6
projectInfo.vue
src/views/report/project/components/projectInfo.vue
+8
-1
No files found.
src/views/report/project/components/deviceEdit.vue
View file @
8125c3f3
...
@@ -142,7 +142,7 @@
...
@@ -142,7 +142,7 @@
<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
class=
"special-middle"
>
<div>
单价5
0
万元及以上购置设备合计
</div>
<div>
单价5万元及以上购置设备合计
</div>
</div>
</div>
</a-col>
</a-col>
<a-col
:span=
"2"
>
<a-col
:span=
"2"
>
...
@@ -199,7 +199,7 @@
...
@@ -199,7 +199,7 @@
<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
class=
"special-middle"
>
<div>
单价5
0
万元以下购置设备合计
</div>
<div>
单价5万元以下购置设备合计
</div>
</div>
</div>
</a-col>
</a-col>
<a-col
:span=
"2"
>
<a-col
:span=
"2"
>
...
@@ -362,7 +362,7 @@ export default {
...
@@ -362,7 +362,7 @@ export default {
},
},
},
},
created
()
{
created
()
{
console
.
log
(
this
.
deviceList
)
},
},
methods
:
{
methods
:
{
calNumberAmount
()
{
calNumberAmount
()
{
...
@@ -371,7 +371,7 @@ export default {
...
@@ -371,7 +371,7 @@ export default {
this
.
fiftyUpNumber
=
0
this
.
fiftyUpNumber
=
0
this
.
fiftyDownNumber
=
0
this
.
fiftyDownNumber
=
0
this
.
deviceList
.
forEach
(
e
=>
{
this
.
deviceList
.
forEach
(
e
=>
{
if
(
e
.
unitPrice
>=
5
0
)
{
if
(
e
.
unitPrice
>=
5
)
{
this
.
fiftyUpAmount
+=
e
.
unitPrice
*
e
.
quantity
this
.
fiftyUpAmount
+=
e
.
unitPrice
*
e
.
quantity
this
.
fiftyUpNumber
+=
e
.
quantity
this
.
fiftyUpNumber
+=
e
.
quantity
}
else
{
}
else
{
...
@@ -392,8 +392,7 @@ export default {
...
@@ -392,8 +392,7 @@ export default {
},
},
addArray
()
{
addArray
()
{
this
.
deviceList
.
push
({
...
Device
})
this
.
deviceList
.
push
({
...
Device
})
console
.
log
(
this
.
deviceList
)
this
.
calNumberAmount
()
//this.calNumberAmount()
},
},
deleteEquipment
(
item
)
{
deleteEquipment
(
item
)
{
let
index
=
this
.
deviceList
.
indexOf
(
item
)
let
index
=
this
.
deviceList
.
indexOf
(
item
)
...
@@ -403,5 +402,14 @@ export default {
...
@@ -403,5 +402,14 @@ export default {
this
.
calNumberAmount
()
this
.
calNumberAmount
()
},
},
},
},
watch
:
{
deviceList
:
{
handler
(
deviceList
)
{
if
(
!!
deviceList
)
{
this
.
calNumberAmount
()
}
},
},
},
}
}
</
script
>
</
script
>
src/views/report/project/components/
equipments
Info.vue
→
src/views/report/project/components/
device
Info.vue
View file @
8125c3f3
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
</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"
>
<a-row
v-for=
"(item, index) in
deviceList"
:key=
"'deviceList
' + index"
type=
"flex"
class=
"row_center"
>
<a-col
:span=
"1"
>
<a-col
:span=
"1"
>
<div
class=
"special-middle"
>
{{
index
+
1
}}
</div>
<div
class=
"special-middle"
>
{{
index
+
1
}}
</div>
</a-col>
</a-col>
...
@@ -268,7 +268,7 @@ const Equipment = {
...
@@ -268,7 +268,7 @@ const Equipment = {
};
};
export
default
{
export
default
{
name
:
"
Equipment
Info"
,
name
:
"
device
Info"
,
data
()
{
data
()
{
return
{
return
{
fiftyUpNumber
:
0
,
fiftyUpNumber
:
0
,
...
@@ -280,7 +280,7 @@ export default {
...
@@ -280,7 +280,7 @@ export default {
};
};
},
},
props
:
{
props
:
{
equipments
:
{
deviceList
:
{
type
:
Array
,
type
:
Array
,
default
:
()
=>
{
default
:
()
=>
{
return
[];
return
[];
...
@@ -288,6 +288,8 @@ export default {
...
@@ -288,6 +288,8 @@ export default {
},
},
},
},
created
()
{
created
()
{
if
(
this
.
deviceList
)
this
.
calNumberAmount
()
},
},
methods
:
{
methods
:
{
calNumberAmount
()
{
calNumberAmount
()
{
...
@@ -295,7 +297,7 @@ export default {
...
@@ -295,7 +297,7 @@ export default {
this
.
fiftyDownAmount
=
0.0
;
this
.
fiftyDownAmount
=
0.0
;
this
.
fiftyUpNumber
=
0
;
this
.
fiftyUpNumber
=
0
;
this
.
fiftyDownNumber
=
0
;
this
.
fiftyDownNumber
=
0
;
this
.
equipments
.
forEach
((
e
)
=>
{
this
.
deviceList
.
forEach
((
e
)
=>
{
if
(
e
.
unitPrice
>=
5
)
{
if
(
e
.
unitPrice
>=
5
)
{
this
.
fiftyUpAmount
+=
e
.
unitPrice
*
e
.
quantity
;
this
.
fiftyUpAmount
+=
e
.
unitPrice
*
e
.
quantity
;
this
.
fiftyUpNumber
+=
e
.
quantity
;
this
.
fiftyUpNumber
+=
e
.
quantity
;
...
@@ -308,22 +310,22 @@ export default {
...
@@ -308,22 +310,22 @@ export default {
this
.
totalAmount
=
this
.
fiftyUpAmount
+
this
.
fiftyDownAmount
;
this
.
totalAmount
=
this
.
fiftyUpAmount
+
this
.
fiftyDownAmount
;
},
},
outUnitPriceChange
(
index
)
{
outUnitPriceChange
(
index
)
{
this
.
equipments
[
index
].
totalBudget
=
this
.
deviceList
[
index
].
totalBudget
=
this
.
equipments
[
index
].
unitPrice
*
this
.
equipments
[
index
].
quantity
;
this
.
deviceList
[
index
].
unitPrice
*
this
.
deviceList
[
index
].
quantity
;
this
.
calNumberAmount
();
this
.
calNumberAmount
();
},
},
outNumberChange
(
index
)
{
outNumberChange
(
index
)
{
this
.
equipments
[
index
].
totalBudget
=
this
.
deviceList
[
index
].
totalBudget
=
this
.
equipments
[
index
].
unitPrice
*
this
.
equipments
[
index
].
quantity
;
this
.
deviceList
[
index
].
unitPrice
*
this
.
deviceList
[
index
].
quantity
;
this
.
calNumberAmount
();
this
.
calNumberAmount
();
},
},
},
},
watch
:
{
//
watch: {
equipments
:
{
// deviceList
: {
handler
(
equipments
)
{
// handler(deviceList
) {
if
(
!!
equipments
)
this
.
calNumberAmount
();
// if (!!deviceList
) this.calNumberAmount();
},
//
},
},
//
},
},
//
},
};
};
</
script
>
</
script
>
\ No newline at end of file
src/views/report/project/components/keyProject/projectInfo.vue
View file @
8125c3f3
...
@@ -679,7 +679,6 @@ import cooperativeUnitsInfo from '@/views/report/project/components/cooperativeU
...
@@ -679,7 +679,6 @@ import cooperativeUnitsInfo from '@/views/report/project/components/cooperativeU
import
participateUnitsInfo
from
'@/views/report/project/components/participateUnitsInfo'
import
participateUnitsInfo
from
'@/views/report/project/components/participateUnitsInfo'
import
budgetInfo
from
'@/views/report/project/components/budgetInfo'
import
budgetInfo
from
'@/views/report/project/components/budgetInfo'
import
fundPlanInfo
from
'@/views/report/project/components/fundPlanInfo'
import
fundPlanInfo
from
'@/views/report/project/components/fundPlanInfo'
import
equipmentsInfo
from
'@/views/report/project/components/equipmentsInfo.vue'
import
unitPaymentInfo
from
'@/views/report/project/components/unitPaymentInfo.vue'
import
unitPaymentInfo
from
'@/views/report/project/components/unitPaymentInfo.vue'
import
projectKpiInfo
from
'@/views/report/project/components/projectKpiInfo.vue'
import
projectKpiInfo
from
'@/views/report/project/components/projectKpiInfo.vue'
import
projectResearchInfo
from
'@/views/report/project/components/projectResearchInfo'
import
projectResearchInfo
from
'@/views/report/project/components/projectResearchInfo'
...
@@ -695,7 +694,7 @@ import { toTextarea } from '@/views/utils/common'
...
@@ -695,7 +694,7 @@ import { toTextarea } from '@/views/utils/common'
export
default
{
export
default
{
components
:
{
components
:
{
projectMemberInfo
,
cooperativeUnitsInfo
,
participateUnitsInfo
,
budgetInfo
,
fundPlanInfo
,
equipmentsInfo
,
unitPaymentInfo
,
projectKpiInfo
,
projectResearchInfo
,
projectSubInfo
,
managementRuleInfo
,
fileInfo
,
AuditList
,
documentView
projectMemberInfo
,
cooperativeUnitsInfo
,
participateUnitsInfo
,
budgetInfo
,
fundPlanInfo
,
unitPaymentInfo
,
projectKpiInfo
,
projectResearchInfo
,
projectSubInfo
,
managementRuleInfo
,
fileInfo
,
AuditList
,
documentView
},
},
name
:
"ProjectInfo"
,
name
:
"ProjectInfo"
,
data
()
{
data
()
{
...
...
src/views/report/project/components/manufactureEdit.vue
View file @
8125c3f3
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
</a-col>
</a-col>
</a-row>
</a-row>
<a-row
type=
"flex"
class=
"row_center"
>
<a-row
type=
"flex"
class=
"row_center"
>
<a-col
:span=
"
2
"
class=
"bg-gray"
>
<a-col
:span=
"
1
"
class=
"bg-gray"
>
<div
class=
"special-middle"
>
<div
class=
"special-middle"
>
<div>
序号
</div>
<div>
序号
</div>
</div>
</div>
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<div>
设备名称
</div>
<div>
设备名称
</div>
</div>
</div>
</a-col>
</a-col>
<a-col
:span=
"
2
"
class=
"bg-gray"
>
<a-col
:span=
"
3
"
class=
"bg-gray"
>
<div
class=
"special-middle"
>
<div
class=
"special-middle"
>
<div>
功能和技术指标
</div>
<div>
功能和技术指标
</div>
</div>
</div>
...
@@ -48,12 +48,12 @@
...
@@ -48,12 +48,12 @@
<div>
自筹资金
</div>
<div>
自筹资金
</div>
</div>
</div>
</a-col>
</a-col>
<a-col
:span=
"
2
"
class=
"bg-gray"
>
<a-col
:span=
"
4
"
class=
"bg-gray"
>
<div
class=
"special-middle"
>
<div
class=
"special-middle"
>
<div>
试制单位
</div>
<div>
试制单位
</div>
</div>
</div>
</a-col>
</a-col>
<a-col
:span=
"
2
"
class=
"bg-gray"
>
<a-col
:span=
"
4
"
class=
"bg-gray"
>
<div
class=
"special-middle"
>
<div
class=
"special-middle"
>
<div>
安置单位
</div>
<div>
安置单位
</div>
</div>
</div>
...
@@ -63,16 +63,205 @@
...
@@ -63,16 +63,205 @@
<a-col
:span=
"1"
>
<a-col
:span=
"1"
>
<div
class=
"special-middle"
><a-button
icon=
"close"
type=
"primary"
shape=
"circle"
size=
"small"
@
click=
"deleteManufacture(item)"
></a-button>
{{
index
+
1
}}
</div>
<div
class=
"special-middle"
><a-button
icon=
"close"
type=
"primary"
shape=
"circle"
size=
"small"
@
click=
"deleteManufacture(item)"
></a-button>
{{
index
+
1
}}
</div>
</a-col>
</a-col>
<a-col
:span=
"2
0
"
>
<a-col
:span=
"2"
>
<a-form-model-item
:prop=
"'manufactureList.' + index + '.name'"
:rules=
"
{required: true, message: '*', trigger: 'blur',}">
<a-form-model-item
:prop=
"'manufactureList.' + index + '.name'"
:rules=
"
{required: true, message: '*', trigger: 'blur',}">
<a-input
v-model=
"item.name"
:maxLength=
"100"
style=
"width: 90%;"
/>
<a-input
v-model=
"item.name"
:maxLength=
"100"
style=
"width: 90%;"
/>
</a-form-model-item>
</a-form-model-item>
</a-col>
</a-col>
<a-col
:span=
"3"
>
<a-form-model-item
:prop=
"'manufactureList.' + index + '.functionTarget'"
:rules=
"
{required: true, message: '*', trigger: 'blur',}">
<a-input
v-model=
"item.functionTarget"
:maxLength=
"200"
style=
"width: 90%;"
/>
</a-form-model-item>
</a-col>
<a-col
:span=
"2"
>
<a-form-model-item
:prop=
"'manufactureList.' + index + '.unitPrice'"
:rules=
"
{required: true, message: '*', trigger: 'blur',}">
<a-input-number
v-model=
"item.unitPrice"
@
change=
"outUnitPriceChange(index)"
:min=
"0"
:step=
"0.01"
style=
"width: 90%"
/>
</a-form-model-item>
</a-col>
<a-col
:span=
"2"
>
<a-form-model-item
:prop=
"'manufactureList.' + index + '.quantity'"
:rules=
"
{required: true, message: '*', trigger: 'blur',}">
<a-input-number
v-model=
"item.quantity"
@
change=
"outNumberChange(index)"
:min=
"1"
:step=
"1"
style=
"width: 90%"
/>
</a-form-model-item>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
{{
parseFloat
(
item
.
totalBudget
).
toFixed
(
2
)
}}
</div>
</div>
</a-col>
<a-col
:span=
"2"
>
<a-form-model-item
:prop=
"'manufactureList.' + index + '.fundAmount'"
:rules=
"
{required: true, message: '*', trigger: 'blur',}">
<a-input-number
v-model=
"item.fundAmount"
@
change=
"outFundAmountChange(index)"
:min=
"0"
:step=
"0.01"
style=
"width: 90%"
/>
</a-form-model-item>
</a-col>
<a-col
:span=
"2"
>
<a-form-model-item
:prop=
"'manufactureList.' + index + '.selfAmount'"
:rules=
"
{required: true, message: '*', trigger: 'blur',}">
<a-input-number
v-model=
"item.selfAmount"
@
change=
"outSelfAmountChange(index)"
:min=
"0"
:step=
"0.01"
style=
"width: 90%"
/>
</a-form-model-item>
</a-col>
<a-col
:span=
"4"
>
<a-form-model-item
:prop=
"'manufactureList.' + index + '.manufactureUnit'"
:rules=
"
{required: false, message: '*', trigger: 'blur',}">
<a-input
v-model=
"item.manufactureUnit"
:maxLength=
"100"
style=
"width: 90%;"
/>
</a-form-model-item>
</a-col>
<a-col
:span=
"4"
>
<a-form-model-item
:prop=
"'manufactureList.' + index + '.storageUnit'"
:rules=
"
{required: false, message: '*', trigger: 'blur',}">
<a-input
v-model=
"item.storageUnit"
:maxLength=
"100"
style=
"width: 90%;"
/>
</a-form-model-item>
</a-col>
</a-row>
<a-row
type=
"flex"
class=
"row_center"
>
<a-col
:span=
"6"
>
<div
class=
"special-middle"
>
<div>
单价5万元及以上试制设备合计
</div>
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
/
</div>
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
{{
fiftyUpNumber
}}
</div>
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
{{
parseFloat
(
fiftyUpAmount
).
toFixed
(
2
)
}}
</div>
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
{{
parseFloat
(
fiftyUpFundAmount
).
toFixed
(
2
)
}}
</div>
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
{{
parseFloat
(
fiftyUpSelfAmount
).
toFixed
(
2
)
}}
</div>
</div>
</a-col>
<a-col
:span=
"4"
>
<div
class=
"special-middle"
>
<div>
/
</div>
</div>
</a-col>
<a-col
:span=
"4"
>
<div
class=
"special-middle"
>
<div>
/
</div>
</div>
</a-col>
</a-row>
<a-row
type=
"flex"
class=
"row_center"
>
<a-col
:span=
"6"
>
<div
class=
"special-middle"
>
<div>
单价5万元以下试制设备合计
</div>
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
/
</div>
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
{{
fiftyDownNumber
}}
</div>
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
{{
parseFloat
(
fiftyDownAmount
).
toFixed
(
2
)
}}
</div>
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
{{
parseFloat
(
fiftyDownFundAmount
).
toFixed
(
2
)
}}
</div>
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
{{
parseFloat
(
fiftyDownSelfAmount
).
toFixed
(
2
)
}}
</div>
</div>
</a-col>
<a-col
:span=
"4"
>
<div
class=
"special-middle"
>
<div>
/
</div>
</div>
</a-col>
<a-col
:span=
"4"
>
<div
class=
"special-middle"
>
<div>
/
</div>
</div>
</a-col>
</a-row>
<a-row
type=
"flex"
class=
"row_center"
>
<a-col
:span=
"6"
>
<div
class=
"special-middle"
>
<div>
累计
</div>
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
/
</div>
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
{{
totalNumber
}}
</div>
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
{{
parseFloat
(
totalAmount
).
toFixed
(
2
)
}}
</div>
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
{{
parseFloat
(
totalFundAmount
).
toFixed
(
2
)
}}
</div>
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
{{
parseFloat
(
totalSelfAmount
).
toFixed
(
2
)
}}
</div>
</div>
</a-col>
<a-col
:span=
"4"
>
<div
class=
"special-middle"
>
<div>
/
</div>
</div>
</a-col>
<a-col
:span=
"4"
>
<div
class=
"special-middle"
>
<div>
/
</div>
</div>
</a-col>
</a-row>
<a-row
type=
"flex"
>
<a-col
:span=
"24"
style=
"text-align: center;"
>
<div
class=
"special-middle"
>
<a-button
type=
"dashed"
style=
"width: 50%"
@
click=
"addArray"
>
<a-icon
type=
"plus"
/>
添加
</a-button>
</div>
</a-col>
</a-row>
</a-row>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
const
Manufacture
=
{
id
:
""
,
objectId
:
""
,
name
:
""
,
functionTarget
:
""
,
unitPrice
:
0.00
,
quantity
:
1
,
totalBudget
:
0.00
,
fundAmount
:
0.00
,
selfAmount
:
0.00
,
manufactureUnit
:
""
,
storageUnit
:
""
,
}
export
default
{
export
default
{
name
:
"manufactureEdit"
,
name
:
"manufactureEdit"
,
props
:
{
props
:
{
...
@@ -84,18 +273,120 @@ export default {
...
@@ -84,18 +273,120 @@ export default {
},
},
},
},
data
()
{
data
()
{
return
{};
return
{
fiftyUpNumber
:
0
,
fiftyUpAmount
:
0.00
,
fiftyUpFundAmount
:
0.00
,
fiftyUpSelfAmount
:
0.00
,
fiftyDownNumber
:
0
,
fiftyDownAmount
:
0.00
,
fiftyDownFundAmount
:
0.00
,
fiftyDownSelfAmount
:
0.00
,
totalNumber
:
0
,
totalAmount
:
0.00
,
totalFundAmount
:
0.00
,
totalSelfAmount
:
0.00
,
};
},
},
created
()
{
created
()
{
},
},
methods
:
{
methods
:
{
addArray
()
{
this
.
manufactureList
.
push
({
...
Manufacture
})
},
deleteManufacture
(
item
)
{
deleteManufacture
(
item
)
{
let
index
=
this
.
manufactureList
.
indexOf
(
item
)
let
index
=
this
.
manufactureList
.
indexOf
(
item
)
if
(
index
!==
-
1
)
{
if
(
index
!==
-
1
)
{
this
.
manufactureList
.
splice
(
index
,
1
)
this
.
manufactureList
.
splice
(
index
,
1
)
}
}
this
.
calTotalNumber
()
this
.
calTotalAmount
()
this
.
calTotalFundAmount
()
this
.
calTotalSelfAmount
()
},
outUnitPriceChange
(
index
)
{
this
.
manufactureList
[
index
].
totalBudget
=
this
.
manufactureList
[
index
].
unitPrice
*
this
.
manufactureList
[
index
].
quantity
this
.
calTotalNumber
()
this
.
calTotalAmount
()
},
outNumberChange
(
index
)
{
this
.
manufactureList
[
index
].
totalBudget
=
this
.
manufactureList
[
index
].
unitPrice
*
this
.
manufactureList
[
index
].
quantity
this
.
calTotalNumber
()
this
.
calTotalAmount
()
},
calTotalNumber
()
{
this
.
totalNumber
=
0
this
.
fiftyUpNumber
=
0
this
.
fiftyDownNumber
=
0
this
.
manufactureList
.
forEach
(
e
=>
{
if
(
e
.
unitPrice
>=
5
)
this
.
fiftyUpNumber
+=
e
.
quantity
else
this
.
fiftyDownNumber
+=
e
.
quantity
this
.
totalNumber
+=
e
.
quantity
})
},
calTotalAmount
()
{
this
.
totalAmount
=
0.00
this
.
fiftyUpAmount
=
0.00
this
.
fiftyDownAmount
=
0.00
this
.
manufactureList
.
forEach
(
e
=>
{
if
(
e
.
unitPrice
>=
5
)
this
.
fiftyUpAmount
+=
e
.
totalBudget
else
this
.
fiftyDownAmount
+=
e
.
totalBudget
this
.
totalAmount
+=
e
.
totalBudget
})
},
outFundAmountChange
(
index
)
{
this
.
calTotalFundAmount
()
},
outSelfAmountChange
(
index
)
{
this
.
calTotalSelfAmount
()
},
calTotalFundAmount
()
{
this
.
fiftyUpFundAmount
=
0.00
this
.
fiftyDownFundAmount
=
0.00
this
.
totalFundAmount
=
0.00
this
.
manufactureList
.
forEach
(
e
=>
{
if
(
e
.
unitPrice
>=
5
)
this
.
fiftyUpFundAmount
+=
e
.
fundAmount
else
this
.
fiftyDownFundAmount
+=
e
.
fundAmount
this
.
totalFundAmount
+=
e
.
fundAmount
})
},
calTotalSelfAmount
()
{
this
.
fiftyUpSelfAmount
=
0.00
this
.
fiftyDownSelfAmount
=
0.00
this
.
totalSelfAmount
=
0.00
this
.
manufactureList
.
forEach
(
e
=>
{
if
(
e
.
unitPrice
>=
5
)
this
.
fiftyUpSelfAmount
+=
e
.
selfAmount
else
this
.
fiftyDownSelfAmount
+=
e
.
selfAmount
this
.
totalSelfAmount
+=
e
.
selfAmount
})
}
}
},
},
watch
:
{
manufactureList
:
{
handler
(
manufactureList
)
{
if
(
!!
manufactureList
)
{
this
.
calTotalNumber
()
this
.
calTotalAmount
()
this
.
calTotalFundAmount
()
this
.
calTotalSelfAmount
()
}
},
},
},
};
};
</
script
>
</
script
>
\ No newline at end of file
src/views/report/project/components/manufactureInfo.vue
View file @
8125c3f3
<
template
>
<
template
>
<div>
<div>
<a-row>
</div>
<a-col
:span=
"24"
>
</
template
>
<div
class=
"tb-title"
>
<span>
设备费-试制设备预算明细表
<strong>
(金额单位:万元)
</strong></span>
<
script
>
</div>
export
default
{
</a-col>
name
:
"manufactureInfo"
,
</a-row>
props
:
{
<a-row
type=
"flex"
class=
"row_center"
>
manufactureList
:
{
<a-col
:span=
"1"
class=
"bg-gray"
>
type
:
Array
,
<div
class=
"special-middle"
>
default
:
()
=>
{
<div>
序号
</div>
return
[];
</div>
</a-col>
<a-col
:span=
"2"
class=
"bg-gray"
>
<div
class=
"special-middle"
>
<div>
设备名称
</div>
</div>
</a-col>
<a-col
:span=
"3"
class=
"bg-gray"
>
<div
class=
"special-middle"
>
<div>
功能和技术指标
</div>
</div>
</a-col>
<a-col
:span=
"2"
class=
"bg-gray"
>
<div
class=
"special-middle"
>
<div>
单价(万元/台套)
</div>
</div>
</a-col>
<a-col
:span=
"2"
class=
"bg-gray"
>
<div
class=
"special-middle"
>
<div>
数量(台套)
</div>
</div>
</a-col>
<a-col
:span=
"2"
class=
"bg-gray"
>
<div
class=
"special-middle"
>
<div>
金额
</div>
</div>
</a-col>
<a-col
:span=
"2"
class=
"bg-gray"
>
<div
class=
"special-middle"
>
<div>
财政资金
</div>
</div>
</a-col>
<a-col
:span=
"2"
class=
"bg-gray"
>
<div
class=
"special-middle"
>
<div>
自筹资金
</div>
</div>
</a-col>
<a-col
:span=
"4"
class=
"bg-gray"
>
<div
class=
"special-middle"
>
<div>
试制单位
</div>
</div>
</a-col>
<a-col
:span=
"4"
class=
"bg-gray"
>
<div
class=
"special-middle"
>
<div>
安置单位
</div>
</div>
</a-col>
</a-row>
<a-row
v-for=
"(item, index) in manufactureList"
:key=
"'manufactureList'+index"
type=
"flex"
class=
"row_center"
>
<a-col
:span=
"1"
>
<div
class=
"special-middle"
>
{{
index
+
1
}}
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
{{
item
.
name
}}
</div>
</a-col>
<a-col
:span=
"3"
>
<div
class=
"special-middle"
>
{{
item
.
functionTarget
}}
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
{{
parseFloat
(
item
.
unitPrice
).
toFixed
(
2
)
}}
</div>
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
{{
item
.
quantity
}}
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
{{
parseFloat
(
item
.
totalBudget
).
toFixed
(
2
)
}}
</div>
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
{{
parseFloat
(
item
.
fundAmount
).
toFixed
(
2
)
}}
</div>
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
{{
parseFloat
(
item
.
selfAmount
).
toFixed
(
2
)
}}
</div>
</div>
</a-col>
<a-col
:span=
"4"
>
<div
class=
"special-middle"
>
{{
item
.
manufactureUnit
}}
</div>
</a-col>
<a-col
:span=
"4"
>
<div
class=
"special-middle"
>
{{
item
.
storageUnit
}}
</div>
</a-col>
</a-row>
<a-row
type=
"flex"
class=
"row_center"
>
<a-col
:span=
"6"
>
<div
class=
"special-middle"
>
<div>
单价5万元及以上试制设备合计
</div>
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
/
</div>
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
{{
fiftyUpNumber
}}
</div>
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
{{
parseFloat
(
fiftyUpAmount
).
toFixed
(
2
)
}}
</div>
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
{{
parseFloat
(
fiftyUpFundAmount
).
toFixed
(
2
)
}}
</div>
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
{{
parseFloat
(
fiftyUpSelfAmount
).
toFixed
(
2
)
}}
</div>
</div>
</a-col>
<a-col
:span=
"4"
>
<div
class=
"special-middle"
>
<div>
/
</div>
</div>
</a-col>
<a-col
:span=
"4"
>
<div
class=
"special-middle"
>
<div>
/
</div>
</div>
</a-col>
</a-row>
<a-row
type=
"flex"
class=
"row_center"
>
<a-col
:span=
"6"
>
<div
class=
"special-middle"
>
<div>
单价5万元以下试制设备合计
</div>
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
/
</div>
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
{{
fiftyDownNumber
}}
</div>
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
{{
parseFloat
(
fiftyDownAmount
).
toFixed
(
2
)
}}
</div>
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
{{
parseFloat
(
fiftyDownFundAmount
).
toFixed
(
2
)
}}
</div>
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
{{
parseFloat
(
fiftyDownSelfAmount
).
toFixed
(
2
)
}}
</div>
</div>
</a-col>
<a-col
:span=
"4"
>
<div
class=
"special-middle"
>
<div>
/
</div>
</div>
</a-col>
<a-col
:span=
"4"
>
<div
class=
"special-middle"
>
<div>
/
</div>
</div>
</a-col>
</a-row>
<a-row
type=
"flex"
class=
"row_center"
>
<a-col
:span=
"6"
>
<div
class=
"special-middle"
>
<div>
累计
</div>
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
/
</div>
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
{{
totalNumber
}}
</div>
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
{{
parseFloat
(
totalAmount
).
toFixed
(
2
)
}}
</div>
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
{{
parseFloat
(
totalFundAmount
).
toFixed
(
2
)
}}
</div>
</div>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
>
<div>
{{
parseFloat
(
totalSelfAmount
).
toFixed
(
2
)
}}
</div>
</div>
</a-col>
<a-col
:span=
"4"
>
<div
class=
"special-middle"
>
<div>
/
</div>
</div>
</a-col>
<a-col
:span=
"4"
>
<div
class=
"special-middle"
>
<div>
/
</div>
</div>
</a-col>
</a-row>
<!--
<a-row
type=
"flex"
>
<a-col
:span=
"24"
style=
"text-align: center;"
>
<div
class=
"special-middle"
>
<a-button
type=
"dashed"
style=
"width: 50%"
@
click=
"addArray"
>
<a-icon
type=
"plus"
/>
添加
</a-button>
</div>
</a-col>
</a-row>
-->
</div>
</
template
>
<
script
>
const
Manufacture
=
{
id
:
""
,
objectId
:
""
,
name
:
""
,
functionTarget
:
""
,
unitPrice
:
0.00
,
quantity
:
1
,
totalBudget
:
0.00
,
fundAmount
:
0.00
,
selfAmount
:
0.00
,
manufactureUnit
:
""
,
storageUnit
:
""
,
}
export
default
{
name
:
"manufactureInfo"
,
props
:
{
manufactureList
:
{
type
:
Array
,
default
:
()
=>
{
return
[];
},
},
},
data
()
{
return
{
fiftyUpNumber
:
0
,
fiftyUpAmount
:
0.00
,
fiftyUpFundAmount
:
0.00
,
fiftyUpSelfAmount
:
0.00
,
fiftyDownNumber
:
0
,
fiftyDownAmount
:
0.00
,
fiftyDownFundAmount
:
0.00
,
fiftyDownSelfAmount
:
0.00
,
totalNumber
:
0
,
totalAmount
:
0.00
,
totalFundAmount
:
0.00
,
totalSelfAmount
:
0.00
,
};
},
created
()
{
if
(
this
.
manufactureList
)
{
this
.
calTotalNumber
()
this
.
calTotalAmount
()
this
.
calTotalFundAmount
()
this
.
calTotalSelfAmount
()
}
},
methods
:
{
addArray
()
{
this
.
manufactureList
.
push
({
...
Manufacture
})
},
deleteManufacture
(
item
)
{
let
index
=
this
.
manufactureList
.
indexOf
(
item
)
if
(
index
!==
-
1
)
{
this
.
manufactureList
.
splice
(
index
,
1
)
}
this
.
calTotalNumber
()
this
.
calTotalAmount
()
this
.
calTotalFundAmount
()
this
.
calTotalSelfAmount
()
},
outUnitPriceChange
(
index
)
{
this
.
manufactureList
[
index
].
totalBudget
=
this
.
manufactureList
[
index
].
unitPrice
*
this
.
manufactureList
[
index
].
quantity
this
.
calTotalNumber
()
this
.
calTotalAmount
()
},
},
outNumberChange
(
index
)
{
this
.
manufactureList
[
index
].
totalBudget
=
this
.
manufactureList
[
index
].
unitPrice
*
this
.
manufactureList
[
index
].
quantity
this
.
calTotalNumber
()
this
.
calTotalAmount
()
},
calTotalNumber
()
{
this
.
totalNumber
=
0
this
.
fiftyUpNumber
=
0
this
.
fiftyDownNumber
=
0
this
.
manufactureList
.
forEach
(
e
=>
{
if
(
e
.
unitPrice
>=
5
)
this
.
fiftyUpNumber
+=
e
.
quantity
else
this
.
fiftyDownNumber
+=
e
.
quantity
this
.
totalNumber
+=
e
.
quantity
})
},
calTotalAmount
()
{
this
.
totalAmount
=
0.00
this
.
fiftyUpAmount
=
0.00
this
.
fiftyDownAmount
=
0.00
this
.
manufactureList
.
forEach
(
e
=>
{
if
(
e
.
unitPrice
>=
5
)
this
.
fiftyUpAmount
+=
e
.
totalBudget
else
this
.
fiftyDownAmount
+=
e
.
totalBudget
this
.
totalAmount
+=
e
.
totalBudget
})
},
outFundAmountChange
(
index
)
{
this
.
calTotalFundAmount
()
},
outSelfAmountChange
(
index
)
{
this
.
calTotalSelfAmount
()
},
calTotalFundAmount
()
{
this
.
fiftyUpFundAmount
=
0.00
this
.
fiftyDownFundAmount
=
0.00
this
.
totalFundAmount
=
0.00
this
.
manufactureList
.
forEach
(
e
=>
{
if
(
e
.
unitPrice
>=
5
)
this
.
fiftyUpFundAmount
+=
e
.
fundAmount
else
this
.
fiftyDownFundAmount
+=
e
.
fundAmount
this
.
totalFundAmount
+=
e
.
fundAmount
})
},
calTotalSelfAmount
()
{
this
.
fiftyUpSelfAmount
=
0.00
this
.
fiftyDownSelfAmount
=
0.00
this
.
totalSelfAmount
=
0.00
this
.
manufactureList
.
forEach
(
e
=>
{
if
(
e
.
unitPrice
>=
5
)
this
.
fiftyUpSelfAmount
+=
e
.
selfAmount
else
this
.
fiftyDownSelfAmount
+=
e
.
selfAmount
this
.
totalSelfAmount
+=
e
.
selfAmount
})
}
},
},
},
// watch: {
data
()
{
// manufactureList: {
return
{
// handler(manufactureList) {
// if (!!manufactureList) {
};
// this.calTotalNumber()
},
// this.calTotalAmount()
created
()
{
// this.calTotalFundAmount()
// this.calTotalSelfAmount()
},
// }
methods
:
{
// },
// },
},
// },
};
};
</
script
>
</
script
>
\ No newline at end of file
\ No newline at end of file
src/views/report/project/components/projectEdit.vue
View file @
8125c3f3
...
@@ -405,6 +405,7 @@
...
@@ -405,6 +405,7 @@
</div>
</div>
</a-col>
</a-col>
</a-row>
</a-row>
<!-- 经费预算 -->
<!-- 经费预算 -->
<budget-edit
:budget
.
sync=
"formData.budget"
/>
<budget-edit
:budget
.
sync=
"formData.budget"
/>
<a-row
type=
"flex"
>
<a-row
type=
"flex"
>
...
@@ -416,6 +417,13 @@
...
@@ -416,6 +417,13 @@
</a-row>
</a-row>
<!-- 分年度用款计划 -->
<!-- 分年度用款计划 -->
<fund-plan-edit
:fundPlan
.
sync=
"formData.fundPlan"
@
save=
"planSave"
/>
<fund-plan-edit
:fundPlan
.
sync=
"formData.fundPlan"
@
save=
"planSave"
/>
<!--
<equipments-edit
:equipments
.
sync=
"formData.equipments"
/>
-->
<!-- 设备费-购置设备预算明细表 -->
<device-edit
:deviceList
.
sync=
"formData.deviceList"
/>
<!-- 设备费-试制设备预算明细表 -->
<manufacture-edit
:manufactureList
.
sync:=
"formData.manufactureList"
></manufacture-edit>
<a-row
type=
"flex"
>
<a-row
type=
"flex"
>
<a-col
:span=
"24"
style=
"text-align: center;"
>
<a-col
:span=
"24"
style=
"text-align: center;"
>
<div
class=
"special-middle"
>
<div
class=
"special-middle"
>
...
@@ -550,12 +558,6 @@
...
@@ -550,12 +558,6 @@
</a-col>
</a-col>
</a-row>
</a-row>
<!--
<equipments-edit
:equipments
.
sync=
"formData.equipments"
/>
-->
<!-- 设备费-购置设备预算明细表 -->
<device-edit
:deviceList
.
sync=
"formData.deviceList"
/>
<!-- 设备费-试制设备预算明细表 -->
<manufacture-edit
:manufactureList
.
sync:=
"formData.manufactureList"
></manufacture-edit>
<!-- 项目安排及阶段目标 -->
<!-- 项目安排及阶段目标 -->
<proj-stage-goals-edit
:stageGoals
.
sync=
"formData.stageGoals"
/>
<proj-stage-goals-edit
:stageGoals
.
sync=
"formData.stageGoals"
/>
...
...
src/views/report/project/components/projectInfo.vue
View file @
8125c3f3
...
@@ -501,6 +501,10 @@
...
@@ -501,6 +501,10 @@
<budget-info
:budget
.
sync=
"value.budget"
/>
<budget-info
:budget
.
sync=
"value.budget"
/>
<!-- 分年度用款计划 -->
<!-- 分年度用款计划 -->
<fund-plan-info
:fundPlan
.
sync=
"value.fundPlan"
/>
<fund-plan-info
:fundPlan
.
sync=
"value.fundPlan"
/>
<!-- 设备费-购置设备预算明细表 -->
<device-info
:deviceList
.
sync=
"value.deviceList"
/>
<!-- 设备费-试制设备预算明细表 -->
<manufacture-info
:manufactureList
.
sync:=
"value.manufactureList"
/>
</div>
</div>
<div
v-if=
"tabsData[5].isShow"
>
<div
v-if=
"tabsData[5].isShow"
>
<a-row>
<a-row>
...
@@ -518,6 +522,7 @@
...
@@ -518,6 +522,7 @@
</a-col>
</a-col>
</a-row>
</a-row>
</div>
</div>
<div
v-if=
"tabsData[6].isShow"
>
<div
v-if=
"tabsData[6].isShow"
>
<!-- 附件 -->
<!-- 附件 -->
<file-info
:fileList
.
sync=
"value.fileList"
/>
<file-info
:fileList
.
sync=
"value.fileList"
/>
...
@@ -553,6 +558,8 @@ import projectMemberInfo from '@/views/report/project/components/projectMemberIn
...
@@ -553,6 +558,8 @@ import projectMemberInfo from '@/views/report/project/components/projectMemberIn
import
projectKpiInfo
from
'@/views/report/project/components/projectKpiInfo.vue'
import
projectKpiInfo
from
'@/views/report/project/components/projectKpiInfo.vue'
import
budgetInfo
from
'@/views/report/project/components/budgetInfo'
import
budgetInfo
from
'@/views/report/project/components/budgetInfo'
import
fundPlanInfo
from
'@/views/report/project/components/fundPlanInfo'
import
fundPlanInfo
from
'@/views/report/project/components/fundPlanInfo'
import
deviceInfo
from
'@/views/report/project/components/deviceInfo'
import
manufactureInfo
from
'@/views/report/project/components/manufactureInfo'
import
projStageGoalsInfo
from
"@/views/report/project/components/projStageGoalsInfo"
;
import
projStageGoalsInfo
from
"@/views/report/project/components/projStageGoalsInfo"
;
import
projectSubInfo
from
'@/views/report/project/components/projectSubInfo'
import
projectSubInfo
from
'@/views/report/project/components/projectSubInfo'
import
fileInfo
from
"@/views/report/project/components/fileInfo"
;
import
fileInfo
from
"@/views/report/project/components/fileInfo"
;
...
@@ -563,7 +570,7 @@ import { toTextarea } from '@/views/utils/common'
...
@@ -563,7 +570,7 @@ import { toTextarea } from '@/views/utils/common'
export
default
{
export
default
{
components
:
{
components
:
{
cooperativeUnitsInfo
,
projectMemberInfo
,
projectKpiInfo
,
budgetInfo
,
fundPlanInfo
,
fileInfo
,
documentView
,
AuditList
,
projStageGoalsInfo
,
projectSubInfo
,
participateUnitsInfo
cooperativeUnitsInfo
,
projectMemberInfo
,
projectKpiInfo
,
budgetInfo
,
fundPlanInfo
,
deviceInfo
,
manufactureInfo
,
fileInfo
,
documentView
,
AuditList
,
projStageGoalsInfo
,
projectSubInfo
,
participateUnitsInfo
},
},
name
:
"ProjectInfo"
,
name
:
"ProjectInfo"
,
data
()
{
data
()
{
...
...
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