This commit is contained in:
2022-12-13 10:56:09 +08:00
parent 30b1d87ef4
commit 068753627f
4 changed files with 50 additions and 23 deletions

View File

@@ -8,7 +8,7 @@
<span class="filter_label">点位</span>
</view>
<view class="filter_input_wraper">
<search-box v-model="val1" />
<search-box v-model="val1" @handleChange="handleChange1"/>
</view>
</view>
<view class="filter_item">
@@ -45,7 +45,7 @@
<script>
import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue'
import {ovenInAndOut, inCoolIvt, bakingrelease} from '@/utils/getData1.js'
import {ovenInAndOut, inCoolIvt, bakingrelease, bakingquery} from '@/utils/getData1.js'
export default {
components: {
NavBar,
@@ -63,8 +63,16 @@
};
},
methods: {
handleChange (e) {
console.log(e)
handleChange1 (e) {
this._bakingquery(e)
},
/** 查询 */
async _bakingquery (val1) {
if (!val1) {
return
}
let res = await bakingquery(val1)
this.val2 = res.data.container_name
},
async _ovenInAndOut1 (type) {
this.disabled = true
@@ -78,6 +86,10 @@
title: res.message,
icon: 'none'
})
this.val1 = ''
this.val2 = ''
this.val3 = ''
this.val4 = ''
this.disabled = false
} catch (e) {
this.disabled = false
@@ -95,6 +107,10 @@
title: res.message,
icon: 'none'
})
this.val1 = ''
this.val2 = ''
this.val3 = ''
this.val4 = ''
this.disabled = false
} catch (e) {
this.disabled = false