现场调试修改 入库 出库 放货重新分配货位

This commit is contained in:
liuhanqing
2025-12-26 13:23:28 +08:00
parent ced125c8e9
commit 6b56e5f2ad
53 changed files with 3397 additions and 1832 deletions

View File

@@ -2,19 +2,19 @@
<view class="container">
<!-- 顶部信息卡片 -->
<view class="info-card">
<text class="welcome">{{ $t('home.greeting') }}{{ userName }}</text>
<text class="date">{{ $t('home.today') }}{{ currentDate }}</text>
<text class="welcome">你好,{{ userName }}</text>
<text class="date">今天是{{ currentDate }}</text>
<view class="stats-row">
<!-- <view class="stats-row"> -->
<!-- <view class="stat-item">
<text class="stat-label">{{ $t('home.taskCompletionRate') }}</text>
<text class="stat-label">任务完成率</text>
<text class="stat-value">98%</text>
</view> -->
<view class="stat-item" >
<text class="stat-label">{{ $t('home.pendingTasks') }}</text>
<!-- <view class="stat-item" >
<text class="stat-label">待处理任务</text>
<text class="stat-value">{{ pendingTaskCount }}</text>
</view>
</view>
</view> -->
</view>
<!-- 今日数据统计 -->
@@ -42,35 +42,45 @@
<image src="/static/images/tabbar/caigouruku.png" mode="aspectFit" class="icon-image"></image>
</view>
<view class="function-text">
<text class="title">{{ $t('home.inbound.title') }}</text>
<text class="desc">{{ $t('home.inbound.desc') }}</text>
<text class="title">入库管理</text>
<text class="desc">收货、上架、验收</text>
</view>
</view>
<view class="function-item" @click="navigateTo('/pages/out/menu')">
<view class="function-item" @click="navigateTo('/pages/out/ckMakeSureByTray')">
<view class="icon-box green">
<image src="/static/images/tabbar/chukudan.png" mode="aspectFit" class="icon-image"></image>
</view>
<view class="function-text">
<text class="title">{{ $t('home.outbound.title') }}</text>
<text class="desc">{{ $t('home.outbound.desc') }}</text>
<text class="title">出库管理</text>
<text class="desc">拣货、打包、发货</text>
</view>
</view>
<view class="function-item" @click="navigateTo('/pages/charts/spaceAnalysis')">
<view class="function-item" @click="navigateTo('/pages/ktp/menu')">
<view class="icon-box orange">
<image src="/static/images/tabbar/tray121.png" mode="aspectFit" class="icon-image"></image>
</view>
<view class="function-text">
<text class="title">托盘管理</text>
<text class="desc">空托盘出入库</text>
</view>
</view>
<!-- <view class="function-item" @click="navigateTo('/pages/charts/spaceAnalysis')">
<view class="icon-box orange">
<image src="/static/images/tabbar/warehouse.png" mode="aspectFit" class="icon-image"></image>
</view>
<view class="function-text">
<text class="title">{{ $t('home.inventory.title') }}</text>
<text class="desc">{{ $t('home.inventory.desc') }}</text>
<text class="title">库存分析</text>
<text class="desc">查询、移库、调整</text>
</view>
</view>
<view class="function-item" @click="navigateTo('/pages/pandian/menu')">
</view> -->
<view class="function-item" @click="navigateTo('/pages/pandian/confirm')">
<view class="icon-box purple">
<image src="/static/images/tabbar/pandian.png" mode="aspectFit" class="icon-image"></image>
</view>
<view class="function-text">
<text class="title">{{ $t('home.stocktaking.title') }}</text>
<text class="desc">{{ $t('home.stocktaking.desc') }}</text>
<text class="title">盘点管理</text>
<text class="desc">周期盘点、抽查</text>
</view>
</view>
</view>
@@ -78,8 +88,7 @@
</template>
<script>
import { getPrepareTask } from '@/api/search/job'
import { getPrepareTask } from '@/api/search/job.js'
export default {
data() {
return {
@@ -95,13 +104,8 @@ export default {
const day = date.getDate();
const weekDayIndex = date.getDay();
if (this.$i18n.locale === 'en-US') {
const weekDays = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
return `${year}-${month}-${day} ${weekDays[weekDayIndex]}`;
} else {
const weekDays = ['日', '一', '二', '三', '四', '五', '六'];
return `${year}年${month}月${day}日 星期${weekDays[weekDayIndex]}`;
}
const weekDays = ['日', '一', '二', '三', '四', '五', '六'];
return `${year}年${month}月${day}日 星期${weekDays[weekDayIndex]}`;
}
},
@@ -109,25 +113,25 @@ export default {
// 确保用户信息已加载
this.userName = this.$store.getters.name
// 获取待处理任务数量
this.getPendingTaskCount()
// this.getPendingTaskCount()
},
methods: {
navigateTo(url) {
uni.navigateTo({
url: url
})
},
async getPendingTaskCount() {
// 调用API获取待处理任务数量
const response=await getPrepareTask({inOut:''})
if(response.code=== 200){
this.pendingTaskCount=response.data.length
}else{
this.pendingTaskCount=0
}
}
// async getPendingTaskCount() {
// // 调用API获取待处理任务数量
// const response=await getPrepareTask({inOut:''})
// if(response.code=== 200){
// this.pendingTaskCount=response.data.length
// }else{
// this.pendingTaskCount=0
// }
// }
}
}
</script>