费用推送审核管理

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({
url: '/material/slt_agreement_info/getSltExam',
url: '/material/iws_cost_push/getLeaseCostsByAgreementIdAndMonth',
method: 'get',
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="endTime" :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">
{{ scope.row.costs.toFixed(2) }}
</template>
@ -280,7 +280,7 @@
<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="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">
{{ scope.row.costs.toFixed(2) }}
</template>
@ -341,7 +341,7 @@
<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="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">
{{ scope.row.costs.toFixed(2) }}
</template>
@ -401,7 +401,7 @@
<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="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">
{{ scope.row.costs.toFixed(2) }}
</template>
@ -872,7 +872,8 @@ export default {
border-top: none;
}
.columnAll {
flex: 1;
flex:1;
display: flex;
padding: 5px;
border-left: 1px solid #dfe6ec;
width:100%;

View File

@ -189,32 +189,26 @@
</el-form-item>
</el-form>
<el-table v-loading="loading" :data="dialogLeaseList" border>
<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 v-loading="loading" :data="dialogLeaseList" height="500px" border>
<el-table-column label="序号" align="center" width="80" type="index" />
<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="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="num" :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="leaseNum" :show-overflow-tooltip="true"/>
<el-table-column label="租赁日期" align="center" prop="leaseDate" :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" 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">
{{ scope.row.costs.toFixed(2) }}
{{ scope.row.leaseMoney.toFixed(2) }}
</template>
</el-table-column>
</el-table>
<div class="tabelAllBottom">
<div class="columnAllNum">合计费用</div>
<div class="columnAll">
{{ 2530.55 }}
{{ leaseAllMoney.toFixed(2) }}
</div>
</div>
</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="num" :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">
{{ scope.row.costs.toFixed(2) }}
</template>
@ -325,7 +319,7 @@
<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="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">
{{ scope.row.costs.toFixed(2) }}
</template>
@ -384,7 +378,7 @@
<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="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">
{{ scope.row.costs.toFixed(2) }}
</template>
@ -406,7 +400,7 @@ import {
getUnitList,
getAgreementInfoById,
} 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 "@riophae/vue-treeselect/dist/vue-treeselect.css";
export default {
@ -459,6 +453,7 @@ export default {
modelName: undefined,
},
dialogLeaseTotal: 0,
leaseAllMoney: 0,
//
showRepair: false,
@ -633,16 +628,26 @@ export default {
this.dialogLease.typeName = ""
this.dialogLease.modelName = ""
this.dialogLease.id = row.id;
// this.getLeaseList()
this.getLeaseList(row)
},
//
getLeaseList() {
getLeaseList(row) {
this.loading = true;
// getLeaseList(this.dialogLease).then((response) => {
// this.dialogLeaseList = response.rows;
// this.dialogLeaseTotal = response.total;
// this.loading = false;
// });
let params = {
month: this.queryParams.month,
agreementId: row.agreementId,
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() {
this.getLeaseList()
@ -822,6 +827,7 @@ export default {
}
.columnAll {
flex: 1;
display: flex;
padding: 5px;
border-left: 1px solid #dfe6ec;
width:100%;