资产处置查询
This commit is contained in:
parent
7901160e1b
commit
9d930376cc
@ -1,53 +1,54 @@
|
|||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
|
|
||||||
// 创建企业管理-资产处置子
|
// 创建企业管理-资产处置子
|
||||||
export function createPropertyDealItem(data) {
|
export function createPropertyDealItem(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/company/property-deal-item/create',
|
url: '/company/property-deal-item/create',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 更新企业管理-资产处置子
|
// 更新企业管理-资产处置子
|
||||||
export function updatePropertyDealItem(data) {
|
export function updatePropertyDealItem(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/company/property-deal-item/update',
|
url: '/company/property-deal-item/update',
|
||||||
method: 'put',
|
method: 'put',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除企业管理-资产处置子
|
// 删除企业管理-资产处置子
|
||||||
export function deletePropertyDealItem(id) {
|
export function deletePropertyDealItem(id) {
|
||||||
return request({
|
return request({
|
||||||
url: '/company/property-deal-item/delete?id=' + id,
|
url: '/company/property-deal-item/delete?id=' + id,
|
||||||
method: 'delete'
|
method: 'delete'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获得企业管理-资产处置子
|
// 获得企业管理-资产处置子
|
||||||
export function getPropertyDealItem(id) {
|
export function getPropertyDealItem(id) {
|
||||||
return request({
|
return request({
|
||||||
url: '/company/property-deal-item/get?id=' + id,
|
url: '/company/property-deal-item/get?id=' + id,
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获得企业管理-资产处置子分页
|
// 获得企业管理-资产处置子表分页
|
||||||
export function getPropertyDealItemPage(params) {
|
export function getPropertyDealItemPage(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/company/property-deal-item/page',
|
url: '/company/property-deal-item/page',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params
|
params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 导出企业管理-资产处置子 Excel
|
|
||||||
export function exportPropertyDealItemExcel(params) {
|
// 导出企业管理-资产处置子 Excel
|
||||||
return request({
|
export function exportPropertyDealItemExcel(params) {
|
||||||
url: '/company/property-deal-item/export-excel',
|
return request({
|
||||||
method: 'get',
|
url: '/company/property-deal-item/export-excel',
|
||||||
params,
|
method: 'get',
|
||||||
responseType: 'blob'
|
params,
|
||||||
})
|
responseType: 'blob'
|
||||||
}
|
})
|
||||||
|
}
|
||||||
|
@ -45,18 +45,22 @@
|
|||||||
}}</span>
|
}}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</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">
|
<el-table-column label="处置方式" align="center" prop="dealWay">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<dict-tag :type="DICT_TYPE.COMPANY_DEAL_WAY" :value="scope.row.dealWay" />
|
<dict-tag :type="DICT_TYPE.COMPANY_DEAL_WAY" :value="scope.row.dealWay" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="资产编号" align="center" prop="propNo" />
|
<el-table-column label="资产编号" align="center" prop="property.propNo" />
|
||||||
<el-table-column label="资产名称" align="center" prop="propName" />
|
<el-table-column label="资产名称" align="center" prop="property.propName" />
|
||||||
<el-table-column label="价值类型" align="center" prop="costType" />
|
<el-table-column label="价值类型" align="center" prop="property.costType">
|
||||||
<el-table-column label="资产原值(元)" align="center" prop="costTotal" />
|
<template v-slot="scope">
|
||||||
<el-table-column label="净值(元)" align="center" prop="netValue" />
|
<dict-tag :type="DICT_TYPE.COMPANY_COST_TYPE" :value="scope.row.property.costType"/>
|
||||||
<el-table-column label="处置时间" align="center" prop="dealDate" />
|
</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">
|
<el-table-column fixed="right" label="操作" align="center" class-name="small-padding fixed-width" width="200">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<el-button size="mini" type="text" icon="el-icon-edit" @click="openForm(scope.row.id)"
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="openForm(scope.row.id)"
|
||||||
@ -78,6 +82,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import PropertyDealDisposalForm from '@/views/company/property/propertyDealDisposal/form/PropertyDealDisposalForm'
|
import PropertyDealDisposalForm from '@/views/company/property/propertyDealDisposal/form/PropertyDealDisposalForm'
|
||||||
|
import * as PropertyDealItemApi from '@/api/company/property/propertydealitem'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'PropertyDealDisposal',
|
name: 'PropertyDealDisposal',
|
||||||
@ -107,14 +112,18 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
created() {
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/** 查询列表 */
|
/** 查询列表 */
|
||||||
async getList() {
|
async getList() {
|
||||||
try {
|
try {
|
||||||
// this.loading = true;
|
this.loading = true;
|
||||||
// const res = await PropertyDealItemApi.getPropertyDealItemPage(this.queryParams);
|
const res = await PropertyDealItemApi.getPropertyDealItemPage(this.queryParams);
|
||||||
// this.list = res.data.records;
|
console.log(res)
|
||||||
// this.total = res.data.total;
|
this.list = res.data.records;
|
||||||
|
this.total = res.data.total;
|
||||||
} finally {
|
} finally {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user