11
This commit is contained in:
@@ -9,39 +9,39 @@
|
||||
<view class="type-item-text">采购收料</view>
|
||||
</view> -->
|
||||
<view class="type-item type-item-hy" @tap="toPages('/pages/verify/index')">
|
||||
<view class="type-item-text">来料验证</view>
|
||||
<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">采购入库</view>
|
||||
<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">生产发料</view>
|
||||
<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">生产补料</view>
|
||||
<view class="type-item-text">{{ t('home.scbl') }}</view>
|
||||
</view>
|
||||
<view class="type-item type-item-hl" @tap="putInProdClisk()">
|
||||
<view class="type-item-text">生产投产</view>
|
||||
<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">生产装箱</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">生产入库</view>
|
||||
<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">销售出库</view>
|
||||
<view class="type-item-text">{{ t('home.xxck') }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<u-overlay :show="state.typeBoxShow" @click="state.typeBoxShow = false">
|
||||
<view class="typeBox">
|
||||
<view class="btn-item" @click="toPages('/pages/putInProd/index',{type:'1'})">开始生产</view>
|
||||
<view class="btn-item" @click="toPages('/pages/putInProd/index',{type:'2'})">开始汇报</view>
|
||||
<view class="btn-item" @click="toPages('/pages/putInProd/index',{type:'3'})">开始测试</view>
|
||||
<view class="btn-item" @click="toPages('/pages/putInProd/index',{type:'1'})">{{ t('home.kssc') }}</view>
|
||||
<view class="btn-item" @click="toPages('/pages/putInProd/index',{type:'3'})">{{ t('home.kscs') }}</view>
|
||||
<view class="btn-item" @click="toPages('/pages/putInProd/index',{type:'2'})">{{ t('home.kshb') }}</view>
|
||||
</view>
|
||||
</u-overlay>
|
||||
</view>
|
||||
@@ -58,14 +58,7 @@
|
||||
typeBoxShow:false
|
||||
})
|
||||
|
||||
onShow(() => {
|
||||
if (!uni.getStorageSync('TOKEN')) {
|
||||
uni.clearStorageSync();
|
||||
uni.reLaunch({
|
||||
url: '/pages/client/account/login'
|
||||
});
|
||||
}
|
||||
})
|
||||
onShow(() => {})
|
||||
const putInProdClisk = () => {
|
||||
state.typeBoxShow = true
|
||||
}
|
||||
@@ -81,10 +74,7 @@
|
||||
.typeBox {
|
||||
position: absolute;
|
||||
bottom: 120rpx;
|
||||
//display: flex;
|
||||
|
||||
width: 100vw;
|
||||
|
||||
.btn-item {
|
||||
width: 80vw;
|
||||
margin: 32rpx auto;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="common">
|
||||
<view class="title">常用功能</view>
|
||||
<!-- <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,34 +35,44 @@
|
||||
<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="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>
|
||||
</view>
|
||||
<view class="input-item u-flex" style="justify-content: space-between;align-items: center">
|
||||
<!-- <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>
|
||||
|
||||
<view class="outLogin">退出登录</view>
|
||||
<view class="outLogin" @click="outLoginFun">退出登录</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
import { reactive, ref } from 'vue';
|
||||
import { onLoad, onShow } from '@dcloudio/uni-app'
|
||||
import { } from "../../common/request/api/api";
|
||||
import { logout } from "../../common/request/api/api";
|
||||
const toPages = (url : string, data : any = {}) => {
|
||||
uni.$u.route({
|
||||
url: url,
|
||||
params: data
|
||||
})
|
||||
}
|
||||
const outLoginFun = () => {
|
||||
// uni.clearStorageSync()
|
||||
logout({}).then((res:any) => {
|
||||
uni.removeStorageSync('userInfo')
|
||||
uni.removeStorageSync('TOKEN')
|
||||
uni.reLaunch({
|
||||
url: '/pages/client/account/login'
|
||||
});
|
||||
})
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.multi-line-omit {
|
||||
@@ -102,12 +112,12 @@
|
||||
}
|
||||
|
||||
.common {
|
||||
margin-top: 70rpx;
|
||||
margin-top: 110rpx;
|
||||
min-height: 262rpx;
|
||||
background-color: #ffffff;
|
||||
border-radius: 24rpx;
|
||||
box-sizing: border-box;
|
||||
padding: 0 28rpx;
|
||||
padding:28rpx 28rpx 0 28rpx;
|
||||
|
||||
.title {
|
||||
padding: 26rpx 0 23rpx 0;
|
||||
|
||||
Reference in New Issue
Block a user