浏览代码

qc验货详情bug fix

panxingxin 5 年之前
父节点
当前提交
eb08955cca

+ 1 - 1
src/app/app.component.ts

@@ -148,7 +148,7 @@ export class AppComponent {
       this.statusBar.styleDefault();
       this.splashScreen.hide();
       await this.getVersionNumber()
-      // await this.update.isUpdate()
+      await this.update.isUpdate()
     });
   }
   //android通过返回按钮退出应用

+ 1 - 1
src/app/store-qc-detail/store-qc-detail.page.html

@@ -32,7 +32,7 @@
     <ion-item>
       <span>修改时间:{{qcData.modifiedtime}}</span>
     </ion-item>
-    <ion-item lines="none" *ngIf="qcData.details.length===0">
+    <ion-item lines="none" *ngIf="showDetail">
       <ion-label color="danger">无详情</ion-label>
     </ion-item>
   </ion-list>

+ 2 - 1
src/app/store-qc-detail/store-qc-detail.page.ts

@@ -20,6 +20,7 @@ export class StoreQCDetailPage implements OnInit {
   QCdetails = ''
   pId = ''
   sscId = ''
+  showDetail: boolean = true
   constructor(private storage: Storage,
     public commonService: commonService,
     // private fullScreenImage: FullScreenImage,
@@ -51,8 +52,8 @@ export class StoreQCDetailPage implements OnInit {
   async getDetail() {
     if (this.QCdetails) {
       this.qcData = this.QCdetails
-      console.log(this.qcData)
       for (let i of this.qcData['details']) {
+        this.showDetail = true
         // 获取QA日志
         let qalogdata = await this.userData.getQAlog(i.sscId, i.pid)
         if (JSON.parse(qalogdata).data.length !== 0) {