空木箱入库添加层数
This commit is contained in:
@@ -27,6 +27,12 @@
|
||||
<search-box v-model="val3" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">层数</view>
|
||||
<view class="filter_input_wraper">
|
||||
<uni-data-select v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submitbar">
|
||||
@@ -50,10 +56,15 @@
|
||||
val1: '',
|
||||
val2: '',
|
||||
val3: '',
|
||||
options: [{value: '1', text: '1'}, {value: '2', text: '2'}, {value: '3', text: '3'}],
|
||||
index: '',
|
||||
disabled: false
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
selectChange (e) {
|
||||
this.index = e
|
||||
},
|
||||
async _twoPdaBoxIn () {
|
||||
this.disabled = true
|
||||
if (!this.val1 || !this.val2 || !this.val3) {
|
||||
@@ -61,7 +72,7 @@
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await twoPdaBoxIn(this.val1, this.val2, this.val3)
|
||||
let res = await twoPdaBoxIn(this.val1, this.val2, this.val3, this.index)
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
@@ -75,6 +86,7 @@
|
||||
this.val1 = ''
|
||||
this.val2 = ''
|
||||
this.val3 = ''
|
||||
this.index = ''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user