资产存放位置完成
This commit is contained in:
parent
781b5fb7f0
commit
0442e46353
@ -42,6 +42,15 @@ export function getPropertyPosPage(params) {
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
// 获得企业管理-资产存放位置列表
|
||||
export function getPropertyPosList() {
|
||||
return request({
|
||||
url: '/company/property-pos/list',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出企业管理-资产存放位置 Excel
|
||||
export function exportPropertyPosExcel(params) {
|
||||
return request({
|
||||
|
@ -58,8 +58,6 @@ export default {
|
||||
// 表单参数
|
||||
formData: {
|
||||
id: undefined,
|
||||
corpId: undefined,
|
||||
deptId: undefined,
|
||||
posName: undefined,
|
||||
address: undefined,
|
||||
area: undefined,
|
||||
@ -120,8 +118,6 @@ export default {
|
||||
reset() {
|
||||
this.formData = {
|
||||
id: undefined,
|
||||
corpId: undefined,
|
||||
deptId: undefined,
|
||||
posName: undefined,
|
||||
address: undefined,
|
||||
area: undefined,
|
||||
|
@ -39,7 +39,7 @@
|
||||
<el-table-column label="所属企业" align="center" prop="corpName" />
|
||||
<el-table-column label="存放地名称" align="center" prop="posName" />
|
||||
<el-table-column label="存放地地址" align="center" prop="address" />
|
||||
<el-table-column label="面积" align="center" prop="area" />
|
||||
<el-table-column label="面积(㎡)" align="center" prop="area" />
|
||||
<el-table-column label="存放类型" align="center" prop="depositType">
|
||||
<template v-slot="scope">
|
||||
<dict-tag :type="DICT_TYPE.COMPANY_DEPOSIT_TYPE" :value="scope.row.depositType" />
|
||||
@ -106,6 +106,7 @@ export default {
|
||||
async getList() {
|
||||
try {
|
||||
this.loading = true;
|
||||
const res1 = await PropertyPosApi.getPropertyPosList();
|
||||
const res = await PropertyPosApi.getPropertyPosPage(this.queryParams);
|
||||
this.list = res.data.records;
|
||||
this.total = res.data.total;
|
||||
@ -130,7 +131,7 @@ export default {
|
||||
/** 删除按钮操作 */
|
||||
async handleDelete(row) {
|
||||
const id = row.id;
|
||||
await this.$modal.confirm('是否确认删除企业管理-资产存放位置编号为"' + id + '"的数据项?')
|
||||
await this.$modal.confirm('是否确认删除数据?')
|
||||
try {
|
||||
await PropertyPosApi.deletePropertyPos(id);
|
||||
await this.getList();
|
||||
@ -139,7 +140,7 @@ export default {
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
async handleExport() {
|
||||
await this.$modal.confirm('是否确认导出所有企业管理-资产存放位置数据项?');
|
||||
await this.$modal.confirm('是否确认导出所有资产存放位置数据项?');
|
||||
try {
|
||||
this.exportLoading = true;
|
||||
const data = await PropertyPosApi.exportPropertyPosExcel(this.queryParams);
|
||||
|
Loading…
Reference in New Issue
Block a user