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