|
|
|
|
@ -48,17 +48,17 @@
|
|
|
|
|
<xy-table stripe ref="xyTable" :objectSpanMethod="objectSpanMethod" :table-item="table" :list="list" :show-summary="true"
|
|
|
|
|
:summary-method="summary">
|
|
|
|
|
<template v-slot:btns>
|
|
|
|
|
<el-table-column header-align="center" align="left" :width="130" label="操作" >
|
|
|
|
|
<el-table-column header-align="center" align="left" :width="150" label="操作" >
|
|
|
|
|
<template #default="{ row }">
|
|
|
|
|
<Button size="small" type="primary" @click="$refs['payPlan'].rowName = row.name,$refs['payPlan'].setId(row.id),$refs['payPlan'].show();">付款计划</Button>
|
|
|
|
|
<Button v-if="row.pid === 0" size="small" type="primary" @click="$refs['payPlan'].rowName = row.name,$refs['payPlan'].setId(row.id),$refs['payPlan'].show();">预算执行计划填报</Button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
|
|
|
|
|
<div style="display: flex;justify-content: flex-end;">
|
|
|
|
|
<Page :total="total" show-elevator @on-change="pageChange" show-sizer @on-page-size-change="pageSizeChange" />
|
|
|
|
|
</div>
|
|
|
|
|
<!-- <div style="display: flex;justify-content: flex-end;">-->
|
|
|
|
|
<!-- <Page :total="total" show-elevator @on-change="pageChange" show-sizer @on-page-size-change="pageSizeChange" />-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
|
|
|
|
|
<payPlan ref="payPlan"></payPlan>
|
|
|
|
|
</div>
|
|
|
|
|
@ -136,76 +136,75 @@
|
|
|
|
|
total: 0,
|
|
|
|
|
pageIndex: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
table: [{
|
|
|
|
|
label: "隶属项目",
|
|
|
|
|
prop: 'pid_info_name',
|
|
|
|
|
width: 200,
|
|
|
|
|
align: 'left',
|
|
|
|
|
sortable: false,
|
|
|
|
|
fixed: 'left'
|
|
|
|
|
},
|
|
|
|
|
table: [
|
|
|
|
|
{
|
|
|
|
|
label: "项目名称",
|
|
|
|
|
prop: 'name',
|
|
|
|
|
prop: "name",
|
|
|
|
|
width: 200,
|
|
|
|
|
align: 'left',
|
|
|
|
|
align: "left",
|
|
|
|
|
sortable: false,
|
|
|
|
|
fixed: 'left'
|
|
|
|
|
fixed: "left",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "预算类型",
|
|
|
|
|
prop: 'type_detail.value',
|
|
|
|
|
label: "预算类型",
|
|
|
|
|
width: 115,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "所属年份",
|
|
|
|
|
prop: 'year',
|
|
|
|
|
width: 105
|
|
|
|
|
prop: "year",
|
|
|
|
|
width: 105,
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// label: "相关科室",
|
|
|
|
|
// prop: "plan_department.name",
|
|
|
|
|
// width: 110,
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
label: "相关科室",
|
|
|
|
|
prop: 'plan_department.name',
|
|
|
|
|
width: 110
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '年初预算金额(元)',
|
|
|
|
|
prop: 'money',
|
|
|
|
|
align: 'right',
|
|
|
|
|
label: "年初预算金额(元)",
|
|
|
|
|
prop: "money",
|
|
|
|
|
align: "right",
|
|
|
|
|
width: 180,
|
|
|
|
|
formatter: (cell, data, value) => {
|
|
|
|
|
return moneyFormatter(value)
|
|
|
|
|
}
|
|
|
|
|
if (value == 0) return "--";
|
|
|
|
|
else return moneyFormatter(value);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '调整后预算金额(元)',
|
|
|
|
|
prop: 'update_money',
|
|
|
|
|
align: 'right',
|
|
|
|
|
label: "调整后预算金额(元)",
|
|
|
|
|
prop: "update_money",
|
|
|
|
|
align: "right",
|
|
|
|
|
width: 200,
|
|
|
|
|
formatter: (cell, data, value) => {
|
|
|
|
|
return moneyFormatter(value)
|
|
|
|
|
}
|
|
|
|
|
return moneyFormatter(value);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "创建信息",
|
|
|
|
|
prop: 'created_at',
|
|
|
|
|
prop: "created_at",
|
|
|
|
|
width: 160,
|
|
|
|
|
formatter: (cell, data, value) => {
|
|
|
|
|
return parseTime(new Date(value), '{y}-{m}-{d}')
|
|
|
|
|
}
|
|
|
|
|
return parseTime(new Date(value), "{y}-{m}-{d}");
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '科室',
|
|
|
|
|
width: 150,
|
|
|
|
|
prop: 'plan_department.name'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "描述",
|
|
|
|
|
minWidth: 300,
|
|
|
|
|
prop: 'content',
|
|
|
|
|
align: 'left',
|
|
|
|
|
sortable: false
|
|
|
|
|
prop: "content",
|
|
|
|
|
align: "left",
|
|
|
|
|
sortable: false,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
select: {
|
|
|
|
|
page: 1,
|
|
|
|
|
year: "",
|
|
|
|
|
type: "",
|
|
|
|
|
department: ""
|
|
|
|
|
department: "",
|
|
|
|
|
},
|
|
|
|
|
departments: [], //部门类型
|
|
|
|
|
|
|
|
|
|
@ -286,20 +285,21 @@
|
|
|
|
|
year: this.select.year,
|
|
|
|
|
type: this.select.type,
|
|
|
|
|
plan_department_id: this.select.department,
|
|
|
|
|
top_pid: 1
|
|
|
|
|
//top_pid: 1,
|
|
|
|
|
is_auth: 0,
|
|
|
|
|
is_tree: 1
|
|
|
|
|
}).then(res => {
|
|
|
|
|
|
|
|
|
|
for (var m of res.list.data) {
|
|
|
|
|
for (var m of res.list) {
|
|
|
|
|
m.pid_info_name = m.pid_info?.name
|
|
|
|
|
}
|
|
|
|
|
this.list =
|
|
|
|
|
mergeTableRow({
|
|
|
|
|
data: res.list.data,
|
|
|
|
|
data: res.list,
|
|
|
|
|
mergeColNames: ["pid_info_name"], // 需要合并的列,默认合并列相同的数据
|
|
|
|
|
firstMergeColNames: ["pid_info_name"], // 受影响的列,只合并以firstMerge为首的同类型数据
|
|
|
|
|
firstMerge: 'pid_info_name' // 以哪列为基础进行合并,一般为第一列
|
|
|
|
|
})
|
|
|
|
|
this.total = res.list.total
|
|
|
|
|
//this.total = res.list.total
|
|
|
|
|
this.totalMoney = res.total_money
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|