Compare commits

..

No commits in common. "5b8d002d5d25fea10832e096fe3794624d028067" and "21191413d286d86b47609fde713d225b0e0f46cd" have entirely different histories.

1 changed files with 57 additions and 62 deletions

View File

@ -2,7 +2,7 @@
* @Author: hisense.guoyue
* @LastEditors: hisense.guoyue
* @LastEditTime: 2022-09-27 14:23:29
* @Description: 资金报表
* @Description: 设备审批
-->
<template>
<el-card shadow="never" class="aui-card--fill" style="position: relative">
@ -10,10 +10,9 @@
<div
style="
text-align: center;
font-size: 24px;
font-size: 26px;
font-weight: bold;
margin-bottom: 14px;
color:#0058e1;
"
>
累计节省财政资金约{{ saveMoney }}万元
@ -21,8 +20,8 @@
<div
style="
text-align: center;
font-size: 12px;
font-size: 14px;
font-weight: bold;
margin-bottom: 14px;
"
>
@ -33,7 +32,7 @@
<el-form-item>
<span>日期</span>
<el-date-picker
v-model="dateList"
v-model="dataList"
type="daterange"
range-separator="至"
start-placeholder="开始日期"
@ -44,11 +43,11 @@
</el-date-picker>
</el-form-item>
<!--提供部门 传id-->
<!--提供部门-->
<el-form-item>
<span>提供部门</span>
<el-select
v-model="dataForm.provideDept"
v-model="dataForm.offerDepartment"
placeholder="请选择提供部门"
filterable
clearable
@ -56,19 +55,19 @@
<el-option label="全部" value=""></el-option>
<el-option
v-for="item in offerDepartSelects"
:key="item.value"
:key="item.label"
:label="item.label"
:value="item.value"
v-bind="item"全部
v-bind="item"
></el-option>
</el-select>
</el-form-item>
<!--申请部门 传汉字-->
<!--申请部门-->
<el-form-item>
<span>申请部门</span>
<el-select
v-model="dataForm.applyDept"
v-model="dataForm.applyDepartment"
placeholder="请选择申请部门"
filterable
clearable
@ -89,8 +88,8 @@
<span>类型</span>
<el-select
@change="changeIiem"
v-model="dataForm.resourceType"
placeholder="请选择资源类型"
v-model="dataForm.type"
placeholder="请选择类型"
clearable
>
<el-option label="全部" value=""></el-option>
@ -109,7 +108,7 @@
<span>名称</span>
<el-input
style="width: 80%"
v-model="dataForm.resourceName"
v-model="dataForm.name"
placeholder="请输入资源名称"
clearable
></el-input>
@ -128,12 +127,14 @@
$t("reset")
}}</el-button>
</el-form-item>
<!-- 导出 -->
<a
class="export"
:href="
exportExcel +
exportExcelType +
'?' +
dataForm +
exportExcelCondition +
'&token=' +
token
"
@ -143,54 +144,60 @@
<div class="mod-activiti__process">
<el-table
:data="tableData"
:data="dataList"
:header-cell-style="{ textAlign: 'center', height: '40px' }"
:cell-style="{ textAlign: 'center' }"
style="width: 100%"
>
<el-table-column width="80px" label="序号" align="center">
<template slot-scope="scop">
{{scop.$index+1}}
</template>
</el-table-column>
<el-table-column
prop="resourceName"
prop="title"
label="序号"
header-align="center"
align="center"
></el-table-column>
<el-table-column
prop="name"
label="资源名称"
header-align="center"
align="center"
></el-table-column>
<el-table-column
prop="resourceType"
label="资源类型"
prop="createDate"
label="类型"
header-align="center"
align="center"
></el-table-column>
<el-table-column
prop="provideDept"
prop="auditTime"
label="提供部门"
header-align="center"
align="center"
></el-table-column>
<el-table-column
prop="applyDept"
prop="auditTime"
label="提供部门"
header-align="center"
align="center"
></el-table-column>
<el-table-column
prop="auditTime"
label="申请部门"
header-align="center"
align="center"
></el-table-column>
<el-table-column
prop="applyDate"
prop="auditTime"
label="申请时间"
header-align="center"
align="center"
></el-table-column>
<el-table-column
prop="applyPrice"
prop="auditTime"
label="参考价格(元)"
header-align="center"
align="center"
></el-table-column>
</el-table>
<div class="block" >
<el-pagination
@current-change="handleCurrentChange"
layout="total, prev, pager, next, jumper"
@ -200,7 +207,6 @@
>
</el-pagination>
</div>
</div>
</el-card>
</template>
@ -214,9 +220,8 @@ export default {
return {
token: Cookies.get('ucsToken'),
//
exportExcel: CONFIGITEM.configData[CONFIGITEM.version].apiURL + '/processForm/tabilityapplication/exportFundStatementTable',
exportExcelCondition: '',
exportExcelType: '',
saveMoney: 3243,
offerDepartSelects: [],
applyDepartSelects: [],
@ -226,48 +231,38 @@ export default {
{ name: "开发组件", value: 3 },
{ name: "业务组件", value: 4 },
{ name: "应用资源", value: 5 },
{ name: "会客厅", value: 5 },
], //
tableData: [],
dateList: [],//
dataList: [],
dataForm: {
// date: '',
startDate: "",
endDate: "",
provideDept: "",
applyDept: "",
resourceType: "",
resourceName: "",
pageNum:1,
pageSize:10,
offerDepartment: "",
applyDepartment: "",
type: "",
name: "",
},
currentPage: 1,
pageSize: 10,
total: 0,
total: null,
};
},
methods: {
init() {
if (this.dateList && this.dateList.length > 0) {
this.dataForm.startDate = this.dateList[0];
this.dataForm.endDate = this.dateList[1];
if (this.value1 && this.value1.length > 0) {
this.dataForm.startDate = this.value1[0];
this.dataForm.endDate = this.value1[1];
} else {
this.dataForm.startDate = "";
this.dataForm.endDate = "";
}
this.dataForm.pageNum=this.currentPage
let params = this.dataForm;
this.$http
.get("/processForm/tabilityapplication/getFundStatement/", {
.get("/census/center/v3/treeList/", {
params,
})
.then((res) => {
this.tableData = res.data.data.list;
let price=Number(res.data.data.totalPrice);
price=Math.round(price / 10000);
this.saveMoney=price.toFixed(1)
this.total=Number(res.data.data.total);
this.tableData = res.data.data;
});
},
handleCurrentChange(val) {
@ -275,13 +270,13 @@ export default {
this.init();
},
resetDataList() {
this.dateList = [];
this.dataList = [];
this.dataForm.startDate = "";
this.dataForm.endDate = "";
this.dataForm.resourceType = "";
this.dataForm.resourceName = "";
this.dataForm.applyDept = "";
this.dataForm.provideDept = "";
this.dataForm.type = "";
this.dataForm.name = "";
this.dataForm.applyDepartment = "";
this.dataForm.offerDepartment = "";
this.currentPage = 1;
this.init();
},
@ -294,7 +289,7 @@ export default {
this.applyDepartSelects = [];
this.offerDepartSelects = [];
res.data.data.map((val) => {
this.applyDepartSelects.push({ label: val.name, value: val.name });
this.applyDepartSelects.push({ label: val.name, value: val.id });
this.offerDepartSelects.push({ label: val.name, value: val.id });
});
});