Prechádzať zdrojové kódy

登出,从用户开工改为未开工

hh 5 dní pred
rodič
commit
e8fb3356ff

+ 2 - 1
entry/src/main/ets/pages/ProcessIndex.ets

@@ -1084,6 +1084,7 @@ struct ProcessIndex {
   // 选择工位和用户弹窗控制器
   loginInfoController: CustomDialogController = new CustomDialogController({
     builder: LoginInfoDialog({
+      scanState: this.scanState,
       searchDept:()=>{this.SwitchingDeptController.open()},
       searchStation:()=>{this.SwitchingStationController.open()},
       searchProductLine:()=>{this.SwitchingProductLineController.open()},
@@ -1127,7 +1128,7 @@ struct ProcessIndex {
       onConfirm:(num:number)=>{
         const index = this.currentUnqualifiedIndex;
         if (this.reportList[index]) {
-          this.reportList[index].unqualifiedNum = String(num);
+          this.reportList[index].defectNum = String(num);
           this.reportList = [...this.reportList];
         }
       }

+ 3 - 0
entry/src/main/ets/view/LoginInfoDialog.ets

@@ -7,6 +7,8 @@ import CommonConstants from '../common/constants/CommonConstants'
 @CustomDialog
 export struct LoginInfoDialog {
   private scrollerList: Scroller = new Scroller()
+  // 扫码开工状态(0:未开工 1:已开工)
+  @Link scanState: number
   //当前工位
   @Consume('currentStation') currentStation: string
   //当前工位id
@@ -187,6 +189,7 @@ export struct LoginInfoDialog {
                   CommonConstants.AUTH_TOKEN = ''
                   this.loginUser = {}
                   this.loginFlag = 2
+                  this.scanState = 0
                 })
             }
             .width('69%')