费用推送审核管理

This commit is contained in:
hongchao 2025-01-24 17:50:01 +08:00
parent 1340792d48
commit 517ddbf1b4
3 changed files with 41 additions and 34 deletions

View File

@ -27,10 +27,10 @@ export function submitFee(params){
}) })
} }
// 查询费用结算审核列表 // 查询费用推送审核租赁列表
export function getSltExam(query) { export function getLeaseList(query) {
return request({ return request({
url: '/material/slt_agreement_info/getSltExam', url: '/material/iws_cost_push/getLeaseCostsByAgreementIdAndMonth',
method: 'get', method: 'get',
params: query params: query
}) })

View File

@ -219,7 +219,7 @@
<el-table-column label="租赁日期" align="center" prop="startTime" :show-overflow-tooltip="true"/> <el-table-column label="租赁日期" align="center" prop="startTime" :show-overflow-tooltip="true"/>
<el-table-column label="归还日期" align="center" prop="endTime" :show-overflow-tooltip="true"/> <el-table-column label="归还日期" align="center" prop="endTime" :show-overflow-tooltip="true"/>
<el-table-column label="租赁天数" align="center" prop="leaseDays" :show-overflow-tooltip="true"/> <el-table-column label="租赁天数" align="center" prop="leaseDays" :show-overflow-tooltip="true"/>
<el-table-column label="租赁费用(元)" align="center" width="130px" prop="costs" :show-overflow-tooltip="true"> <el-table-column label="租赁费用" align="center" width="130px" prop="costs" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.costs.toFixed(2) }} {{ scope.row.costs.toFixed(2) }}
</template> </template>
@ -280,7 +280,7 @@
<el-table-column label="计量单位" align="center" prop="mtUnitName" :show-overflow-tooltip="true"/> <el-table-column label="计量单位" align="center" prop="mtUnitName" :show-overflow-tooltip="true"/>
<el-table-column label="维修数量" align="center" prop="num" :show-overflow-tooltip="true"/> <el-table-column label="维修数量" align="center" prop="num" :show-overflow-tooltip="true"/>
<el-table-column label="是否收费" align="center" prop="partType" :show-overflow-tooltip="true"/> <el-table-column label="是否收费" align="center" prop="partType" :show-overflow-tooltip="true"/>
<el-table-column label="维修费用(元)" align="center" width="130px" prop="costs" :show-overflow-tooltip="true"> <el-table-column label="维修费用" align="center" width="130px" prop="costs" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.costs.toFixed(2) }} {{ scope.row.costs.toFixed(2) }}
</template> </template>
@ -341,7 +341,7 @@
<el-table-column label="计量单位" align="center" prop="mtUnitName" :show-overflow-tooltip="true"/> <el-table-column label="计量单位" align="center" prop="mtUnitName" :show-overflow-tooltip="true"/>
<el-table-column label="报废数量" align="center" prop="num" :show-overflow-tooltip="true"/> <el-table-column label="报废数量" align="center" prop="num" :show-overflow-tooltip="true"/>
<el-table-column label="是否收费" align="center" prop="partType" :show-overflow-tooltip="true"/> <el-table-column label="是否收费" align="center" prop="partType" :show-overflow-tooltip="true"/>
<el-table-column label="报废费用(元)" align="center" width="130px" prop="costs" :show-overflow-tooltip="true"> <el-table-column label="报废费用" align="center" width="130px" prop="costs" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.costs.toFixed(2) }} {{ scope.row.costs.toFixed(2) }}
</template> </template>
@ -401,7 +401,7 @@
<el-table-column label="规格型号" align="center" prop="modelName" :show-overflow-tooltip="true"/> <el-table-column label="规格型号" align="center" prop="modelName" :show-overflow-tooltip="true"/>
<el-table-column label="计量单位" align="center" prop="mtUnitName" :show-overflow-tooltip="true"/> <el-table-column label="计量单位" align="center" prop="mtUnitName" :show-overflow-tooltip="true"/>
<el-table-column label="丢失数量" align="center" prop="num" :show-overflow-tooltip="true"/> <el-table-column label="丢失数量" align="center" prop="num" :show-overflow-tooltip="true"/>
<el-table-column label="丢失费用(元)" align="center" width="130px" prop="costs" :show-overflow-tooltip="true"> <el-table-column label="丢失费用" align="center" width="130px" prop="costs" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.costs.toFixed(2) }} {{ scope.row.costs.toFixed(2) }}
</template> </template>
@ -872,7 +872,8 @@ export default {
border-top: none; border-top: none;
} }
.columnAll { .columnAll {
flex: 1; flex:1;
display: flex;
padding: 5px; padding: 5px;
border-left: 1px solid #dfe6ec; border-left: 1px solid #dfe6ec;
width:100%; width:100%;

View File

@ -189,32 +189,26 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-table v-loading="loading" :data="dialogLeaseList" border> <el-table v-loading="loading" :data="dialogLeaseList" height="500px" border>
<el-table-column label="序号" align="center" width="80" type="index" > <el-table-column label="序号" align="center" width="80" type="index" />
<template slot-scope="scope">
<span>{{
(dialogLease.pageNum - 1) * dialogLease.pageSize + scope.$index + 1
}}</span>
</template>
</el-table-column>
<el-table-column label="物资名称" align="center" prop="typeName" :show-overflow-tooltip="true"/> <el-table-column label="物资名称" align="center" prop="typeName" :show-overflow-tooltip="true"/>
<el-table-column label="规格型号" align="center" prop="modelName" :show-overflow-tooltip="true"/> <el-table-column label="规格型号" align="center" prop="modelName" :show-overflow-tooltip="true"/>
<el-table-column label="计量单位" align="center" prop="mtUnitName" :show-overflow-tooltip="true"/> <el-table-column label="计量单位" align="center" prop="unitName" :show-overflow-tooltip="true"/>
<el-table-column label="租赁单价" align="center" prop="leasePrice" :show-overflow-tooltip="true"/> <el-table-column label="租赁单价" align="center" prop="leasePrice" :show-overflow-tooltip="true"/>
<el-table-column label="租赁数量" align="center" prop="num" :show-overflow-tooltip="true"/> <el-table-column label="租赁数量" align="center" prop="leaseNum" :show-overflow-tooltip="true"/>
<el-table-column label="租赁日期" align="center" prop="startTime" :show-overflow-tooltip="true"/> <el-table-column label="租赁日期" align="center" prop="leaseDate" :show-overflow-tooltip="true"/>
<el-table-column label="归还日期" align="center" prop="endTime" :show-overflow-tooltip="true"/> <el-table-column label="归还日期" align="center" prop="backDate" :show-overflow-tooltip="true"/>
<el-table-column label="租赁天数" align="center" prop="leaseDays" :show-overflow-tooltip="true"/> <el-table-column label="租赁天数" align="center" prop="leaseDays" :show-overflow-tooltip="true"/>
<el-table-column label="租赁费用(元)" align="center" width="130px" prop="costs" :show-overflow-tooltip="true"> <el-table-column label="租赁费用" align="center" width="130px" prop="leaseMoney" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.costs.toFixed(2) }} {{ scope.row.leaseMoney.toFixed(2) }}
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div class="tabelAllBottom"> <div class="tabelAllBottom">
<div class="columnAllNum">合计费用</div> <div class="columnAllNum">合计费用</div>
<div class="columnAll"> <div class="columnAll">
{{ 2530.55 }} {{ leaseAllMoney.toFixed(2) }}
</div> </div>
</div> </div>
</el-dialog> </el-dialog>
@ -265,7 +259,7 @@
<el-table-column label="计量单位" align="center" prop="mtUnitName" :show-overflow-tooltip="true"/> <el-table-column label="计量单位" align="center" prop="mtUnitName" :show-overflow-tooltip="true"/>
<el-table-column label="维修数量" align="center" prop="num" :show-overflow-tooltip="true"/> <el-table-column label="维修数量" align="center" prop="num" :show-overflow-tooltip="true"/>
<el-table-column label="是否收费" align="center" prop="partType" :show-overflow-tooltip="true"/> <el-table-column label="是否收费" align="center" prop="partType" :show-overflow-tooltip="true"/>
<el-table-column label="维修费用(元)" align="center" width="130px" prop="costs" :show-overflow-tooltip="true"> <el-table-column label="维修费用" align="center" width="130px" prop="costs" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.costs.toFixed(2) }} {{ scope.row.costs.toFixed(2) }}
</template> </template>
@ -325,7 +319,7 @@
<el-table-column label="计量单位" align="center" prop="mtUnitName" :show-overflow-tooltip="true"/> <el-table-column label="计量单位" align="center" prop="mtUnitName" :show-overflow-tooltip="true"/>
<el-table-column label="报废数量" align="center" prop="num" :show-overflow-tooltip="true"/> <el-table-column label="报废数量" align="center" prop="num" :show-overflow-tooltip="true"/>
<el-table-column label="是否收费" align="center" prop="partType" :show-overflow-tooltip="true"/> <el-table-column label="是否收费" align="center" prop="partType" :show-overflow-tooltip="true"/>
<el-table-column label="报废费用(元)" align="center" width="130px" prop="costs" :show-overflow-tooltip="true"> <el-table-column label="报废费用" align="center" width="130px" prop="costs" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.costs.toFixed(2) }} {{ scope.row.costs.toFixed(2) }}
</template> </template>
@ -384,7 +378,7 @@
<el-table-column label="规格型号" align="center" prop="modelName" :show-overflow-tooltip="true"/> <el-table-column label="规格型号" align="center" prop="modelName" :show-overflow-tooltip="true"/>
<el-table-column label="计量单位" align="center" prop="mtUnitName" :show-overflow-tooltip="true"/> <el-table-column label="计量单位" align="center" prop="mtUnitName" :show-overflow-tooltip="true"/>
<el-table-column label="丢失数量" align="center" prop="num" :show-overflow-tooltip="true"/> <el-table-column label="丢失数量" align="center" prop="num" :show-overflow-tooltip="true"/>
<el-table-column label="丢失费用(元)" align="center" width="130px" prop="costs" :show-overflow-tooltip="true"> <el-table-column label="丢失费用" align="center" width="130px" prop="costs" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.costs.toFixed(2) }} {{ scope.row.costs.toFixed(2) }}
</template> </template>
@ -406,7 +400,7 @@ import {
getUnitList, getUnitList,
getAgreementInfoById, getAgreementInfoById,
} from '@/api/back/index.js' } from '@/api/back/index.js'
import {getPushReviewList, } from "@/api/costPush/costPush"; import {getPushReviewList,getLeaseList } from "@/api/costPush/costPush";
import Treeselect from "@riophae/vue-treeselect"; import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css"; import "@riophae/vue-treeselect/dist/vue-treeselect.css";
export default { export default {
@ -459,6 +453,7 @@ export default {
modelName: undefined, modelName: undefined,
}, },
dialogLeaseTotal: 0, dialogLeaseTotal: 0,
leaseAllMoney: 0,
// //
showRepair: false, showRepair: false,
@ -633,16 +628,26 @@ export default {
this.dialogLease.typeName = "" this.dialogLease.typeName = ""
this.dialogLease.modelName = "" this.dialogLease.modelName = ""
this.dialogLease.id = row.id; this.dialogLease.id = row.id;
// this.getLeaseList() this.getLeaseList(row)
}, },
// //
getLeaseList() { getLeaseList(row) {
this.loading = true; this.loading = true;
// getLeaseList(this.dialogLease).then((response) => { let params = {
// this.dialogLeaseList = response.rows; month: this.queryParams.month,
// this.dialogLeaseTotal = response.total; agreementId: row.agreementId,
// this.loading = false; typeName: this.dialogLease.typeName,
// }); modelName: this.dialogLease.modelName,
}
getLeaseList(params).then((response) => {
this.dialogLeaseList = response.rows;
this.leaseAllMoney = 0;
this.dialogLeaseList.forEach(item => {
this.leaseAllMoney += Number(item.leaseMoney);
})
this.dialogLeaseTotal = response.total;
this.loading = false;
});
}, },
handleQueryLease() { handleQueryLease() {
this.getLeaseList() this.getLeaseList()
@ -822,6 +827,7 @@ export default {
} }
.columnAll { .columnAll {
flex: 1; flex: 1;
display: flex;
padding: 5px; padding: 5px;
border-left: 1px solid #dfe6ec; border-left: 1px solid #dfe6ec;
width:100%; width:100%;