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

@ -87,6 +87,17 @@
clearable :maxlength="20"
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>
@ -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

@ -42,6 +42,17 @@
:picker-options="{ disabledDate: (t) => t.getTime() < new Date(queryParams.startTime).getTime() - 86400000}"
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>
@ -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

@ -42,6 +42,17 @@
:picker-options="{ disabledDate: (t) => t.getTime() < new Date(queryParams.startTime).getTime() - 86400000}"
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>
@ -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() {