调拨盘点库存入口修改

This commit is contained in:
老叶
2022-03-09 17:32:01 +08:00
parent 86b2543d84
commit 777a4d81c5
3 changed files with 92 additions and 48 deletions
+71 -28
View File
@@ -47,29 +47,6 @@ Page({
banneractive3: 0,
remindTab:[],//调拨盘点入口
remindMsg:[],//调拨盘点弹框
// inventory:[
// {
// title:'车库存天数已超过20天,请尽快销售,以免造成损失!',
// name:'哪吒V',
// num:'AWR20210833232221',
// tip:'已库存:66天',
// img:'https://img.liche.cn/liche/2021/11/5438e63bb9c4963d/c5b5e20b2ecf285a.png'
// },
// {
// title:'车库存天数已超过20天,请尽快销售,以免造成损失!',
// name:'哪吒V',
// num:'AWR20210833232221',
// tip:'已库存:66天',
// img:'https://img.liche.cn/liche/2021/11/5438e63bb9c4963d/c5b5e20b2ecf285a.png'
// },
// {
// title:'车库存天数已超过20天,请尽快销售,以免造成损失!',
// name:'哪吒V',
// num:'AWR20210833232221',
// tip:'已库存:66天',
// img:'https://img.liche.cn/liche/2021/11/5438e63bb9c4963d/c5b5e20b2ecf285a.png'
// },
// ],
},
onLoad(options) {
@@ -148,6 +125,9 @@ Page({
//调拨提醒
getAppTransferRemind(){
_.apiQuery.getAppTransferRemind().then(res => {
this.setData({
diaoboNum:res.data.total,
})
if(res.data.total>0){
let remindTab = this.data.remindTab
remindTab.push({
@@ -181,6 +161,9 @@ Page({
//盘点提醒
getAppInventoryRemind(){
_.apiQuery.getAppInventoryRemind().then(res => {
this.setData({
pandianNum:res.data.total,
})
if(res.data.total>0){
let remindTab = this.data.remindTab
remindTab.push({
@@ -218,11 +201,71 @@ Page({
inventory:res.data.inventory,
warning:res.data.warning,
})
if(app.getStorageByKey("showGoodsData")!=new Date().getDate()&&res.data.warning.list&&res.data.warning.list.length>0){
this.setData({
isShowGoods:true,
})
app.setStorage('showGoodsData', new Date().getDate())
if(res.data.warning.list&&res.data.warning.list.length>0){
if(!app.getStorageByKey("showGoods")||app.getStorageByKey("showGoods").data!=new Date().getDate()){
//清除
wx.removeStorageSync('showGoods')
this.setData({
isShowGoods:true,
})
let showGoods = {}
if(this.data.biz_id){
showGoods.data = new Date().getDate()
showGoods.list =[{
biz_id:this.data.biz_id,
num:1,
}]
}else{
showGoods.data = new Date().getDate()
showGoods.list =[{
biz_id:'b1',
num:1,
}]
}
app.setStorage('showGoods',showGoods)
}else{
let showGoods = app.getStorageByKey("showGoods")
let index = -1
if(this.data.biz_id){
showGoods.list.forEach((item,i) => {
if(item.biz_id == this.data.biz_id){
index = i
item.num = item.num + 1
}
})
}else{
showGoods.list.forEach((item,i) => {
if(item.biz_id == 'b1'){
index = i
item.num = item.num + 1
}
})
}
if(index > -1){
if(showGoods.list[index].num<4){
this.setData({
isShowGoods:true,
})
app.setStorage('showGoods',showGoods)
}
}else{
this.setData({
isShowGoods:true,
})
if(this.data.biz_id){
showGoods.list.push({
biz_id:this.data.biz_id,
num:1,
})
}else{
showGoods.list.push({
biz_id:'b1',
num:1,
})
}
app.setStorage('showGoods',showGoods)
}
}
}
});
},
+18 -19
View File
@@ -15,27 +15,26 @@
</view>
</view>
</view>
<view class="mb30 pt40 pb40 pl20 pr20 bg-fff box-shadow-000-10-10 ulib-r10 fn-flex text-center font-22 color-666" wx:if="{{1 == 0}}">
<view class="fn-flex-item" bindtap="pushLink" data-url="/pages/storeInfo/index">
<image class='img-50x50' mode="aspectFill" src='{{imgUrl}}index/icon-tab-1.png' lazy-load="{{true}}"></image>
<view>店铺概况</view>
<view class="mb30 pt40 pb40 pl20 pr20 bg-fff box-shadow-000-10-10 ulib-r10 fn-flex text-center font-22 color-666">
<view class="relative fn-flex-item" bindtap="pushLink" data-url="/pages/inventory/list/index">
<view class="absolute peg-tip box-center ml30 bg-f9394d bds-2-fff img-24x24 text-center font-18 color-fff ulib-r750 z-index-1" wx:if="{{pandianNum}}"><text class="absolute box-center-middle">{{pandianNum}}</text></view>
<image class='img-60x60' mode="aspectFill" src='{{imgUrl}}index/icon2-tab-1.png' lazy-load="{{true}}"></image>
<view>车辆盘点</view>
</view>
<view class="fn-flex-item" bindtap="development">
<image class='img-50x50' mode="aspectFill" src='{{imgUrl}}index/icon-tab-2.png' lazy-load="{{true}}"></image>
<view>当月表现</view>
<view class="relative fn-flex-item" bindtap="pushLink" data-url="/pages/allot/list/index">
<view class="absolute peg-tip box-center ml30 bg-f9394d bds-2-fff img-24x24 text-center font-18 color-fff ulib-r750 z-index-1" wx:if="{{diaoboNum}}"><text class="absolute box-center-middle">{{diaoboNum}}</text></view>
<image class='img-60x60' mode="aspectFill" src='{{imgUrl}}index/icon2-tab-2.png' lazy-load="{{true}}"></image>
<view>车辆调拨</view>
</view>
<view class="fn-flex-item" bindtap="development">
<image class='img-50x50' mode="aspectFill" src='{{imgUrl}}index/icon-tab-3.png' lazy-load="{{true}}"></image>
<view>访店SOP</view>
</view>
<view class="fn-flex-item" bindtap="development">
<image class='img-50x50' mode="aspectFill" src='{{imgUrl}}index/icon-tab-4.png' lazy-load="{{true}}"></image>
<view>数据模型</view>
<view class="relative fn-flex-item" bindtap="pushLink" data-url="/pages/inventory/warning/index">
<view class="absolute peg-tip box-center ml30 bg-f9394d bds-2-fff img-24x24 text-center font-18 color-fff ulib-r750 z-index-1" wx:if="{{inventory.value}}"><text class="absolute box-center-middle">{{inventory.value}}</text></view>
<image class='img-60x60' mode="aspectFill" src='{{imgUrl}}index/icon2-tab-3.png' lazy-load="{{true}}"></image>
<view style="color:{{inventory.color}};">{{inventory.title}}</view>
</view>
</view>
<!--客户代办事项 订单代办事项 -->
<view class="bg-fff box-shadow-000-10-10 ulib-r10">
<view class="bg-ffedeb ulib-rt10" style="height:140rpx;" wx:if="{{remindTab.length > 0}}">
<!-- <view class="bg-ffedeb ulib-rt10" style="height:140rpx;" wx:if="{{remindTab.length > 0}}">
<view class="relative pt30 pl30 pr30">
<swiper class='wp100' style="height:90rpx;" autoplay circular bindchange="bannerChange2">
<swiper-item class="wp100 relative pl110 pr110" wx:for="{{remindTab}}" wx:key="index" bindtap="pushLink" data-url="{{item.url}}">
@@ -56,18 +55,18 @@
</block>
</view>
</view>
</view>
</view> -->
<view class="inner30 pt40">
<view class="relative pt20 pb20 pl30 pr200 ulib-r750 font-24 color-fff" style="background-image:linear-gradient(45deg, {{inventory.color1}}, {{inventory.color2}});" bindtap="pushLink" data-url="/pages/inventory/warning/index">
<!-- <view class="relative pt20 pb20 pl30 pr200 ulib-r750 font-24 color-fff" style="background-image:linear-gradient(45deg, {{inventory.color1}}, {{inventory.color2}});" bindtap="pushLink" data-url="/pages/inventory/warning/index">
<view class="text-left">{{inventory.title}}</view>
<view class="absolute right-0 box-middle mr25 mb10">
<text class="text-middle">{{inventory.value}}</text>
<i class="iconfont icon-gengduo ml5 text-middle"></i>
</view>
</view>
</view> -->
<view class="mt20 font-36">客户代办事项</view>
<view class="font-36">客户代办事项</view>
<view class="fn-flex pt20 pb20 color-fff">
<view class="fn-flex-item relative mr15 pt25 pb25 pl110 bg-1c89fd-8058fe ulib-r10" bindtap="pushLink" data-url="/pages/customer/filterList/index?iscall=0&title=未联系潜客" >
<i class="absolute left-0 box-middle ml35 iconfont icon-qianke font-60"></i>
+3 -1
View File
@@ -7,4 +7,6 @@
.indicator-pin.active{background-color:#36afa2;}
.indicator-pin2{width:20rpx;height:6rpx;display:inline-block;background-color:#fad6c9;cursor:pointer;transition:all .3s ease-in-out;-ms-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;-webkit-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;margin:0 6rpx;vertical-align:top}
.indicator-pin2.active{background-color:#f9394d;}
.indicator-pin2.active{background-color:#f9394d;}
.peg-tip{top:-7rpx;}