shish 4 lat temu
rodzic
commit
20c857c0f8
1 zmienionych plików z 6 dodań i 1 usunięć
  1. 6 1
      hdApp/src/admin/home/workbench.vue

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

@@ -153,7 +153,12 @@ export default {
     },
     },
     goCg(){
     goCg(){
       // #ifdef MP-WEIXIN
       // #ifdef MP-WEIXIN
-      this.$util.pageTo({url:'/pagesPurchase/order'})
+        //只有一个供应商,点采购直接去这个供应商的采购页
+        if(this.dictInfo.shop && this.dictInfo.shop.hasManyGhs == 0 && Number(this.dictInfo.shop.uniGhsId) > 0){
+          this.$util.pageTo({url:'/pagesPurchase/ghsProduct?id='+this.dictInfo.shop.uniGhsId})
+        }else{
+          this.$util.pageTo({url:'/pagesPurchase/order'})
+        }
       // #endif
       // #endif
       // #ifdef APP-PLUS
       // #ifdef APP-PLUS
       let that = this
       let that = this