修改生箔工序、烘烤工序

This commit is contained in:
蔡玲
2024-10-29 14:40:27 +08:00
parent 2fa40f1a4c
commit dbc2265bbc
3 changed files with 31 additions and 11 deletions

View File

@@ -23,6 +23,14 @@
/>
</view>
</view>
<view class="zd-row border-bottom">
<view class="zd-col-7">
<span class="filter_label">收卷辊码</span>
</view>
<view class="zd-col-17">
<input v-model="val5" type="number" class="filter_input">
</view>
</view>
<view class="zd-row border-bottom">
<view class="zd-col-7">
<span class="filter_label">/小卷</span>
@@ -85,7 +93,7 @@
</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 || !val2 || index1 === '' || !val3 || !val4}" :disabled="disabled" @tap="_doModifyRawInfos">修改信息</button>
<button class="zd-col-6 button-primary" :class="{'button-info': !val1 || !val5 || index1 === '' || !val3 || !val4}" :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>
</view>
@@ -112,7 +120,8 @@
val3: '',
val4: '',
obj: {container_name: '-', status: '-', tip: '-'},
disabled: false
disabled: false,
val5: ''
};
},
watch: {
@@ -149,6 +158,7 @@
this.isChecked = false
this.val3 = ''
this.val4 = ''
this.val5 = ''
this.obj = {container_name: '-', status: '-', tip: '-'}
this.disabled = false
},
@@ -171,13 +181,13 @@
},
async _doModifyRawInfos () {
this.disabled = true
if (!this.val1 || !this.val2 || this.index1 === '' || !this.val3 || !this.val4) {
if (!this.val1 || !this.val5 || this.index1 === '' || !this.val3 || !this.val4) {
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)
let res = await doModifyRawInfos(this.val1, this.val2, this.options1[this.index1].value, checked, this.val3, this.val4, this.val5)
this.clearUp()
uni.showToast({
title: res.message,