@@ -19,7 +19,7 @@
<ion-content>
<ion-item>
<ion-label>入库申请单号:</ion-label>
- <ion-input #scanInput clear-on-edit autofocus (ionFocus)="hideKeyboard()" (keyup)="getCodeInput($event)"
+ <ion-input #scanInput clear-on-edit autofocus type="number" (ionFocus)="hideKeyboard()" (keyup)="getCodeInput($event)"
[(ngModel)]="scanCode"></ion-input>
</ion-item>
<!-- <ion-list style="margin-bottom: 0px;" *ngFor="let es of esStoreList index as i"> -->
@@ -177,8 +177,10 @@ export class EsApplyScanPage implements OnInit {
}
if (this.canSubmit) {
- await this.userData.saveStoreDetail(this.esStoreDetailList)
- this.initialData()
+ try {
+ await this.userData.saveStoreDetail(this.esStoreDetailList)
+ this.initialData()
+ } catch (e) { }
// }
// this.esStoreList = []
@@ -775,6 +775,7 @@ export class UserData {
this.storage.remove('esStoreList')
} else if (JSON.parse(data.data).code === 1) {
message = JSON.parse(data.data).msg;
+ reject()
const alert = await this.alertController.create({
// header: 'Confirm!',