This commit is contained in:
2025-12-16 10:41:12 +08:00
parent d25115e849
commit a90cfcb9f3

View File

@@ -165,9 +165,16 @@
})) }))
this.pType = 1 this.pType = 1
} else { } else {
this.tPallet = res.vehicle_code if (res.vehicle_code !== this.val1) {
this.tPalletData = [...res.materials] this.tPallet = res.vehicle_code
this.pType = 0 this.tPalletData = [...res.materials]
this.pType = 0
} else {
uni.showToast({
title: '原始托盘跟目标托盘不能一致',
icon: 'none'
})
}
} }
} catch (e) { } catch (e) {
if (this.pType === 0) { if (this.pType === 0) {
@@ -178,6 +185,7 @@
this.tPalletData = [] this.tPalletData = []
} }
} }
this.val1 = ''
}, },
toggleSelect(index) { toggleSelect(index) {
this.$set(this.oPalletData, index, { this.$set(this.oPalletData, index, {