出入库管理
This commit is contained in:
@@ -4,39 +4,24 @@
|
||||
<view class="search-confirm-wrap">
|
||||
<view class="search-wrap">
|
||||
<view class="search-item">
|
||||
<label class="search-label">生产区域</label>
|
||||
<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">
|
||||
<uni-data-select v-model="index3" :localdata="options3" @change="selectChange3"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view class="search-item">
|
||||
<label class="search-label">满箱码</label>
|
||||
<label class="search-label">载具号</label>
|
||||
<view class="filter_input_wraper">
|
||||
<search-box
|
||||
v-model="val1"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="search-item search-item-btns">
|
||||
<button class="confirm-button" @tap="toSearch">查询</button>
|
||||
<button class="confirm-button" :class="{'confirm-button_disabled': !pkId || !index2 || !val1}" :disabled="disabled" @tap="toSure">确认</button>
|
||||
</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>
|
||||
<button class="confirm-button" :class="{'confirm-button_disabled': !pkId}" :disabled="disabled" @tap="toSelect">选择订单</button>
|
||||
<button class="confirm-button" :class="{'confirm-button_disabled': !pkId || !index2 || !val1 || !index3}" :disabled="disabled" @tap="toSure">入库确认</button>
|
||||
</view>
|
||||
</view>
|
||||
<view class="grid-wrap">
|
||||
@@ -44,9 +29,11 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th>选择</th>
|
||||
<th>缓存线编码</th>
|
||||
<th>缓存线位置编码</th>
|
||||
<th>料箱码</th>
|
||||
<th>订单行号</th>
|
||||
<th>规格</th>
|
||||
<th>入库数量</th>
|
||||
<th>物料编码</th>
|
||||
<th>物料名称</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -57,6 +44,8 @@
|
||||
<td>{{e.cacheline_code}}</td>
|
||||
<td>{{e.position_code}}</td>
|
||||
<td>{{e.vehicle_code}}</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -77,10 +66,6 @@
|
||||
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: '',
|
||||
@@ -88,24 +73,11 @@
|
||||
};
|
||||
},
|
||||
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 = []
|
||||
@@ -168,12 +140,14 @@
|
||||
},
|
||||
toRadio (e) {
|
||||
this.pkId = this.pkId === e.position_code ? '' : e.position_code
|
||||
},
|
||||
toSelect () {
|
||||
if (!this.pkId) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/management/MaterList'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
.grid-wrap
|
||||
height: calc(100% - 237px); /** 42+ 15*6+ 35*3 */
|
||||
</style>
|
||||
Reference in New Issue
Block a user