判断
This commit is contained in:
@@ -50,6 +50,14 @@
|
||||
<uni-data-select v-model="index2" :localdata="options2" @change="selectChange2"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom" v-show="index == '2'">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label filter_input_disabled">来源区域</span>
|
||||
</view>
|
||||
<view class="zd-col-17">
|
||||
<input type="text" class="filter_input filter_input_disabled" v-model="lyArea" disabled>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">物料校验</span>
|
||||
@@ -83,6 +91,7 @@
|
||||
val1: '',
|
||||
val3: '',
|
||||
val2: '',
|
||||
lyArea: '',
|
||||
options: [{text:'站点', value:'1'},{text:'区域',value: '2'}],
|
||||
index: '2',
|
||||
// options2: [{text:'堆叠托盘', value:'11111111'},{text:'料箱',value: '22222222'},{text:'白色EPH',value: '33333333'}],
|
||||
@@ -110,6 +119,7 @@
|
||||
let res = await getRegion()
|
||||
if (res) {
|
||||
this.options2 = res
|
||||
this.lyArea = res[0].text
|
||||
} else {
|
||||
this.options2 =[]
|
||||
}
|
||||
@@ -138,7 +148,6 @@
|
||||
this.val1 = ''
|
||||
this.val2 = ''
|
||||
this.val3 = ''
|
||||
this.index2 = ''
|
||||
this.disabled = false
|
||||
this.kwData = {}
|
||||
this.isChecked = true
|
||||
|
||||
@@ -50,6 +50,14 @@
|
||||
<uni-data-select v-model="index2" :localdata="options2" @change="selectChange2"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom" v-show="index == '2'">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label filter_input_disabled">来源区域</span>
|
||||
</view>
|
||||
<view class="zd-col-17">
|
||||
<input type="text" class="filter_input filter_input_disabled" v-model="lyArea" disabled>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">物料校验</span>
|
||||
@@ -83,6 +91,7 @@
|
||||
val1: '',
|
||||
val3: '',
|
||||
val2: '',
|
||||
lyArea: '',
|
||||
options: [{text:'站点', value:'1'},{text:'区域',value: '2'}],
|
||||
index: '2',
|
||||
// options2: [{text:'堆叠托盘', value:'11111111'},{text:'料箱',value: '22222222'},{text:'白色EPH',value: '33333333'}],
|
||||
@@ -110,6 +119,7 @@
|
||||
let res = await getRegion()
|
||||
if (res) {
|
||||
this.options2 = res
|
||||
this.lyArea = res[0].text
|
||||
} else {
|
||||
this.options2 =[]
|
||||
}
|
||||
@@ -128,16 +138,16 @@
|
||||
},
|
||||
selectChange (e) {
|
||||
this.index = e
|
||||
uni.setStorageSync('selectedSiteType2', e)
|
||||
uni.setStorageSync('selectedSiteType2', this.index)
|
||||
},
|
||||
selectChange2 (e) {
|
||||
this.index2 = e
|
||||
uni.setStorageSync('selectedMbqy2', e)
|
||||
uni.setStorageSync('selectedMbqy2', this.index2)
|
||||
},
|
||||
clearUp () {
|
||||
this.val1 = ''
|
||||
this.val2 = ''
|
||||
this.val3 = ''
|
||||
this.index2 = ''
|
||||
this.disabled = false
|
||||
this.kwData = {}
|
||||
this.isChecked = true
|
||||
|
||||
Reference in New Issue
Block a user