|
@@ -110,32 +110,32 @@
|
|
|
let _this = this
|
|
let _this = this
|
|
|
let obj = {}
|
|
let obj = {}
|
|
|
|
|
|
|
|
- let kk = {
|
|
|
|
|
- "inoutType": "in",
|
|
|
|
|
- "inId": "1956166290880073730",
|
|
|
|
|
- "packageNo": "55408270001",
|
|
|
|
|
- "assetType": "1,9",
|
|
|
|
|
- 'batchNo': '827'
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- _this.getCodeProduct(kk)
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- // uni.scanCode({
|
|
|
|
|
- // success: (res) => {
|
|
|
|
|
- // res.result.split('&').forEach(
|
|
|
|
|
- // (item) =>
|
|
|
|
|
- // (obj[item.split('=')[0]] = decodeURIComponent(
|
|
|
|
|
- // item.split('=')[1]
|
|
|
|
|
- // ))
|
|
|
|
|
- // );
|
|
|
|
|
- // console.log(obj);
|
|
|
|
|
- // if (obj.inoutType === 'in') {
|
|
|
|
|
- // _this.getCodeProduct(obj)
|
|
|
|
|
- // }
|
|
|
|
|
- // },
|
|
|
|
|
- // complete: (res) => {}
|
|
|
|
|
- // })
|
|
|
|
|
|
|
+ // let kk = {
|
|
|
|
|
+ // "inoutType": "in",
|
|
|
|
|
+ // "inId": "1956166290880073730",
|
|
|
|
|
+ // "packageNo": "55408270001",
|
|
|
|
|
+ // "assetType": "1,9",
|
|
|
|
|
+ // 'batchNo': '827'
|
|
|
|
|
+ // }
|
|
|
|
|
+
|
|
|
|
|
+ // _this.getCodeProduct(kk)
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ uni.scanCode({
|
|
|
|
|
+ success: (res) => {
|
|
|
|
|
+ res.result.split('&').forEach(
|
|
|
|
|
+ (item) =>
|
|
|
|
|
+ (obj[item.split('=')[0]] = decodeURIComponent(
|
|
|
|
|
+ item.split('=')[1]
|
|
|
|
|
+ ))
|
|
|
|
|
+ );
|
|
|
|
|
+ console.log(obj);
|
|
|
|
|
+ if (obj.inoutType === 'in') {
|
|
|
|
|
+ _this.getCodeProduct(obj)
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ complete: (res) => {}
|
|
|
|
|
+ })
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
|