修改生箔工序、烘烤工序

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,

View File

@@ -31,6 +31,14 @@
<input v-model="val2" type="text" class="filter_input">
</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="val3" type="number" class="filter_input">
</view>
</view>
<view class="zd-row">
<view class="zd-col-7">
<span class="filter_label">呼叫收卷辊</span>
@@ -44,7 +52,7 @@
</view>
<view class="zd-row submit-bar">
<button class="zd-col-8 button-default" @tap="clearUp">清空</button>
<button class="zd-col-15 button-primary" :class="{'button-info': !val1 || !val2}" :disabled="disabled" @tap="_needEmptyAxisv2">生箔下料</button>
<button class="zd-col-15 button-primary" :class="{'button-info': !val1 || !val3}" :disabled="disabled" @tap="_needEmptyAxisv2">生箔下料</button>
</view>
</view>
</template>
@@ -63,6 +71,7 @@
title: '',
val1: '',
val2: '',
val3: '',
isChecked: false,
disabled: false
};
@@ -77,6 +86,7 @@
clearUp () {
this.val1 = ''
this.val2 = ''
this.val3 = ''
this.isChecked = false
this.disabled = false
},
@@ -116,13 +126,13 @@
},
async _needEmptyAxisv2 () {
this.disabled = true
if (!this.val1 || !this.val2) {
if (!this.val1 || !this.val3) {
this.disabled = false
return
}
try {
let checked = this.isChecked ? '1' : '0'
let res = await needEmptyAxisv2(this.val1, this.val2, checked)
let res = await needEmptyAxisv2(this.val1, this.val2, checked, this.val3)
this.clearUp()
uni.showToast({
title: res.message,

View File

@@ -158,9 +158,9 @@ export const necessaryEmptyVehicle = (code) => request({
url:'api/pda/raw/necessaryEmptyVehicle',
data: {point_code: code}
})
export const needEmptyAxisv2 = (code, order, is) => request({
export const needEmptyAxisv2 = (code, order, is, roll) => request({
url:'api/pda/raw/needEmptyAxis/v2',
data: {point_code: code, order_code: order, is_call_empty: is}
data: {point_code: code, order_code: order, is_call_empty: is, roll_code: roll}
})
export const confirmBlanking = (code, option) => request({
url:'api/pda/raw/confirmBlanking',
@@ -171,9 +171,9 @@ 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) => request({
export const doModifyRawInfos = (code, order, type, is, temperature, time, roll) => request({
url:'api/pda/baking/doModifyRawInfos',
data: {point_code: code, order_code: order, roll_type: type, is_baking: is, temperature: temperature, time: time}
data: {point_code: code, order_code: order, roll_type: type, is_baking: is, temperature: temperature, time: time, roll_code: roll}
})
export const bakingQuality = (code, quality) => request({
url:'api/pda/baking/bakingQuality',