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
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
49 additions
and
30 deletions
+49
-30
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
+0
-0
manufactureInfo.vue
src/views/report/project/components/manufactureInfo.vue
+0
-0
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
This diff is collapsed.
Click to expand it.
src/views/report/project/components/manufactureInfo.vue
View file @
8125c3f3
This diff is collapsed.
Click to expand it.
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