Commit e20e6d47 authored by 徐俊's avatar 徐俊

xujun

parent 4c33d841
......@@ -142,7 +142,7 @@
<a-row type="flex" class="row_center">
<a-col :span="5">
<div class="special-middle">
<div>单价50万元及以上购置设备合计</div>
<div>单价5万元及以上购置设备合计</div>
</div>
</a-col>
<a-col :span="2">
......@@ -199,7 +199,7 @@
<a-row type="flex" class="row_center">
<a-col :span="5">
<div class="special-middle">
<div>单价50万元以下购置设备合计</div>
<div>单价5万元以下购置设备合计</div>
</div>
</a-col>
<a-col :span="2">
......@@ -371,7 +371,7 @@ export default {
this.fiftyUpNumber = 0
this.fiftyDownNumber = 0
this.deviceList.forEach(e => {
if (e.unitPrice >= 50) {
if (e.unitPrice >= 5) {
this.fiftyUpAmount += e.unitPrice * e.quantity
this.fiftyUpNumber += e.quantity
} else {
......
......@@ -74,7 +74,7 @@
</div>
</a-col>
</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">
<div class="special-middle">{{ index + 1 }}</div>
</a-col>
......@@ -268,7 +268,7 @@ const Equipment = {
};
export default {
name: "EquipmentInfo",
name: "deviceInfo",
data() {
return {
fiftyUpNumber: 0,
......@@ -280,7 +280,7 @@ export default {
};
},
props: {
equipments: {
deviceList: {
type: Array,
default: () => {
return [];
......@@ -295,7 +295,7 @@ export default {
this.fiftyDownAmount = 0.0;
this.fiftyUpNumber = 0;
this.fiftyDownNumber = 0;
this.equipments.forEach((e) => {
this.deviceList.forEach((e) => {
if (e.unitPrice >= 5) {
this.fiftyUpAmount += e.unitPrice * e.quantity;
this.fiftyUpNumber += e.quantity;
......@@ -308,20 +308,20 @@ export default {
this.totalAmount = this.fiftyUpAmount + this.fiftyDownAmount;
},
outUnitPriceChange(index) {
this.equipments[index].totalBudget =
this.equipments[index].unitPrice * this.equipments[index].quantity;
this.deviceList[index].totalBudget =
this.deviceList[index].unitPrice * this.deviceList[index].quantity;
this.calNumberAmount();
},
outNumberChange(index) {
this.equipments[index].totalBudget =
this.equipments[index].unitPrice * this.equipments[index].quantity;
this.deviceList[index].totalBudget =
this.deviceList[index].unitPrice * this.deviceList[index].quantity;
this.calNumberAmount();
},
},
watch: {
equipments: {
handler(equipments) {
if (!!equipments) this.calNumberAmount();
deviceList: {
handler(deviceList) {
if (!!deviceList) this.calNumberAmount();
},
},
},
......
......@@ -679,7 +679,6 @@ import cooperativeUnitsInfo from '@/views/report/project/components/cooperativeU
import participateUnitsInfo from '@/views/report/project/components/participateUnitsInfo'
import budgetInfo from '@/views/report/project/components/budgetInfo'
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 projectKpiInfo from '@/views/report/project/components/projectKpiInfo.vue'
import projectResearchInfo from '@/views/report/project/components/projectResearchInfo'
......@@ -695,7 +694,7 @@ import { toTextarea } from '@/views/utils/common'
export default {
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",
data () {
......
......@@ -498,6 +498,10 @@
<budget-info :budget.sync="value.budget" />
<!-- 分年度用款计划 -->
<fund-plan-info :fundPlan.sync="value.fundPlan" />
<!-- 设备费-购置设备预算明细表 -->
<device-info :deviceList.sync="formData.deviceList" />
<!-- 设备费-试制设备预算明细表 -->
<manufacture-info :manufactureList.sync:="formData.manufactureList" />
</div>
<div v-if="tabsData[5].isShow">
<a-row>
......@@ -515,6 +519,7 @@
</a-col>
</a-row>
</div>
<div v-if="tabsData[6].isShow">
<!-- 附件 -->
<file-info :fileList.sync="value.fileList" />
......@@ -549,6 +554,8 @@ import projectMemberInfo from '@/views/report/project/components/projectMemberIn
import projectKpiInfo from '@/views/report/project/components/projectKpiInfo.vue'
import budgetInfo from '@/views/report/project/components/budgetInfo'
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/keyProject/projStageGoalsInfo";
import projectSubInfo from '@/views/report/project/components/projectSubInfo'
import fileInfo from "@/views/report/project/components/fileInfo";
......@@ -559,7 +566,7 @@ import { toTextarea } from '@/views/utils/common'
export default {
components: {
cooperativeUnitsInfo, projectMemberInfo, projectKpiInfo, budgetInfo, fundPlanInfo, fileInfo, documentView, AuditList, projStageGoalsInfo,projectSubInfo
cooperativeUnitsInfo, projectMemberInfo, projectKpiInfo, budgetInfo, fundPlanInfo, deviceInfo, manufactureInfo, fileInfo, documentView, AuditList, projStageGoalsInfo,projectSubInfo
},
name: "ProjectInfo",
data () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment