|
@@ -13,7 +13,7 @@ import promptAction from '@ohos.promptAction';
|
|
|
|
|
|
@Entry
|
|
|
@Component
|
|
|
-struct Index {
|
|
|
+struct ProcessIndex {
|
|
|
// 工单列表
|
|
|
@State workOrders: WorkOrderInfo[] = []
|
|
|
// 选中工单
|
|
@@ -291,6 +291,7 @@ struct Index {
|
|
|
.height('77.2%')
|
|
|
.backgroundColor($r('app.color.20FFFFFF'))
|
|
|
.borderRadius($r('app.float.fontSize_16'))
|
|
|
+ .opacity(!this.seqNo || !CommonConstants.USER_ID || !CommonConstants.STATION_ID ? 0.3 : 1)
|
|
|
}
|
|
|
.height('100%')
|
|
|
.width('19.8%')
|
|
@@ -389,6 +390,7 @@ struct Index {
|
|
|
.justifyContent(FlexAlign.Center)
|
|
|
.backgroundColor($r('app.color.20FFFFFF'))
|
|
|
.borderRadius($r('app.float.fontSize_16'))
|
|
|
+ .opacity(!this.seqNo || !CommonConstants.USER_ID || !CommonConstants.STATION_ID ? 0.3 : 1)
|
|
|
}
|
|
|
.height('80%')
|
|
|
.width('94.8%')
|
|
@@ -494,6 +496,9 @@ struct Index {
|
|
|
.backgroundColor($r('app.color.20FFFFFF'))
|
|
|
.borderRadius($r('app.float.fontSize_16'))
|
|
|
.onClick(()=>{
|
|
|
+ if (!this.seqNo || !CommonConstants.USER_ID || !CommonConstants.STATION_ID) {
|
|
|
+ return
|
|
|
+ }
|
|
|
this.switchingProductDialogController.open()
|
|
|
})
|
|
|
Row().width('1.5%')
|
|
@@ -516,6 +521,7 @@ struct Index {
|
|
|
.height('90.6%')
|
|
|
.width('100%')
|
|
|
.padding({left: '2.6%', right: '2.6%'})
|
|
|
+ .opacity(!this.seqNo || !CommonConstants.USER_ID || !CommonConstants.STATION_ID ? 0.3 : 1)
|
|
|
}
|
|
|
.width('100%')
|
|
|
.height('9.8%')
|