This commit is contained in:
mashuai 2025-12-11 13:10:59 +08:00
parent 71f6bba93f
commit a6a5ba5cce
4 changed files with 79 additions and 10 deletions

View File

@ -88,6 +88,17 @@
style="width: 220px"
/>
</el-form-item>
<el-form-item prop="isFinish">
<el-select v-model="queryParams.isFinish" placeholder="请选择竣工状态" clearable filterable>
<el-option
v-for="item in proStatus"
:key="item.id"
:label="item.name"
:value="item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery" >查询</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery" >重置</el-button>
@ -122,6 +133,13 @@
{{ (scope.row.buyPrice * scope.row.num).toFixed(2) }}
</template>
</el-table-column>
<el-table-column label="竣工状态" align="center" prop="isFinish" :show-overflow-tooltip="true">
<template slot-scope="scope">
<el-tag v-if="scope.row.isFinish == 1" effect="plain">已竣工</el-tag>
<el-tag type="warning" v-if="scope.row.isFinish == 0" effect="plain">未竣工</el-tag>
</template>
</el-table-column>
<el-table-column label="竣工日期" align="center" prop="actualEndDate" :show-overflow-tooltip="true"/>
</el-table>
<pagination
@ -177,9 +195,14 @@ export default {
typeName: null,
modelName: null,
keyWord: null,
isFinish: null,
},
typeNameOptions:[],
typeModelNameOptions:[],
proStatus:[
{ id: 0, name: '未竣工' },
{ id: 1, name: '已竣工' },
],
}
},
created() {
@ -331,8 +354,8 @@ export default {
getList() {
this.loading = true
getLostReportList(this.queryParams).then((response) => {
this.tableList = response.rows || []
this.total = response.total
this.tableList = response.data.rows || []
this.total = response.data.total
this.loading = false
}).catch((error) => {
console.error('获取丢失费用报表失败:', error)

View File

@ -43,6 +43,17 @@
style="width: 130px"
/>
</el-form-item>
<el-form-item prop="isFinish">
<el-select v-model="queryParams.isFinish" placeholder="请选择竣工状态" clearable filterable>
<el-option
v-for="item in proStatus"
:key="item.id"
:label="item.name"
:value="item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery" >查询</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery" >重置</el-button>
@ -73,6 +84,13 @@
</el-table-column>
<el-table-column label="维修方式" align="center" prop="repairType" width="120" />
<el-table-column label="费用类型" align="center" prop="partType" width="120" />
<el-table-column label="竣工状态" align="center" prop="isFinish" :show-overflow-tooltip="true">
<template slot-scope="scope">
<el-tag v-if="scope.row.isFinish == 1" effect="plain">已竣工</el-tag>
<el-tag type="warning" v-if="scope.row.isFinish == 0" effect="plain">未竣工</el-tag>
</template>
</el-table-column>
<el-table-column label="竣工日期" align="center" prop="actualEndDate" :show-overflow-tooltip="true"/>
</el-table>
<pagination
@ -124,7 +142,12 @@ export default {
dateRange: null,
startTime: null,
endTime: null,
isFinish: null,
},
proStatus:[
{ id: 0, name: '未竣工' },
{ id: 1, name: '已竣工' },
],
}
},
created() {

View File

@ -43,6 +43,17 @@
style="width: 130px"
/>
</el-form-item>
<el-form-item prop="isFinish">
<el-select v-model="queryParams.isFinish" placeholder="请选择竣工状态" clearable filterable>
<el-option
v-for="item in proStatus"
:key="item.id"
:label="item.name"
:value="item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery" >查询</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery" >重置</el-button>
@ -71,6 +82,13 @@
{{ scope.row.costs ? scope.row.costs.toFixed(2) : '0.00' }}
</template>
</el-table-column>
<el-table-column label="竣工状态" align="center" prop="isFinish" :show-overflow-tooltip="true">
<template slot-scope="scope">
<el-tag v-if="scope.row.isFinish == 1" effect="plain">已竣工</el-tag>
<el-tag type="warning" v-if="scope.row.isFinish == 0" effect="plain">未竣工</el-tag>
</template>
</el-table-column>
<el-table-column label="竣工日期" align="center" prop="actualEndDate" :show-overflow-tooltip="true"/>
</el-table>
<pagination
@ -122,7 +140,12 @@ export default {
dateRange: null,
startTime: null,
endTime: null,
isFinish: null,
},
proStatus:[
{ id: 0, name: '未竣工' },
{ id: 1, name: '已竣工' },
],
}
},
created() {

View File

@ -38,11 +38,11 @@
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery" >重置</el-button>
<el-button type="success" icon="el-icon-download" size="mini" @click="exportExcel" :disabled="tableList.length === 0">导出Excel</el-button>
<el-button type="info" icon="el-icon-document-copy" size="mini" @click="showHistoryReportDialog">查看历史报表</el-button>
<el-button
type="success"
icon="el-icon-download"
size="mini"
@click="exportZip"
<el-button
type="success"
icon="el-icon-download"
size="mini"
@click="exportZip"
:disabled="!canDownload"
:loading="isExporting">
{{ exportButtonText }}
@ -604,7 +604,7 @@ import {
getUnitList,
getAgreementInfoById, getUnitListFilterTeam,
} from '@/api/back/index.js'
import {getSltList, costExamine, getSltReportedList, getSltReportList, getHistoryReportList,
import {getSltList, costExamine, getSltReportedList, getSltReportList, getHistoryReportList,
getHistoryLeaseCostDetails, getHistoryRepairCostDetails, getHistoryLoseCostDetails, getHistoryScrapCostDetails,
getExportZipUnsettled,getExportZipProgress
} from '@/api/cost/cost'
@ -929,7 +929,7 @@ export default {
this.ids.map(item => {
param.push({ agreementId: item.agreementId,settlementType:item.settlementType })
})
this.totalItems = param.length;
this.totalItems = param.length;
const taskId = null
const payload = {
@ -946,7 +946,7 @@ export default {
console.error('未结算批量明细导出失败', err);
this.handleDownloadError(err);
}
},
/** 初始化下载状态 */