no message

This commit is contained in:
蔡玲
2024-11-01 15:19:23 +08:00
parent 5be0ac7016
commit 49e9417672
3 changed files with 26 additions and 6 deletions

View File

@@ -66,7 +66,7 @@
</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-4 button-default" @tap="clearUp">清空</button>
<button class="zd-col-6 button-primary" :class="{'button-info': !val1 || !index}" :disabled="disabled" @tap="_doSendShaft">呼叫送轴</button> <button class="zd-col-6 button-primary" :class="{'button-info': !val1}" :disabled="disabled" @tap="_doSendShaft">呼叫送轴</button>
<button class="zd-col-6 button-primary" :class="{'button-info': !val1}" :disabled="disabled" @tap="_toCleanCutCacheInventory">点位清除</button> <button class="zd-col-6 button-primary" :class="{'button-info': !val1}" :disabled="disabled" @tap="_toCleanCutCacheInventory">点位清除</button>
<button class="zd-col-6 button-primary" :class="{'button-info': !val1 || !checkArr.length}" :disabled="disabled" @tap="_doBindingGx">纸管绑定</button> <button class="zd-col-6 button-primary" :class="{'button-info': !val1 || !checkArr.length}" :disabled="disabled" @tap="_doBindingGx">纸管绑定</button>
</view> </view>
@@ -117,7 +117,7 @@
}, },
async _doSendShaft () { async _doSendShaft () {
this.disabled = true this.disabled = true
if (!this.val1 || !this.index) { if (!this.val1) {
this.disabled = false this.disabled = false
return return
} }

View File

@@ -39,7 +39,7 @@
<input v-model="val3" type="number" class="filter_input"> <input v-model="val3" type="number" class="filter_input">
</view> </view>
</view> </view>
<view class="zd-row"> <view class="zd-row border-bottom">
<view class="zd-col-7"> <view class="zd-col-7">
<span class="filter_label">呼叫收卷辊</span> <span class="filter_label">呼叫收卷辊</span>
</view> </view>
@@ -48,6 +48,22 @@
<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-7">
<span class="filter_label">长度</span>
</view>
<view class="zd-col-17">
<input v-model="val4" type="number" class="filter_input">
</view>
</view>
<view class="zd-row">
<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> </view>
</view> </view>
<view class="zd-row submit-bar"> <view class="zd-row submit-bar">
@@ -72,6 +88,8 @@
val1: '', val1: '',
val2: '', val2: '',
val3: '', val3: '',
val4: '',
val5: '',
isChecked: false, isChecked: false,
disabled: false disabled: false
}; };
@@ -89,6 +107,8 @@
this.val3 = '' this.val3 = ''
this.isChecked = false this.isChecked = false
this.disabled = false this.disabled = false
this.val4 = ''
this.val5 = ''
}, },
async _needEmptyVehicle () { async _needEmptyVehicle () {
this.disabled = true this.disabled = true
@@ -132,7 +152,7 @@
} }
try { try {
let checked = this.isChecked ? '1' : '0' let checked = this.isChecked ? '1' : '0'
let res = await needEmptyAxisv2(this.val1, this.val2, checked, this.val3) let res = await needEmptyAxisv2(this.val1, this.val2, checked, this.val3, this.val4, this.val5)
this.clearUp() this.clearUp()
uni.showToast({ uni.showToast({
title: res.message, title: res.message,

View File

@@ -158,9 +158,9 @@ export const necessaryEmptyVehicle = (code) => request({
url:'api/pda/raw/necessaryEmptyVehicle', url:'api/pda/raw/necessaryEmptyVehicle',
data: {point_code: code} data: {point_code: code}
}) })
export const needEmptyAxisv2 = (code, order, is, roll) => request({ export const needEmptyAxisv2 = (code, order, is, roll, height, qty) => request({
url:'api/pda/raw/needEmptyAxis/v2', url:'api/pda/raw/needEmptyAxis/v2',
data: {point_code: code, order_code: order, is_call_empty: is, roll_code: roll} data: {point_code: code, order_code: order, is_call_empty: is, roll_code: roll, theory_heigh: height, productin_qty: qty}
}) })
export const confirmBlanking = (code, option) => request({ export const confirmBlanking = (code, option) => request({
url:'api/pda/raw/confirmBlanking', url:'api/pda/raw/confirmBlanking',