|
|
|
@ -2,6 +2,9 @@ |
|
|
|
<view> |
|
|
|
<cmd-nav-bar iconOne="menu" @iconOne="goToInfo" :title="shopName" background-color="#fff"></cmd-nav-bar> |
|
|
|
<view class="IndexContent"> |
|
|
|
<view v-if="enDayShow" style="width:100%;height:60rpx;"> |
|
|
|
<u-notice-bar mode='horizontal' bgColor="#088FEB" color="#eee" :text="textArr"></u-notice-bar> |
|
|
|
</view> |
|
|
|
<view class="contentPadding" style="color:#000; !important;padding: 28rpx 20rpx 0 !important;"> |
|
|
|
<view class="title-btn-d"> |
|
|
|
<view class="title-btn-sbtn" @tap="goSonPage('/pages/index/returnList')"> |
|
|
|
@ -139,6 +142,8 @@ |
|
|
|
clickable isLink arrow-direction="left"></u-cell> --> |
|
|
|
<u-cell icon="man-add-fill" url="/pages/index/waitStorage?inStorageStatus=1" title="采购单历史" |
|
|
|
clickable isLink arrow-direction="left"></u-cell> |
|
|
|
<u-cell icon="man-add-fill" url="/package1/inventory/inventoryReturn" title="采购退货" |
|
|
|
clickable isLink arrow-direction="left"></u-cell> |
|
|
|
<u-cell icon="man-add-fill" url="/package1/stock/goodsStock" title="盘点管理" clickable isLink |
|
|
|
arrow-direction="left"></u-cell> |
|
|
|
<view class="border-line"></view> |
|
|
|
@ -150,10 +155,15 @@ |
|
|
|
isLink arrow-direction="left"></u-cell> |
|
|
|
<u-cell icon="account-fill" url="/package1/index/returnOrder" title="退货单历史" clickable |
|
|
|
isLink arrow-direction="left"></u-cell> |
|
|
|
<view class="border-line"></view> |
|
|
|
<!-- <u-cell icon="home-fill" url="/package1/index/warehouseList" |
|
|
|
title="仓库管理" clickable isLink arrow-direction="left"></u-cell> |
|
|
|
<u-cell icon="home-fill" url="/package1/index/shopAssociation" |
|
|
|
title="店铺关联组" clickable isLink arrow-direction="left"></u-cell> --> |
|
|
|
<view class="border-line"></view> |
|
|
|
<u-cell icon="rewind-right-fill" url="/package1/index/updateShopMsg" title="更新店铺信息" clickable |
|
|
|
isLink arrow-direction="left"></u-cell> |
|
|
|
<u-cell v-if="shopName == '提钱退休' || shopName == '测试库新店' || shopName == '侧视颠仆'" |
|
|
|
<u-cell v-if="shopName == '提钱退休' || shopName == '测试库新店'" |
|
|
|
icon="integral-fill" url="/package1/AI/addAiList" title="管理员登录" clickable isLink |
|
|
|
arrow-direction="left"></u-cell> |
|
|
|
<!-- <u-cell icon="integral-fill" url="" title="电费缴纳" clickable isLink |
|
|
|
@ -170,7 +180,7 @@ |
|
|
|
arrow-direction="left"></u-cell> |
|
|
|
<u-cell icon="setting-fill" url="/pages/index/shopInfo" title="修改个人信息" clickable isLink |
|
|
|
arrow-direction="left"></u-cell> |
|
|
|
<u-cell icon="home-fill" @click="outLogin" title="退出登录" clickable isLink |
|
|
|
<u-cell icon="rewind-left-fill" @click="outLogin" title="退出登录" clickable isLink |
|
|
|
arrow-direction="left"></u-cell> |
|
|
|
</u-cell-group> |
|
|
|
</view> |
|
|
|
@ -255,7 +265,10 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
shopInfo: {}, |
|
|
|
waitCount: {} |
|
|
|
waitCount: {}, |
|
|
|
enDayShow:false, |
|
|
|
endDay:'', |
|
|
|
textArr:[] |
|
|
|
} |
|
|
|
}, |
|
|
|
components: { |
|
|
|
@ -290,6 +303,7 @@ |
|
|
|
that.type = res.data |
|
|
|
} |
|
|
|
}); |
|
|
|
this.getEndTime() |
|
|
|
var today = new Date(); |
|
|
|
var day = today.getDate(); |
|
|
|
//宣传页 |
|
|
|
@ -299,11 +313,50 @@ |
|
|
|
uni.setStorageSync("publicize", day) |
|
|
|
this.$refs.publicizepopup.open('center') |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
onTabItemTap(e) { |
|
|
|
this.getSaleInfo() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
//获取店铺到期时间 |
|
|
|
getEndTime(){ |
|
|
|
var today = new Date(); |
|
|
|
var day = today.getDate(); |
|
|
|
if(uni.getStorageSync('endTime')){ |
|
|
|
this.endTime = uni.getStorageSync('endTime') |
|
|
|
this.endDay = this.daysUntil(this.endTime) |
|
|
|
if(this.endDay < 7){ |
|
|
|
this.enDayShow = true |
|
|
|
} |
|
|
|
}else{ |
|
|
|
this.tui.request("/app/shop/getShopInfoById", "post", { |
|
|
|
id: uni.getStorageSync('shopId') |
|
|
|
}, false, true).then((res) => { |
|
|
|
uni.setStorageSync('endTime',res.result.endTime) |
|
|
|
this.endTime = res.result.endTime |
|
|
|
this.endDay = this.daysUntil(res.result.endTime) |
|
|
|
if(this.endDay < 7){ |
|
|
|
this.enDayShow = true |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
setTimeout(res1=>{ |
|
|
|
if(this.endTime != undefined){ |
|
|
|
let text = '您的店铺有效期至'+this.endTime+',还有'+this.endDay+'天到期,请及时联系管理员续费或开通' |
|
|
|
this.textArr.push(text) |
|
|
|
console.log(this.textArr) |
|
|
|
} |
|
|
|
},500) |
|
|
|
|
|
|
|
}, |
|
|
|
daysUntil(dateStr) { |
|
|
|
const targetDate = new Date(dateStr); |
|
|
|
const currentDate = new Date(); |
|
|
|
const differenceInMs = targetDate - currentDate; |
|
|
|
const daysDifference = Math.ceil(differenceInMs / (1000 * 60 * 60 * 24)); |
|
|
|
return daysDifference; |
|
|
|
}, |
|
|
|
popClose() { |
|
|
|
this.$refs.publicizepopup.close() |
|
|
|
}, |
|
|
|
@ -453,18 +506,16 @@ |
|
|
|
obj.createByName = item.createByName |
|
|
|
dataList.push(obj) |
|
|
|
} |
|
|
|
console.log('lastDebtAmount',item.lastDebtAmount) |
|
|
|
this.$nextTick(()=>{ |
|
|
|
this.tui.request("/app/customer/list", "post", { |
|
|
|
notBuyDays: "", |
|
|
|
pageNum: 1, |
|
|
|
pageSize: 10, |
|
|
|
searchStr: item.userName, |
|
|
|
sort: "", |
|
|
|
}, false, false).then((res) => { |
|
|
|
this.tui.request("/app/debt/selectByUserId", "post", { |
|
|
|
shopId:uni.getStorageSync('shopId'), |
|
|
|
userId:item.userId |
|
|
|
}, false, true).then((res) => { |
|
|
|
if (res.code == 200) { |
|
|
|
this.returnList = new Map() |
|
|
|
uni.setStorageSync('khName', JSON.stringify(res.result.records[0])) |
|
|
|
this.returnList = new Map() |
|
|
|
res.result.noEarn = res.result.amountOwed |
|
|
|
res.result.name = res.result.userName |
|
|
|
uni.setStorageSync('khName', JSON.stringify(res.result)) |
|
|
|
uni.setStorageSync('carList1', JSON.stringify(dataList)) |
|
|
|
uni.setStorageSync('hangOrder', true) |
|
|
|
uni.switchTab({ |
|
|
|
@ -826,4 +877,9 @@ |
|
|
|
margin-top: 20rpx !important; |
|
|
|
color: #fff !important; |
|
|
|
} |
|
|
|
.u-notice-bar{ |
|
|
|
height: 60rpx; |
|
|
|
line-height: 60rpx; |
|
|
|
font-size: 30rpx; |
|
|
|
} |
|
|
|
</style> |