From d58d6ff3ca564f430e50659c111b4cac572cbb2f Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Wed, 25 Dec 2024 18:02:54 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=BC=E5=90=88=E6=9F=A5=E8=AF=A2=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/stquery/stquery.js | 41 ++- src/views/material/lease/outBound/index.vue | 3 + .../material/purchase/goodsEntry/index.vue | 3 + .../repair/repairManage/component/home.vue | 5 +- .../repair/testedInBound/component/home.vue | 3 + src/views/material/stquery/deviceInBound.vue | 17 +- src/views/material/stquery/deviceOutBound.vue | 13 +- .../material/stquery/deviceStatusRecord.vue | 235 +++++++++++++----- 8 files changed, 254 insertions(+), 66 deletions(-) diff --git a/src/api/stquery/stquery.js b/src/api/stquery/stquery.js index 1275caf6..7ecfde38 100644 --- a/src/api/stquery/stquery.js +++ b/src/api/stquery/stquery.js @@ -63,7 +63,46 @@ export function getOutRecordListApi(query) { } - + // 在库详情查询 + export function getStorageInfoListApi(query) { + return request({ + url: '/material/complex_query/getStorageInfoList', + method: 'get', + params: query + }) + } + // 在用详情查询 + export function getUserRecordListApi(query) { + return request({ + url: '/material/complex_query/getUserRecordList', + 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 + }) + } diff --git a/src/views/material/lease/outBound/index.vue b/src/views/material/lease/outBound/index.vue index d3019454..30692e90 100644 --- a/src/views/material/lease/outBound/index.vue +++ b/src/views/material/lease/outBound/index.vue @@ -949,6 +949,9 @@ export default { }; }, created() { + if(this.$route.query.code){ + this.queryParams.keyWord=this.$route.query.code + } this.getList(); }, diff --git a/src/views/material/purchase/goodsEntry/index.vue b/src/views/material/purchase/goodsEntry/index.vue index 535df2fc..069e2585 100644 --- a/src/views/material/purchase/goodsEntry/index.vue +++ b/src/views/material/purchase/goodsEntry/index.vue @@ -375,6 +375,9 @@ export default { } }, created() { + if(this.$route.query.code){ + this.queryParams.keyWord=this.$route.query.code + } this.getList() }, methods: { diff --git a/src/views/material/repair/repairManage/component/home.vue b/src/views/material/repair/repairManage/component/home.vue index ad4bfc72..98b2e5ff 100644 --- a/src/views/material/repair/repairManage/component/home.vue +++ b/src/views/material/repair/repairManage/component/home.vue @@ -512,7 +512,10 @@ export default { } }, created() { - this.getList(); + if(this.$route.query.code){ + this.queryParams.keyWord=this.$route.query.code + } + this.getList(); // this.initSelectData() // this.InitIGetInfo() }, diff --git a/src/views/material/repair/testedInBound/component/home.vue b/src/views/material/repair/testedInBound/component/home.vue index af2100c0..fb74466d 100644 --- a/src/views/material/repair/testedInBound/component/home.vue +++ b/src/views/material/repair/testedInBound/component/home.vue @@ -186,6 +186,9 @@ export default { }; }, created() { + if(this.$route.query.code){ + this.queryParams.keyWord=this.$route.query.code + } this.getList(); }, components: {}, diff --git a/src/views/material/stquery/deviceInBound.vue b/src/views/material/stquery/deviceInBound.vue index 8808bc6a..21d334e5 100644 --- a/src/views/material/stquery/deviceInBound.vue +++ b/src/views/material/stquery/deviceInBound.vue @@ -91,7 +91,12 @@ - + + + @@ -199,7 +204,15 @@ export default { }, `综合查询_入库记录_${new Date().getTime()}.xlsx`, ) - }, + }, + // 跳转新购待入库 + jumpInput(code){ + this.$router.push({ path: "/purchase/goodsEntry", query: {'code':code} }); + }, + // 跳转修试后入库 + jumpRepairInput(code){ + this.$router.push({ path: "/repair/testedInBound", query: {'code':code} }); + }, }, } diff --git a/src/views/material/stquery/deviceOutBound.vue b/src/views/material/stquery/deviceOutBound.vue index a3c8c555..ca5c15d0 100644 --- a/src/views/material/stquery/deviceOutBound.vue +++ b/src/views/material/stquery/deviceOutBound.vue @@ -117,7 +117,13 @@ - + + + @@ -163,19 +163,27 @@ @click="handleDialogQuery" >查询 + + 导出 + - - + + + - - - - + + + + 查询 + + 导出 + @@ -211,13 +226,20 @@ :index="indexContinuation(dialogUseQuery.pageNum, dialogUseQuery.pageSize)"> - - + + + - - - - + + + + + + 查询 + + 导出 + @@ -254,13 +283,20 @@ :index="indexContinuation(dialogRepairQuery.pageNum, dialogRepairQuery.pageSize)"> - - + + + - - - - + + + + + + - - + @@ -291,6 +326,13 @@ @click="handleDialogPurchaseQuery" >查询 + + 导出 + @@ -298,13 +340,20 @@ :index="indexContinuation(dialogPurchaseQuery.pageNum, dialogPurchaseQuery.pageSize)"> - - + + + - + - - + + + + - + @@ -334,6 +383,13 @@ @click="handleDialogTestedQuery" >查询 + + 导出 + @@ -341,13 +397,20 @@ :index="indexContinuation(dialogTestedQuery.pageNum, dialogTestedQuery.pageSize)"> - - + + + - - - - + + + + + + { + getStorageInfoListApi(this.dialogQuery).then((response) => { this.dialogList = response.data.rows this.dialogTotal = response.data.total }) @@ -567,17 +648,24 @@ export default { this.queryParams.pageNum = 1 this.getStoreCodeList() }, + handleDialogStoreExport() { + this.download( + 'material/complex_query/exportStorageInfoList', + { ...this.dialogTestedQuery}, + `综合查询_在库设备_${new Date().getTime()}.xlsx`, + ) + }, // ------------------ //查看在用设备 openUserRecords(row) { this.openUseRecord = true - // this.dialogUseQuery.typeId= row.typeId + this.dialogUseQuery.typeId= row.typeId this.dialogUseQuery.keyWord = ""; this.getUserRecords() }, /** 查询在用设备列表 */ getUserRecords() { - getUserRecords(this.dialogUseQuery).then((response) => { + getUserRecordListApi(this.dialogUseQuery).then((response) => { this.useRecordList = response.data.rows this.dialogUserTotal = response.data.total }) @@ -587,18 +675,25 @@ export default { this.dialogUseQuery.pageNum = 1 this.getUserRecords() }, + handleDialogUserExport() { + this.download( + 'material/complex_query/exportUserRecordList', + { ...this.dialogTestedQuery}, + `综合查询_在用设备_${new Date().getTime()}.xlsx`, + ) + }, // ------------------ //查看在修设备 openRepairRecords(row) { this.openRepairRecord = true - // this.dialogUseQuery.typeId= row.typeId + this.dialogRepairQuery.typeId= row.typeId this.dialogRepairQuery.pageNum = 1; this.dialogRepairQuery.keyWord = ""; this.getRepairRecords() }, /** 查询在修设备列表 */ getRepairRecords() { - getRepairRecordApi(this.dialogRepairQuery).then((response) => { + getRepairRecordListApi(this.dialogRepairQuery).then((response) => { this.repairRecordList = response.data.rows this.dialogRepairTotal = response.data.total }) @@ -608,18 +703,25 @@ export default { this.dialogRepairQuery.pageNum = 1 this.getRepairRecords() }, + handleDialogRepairExport() { + this.download( + 'material/complex_query/exportRepairRecordList', + { ...this.dialogTestedQuery}, + `综合查询_在修设备_${new Date().getTime()}.xlsx`, + ) + }, // ------------------ //查看新购入库设备 openPurchaseRecords(row) { this.openPurchaseRecord = true - // this.dialogUseQuery.typeId= row.typeId + this.dialogPurchaseQuery.typeId= row.typeId this.dialogPurchaseQuery.pageNum = 1; this.dialogPurchaseQuery.keyWord = ""; this.getPurchaseRecords() }, /** 查询新购入库设备列表 */ getPurchaseRecords() { - getPurchaseRecordApi(this.dialogPurchaseQuery).then((response) => { + getPurchaseRecordListApi(this.dialogPurchaseQuery).then((response) => { this.purchaseRecordList = response.data.rows this.dialogPurchaseTotal = response.data.total }) @@ -629,18 +731,25 @@ export default { this.dialogPurchaseQuery.pageNum = 1 this.getPurchaseRecords() }, + handleDialogPurchaseExport() { + this.download( + 'material/complex_query/exportPurchaseRecordList', + { ...this.dialogTestedQuery}, + `综合查询_新购入库设备_${new Date().getTime()}.xlsx`, + ) + }, // ------------------ //查看修试入库设备 openTestedRecords(row) { this.openTestedRecord = true - // this.dialogUseQuery.typeId= row.typeId + this.dialogTestedQuery.typeId= row.typeId this.dialogTestedQuery.pageNum = 1; this.dialogTestedQuery.keyWord = ""; this.getTestedRecords() }, /** 查询修试入库设备列表 */ getTestedRecords() { - getTestedRecordApi(this.dialogTestedQuery).then((response) => { + getRepairInputListApi(this.dialogTestedQuery).then((response) => { this.testedRecordList = response.data.rows this.dialogTestedTotal = response.data.total }) @@ -650,7 +759,13 @@ export default { this.dialogTestedQuery.pageNum = 1 this.getTestedRecords() }, - + handleDialogTestedExport() { + this.download( + 'material/complex_query/exportRepairInputList', + { ...this.dialogTestedQuery}, + `综合查询_修试后入库设备_${new Date().getTime()}.xlsx`, + ) + }, }, }