This commit is contained in:
2025-11-14 15:15:03 +08:00
parent eba34e24ef
commit 982f94068d
2 changed files with 7 additions and 49 deletions

View File

@@ -31,17 +31,6 @@
<input v-model="val5" type="text" class="filter_input">
</view>
</view>
<view class="zd-row border-bottom">
<view class="zd-col-5">
<span class="filter_label">/小卷</span>
</view>
<view class="zd-col-19 filter_picker">
<picker @change="pickerChange" :value="index1" :range="options1" range-key="text">
<view class="uni-input">{{index1 !== '' ? options1[index1].text : ''}}</view>
</picker>
</view>
<uni-icons type="right" size="14" color="#999"></uni-icons>
</view>
<view class="zd-row border-bottom">
<view class="zd-col-5">
<span class="filter_label">是否烘烤</span>
@@ -51,24 +40,6 @@
<text @tap="setWStatus" style="position: absolute;display: inline-block;width: 52px; height: 32px;left: 0;"></text>
</view>
</view>
<view class="zd-row border-bottom">
<view class="zd-col-5">
<span class="filter_label">温度</span>
</view>
<view class="zd-col-17">
<input v-model="val3" type="number" class="filter_input">
</view>
<view class="zd-col-2 filter_label"></view>
</view>
<view class="zd-row border-bottom">
<view class="zd-col-5">
<span class="filter_label">时间</span>
</view>
<view class="zd-col-16">
<input v-model="val4" type="number" class="filter_input">
</view>
<view class="zd-col-3 filter_label">小时</view>
</view>
</view>
<view class="zd_wrapper">
<view class="zd-row border-bottom">
@@ -92,10 +63,10 @@
</view>
</view>
<view class="zd-row submit-bar">
<button class="zd-col-4 button-default" @tap="clearUp">清空</button>
<button class="zd-col-6 button-primary" :class="{'button-info': !val1 || !val5 || index1 === '' || !val3 || !val4 || !val2}" :disabled="disabled" @tap="_doModifyRawInfos">修改信息</button>
<button class="zd-col-6 button-primary" :class="{'button-info': !val1}" :disabled="disabled" @tap="_bakingQuality('1')">质检合格</button>
<button class="zd-col-6 button-primary" :class="{'button-info': !val1}" :disabled="disabled" @tap="_bakingQuality('0')">再次烘烤</button>
<button class="zd-col-5 button-default" @tap="clearUp">清空</button>
<button class="zd-col-8 button-primary" :class="{'button-info': !val1 || !val5 || !val2}" :disabled="disabled" @tap="_doModifyRawInfos">修改信息</button>
<button class="zd-col-8 button-primary" :class="{'button-info': !val1}" :disabled="disabled" @tap="_bakingQuality('1')">质检合格</button>
<!-- <button class="zd-col-6 button-primary" :class="{'button-info': !val1}" :disabled="disabled" @tap="_bakingQuality('0')">再次烘烤</button> -->
</view>
</view>
</template>
@@ -114,11 +85,7 @@
title: '',
val1: '',
val2: '',
options1: [{value: '1', text: '大卷'}, {value: '2', text: '小卷'}],
index1: '',
isChecked: false,
val3: '',
val4: '',
obj: {container_name: '-', status: '-', tip: '-'},
disabled: false,
val5: ''
@@ -145,19 +112,13 @@
this._getHotTempPointInfo()
}
},
pickerChange (e) {
this.index1 = e.detail.value
},
setWStatus () {
this.isChecked = !this.isChecked
},
clearUp () {
this.val1 = ''
this.val2 = ''
this.index1 = ''
this.isChecked = false
this.val3 = ''
this.val4 = ''
this.val5 = ''
this.obj = {container_name: '-', status: '-', tip: '-'}
this.disabled = false
@@ -181,13 +142,13 @@
},
async _doModifyRawInfos () {
this.disabled = true
if (!this.val1 || !this.val5 || this.index1 === '' || !this.val3 || !this.val4 || !this.val2) {
if (!this.val1 || !this.val5 || !this.val2) {
this.disabled = false
return
}
try {
let checked = this.isChecked ? '1' : '0'
let res = await doModifyRawInfos(this.val1, this.val2, this.options1[this.index1].value, checked, this.val3, this.val4, this.val5)
let res = await doModifyRawInfos(this.val1, this.val2, checked, this.val5)
this.clearUp()
uni.showToast({
title: res.message,

View File

@@ -192,15 +192,12 @@ export const getHotTempPointInfo = (code, order) => request({
url:'api/pda/baking/getHotTempPointInfo',
data: {point_code: code, order_code: order}
})
export const doModifyRawInfos = (code, order, type, is, temperature, time, roll) => request({
export const doModifyRawInfos = (code, order, is, roll) => request({
url:'api/pda/baking/doModifyRawInfos',
data: {
point_code: code,
order_code: order,
roll_type: type,
is_baking: is,
temperature: temperature,
time: time,
roll_code: roll
}
})