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"> <input v-model="val5" type="text" class="filter_input">
</view> </view>
</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-row border-bottom">
<view class="zd-col-5"> <view class="zd-col-5">
<span class="filter_label">是否烘烤</span> <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> <text @tap="setWStatus" style="position: absolute;display: inline-block;width: 52px; height: 32px;left: 0;"></text>
</view> </view>
</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>
<view class="zd_wrapper"> <view class="zd_wrapper">
<view class="zd-row border-bottom"> <view class="zd-row border-bottom">
@@ -92,10 +63,10 @@
</view> </view>
</view> </view>
<view class="zd-row submit-bar"> <view class="zd-row submit-bar">
<button class="zd-col-4 button-default" @tap="clearUp">清空</button> <button class="zd-col-5 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-8 button-primary" :class="{'button-info': !val1 || !val5 || !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-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> <!-- <button class="zd-col-6 button-primary" :class="{'button-info': !val1}" :disabled="disabled" @tap="_bakingQuality('0')">再次烘烤</button> -->
</view> </view>
</view> </view>
</template> </template>
@@ -114,11 +85,7 @@
title: '', title: '',
val1: '', val1: '',
val2: '', val2: '',
options1: [{value: '1', text: '大卷'}, {value: '2', text: '小卷'}],
index1: '',
isChecked: false, isChecked: false,
val3: '',
val4: '',
obj: {container_name: '-', status: '-', tip: '-'}, obj: {container_name: '-', status: '-', tip: '-'},
disabled: false, disabled: false,
val5: '' val5: ''
@@ -145,19 +112,13 @@
this._getHotTempPointInfo() this._getHotTempPointInfo()
} }
}, },
pickerChange (e) {
this.index1 = e.detail.value
},
setWStatus () { setWStatus () {
this.isChecked = !this.isChecked this.isChecked = !this.isChecked
}, },
clearUp () { clearUp () {
this.val1 = '' this.val1 = ''
this.val2 = '' this.val2 = ''
this.index1 = ''
this.isChecked = false this.isChecked = false
this.val3 = ''
this.val4 = ''
this.val5 = '' this.val5 = ''
this.obj = {container_name: '-', status: '-', tip: '-'} this.obj = {container_name: '-', status: '-', tip: '-'}
this.disabled = false this.disabled = false
@@ -181,13 +142,13 @@
}, },
async _doModifyRawInfos () { async _doModifyRawInfos () {
this.disabled = true 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 this.disabled = false
return return
} }
try { try {
let checked = this.isChecked ? '1' : '0' 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() this.clearUp()
uni.showToast({ uni.showToast({
title: res.message, title: res.message,

View File

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