فهرست منبع

新增维修站页面

yixiaojun 1 سال پیش
والد
کامیت
fd8eb2c414

+ 2 - 1
entry/src/main/ets/common/util/request/Request.ets

@@ -21,7 +21,8 @@ const JGRequest = axios.create(
 JGRequest.interceptors.request.use((config: InternalAxiosRequestConfig) => {
 
   // 以后登录之后可以在这里传
-  config.headers.Authorization = CommonConstants.AUTH_TOKEN
+  //config.headers.Authorization = CommonConstants.AUTH_TOKEN
+  config.headers.Authorization = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOnsiaWQiOjEsInVzZXJOYW1lIjoiYWRtaW4iLCJkZXB0SWQiOjAsInN0YXRpb25JZCI6IjEiLCJsb2dpblR5cGUiOjEsIm9yZ0lkIjowfSwiZGV2aWNlIjoiZGVmYXVsdC1kZXZpY2UiLCJlZmYiOjE3MTI5MDYxMjEzMjAsInJuU3RyIjoiMmhRUmM0RDJuUGtEa2J6SHBzelJ3VGpUVWZ2Nkg0WlkifQ.3ptwM0nhmQ_QYaHSzc_iXMhLZ5Gg8t9cnk35PStQ3YA'
 
   printRequest(config)
 

+ 23 - 1
entry/src/main/ets/pages/Index.ets

@@ -308,7 +308,7 @@ struct Index {
           Row() {
             Column() {
               List(){
-                ForEach(this.cardServices, (item:UniversalCard,index)=>{
+                ForEach(this.cardServices, (item:UniversalCard,index:number)=>{
                   if (item.cardStatus === 1) {
                     ListItem(){
                       if (item.cardType===3){
@@ -645,6 +645,28 @@ struct Index {
             .height('90%')
             .borderRadius(15)
             .backgroundColor('#4d000000')
+            Column({ space: 10 }) {
+              Image($r('app.media.baobiao'))
+                .width('60%')
+                .height('60%')
+                .margin({top:5})
+              Text('维修站')
+                .width('100%')
+                .textAlign(TextAlign.Center)
+                .fontSize(16)
+                .fontColor('#ffff')
+
+            }
+            .width('10%')
+            .justifyContent(FlexAlign.Center)
+            .height('90%')
+            .borderRadius(15)
+            .backgroundColor('#4d000000')
+            .onClick(()=>{
+              router.pushUrl({
+                url:'pages/MaintenanceStation'
+              })
+            })
           }
           .width('100%')
           .height('16%')

+ 354 - 0
entry/src/main/ets/pages/MaintenanceStation.ets

@@ -0,0 +1,354 @@
+import { TitleStateComp } from '../common/component/TitleStateComp';
+import { BottomOperateComp } from '../common/component/BottomOperateComp';
+import router from '@ohos.router';
+
+export default class repairList {
+  deviceName?:string
+  unqualifiedQuantity?:number
+  repairedQuantity?:number
+  time?:string
+}
+@Entry
+@Component
+struct MaintenanceStation{
+  textcontroller: TextInputController = new TextInputController()
+  @State deviceName:string=''
+  @State click:number=-1
+  private  repairList:Array<repairList>=[
+    {deviceName:"DS123422233卫星天线1",unqualifiedQuantity:10,repairedQuantity:5,time:'2024/4/30 15:11:11'},
+  {deviceName:"DS123422233卫星天线2",unqualifiedQuantity:10,repairedQuantity:5,time:'2024/4/30 15:11:11'},
+{deviceName:"DS123422233卫星天线3",unqualifiedQuantity:10,repairedQuantity:5,time:'2024/5/1 15:11:11'},
+    {deviceName:"DS123422233卫星天线4",unqualifiedQuantity:10,repairedQuantity:5,time:'2024/4/30 15:11:11'},
+    {deviceName:"DS123422233卫星天线5",unqualifiedQuantity:10,repairedQuantity:5,time:'2024/4/30 15:11:11'},
+    {deviceName:"DS123422233卫星天线6",unqualifiedQuantity:10,repairedQuantity:5,time:'2024/5/1 15:11:11'},
+  ]
+  private isHomePage:boolean = false
+  build(){
+    Column(){
+      TitleStateComp({isHomePage : this.isHomePage})
+      Row(){
+        Column(){
+          Text('待维修产品'+'['+this.repairList.length.toString()+']')
+            .fontSize(px2vp(51))
+            .fontColor('#e6000000')
+            .fontWeight(FontWeight.Medium)
+            .textAlign(TextAlign.Start)
+            .width('90%')
+            .height('8%')
+          List({ space: 10, initialIndex: 0 }) {
+            ForEach(this.repairList, (item:repairList,index:number) => {
+              ListItem() {
+                Column(){
+                  Text(item.deviceName)
+                    .fontWeight(FontWeight.Medium)
+                    .fontSize(px2vp(32))
+                    .fontColor('#e6000000')
+                    .width('100%')
+                    .height('40%')
+                  Row(){
+                    Text('不合格数')
+                      .fontWeight(FontWeight.Regular)
+                      .fontSize(px2vp(27))
+                      .fontColor('#99000000')
+                      .width('20%')
+                      .height('100%')
+                    Text(item.unqualifiedQuantity.toString())
+                      .fontWeight(FontWeight.Medium)
+                      .fontSize(px2vp(27))
+                      .fontColor('#e6000000')
+                      .width('20%')
+                      .height('100%')
+                    Text('已维修数')
+                      .fontWeight(FontWeight.Regular)
+                      .fontSize(px2vp(27))
+                      .fontColor('#99000000')
+                      .width('20%')
+                      .height('100%')
+                    Text(item.repairedQuantity.toString())
+                      .fontWeight(FontWeight.Medium)
+                      .fontSize(px2vp(27))
+                      .fontColor('#e6000000')
+                      .width('10%')
+                      .height('100%')
+                  }.width('100%')
+                  .height('30%')
+                  Row(){
+                    Text('审理时间:')
+                      .fontWeight(FontWeight.Regular)
+                      .fontSize(px2vp(27))
+                      .fontColor('#99000000')
+                      .width('30%')
+                      .height('100%')
+                    Text(item.time)
+                      .fontWeight(FontWeight.Medium)
+                      .fontSize(px2vp(27))
+                      .fontColor('#e6000000')
+                      .width('70%')
+                      .height('100%')
+                  }.width('100%')
+                  .height('30%')
+
+
+                }.width('100%')
+                .height('25%')
+                .borderRadius(15)
+                .padding({left:10})
+                .backgroundColor(this.click===index?$r('app.color.robot_set_card_blue'):$r('app.color.general_card_background_color'))
+                .onClick(()=>{
+                  this.click=index
+                  this.deviceName=item.deviceName
+                })
+              }
+            }, item => item)
+          }
+          .width('90%')
+          .height('92%')
+
+        }.height('100%')
+        .width('30%')
+        Column(){
+          Text('故障详情')
+            .fontSize(px2vp(51))
+            .fontColor('#e6000000')
+            .fontWeight(FontWeight.Medium)
+            .textAlign(TextAlign.Start)
+            .width('90%')
+            .height('8%')
+          Text(this.deviceName)
+            .fontWeight(FontWeight.Medium)
+            .fontSize(px2vp(32))
+            .fontColor('#e6000000')
+            .width('100%')
+            .height('5%')
+        }.height('100%')
+        .width('30%')
+        Column(){
+          Row(){
+            Text('不合格品状况')
+              .fontSize(px2vp(51))
+              .fontColor('#e6000000')
+              .fontWeight(FontWeight.Medium)
+              .textAlign(TextAlign.Start)
+              .width('60%')
+              .height('100%')
+            Text('操作')
+              .fontSize(px2vp(51))
+              .fontColor('#e6000000')
+              .fontWeight(FontWeight.Medium)
+              .textAlign(TextAlign.Start)
+              .width('40%')
+              .height('100%')
+          }
+          .width('100%')
+          .height('8%')
+          Row(){
+            Row(){
+              Column(){
+                Column(){
+                  Row(){
+                    Image($r('app.media.pending_report'))
+                      .width(px2vp(37))
+                      .height(px2vp(37))
+                      .margin({left:10})
+                    Text('待处理报故')
+                      .fontWeight(FontWeight.Regular)
+                      .fontSize(px2vp(27))
+                      .fontColor('#99000000')
+                      .margin({left:5})
+
+                  }
+                  .height('30%')
+                  .width("100%")
+                  Text('100')
+                    .textAlign(TextAlign.Center)
+                    .height('70%')
+                    .width("100%")
+                    .fontSize(px2vp(80))
+                    .fontColor($r('app.color.OtherStorage_CallMaterials_text_color'))
+                    .fontWeight(FontWeight.Bold)
+
+                }.width('90%')
+                .height('45%')
+                .borderRadius(px2vp(15))
+                .margin({ left:10,right:10,top:5,bottom:5 })
+                .backgroundColor($r('app.color.robot_set_card_white'))
+                Divider()
+                  .width('85%')
+                  .margin({left:20})
+                Column(){
+                  Row(){
+                    Image($r('app.media.repair_products'))
+                      .width(px2vp(37))
+                      .height(px2vp(37))
+                      .margin({left:10})
+                    Text('待维修产品')
+                      .fontWeight(FontWeight.Regular)
+                      .fontSize(px2vp(27))
+                      .fontColor('#99000000')
+                      .margin({left:5})
+
+                  }
+                  .height('30%')
+                  .width("100%")
+                  Text('100')
+                    .textAlign(TextAlign.Center)
+                    .height('70%')
+                    .width("100%")
+                    .fontSize(px2vp(80))
+                    .fontColor($r('app.color.OtherStorage_CallMaterials_text_color'))
+                    .fontWeight(FontWeight.Bold)
+
+                }.width('90%')
+                .height('45%')
+                .borderRadius(px2vp(15))
+                .margin({ left:10,right:10,top:5,bottom:5 })
+              }
+              .width('50%')
+              .height('100%')
+              Divider()
+                .vertical(true)
+                .height('80%')
+              Column(){
+                Column(){
+                  Row(){
+                    Image($r('app.media.hear'))
+                      .width(px2vp(37))
+                      .height(px2vp(37))
+                      .margin({left:10})
+                    Text('审理中')
+                      .fontWeight(FontWeight.Regular)
+                      .fontSize(px2vp(27))
+                      .fontColor('#99000000')
+                      .margin({left:5})
+
+                  }
+                  .height('30%')
+                  .width("100%")
+                  Text('10')
+                    .textAlign(TextAlign.Center)
+                    .height('70%')
+                    .width("100%")
+                    .fontSize(px2vp(80))
+                    .fontColor($r('app.color.OtherStorage_CallMaterials_text_color'))
+                    .fontWeight(FontWeight.Bold)
+
+                }.width('90%')
+                .height('45%')
+                .borderRadius(px2vp(15))
+                .margin({ left:10,right:10,top:5,bottom:5 })
+
+                Divider()
+                  .width('85%')
+                  .margin({right:20})
+                Column(){
+                  Row(){
+                    Image($r('app.media.maintenance_history'))
+                      .width(px2vp(37))
+                      .height(px2vp(37))
+                      .margin({left:10})
+                    Text('维修历史')
+                      .fontWeight(FontWeight.Regular)
+                      .fontSize(px2vp(27))
+                      .fontColor('#99000000')
+                      .margin({left:5})
+
+                  }
+                  .height('30%')
+                  .width("100%")
+                  Text('999+')
+                    .textAlign(TextAlign.Center)
+                    .height('70%')
+                    .width("100%")
+                    .fontSize(px2vp(80))
+                    .fontColor($r('app.color.OtherStorage_CallMaterials_text_color'))
+                    .fontWeight(FontWeight.Bold)
+
+                }.width('90%')
+                .height('45%')
+                .borderRadius(px2vp(15))
+                .margin({ left:10,right:10,top:5,bottom:5 })
+                .backgroundColor($r('app.color.robot_set_card_white'))
+              }
+              .width('50%')
+              .height('100%')
+
+            }.width('60%')
+            .height('100%')
+
+            Column(){
+              Row(){
+                Text('生产履历')
+                  .fontWeight(FontWeight.Medium)
+                  .fontSize(px2vp(32))
+                  .fontColor('#e6000000')
+                  .width('60%')
+                  .height('100%')
+                Image($r('app.media.product_history'))
+                  .width(px2vp(64))
+                  .height(px2vp(64))
+              }.width('95%')
+              .height('30%')
+              .margin({right:20,left:10})
+              .padding({left:10,right:10})
+              .borderRadius(px2vp(15))
+              .backgroundColor($r('app.color.robot_set_card_white'))
+
+            }.width('40%')
+            .height('100%')
+
+          }.width('100%')
+          .height('40%')
+          Blank()
+          Column(){
+            Text('扫码')
+              .fontSize(px2vp(51))
+              .fontColor('#e6000000')
+              .fontWeight(FontWeight.Medium)
+              .textAlign(TextAlign.Start)
+              .width('100%')
+              .height('10%')
+            Column(){
+              Image($r('app.media.scan_qr'))
+                .width(px2vp(141))
+                .height(px2vp(141))
+            }.width('100%')
+            .height('50%')
+            .justifyContent(FlexAlign.Center)
+            Row(){
+              Image($r('app.media.shaoma'))
+                .width('56px')
+                .height('56px')
+                .margin({right:10})
+              TextInput({ text: '', placeholder: '点击扫码或者输入编码', controller: this.textcontroller})
+                .placeholderColor(Color.Grey)
+                .placeholderFont({ size: 14, weight: 400 })
+                .caretColor(Color.Blue)
+                .backgroundColor($r('app.color.robot_set_card_white'))
+                .height('100%')
+                .fontSize(px2vp(32))
+                .fontColor(Color.Black)
+                .onSubmit(()=>{
+                  router.pushUrl({
+                    url:'pages/MaintenanceStationOperations'
+                  })
+                })
+            }.width('80%')
+            .backgroundColor($r('app.color.robot_set_card_white'))
+            .borderRadius(15)
+            .height('15%')
+          }
+          .width('90%')
+          .height('40%')
+        }.height('100%')
+        .width('40%')
+
+      }.width("100%")
+      .height("84%")
+      BottomOperateComp({isHomePage : this.isHomePage})
+    }
+    .width("100%")
+    .height("100%")
+    .backgroundColor($r('app.color.title_bar_background'))
+
+  }
+}

+ 522 - 0
entry/src/main/ets/pages/MaintenanceStationOperations.ets

@@ -0,0 +1,522 @@
+import TimeUtil from '../common/util/TimeUtil'
+import { BottomOperateComp } from '../common/component/BottomOperateComp';
+import router from '@ohos.router';
+import { Method } from '@ohos/axios';
+
+export default class repairList {
+  deviceName?:string
+  materialNo?:string
+  repairedQuantity?:number
+  time?:string
+}
+@CustomDialog
+struct materialDetails{
+  private repairList:Array<repairList>
+  controller: CustomDialogController
+  build(){
+    Column(){
+      Text('产品详情')
+        .fontSize(px2vp(51))
+        .fontColor('#e6000000')
+        .fontWeight(FontWeight.Medium)
+        .textAlign(TextAlign.Center)
+        .width('90%')
+        .height('10%')
+        .margin({bottom:10})
+      Column(){
+        Text('DS123422233卫星天线1')
+          .fontWeight(FontWeight.Medium)
+          .fontSize(px2vp(32))
+          .fontColor('#e6000000')
+          .width('100%')
+        Text('SASD-FSDDS-ASDDFFSA1')
+          .fontWeight(FontWeight.Medium)
+          .fontSize(px2vp(27))
+          .fontColor('#99000000')
+          .width('100%')
+      }
+      .width('60%')
+      .height('10%')
+
+
+
+
+    }.width('40%')
+    .height('60%')
+    .backgroundColor($r('app.color.robot_set_card_white'))
+    .borderRadius(px2vp(21))
+
+  }
+}
+@CustomDialog
+struct confirm{
+
+  @Link deviceName:string
+  controller: CustomDialogController
+  build(){
+    Column(){
+      Text('替换确认')
+        .fontSize(px2vp(51))
+        .fontColor('#e6000000')
+        .fontWeight(FontWeight.Medium)
+        .textAlign(TextAlign.Center)
+        .width('90%')
+        .height('10%')
+        .margin({top:10})
+      Text('是否替换:'+this.deviceName+'为新的物料?')
+        .fontWeight(FontWeight.Medium)
+        .fontColor('#e6000000')
+        .fontSize(px2vp(32))
+        .width('80%')
+        .height('60%')
+      Row({space:20}){
+        Text('取消')
+          .textAlign(TextAlign.Center)
+          .width('40%')
+          .height('100%')
+          .borderRadius(px2vp(30))
+          .fontColor($r('app.color.order_producing_state_background'))
+          .backgroundColor('#0f000000')
+          .onClick(()=>{
+            this.controller.close()
+          })
+        Text('确认')
+          .textAlign(TextAlign.Center)
+          .width('40%')
+          .height('100%')
+          .borderRadius(px2vp(30))
+          .fontColor($r('app.color.robot_set_card_white'))
+          .backgroundColor($r('app.color.order_producing_state_background'))
+          .onClick(()=>{
+            this.controller.close()
+
+          })
+
+      }.width('80%')
+      .height('20%')
+
+    }.width('40%')
+    .height('40%')
+    .backgroundColor($r('app.color.robot_set_card_white'))
+    .borderRadius(px2vp(21))
+
+  }
+}
+@CustomDialog
+struct selectReplacementMaterials{
+  @State deviceName:string=''
+  confirmController: CustomDialogController = new CustomDialogController({
+    builder:confirm({
+      deviceName:this.deviceName,
+    }),
+    alignment: DialogAlignment.Center,
+    customStyle: true,
+  })
+  private repairList:Array<repairList>
+  controller: CustomDialogController
+  build(){
+    Column(){
+      Text('选择替换物料')
+        .fontSize(px2vp(51))
+        .fontColor('#e6000000')
+        .fontWeight(FontWeight.Medium)
+        .textAlign(TextAlign.Center)
+        .width('90%')
+        .height('10%')
+        .margin({bottom:10})
+      Column(){
+        Text('DS123422233卫星天线1')
+          .fontWeight(FontWeight.Medium)
+          .fontSize(px2vp(32))
+          .fontColor('#e6000000')
+          .height('5%')
+          .width('90%')
+        Text('SASD-FSDDS-ASDDFFSA1')
+          .fontWeight(FontWeight.Medium)
+          .fontSize(px2vp(27))
+          .height('5%')
+          .fontColor('#99000000')
+          .width('90%')
+        List({ space: 10 ,initialIndex: 0 }) {
+          ForEach(this.repairList, (item:repairList,index:number) => {
+            ListItem() {
+              Column(){
+                Text(item.deviceName)
+                  .fontWeight(FontWeight.Medium)
+                  .fontSize(px2vp(32))
+                  .fontColor('#e6000000')
+                  .width('100%')
+                  .height('100%')
+              }.width('100%')
+              .height('20%')
+              .backgroundColor($r('app.color.robot_set_card_white'))
+              .borderRadius(px2vp(15))
+              .padding({left:10})
+              .onClick(()=>{
+                this.deviceName=item.deviceName
+                this.confirmController.open()
+              })
+            }
+          }, item => item)
+        }
+        .width('90%')
+        .height('80%')
+      }
+      .width('90%')
+      .height('90%')
+
+
+
+
+    }.width('40%')
+    .height('60%')
+    .padding({top:10})
+    .backgroundColor($r('app.color.title_bar_background'))
+    .borderRadius(px2vp(21))
+  }
+}
+@Entry
+@Component
+struct MaintenanceStationOperations{
+  private  repairList:Array<repairList>=[
+    {deviceName:"DS123422233卫星天线1", materialNo:"SASD-FSDDS-ASDDFFSA1",repairedQuantity:5,time:'2024/4/30 15:11:11'},
+    {deviceName:"DS123422233卫星天线2", materialNo:"SASD-FSDDS-ASDDFFSA2",repairedQuantity:5,time:'2024/4/30 15:11:11'},
+    {deviceName:"DS123422233卫星天线3", materialNo:"SASD-FSDDS-ASDDFFSA3",repairedQuantity:5,time:'2024/5/1 15:11:11'},
+    {deviceName:"DS123422233卫星天线4", materialNo:"SASD-FSDDS-ASDDFFSA4",repairedQuantity:5,time:'2024/4/30 15:11:11'},
+    {deviceName:"DS123422233卫星天线5", materialNo:"SASD-FSDDS-ASDDFFSA5",repairedQuantity:5,time:'2024/4/30 15:11:11'},
+    {deviceName:"DS123422233卫星天线6", materialNo:"SASD-FSDDS-ASDDFFSA6",repairedQuantity:5,time:'2024/5/1 15:11:11'},
+  ]
+  textcontroller: TextInputController = new TextInputController()
+  @State click:number=0
+  @State processvalue:number=50
+  controller: TextClockController = new TextClockController()
+  private isHomePage:boolean = false
+  materialDetailsController: CustomDialogController = new CustomDialogController({
+    builder:materialDetails({
+      repairList:this.repairList
+    }),
+    alignment: DialogAlignment.Center,
+    customStyle: true,
+  })
+  selectReplacementMaterialController: CustomDialogController = new CustomDialogController({
+    builder:selectReplacementMaterials({
+      repairList:this.repairList
+    }),
+    alignment: DialogAlignment.Center,
+    customStyle: true,
+  })
+  build(){
+    Column(){
+      Stack() {
+        Text()
+          .width('100%')
+          .height('100%')
+          .backgroundColor($r('app.color.title_bar_background'))
+          .opacity(this.isHomePage ? $r('app.float.title_bar_home_page_opacity') : $r('app.float.title_bar_general_opacity'))
+
+        Row() {
+          Row() {
+            Image($r('app.media.return'))
+              .objectFit(ImageFit.Contain)
+          }
+          .width('20%')
+          .height('90%')
+          .alignItems(VerticalAlign.Center)
+          .justifyContent(FlexAlign.Center)
+          .margin({left: 10 , top: 5})
+          .onClick(()=>{
+            router.pushUrl({
+              url:'pages/MaintenanceStation'
+            })
+          })
+          Blank()
+          Column() {
+            Text(TimeUtil.getCurrentDate())
+              .fontColor($r('app.color.general_font_color'))
+              .fontSize($r('app.float.title_date_font_size'))
+              .fontWeight(FontWeight.Regular)
+            TextClock({ timeZoneOffset: -8, controller: this.controller })
+              .format('HH:mm:ss')
+              .fontSize($r('app.float.title_time_font_size'))
+              .fontWeight(FontWeight.Bold)
+          }
+          .height('100%')
+          .width('6%')
+          .alignItems(HorizontalAlign.Center)
+          .justifyContent(FlexAlign.Center)
+          Blank()
+          Row({space:10}) {
+            Blank()
+            Column(){
+              Progress({ value:this.processvalue, total: 100,type: ProgressType.Linear, }).width('100%')
+                .backgroundColor('#ffff')
+                .style({strokeWidth:5})
+              Text('任务进度:'+this.processvalue+'%')
+                .fontSize(px2vp(19))
+                .fontColor('#99000000')
+                .fontWeight(FontWeight.Medium)
+            }
+            .justifyContent(FlexAlign.Center)
+            .height('100%')
+            .width('25%')
+
+            Column(){
+              Text('王德发')
+                .fontSize(px2vp(27))
+                .fontColor('#99000000')
+                .fontWeight(FontWeight.Medium)
+              Text('装配工位001')
+                .fontSize(px2vp(19))
+                .fontColor('#99000000')
+                .fontWeight(FontWeight.Medium)
+
+            }.height('100%')
+            .width('25%')
+            .justifyContent(FlexAlign.Center)
+            .alignItems(HorizontalAlign.End)
+            Image($r('app.media.user_white'))
+              .width(px2vp(72))
+              .height(px2vp(72))
+
+          }
+          .width('20%')
+          .height('90%')
+          .alignItems(VerticalAlign.Center)
+          .justifyContent(FlexAlign.SpaceEvenly)
+        }
+        .width('100%')
+        .height('100%')
+        .alignItems(VerticalAlign.Center)
+        .justifyContent(FlexAlign.Center)
+      }
+      .width('100%')
+      .height('8%')
+     Row() {
+         Column() {
+           Column(){
+             Text("SADFFFSAD-大天线")
+               .height('16%')
+               .fontSize($r('app.float.card_title_font_size'))
+               .fontWeight(FontWeight.Medium)
+               .fontColor($r('app.color.general_font_color'))
+               .opacity($r('app.float.general_font_opacity'))
+               .maxLines(1)
+               .width('100%')
+             Text('SASD-FSDDS-ASDDFFSA...')
+               .width('100%')
+               .height('20%')
+               .fontSize($r('app.float.card_info_font_size'))
+               .fontColor('#99000000')
+               .fontWeight(FontWeight.Regular)
+               .opacity($r('app.float.card_font_default_opacity'))
+               .maxLines(1)
+             Blank()
+             Text('序列号')
+               .width('100%')
+               .height('12%')
+               .textAlign(TextAlign.Start)
+               .fontSize(px2vp(27))
+               .fontColor('#99000000')
+               .fontWeight(FontWeight.Regular)
+               .opacity($r('app.float.card_font_default_opacity'))
+               .maxLines(1)
+             Text('ASD123212DSAD332')
+               .width('100%')
+               .height('20%')
+               .fontWeight(FontWeight.Medium)
+               .fontSize($r('app.float.card_info_font_size'))
+               .fontColor('#e6000000')
+               .opacity($r('app.float.card_font_default_opacity'))
+               .maxLines(1)
+             Blank()
+             Text('当前工序')
+               .height('12%')
+               .width('100%')
+               .textAlign(TextAlign.Start)
+               .fontSize(px2vp(27))
+               .fontColor('#99000000')
+               .fontWeight(FontWeight.Regular)
+               .opacity($r('app.float.card_font_default_opacity'))
+               .maxLines(1)
+             Row(){
+               Text('固封')
+                 .height('100%')
+                 .width('80%')
+                 .fontWeight(FontWeight.Medium)
+                 .fontSize($r('app.float.card_info_font_size'))
+                 .fontColor('#e6000000')
+                 .opacity($r('app.float.card_font_default_opacity'))
+                 .maxLines(1)
+               Image($r('app.media.subscript'))
+                 .width($r('app.float.storage_set_image_effect_height'))
+                 .height($r('app.float.storage_set_image_effect_height'))
+             }
+             .height('20%')
+             .width('100%')
+           }
+           .backgroundColor($r('app.color.robot_set_card_white'))
+           .width('90%')
+           .height("27%")
+           .padding({ left:10,top:5 })
+           .borderRadius(px2vp(15))
+           .onClick(()=>{
+             this.materialDetailsController.open()
+           })
+           Column(){
+            Row(){
+              Text('叫料')
+                .fontWeight(FontWeight.Medium)
+                .fontColor('#e6000000')
+                .fontSize(px2vp(32))
+              Blank()
+              Image($r('app.media.call_material'))
+                .width($r('app.float.general_icon_size'))
+                .height($r('app.float.general_icon_size'))
+
+
+            }
+              .width('100%')
+              .height('15%')
+              .margin(5)
+              .padding({left:10,right:10})
+              .borderRadius(px2vp(15))
+              .backgroundColor(this.click===0?$r('app.color.robot_set_card_white'):this.click===1?
+              $r('app.color.order_finished_state_background'):$r('app.color.robot_set_card_white'))
+              .onClick(()=>{
+
+              })
+             Row(){
+               Text('工位上料')
+                 .fontWeight(FontWeight.Medium)
+                 .fontColor('#e6000000')
+                 .fontSize(px2vp(32))
+               Blank()
+               Image($r('app.media.station_loading'))
+                 .width($r('app.float.general_icon_size'))
+                 .height($r('app.float.general_icon_size'))
+
+             }
+               .width('100%')
+               .height('15%')
+               .margin(5)
+               .borderRadius(px2vp(15))
+               .padding({left:10,right:10})
+               .borderRadius(px2vp(15))
+               .backgroundColor($r('app.color.robot_set_card_white'))
+             Row(){
+               Text('图纸')
+                 .fontWeight(FontWeight.Medium)
+                 .fontColor('#e6000000')
+                 .fontSize(px2vp(32))
+               Blank()
+               Image($r('app.media.drawing'))
+                 .width($r('app.float.general_icon_size'))
+                 .height($r('app.float.general_icon_size'))
+
+             }.width('100%')
+               .height('15%')
+               .margin(5)
+               .padding({left:10,right:10})
+               .borderRadius(px2vp(15))
+               .backgroundColor($r('app.color.robot_set_card_white'))
+             Row(){
+               Text('报工')
+                 .fontWeight(FontWeight.Medium)
+                 .fontColor('#e6000000')
+                 .fontSize(px2vp(32))
+               Blank()
+               Image($r('app.media.report_work'))
+                 .width($r('app.float.general_icon_size'))
+                 .height($r('app.float.general_icon_size'))
+
+             }
+             .width('100%')
+             .height('15%')
+             .margin(5)
+             .margin(5)   .borderRadius(px2vp(15))
+             .padding({left:10,right:10})
+             .backgroundColor($r('app.color.order_finished_state_background'))
+
+
+
+
+           } .width('90%')
+           .padding({top:5})
+           .height("73%")
+
+         }
+         .height('100%')
+         .width('20%')
+         .alignItems(HorizontalAlign.Center)
+       Column(){
+         Text('故障详情')
+           .fontSize(px2vp(51))
+           .fontColor('#e6000000')
+           .fontWeight(FontWeight.Medium)
+           .textAlign(TextAlign.Start)
+           .width('90%')
+           .height('8%')
+           .border({width:1})
+       }.height('100%')
+       .width('30%')
+       Column(){
+         Text('物料替换')
+           .fontSize(px2vp(51))
+           .fontColor('#e6000000')
+           .fontWeight(FontWeight.Medium)
+           .textAlign(TextAlign.Start)
+           .width('90%')
+           .height('8%')
+         Row(){
+           Image($r('app.media.shaoma'))
+             .width('56px')
+             .height('56px')
+             .margin({right:10})
+             .backgroundColor($r('app.color.robot_set_card_white'))
+           TextInput({ text: '', placeholder: '点击扫码或者输入编码', controller: this.textcontroller})
+             .placeholderColor(Color.Grey)
+             //.placeholderFont({ size: 14, weight: 400 })
+             .caretColor(Color.Blue)
+             .backgroundColor($r('app.color.robot_set_card_white'))
+             .height('100%')
+             .width('60%')
+             .fontSize(px2vp(32))
+             .fontColor(Color.Black)
+             .onSubmit(()=>{
+               router.pushUrl({
+                 url:'pages/MaintenanceStationOperations'
+               })
+             })
+
+         }.width('60%')
+         .backgroundColor($r('app.color.robot_set_card_white'))
+         .borderRadius(21)
+         .margin({top:5})
+         .height('10%')
+         .onClick(()=>{
+           this.selectReplacementMaterialController.open()
+         })
+         Column(){
+
+
+         }.width('95%')
+         .height('82%')
+
+       }
+       .height('100%')
+       .width('50%')
+       .padding({left:20})
+       .alignItems(HorizontalAlign.Start)
+
+
+
+
+     }.width('100%')
+      .height('84%')
+      BottomOperateComp({isHomePage : this.isHomePage})
+    }
+    .width("100%")
+    .height("100%")
+    .backgroundColor($r('app.color.title_bar_background'))
+  }
+}

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

@@ -7,9 +7,6 @@ import { ScanStorageCodeClass } from './IntelligentStorageWarehousing';
   ///无批次号物料详情弹窗
 struct batchNumberPopupBox {
 
-
-
-
   @Link private ScanStoragelist:Array<ScanStorageCodeClass>
   @Link index:number
   //物料批次号用于弹窗接收修改

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 5 - 0
entry/src/main/resources/base/media/hear.svg


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 5 - 0
entry/src/main/resources/base/media/maintenance_history.svg


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 5 - 0
entry/src/main/resources/base/media/pending_report.svg


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 7 - 0
entry/src/main/resources/base/media/production_history.svg


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 5 - 0
entry/src/main/resources/base/media/repair_products.svg


+ 3 - 1
entry/src/main/resources/base/profile/main_pages.json

@@ -16,6 +16,8 @@
     "pages/process/StationLoadingPage",
     "pages/process/TemporaryStoragePage",
     "pages/processAreaPackage/ProcessArea1",
-    "pages/LoginPage"
+    "pages/LoginPage",
+    "pages/MaintenanceStation",
+    "pages/MaintenanceStationOperations"
   ]
 }