|
@@ -2,6 +2,9 @@ import router from '@ohos.router';
|
|
import WorkOrderInfo from '../viewmodel/wms/WorkOrderInfo'
|
|
import WorkOrderInfo from '../viewmodel/wms/WorkOrderInfo'
|
|
import {MaterialNotificationDialog,MaterialRequestDialog} from '../view/wms/CallMaterialNotification'
|
|
import {MaterialNotificationDialog,MaterialRequestDialog} from '../view/wms/CallMaterialNotification'
|
|
import {WarehousingLogDialog} from '../view/wms/WarehousingLog'
|
|
import {WarehousingLogDialog} from '../view/wms/WarehousingLog'
|
|
|
|
+import {InBoundView} from '../component/InBoundView'
|
|
|
|
+import MaterialInfo from '../viewmodel/wms/MaterialInfo';
|
|
|
|
+
|
|
@Component
|
|
@Component
|
|
export struct NavigationBar {
|
|
export struct NavigationBar {
|
|
@Prop notificationNumber: number = 2;
|
|
@Prop notificationNumber: number = 2;
|
|
@@ -75,6 +78,13 @@ export struct NavigationBar {
|
|
maskColor: 'rgba(0,0,0,0.8)', // 黑色遮罩
|
|
maskColor: 'rgba(0,0,0,0.8)', // 黑色遮罩
|
|
})
|
|
})
|
|
|
|
|
|
|
|
+ InAndOutBoundController: CustomDialogController = new CustomDialogController({
|
|
|
|
+ builder: InAndOutBoundDialog(),
|
|
|
|
+ autoCancel: true, // 点击遮罩关闭
|
|
|
|
+ customStyle: true,
|
|
|
|
+ maskColor: 'rgba(0,0,0,0.8)', // 黑色遮罩
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
|
|
searchRequestMaterial= () => {
|
|
searchRequestMaterial= () => {
|
|
this.MaterialRequestController.open()
|
|
this.MaterialRequestController.open()
|
|
@@ -135,10 +145,60 @@ export struct NavigationBar {
|
|
url: 'pages/RgvControl'
|
|
url: 'pages/RgvControl'
|
|
})
|
|
})
|
|
})
|
|
})
|
|
|
|
+ Image($r('app.media.navigation_in_out_bound'))
|
|
|
|
+ .width($r('app.float.virtualSize_56'))
|
|
|
|
+ .height($r('app.float.virtualSize_56'))
|
|
|
|
+ .fillColor($r('app.color.FFFFFF'))
|
|
|
|
+ .onClick(()=>{
|
|
|
|
+ this.InAndOutBoundController.open()
|
|
|
|
+ })
|
|
}
|
|
}
|
|
.height('100%')
|
|
.height('100%')
|
|
.width('100%')
|
|
.width('100%')
|
|
.justifyContent(FlexAlign.SpaceEvenly)
|
|
.justifyContent(FlexAlign.SpaceEvenly)
|
|
.alignItems(VerticalAlign.Top)
|
|
.alignItems(VerticalAlign.Top)
|
|
}
|
|
}
|
|
-}
|
|
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+// 确认框
|
|
|
|
+@CustomDialog
|
|
|
|
+export struct InAndOutBoundDialog {
|
|
|
|
+ @State materialNum: number=0
|
|
|
|
+ @State scanMaterialList: MaterialInfo[] = []
|
|
|
|
+ controller: CustomDialogController
|
|
|
|
+ onConfirm: () => void = () => {}
|
|
|
|
+
|
|
|
|
+ build() {
|
|
|
|
+ Column() {
|
|
|
|
+
|
|
|
|
+ InBoundView({
|
|
|
|
+ materialNum:this.materialNum,
|
|
|
|
+ boxMaterials:this.scanMaterialList
|
|
|
|
+ }).height('93%')
|
|
|
|
+ Column() {
|
|
|
|
+ Divider()
|
|
|
|
+ .vertical(false)
|
|
|
|
+ .strokeWidth(1)
|
|
|
|
+ .color($r('app.color.15FFFFFF'))
|
|
|
|
+ Row() {
|
|
|
|
+ Text('关闭')
|
|
|
|
+ .fontColor($r('app.color.60FFFFFF'))
|
|
|
|
+ .fontSize($r('app.float.fontSize_30'))
|
|
|
|
+ }
|
|
|
|
+ .justifyContent(FlexAlign.Center)
|
|
|
|
+ .alignItems(VerticalAlign.Center)
|
|
|
|
+ .width('100%')
|
|
|
|
+ .height('100%')
|
|
|
|
+ .onClick(() => this.controller.close())
|
|
|
|
+ }
|
|
|
|
+ .width('100%')
|
|
|
|
+ .height('7%')
|
|
|
|
+ }
|
|
|
|
+ .height('80%')
|
|
|
|
+ .width('30%')
|
|
|
|
+ .backgroundColor($r('app.color.2A2A2A'))
|
|
|
|
+ .justifyContent(FlexAlign.End)
|
|
|
|
+ .borderRadius(16)
|
|
|
|
+ }
|
|
|
|
+}
|