2024-04-25 14:29:54 +08:00
|
|
|
<template>
|
|
|
|
|
<view class="zd_container">
|
2024-07-16 15:43:00 +08:00
|
|
|
<!-- <nav-bar title="人工烘烤"></nav-bar> -->
|
|
|
|
|
<nav-bar :title="title"></nav-bar>
|
2024-04-25 14:29:54 +08:00
|
|
|
<view class="zd_content">
|
|
|
|
|
<view class="zd_wrapper">
|
|
|
|
|
<view class="filter_item">
|
|
|
|
|
<view class="filter_label_wraper">
|
|
|
|
|
<span class="filter_label">点位</span>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="filter_input_wraper">
|
|
|
|
|
<search-box v-model="val1" @handleChange="handleChange1"/>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="filter_item">
|
|
|
|
|
<view class="filter_label_wraper">
|
|
|
|
|
<span class="filter_label">母卷</span>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="filter_input_wraper">
|
|
|
|
|
<search-box v-model="val2" />
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="filter_item">
|
|
|
|
|
<view class="filter_label">温度</view>
|
|
|
|
|
<view class="filter_input_wraper">
|
2025-06-13 17:58:39 +08:00
|
|
|
<!-- <input type="text" class="filter_input" v-model="val3"> -->
|
|
|
|
|
<NumberInput
|
|
|
|
|
v-model="val3"
|
|
|
|
|
input-class="filter_input"
|
|
|
|
|
mode="mixed"
|
|
|
|
|
:decimalLength="3"
|
|
|
|
|
/>
|
2024-04-25 14:29:54 +08:00
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="filter_item">
|
|
|
|
|
<view class="filter_label">时间</view>
|
|
|
|
|
<view class="filter_input_wraper">
|
2025-06-13 17:58:39 +08:00
|
|
|
<!-- <input type="text" class="filter_input" v-model="val4"> -->
|
|
|
|
|
<NumberInput
|
|
|
|
|
v-model="val4"
|
|
|
|
|
input-class="filter_input"
|
|
|
|
|
mode="integer"
|
|
|
|
|
/>
|
2024-04-25 14:29:54 +08:00
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="filter_item">
|
|
|
|
|
<view class="filter_label_wraper">
|
|
|
|
|
<span class="filter_label">终点</span>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="filter_input_wraper">
|
|
|
|
|
<search-box v-model="val5" />
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="zd-row submitbar">
|
|
|
|
|
<button class="zd-col-7 btn-submit btn-success letter-30" :class="{'btn-info': !val1 || !val2 || !val5}" :disabled="disabled" @tap="_handleBakingovenInAndOut1('1')">入箱</button>
|
|
|
|
|
<button class="zd-col-7 btn-submit btn-success letter-30" :class="{'btn-info': !val1 || !val2 || !val5}" :disabled="disabled" @tap="_handleBakingovenInAndOut2('2')">出箱</button>
|
|
|
|
|
<button class="zd-col-7 btn-submit btn-success" :class="{'btn-info': !val1 || !val2}" :disabled="disabled3" @tap="_handleBakingcheckConfirm">质检合格</button>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import NavBar from '@/components/NavBar.vue'
|
|
|
|
|
import SearchBox from '@/components/SearchBox.vue'
|
2025-06-13 17:58:39 +08:00
|
|
|
import NumberInput from '@/components/NumberInput.vue'
|
2024-04-25 14:29:54 +08:00
|
|
|
import {handleBakingovenInAndOut, handleBakingcheckConfirm, bakingquery} from '@/utils/getData1.js'
|
|
|
|
|
export default {
|
|
|
|
|
components: {
|
|
|
|
|
NavBar,
|
2025-06-13 17:58:39 +08:00
|
|
|
SearchBox,
|
|
|
|
|
NumberInput
|
2024-04-25 14:29:54 +08:00
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
2024-07-16 15:43:00 +08:00
|
|
|
title: '',
|
2024-04-25 14:29:54 +08:00
|
|
|
val1: '',
|
|
|
|
|
val2: '',
|
|
|
|
|
val3: '',
|
|
|
|
|
val4: '',
|
|
|
|
|
val5: '',
|
|
|
|
|
disabled: false,
|
|
|
|
|
disabled3: false
|
|
|
|
|
};
|
|
|
|
|
},
|
2024-07-16 15:43:00 +08:00
|
|
|
onLoad (options) {
|
|
|
|
|
this.title = options.title
|
|
|
|
|
},
|
2024-04-25 14:29:54 +08:00
|
|
|
methods: {
|
|
|
|
|
handleChange1 (e) {
|
|
|
|
|
this._bakingquery(e)
|
|
|
|
|
},
|
|
|
|
|
/** 查询 */
|
|
|
|
|
async _bakingquery (val1) {
|
|
|
|
|
if (!val1) {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
let res = await bakingquery(val1)
|
|
|
|
|
this.val2 = res.data.container_name
|
|
|
|
|
},
|
|
|
|
|
async _handleBakingovenInAndOut1 (type) {
|
|
|
|
|
this.disabled = true
|
|
|
|
|
if (!this.val1 || !this.val2 || !this.val5) {
|
|
|
|
|
this.disabled = false
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
let res = await handleBakingovenInAndOut(this.val1, this.val2,this.val3, this.val4, this.val5, type)
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: res.message,
|
|
|
|
|
icon: 'none'
|
|
|
|
|
})
|
|
|
|
|
this.val1 = ''
|
|
|
|
|
this.val2 = ''
|
|
|
|
|
this.val3 = ''
|
|
|
|
|
this.val4 = ''
|
|
|
|
|
this.val5 = ''
|
|
|
|
|
this.disabled = false
|
|
|
|
|
} catch (e) {
|
|
|
|
|
this.disabled = false
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
async _handleBakingovenInAndOut2 (type) {
|
|
|
|
|
this.disabled = true
|
|
|
|
|
if (!this.val1 || !this.val2 || !this.val5) {
|
|
|
|
|
this.disabled = false
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
let res = await handleBakingovenInAndOut(this.val1, this.val2, '', '', this.val5, type)
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: res.message,
|
|
|
|
|
icon: 'none'
|
|
|
|
|
})
|
|
|
|
|
this.val1 = ''
|
|
|
|
|
this.val2 = ''
|
|
|
|
|
this.val3 = ''
|
|
|
|
|
this.val4 = ''
|
|
|
|
|
this.val5 = ''
|
|
|
|
|
this.disabled = false
|
|
|
|
|
} catch (e) {
|
|
|
|
|
this.disabled = false
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
async _handleBakingcheckConfirm () {
|
|
|
|
|
this.disabled3 = true
|
|
|
|
|
if (!this.val1 || !this.val2) {
|
|
|
|
|
this.disabled3 = false
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
let res = await handleBakingcheckConfirm(this.val1, this.val2)
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: res.message,
|
|
|
|
|
icon: 'none'
|
|
|
|
|
})
|
|
|
|
|
this.val1 = ''
|
|
|
|
|
this.val2 = ''
|
|
|
|
|
this.val3 = ''
|
|
|
|
|
this.val4 = ''
|
|
|
|
|
this.val5 = ''
|
|
|
|
|
this.disabled3 = false
|
|
|
|
|
} catch (e) {
|
|
|
|
|
this.disabled3 = false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-05-11 16:05:44 +08:00
|
|
|
</script>
|