From d1c404535b4ec25c761372f1ad38288971d832eb Mon Sep 17 00:00:00 2001 From: bb_pan Date: Fri, 27 Jun 2025 13:55:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/materialsStation/index.js | 49 +----- .../equipment/equipmentRecord/index.vue | 145 ------------------ 2 files changed, 2 insertions(+), 192 deletions(-) diff --git a/src/api/materialsStation/index.js b/src/api/materialsStation/index.js index 3e01f290..36ad3c76 100644 --- a/src/api/materialsStation/index.js +++ b/src/api/materialsStation/index.js @@ -509,7 +509,7 @@ export function getRetainedEquipmentListNoPageApi(query) { // 在用详情查询 export function getUserRecordListApi(query) { return request({ - url: '/material/complex_query/getUserRecordList', + url: '/material/material_maMachine/getUserRecordList', method: 'get', params: query }) @@ -518,52 +518,7 @@ export function getUserRecordListApi(query) { // 在库详情查询 export function getStorageInfoListApi(query) { return request({ - url: '/material/complex_query/getStorageInfoList', - method: 'get', - params: query - }) -} - -// 在修详情查询 -export function getRepairRecordListApi(query) { - return request({ - url: '/material/complex_query/getRepairRecordList', - method: 'get', - params: query - }) -} - -// 新购待入库详情查询 -export function getPurchaseRecordListApi(query) { - return request({ - url: '/material/complex_query/getPurchaseRecordList', - method: 'get', - params: query - }) -} - -// 修饰待入库详情查询 -export function getRepairInputListApi(query) { - return request({ - url: '/material/complex_query/getRepairInputList', - method: 'get', - params: query - }) -} - -// 待报废详情查询 -export function getToScrapInputListApi(query) { - return request({ - url: '/material/complex_query/getScrapList', - method: 'get', - params: query - }) -} - -// 已审核详情查询 -export function getAuditInputListApi(query) { - return request({ - url: '/material/complex_query/getScrapAuditList', + url: '/material/material_maMachine/getStorageInfoList', method: 'get', params: query }) diff --git a/src/views/materialsStation/equipment/equipmentRecord/index.vue b/src/views/materialsStation/equipment/equipmentRecord/index.vue index 77da7056..608cd01f 100644 --- a/src/views/materialsStation/equipment/equipmentRecord/index.vue +++ b/src/views/materialsStation/equipment/equipmentRecord/index.vue @@ -197,11 +197,6 @@ import { getStorageInfoListApi, getUserRecordListApi, - getRepairRecordListApi, - getPurchaseRecordListApi, - getRepairInputListApi, - getToScrapInputListApi, - getAuditInputListApi, getRetainedEquipmentListApi, getRetainedEquipmentListNoPageApi } from '@/api/materialsStation' @@ -408,146 +403,6 @@ export default { `综合查询_在用设备_${new Date().getTime()}.xlsx` ) }, - // ------------------ - //查看在修设备 - openRepairRecords(row) { - this.openRepairRecord = true - this.dialogRepairQuery.typeId = row.typeId - this.dialogRepairQuery.pageNum = 1 - this.dialogRepairQuery.keyWord = '' - this.getRepairRecords() - }, - /** 查询在修设备列表 */ - getRepairRecords() { - getRepairRecordListApi(this.dialogRepairQuery).then(response => { - this.repairRecordList = response.data.rows - this.dialogRepairTotal = response.data.total - }) - }, - /** 搜索在修按钮操作 */ - handleDialogRepairQuery() { - this.dialogRepairQuery.pageNum = 1 - this.getRepairRecords() - }, - handleDialogRepairExport() { - this.download( - 'material/material_maMachine/exportRepairRecordList', - { ...this.dialogRepairQuery }, - `综合查询_在修设备_${new Date().getTime()}.xlsx` - ) - }, - // ------------------ - //查看新购入库设备 - openPurchaseRecords(row) { - this.openPurchaseRecord = true - this.dialogPurchaseQuery.typeId = row.typeId - this.dialogPurchaseQuery.pageNum = 1 - this.dialogPurchaseQuery.keyWord = '' - this.getPurchaseRecords() - }, - /** 查询新购入库设备列表 */ - getPurchaseRecords() { - getPurchaseRecordListApi(this.dialogPurchaseQuery).then(response => { - this.purchaseRecordList = response.data.rows - this.dialogPurchaseTotal = response.data.total - }) - }, - /** 搜索新购入库按钮操作 */ - handleDialogPurchaseQuery() { - this.dialogPurchaseQuery.pageNum = 1 - this.getPurchaseRecords() - }, - handleDialogPurchaseExport() { - this.download( - 'material/material_maMachine/exportPurchaseRecordList', - { ...this.dialogPurchaseQuery }, - `综合查询_新购入库设备_${new Date().getTime()}.xlsx` - ) - }, - // ------------------ - //查看修试入库设备 - openTestedRecords(row) { - this.openTestedRecord = true - this.dialogTestedQuery.typeId = row.typeId - this.dialogTestedQuery.pageNum = 1 - this.dialogTestedQuery.keyWord = '' - this.getTestedRecords() - }, - /** 查询修试入库设备列表 */ - getTestedRecords() { - getRepairInputListApi(this.dialogTestedQuery).then(response => { - this.testedRecordList = response.data.rows - this.dialogTestedTotal = response.data.total - }) - }, - /** 搜索修试入库按钮操作 */ - handleDialogTestedQuery() { - this.dialogTestedQuery.pageNum = 1 - this.getTestedRecords() - }, - handleDialogTestedExport() { - this.download( - 'material/material_maMachine/exportRepairInputList', - { ...this.dialogTestedQuery }, - `综合查询_修试后入库设备_${new Date().getTime()}.xlsx` - ) - }, - - //查看待报废设备 - openToScrapRecords(row) { - this.openToScrapRecord = true - this.dialogToScrapQuery.typeId = row.typeId - this.dialogToScrapQuery.pageNum = 1 - this.dialogToScrapQuery.keyWord = '' - this.getToScrapRecords() - }, - /** 查询待报废设备列表 */ - getToScrapRecords() { - getToScrapInputListApi(this.dialogToScrapQuery).then(response => { - this.toScrapRecordList = response.data.rows - this.dialogToScrapTotal = response.data.total - }) - }, - /** 搜索待报废按钮操作 */ - handleDialogToScrapQuery() { - this.dialogToScrapQuery.pageNum = 1 - this.getToScrapRecords() - }, - handleDialogToScrapExport() { - this.download( - 'material/material_maMachine/exportScrapList', - { ...this.dialogToScrapQuery }, - `综合查询_待报废设备_${new Date().getTime()}.xlsx` - ) - }, - - //查看已审核报废设备 - openAuditedRecords(row) { - this.openAuditedRecord = true - this.dialogAuditedQuery.typeId = row.typeId - this.dialogAuditedQuery.pageNum = 1 - this.dialogAuditedQuery.keyWord = '' - this.getAuditedRecords() - }, - /** 查询已审核报废设备列表 */ - getAuditedRecords() { - getAuditInputListApi(this.dialogAuditedQuery).then(response => { - this.auditedRecordList = response.data.rows - this.dialogAuditedTotal = response.data.total - }) - }, - /** 搜索已审核报废按钮操作 */ - handleDialogAuditedQuery() { - this.dialogAuditedQuery.pageNum = 1 - this.getAuditedRecords() - }, - handleDialogAuditedExport() { - this.download( - 'material/material_maMachine/exportScrapAuditList', - { ...this.dialogAuditedQuery }, - `综合查询_已审核报废设备_${new Date().getTime()}.xlsx` - ) - } } }