shish 1 rok temu
rodzic
commit
1111fd149d

+ 10 - 1
hdApp/src/admin/home/workbench.vue

@@ -290,7 +290,7 @@ import { ghsList } from "@/api/purchase";
 import { changeDelStatus } from "@/api/ghs";
 import { changeDelStatus } from "@/api/ghs";
 import {currentShop} from "@/api/shop";
 import {currentShop} from "@/api/shop";
 import { openPfFn } from "@/api/apply";
 import { openPfFn } from "@/api/apply";
-import { clearLogin } from "@/api/admin";
+import { clearLogin,hasNotice } from "@/api/admin";
 export default {
 export default {
   name: "workbench",
   name: "workbench",
   components: { NotLogin,emptyComponent },
   components: { NotLogin,emptyComponent },
@@ -572,6 +572,15 @@ export default {
         this.supplierList = res.data.list
         this.supplierList = res.data.list
         this.ad = res.data.ad ? res.data.ad : []
         this.ad = res.data.ad ? res.data.ad : []
         this.showAd = res.data.showAd ? res.data.showAd : 0
         this.showAd = res.data.showAd ? res.data.showAd : 0
+
+        let needNotice = res.data.needNotice ? res.data.needNotice : 0
+        if(needNotice == 1){
+          this.$util.confirmModal({content:'你已有多个供货商,下单时注意区别,不要下错了哦',okText:'知道了'},() => {
+            hasNotice().then(res=>{
+            })
+          })
+        }
+
       })
       })
     },
     },
     goGd(){
     goGd(){

+ 1 - 1
hdApp/src/pagesPurchase/order.vue

@@ -263,7 +263,7 @@ export default {
 
 
         let needNotice = res.data.needNotice ? res.data.needNotice : 0
         let needNotice = res.data.needNotice ? res.data.needNotice : 0
         if(needNotice == 1){
         if(needNotice == 1){
-          this.$util.confirmModal({content:'你已有多供货商,下单时注意区别,不要下错了哦',okText:'知道了'},() => {
+          this.$util.confirmModal({content:'你已有多供货商,下单时注意区别,不要下错了哦',okText:'知道了'},() => {
             hasNotice().then(res=>{
             hasNotice().then(res=>{
             })
             })
           })
           })