From e450b6f4c03f6d645144971e43c99b96a812e5ca Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=83=91=E6=98=8E=E6=A2=81?= <2429105222@qq.com>
Date: Tue, 25 Jul 2023 17:10:51 +0800
Subject: [PATCH] =?UTF-8?q?=E7=94=B3=E8=B4=AD=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../purchase/purApply/pureApplyAudit.vue | 113 +++++++-----------
.../purchase/purApply/pureApplySearch.vue | 70 +++++------
2 files changed, 79 insertions(+), 104 deletions(-)
diff --git a/src/views/purchase/purApply/pureApplyAudit.vue b/src/views/purchase/purApply/pureApplyAudit.vue
index 570c187c..8211b466 100644
--- a/src/views/purchase/purApply/pureApplyAudit.vue
+++ b/src/views/purchase/purApply/pureApplyAudit.vue
@@ -9,37 +9,40 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ {{ item.name }}
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
@@ -52,48 +55,20 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -111,8 +86,8 @@
:default-sort="defaultSort" @sort-change="handleSortChange">
-
-
+
+
{{ emergencyMap[scope.row.emergency] }}
diff --git a/src/views/purchase/purApply/pureApplySearch.vue b/src/views/purchase/purApply/pureApplySearch.vue
index 29477eda..414b7cb1 100644
--- a/src/views/purchase/purApply/pureApplySearch.vue
+++ b/src/views/purchase/purApply/pureApplySearch.vue
@@ -9,33 +9,36 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
@@ -61,9 +64,6 @@
-
-
-
import pureApplyDetail from "./pureApplyDetailDialog";
import {delApply, auditOrder, listApplyDetail, auditListApply} from "@/api/purchase/purApply";
-import {getInvListByUser} from "@/api/system/invWarehouse";
+import {filterAll, getInvListByUser} from "@/api/system/invWarehouse";
import {getDeptListByUser} from "@/api/auth/authDept";
import {filterSubAll} from "@/api/system/invSubWarehouse";
@@ -463,11 +463,11 @@ export default {
})
},
getDeptList() {
- getDeptListByUser().then((res) => {
+ filterAll().then((res) => {
this.deptList = res.data || [];
if (this.deptList.length > 0) {
- this.filterQuery.targetDeptCode = this.deptList[0].code
- this.invCodebe = this.filterQuery.targetDeptCode
+ this.filterQuery.deptCode = this.deptList[0].code
+ this.invCodebe = this.filterQuery.deptCode
}
this.getList();
this.getInvList();
@@ -495,7 +495,7 @@ export default {
}
,
created() {
- this.getList();
+ this.getDeptList();
}
,
}