|
@@ -1,7 +1,7 @@
|
|
|
import {SingleOrder,BoxGrid,RemindDialog} from "../../component/OrderMaterialsStorageView"
|
|
|
import WorkOrderInfo from '../../viewmodel/wms/WorkOrderInfo'
|
|
|
import WmsRequest from '../../common/util/request/WmsRequest'
|
|
|
-import {MaterialBoxInfo,outBoxClass,materialsInfo} from '../../params/MaterialInformationParam'
|
|
|
+import {outBoxClass} from '../../params/MaterialInformationParam'
|
|
|
import RequestParamModel from '../../viewmodel/wms/RequestParamModel'
|
|
|
import promptAction from '@ohos.promptAction';
|
|
|
import CommonConstants from '../../common/constants/CommonConstants'
|
|
@@ -9,6 +9,8 @@ import {RgvInfo} from "../../params/RobotsParam"
|
|
|
import {CommonConfirmDialog}from "../../component/OrderMaterialsStorageView"
|
|
|
import {ConfirmDialogParams} from "../../params/OrderMaterialsStorageParams"
|
|
|
import RobotErrorHandleRequest from '../../common/util/request/RobotErrorHandleRequest'
|
|
|
+import MaterialBoxInfo from '../../viewmodel/wms/MaterialBoxInfo'
|
|
|
+import MaterialInfo from '../../viewmodel/wms/MaterialInfo'
|
|
|
|
|
|
@Component
|
|
|
export struct OrderMaterialStorageSecondStep {
|
|
@@ -22,7 +24,7 @@ export struct OrderMaterialStorageSecondStep {
|
|
|
@State queryMaterialBoxNum:number = 0
|
|
|
@State isQueryMaterial: boolean = false
|
|
|
@State emptyBoxes: MaterialBoxInfo[] = []
|
|
|
- @State queryTargetMaterial:materialsInfo={}
|
|
|
+ @State queryTargetMaterial: MaterialInfo = {}
|
|
|
@State materialBoxes: MaterialBoxInfo[] = []
|
|
|
@State reminds:string='1'
|
|
|
@StorageLink('materialBoxWeight') materialBoxWeight: number =0;
|
|
@@ -58,7 +60,7 @@ export struct OrderMaterialStorageSecondStep {
|
|
|
if (this.materialBoxes[0]?.materials) {
|
|
|
this.queryTargetMaterial = this.materialBoxes[0].materials.find(
|
|
|
(material) => material.materialNo === currentMaterialNo
|
|
|
- ) || {} as materialsInfo; // 如果找不到就使用空对象
|
|
|
+ ) || {} as MaterialInfo; // 如果找不到就使用空对象
|
|
|
}
|
|
|
}
|
|
|
}
|