This commit is contained in:
parent
71f6bba93f
commit
a6a5ba5cce
|
|
@ -88,6 +88,17 @@
|
||||||
style="width: 220px"
|
style="width: 220px"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</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-form-item>
|
||||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery" >查询</el-button>
|
<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>
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery" >重置</el-button>
|
||||||
|
|
@ -122,6 +133,13 @@
|
||||||
{{ (scope.row.buyPrice * scope.row.num).toFixed(2) }}
|
{{ (scope.row.buyPrice * scope.row.num).toFixed(2) }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</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>
|
</el-table>
|
||||||
|
|
||||||
<pagination
|
<pagination
|
||||||
|
|
@ -177,9 +195,14 @@ export default {
|
||||||
typeName: null,
|
typeName: null,
|
||||||
modelName: null,
|
modelName: null,
|
||||||
keyWord: null,
|
keyWord: null,
|
||||||
|
isFinish: null,
|
||||||
},
|
},
|
||||||
typeNameOptions:[],
|
typeNameOptions:[],
|
||||||
typeModelNameOptions:[],
|
typeModelNameOptions:[],
|
||||||
|
proStatus:[
|
||||||
|
{ id: 0, name: '未竣工' },
|
||||||
|
{ id: 1, name: '已竣工' },
|
||||||
|
],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
@ -331,8 +354,8 @@ export default {
|
||||||
getList() {
|
getList() {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
getLostReportList(this.queryParams).then((response) => {
|
getLostReportList(this.queryParams).then((response) => {
|
||||||
this.tableList = response.rows || []
|
this.tableList = response.data.rows || []
|
||||||
this.total = response.total
|
this.total = response.data.total
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.error('获取丢失费用报表失败:', error)
|
console.error('获取丢失费用报表失败:', error)
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,17 @@
|
||||||
style="width: 130px"
|
style="width: 130px"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</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-form-item>
|
||||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery" >查询</el-button>
|
<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>
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery" >重置</el-button>
|
||||||
|
|
@ -73,6 +84,13 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="维修方式" align="center" prop="repairType" width="120" />
|
<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="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>
|
</el-table>
|
||||||
|
|
||||||
<pagination
|
<pagination
|
||||||
|
|
@ -124,7 +142,12 @@ export default {
|
||||||
dateRange: null,
|
dateRange: null,
|
||||||
startTime: null,
|
startTime: null,
|
||||||
endTime: null,
|
endTime: null,
|
||||||
|
isFinish: null,
|
||||||
},
|
},
|
||||||
|
proStatus:[
|
||||||
|
{ id: 0, name: '未竣工' },
|
||||||
|
{ id: 1, name: '已竣工' },
|
||||||
|
],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,17 @@
|
||||||
style="width: 130px"
|
style="width: 130px"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</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-form-item>
|
||||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery" >查询</el-button>
|
<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>
|
<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' }}
|
{{ scope.row.costs ? scope.row.costs.toFixed(2) : '0.00' }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</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>
|
</el-table>
|
||||||
|
|
||||||
<pagination
|
<pagination
|
||||||
|
|
@ -122,7 +140,12 @@ export default {
|
||||||
dateRange: null,
|
dateRange: null,
|
||||||
startTime: null,
|
startTime: null,
|
||||||
endTime: null,
|
endTime: null,
|
||||||
|
isFinish: null,
|
||||||
},
|
},
|
||||||
|
proStatus:[
|
||||||
|
{ id: 0, name: '未竣工' },
|
||||||
|
{ id: 1, name: '已竣工' },
|
||||||
|
],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue