新增出入库顺序表
This commit is contained in:
10
pages.json
10
pages.json
@@ -50,6 +50,16 @@
|
|||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
,{
|
||||||
|
"path" : "pages/modules/SequenceTable",
|
||||||
|
"style" :
|
||||||
|
{
|
||||||
|
"navigationStyle": "custom",
|
||||||
|
"enablePullDownRefresh": true,
|
||||||
|
"onReachBottomDistance": 50
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
"navigationBarTextStyle": "black",//导航栏标题颜色及状态栏前景颜色,仅支持 black/white
|
"navigationBarTextStyle": "black",//导航栏标题颜色及状态栏前景颜色,仅支持 black/white
|
||||||
|
|||||||
@@ -39,7 +39,8 @@
|
|||||||
{id: '1', name: '仓储管理', sonTree: [
|
{id: '1', name: '仓储管理', sonTree: [
|
||||||
{menu_id: '1', icon: 'RF01', name: '半成品入库', path: '/pages/modules/SemifinishedInStore'},
|
{menu_id: '1', icon: 'RF01', name: '半成品入库', path: '/pages/modules/SemifinishedInStore'},
|
||||||
{menu_id: '2', icon: 'RF02', name: '半成品出库', path: '/pages/modules/SemifinishedOutStore'},
|
{menu_id: '2', icon: 'RF02', name: '半成品出库', path: '/pages/modules/SemifinishedOutStore'},
|
||||||
{menu_id: '3', icon: 'RF03', name: '空箱出库', path: '/pages/modules/EmptyOutStore'}
|
{menu_id: '3', icon: 'RF03', name: '空箱出库', path: '/pages/modules/EmptyOutStore'},
|
||||||
|
{menu_id: '4', icon: 'RF04', name: '出入库顺序表', path: '/pages/modules/SequenceTable'}
|
||||||
]}
|
]}
|
||||||
],
|
],
|
||||||
show: false,
|
show: false,
|
||||||
|
|||||||
@@ -146,7 +146,7 @@
|
|||||||
_font(40rpx,75rpx,#444, 600)
|
_font(40rpx,75rpx,#444, 600)
|
||||||
padding-top: 90rpx
|
padding-top: 90rpx
|
||||||
.p2
|
.p2
|
||||||
_font(50rpx,1,#444, 600)
|
_font(52rpx,1,#444, 600)
|
||||||
padding: 10rpx 0 55rpx 0
|
padding: 10rpx 0 55rpx 0
|
||||||
.input-box
|
.input-box
|
||||||
_fj()
|
_fj()
|
||||||
|
|||||||
162
pages/modules/SequenceTable.vue
Normal file
162
pages/modules/SequenceTable.vue
Normal file
@@ -0,0 +1,162 @@
|
|||||||
|
<template>
|
||||||
|
<view class="zd_container">
|
||||||
|
<nav-bar title="出入库顺序表"></nav-bar>
|
||||||
|
<view class="zd_content">
|
||||||
|
<view class="zd_wrapper">
|
||||||
|
<view class="filter_item">
|
||||||
|
<view class="filter_label_wraper">
|
||||||
|
<span class="filter_label">料箱码</span>
|
||||||
|
</view>
|
||||||
|
<view class="filter_input_wraper">
|
||||||
|
<search-box
|
||||||
|
v-model="val1"
|
||||||
|
@handleChange="handleChange"
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="zd_wrapper grid-wraper">
|
||||||
|
<view class="slide_new">
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>车间</th>
|
||||||
|
<th>出入库类型</th>
|
||||||
|
<th>顺序id</th>
|
||||||
|
<th>仓库</th>
|
||||||
|
<th>入库点</th>
|
||||||
|
<th>出库点</th>
|
||||||
|
<th>箱码</th>
|
||||||
|
<th>重量</th>
|
||||||
|
<th>工单编号</th>
|
||||||
|
<th>工序</th>
|
||||||
|
<th>创建时间</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr v-for="(e, i) in dataList" :key="i" :class="{'checked': e.checked}">
|
||||||
|
<td>{{e.workshop_id}}</td>
|
||||||
|
<td>{{e.type}}</td>
|
||||||
|
<td>{{e.order_id}}</td>
|
||||||
|
<td>{{e.stor_id}}</td>
|
||||||
|
<td>{{e.in_device}}</td>
|
||||||
|
<td>{{e.out_device}}</td>
|
||||||
|
<td>{{e.bar_code}}</td>
|
||||||
|
<td>{{e.weight}}</td>
|
||||||
|
<td>{{e.workorder_id}}</td>
|
||||||
|
<td>{{e.workprocedure_id}}</td>
|
||||||
|
<td>{{e.create_time}}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<uni-load-more color="#007AFF" iconType="circle" :status="status" :icon-size="14" :content-text="contentText" v-if="dataList.length > 0"/>
|
||||||
|
</view>
|
||||||
|
<view class="submit-bar">
|
||||||
|
<button class="submit-button" :class="{'btn-disabled': !checkArr.length}" :disabled="disabled" @tap="toSure">强制确认</button>
|
||||||
|
<button class="submit-button" @tap="searchList">查询</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import NavBar from '@/components/NavBar.vue'
|
||||||
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
|
import {hrBcpOrderList, hrBcpOrderDelete} from '@/utils/getData2.js'
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
NavBar,
|
||||||
|
SearchBox
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
val1: '',
|
||||||
|
dataList: [],
|
||||||
|
checkArr: [],
|
||||||
|
disabled: false,
|
||||||
|
reload: false,
|
||||||
|
status: 'more',
|
||||||
|
contentText: {
|
||||||
|
contentdown: '查看更多',
|
||||||
|
contentrefresh: '加载中',
|
||||||
|
contentnomore: '没有更多'
|
||||||
|
},
|
||||||
|
totalCount: 0,
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 30
|
||||||
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
handleChange (e) {
|
||||||
|
this.dataList = []
|
||||||
|
this.pageNum = 1
|
||||||
|
this._hrBcpOrderList(e)
|
||||||
|
},
|
||||||
|
searchList () {
|
||||||
|
this.dataList = []
|
||||||
|
this.pageNum = 1
|
||||||
|
this._hrBcpOrderList(this.val1)
|
||||||
|
},
|
||||||
|
/** grid查询 */
|
||||||
|
async _hrBcpOrderList (e) {
|
||||||
|
let res = await hrBcpOrderList(e, this.pageNum + '', this.pageSize + '')
|
||||||
|
this.totalCount = res.totalCount
|
||||||
|
if (res.totalCount > 0) {
|
||||||
|
const dataMap = res.data
|
||||||
|
this.dataList = this.reload ? dataMap : this.dataList.concat(dataMap)
|
||||||
|
this.reload = false
|
||||||
|
} else {
|
||||||
|
this.dataList = []
|
||||||
|
}
|
||||||
|
if (this.totalCount == this.dataList.length) {
|
||||||
|
this.reload = false
|
||||||
|
this.status = 'noMore'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onReachBottom () {
|
||||||
|
if (this.totalCount > this.dataList.length) {
|
||||||
|
this.status = 'loading'
|
||||||
|
setTimeout(() => {
|
||||||
|
this.pageNum++
|
||||||
|
this._hrBcpOrderList(this.val1)
|
||||||
|
}, 1000)
|
||||||
|
} else { //停止加载
|
||||||
|
this.status = 'noMore'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
toCheck (e) {
|
||||||
|
e.checked = !e.checked
|
||||||
|
this.checkArr = []
|
||||||
|
this.dataList.map(el => {
|
||||||
|
if (el.checked === true) {
|
||||||
|
this.checkArr.push(el.order_id)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
/** 确认 */
|
||||||
|
async toSure () {
|
||||||
|
this.disabled = true
|
||||||
|
if (!this.checkArr.length) {
|
||||||
|
this.disabled = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
let res = await hrBcpOrderDelete(this.checkArr)
|
||||||
|
this.disabled = false
|
||||||
|
this.dataList = []
|
||||||
|
this._hrBcpOrderList()
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
} catch (e) {
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="stylus">
|
||||||
|
</style>
|
||||||
BIN
static/image/menu/RF04.png
Normal file
BIN
static/image/menu/RF04.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.0 KiB |
@@ -101,3 +101,21 @@ export const getPoint = (sp) => request({
|
|||||||
url:'api/pda/hrBcp/iosIn/getPoint',
|
url:'api/pda/hrBcp/iosIn/getPoint',
|
||||||
data: {}
|
data: {}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 出入库顺序表
|
||||||
|
*/
|
||||||
|
// 查询
|
||||||
|
export const hrBcpOrderList = (code, page, size) => request({
|
||||||
|
url:'api/pda/hrBcp/order/list',
|
||||||
|
data: {
|
||||||
|
bar_code: code,
|
||||||
|
page: page,
|
||||||
|
size: size
|
||||||
|
}
|
||||||
|
})
|
||||||
|
// 强制确认
|
||||||
|
export const hrBcpOrderDelete = (arr) => request({
|
||||||
|
url:'api/pda/hrBcp/order/delete',
|
||||||
|
data: arr
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user