Przeglądaj źródła

开始改动之前

shish 3 lat temu
rodzic
commit
c57bd7b5d7

+ 0 - 33
hdApp/src/admin/home/workbench.vue

@@ -119,45 +119,14 @@ export default {
       kdSrc: `${this.$constant.imgUrl}/ghs/home/kd.png`
     };
   },
-  onShareAppMessage (res) {
-      return {
-        title: "",
-        desc: "",
-        imageUrl: "",
-        path: ""
-      };
-  },
   computed: {
     ...mapGetters({ loginInfo: "getLoginInfo",dictInfo:"getDictionariesInfo" })
-  },
-	watch: {
-		//纯花店打开直接跳转到采购页
-		loginInfo(newVal) {
-			if(!this.$util.isEmpty(newVal.onlyCg)){
-        if(Number(newVal.onlyCg) == 1){
-          uni.reLaunch({ url: '/pagesPurchase/order' })
-        }
-	    }
-		}
-	},
-  onLoad () {
-
   },
   onPullDownRefresh () {
     this.init();
     uni.stopPullDownRefresh();
   },
   onShow () {
-
-      //纯花店打开直接跳转到采购页
-      if(!this.$util.isEmpty(this.loginInfo)){
-        if(!this.$util.isEmpty(this.loginInfo.onlyCg)){
-          if(Number(this.loginInfo.onlyCg) == 1){
-            uni.reLaunch({ url: '/pagesPurchase/order' })
-          }
-        }
-      }
-
       getShopInfo().then(res => {
         if(res.name){
           uni.setNavigationBarTitle({ title: res.name })
@@ -169,12 +138,10 @@ export default {
   methods: {
     goGd(){
       //选择花材生成制作单和订单
-      //this.$util.pageTo({url:'/admin/order/addOrder'})
       this.$util.pageTo({url:'/admin/order/workOrder'})
     },
     goCg(){
       // #ifdef MP-WEIXIN
-        //只有一个供应商,点采购直接去这个供应商的采购页
         this.$util.pageTo({url:'/pagesPurchase/order'})      
       // #endif
       // #ifdef APP-PLUS

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

@@ -34,7 +34,7 @@
 <script>
 import OrderItem from "./orderItem";
 import AppWrapperEmpty from "@/components/app-wrapper-empty";
-import { ghsList, purchaseList } from "@/api/purchase/index";
+import { ghsList } from "@/api/purchase/index";
 import { bcGhs } from "@/api/ghs/index";
 export default {
   components: {