结算管理,结算申请页面修改

This commit is contained in:
hongchao 2025-02-24 09:32:57 +08:00
parent 4eeb872968
commit cdb3a2f253
2 changed files with 103 additions and 6 deletions

View File

@ -10,6 +10,8 @@
>报废明细导出</el-button>
<el-button type="primary" size="mini" @click="handleExport2"
>丢失明细导出</el-button>
<el-button type="primary" size="mini" @click="handleExport5"
>减免明细导出</el-button>
<el-button type="warning" size="mini" @click="handleExportAll"
>全部明细导出</el-button>
<el-button type="success" size="mini" @click="handleAdd"
@ -160,12 +162,40 @@
</el-table-column>
</el-table-column>
</el-table>
<div class="tabelAllBottom">
<div class="tabelAll">
<div class="columnAllNum">费用小计</div>
<div class="columnAll">
{{ loseCost }}
</div>
</div>
</div>
<div>
<el-table :data="reducList">
<el-table-column label="减免费用明细" align="center">
<el-table-column label="序号" align="center" type="index" width="60"/>
<el-table-column label="设备名称" align="center" prop="typeName" :show-overflow-tooltip="true"/>
<el-table-column label="规格型号" align="center" prop="modeName" :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="reduceNum" :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="days" :show-overflow-tooltip="true"/>
<el-table-column label="减免原因" align="center" prop="remark" :show-overflow-tooltip="true"/>
<el-table-column label="减免费用(元)" align="center" prop="leaseMoney" :show-overflow-tooltip="true">
<template slot-scope="scope" v-if="scope.row.leaseMoney">
{{ scope.row.leaseMoney.toFixed(2) }}
</template>
</el-table-column>
</el-table-column>
</el-table>
<div class="tabelAllBottom">
<div class="columnAllNum">费用小计</div>
<div class="columnAll">
{{ reducCost }}
</div>
</div>
<div class="tabelAllBottom">
<div class="columnAllNum">合计</div>
<div class="columnAll">
@ -174,7 +204,6 @@
</div>
</div>
</div>
</template>
@ -203,6 +232,8 @@ export default {
scrapCost: 0,
loseList: [], //
loseCost: 0,
reducList: [], //
reducCost: 0,
costAll: 0,
deptName: undefined,
applyList: [],
@ -247,7 +278,13 @@ export default {
this.loseList = response.data.loseList //
this.loseCost = this.countCost(this.loseList)
this.reducList = response.data.reductionList //
console.log('111111111111111111',this.reducList)
if(this.reducList!=null){
this.reducList.forEach((item) => {
this.reducCost = Number(this.reducCost) + Number(item.leaseMoney)
})
}
this.applyList = response.data.relations
this.applyList.forEach((item) => {
item.leaseCost = Number(item.leaseCost)
@ -259,6 +296,7 @@ export default {
Number(item.repairCost) +
Number(item.scrapCost) +
Number(item.loseCost) +
Number(item.reductionCost) +
Number(item.addCost) -
Number(item.subCost)
})
@ -267,8 +305,10 @@ export default {
Number(this.leaseCost) +
Number(this.repairCost) +
Number(this.scrapCost) +
Number(this.loseCost)
Number(this.loseCost) -
Number(this.reducCost)
this.costAll = costSum
this.subCostFlag = costSum
})
},
@ -397,6 +437,14 @@ export default {
// `_${new Date().getTime()}.xlsx`,
// )
},
handleExport5() {
const params = this.rowData
this.download(
'material/slt_agreement_info/exportReduction',
{...params,},
`减免费用明细_${new Date().getTime()}.xlsx`,
)
},
handleExportAll() {
const params = this.rowData

View File

@ -10,6 +10,8 @@
>报废明细导出</el-button>
<el-button type="primary" size="mini" @click="handleExport2"
>丢失明细导出</el-button>
<el-button type="primary" size="mini" @click="handleExport5"
>减免明细导出</el-button>
<el-button type="warning" size="mini" @click="handleExportAll"
>全部明细导出</el-button>
</el-col>
@ -158,12 +160,40 @@
</el-table-column>
</el-table-column>
</el-table>
<div class="tabelAllBottom">
<div class="tabelAll">
<div class="columnAllNum">费用小计</div>
<div class="columnAll">
{{ loseCost }}
</div>
</div>
</div>
<div>
<el-table :data="reducList">
<el-table-column label="减免费用明细" align="center">
<el-table-column label="序号" align="center" type="index" width="60"/>
<el-table-column label="设备名称" align="center" prop="typeName" :show-overflow-tooltip="true"/>
<el-table-column label="规格型号" align="center" prop="modeName" :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="reduceNum" :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="days" :show-overflow-tooltip="true"/>
<el-table-column label="减免原因" align="center" prop="remark" :show-overflow-tooltip="true"/>
<el-table-column label="减免费用(元)" align="center" prop="leaseMoney" :show-overflow-tooltip="true">
<template slot-scope="scope" v-if="scope.row.leaseMoney">
{{ scope.row.leaseMoney.toFixed(2) }}
</template>
</el-table-column>
</el-table-column>
</el-table>
<div class="tabelAllBottom">
<div class="columnAllNum">费用小计</div>
<div class="columnAll">
{{ reducCost }}
</div>
</div>
<div class="tabelAllBottom">
<div class="columnAllNum">合计</div>
<div class="columnAll">
@ -201,6 +231,8 @@ export default {
scrapCost: 0,
loseList: [], //
loseCost: 0,
reducList: [], //
reducCost: 0,
costAll: 0,
deptName: undefined,
applyList: [],
@ -246,6 +278,13 @@ export default {
this.loseList = response.data.loseList //
this.loseCost = this.countCost(this.loseList)
this.reducList = response.data.reductionList //
console.log('111111111111111111',this.reducList)
if(this.reducList!=null){
this.reducList.forEach((item) => {
this.reducCost = Number(this.reducCost) + Number(item.leaseMoney)
})
}
this.applyList = response.data.relations
this.applyList.forEach((item) => {
@ -258,6 +297,7 @@ export default {
Number(item.repairCost) +
Number(item.scrapCost) +
Number(item.loseCost) +
Number(item.reductionCost) +
Number(item.addCost) -
Number(item.subCost)
})
@ -266,7 +306,8 @@ export default {
Number(this.leaseCost) +
Number(this.repairCost) +
Number(this.scrapCost) +
Number(this.loseCost)
Number(this.loseCost)-
Number(this.reducCost)
this.costAll = costSum
this.subCostFlag = costSum
})
@ -376,6 +417,14 @@ export default {
// `_${new Date().getTime()}.xlsx`,
// )
},
handleExport5() {
const params = this.rowData
this.download(
'material/slt_agreement_info/exportReduction',
{...params,},
`减免费用明细_${new Date().getTime()}.xlsx`,
)
},
handleExportAll() {
const params = this.rowData