|
|
|
|
@ -168,7 +168,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
</div>
|
|
|
|
|
<xy-table :list="budgets" :show-index="false" :table-item="planTable" :height="310" style="margin-top: 10px;"
|
|
|
|
|
<xy-table :list="budgets" :tree-props="{ children: 'notChildren', hasChildren: 'hasChildren' }" :show-index="false" :table-item="planTable" :height="310" style="margin-top: 10px;"
|
|
|
|
|
ref="budgetTable" @select="selectPlan">
|
|
|
|
|
<template v-slot:btns>
|
|
|
|
|
<el-table-column label="使用金额(元)" header-align="center" width="140">
|
|
|
|
|
@ -179,12 +179,12 @@
|
|
|
|
|
</template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
|
|
|
|
|
<div style="display: flex;justify-content: flex-end;">
|
|
|
|
|
<Page :total="budgetTotal" show-elevator @on-change="e => {
|
|
|
|
|
budgetSelect.page = e;
|
|
|
|
|
getBudgets();
|
|
|
|
|
}" />
|
|
|
|
|
</div>
|
|
|
|
|
<!-- <div style="display: flex;justify-content: flex-end;">-->
|
|
|
|
|
<!-- <Page :total="budgetTotal" show-elevator @on-change="e => {-->
|
|
|
|
|
<!-- budgetSelect.page = e;-->
|
|
|
|
|
<!-- getBudgets();-->
|
|
|
|
|
<!-- }" />-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
</template>
|
|
|
|
|
</xy-dialog>
|
|
|
|
|
|
|
|
|
|
@ -600,8 +600,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
async getBudgets() {
|
|
|
|
|
let res = await getBudget(this.budgetSelect)
|
|
|
|
|
this.budgets = res.list.data
|
|
|
|
|
this.budgetTotal = res.list.total
|
|
|
|
|
this.budgets = res.list
|
|
|
|
|
|
|
|
|
|
this.toggleSelection(this.form.plan_link.map(item => {
|
|
|
|
|
return item.plan_id
|
|
|
|
|
@ -610,7 +609,7 @@ export default {
|
|
|
|
|
//默认选择计划
|
|
|
|
|
toggleSelection(plans) {
|
|
|
|
|
if (plans) {
|
|
|
|
|
this.budgets.filter(plan => {
|
|
|
|
|
this.budgets?.filter(plan => {
|
|
|
|
|
if (plans.includes(plan.id)) {
|
|
|
|
|
plan.use_money = this.form.plan_link[plans.indexOf(plan.id)].use_money
|
|
|
|
|
return true
|
|
|
|
|
|