shish 1 год назад
Родитель
Сommit
18b4c1ff4b
2 измененных файлов с 14 добавлено и 0 удалено
  1. 4 0
      hdApp/src/api/admin/index.js
  2. 10 0
      hdApp/src/pagesPurchase/order.vue

+ 4 - 0
hdApp/src/api/admin/index.js

@@ -27,4 +27,8 @@ export const replaceClientId = data => {
 
 export const modifyPassword = data => {
 	return https.get("/admin/modify-password", data);
+};
+
+export const hasNotice = data => {
+	return https.get("/admin/has-notice", data);
 };

+ 10 - 0
hdApp/src/pagesPurchase/order.vue

@@ -139,6 +139,7 @@ import { mapGetters } from "vuex";
 import emptyComponent from "@/components/empty";
 import { ghsList } from "@/api/purchase";
 import { changeDelStatus } from "@/api/ghs";
+import { hasNotice } from "@/api/admin";
 export default {
   components: {
     emptyComponent
@@ -259,6 +260,15 @@ export default {
         this.supplierList = res.data.list
         this.ad = res.data.ad ? res.data.ad : []
         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=>{
+            })
+          })
+        }
+
       })
     },
     settleAccounts (item) {