shish %!s(int64=4) %!d(string=hai) anos
pai
achega
20c857c0f8
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      hdApp/src/admin/home/workbench.vue

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

@@ -153,7 +153,12 @@ export default {
     },
     goCg(){
       // #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
       // #ifdef APP-PLUS
       let that = this