资产处置查询

This commit is contained in:
xiao-fajia 2024-08-17 09:50:27 +08:00
parent 7901160e1b
commit 9d930376cc
2 changed files with 74 additions and 64 deletions

View File

@ -34,7 +34,7 @@ export function getPropertyDealItem(id) {
})
}
// 获得企业管理-资产处置子分页
// 获得企业管理-资产处置子分页
export function getPropertyDealItemPage(params) {
return request({
url: '/company/property-deal-item/page',
@ -42,6 +42,7 @@ export function getPropertyDealItemPage(params) {
params
})
}
// 导出企业管理-资产处置子 Excel
export function exportPropertyDealItemExcel(params) {
return request({

View File

@ -45,18 +45,22 @@
}}</span>
</template>
</el-table-column>
<el-table-column label="处置单号" align="center" prop="dealNo" />
<el-table-column label="处置单号" align="center" prop="propertyDeal.dealNo" width="180" />
<el-table-column label="处置方式" align="center" prop="dealWay">
<template v-slot="scope">
<dict-tag :type="DICT_TYPE.COMPANY_DEAL_WAY" :value="scope.row.dealWay" />
</template>
</el-table-column>
<el-table-column label="资产编号" align="center" prop="propNo" />
<el-table-column label="资产名称" align="center" prop="propName" />
<el-table-column label="价值类型" align="center" prop="costType" />
<el-table-column label="资产原值(元)" align="center" prop="costTotal" />
<el-table-column label="净值(元)" align="center" prop="netValue" />
<el-table-column label="处置时间" align="center" prop="dealDate" />
<el-table-column label="资产编号" align="center" prop="property.propNo" />
<el-table-column label="资产名称" align="center" prop="property.propName" />
<el-table-column label="价值类型" align="center" prop="property.costType">
<template v-slot="scope">
<dict-tag :type="DICT_TYPE.COMPANY_COST_TYPE" :value="scope.row.property.costType"/>
</template>
</el-table-column>
<el-table-column label="资产原值(元)" align="center" prop="property.costTotal" />
<el-table-column label="净值(元)" align="center" prop="property.netValue" />
<el-table-column label="处置时间" align="center" prop="propertyDeal.dealDate" />
<el-table-column fixed="right" label="操作" align="center" class-name="small-padding fixed-width" width="200">
<template v-slot="scope">
<el-button size="mini" type="text" icon="el-icon-edit" @click="openForm(scope.row.id)"
@ -78,6 +82,7 @@
<script>
import PropertyDealDisposalForm from '@/views/company/property/propertyDealDisposal/form/PropertyDealDisposalForm'
import * as PropertyDealItemApi from '@/api/company/property/propertydealitem'
export default {
name: 'PropertyDealDisposal',
@ -107,14 +112,18 @@ export default {
}
}
},
created() {
this.getList()
},
methods: {
/** 查询列表 */
async getList() {
try {
// this.loading = true;
// const res = await PropertyDealItemApi.getPropertyDealItemPage(this.queryParams);
// this.list = res.data.records;
// this.total = res.data.total;
this.loading = true;
const res = await PropertyDealItemApi.getPropertyDealItemPage(this.queryParams);
console.log(res)
this.list = res.data.records;
this.total = res.data.total;
} finally {
this.loading = false;
}