OrderMaterialsStorage.ets 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /*
  2. * 订单物料入库
  3. * */
  4. import {ProcessFlow} from "../component/OrderMaterialsStorageView"
  5. import {OrderParams,DemandMaterial,MaterialBox, EmptyBox} from "../params/OrderMaterialsStorageParams"
  6. import router from '@ohos.router';
  7. import {NavigationBar} from '../component/NavigationBar'
  8. import {TimeAndTitle} from "../component/TimeAndTitle"
  9. import {OrderMaterialStorageFirstStep} from '../view/wms/OrderMaterialStorageFirstStep'
  10. import {OrderMaterialStorageSecondStep} from '../view/wms/OrderMaterialStorageSecondStep'
  11. import {OrderMaterialStorageThirdStep} from '../view/wms/OrderMaterialStorageThirdStep'
  12. import WorkOrderInfo from '../viewmodel/wms/WorkOrderInfo'
  13. @Entry
  14. @Component
  15. struct orderMaterialsStorage {
  16. @State materialBoxID: string = 'LX-00010';
  17. @State selectWorkOrder:WorkOrderInfo = {}
  18. @State messages:string[] = []
  19. @State currentStep: number = 1;
  20. build() {
  21. Row() {
  22. Column() {
  23. Row(){
  24. TimeAndTitle()
  25. }.width('100%')
  26. .height('3.4%')
  27. .alignItems(VerticalAlign.Bottom)
  28. .justifyContent(FlexAlign.End)
  29. Row(){
  30. Image($r('app.media.general_return'))
  31. .height($r('app.float.virtualSize_22_4'))
  32. .width($r('app.float.virtualSize_22_4'))
  33. .fillColor($r('app.color.FFFFFF'))
  34. // .onClick(()=> {
  35. // router.back()
  36. // })
  37. Text('订单物料入库')
  38. .fontColor($r('app.color.FFFFFF'))
  39. .fontSize($r('app.float.fontSize_15_2'))
  40. }
  41. .height('4%')
  42. .width('100%')
  43. .justifyContent(FlexAlign.Start)
  44. .margin({left:'5%'})
  45. .onClick(()=> {
  46. router.back()
  47. })
  48. Row(){
  49. Row(){
  50. ProcessFlow({
  51. currentStep:this.currentStep,
  52. firstStepTitle: "选择工单",
  53. secondStepTitle:"调取料箱",
  54. thirdStepTitle:"绑定入库",
  55. })
  56. }.width('20%')
  57. .margin({right:'20%'})
  58. NavigationBar().width('20%')
  59. }
  60. .width('100%')
  61. .height('4%')
  62. .margin({top:'1%'})
  63. .justifyContent(FlexAlign.End)
  64. .alignItems(VerticalAlign.Bottom)
  65. if(this.currentStep === 1)
  66. {
  67. OrderMaterialStorageFirstStep({
  68. currentStep:this.currentStep,
  69. selectWorkOrder:this.selectWorkOrder
  70. })
  71. }
  72. else if(this.currentStep === 2)
  73. {
  74. OrderMaterialStorageSecondStep({
  75. currentStep:this.currentStep,
  76. selectWorkOrder:this.selectWorkOrder
  77. })
  78. }
  79. if(this.currentStep === 3){
  80. OrderMaterialStorageThirdStep({currentStep:this.currentStep})
  81. }
  82. }
  83. .width('100%')
  84. .height('100%')
  85. .backgroundColor($r('app.color.000000'))
  86. }
  87. .height('100%')
  88. }
  89. }