导航页样式,入库页样式,分页

This commit is contained in:
2024-02-26 18:11:25 +08:00
parent 9df8b4b10f
commit 4530466278
18 changed files with 392 additions and 280 deletions

View File

@@ -20,14 +20,18 @@ uni-button{
.content{
width: 100%;
height: 100%;
background-color: #f8f8f8;
background: center / 100% 100% url(./static/images/page_bg.jpg) no-repeat;
background-color: #00152d;
}
.search-confirm-wrap {
width: calc(100% - 30px);
background-color: #fff;
margin: 15px auto;
border-radius: 12px;
padding: 15px;
width: calc(100% - 60rpx);
/* background-color: #fff; */
margin: 30rpx auto;
border-radius: 12rpx;
padding: 30rpx;
background-color: linear-gradient(to right, rgba(8, 38, 68, 0.5) 1%, rgba(8, 38, 68, 0.98) 100%);
border: 1rpx solid #0490DD;
box-shadow: rgba(4, 136, 203, 0.2) -6rpx 6px 12rpx 2rpx, rgba(4, 136, 203, 0.2) 6rpx -6rpx 12rpx 2rpx;
}
.search-label{
height: 35px;
@@ -76,40 +80,39 @@ uni-button{
background-color: #e1e1e1;
}
.confirm-button{
min-width: 80px;
height: 36px;
background-color: #ff6a00;
min-width: 160rpx;
height: 72rpx;
color: #fff;
padding: 0;
font-size: 14px;
margin-left: 6px;
font-size: 28rpx;
margin-left: 20rpx;
margin-right: 0;
border-radius: 12px;
white-space: nowrap;
background: center / 100% 100% url(./static/images/button.png) no-repeat;
}
.confirm-button_disabled {
background-color: #fff;
color: #889dc7;
border: 1px solid #dde9f7;
}
.title-line {
width: calc(100% - 30px);
height: 1px;
background-color: #dde9f7;
margin: 10px auto 20px auto;
background: center / 100% 100% url(./static/images/button_disabled.png) no-repeat;
}
.table-title_wraper {
width: calc(100% - 30px);
margin: 0px auto;
font-size: 16px;
color: #000;
line-height: 35px;
width: calc(100% - 60rpx);
margin: 0 auto;
font-size: 32rpx;
color: #fff;
line-height: 70rpx;
padding: 30rpx 0 0 30rpx;
background: center / 100% 100% url(./static/images/bg-task-r1.png) no-repeat;
}
.grid-wrap{
width: calc(100% - 60rpx);
height: calc(100% - 450rpx); /** 90 + 140 +100+60 */
padding: 30rpx 60rpx;
margin: 10rpx auto 0;
background: center / 100% 100% url(./static/images/bg-task-r2.png) no-repeat;
/* overflow-y: scroll; */
}
.table-wrap {
width: 100%;
height: calc(100% - 206px); /** 42+ 98+35+31 */
padding: 0 15px 30px 15px;
overflow-y: scroll;
height: calc(100% - 134rpx)
}
.grid-wrap .grid-table{
width: 100%;
@@ -177,17 +180,19 @@ uni-button{
top: 0;
z-index: 49;
}
.zd-th-wraper{
background: center / 100% 100% url(./static/images/grid_bg.png) no-repeat;
}
.zd-th {
display: flex;
align-items: center;
justify-content: center;
font-size: 15px;
line-height: 18px;
height: 40px;
color: #7d7d7d;
font-size: 30rpx;
line-height: 36rpx;
height: 80rpx;
color: #AFBED8;
font-weight: bold;
padding: 12px 5px;
background-color: #dcdfea;
padding: 24rpx 10rpx;
text-align: center;
}
.zd-sec-th {
@@ -200,39 +205,32 @@ uni-button{
color: #7d7d7d;
background-color: #fff;
font-weight: bold;
padding: 12px 5px;
padding: 24rpx 10rpx;
text-align: center;
}
.zd-td {
display: flex;
justify-content: center;
align-items: center;
font-size: 14px;
line-height: 18px;
height: 46px;
color: #7d7d7d;
padding: 0 8px;
font-size: 28rpx;
line-height: 36rpx;
height: 92rpx;
color: #fff;
padding: 0 16rpx;
text-align: center;
border-bottom: 1px solid #ebeef5;
border-bottom: 2rpx solid #7A9FE0;
overflow: hidden;
}
.zd-th_fir {
border-top-left-radius: 12px;
border-bottom-left-radius: 12px;
}
.zd-th_last {
border-top-right-radius: 12px;
border-bottom-right-radius: 12px;
}
.zd-checkbox {
width: 22px;
height: 22px;
border: 1px solid #008deb;
background-color: #fff;
border-radius: 4px;
width: 44rpx;
height: 44rpx;
background: center / 100% 100% url(./static/images/icon-check1.png) no-repeat;
}
.zd-checkbox_active {
background: center / 100% 100% url(./static/images/icon-check2.png) no-repeat;
}
.fontcol1 {
color: #007de7;
color: #3CC1FF;
}
.fontcol2 {
color: #000;

View File

@@ -52,21 +52,26 @@
@import '@/common/style/mixin.styl';
.header
_fj()
_wh(100%, 42px)
background-color #fff
_wh(100%, 90rpx)
background-color #041427
border-bottom 1rpx solid #13568B
z-index 200
padding 0 15px
box-shadow: 0 2px 4px 0 rgba(0,0,0,.05);
padding 0 30rpx
box-shadow: 0 2rpx 4rpx 0 RGBA(19, 86, 139, 0.5);
.page_name
_font(16px, 20px, #000,700,center)
_font(50rpx, 90rpx, #F6F9FE,700,center)
font-family: YouSheBiaoTiHei
background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(49,190,255,0.9) 0%, rgba(239,252,254,1) 40%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
.icon_back {
font-size: 30px;
line-height: 30px;
color: #666;
font-size: 60rpx;
line-height: 60rpx;
color: #fff;
}
.icon_home {
font-size: 30px;
line-height: 30px;
color: #666;
font-size: 60rpx;
line-height: 60rpx;
color: #fff;
}
</style>

89
components/Pagination.vue Normal file
View File

@@ -0,0 +1,89 @@
<template>
<view class="pagination">
<text :disabled="page <= 1" @click="gotoPage(page - 1)"><</text>
<text v-for="item in pages" :key="getItemKey(item)" :class="{ active: item === page, ellipsis: item === '...' }" @click="gotoPage(item)">{{ item }}</text>
<text :disabled="page >= totalPages" @click="gotoPage(page + 1)">></text>
</view>
</template>
<script>
export default {
name: 'Pagination',
props: {
total: { // 总条目数
type: Number,
required: true
},
pageSize: { // 每页显示的条目数
type: Number,
default: 10
},
currentPage: { // 当前页码
type: Number,
default: 1
}
},
computed: {
totalPages() { // 总页数
return Math.ceil(this.total / this.pageSize)
},
page() { // 当前页码,限定在 1 和总页数之间
return Math.max(1, Math.min(this.currentPage, this.totalPages))
},
pages() { // 可点击的页码数组,最多显示 5 个页码
const arr = []
let start = Math.max(this.page - 2, 1)
let end = Math.min(start + 4, this.totalPages)
if (end - start < 4) {
end = Math.min(start + 4, this.totalPages)
start = Math.max(end - 4, 1)
}
for (let i = start; i <= end; i++) {
arr.push(i)
}
if (end < this.totalPages) {
arr.push('...', this.totalPages)
}
return arr
}
},
methods: {
getItemKey(item) { // 获取项的 key
return typeof item === 'number' ? item.toString() : item
},
gotoPage(page) { // 跳转到指定页码
if (page > 0 && page <= this.totalPages) {
this.$emit('page-change', page)
}
}
}
}
</script>
<style lang="stylus" scoped>
@import '@/common/style/mixin.styl';
.pagination {
display: flex;
align-items: center;
justify-content: center;;
margin-top: 40rpx;
}
text {
display: inline-block;
padding: 0 20rpx;
background-color: #fff;
border: 2rpx solid #ddd;
border-radius: 6rpx;
margin-right: 20rpx;
_font(30rpx, 70rpx, #053978,,)
}
text.active {
background-color: #053978;
color: #fff;
}
text.ellipsis {
cursor: default;
}
</style>

View File

@@ -125,30 +125,30 @@
<style lang="stylus">
@import '../common/style/mixin.styl';
.search_wraper
_wh(100%, 38px)
padding 0 2px 0 12px
border 1px solid #e1e1e1
_wh(100%, 76rpx)
padding 0 4rpx 0 24rpx
border 1rpx solid #e1e1e1
background-color #fff
border-radius 12px
border-radius 12rpx
.search_input
width 100%
height: 38px;
line-height: 38px;
font-size: 14px;
height: 76rpx;
line-height: 76rpx;
font-size: 28rpx;
color: #6a6a6a
.icon-del
_wh(35px, 35px)
margin-right 5px
_font(20px,35px,#a2b6cc,,center)
_wh(70rpx, 70rpx)
margin-right 10rpx
_font(40rpx,70rpx,#a2b6cc,,center)
.icon_scan
_wh(70px, 30px)
_font(20px,30px,#fff,,center)
background-color $red
border-radius 12px
_wh(140rpx, 60rpx)
_font(40rpx,60rpx,#fff,,center)
background-color #3CC1FF
border-radius 24rpx
.icon_search
_wh(35px, 35px)
_font(20px,35px,#a2b6cc,,center)
_wh(70rpx, 70rpx)
_font(40rpx,70rpx,#a2b6cc,,center)
.input_focus
border: 1px solid #889dc7;
box-shadow: 0 0 0 2px rgba(136, 157, 199,.2);
border: 1rpx solid #889dc7;
box-shadow: 0 0 0 2rpx rgba(136, 157, 199,.2);
</style>

View File

@@ -1,82 +1,56 @@
<template>
<view class="home_content">
<view class="zd-row header">
<view class="zd-col-8 home_title"></view>
<view class="zd-col-8 home_title">首页</view>
<view class="zd-col-8 home_title">首页</view>
<view class="zd-col-8 zd-row jcflexend home_userinfo">
<view class="user_icon"></view>
<view class="user_name">{{userName}}</view>
<view class="exit_text" @tap="Quit">退出</view>
</view>
</view>
<view class="userInfo-wrap">
<view class="userInfo">
<text class="p1">{{userName}}</text>
<text class="p2">欢迎进入诺力三期平板系统</text>
</view>
<view class="exit" @tap="Quit">
<view class="icon-exit"></view>
<view class="exit-text">退出</view>
</view>
<view class="welcome_text_wraper">
<view class="welcome_text">{{userName}}, 欢迎进入诺力三期平板系统</view>
</view>
<view class="zd_wrapper">
<view class="menu-wrap">
<view class="menu-item" v-for="(e, i) in menuList" :key="i" @tap="toPage1(e)">
<image class="menu-img" :src="require('../../static/images/' + e.path + '.png')" alt="">
<view class="menu-name">{{e.name}}</view>
</view>
</view>
</view>
<view v-if="show === true" class="sec_menu_wraper">
<view class="sec_menu_w">
<view class="menu-item" v-for="(e, i) in secM" :key="i" @click="toPage2(e)">
<view class="sec_menu-col_inner">
<view class="menu-name menu-name_inner">{{e.name}}</view>
<view class="zd-row menu-wrap">
<view class="menu-item" v-for="(e, i) in menuList" :key="i" @tap="toPage(e)">
<view class="menu_name_bg" :class="'bg_texture_' + i">
<view class="menu-name">{{e.name}}</view>
<view class="bill_count">{{e.counts}}</view>
</view>
</view>
</view>
<view class="cancel">
<view class="iconfont cancel_icon" @tap="show = false"></view>
</view>
</view>
<view class="left_bg"></view>
<view class="left_bg right_bg"></view>
</view>
</template>
<script>
import {authority, getBillsCount} from '@/utils/getData2.js'
import {getBillsCount} from '@/utils/getData2.js'
export default {
data() {
return {
userName: this.$store.getters.userInfo !== '' ? JSON.parse(this.$store.getters.userInfo).username : '',
menuList: [],
show: false,
secM: []
menuList: []
};
},
created () {
this._authority()
this._getBillsCount()
},
methods: {
async _authority () {
let res = await authority()
this.menuList = [...res.sonTree]
},
async _getBillsCount () {
let res = await getBillsCount()
console.log(res)
this.menuList = [...res]
},
toPage1 (e) {
if (e.sonTree.length > 0) {
this.show = true
this.secM = e.sonTree
toPage (e) {
let url = ''
if (e.ywlx === 'OUT') {
url = '/pages/management/out-storage?id=' + e.djlx
} else {
let url = e.router
uni.redirectTo({
url: url
})
url = '/pages/management/in-storage?id=' + e.djlx
}
},
toPage2 (e) {
let url = e.path
uni.redirectTo({
url: url
})
@@ -97,105 +71,105 @@
position relative
_wh(100%, 100%)
_bis(,'../../static/images/home_bg.jpg', 100%, 100%,bottom)
.zd_content
padding-top 0
.header
height 120rpx
padding 0 30rpx 50rpx 30rpx
padding 0 30rpx
align-items flex-start
justify-content flex-end
_bis(,'../../static/images/header_bg.png', 100%, 100%,bottom)
.home_title
_font(50rpx,60rpx,#fff,,center)
_font(50rpx,70rpx,#F6F9FE,,center)
font-family: YouSheBiaoTiHei;
.userInfo-wrap
_fj()
_wh(calc(100% - 30px),80px)
padding 0 15px
_bis($red,'../../static/images/info_bg.png',auto,100%,right,bottom)
border-radius 12px
margin 0 auto 15px auto
.userInfo
_fj(,flex-start,column)
.p1
_font(16px,1,#fff)
padding-bottom 8px
.p2
_font(13px,1,#fff)
.exit
_fj()
height 22px
padding 0 7px
border 1px solid #FF967C
border-radius 10px
.icon-exit
_wh(10px, 10px)
_bis(,'../../static/images/exit.png',11px)
.exit-text
_font(12px,22px,#fff,,right)
padding-left 5px
.home_userinfo
height 70rpx
.user_icon
_wh(50rpx, 50rpx)
margin-right 10rpx
_bis(,'../../static/images/user_icon.png', 100%, 100%,center)
.user_name
_font(34rpx,34rpx,#fff,,center)
padding-right 10rpx
margin 18rpx 20rpx 18rpx 0
border-right 1rpx solid #AECAF5
.exit_text
height 60rpx
_font(28rpx,60rpx,#fff,,center)
padding 0 20rpx
margin 5rpx 0
_bis(,'../../static/images/state-item_bg.png', 100%, 100%,center)
.welcome_text_wraper
height 140rpx
margin 30rpx 100rpx
.welcome_text
_font(26px, 140rpx, #F6F9FE,,)
padding-left 40rpx
font-family: YouSheBiaoTiHei
background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(49,190,255,0.9) 0%, rgba(239,252,254,1) 40%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
.zd_wrapper
_wh(calc(100% - 30px),calc(100% - 152px)) /** 42+80+15+15 */
padding 15px 5%
background-color #fff
border-radius 12px
margin 0 auto 15px auto
_wh(calc(100% - 200rpx),calc(100% - 450rpx)) /** 120rpx + 200rpx + 130rpx */
margin 40rpx 100rpx 0rpx 100rpx
_bis(,'../../static/images/bg-task-r2.png', 100%, 100%,center)
.menu-wrap
_fj(flex-start,center,,wrap)
flex-wrap wrap
justify-content flex-start
align-content center
height 100%
.menu-item
_fj()
flex-direction column
_wh(30%, auto)
margin-bottom 20px
_font(13px, 30px,#e74f1a,,center)
&:nth-child(3n+2)
margin-left 5%
margin-right 5%
::v-deep .menu-img
_wh(100%, auto)
img
position relative
opacity 1
_wh(55%, auto)
max-width 90px
margin 0 auto 0.1px
width 20%
margin-bottom 100rpx
.menu_name_bg
position relative
_wh(200rpx, 200rpx)
margin 0 auto
border-radius 40rpx
background-image: radial-gradient( ellipse farthest-corner at 22rpx 22rpx , #afafb9, #afafb9 50%, #ffffff 50%);
background-size: 22rpx 22rpx;
.bg_texture_1, .bg_texture_7
background: repeating-linear-gradient( -45deg, #afafb9, #afafb9 10rpx, #ffffff 10rpx, #ffffff 16rpx );
.menu-name
background-color rgba(49, 95, 255, 0.8)
.bg_texture_3, .bg_texture_6
background-image: repeating-linear-gradient(45deg, #afafb9 25%, transparent 25%, transparent 75%, #afafb9 75%, #afafb9), repeating-linear-gradient(45deg, #afafb9 25%, #ffffff 25%, #ffffff 75%, #afafb9 75%, #afafb9);
background-position: 0 0, 22rpx 22rpx;
background-size: 44rpx 22rpx;
.menu-name
background-color rgba(0, 239, 48, 0.8)
.bg_texture_2, .bg_texture_5
background: radial-gradient(circle, transparent 20%, #ffffff 20%, #ffffff 80%, transparent 80%, transparent), radial-gradient(circle, transparent 20%, #ffffff 20%, #ffffff 80%, transparent 80%, transparent) 27.5rpx 27.5rpx, linear-gradient(#afafb9 4rpx, transparent 4rpx) 0 -4rpx, linear-gradient(90deg, #afafb9 4rpx, #ffffff 4rpx) -4rpx 0;
background-size: 55rpx 55rpx, 55rpx 55rpx, 27.5rpx 27.5rpx, 27.5rpx 27.5rpx;
.menu-name
background-color rgba(255, 189, 45, 0.8)
.bg_texture_4
.menu-name
background-color rgba(255, 139, 69, 0.8)
.menu-name
_font(14px, 18px, #444,,center)
.sec_menu_wraper
position fixed
top 0
left 0
_wh(100%, 100%)
background-color rgba(0, 0, 0, .9)
z-index 2017
flex-direction column
.sec_menu_w
_fj()
_wh(calc(100% - 30px), calc(100% - 50px))
padding 0 12px
margin 0 auto
flex-wrap wrap
align-content center
&::after
content ''
display block
_wh(30%,0)
.sec_menu-col
background-color transparent
border none
height auto
.sec_menu-col_inner
_fj(center)
_wh(80px, 80px)
display flex
justify-content center
align-items center
_wh(200rpx, 200rpx)
padding 20rpx
border-radius 40rpx
_font(40rpx, 50rpx, #fff,bold,center)
background-color rgba(0,166,255,0.8)
.bill_count
position absolute
top -20rpx
right -20rpx
_wh(60rpx, 60rpx)
background-color $red
border-radius 50%
background-color $yellow
margin 0 auto
.menu-name_inner
color #fff
padding 0 10px
.cancel
_wh(100%, 50px)
padding 0 12px
overflow hidden
background-color rgba(255, 255, 255, .3)
box-shadow 0 0.5px 2px 0 rgba(160,160,160,0.9)
_font(40rpx, 60rpx, #fff,bold,center)
box-shadow 6rpx 6rpx 2rpx 2rpx rgba(0,0,0,.3)
.left_bg
position absolute
left 0
top 0
_wh(50rpx, 100%)
_bis(,'../../static/images/hud_left.png', 100%, ,center)
.right_bg
left auto
right 0
background-image url('../../static/images/hud_right.png')
</style>

View File

@@ -15,46 +15,47 @@
</view>
</view>
<view class="zd-row jcflexstart table-title_wraper">
<view class="iconfont mgr5">&#xe649;</view>
<text>采购入库</text>
</view>
<view class="title-line"></view>
<view class="grid-wrap">
<view class="zd-row">
<view class="zd-col-2 zd-th zd-th_fir"><text>序号</text></view>
<view class="zd-col-2 zd-th"><view class="zd-checkbox"></view></view>
<view class="zd-col-3 zd-th"><text>入库单号</text></view>
<view class="zd-col-3 zd-th"><text>EAS单号</text></view>
<view class="zd-col-2 zd-th"><text>状态</text></view>
<view class="zd-col-3 zd-th"><text>去向</text></view>
<view class="zd-col-3 zd-th"><text>入库日期</text></view>
<view class="zd-col-3 zd-th"><text>领料人</text></view>
<view class="zd-col-3 zd-th zd-th_last"><text>制单</text></view>
</view>
<view class="allwidth" v-for="(e, i) in dataList" :key="i">
<view class="zd-row">
<view class="zd-col-2 zd-td"><text>{{i+1}}</text></view>
<view class="zd-col-2 zd-td"><view class="zd-checkbox"></view></view>
<view class="zd-col-3 zd-td fontcol1"><text>{{e.a}}</text></view>
<view class="zd-col-3 zd-td fontcol2"><text>{{e.b}}</text></view>
<view class="zd-col-2 zd-td"><text class="fontbg1">{{e.c}}</text></view>
<view class="zd-col-3 zd-td fontcol2"><text>{{e.d}}</text></view>
<view class="zd-col-3 zd-td"><text>{{e.e}}</text></view>
<view class="zd-col-3 zd-td"><text>{{e.f}}</text></view>
<view class="zd-col-3 zd-td"><text>{{e.g}}</text></view>
<view class="table-wrap">
<view class="zd-row zd-th-wraper">
<view class="zd-col-2 zd-th"><text>序号</text></view>
<view class="zd-col-2 zd-th"><view class="zd-checkbox"></view></view>
<view class="zd-col-3 zd-th"><text>入库单号</text></view>
<view class="zd-col-3 zd-th"><text>EAS单号</text></view>
<view class="zd-col-2 zd-th"><text>状态</text></view>
<view class="zd-col-3 zd-th"><text>去向</text></view>
<view class="zd-col-3 zd-th"><text>入库日期</text></view>
<view class="zd-col-3 zd-th"><text>领料</text></view>
<view class="zd-col-3 zd-th"><text>制单人</text></view>
</view>
<view class="zd-row zd-sec-table">
<view class="zd-col-2 zd-sec-th"><text>序号</text></view>
<view class="zd-col-2 zd-sec-th"><view class="zd-checkbox"></view></view>
<view class="zd-col-3 zd-sec-th"><text>入库单号</text></view>
<view class="zd-col-3 zd-sec-th"><text>EAS单号</text></view>
<view class="zd-col-2 zd-sec-th"><text>状态</text></view>
<view class="zd-col-3 zd-sec-th"><text>去向</text></view>
<view class="zd-col-3 zd-sec-th"><text>入库日期</text></view>
<view class="zd-col-3 zd-sec-th"><text>领料人</text></view>
<view class="zd-col-3 zd-sec-th"><text>制单人</text></view>
<view class="allwidth" v-for="(e, i) in dataList" :key="i">
<view class="zd-row">
<view class="zd-col-2 zd-td"><text>{{i+1}}</text></view>
<view class="zd-col-2 zd-td"><view class="zd-checkbox zd-checkbox_active"></view></view>
<view class="zd-col-3 zd-td fontcol1"><text>{{e.a}}</text></view>
<view class="zd-col-3 zd-td"><text>{{e.b}}</text></view>
<view class="zd-col-2 zd-td"><text class="fontbg1">{{e.c}}</text></view>
<view class="zd-col-3 zd-td"><text>{{e.d}}</text></view>
<view class="zd-col-3 zd-td"><text>{{e.e}}</text></view>
<view class="zd-col-3 zd-td"><text>{{e.f}}</text></view>
<view class="zd-col-3 zd-td"><text>{{e.g}}</text></view>
</view>
<view v-show="e.checked" class="zd-row zd-sec-table">
<view class="zd-col-2 zd-sec-th"><text>序号</text></view>
<view class="zd-col-2 zd-sec-th"><view class="zd-checkbox"></view></view>
<view class="zd-col-3 zd-sec-th"><text>入库单号</text></view>
<view class="zd-col-3 zd-sec-th"><text>EAS单号</text></view>
<view class="zd-col-2 zd-sec-th"><text>状态</text></view>
<view class="zd-col-3 zd-sec-th"><text>去向</text></view>
<view class="zd-col-3 zd-sec-th"><text>入库日期</text></view>
<view class="zd-col-3 zd-sec-th"><text>领料人</text></view>
<view class="zd-col-3 zd-sec-th"><text>制单人</text></view>
</view>
</view>
</view>
<pagination :total="total" :page-size="queryParams.pageSize" :current-page="queryParams.pageNum" @page-change="handlePageChange" />
</view>
</view>
</template>
@@ -62,18 +63,26 @@
<script>
import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue'
import {finishproductPoint, InstoreOrder} from '@/utils/getData2.js'
import Pagination from '@/components/Pagination.vue'
import {easOutInBillPage} from '@/utils/getData2.js'
export default {
components: {
NavBar,
SearchBox
SearchBox,
Pagination
},
data() {
return {
id: '',
val1: '',
dataList: [{a: 'IO20213', b: 'SOUT4201', c: '未审核', d: '叉车装配线', e: '2023-06-16', f: '陈晓华', g: 'EAS_钱丽文'}, {a: 'IO20213', b: 'SOUT4201', c: '未审核', d: '叉车装配线', e: '2023-06-16', f: '陈晓华', g: 'EAS_钱丽文'}],
dataList: [],
pkId: '',
disabled: false
disabled: false,
total: 0,
queryParams:{
pageSize: 0,
pageNum: 0
}
};
},
onShow() {
@@ -84,7 +93,26 @@
destroyed () {
this.$store.dispatch('setPublicArr', '')
},
onLoad (options) {
this.id = options.id
},
created () {
this._easOutInBillPage()
},
methods: {
async _easOutInBillPage () {
let res = await easOutInBillPage(this.id)
res.result.map(el => {
this.$set(el, 'checked', false)
})
this.dataList = [...res.result]
this.total = Number(res.totalElements)
this.queryParams.pageSize = Number(res.pageSize)
this.queryParams.pageNum = Number(res.pageNum)
},
handlePageChange(page) {
this.queryParams.pageNum = page;
},
toDelect () {
this.dataList = []
this.pkId = ''

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

BIN
static/images/grid_bg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

BIN
static/images/hud_left.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

BIN
static/images/hud_right.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
static/images/user_icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

View File

@@ -21,28 +21,46 @@ export const pdaUpdate = () => request({
// return res
// }
// 菜单
export const authority = () => {
// 首页显示出入库单据数量
// export const getBillsCount = (area) => request({
// url:'api/easOutInBill/getBillsCount',
// data: {}
// })
export const getBillsCount = (area) => {
let res = [
{name: '销售出库', djlx: 'XSCKD', ywlx: 'OUT', counts: '1'},
{name: '采购退货出库', djlx: 'CGTHD', ywlx: 'OUT', counts: '1'},
{name: '调拨出库', djlx: 'DBCKD', ywlx: 'OUT', counts: '1'},
{name: '委外出库', djlx: 'WWFLD', ywlx: 'OUT', counts: '1'},
{name: '生产出库', djlx: 'LLCKD', ywlx: 'OUT', counts: '1'},
{name: '采购入库', djlx: 'CGRKD', ywlx: 'IN', counts: '1'},
{name: '生产退料入库', djlx: 'LLTHD', ywlx: 'IN', counts: '1'},
{name: '调拨入库', djlx: 'DBRKD', ywlx: 'IN', counts: '1'},
{name: '委外入库', djlx: 'WWRKD', ywlx: 'IN', counts: '1'}
]
return res
}
// 1.2分页查询出入库单据
// export const easOutInBillPage = (size, page, fuzzy, djlx) => request({
// url:'api/easOutInBill/page',
// data: {
// size: size,
// page: page,
// fuzzy: fuzzy,
// djlx: djlx
// }
// })
export const easOutInBillPage = (size, page, fuzzy, djlx) => {
let res = {
sonTree: [
{menu_id: '1', path: 'RF01', name: '入库', router: '/pages/management/in-storage', sonTree: []},
{menu_id: '1', path: 'RF02', name: '出库', router: '/pages/management/out-storage', sonTree: []}
]
code: '1',
desc: '',
pageNum: '2',
pageSize: '10',
totalElements: '50',
result: [{a: 'IO20213', b: 'SOUT4201', c: '未审核', d: '叉车装配线', e: '2023-06-16', f: '陈晓华', g: 'EAS_钱丽文'}, {a: 'IO20213', b: 'SOUT4201', c: '未审核', d: '叉车装配线', e: '2023-06-16', f: '陈晓华', g: 'EAS_钱丽文'}, {a: 'IO20213', b: 'SOUT4201', c: '未审核', d: '叉车装配线', e: '2023-06-16', f: '陈晓华', g: 'EAS_钱丽文'}, {a: 'IO20213', b: 'SOUT4201', c: '未审核', d: '叉车装配线', e: '2023-06-16', f: '陈晓华', g: 'EAS_钱丽文'}, {a: 'IO20213', b: 'SOUT4201', c: '未审核', d: '叉车装配线', e: '2023-06-16', f: '陈晓华', g: 'EAS_钱丽文'}, {a: 'IO20213', b: 'SOUT4201', c: '未审核', d: '叉车装配线', e: '2023-06-16', f: '陈晓华', g: 'EAS_钱丽文'}, {a: 'IO20213', b: 'SOUT4201', c: '未审核', d: '叉车装配线', e: '2023-06-16', f: '陈晓华', g: 'EAS_钱丽文'}, {a: 'IO20213', b: 'SOUT4201', c: '未审核', d: '叉车装配线', e: '2023-06-16', f: '陈晓华', g: 'EAS_钱丽文'}]
}
return res
}
// 首页显示出入库单据数量
export const getBillsCount = (area) => request({
url:'api/easOutInBill/getBillsCount',
data: {}
})
// 1.2指令查询
export const inOutExceptionInstQuery = (wcode) => request({
url:'api/cacheLineHand/inOutExceptionInstQuery',
data: {
wcsdevice_code: wcode
}
})
// 1.3确认
export const inOutExceptionInstConfirm = (wcode, vcode, type) => request({
url:'api/cacheLineHand/inOutExceptionInstConfirm',