修改首页信息

jg-waiwang-pro
XI_TENG\xixi_ 5 months ago
parent e878668218
commit 2f0f64e293

@ -1171,7 +1171,7 @@
},
{
"pagePath": "pages/index/home",
"text": "协同",
"text": "消息",
"iconPath": "static/image/tabbar/workFlow.png",
"selectedIconPath": "static/image/tabbar/workFlowHL.png"
},
@ -1190,7 +1190,7 @@
},*/
{
"pagePath": "pages/index/index",
"text": "消息",
"text": "通讯录",
"iconPath": "static/image/tabbar/message.png",
"selectedIconPath": "static/image/tabbar/messageHL.png"
},

@ -11,19 +11,33 @@
</view>
<view class="sty-statistics-top">
<u-row gutter="16">
<u-col span="4" text-align="center" class="line-right">
<u-col span="12" text-align="center" class="line-right">
<view class="sty-statistics-top-item">
<view><span class="fsizeA">{{homeInfo.avgPurchasePrice}}</span></view>
<view><span class="fsizeA">磅单采购数</span></view>
</view>
</u-col>
<u-col span="4" text-align="center" class="line-right">
</u-row>
</view>
<view class="sty-statistics-top">
<u-row gutter="16">
<u-col span="12" text-align="center" class="line-right">
<view class="sty-statistics-top-item">
<view><span class="fsizeA">{{homeInfo.todayPurchasePrice}}</span></view>
<view><span class="fsizeA">今日采购量</span></view>
</view>
</u-col>
<u-col span="4" text-align="center">
</u-row>
</view>
<view class="sty-statistics-top">
<u-row gutter="16">
<u-col span="12" text-align="center">
<view class="sty-statistics-top-item">
<view><span class="fsizeA">{{homeInfo.salesVolumeToday}}</span></view>
<view><span class="fsizeA">今日销售量</span></view>
@ -31,6 +45,9 @@
</u-col>
</u-row>
</view>
<view class="sty-msg">
<u-notice-bar :duration="5000" mode="horizontal" :is-circular="false" @click="goMsg" :list="list">
</u-notice-bar>
@ -122,6 +139,34 @@
</u-col>
</u-row>
</view>
<template>
<view class="menhu-v">
<!-- #ifndef MP -->
<template>
<template v-if="userInfo.appPortalId">
<mescroll-body ref="mescrollRef" @down="downCallback" :down="downOption" @up="upCallback"
:up="upOption" :bottombar="false" style="min-height: 100%" @init="mescrollInit">
<!-- 常规门户 -->
<view class="portal-v" v-if="authConfig.type==0">
<template v-if="formData.length">
<view class="portal-box" v-for="(item,index) in formData" :key="index">
<portalItem :item='item' ref="portalItem" :key="key" :protalData="formData"
v-if="item.show" />
</view>
</template>
</view>
</mescroll-body>
</template>
</template>
<!-- #endif -->
</view>
</template>
</view>
</template>
@ -196,23 +241,23 @@
onShow() {
console.log('11112')
this.getHomeInfo()
this.$forceUpdate()
this.token = uni.getStorageSync('token')
if (!this.$store.state.chat.socket) chat.initSocket()
this.mpPortalUrl = this.define.baseURL + '/pages/mpPortal/index?token=' + this.token
// this.$forceUpdate()
// this.token = uni.getStorageSync('token')
// if (!this.$store.state.chat.socket) chat.initSocket()
// this.mpPortalUrl = this.define.baseURL + '/pages/mpPortal/index?token=' + this.token
this.userInfo = uni.getStorageSync('userInfo') || {}
if (!this.userInfo.appPortalId) return
// #ifndef MP
this.getPortalList()
this.$nextTick(() => {
// this.mescroll.resetUpScroll();
this.portalList = []
})
// #endif
// #ifdef APP-PLUS
this.rightIcon = 'scan'
// #endif
// if (!this.userInfo.appPortalId) return
// // #ifndef MP
// this.getPortalList()
// this.$nextTick(() => {
// // this.mescroll.resetUpScroll();
// this.portalList = []
// })
// // #endif
// // #ifdef APP-PLUS
// this.rightIcon = 'scan'
// // #endif
},
onReady() {
// #ifdef APP-PLUS
@ -544,10 +589,12 @@
.sty-statistics-top {
// background-color: #2DA9FA;
background-color: #66B3FF;
padding: 0px;
//padding: 5px 0px 15px 0px;
// padding: 0px;
// padding: 5px 0px 15px 0px;
color: #ffffff;
padding: 5px 0px;
border-radius: 10px;
margin-top: 8px;
.sty-statistics-top-item {
padding: 5px 0px;
}
@ -556,6 +603,9 @@
border-right: solid 1px #ffffff;
}
}
.sty-statistics-top-b {
background-color: #97CBFF;
padding: 0px;

@ -207,7 +207,7 @@
this.$store.dispatch('user/getCurrentUser').then((res) => {
uni.hideLoading()
uni.reLaunch({
url: '/pages/index/home'
url: '/pages/index/portal'
});
}).catch(() => {
uni.hideLoading()
@ -226,7 +226,7 @@
this.$store.dispatch('user/getCurrentUser').then((res) => {
uni.hideLoading()
uni.reLaunch({
url: '/pages/index/home'
url: '/pages/index/portal'
});
}).catch(() => {
uni.hideLoading()
@ -353,7 +353,7 @@
this.$store.dispatch('user/getCurrentUser').then((res) => {
uni.hideLoading()
uni.switchTab({
url: '/pages/index/home'
url: '/pages/index/portal'
});
this.show = false
}).catch(() => {
@ -447,7 +447,7 @@
this.$store.dispatch('user/getCurrentUser').then((res) => {
this.loading = false
uni.switchTab({
url: '/pages/index/home'
url: '/pages/index/portal'
});
}).catch(() => {
this.loading = false

@ -46,7 +46,7 @@
this.$store.dispatch('user/getCurrentUser').then((res) => {
uni.hideLoading()
uni.reLaunch({
url: '/pages/index/home'
url: '/pages/index/portal'
});
}).catch(() => {
uni.hideLoading()
@ -71,7 +71,7 @@
this.$store.dispatch('user/getCurrentUser').then((res) => {
uni.hideLoading()
uni.reLaunch({
url: '/pages/index/home'
url: '/pages/index/portal'
});
}).catch(() => {
uni.hideLoading()

@ -782,7 +782,7 @@ public class WarehousingOutboundServiceImpl extends ServiceImpl<WarehousingOutbo
inventoryLogEntity.setWarehouseId(entity.getWarehouseId());
inventoryLogEntity.setStorageAreaId(entitys.getCargoId());
inventoryLogEntity.setBatchNumber(entitys.getBatchNo());
inventoryLogEntity.setChangeNumber((entitys.getDeliveryNum()));
inventoryLogEntity.setChangeNumber(new BigDecimal("0").subtract(entitys.getDeliveryNum()));
inventoryLogEntity.setInventoryNumber((inventoryEntity.getInventoryNumber()));//库存数量
inventoryLogEntity.setCreatorUserId(deliveryOrder.getCreatorUserId());
inventoryLogEntity.setOrganizeJsonId(deliveryOrder.getOrganizeJsonId());

@ -656,8 +656,8 @@ public class WarehousingOutboundController {
inventoryLogEntity.setWarehouseId(entity.getWarehouseId());
inventoryLogEntity.setStorageAreaId(warehousingOutboundProductModel.getOutboundAreaId());
inventoryLogEntity.setBatchNumber(warehousingOutboundProductModel.getBatchNumber());
inventoryLogEntity.setChangeNumber(new BigDecimal(warehousingOutboundProductModel.getOutboundNumber()));
inventoryLogEntity.setInventoryNumber(new BigDecimal("0").subtract(inventoryEntity.getInventoryNumber()));//库存数量
inventoryLogEntity.setChangeNumber(new BigDecimal("0").subtract(new BigDecimal(warehousingOutboundProductModel.getOutboundNumber())));//库存数量
inventoryLogEntity.setInventoryNumber((inventoryEntity.getInventoryNumber()));//库存数量
inventoryLogEntity.setCompanyId( entity.getCompanyId());
inventoryLogEntity.setOrganizeJsonId(entity.getOrganizeJsonId());
inventoryLogEntity.setDepartmentId( entity.getDepartmentId());

@ -501,12 +501,14 @@ public class WarehousingReceiveController {
inventoryLogEntity.setWarehouseId(entity.getWarehouseId());
inventoryLogEntity.setStorageAreaId(warehousingOutboundProductModel.getOutboundAreaId());
inventoryLogEntity.setBatchNumber(warehousingOutboundProductModel.getBatchNumber());
inventoryLogEntity.setInventoryNumber(inventoryEntity.getInventoryNumber());
inventoryLogEntity.setChangeNumber(new BigDecimal("0").subtract(new BigDecimal(warehousingOutboundProductModel.getOutboundNumber())));//库存数量
inventoryLogEntity.setCompanyId( entity.getCompanyId());
inventoryLogEntity.setOrganizeJsonId(entity.getOrganizeJsonId());
inventoryLogEntity.setDepartmentId( entity.getDepartmentId());
inventoryLogEntity.setCreatorUserId( entity.getCreatorUserId());
inventoryLogEntity.setChangeNumber(new BigDecimal(warehousingOutboundProductModel.getOutboundNumber()));
inventoryLogEntity.setInventoryNumber(new BigDecimal("0").subtract(inventoryEntity.getInventoryNumber()));//库存数量
inventoryLogService.saveOrUpdate(inventoryLogEntity);
}
}

@ -504,12 +504,14 @@ public class WarehousingReportlossController {
inventoryLogEntity.setWarehouseId(entity.getWarehouseId());
inventoryLogEntity.setStorageAreaId(warehousingOutboundProductModel.getOutboundAreaId());
inventoryLogEntity.setBatchNumber(warehousingOutboundProductModel.getBatchNumber());
inventoryLogEntity.setInventoryNumber(inventoryEntity.getInventoryNumber());
inventoryLogEntity.setChangeNumber(new BigDecimal("0").subtract(new BigDecimal(warehousingOutboundProductModel.getOutboundNumber())));//库存数量
inventoryLogEntity.setCompanyId( entity.getCompanyId());
inventoryLogEntity.setOrganizeJsonId(entity.getOrganizeJsonId());
inventoryLogEntity.setDepartmentId( entity.getDepartmentId());
inventoryLogEntity.setCreatorUserId( entity.getCreatorUserId());
inventoryLogEntity.setChangeNumber(new BigDecimal(warehousingOutboundProductModel.getOutboundNumber()));
inventoryLogEntity.setInventoryNumber(new BigDecimal("0").subtract(inventoryEntity.getInventoryNumber()));//库存数量
inventoryLogService.saveOrUpdate(inventoryLogEntity);
}

@ -712,8 +712,9 @@ public class WorkOrderController {
inventoryLogEntity.setDepartmentId( entity.getDepartmentId());
inventoryLogEntity.setCreatorUserId( entity.getCreatorUserId());
inventoryLogEntity.setChangeNumber(new BigDecimal(warehousingOutboundProductModel.getOutboundNumber()));
inventoryLogEntity.setInventoryNumber(new BigDecimal("0").subtract(inventoryEntity.getInventoryNumber()));//库存数量
inventoryLogEntity.setInventoryNumber(inventoryEntity.getInventoryNumber());
inventoryLogEntity.setChangeNumber(new BigDecimal("0").subtract(new BigDecimal(warehousingOutboundProductModel.getOutboundNumber())));//库存数量
inventoryLogService.saveOrUpdate(inventoryLogEntity);
}
@ -1038,8 +1039,8 @@ public class WorkOrderController {
inventoryLogEntity.setWarehouseId(entity.getWarehouseId());
inventoryLogEntity.setStorageAreaId(warehousingOutboundProductModel.getOutboundAreaId());
inventoryLogEntity.setBatchNumber(warehousingOutboundProductModel.getBatchNumber());
inventoryLogEntity.setChangeNumber(new BigDecimal(warehousingOutboundProductModel.getOutboundNumber()));
inventoryLogEntity.setInventoryNumber(new BigDecimal("0").subtract(inventoryEntity.getInventoryNumber()));//库存数量
inventoryLogEntity.setInventoryNumber(inventoryEntity.getInventoryNumber());
inventoryLogEntity.setChangeNumber(new BigDecimal("0").subtract(new BigDecimal(warehousingOutboundProductModel.getOutboundNumber())));//库存数量
inventoryLogEntity.setCompanyId( entity.getCompanyId());
inventoryLogEntity.setOrganizeJsonId(entity.getOrganizeJsonId());
@ -1545,9 +1546,10 @@ public class WorkOrderController {
inventoryLogEntity.setOrganizeJsonId(entity.getOrganizeJsonId());
inventoryLogEntity.setDepartmentId( entity.getDepartmentId());
inventoryLogEntity.setCreatorUserId( entity.getCreatorUserId());
inventoryLogEntity.setInventoryNumber(inventoryEntity.getInventoryNumber());
inventoryLogEntity.setChangeNumber(new BigDecimal("0").subtract(new BigDecimal(warehousingOutboundProductModel.getOutboundNumber())));//库存数量
inventoryLogEntity.setChangeNumber(new BigDecimal(warehousingOutboundProductModel.getOutboundNumber()));
inventoryLogEntity.setInventoryNumber(new BigDecimal("0").subtract(inventoryEntity.getInventoryNumber()));//库存数量
inventoryLogService.saveOrUpdate(inventoryLogEntity);
}
@ -1857,8 +1859,9 @@ public class WorkOrderController {
inventoryLogEntity.setWarehouseId(entity.getWarehouseId());
inventoryLogEntity.setStorageAreaId(warehousingOutboundProductModel.getOutboundAreaId());
inventoryLogEntity.setBatchNumber(warehousingOutboundProductModel.getBatchNumber());
inventoryLogEntity.setChangeNumber(new BigDecimal(warehousingOutboundProductModel.getOutboundNumber()));
inventoryLogEntity.setInventoryNumber(new BigDecimal("0").subtract(inventoryEntity.getInventoryNumber()));//库存数量
inventoryLogEntity.setInventoryNumber(inventoryEntity.getInventoryNumber());
inventoryLogEntity.setChangeNumber(new BigDecimal("0").subtract(new BigDecimal(warehousingOutboundProductModel.getOutboundNumber())));//库存数量
inventoryLogEntity.setCompanyId( entity.getCompanyId());
inventoryLogEntity.setOrganizeJsonId(entity.getOrganizeJsonId());
inventoryLogEntity.setDepartmentId( entity.getDepartmentId());

Loading…
Cancel
Save