|
|
@@ -2,31 +2,31 @@
|
|
|
<div>
|
|
|
<el-tabs tab-position="left">
|
|
|
<el-tab-pane label="研发项目费用预算表格" lazy>
|
|
|
- <all-budget-table :projectId="currProjectId" @change="handleBudgetChange"></all-budget-table>
|
|
|
+ <all-budget-table :projectId="currProjectId" @change="handleProjectChange"></all-budget-table>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="一、人员人工费用" lazy>
|
|
|
- <person-cost :projectId="currProjectId" @printClick="handlePrintClick" />
|
|
|
+ <person-cost :projectId="currProjectId" @change="handleProjectChange" @printClick="handlePrintClick" />
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="二、直接投入费用" lazy>
|
|
|
- <zztl-cost :projectId="currProjectId" @printClick="handlePrintClick"></zztl-cost>
|
|
|
+ <zztl-cost :projectId="currProjectId" @change="handleProjectChange" @printClick="handlePrintClick"></zztl-cost>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="三、折旧费用与长期待摊费用" lazy>
|
|
|
- <zjfyycqdtfy-cost :projectId="currProjectId" @printClick="handlePrintClick"></zjfyycqdtfy-cost>
|
|
|
+ <zjfyycqdtfy-cost :projectId="currProjectId" @change="handleProjectChange" @printClick="handlePrintClick"></zjfyycqdtfy-cost>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="四、无形资产摊销费用" lazy>
|
|
|
- <wxzctx-cost :projectId="currProjectId" @printClick="handlePrintClick"></wxzctx-cost>
|
|
|
+ <wxzctx-cost :projectId="currProjectId" @change="handleProjectChange" @printClick="handlePrintClick"></wxzctx-cost>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="五、设计费用" lazy>
|
|
|
- <design-cost :projectId="currProjectId" @printClick="handlePrintClick"></design-cost>
|
|
|
+ <design-cost :projectId="currProjectId" @change="handleProjectChange" @printClick="handlePrintClick"></design-cost>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="六、装备调试费用与实验费用" lazy>
|
|
|
- <zb-cost :projectId="currProjectId" @printClick="handlePrintClick"></zb-cost>
|
|
|
+ <zb-cost :projectId="currProjectId" @change="handleProjectChange" @printClick="handlePrintClick"></zb-cost>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="七、委托外部研究开发费" lazy>
|
|
|
- <outsourcing-cost :projectId="currProjectId" @printClick="handlePrintClick"></outsourcing-cost>
|
|
|
+ <outsourcing-cost :projectId="currProjectId" @change="handleProjectChange" @printClick="handlePrintClick"></outsourcing-cost>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="八、其他费用" lazy>
|
|
|
- <other-cost :projectId="currProjectId" @printClick="handlePrintClick"></other-cost>
|
|
|
+ <other-cost :projectId="currProjectId" @change="handleProjectChange" @printClick="handlePrintClick"></other-cost>
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
<WideTablePrinter
|
|
|
@@ -80,7 +80,7 @@ export default {
|
|
|
this.currProjectId = this.projectId;
|
|
|
},
|
|
|
methods: {
|
|
|
- handleBudgetChange(data) {
|
|
|
+ handleProjectChange(data) {
|
|
|
this.currProjectId = data.id;
|
|
|
},
|
|
|
handlePrintClick(data) {
|