剩余模块:生产入库,销售出库

This commit is contained in:
2025-05-12 09:31:38 +08:00
parent bf88fcb395
commit 14a5fa371b
410 changed files with 11041 additions and 6820 deletions

View File

@@ -5,36 +5,48 @@
<view></view>
</l-header>
<view class="type-bc">
<!-- <view class="type-item type-item-gc" @tap="toPages('/pages/receive/index')">
<view class="type-item-text">采购收料</view>
</view> -->
<view class="type-item type-item-hy" @tap="toPages('/pages/verify/index')">
<view class="type-item-text">{{ t('home.llyz') }}</view>
</view>
<view class="type-item type-item-jz" @tap="toPages('/pages/purchase/index')">
<view class="type-item-text">{{ t('home.cgrk') }}</view>
</view>
<view class="type-item type-item-hl" @tap="toPages('/pages/material/index')">
<view class="type-item-text">{{ t('home.scfl') }}</view>
</view>
<view class="type-item type-item-hl" @tap="toPages('/pages/supplement/index')">
<view class="type-item-text">{{ t('home.scbl') }}</view>
</view>
<view class="type-item type-item-hl" @tap="putInProdClisk()">
<view class="type-item-text">{{ t('home.sctc') }}</view>
</view>
<view class="type-item type-item-hl" @tap="toPages('/pages/encasement/material')">
<view class="type-item-text">{{ t('home.sczx') }}</view>
</view>
<!-- <view class="type-item type-item-hl" @tap="toPages('/pages/inLove/loveList')">
<view class="type-item-text">生产汇报</view>
</view> -->
<view class="type-item type-item-hl" @tap="toPages('/pages/productionStorage/index')">
<view class="type-item-text">{{ t('home.scrk') }}</view>
</view>
<view class="type-item type-item-hl" @tap="toPages('/pages/outOftock/index')">
<view class="type-item-text">{{ t('home.xxck') }}</view>
</view>
<!-- 珠海模块 -->
<template v-if="state.patternId === '101'">
<view class="type-item type-item-hy" @tap="toPages('/pages/verify/index')">
<view class="type-item-text">{{ t('home.llyz') }}</view>
</view>
<view class="type-item type-item-jz" @tap="toPages('/pages/purchase/index')">
<view class="type-item-text">{{ t('home.cgrk') }}</view>
</view>
</template>
<!-- 泰国模块 -->
<template v-if="state.patternId === '103'">
<view class="type-item type-item-hy" @tap="toPages('/pages/verifyTa/index')">
<view class="type-item-text">{{ t('home.llyz') }}</view>
</view>
<view class="type-item type-item-jz" @tap="toPages('/pages/purchaseTa/index')">
<view class="type-item-text">{{ t('home.cgrk') }}</view>
</view>
<view class="type-item type-item-hl" @tap="toPages('/pages/material/index')">
<view class="type-item-text">{{ t('home.scfl') }}</view>
</view>
<view class="type-item type-item-hl" @tap="toPages('/pages/supplement/index')">
<view class="type-item-text">{{ t('home.scbl') }}</view>
</view>
<view class="type-item type-item-hl" @tap="toPages('/pages/ruleClaim/index')">
<view class="type-item-text">成套领料</view>
</view>
<view class="type-item type-item-hl" @tap="toPages('/pages/ruleValidation/index')">
<view class="type-item-text">成套验证</view>
</view>
<view class="type-item type-item-hl" @tap="toPages('/pages/putInProd/index')">
<view class="type-item-text">{{ t('home.sctc') }}</view>
</view>
<view class="type-item type-item-hl" @tap="toPages('/pages/encasement/index')">
<view class="type-item-text">{{ t('home.sczx') }}</view>
</view>
<view class="type-item type-item-hl" @tap="toPages('/pages/productionStorage/index')">
<view class="type-item-text">{{ t('home.scrk') }}</view>
</view>
<view class="type-item type-item-hl" @tap="toPages('/pages/outOftock/index')">
<view class="type-item-text">{{ t('home.xxck') }}</view>
</view>
</template>
</view>
</view>
<u-overlay :show="state.typeBoxShow" @click="state.typeBoxShow = false">
@@ -55,13 +67,16 @@
const { t, locale } = getI18n
const state = reactive({
carouselList: [],
typeBoxShow:false
typeBoxShow:false,
appConfig:{},
patternId:''
})
onShow(() => {})
const putInProdClisk = () => {
state.typeBoxShow = true
}
onShow(() => {
state.appConfig = uni.getStorageSync('appLoginInfo')
state.patternId = state.appConfig.organizationObj['FOrgOrgId.FNumber']
console.log(state.patternId);
})
const toPages = (url : string, data : any = {}) => {
uni.$u.route({
url: url,

View File

@@ -8,12 +8,11 @@
radius="136rpx"></up-image>
</view>
<view>
<view class="nameTitle">#ERP1</view>
<view class="gysName">美塞斯测试账套</view>
<view class="nameTitle"># {{ state.userInfo.UserName }}</view>
<view class="gysName">{{ state.userInfo.CustomName }}</view>
</view>
</view>
<view class="common">
<!-- <view class="title">常用功能</view> -->
<view class="type-bc">
<view class="type-item type-item-gc" @tap="toPages('/pages/receive/index')">
<view class="type-item-text">采购收料</view>
@@ -35,14 +34,14 @@
<view class="item-title">扫描记录</view>
<up-icon name="play-right-fill" size="8"></up-icon>
</view>
<!-- <view class="input-item u-flex" style="justify-content: space-between;align-items: center">
<view class="item-title">离线记录</view>
<up-icon name="play-right-fill" size="8"></up-icon>
</view> -->
<view class="input-item u-flex" style="justify-content: space-between;align-items: center">
<view class="item-title">检查更新</view>
<view>0.0.1</view>
</view>
<!-- <view class="input-item u-flex" style="justify-content: space-between;align-items: center">
<view class="item-title">语言切换</view>
<up-icon name="play-right-fill" size="8"></up-icon>
</view>
</view> -->
<!-- <view class="input-item u-flex" style="justify-content: space-between;align-items: center">
<view class="item-title">语音播报</view>
<up-icon name="play-right-fill" size="8"></up-icon>
@@ -57,6 +56,14 @@
import { reactive, ref } from 'vue';
import { onLoad, onShow } from '@dcloudio/uni-app'
import { logout } from "../../common/request/api/api";
const state = reactive({
userInfo:{}
})
onShow(() => {
console.log(uni.getStorageSync('userInfo').Context);
state.userInfo = uni.getStorageSync('userInfo').Context
console.log(state.userInfo);
})
const toPages = (url : string, data : any = {}) => {
uni.$u.route({
url: url,
@@ -64,7 +71,6 @@
})
}
const outLoginFun = () => {
// uni.clearStorageSync()
logout({}).then((res:any) => {
uni.removeStorageSync('userInfo')
uni.removeStorageSync('TOKEN')
@@ -106,7 +112,7 @@
}
.gysName {
font-size: 32rpx;
font-size: 28rpx;
margin-top: 8rpx;
// font-weight: 600;
}