|
|
@@ -353,10 +353,10 @@
|
|
|
// this.scanData('SCJHGD20240117002', type, id)
|
|
|
// return false
|
|
|
|
|
|
- let _this = this
|
|
|
+
|
|
|
uni.scanCode({
|
|
|
- success: function(res) {
|
|
|
- _this.scanData(res.result, type, id)
|
|
|
+ success: (res) => {
|
|
|
+ this.scanData(res.result, type, id)
|
|
|
}
|
|
|
})
|
|
|
|
|
|
@@ -394,10 +394,10 @@
|
|
|
scanIt(id) {
|
|
|
console.log(id)
|
|
|
|
|
|
- let _this = this
|
|
|
+
|
|
|
uni.scanCode({
|
|
|
- success: function(res) {
|
|
|
- _this.scanItData(res.result, id)
|
|
|
+ success: (res) => {
|
|
|
+ this.scanItData(res.result, id)
|
|
|
console.log(res.result, id)
|
|
|
}
|
|
|
})
|
|
|
@@ -491,10 +491,10 @@
|
|
|
handlScanCode() {
|
|
|
|
|
|
|
|
|
- let _this = this
|
|
|
+
|
|
|
uni.scanCode({
|
|
|
- success: function(res) {
|
|
|
- _this.scanItAllData(res.result)
|
|
|
+ success: (res) => {
|
|
|
+ this.scanItAllData(res.result)
|
|
|
|
|
|
}
|
|
|
})
|