|
@@ -43,6 +43,13 @@ export class EnterStorePage implements OnInit {
|
|
|
this.initialData()
|
|
|
}
|
|
|
|
|
|
+ // ngAfterViewInit(): void {
|
|
|
+ // window.addEventListener('keyboardDidShow', function() {
|
|
|
+ // console.log('show')
|
|
|
+ // this.keyboard
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+
|
|
|
ionViewDidLeave() {
|
|
|
if (this.storeList.length !== 0) {
|
|
|
this.storage.set('storeList', JSON.stringify(this.storeList))
|
|
@@ -51,6 +58,14 @@ export class EnterStorePage implements OnInit {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // hideKeyboard() {
|
|
|
+ // // setInterval(()=>{
|
|
|
+ // // console.log('hide')
|
|
|
+ // // this.scanInput.setFocus()
|
|
|
+ // // this.keyboard.hide()
|
|
|
+ // // },1000)
|
|
|
+ // }
|
|
|
+
|
|
|
initialData() {
|
|
|
this.storeDetailList = []
|
|
|
this.clicked = false
|
|
@@ -70,7 +85,7 @@ export class EnterStorePage implements OnInit {
|
|
|
// 获取入库单详情
|
|
|
async getStoreDetail(item?) {
|
|
|
// console.log(this.scanCode)
|
|
|
- this.keyboard.hide()
|
|
|
+ // this.keyboard.hide()
|
|
|
if (item) {
|
|
|
this.scanCode = item.scanCode
|
|
|
this.storeDetailList = item
|
|
@@ -114,7 +129,9 @@ export class EnterStorePage implements OnInit {
|
|
|
for (let i of this.storeList) {
|
|
|
i.enterCount = Number(i.enterBoxs) * Number(i.scpOutrate)
|
|
|
i.amount = i.enterCount
|
|
|
- i.scanCode = this.scanCode
|
|
|
+ if(!i.scanCode) {
|
|
|
+ i.scanCode = this.scanCode
|
|
|
+ }
|
|
|
// this.scpCodes.push(i.scpCode)
|
|
|
}
|
|
|
this.initialData()
|