From 5888e32fb99675ac64a4c25ee66d1909083b1c02 Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期三, 20 十二月 2023 19:34:24 +0800
Subject: [PATCH] jwt为空时跳转至aps登录页

---
 src/views/purchaseManage/purchase/components/AddPurchase.vue |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/views/purchaseManage/purchase/components/AddPurchase.vue b/src/views/purchaseManage/purchase/components/AddPurchase.vue
index f782552..066be0a 100644
--- a/src/views/purchaseManage/purchase/components/AddPurchase.vue
+++ b/src/views/purchaseManage/purchase/components/AddPurchase.vue
@@ -54,7 +54,7 @@
                   >
                     <el-option
                       v-for="ele in plcBrandList"
-                      :key="ele.name"
+                      :key="ele.purchaseTypeId"
                       :label="ele.name"
                       :value="ele.id"
                     ></el-option>
@@ -373,6 +373,7 @@
     }
   },
   created() {
+    console.log(this.editConfig,"鍙傛暟")
     this.handleGetBomKindDictList()
     this.$store.dispatch("getSupplier")
     this.formInfo()
@@ -446,13 +447,15 @@
         this.plcBrandList = res.data
         this.setTableForm()
         if (val) {
+          // this.plcBrandList.map((item)=>{
+          //   item.purchaseTypeId=item.id
+          // })
           for (let i in this.plcBrandList) {
             if (this.plcBrandList[i][this.editRow.isDefault]) {
               this.editConfig.infomation.purchaseTypeId = this.editConfig.infomation.purchaseTypeId
                 ? this.editConfig.infomation.purchaseTypeId
                 : this.plcBrandList[i].id
               this.$set(this.editConfig.infomation, "purchaseTypeId", this.editConfig.infomation.purchaseTypeId)
-
               break
             }
           }

--
Gitblit v1.8.0