Explorar o código

订单物料入库2

cjb hai 1 mes
pai
achega
94327e9ae0

+ 1 - 1
entry/src/main/ets/component/OrderMaterialsStorageView.ets

@@ -272,7 +272,6 @@ export struct SingleOrder {
 @Component
 export struct BoxGrid{
   private scrollerForList: Scroller = new Scroller()
-  @Prop orders: OrderParams[] = []
   @State selectedIndex: number = -1  // 添加选中索引状态
   // 选中回调函数
   private onSelect(index: number): void {
@@ -280,6 +279,7 @@ export struct BoxGrid{
 
   }
   @Prop materialBoxs: MaterialBox[] = [];
+  @Prop emptyBoxs: EmptyBox[] = [];
   build() {
     Column() {
       Grid(this.scrollerForList) {

+ 1 - 1
entry/src/main/ets/pages/OrderMaterialsStorage.ets

@@ -395,7 +395,7 @@ struct orderMaterialsStorage {
                     .fontSize($r('app.float.fontSize_15_2'))
                 }.height('10%')
                 Row() {
-                  BoxGrid({ materialBoxes: this.materialBoxes,emptyBoxes:this.emptyBox })
+                  BoxGrid({ materialBoxs:this.materialBoxes,emptyBoxs:this.emptyBox })
                     .width('100%')
                     .height('100%')
                 }.width('100%').height('90%')