|
|
@@ -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
|