烘烤工序质检不合格/新增母卷决策页面/新增冷却区生箔详情页面

This commit is contained in:
2025-06-10 13:24:24 +08:00
parent 9b0835a7b5
commit 1e59224993
8 changed files with 304 additions and 27 deletions

View File

@@ -23,13 +23,19 @@
<view class="filter_item">
<view class="filter_label">{{$t('filter.temperature')}}</view>
<view class="filter_input_wraper">
<input type="text" class="filter_input" v-model="val3">
<input type="number" class="filter_input" v-model="val3">
</view>
</view>
<view class="filter_item">
<view class="filter_label">{{$t('filter.time')}}</view>
<view class="filter_label">{{$t('filter.time')}}()</view>
<view class="filter_input_wraper">
<input type="text" class="filter_input" v-model="val4">
<input type="number" class="filter_input" v-model="val4">
</view>
</view>
<view class="filter_item">
<view class="filter_label">类型</view>
<view class="filter_input_wraper">
<uni-data-select v-model="index" :placeholder="$t('uni.dataSelect.placeholder')" :emptyTips="$t('uni.dataSelect.emptyTips')" :localdata="options"></uni-data-select>
</view>
</view>
</view>
@@ -38,7 +44,7 @@
<button class="zd-col-5 btn-submit btn-success letter-30" :class="{'btn-info': !val1 || !val2 || !val3 || !val4}" :disabled="disabled" @tap="_ovenInAndOut1('1')">{{$t('button.enter-box')}}</button>
<button class="zd-col-5 btn-submit btn-success letter-30" :class="{'btn-info': !val1 || !val2}" :disabled="disabled" @tap="_ovenInAndOut2('2')">{{$t('button.out-box')}}</button>
<button class="zd-col-5 btn-submit btn-success" :class="{'btn-info': !val1 || !val2}" :disabled="disabled3" @tap="_inCoolIvt">{{$t('button.quality-approved')}}</button>
<button class="zd-col-5 btn-submit btn-success letter-30" :class="{'btn-info': !val1}" :disabled="disabled4" @tap="_bakingrelease">{{$t('button.all-clear')}}</button>
<button class="zd-col-5 btn-submit btn-success letter-30" :class="{'btn-info': !((val1 && val2 && index === '1') || (val1 && val2 && val3 && val4 && index === '2'))}" :disabled="disabled4" @tap="_inCoolOrOven">质检不合格</button>
</view>
</view>
</template>
@@ -46,7 +52,7 @@
<script>
import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue'
import {ovenInAndOut, inCoolIvt, bakingrelease, bakingquery} from '@/utils/getData1.js'
import {ovenInAndOut, inCoolIvt, bakingquery, inCoolOrOven} from '@/utils/getData1.js'
export default {
components: {
NavBar,
@@ -59,6 +65,8 @@
val2: '',
val3: '',
val4: '',
index: '',
options: [{value: '1', text: '入冷却'}, {value: '2', text: '入烘箱'}],
disabled: false,
disabled3: false,
disabled4: false
@@ -138,14 +146,15 @@
this.disabled3 = false
}
},
async _bakingrelease () {
// 质检不合格
async _inCoolOrOven () {
this.disabled4 = true
if (!this.val1) {
if (!((this.val1 && this.val2 && this.index === '1') || (this.val1 && this.val2 && this.val3 && this.val4 && this.index === '2'))) {
this.disabled4 = false
return
}
try {
let res = await bakingrelease(this.val1)
let res = await inCoolOrOven(this.val1, this.val2, this.val3, this.val4, this.index)
uni.showToast({
title: res.message,
icon: 'none'