This commit is contained in:
2025-10-14 17:23:04 +08:00
parent 734fe88f14
commit 677ed122da
8 changed files with 61 additions and 149 deletions

View File

@@ -157,19 +157,11 @@
this.disabled = true this.disabled = true
try { try {
let res = await sendPointTask(this.index3, this.index4) let res = await sendPointTask(this.index3, this.index4)
if (res.code === '200') { uni.showToast({
uni.showToast({ title: res.message,
title: res.message, icon: 'none'
icon: 'none' })
}) this.clearUp()
this.clearUp()
} else {
uni.showToast({
title: res.message,
icon: 'none'
})
this.disabled = false
}
this.disabled = false this.disabled = false
} catch (e) { } catch (e) {
this.disabled = false this.disabled = false

View File

@@ -166,18 +166,11 @@
this.disabled = true this.disabled = true
try { try {
let res = await inArea(this.index) let res = await inArea(this.index)
if (res.code === '200') { uni.showToast({
uni.showToast({ title: res.message,
title: res.message, icon: 'none'
icon: 'none' })
}) this.clearUp()
this.clearUp()
} else {
uni.showToast({
title: res.message,
icon: 'none'
})
}
this.disabled = false this.disabled = false
} catch (e) { } catch (e) {
this.disabled = false this.disabled = false
@@ -196,18 +189,11 @@
this.disabled2 = true this.disabled2 = true
try { try {
let res = await outArea(this.pkObj) let res = await outArea(this.pkObj)
if (res.code === '200') { uni.showToast({
uni.showToast({ title: res.message,
title: res.message, icon: 'none'
icon: 'none' })
}) this.clearUp()
this.clearUp()
} else {
uni.showToast({
title: res.message,
icon: 'none'
})
}
this.disabled2 = false this.disabled2 = false
} catch (e) { } catch (e) {
this.disabled2 = false this.disabled2 = false

View File

@@ -195,18 +195,11 @@
this.disabled = true this.disabled = true
try { try {
let res = await lock(this.checkedArr) let res = await lock(this.checkedArr)
if (res.code === '200') { uni.showToast({
uni.showToast({ title: res.message,
title: res.message, icon: 'none'
icon: 'none' })
}) this.clearUp()
this.clearUp()
} else {
uni.showToast({
title: res.message,
icon: 'none'
})
}
this.disabled = false this.disabled = false
} catch (e) { } catch (e) {
this.disabled = false this.disabled = false
@@ -225,19 +218,12 @@
this.disabled2 = true this.disabled2 = true
try { try {
let res = await unlock(this.checkedArr) let res = await unlock(this.checkedArr)
if (res.code === '200') { uni.showToast({
uni.showToast({ title: res.message,
title: res.message, icon: 'none'
icon: 'none' })
}) this.clearUp()
this.clearUp() this.disabled2 = false
} else {
uni.showToast({
title: res.message,
icon: 'none'
})
}
this.disabled = false
} catch (e) { } catch (e) {
this.disabled2 = false this.disabled2 = false
} }

View File

@@ -137,18 +137,11 @@
this.disabled = true this.disabled = true
try { try {
let res = await loading(this.pointCode, this.val1, this.currentData.material_code, this.val2) let res = await loading(this.pointCode, this.val1, this.currentData.material_code, this.val2)
if (res.code === '200') { uni.showToast({
uni.showToast({ title: res.message,
title: res.message, icon: 'none'
icon: 'none' })
}) this.clearUp()
this.clearUp()
} else {
uni.showToast({
title: res.message,
icon: 'none'
})
}
this.disabled = false this.disabled = false
} catch (e) { } catch (e) {
this.disabled = false this.disabled = false

View File

@@ -248,18 +248,11 @@
this.disabled = true this.disabled = true
try { try {
let res = await blanking(this.val1, this.dataList, this.index) let res = await blanking(this.val1, this.dataList, this.index)
if (res.code === '200') { uni.showToast({
uni.showToast({ title: res.message,
title: res.message, icon: 'none'
icon: 'none' })
}) this.clearUp()
this.clearUp()
} else {
uni.showToast({
title: res.message,
icon: 'none'
})
}
this.disabled = false this.disabled = false
} catch (e) { } catch (e) {
this.disabled = false this.disabled = false

View File

@@ -151,18 +151,11 @@
this.disabled = true this.disabled = true
try { try {
let res = await comfirmGetting(this.val1, this.dataList) let res = await comfirmGetting(this.val1, this.dataList)
if (res.code === '200') { uni.showToast({
uni.showToast({ title: res.message,
title: res.message, icon: 'none'
icon: 'none' })
}) this.clearUp()
this.clearUp()
} else {
uni.showToast({
title: res.message,
icon: 'none'
})
}
this.disabled = false this.disabled = false
} catch (e) { } catch (e) {
this.disabled = false this.disabled = false

View File

@@ -271,20 +271,11 @@
this.disabled = true this.disabled = true
try { try {
let res = await materialBinding(this.val1, this.dataList) let res = await materialBinding(this.val1, this.dataList)
if (res.code === '200') { uni.showToast({
this.val1 = '' title: res.message,
this.dataList = [] icon: 'none'
uni.showToast({ })
title: res.message, this.clearUp()
icon: 'none'
})
this.clearUp()
} else {
uni.showToast({
title: res.message,
icon: 'none'
})
}
this.disabled = false this.disabled = false
} catch (e) { } catch (e) {
this.disabled = false this.disabled = false
@@ -303,19 +294,11 @@
this.disabled2 = true this.disabled2 = true
try { try {
let res = await vehicleBinding(this.val1) let res = await vehicleBinding(this.val1)
if (res.code === '200') { uni.showToast({
this.val1 = '' title: res.message,
uni.showToast({ icon: 'none'
title: res.message, })
icon: 'none' this.clearUp()
})
this.clearUp()
} else {
uni.showToast({
title: res.message,
icon: 'none'
})
}
this.disabled2 = false this.disabled2 = false
} catch (e) { } catch (e) {
this.disabled2 = false this.disabled2 = false

View File

@@ -155,18 +155,11 @@
this.disabled = true this.disabled = true
try { try {
let res = await againTask(this.pkId) let res = await againTask(this.pkId)
if (res.code === '200') { uni.showToast({
uni.showToast({ title: res.message,
title: res.message, icon: 'none'
icon: 'none' })
}) this.clearUp()
this.clearUp()
} else {
uni.showToast({
title: res.message,
icon: 'none'
})
}
this.disabled = false this.disabled = false
} catch (e) { } catch (e) {
this.disabled = false this.disabled = false
@@ -185,18 +178,11 @@
this.disabled2 = true this.disabled2 = true
try { try {
let res = await forceConfirm(this.pkId) let res = await forceConfirm(this.pkId)
if (res.code === '200') { uni.showToast({
uni.showToast({ title: res.message,
title: res.message, icon: 'none'
icon: 'none' })
}) this.clearUp()
this.clearUp()
} else {
uni.showToast({
title: res.message,
icon: 'none'
})
}
this.disabled2 = false this.disabled2 = false
} catch (e) { } catch (e) {
this.disabled2 = false this.disabled2 = false