半成品拼盘盘点
This commit is contained in:
@@ -28,16 +28,30 @@ uni-button:after {
|
|||||||
.search-wrap{
|
.search-wrap{
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
justify-content: space-between;
|
justify-content: flex-start;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0 15px;
|
padding: 0 15px;
|
||||||
}
|
}
|
||||||
.search-item{
|
.search-item{
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
width: 48%;
|
width: 32%;
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
}
|
}
|
||||||
|
.search-item:nth-child(3n+2) {
|
||||||
|
margin-left: 2%;
|
||||||
|
margin-right: 2%;
|
||||||
|
}
|
||||||
|
.search-item_2 {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
width: 64%;
|
||||||
|
margin-top: 15px;
|
||||||
|
margin-left: 4%;
|
||||||
|
}
|
||||||
|
.flexend {
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
.search-item-btns {
|
.search-item-btns {
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
}
|
}
|
||||||
@@ -58,7 +72,7 @@ uni-button:after {
|
|||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
.filter_input_wraper {
|
.filter_input_wraper {
|
||||||
width: calc(100% - 100px);
|
width: calc(100% - 85px);
|
||||||
height: 35px;
|
height: 35px;
|
||||||
line-height: 35px;
|
line-height: 35px;
|
||||||
}
|
}
|
||||||
@@ -171,13 +185,13 @@ uni-button:after {
|
|||||||
position: -webkit-sticky;
|
position: -webkit-sticky;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
left: 0;
|
left: 0;
|
||||||
z-index: 101;
|
z-index: 50;
|
||||||
}
|
}
|
||||||
.zd_wrapper .grid-table thead tr th {
|
.zd_wrapper .grid-table thead tr th {
|
||||||
position: -webkit-sticky;
|
position: -webkit-sticky;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
z-index: 100;
|
z-index: 49;
|
||||||
}
|
}
|
||||||
.status-wrap {
|
.status-wrap {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
@@ -27,16 +27,12 @@
|
|||||||
<input type="text" class="search-input-l" v-model="val1">
|
<input type="text" class="search-input-l" v-model="val1">
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="search-item search-item-btns">
|
<view class="search-item_2">
|
||||||
<button class="confirm-button" @tap="toSearch">查询</button>
|
<button class="confirm-button" @tap="toSearch">添加盘点物料</button>
|
||||||
<button class="confirm-button" :class="{'confirm-button_disabled': !pkId || !index2 || !val1}" :disabled="disabled" @tap="toSure">确认</button>
|
<button class="confirm-button" :class="{'confirm-button_disabled': !pkId || !index2 || !val1 || !index3}" :disabled="disabled" @tap="toSure">删除一行</button>
|
||||||
</view> -->
|
<button class="confirm-button" :class="{'confirm-button_disabled': !pkId || !index2 || !val1 || !index3}" :disabled="disabled" @tap="toSure">生成盘点单</button>
|
||||||
</view>
|
<button class="confirm-button" :class="{'confirm-button_disabled': !pkId || !index2 || !val1 || !index3}" :disabled="disabled" @tap="toSure">盘点作业</button>
|
||||||
<view class="confirm-button-wrap">
|
</view>
|
||||||
<button class="confirm-button" @tap="toSearch">添加盘点物料</button>
|
|
||||||
<button class="confirm-button" :class="{'confirm-button_disabled': !pkId || !index2 || !val1 || !index3}" :disabled="disabled" @tap="toSure">删除一行</button>
|
|
||||||
<button class="confirm-button" :class="{'confirm-button_disabled': !pkId || !index2 || !val1 || !index3}" :disabled="disabled" @tap="toSure">生成盘点单</button>
|
|
||||||
<button class="confirm-button" :class="{'confirm-button_disabled': !pkId || !index2 || !val1 || !index3}" :disabled="disabled" @tap="toSure">盘点作业</button>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="grid-wrap">
|
<view class="grid-wrap">
|
||||||
@@ -180,5 +176,5 @@
|
|||||||
|
|
||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
.grid-wrap
|
.grid-wrap
|
||||||
height: calc(100% - 237px); /** 42+ 15*6+ 35*3 */
|
height: calc(100% - 187px); /** 42+ 15*5+ 35*2 */
|
||||||
</style>
|
</style>
|
||||||
@@ -45,17 +45,13 @@
|
|||||||
<input type="text" class="search-input-l" v-model="val1">
|
<input type="text" class="search-input-l" v-model="val1">
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="search-item search-item-btns">
|
<view class="search-item_2">
|
||||||
<button class="confirm-button" @tap="toSearch">查询</button>
|
<button class="confirm-button" @tap="toSearch">查询</button>
|
||||||
<button class="confirm-button" :class="{'confirm-button_disabled': !pkId || !index2 || !val1}" :disabled="disabled" @tap="toSure">确认</button>
|
<button class="confirm-button" :class="{'confirm-button_disabled': !pkId || !index2 || !val1 || !index3}" :disabled="disabled" @tap="toSure">下发</button>
|
||||||
</view> -->
|
<button class="confirm-button" :class="{'confirm-button_disabled': !pkId || !index2 || !val1 || !index3}" :disabled="disabled" @tap="toSure">盘点确认</button>
|
||||||
</view>
|
<button class="confirm-button" :class="{'confirm-button_disabled': !pkId || !index2 || !val1 || !index3}" :disabled="disabled" @tap="toSure">实盘为准</button>
|
||||||
<view class="confirm-button-wrap">
|
<button class="confirm-button" :class="{'confirm-button_disabled': !pkId || !index2 || !val1 || !index3}" :disabled="disabled" @tap="toSure">账务为准</button>
|
||||||
<button class="confirm-button" @tap="toSearch">查询</button>
|
</view>
|
||||||
<button class="confirm-button" :class="{'confirm-button_disabled': !pkId || !index2 || !val1 || !index3}" :disabled="disabled" @tap="toSure">下发</button>
|
|
||||||
<button class="confirm-button" :class="{'confirm-button_disabled': !pkId || !index2 || !val1 || !index3}" :disabled="disabled" @tap="toSure">盘点确认</button>
|
|
||||||
<button class="confirm-button" :class="{'confirm-button_disabled': !pkId || !index2 || !val1 || !index3}" :disabled="disabled" @tap="toSure">实盘为准</button>
|
|
||||||
<button class="confirm-button" :class="{'confirm-button_disabled': !pkId || !index2 || !val1 || !index3}" :disabled="disabled" @tap="toSure">账务为准</button>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="grid-wrap zd_wrapper">
|
<view class="grid-wrap zd_wrapper">
|
||||||
@@ -148,7 +144,7 @@
|
|||||||
options3: [{text: '对接位', value: '1'}, {text: '准备位', value: '2'}],
|
options3: [{text: '对接位', value: '1'}, {text: '准备位', value: '2'}],
|
||||||
index3: '1',
|
index3: '1',
|
||||||
val1: '',
|
val1: '',
|
||||||
dataList: [{position_code: '1', vehicle_code: 'djlfjjljlkllkllldf', cacheline_code: 'jfjldfjl'}, {position_code: '2', vehicle_code: 'djlfjldf', cacheline_code: 'jfjldfjl'}],
|
dataList: [{position_code: '1', vehicle_code: 'djlfjjljlkllkllldf', cacheline_code: 'jfjldfjl'}, {position_code: '2', vehicle_code: 'djlfjldf', cacheline_code: 'jfjldfjl'}, {position_code: '21', vehicle_code: 'djlfjldf', cacheline_code: 'jfjldfjl'}, {position_code: '22', vehicle_code: 'djlfjldf', cacheline_code: 'jfjldfjl'}, {position_code: '23', vehicle_code: 'djlfjldf', cacheline_code: 'jfjldfjl'}, {position_code: '24', vehicle_code: 'djlfjldf', cacheline_code: 'jfjldfjl'}, {position_code: '25', vehicle_code: 'djlfjldf', cacheline_code: 'jfjldfjl'}, {position_code: '26', vehicle_code: 'djlfjldf', cacheline_code: 'jfjldfjl'}, {position_code: '27', vehicle_code: 'djlfjldf', cacheline_code: 'jfjldfjl'}, {position_code: '29', vehicle_code: 'djlfjldf', cacheline_code: 'jfjldfjl'}],
|
||||||
pkId: '',
|
pkId: '',
|
||||||
disabled: false
|
disabled: false
|
||||||
};
|
};
|
||||||
@@ -259,4 +255,6 @@
|
|||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
.grid-wrap
|
.grid-wrap
|
||||||
height: calc(100% - 237px); /** 42+ 15*6+ 35*3 */
|
height: calc(100% - 237px); /** 42+ 15*6+ 35*3 */
|
||||||
|
/deep/ .uni-calendar-item__weeks-box-item
|
||||||
|
height: 40px !important
|
||||||
</style>
|
</style>
|
||||||
@@ -1,19 +1,220 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view class="content">
|
||||||
|
<nav-bar title="半成品拼盘"></nav-bar>
|
||||||
|
<view class="search-confirm-wrap">
|
||||||
|
<view class="search-wrap">
|
||||||
|
<view class="search-item">
|
||||||
|
<label class="search-label">仓库</label>
|
||||||
|
<view class="filter_input_wraper">
|
||||||
|
<uni-data-select v-model="index1" :localdata="options1" @change="selectChange1"></uni-data-select>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="search-item">
|
||||||
|
<label class="search-label">单据类型</label>
|
||||||
|
<view class="filter_input_wraper">
|
||||||
|
<uni-data-select v-model="index2" :localdata="options2" @change="selectChange2"></uni-data-select>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="search-item">
|
||||||
|
<label class="search-label">物料</label>
|
||||||
|
<view class="filter_input_wraper">
|
||||||
|
<input type="text" class="search-input-l" v-model="val1">
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="search-item">
|
||||||
|
<label class="search-label">规格</label>
|
||||||
|
<view class="filter_input_wraper">
|
||||||
|
<input type="text" class="search-input-l" v-model="val1">
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="search-item">
|
||||||
|
<label class="search-label">备注</label>
|
||||||
|
<view class="filter_input_wraper">
|
||||||
|
<input type="text" class="search-input-l" v-model="val1">
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="search-item flexend">
|
||||||
|
<button class="confirm-button" :class="{'confirm-button_disabled': !pkId || !index2 || !val1 || !index3}" :disabled="disabled" @tap="toSure">生成盘点单</button>
|
||||||
|
<button class="confirm-button" :class="{'confirm-button_disabled': !pkId || !index2 || !val1 || !index3}" :disabled="disabled" @tap="toSure">作业查询</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="grid-wrap">
|
||||||
|
<table class="grid-table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>选择</th>
|
||||||
|
<th>仓位</th>
|
||||||
|
<th>数量(个)</th>
|
||||||
|
<th>载具号</th>
|
||||||
|
<th>单重(g)</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr v-for="e in dataList" :key="e.position_code" @click="toRadio(e)">
|
||||||
|
<td>
|
||||||
|
<view class="iconfont icon-check" :class="{'icon-checked': pkId === e.position_code}"></view>
|
||||||
|
</td>
|
||||||
|
<td>{{e.cacheline_code}}</td>
|
||||||
|
<td>{{e.position_code}}</td>
|
||||||
|
<td>{{e.vehicle_code}}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<view class="transfer-wrapper">
|
||||||
|
<button class="transfer-button">>></button>
|
||||||
|
<button class="transfer-button"><<</button>
|
||||||
|
</view>
|
||||||
|
<table class="grid-table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>顺序</th>
|
||||||
|
<th>仓位</th>
|
||||||
|
<th>数量(个)</th>
|
||||||
|
<th>载具号</th>
|
||||||
|
<th>单重(g)</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr v-for="e in dataList" :key="e.position_code" @click="toRadio(e)">
|
||||||
|
<td></td>
|
||||||
|
<td>{{e.cacheline_code}}</td>
|
||||||
|
<td>{{e.position_code}}</td>
|
||||||
|
<td>{{e.vehicle_code}}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import NavBar from '@/components/NavBar.vue'
|
||||||
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
|
import {getCacheLine, inOutExceptionInstQuery, inOutExceptionInstConfirm} from '@/utils/getData2.js'
|
||||||
export default {
|
export default {
|
||||||
|
components: {
|
||||||
|
NavBar,
|
||||||
|
SearchBox
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
options1: [{text: 'A1', value: 'A1'}, {text: 'A2', value: 'A2'}],
|
||||||
|
index1: 'A1',
|
||||||
|
options2: [],
|
||||||
|
index2: '',
|
||||||
|
options3: [{text: '对接位', value: '1'}, {text: '准备位', value: '2'}],
|
||||||
|
index3: '1',
|
||||||
|
val1: '',
|
||||||
|
dataList: [],
|
||||||
|
pkId: '',
|
||||||
|
disabled: false
|
||||||
};
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this._getCacheLine('A1')
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 选择器1 */
|
||||||
|
selectChange1(e) {
|
||||||
|
this.index1 = e
|
||||||
|
if (this.index1) {
|
||||||
|
this._getCacheLine(e)
|
||||||
|
}
|
||||||
|
this.index2 = ''
|
||||||
|
},
|
||||||
|
/** 选择器2 */
|
||||||
|
selectChange2(e) {
|
||||||
|
this.index2 = e
|
||||||
|
},
|
||||||
|
/** 选择器3 */
|
||||||
|
selectChange3(e) {
|
||||||
|
this.index3 = e
|
||||||
|
},
|
||||||
|
toSearch () {
|
||||||
|
this.dataList = []
|
||||||
|
this.pkId = ''
|
||||||
|
this._inOutExceptionInstQuery()
|
||||||
|
},
|
||||||
|
async _getCacheLine (id) {
|
||||||
|
let res = await getCacheLine(id)
|
||||||
|
this.options2 = [...res]
|
||||||
|
},
|
||||||
|
async _inOutExceptionInstQuery () {
|
||||||
|
let res = await inOutExceptionInstQuery(this.index2)
|
||||||
|
this.dataList = [...res]
|
||||||
|
},
|
||||||
|
async toSure () {
|
||||||
|
this.disabled = true
|
||||||
|
if (!this.pkId) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请选择',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
this.disabled = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (!this.index2) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请选择缓存线',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
this.disabled = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (!this.index3) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请选择位置类型',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
this.disabled = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (!this.val1) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请扫满箱码',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
this.disabled = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
let res = await inOutExceptionInstConfirm(this.index2, this.val1, this.pkId, this.index3)
|
||||||
|
this.disabled = false
|
||||||
|
this.toSearch()
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
} catch (e) {
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
toRadio (e) {
|
||||||
|
this.pkId = this.pkId === e.position_code ? '' : e.position_code
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="stylus">
|
<style lang="stylus" scoped>
|
||||||
|
@import '../../common/style/mixin.styl';
|
||||||
|
.grid-wrap
|
||||||
|
height: calc(100% - 187px); /** 42+ 15*5+ 35*2 */
|
||||||
|
.grid-wrap
|
||||||
|
_fj(, flex-start)
|
||||||
|
.grid-table
|
||||||
|
width calc(50% - 40px)
|
||||||
|
.transfer-wrapper
|
||||||
|
_wh(80px, 100%)
|
||||||
|
padding 0 15px
|
||||||
|
_fj(center,,column)
|
||||||
|
.transfer-button
|
||||||
|
width 50px
|
||||||
|
background-color #D7592F
|
||||||
|
color #fff
|
||||||
|
line-height 35px
|
||||||
|
margin 15px 0
|
||||||
</style>
|
</style>
|
||||||
@@ -1,19 +1,247 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view class="content">
|
||||||
|
<nav-bar title="半成品拼盘查询"></nav-bar>
|
||||||
|
<view class="search-confirm-wrap">
|
||||||
|
<view class="search-wrap">
|
||||||
|
<view class="search-item">
|
||||||
|
<label class="search-label">仓库</label>
|
||||||
|
<view class="filter_input_wraper">
|
||||||
|
<uni-data-select v-model="index1" :localdata="options1" @change="selectChange1"></uni-data-select>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="search-item">
|
||||||
|
<label class="search-label">开始日期</label>
|
||||||
|
<view class="filter_input_wraper">
|
||||||
|
<input type="text" class="search-input-l" v-model="startDate" @click="open1">
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="search-item">
|
||||||
|
<label class="search-label">结束日期</label>
|
||||||
|
<view class="filter_input_wraper">
|
||||||
|
<input type="text" class="search-input-l" v-model="endDate" @click="open2">
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="search-item">
|
||||||
|
<label class="search-label">业务类型</label>
|
||||||
|
<view class="filter_input_wraper">
|
||||||
|
<uni-data-select v-model="index2" :localdata="options2" @change="selectChange2"></uni-data-select>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="search-item">
|
||||||
|
<label class="search-label">物料</label>
|
||||||
|
<view class="filter_input_wraper">
|
||||||
|
<input type="text" class="search-input-l" v-model="val1" placeholder="编号/名称">
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="search-item">
|
||||||
|
<label class="search-label">载具号</label>
|
||||||
|
<view class="filter_input_wraper">
|
||||||
|
<input type="text" class="search-input-l" v-model="val1">
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="confirm-button-wrap">
|
||||||
|
<button class="confirm-button" @tap="toSearch">查询</button>
|
||||||
|
<button class="confirm-button" :class="{'confirm-button_disabled': !pkId || !index2 || !val1 || !index3}" :disabled="disabled" @tap="toSure">拼盘完成</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="grid-wrap zd_wrapper">
|
||||||
|
<view class="slide_new">
|
||||||
|
<table class="grid-table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>选择</th>
|
||||||
|
<th>序号</th>
|
||||||
|
<th>单据号</th>
|
||||||
|
<th>状态</th>
|
||||||
|
<th>类型</th>
|
||||||
|
<th>物料编号</th>
|
||||||
|
<th>物料名称</th>
|
||||||
|
<th>数量</th>
|
||||||
|
<th>单重(g)</th>
|
||||||
|
<th>转出货位</th>
|
||||||
|
<th>转出载具</th>
|
||||||
|
<th>转入货位</th>
|
||||||
|
<th>转入载具</th>
|
||||||
|
<th>创建时间</th>
|
||||||
|
<th>创建人</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr v-for="e in dataList" :key="e.position_code" @click="toRadio(e)">
|
||||||
|
<td>
|
||||||
|
<view class="iconfont icon-check" :class="{'icon-checked': pkId === e.position_code}"></view>
|
||||||
|
</td>
|
||||||
|
<td>{{e.cacheline_code}}</td>
|
||||||
|
<td>{{e.position_code}}</td>
|
||||||
|
<td>{{e.vehicle_code}}</td>
|
||||||
|
<td></td>
|
||||||
|
<td>{{e.cacheline_code}}</td>
|
||||||
|
<td>{{e.position_code}}</td>
|
||||||
|
<td>{{e.vehicle_code}}</td>
|
||||||
|
<td></td>
|
||||||
|
<td>{{e.cacheline_code}}</td>
|
||||||
|
<td>{{e.position_code}}</td>
|
||||||
|
<td>{{e.vehicle_code}}</td>
|
||||||
|
<td></td>
|
||||||
|
<td>{{e.cacheline_code}}</td>
|
||||||
|
<td>{{e.position_code}}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view>
|
||||||
|
<uni-calendar
|
||||||
|
ref="calendar1"
|
||||||
|
:insert="false"
|
||||||
|
:date="startDate"
|
||||||
|
@confirm="confirm1"
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
|
<view>
|
||||||
|
<uni-calendar
|
||||||
|
ref="calendar2"
|
||||||
|
:insert="false"
|
||||||
|
:date="endDate"
|
||||||
|
@confirm="confirm2"
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import NavBar from '@/components/NavBar.vue'
|
||||||
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
|
import {getCacheLine, inOutExceptionInstQuery, inOutExceptionInstConfirm} from '@/utils/getData2.js'
|
||||||
|
import {dateFtt} from '@/utils/utils.js'
|
||||||
export default {
|
export default {
|
||||||
|
components: {
|
||||||
|
NavBar,
|
||||||
|
SearchBox
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
startDate: dateFtt(new Date()),
|
||||||
|
endDate: dateFtt(new Date(new Date().setDate(new Date().getDate() + 1))),
|
||||||
|
options1: [{text: 'A1', value: 'A1'}, {text: 'A2', value: 'A2'}],
|
||||||
|
index1: 'A1',
|
||||||
|
options2: [],
|
||||||
|
index2: '',
|
||||||
|
options3: [{text: '对接位', value: '1'}, {text: '准备位', value: '2'}],
|
||||||
|
index3: '1',
|
||||||
|
val1: '',
|
||||||
|
dataList: [{position_code: '1', vehicle_code: 'djlfjjljlkllkllldf', cacheline_code: 'jfjldfjl'}, {position_code: '2', vehicle_code: 'djlfjldf', cacheline_code: 'jfjldfjl'}, {position_code: '21', vehicle_code: 'djlfjldf', cacheline_code: 'jfjldfjl'}, {position_code: '22', vehicle_code: 'djlfjldf', cacheline_code: 'jfjldfjl'}, {position_code: '23', vehicle_code: 'djlfjldf', cacheline_code: 'jfjldfjl'}, {position_code: '24', vehicle_code: 'djlfjldf', cacheline_code: 'jfjldfjl'}, {position_code: '25', vehicle_code: 'djlfjldf', cacheline_code: 'jfjldfjl'}, {position_code: '26', vehicle_code: 'djlfjldf', cacheline_code: 'jfjldfjl'}, {position_code: '27', vehicle_code: 'djlfjldf', cacheline_code: 'jfjldfjl'}, {position_code: '29', vehicle_code: 'djlfjldf', cacheline_code: 'jfjldfjl'}],
|
||||||
|
pkId: '',
|
||||||
|
disabled: false
|
||||||
};
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
open1(){
|
||||||
|
this.$refs.calendar1.open()
|
||||||
|
},
|
||||||
|
confirm1(e) {
|
||||||
|
var compare = Date.parse(new Date(e.fulldate)) - Date.parse(new Date(this.endDate))
|
||||||
|
if (compare < 0) {
|
||||||
|
this.startDate = e.fulldate
|
||||||
|
}
|
||||||
|
},
|
||||||
|
open2(){
|
||||||
|
this.$refs.calendar2.open()
|
||||||
|
},
|
||||||
|
confirm2(e) {
|
||||||
|
var compare = Date.parse(new Date(e.fulldate)) - Date.parse(new Date(this.startDate))
|
||||||
|
if (compare > 0) {
|
||||||
|
this.endDate = e.fulldate
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/** 选择器1 */
|
||||||
|
selectChange1(e) {
|
||||||
|
this.index1 = e
|
||||||
|
if (this.index1) {
|
||||||
|
this._getCacheLine(e)
|
||||||
|
}
|
||||||
|
this.index2 = ''
|
||||||
|
},
|
||||||
|
/** 选择器2 */
|
||||||
|
selectChange2(e) {
|
||||||
|
this.index2 = e
|
||||||
|
},
|
||||||
|
/** 选择器3 */
|
||||||
|
selectChange3(e) {
|
||||||
|
this.index3 = e
|
||||||
|
},
|
||||||
|
toSearch () {
|
||||||
|
this.dataList = []
|
||||||
|
this.pkId = ''
|
||||||
|
this._inOutExceptionInstQuery()
|
||||||
|
},
|
||||||
|
async _getCacheLine (id) {
|
||||||
|
let res = await getCacheLine(id)
|
||||||
|
this.options2 = [...res]
|
||||||
|
},
|
||||||
|
async _inOutExceptionInstQuery () {
|
||||||
|
let res = await inOutExceptionInstQuery(this.index2)
|
||||||
|
this.dataList = [...res]
|
||||||
|
},
|
||||||
|
async toSure () {
|
||||||
|
this.disabled = true
|
||||||
|
if (!this.pkId) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请选择',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
this.disabled = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (!this.index2) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请选择缓存线',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
this.disabled = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (!this.index3) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请选择位置类型',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
this.disabled = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (!this.val1) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请扫满箱码',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
this.disabled = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
let res = await inOutExceptionInstConfirm(this.index2, this.val1, this.pkId, this.index3)
|
||||||
|
this.disabled = false
|
||||||
|
this.toSearch()
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
} catch (e) {
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
toRadio (e) {
|
||||||
|
this.pkId = this.pkId === e.position_code ? '' : e.position_code
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="stylus">
|
<style lang="stylus" scoped>
|
||||||
|
.grid-wrap
|
||||||
|
height: calc(100% - 237px); /** 42+ 15*6+ 35*3 */
|
||||||
|
/deep/ .uni-calendar-item__weeks-box-item
|
||||||
|
height: 40px !important
|
||||||
</style>
|
</style>
|
||||||
@@ -39,7 +39,9 @@ export const authority = () => {
|
|||||||
{menu_id: '3', path: 'RF03', name: '出入库管理', sonTree: [
|
{menu_id: '3', path: 'RF03', name: '出入库管理', sonTree: [
|
||||||
{menu_id: '1', name: '半成品入库', path: '/pages/management/HalfFinishedInStore'},
|
{menu_id: '1', name: '半成品入库', path: '/pages/management/HalfFinishedInStore'},
|
||||||
{menu_id: '2', name: '成品入库', path: '/pages/management/FinishedInStore'},
|
{menu_id: '2', name: '成品入库', path: '/pages/management/FinishedInStore'},
|
||||||
{menu_id: '3', name: '发货确认', path: '/pages/management/DeliveryConfirm'}
|
{menu_id: '3', name: '发货确认', path: '/pages/management/DeliveryConfirm'},
|
||||||
|
{menu_id: '4', name: '半成品盘点', path: '/pages/management/semifinishedcheck'},
|
||||||
|
{menu_id: '5', name: '半成品拼盘', path: '/pages/management/semifinishedcompose'}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user