查询chagnge

This commit is contained in:
2022-10-14 16:36:08 +08:00
parent 391c09ad10
commit 264f6aec2f
3 changed files with 13 additions and 6 deletions

View File

@@ -122,7 +122,7 @@ uni-button:after {
padding: 0 15rpx;
font-size: 28rpx;
color: #606266;
border-radius: 14rpx;
border-radius: 10rpx;
}
.filter_input_disabled {
background-color: #eee;

View File

@@ -10,7 +10,8 @@
<view class="filter_input_wraper">
<search-box
v-model="val1"
@input="handleChange1"
:seaShow="true"
@toSearch="toSearch"
/>
</view>
</view>
@@ -27,7 +28,7 @@
<view class="filter_item">
<view class="filter_label">是否有货</view>
<view class="filter_input_wraper">
<input type="text" class="filter_input" v-model="val3" disabled>
<input type="text" class="filter_input" v-model="val3" :class="{'filter_input_disabled': disabled0}" :disabled="disabled0">
</view>
</view>
</view>
@@ -53,11 +54,12 @@
val1: '',
val2: '',
val3: '',
disabled0: true,
disabled: false
};
},
methods: {
handleChange1 (e) {
toSearch (e) {
this._pointStatusQuery()
},
/** 查询 */
@@ -66,7 +68,8 @@
return
}
let res = await pointStatusQuery(this.val1)
this.dataList = [...res.rows]
this.val2 = res.content.container_name
this.val3 = res.content.have_goods
},
async _pointOperate () {
this.disabled = true

View File

@@ -8,7 +8,9 @@
<span class="filter_label">设备</span>
</view>
<view class="filter_input_wraper">
<search-box v-model="val1" />
<search-box v-model="val1"
/>
</view>
</view>
<view class="filter_item">
@@ -194,6 +196,8 @@
</script>
<style lang="stylus">
.content
padding-bottom 154rpx
.slide_new table td:first-child, .slide_new table th:first-child
width 92rpx
.slide_new table td:nth-child(2), .slide_new table th:nth-child(2)