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