| | |
| | | "name" : "中扬WMS", |
| | | "appid" : "__UNI__DA5854D", |
| | | "description" : "", |
| | | "versionName" : "240529A", |
| | | "versionCode" : 102, |
| | | "versionName" : "240925A", |
| | | "versionCode" : 103, |
| | | "transformPx" : false, |
| | | /* 5+App特有相关 */ |
| | | "app-plus" : { |
| | |
| | | baseUrl: '', |
| | | token: '', |
| | | icon: '', |
| | | elements: [], |
| | | elements2: [ |
| | | elements2: [], |
| | | elements: [ |
| | | { |
| | | title: '组托入库', |
| | | name: 'pakin', |
| | |
| | | onShow() { |
| | | this.baseUrl = uni.getStorageSync('baseUrl'); |
| | | this.token = uni.getStorageSync('token'); |
| | | this.getAuth() |
| | | // this.getAuth() |
| | | }, |
| | | methods: { |
| | | getAuth() { |
| | |
| | | asBarcodeInput() { |
| | | // this.asBarcode = this.asBarcode.replace(/\s+/g, '') |
| | | setTimeout(() => { |
| | | // var len = this.asBarcode.length |
| | | // if (len != 12) { |
| | | // uni.showToast({ |
| | | // title: 'AS400有误请重试', |
| | | // icon: "none", |
| | | // position: 'top' |
| | | // }); |
| | | // this.asBarcodeFocuss() |
| | | // return; |
| | | // } |
| | | var len = this.asBarcode.length |
| | | if (this.checkCode(this.asBarcode)) { |
| | | // && this.asBarcode.length != 8 |
| | | |
| | | uni.showToast({ |
| | | title: 'AS400有误请重试', |
| | | icon: "none", |
| | | position: 'top' |
| | | }); |
| | | this.asBarcodeFocuss() |
| | | return; |
| | | } |
| | | this.focuss() |
| | | }, 200) |
| | | }, |
| | | checkCode(code) { |
| | | // console.log(this.isNum(code.substring(0, 1))) |
| | | // console.log(!this.isNum(code.substring(1, 2))) |
| | | // console.log(code.length == 8,code.length) |
| | | let flag = true |
| | | if (code.substring(0, 2) == 'PM' ) { |
| | | flag = false |
| | | } else if ( |
| | | this.isNum(code.substring(0, 1)) |
| | | && !this.isNum(code.substring(1, 2)) |
| | | && code.length == 8 ) { |
| | | flag = false |
| | | } |
| | | return flag |
| | | }, |
| | | isNum(value) { |
| | | return typeof value === 'string' ? /^\d+$/.test(value) : typeof value === 'number' && !isNaN(value); |
| | | }, |
| | | // 托盘码有误重置 |
| | | barcodeFocuss() { |
| | | let that = this; |