|
@@ -196,7 +196,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
-import { mapGetters, mapState } from "vuex";
|
|
|
|
|
|
|
+import { mapGetters } from "vuex";
|
|
|
import { getWeixinId } from "@/api/invite";
|
|
import { getWeixinId } from "@/api/invite";
|
|
|
import { getStat,getStrokeCount } from '@/api/console'
|
|
import { getStat,getStrokeCount } from '@/api/console'
|
|
|
import { consoleIndex } from "@/api/workbench";
|
|
import { consoleIndex } from "@/api/workbench";
|
|
@@ -364,12 +364,27 @@ export default {
|
|
|
this.pageTo({url:'/pagesPurchase/addCg?ghsId='+item.id+'&ghsName='+item.name})
|
|
this.pageTo({url:'/pagesPurchase/addCg?ghsId='+item.id+'&ghsName='+item.name})
|
|
|
},
|
|
},
|
|
|
enterShop(item) {
|
|
enterShop(item) {
|
|
|
|
|
+ let that = this
|
|
|
if(item.isOpen == 0){
|
|
if(item.isOpen == 0){
|
|
|
this.$msg('已休店,请选择其它门店')
|
|
this.$msg('已休店,请选择其它门店')
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
|
- const { id } = item
|
|
|
|
|
- this.pageTo({url: '/pagesPurchase/ghsProduct?id='+id})
|
|
|
|
|
|
|
+ if(this.dictInfo && this.dictInfo.subscribeMessage && this.dictInfo.subscribeMessage == 1 && this.dictInfo.hdMiniMessage && this.dictInfo.hdMiniMessage.giveCoupon){
|
|
|
|
|
+ uni.requestSubscribeMessage({
|
|
|
|
|
+ tmplIds: [this.dictInfo.hdMiniMessage.giveCoupon.msgId,this.dictInfo.hdMiniMessage.cgSuccess.msgId],
|
|
|
|
|
+ success(res) {
|
|
|
|
|
+ console.log(res)
|
|
|
|
|
+ },
|
|
|
|
|
+ fail(err) {
|
|
|
|
|
+ console.log(err)
|
|
|
|
|
+ },
|
|
|
|
|
+ complete() {
|
|
|
|
|
+ that.pageTo({url: '/pagesPurchase/ghsProduct?id='+item.id})
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }else{
|
|
|
|
|
+ that.pageTo({url: '/pagesPurchase/ghsProduct?id='+item.id})
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
settleAccounts (item) {
|
|
settleAccounts (item) {
|
|
|
this.pageTo({ url: '/pagesPurchase/gathering?id='+item.id})
|
|
this.pageTo({ url: '/pagesPurchase/gathering?id='+item.id})
|
|
@@ -385,20 +400,6 @@ export default {
|
|
|
},
|
|
},
|
|
|
goGd(){
|
|
goGd(){
|
|
|
|
|
|
|
|
- // uni.requestSubscribeMessage({
|
|
|
|
|
- // tmplIds: ['dtzw008ZnN41VYRrLrpvZAJHJw-_2pLb9UVanNOatS0','ZfCmPfD96W_H0-pWDyQHCJQC5ht41NXtTS8nP28xKQQ'],
|
|
|
|
|
- // success(res) {
|
|
|
|
|
- // console.log(res)
|
|
|
|
|
- // },
|
|
|
|
|
- // fail(err) {
|
|
|
|
|
- // //消息订阅调起失败
|
|
|
|
|
- // },
|
|
|
|
|
- // complete() {
|
|
|
|
|
- // // 无论确定还是取消,只要点击按钮后都会执行
|
|
|
|
|
- // },
|
|
|
|
|
- // })
|
|
|
|
|
- //return false
|
|
|
|
|
-
|
|
|
|
|
//选择花材生成制作单和订单
|
|
//选择花材生成制作单和订单
|
|
|
this.$util.pageTo({url:'/admin/order/workOrder'})
|
|
this.$util.pageTo({url:'/admin/order/workOrder'})
|
|
|
},
|
|
},
|