|
@@ -157,7 +157,7 @@ struct Warehousing {
|
|
|
@State private scanStorageList: Array<ScanStorageclass> = []
|
|
|
@State isHomePage: boolean = false
|
|
|
//0:主动入库,1:手动入库,2:统计按钮
|
|
|
- @State inboundButton: number = 0
|
|
|
+ @State inboundButton: number = 1
|
|
|
//仓储和其他仓储点击按钮变色
|
|
|
@State warehouseButton: number = 0
|
|
|
//RFID卡读取失败弹窗
|
|
@@ -170,7 +170,7 @@ struct Warehousing {
|
|
|
fourWidth: number = 290
|
|
|
twoWidth: number = 150
|
|
|
// 切换tab添加提示
|
|
|
- goingToChangeTabIndex: number = 0
|
|
|
+ goingToChangeTabIndex: number = 1
|
|
|
goingToChangeTab = (tabIndex: number) => {
|
|
|
|
|
|
if (this.inboundButton == 2) {
|
|
@@ -242,23 +242,23 @@ struct Warehousing {
|
|
|
.margin({ right: px2vp(24) })
|
|
|
|
|
|
Row() {
|
|
|
- Text('自动入库')
|
|
|
- .textAlign(TextAlign.Center)
|
|
|
- .borderRadius(px2vp(16))
|
|
|
- .width('33%')
|
|
|
- .height('100%')
|
|
|
- .fontWeight(FontWeight.Medium)
|
|
|
- .fontSize(px2vp(24))
|
|
|
- .fontColor(this.inboundButton === 0 ? $r('app.color.black_90') : $r('app.color.black_60'))
|
|
|
- .backgroundColor(this.inboundButton === 0 ? $r('app.color.process_divider_white_color') : '')
|
|
|
- .onClick(() => {
|
|
|
- this.goingToChangeTab(0)
|
|
|
- })
|
|
|
- Blank()
|
|
|
+ // Text('自动入库')
|
|
|
+ // .textAlign(TextAlign.Center)
|
|
|
+ // .borderRadius(px2vp(16))
|
|
|
+ // .width('33%')
|
|
|
+ // .height('100%')
|
|
|
+ // .fontWeight(FontWeight.Medium)
|
|
|
+ // .fontSize(px2vp(24))
|
|
|
+ // .fontColor(this.inboundButton === 0 ? $r('app.color.black_90') : $r('app.color.black_60'))
|
|
|
+ // .backgroundColor(this.inboundButton === 0 ? $r('app.color.process_divider_white_color') : '')
|
|
|
+ // .onClick(() => {
|
|
|
+ // this.goingToChangeTab(0)
|
|
|
+ // })
|
|
|
+ // Blank()
|
|
|
Text('手动入库')
|
|
|
.textAlign(TextAlign.Center)
|
|
|
.borderRadius(px2vp(16))
|
|
|
- .width('33%')
|
|
|
+ .width('50%')
|
|
|
.height('100%')
|
|
|
.fontWeight(FontWeight.Medium)
|
|
|
.fontSize(px2fp(24))
|
|
@@ -271,7 +271,7 @@ struct Warehousing {
|
|
|
Text('统计')
|
|
|
.textAlign(TextAlign.Center)
|
|
|
.borderRadius(px2vp(16))
|
|
|
- .width('33%')
|
|
|
+ .width('50%')
|
|
|
.height('100%')
|
|
|
.fontWeight(FontWeight.Medium)
|
|
|
.fontSize(px2vp(24))
|
|
@@ -280,7 +280,7 @@ struct Warehousing {
|
|
|
.onClick(() => {
|
|
|
this.goingToChangeTab(2)
|
|
|
})
|
|
|
- }.width(px2vp(923))
|
|
|
+ }.width(px2vp(615))
|
|
|
.borderRadius(px2vp(15))
|
|
|
.height(px2vp(80))
|
|
|
.backgroundColor($r('app.color.black_10'))
|
|
@@ -288,22 +288,23 @@ struct Warehousing {
|
|
|
.height('8%')
|
|
|
.padding({ left: px2vp(24), right: px2vp(24) })
|
|
|
|
|
|
- if (this.inboundButton === 0 && this.warehouseButton === 0) {
|
|
|
- //自动入库
|
|
|
- IntelligentWarehousingGo({
|
|
|
- scanStorageList: this.scanStorageList,
|
|
|
- entranceWaiting: this.entranceWaiting,
|
|
|
- ///料箱状态
|
|
|
- materialBox: this.materialBox,
|
|
|
- weight: this.weight,
|
|
|
- binCode: this.binCode,
|
|
|
- MaterialInformation: this.MaterialInformation,
|
|
|
- vehicleLevel: this.vehicleLevel,
|
|
|
- contraband: this.contraband,
|
|
|
- automaticWarehousing: this.automaticWarehousing,
|
|
|
- boxMaterials: this.boxMaterials
|
|
|
- })
|
|
|
- } else if (this.inboundButton === 2 && this.warehouseButton === 0) {
|
|
|
+ // if (this.inboundButton === 0 && this.warehouseButton === 0) {
|
|
|
+ // //自动入库
|
|
|
+ // IntelligentWarehousingGo({
|
|
|
+ // scanStorageList: this.scanStorageList,
|
|
|
+ // entranceWaiting: this.entranceWaiting,
|
|
|
+ // ///料箱状态
|
|
|
+ // materialBox: this.materialBox,
|
|
|
+ // weight: this.weight,
|
|
|
+ // binCode: this.binCode,
|
|
|
+ // MaterialInformation: this.MaterialInformation,
|
|
|
+ // vehicleLevel: this.vehicleLevel,
|
|
|
+ // contraband: this.contraband,
|
|
|
+ // automaticWarehousing: this.automaticWarehousing,
|
|
|
+ // boxMaterials: this.boxMaterials
|
|
|
+ // })
|
|
|
+ // } else
|
|
|
+ if (this.inboundButton === 2 && this.warehouseButton === 0) {
|
|
|
//统计
|
|
|
Column() {
|
|
|
Statistics()
|