This commit is contained in:
2025-04-03 14:38:42 +08:00
parent 6513e9d951
commit b4a8c51216
2 changed files with 16 additions and 5 deletions

View File

@@ -175,6 +175,8 @@
this.pkId = ''
this.currentData = {}
this.index = ''
this.val1 = ''
this.val2 = ''
},
toSearch () {
if (this.code) {
@@ -215,7 +217,6 @@
}
this.show = false
this.currentData = this.pkObj
this.code = this.currentData.code
this.val1 = this.currentData.qty
this.val2 = this.currentData.vehicle_code
if(this.currentData.stor_code !== '' && this.currentData.stor_code !== null && this.currentData.stor_code !== undefined) {
@@ -225,7 +226,7 @@
}
})
} else {
if (this.currentData.vehicle_code.charAt(0).toUpperCase() === 'T') {
if (this.val2.charAt(0).toUpperCase() === 'T') {
this.index ='FStockPallet'
} else {
this.index ='FStockId'
@@ -276,7 +277,9 @@
let obj = Object.assign(this.currentData, {qty: this.val1, vehicle_code: this.val2, stor_code: this.index, form_type: this.index1})
let res = await inStorageConfirm(obj)
if (res.code === '200') {
this.toEmpty()
this.index = ''
this.val1 = null
this.val2 = null
}
this.disabled = false
uni.showToast({