|
|
@@ -25,10 +25,10 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <view style="display: flex;align-items: center;justify-content: center;width:50vw;height:60upx;
|
|
|
- background-color: white;color:black;position: absolute;bottom:0upx;border:1upx solid #CCCCCC;left:35vw;font-size:24upx;z-index:80;" v-if="mustUpdate">
|
|
|
+ <view style="display: flex;align-items: center;justify-content: center;width:56vw;height:70upx;
|
|
|
+ background-color: white;color:black;position: absolute;bottom:0upx;border:1upx solid #CCCCCC;left:33vw;font-size:25upx;z-index:80;" v-if="mustUpdate">
|
|
|
花材价格已更新,请
|
|
|
- <button class="admin-button-com mini-btn" @click="confirmRefresh" style="font-size:20upx;margin-left:10upx;margin-right:16upx;">刷新</button>
|
|
|
+ <button class="admin-button-com mini-btn" @click="confirmRefresh" style="font-size:20upx;margin-left:10upx;margin-right:28upx;">刷新</button>
|
|
|
<text @click="cancelRefresh">x</text>
|
|
|
</view>
|
|
|
|
|
|
@@ -165,7 +165,7 @@ export default {
|
|
|
this.customName = '快捷开单'
|
|
|
//要调用rightItemRef里的方法更新,不能这边直接请求product.js里方法更新,因为会造成扫码那块出问题,识别不到,关键词scan_right_item
|
|
|
this.$refs.rightItemRef.refreshMyRightItem(this.customId)
|
|
|
- this.mustUpdate = false
|
|
|
+ this.beginRemind()
|
|
|
},
|
|
|
showCustomPop(){
|
|
|
this.$refs.myCustomRef.open('top')
|
|
|
@@ -179,10 +179,9 @@ export default {
|
|
|
this.customName = info.name
|
|
|
//要调用rightItemRef里的方法更新,不能这边直接请求product.js里方法更新,因为会造成扫码那块出问题,识别不到,关键词scan_right_item
|
|
|
this.$refs.rightItemRef.refreshMyRightItem(this.customId)
|
|
|
- this.mustUpdate = false
|
|
|
+ this.beginRemind()
|
|
|
},
|
|
|
cancelRefresh(){
|
|
|
- this.mustUpdate = false
|
|
|
this.beginRemind()
|
|
|
},
|
|
|
confirmRefresh(){
|
|
|
@@ -192,6 +191,7 @@ export default {
|
|
|
beginRemind(){
|
|
|
let that = this
|
|
|
clearInterval(that.T)
|
|
|
+ this.mustUpdate = false
|
|
|
that.T = setInterval(function(){
|
|
|
checkRefresh().then(res=>{
|
|
|
if(res.code == 1){
|
|
|
@@ -201,7 +201,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
- }, 20000)
|
|
|
+ }, 30000)
|
|
|
},
|
|
|
updateRightItem(){
|
|
|
this.customId = this.getLoginInfo.skCustomId && this.getLoginInfo.skCustomId > 0 ? Number(this.getLoginInfo.skCustomId) : 0
|
|
|
@@ -209,7 +209,7 @@ export default {
|
|
|
//要调用rightItemRef里的方法更新,不能这边直接请求product.js里方法更新,因为会造成扫码那块出问题,识别不到,关键词scan_right_item
|
|
|
this.$refs.rightItemRef.refreshMyRightItem(this.customId)
|
|
|
this.getCustomData()
|
|
|
- this.mustUpdate = false
|
|
|
+ this.beginRemind()
|
|
|
//世纪花都、龙岩小林鲜花要自动弹出客户列表,多个地方要同步修改,关键词sj_pop_auto
|
|
|
if(this.getLoginInfo.shopId==30300 || this.getLoginInfo.shopId==15007){
|
|
|
this.showCustomPop()
|