减免申请问题修改
This commit is contained in:
parent
5f31bb9f09
commit
5d87951337
File diff suppressed because it is too large
Load Diff
|
|
@ -38,10 +38,10 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<el-form-item prop="deviceName">
|
<el-form-item prop="maName">
|
||||||
<el-input
|
<el-input
|
||||||
maxlength="50"
|
maxlength="50"
|
||||||
v-model="queryParams.deviceName"
|
v-model="queryParams.maName"
|
||||||
placeholder="请输入检索设备名称"
|
placeholder="请输入检索设备名称"
|
||||||
clearable
|
clearable
|
||||||
style="width: 240px"
|
style="width: 240px"
|
||||||
|
|
@ -330,6 +330,7 @@ import {getReliefList,addRelief } from "@/api/cost/cost";
|
||||||
import {downloadFile, downloadFileData} from '@/utils/download'
|
import {downloadFile, downloadFileData} from '@/utils/download'
|
||||||
import {getToken} from '@/utils/auth'
|
import {getToken} from '@/utils/auth'
|
||||||
import Treeselect from "@riophae/vue-treeselect";
|
import Treeselect from "@riophae/vue-treeselect";
|
||||||
|
import Decimal from "@/utils/decimal";
|
||||||
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
||||||
export default {
|
export default {
|
||||||
name: "",
|
name: "",
|
||||||
|
|
@ -370,6 +371,8 @@ export default {
|
||||||
agreementId: '',
|
agreementId: '',
|
||||||
agreementCode: '',
|
agreementCode: '',
|
||||||
time:null,
|
time:null,
|
||||||
|
maName:null,
|
||||||
|
typeName:null,
|
||||||
},
|
},
|
||||||
|
|
||||||
// 多选框选中数据
|
// 多选框选中数据
|
||||||
|
|
@ -527,7 +530,7 @@ export default {
|
||||||
async getList() {
|
async getList() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
const params = {
|
const params = {
|
||||||
deviceName: this.queryParams.deviceName,
|
maName: this.queryParams.maName,
|
||||||
typeName: this.queryParams.typeName,
|
typeName: this.queryParams.typeName,
|
||||||
agreementId: this.queryParams.agreementId,
|
agreementId: this.queryParams.agreementId,
|
||||||
startTime: this.queryParams.time && this.queryParams.time[0],
|
startTime: this.queryParams.time && this.queryParams.time[0],
|
||||||
|
|
@ -537,11 +540,10 @@ export default {
|
||||||
getReliefList(params).then((response) => {
|
getReliefList(params).then((response) => {
|
||||||
this.pushReviewList = response.data;
|
this.pushReviewList = response.data;
|
||||||
console.log('22222222',this.pushReviewList)
|
console.log('22222222',this.pushReviewList)
|
||||||
this.leaseAll = Number(
|
this.leaseAll = this.pushReviewList.reduce((total, item) => {
|
||||||
this.pushReviewList.reduce((total, item) => {
|
// return total + Number(item.leaseMoney);
|
||||||
return total + Number(item.leaseMoney);
|
return new Decimal(total).add(new Decimal(item.leaseMoney)).toString();
|
||||||
}, 0).toFixed(2)
|
}, 0);
|
||||||
);
|
|
||||||
let obj = {
|
let obj = {
|
||||||
id:null,
|
id:null,
|
||||||
leaseMoney: this.leaseAll,
|
leaseMoney: this.leaseAll,
|
||||||
|
|
@ -559,6 +561,8 @@ export default {
|
||||||
projectId: null,
|
projectId: null,
|
||||||
agreementId: '',
|
agreementId: '',
|
||||||
agreementCode: '',
|
agreementCode: '',
|
||||||
|
maName:null,
|
||||||
|
typeName:null
|
||||||
}
|
}
|
||||||
this.resetForm('queryForm')
|
this.resetForm('queryForm')
|
||||||
this.queryParams.time=[]
|
this.queryParams.time=[]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue