Commit 92747789 authored by wangxl's avatar wangxl
parents 1b762ed0 edf0042a
...@@ -418,11 +418,13 @@ ...@@ -418,11 +418,13 @@
<!-- 分年度用款计划 --> <!-- 分年度用款计划 -->
<fund-plan-edit :fundPlan.sync="formData.fundPlan" @save="planSave" /> <fund-plan-edit :fundPlan.sync="formData.fundPlan" @save="planSave" />
<!-- 项目承担单位研究资金支出预算明细表 -->
<unit-payment-edit :unitPayment.sync="formData.unitPayment"/>
<!-- <equipments-edit :equipments.sync="formData.equipments" /> --> <!-- <equipments-edit :equipments.sync="formData.equipments" /> -->
<!-- 设备费-购置设备预算明细表 --> <!-- 设备费-购置设备预算明细表 -->
<device-edit :deviceList.sync="formData.deviceList" /> <device-edit :deviceList.sync="formData.deviceList" />
<!-- 设备费-试制设备预算明细表 --> <!-- 设备费-试制设备预算明细表 -->
<manufacture-edit :manufactureList.sync:="formData.manufactureList"></manufacture-edit> <manufacture-edit :manufactureList.sync:="formData.manufactureList"/>
<a-row type="flex"> <a-row type="flex">
<a-col :span="24" style="text-align: center;"> <a-col :span="24" style="text-align: center;">
...@@ -583,6 +585,7 @@ import budgetEdit from '@/views/report/project/components/budgetEdit' ...@@ -583,6 +585,7 @@ import budgetEdit from '@/views/report/project/components/budgetEdit'
import fundPlanEdit from '@/views/report/project/components/fundPlanEdit' import fundPlanEdit from '@/views/report/project/components/fundPlanEdit'
import projectKpiEdit from '@/views/report/project/components/projectKpiEdit' import projectKpiEdit from '@/views/report/project/components/projectKpiEdit'
import manufactureEdit from '@/views/report/project/components/manufactureEdit' import manufactureEdit from '@/views/report/project/components/manufactureEdit'
import unitPaymentEdit from '@/views/report/project/components/unitPaymentEdit'
import projectSubEdit from '@/views/report/project/components/projectSubEdit' import projectSubEdit from '@/views/report/project/components/projectSubEdit'
import fileEdit from '@/views/report/project/components/fileEdit' import fileEdit from '@/views/report/project/components/fileEdit'
import { isEmptyParams } from "@/views/utils/common" import { isEmptyParams } from "@/views/utils/common"
...@@ -637,7 +640,7 @@ import cascaderSelect from '@/views/components/common/cascaderSelect' ...@@ -637,7 +640,7 @@ import cascaderSelect from '@/views/components/common/cascaderSelect'
export default { export default {
name: 'projectEdit', name: 'projectEdit',
components: { components: {
projectMemberEdit, cooperativeUnitsEdit, budgetEdit, fundPlanEdit, projectKpiEdit, fileEdit, previewFile, documentView, cascaderSelect, deviceEdit, projStageGoalsEdit, manufactureEdit, projectSubEdit, participateUnitsEdit projectMemberEdit, cooperativeUnitsEdit, budgetEdit, fundPlanEdit, projectKpiEdit, fileEdit, previewFile, documentView, cascaderSelect, deviceEdit, projStageGoalsEdit, manufactureEdit, unitPaymentEdit, projectSubEdit, participateUnitsEdit
}, },
props: { props: {
value: { value: {
...@@ -701,6 +704,7 @@ export default { ...@@ -701,6 +704,7 @@ export default {
fundPlan: [], fundPlan: [],
deviceList: [], deviceList: [],
manufactureList: [], manufactureList: [],
unitPayment: [],
stageGoals: [], stageGoals: [],
projectSubList: [], projectSubList: [],
fileList: [], fileList: [],
...@@ -787,6 +791,9 @@ export default { ...@@ -787,6 +791,9 @@ export default {
if (!!!this.formData.manufactureList || this.formData.manufactureList.length == 0) if (!!!this.formData.manufactureList || this.formData.manufactureList.length == 0)
this.formData.manufactureList = [] this.formData.manufactureList = []
if (!!!this.formData.unitPayment || this.formData.unitPayment.length == 0)
this.formData.unitPayment = []
if (!!!this.formData.stageGoals || this.formData.stageGoals.length == 0) if (!!!this.formData.stageGoals || this.formData.stageGoals.length == 0)
this.formData.stageGoals = [{ ...StageGoals }, { ...StageGoals }, { ...StageGoals }] this.formData.stageGoals = [{ ...StageGoals }, { ...StageGoals }, { ...StageGoals }]
......
...@@ -501,6 +501,8 @@ ...@@ -501,6 +501,8 @@
<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" />
<!-- 项目承担单位研究资金支出预算明细表 -->
<unit-payment-info :unitPayment.sync="value.unitPayment"/>
<!-- 设备费-购置设备预算明细表 --> <!-- 设备费-购置设备预算明细表 -->
<device-info :deviceList.sync="value.deviceList" /> <device-info :deviceList.sync="value.deviceList" />
<!-- 设备费-试制设备预算明细表 --> <!-- 设备费-试制设备预算明细表 -->
...@@ -558,6 +560,7 @@ import projectMemberInfo from '@/views/report/project/components/projectMemberIn ...@@ -558,6 +560,7 @@ 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 unitPaymentInfo from '@/views/report/project/components/unitPaymentInfo'
import deviceInfo from '@/views/report/project/components/deviceInfo' import deviceInfo from '@/views/report/project/components/deviceInfo'
import manufactureInfo from '@/views/report/project/components/manufactureInfo' import manufactureInfo from '@/views/report/project/components/manufactureInfo'
import projStageGoalsInfo from "@/views/report/project/components/projStageGoalsInfo"; import projStageGoalsInfo from "@/views/report/project/components/projStageGoalsInfo";
...@@ -570,7 +573,7 @@ import { toTextarea } from '@/views/utils/common' ...@@ -570,7 +573,7 @@ import { toTextarea } from '@/views/utils/common'
export default { export default {
components: { components: {
cooperativeUnitsInfo, projectMemberInfo, projectKpiInfo, budgetInfo, fundPlanInfo, deviceInfo, manufactureInfo, fileInfo, documentView, AuditList, projStageGoalsInfo, projectSubInfo, participateUnitsInfo cooperativeUnitsInfo, projectMemberInfo, projectKpiInfo, budgetInfo, fundPlanInfo, unitPaymentInfo, deviceInfo, manufactureInfo, fileInfo, documentView, AuditList, projStageGoalsInfo, projectSubInfo, participateUnitsInfo
}, },
name: "ProjectInfo", name: "ProjectInfo",
data () { data () {
......
...@@ -13,17 +13,17 @@ ...@@ -13,17 +13,17 @@
<div>序号</div> <div>序号</div>
</div> </div>
</a-col> </a-col>
<a-col :span="3" 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="2" 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="3" class="bg-gray">
<div class="special-middle"> <div class="special-middle">
<div>统一社会信用代码</div> <div>统一社会信用代码</div>
</div> </div>
...@@ -72,17 +72,17 @@ ...@@ -72,17 +72,17 @@
<a-col :span="2"> <a-col :span="2">
<div class="special-middle"><a-button icon="close" type="primary" shape="circle" size="small" @click="deleteUnitPayment(item)"></a-button>&nbsp;{{ index + 1 }}</div> <div class="special-middle"><a-button icon="close" type="primary" shape="circle" size="small" @click="deleteUnitPayment(item)"></a-button>&nbsp;{{ index + 1 }}</div>
</a-col> </a-col>
<a-col :span="3"> <a-col :span="4">
<a-form-model-item :prop="'unitPayment.' + index + '.unitName'" :rules="{required: true, message: '*', trigger: 'blur',}"> <a-form-model-item :prop="'unitPayment.' + index + '.unitName'" :rules="{required: true, message: '*', trigger: 'blur',}">
<a-input v-model="item.unitName" :maxLength="100" style="width: 90%;" /> <a-input v-model="item.unitName" :maxLength="100" style="width: 90%;" />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="2"> <!-- <a-col :span="2">
<a-form-model-item :prop="'unitPayment.' + index + '.countryName'" :rules="{required: true, message: '*', trigger: 'blur',}"> <a-form-model-item :prop="'unitPayment.' + index + '.countryName'" :rules="{required: true, message: '*', trigger: 'blur',}">
<a-input v-model="item.countryName" :maxLength="100" style="width: 90%;" /> <a-input v-model="item.countryName" :maxLength="100" style="width: 90%;" />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col> -->
<a-col :span="2"> <a-col :span="3">
<a-form-model-item :prop="'unitPayment.' + index + '.socialCode'" :rules="{required: true, message: '*', trigger: 'blur',}"> <a-form-model-item :prop="'unitPayment.' + index + '.socialCode'" :rules="{required: true, message: '*', trigger: 'blur',}">
<a-input v-model="item.socialCode" :maxLength="50" style="width: 90%;" /> <a-input v-model="item.socialCode" :maxLength="50" style="width: 90%;" />
</a-form-model-item> </a-form-model-item>
......
...@@ -14,17 +14,17 @@ ...@@ -14,17 +14,17 @@
<div>序号</div> <div>序号</div>
</div> </div>
</a-col> </a-col>
<a-col :span="3" 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="2" 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="3" class="bg-gray">
<div class="special-middle"> <div class="special-middle">
<div>统一社会信用代码</div> <div>统一社会信用代码</div>
</div> </div>
...@@ -73,13 +73,13 @@ ...@@ -73,13 +73,13 @@
<a-col :span="2"> <a-col :span="2">
<div class="special-middle">{{ index + 1 }}</div> <div class="special-middle">{{ index + 1 }}</div>
</a-col> </a-col>
<a-col :span="3"> <a-col :span="4">
<div class="special-middle">{{ item.unitName }}</div> <div class="special-middle">{{ item.unitName }}</div>
</a-col> </a-col>
<a-col :span="2"> <!-- <a-col :span="2">
<div class="special-middle">{{ item.countryName }}</div> <div class="special-middle">{{ item.countryName }}</div>
</a-col> </a-col> -->
<a-col :span="2"> <a-col :span="3">
<div class="special-middle">{{ item.socialCode }}</div> <div class="special-middle">{{ item.socialCode }}</div>
</a-col> </a-col>
<a-col :span="2"> <a-col :span="2">
...@@ -167,6 +167,8 @@ export default { ...@@ -167,6 +167,8 @@ export default {
}; };
}, },
created() { created() {
if (this.unitPayment)
this.calTotalAmount()
}, },
methods: { methods: {
outAmountChange(index) { outAmountChange(index) {
...@@ -195,13 +197,13 @@ export default { ...@@ -195,13 +197,13 @@ export default {
}) })
} }
}, },
watch: { // watch: {
unitPayment: { // unitPayment: {
handler (unitPayment) { // handler (unitPayment) {
if (!!unitPayment) // if (!!unitPayment)
this.calTotalAmount() // this.calTotalAmount()
}, // },
}, // },
} // }
}; };
</script> </script>
\ No newline at end of file
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