|
@@ -2,20 +2,18 @@
|
|
|
* 零星物料入库
|
|
|
* */
|
|
|
import {ProcessFlow,BoxGrid,MaterialListComponent,RemindDialog} from "../component/OrderMaterialsStorageView"
|
|
|
-import {OrderParams,MaterialBox, EmptyBox} from "../params/OrderMaterialsStorageParams"
|
|
|
import router from '@ohos.router';
|
|
|
import RobotErrorHandleRequest from '../common/util/request/RobotErrorHandleRequest'
|
|
|
import RequestParamModel from '../viewmodel/wms/RequestParamModel'
|
|
|
import {CommonConfirmDialog}from "../component/OrderMaterialsStorageView"
|
|
|
import {ConfirmDialogParams} from "../params/OrderMaterialsStorageParams"
|
|
|
-import WorkOrderInfo from '../viewmodel/wms/WorkOrderInfo'
|
|
|
import CommonConstants from '../common/constants/CommonConstants'
|
|
|
import WmsRequest from '../common/util/request/WmsRequest'
|
|
|
-import {RgvInfo} from "../params/RobotsParam"
|
|
|
+import {RgvInfo} from "../viewmodel/wms/rgv/RobotsParam"
|
|
|
import {NavigationBar} from '../component/NavigationBar'
|
|
|
import {TimeAndTitle} from "../component/TimeAndTitle"
|
|
|
import {InBoundView} from '../component/InBoundView'
|
|
|
-import {outBoxClass} from '../params/MaterialInformationParam'
|
|
|
+import {OutBoxClass} from '../viewmodel/wms/OutBoxClass'
|
|
|
import MaterialBoxInfo from '../viewmodel/wms/MaterialBoxInfo';
|
|
|
import MaterialInfo from '../viewmodel/wms/MaterialInfo';
|
|
|
|
|
@@ -26,28 +24,27 @@ struct LittleMaterialsStorage{
|
|
|
@State materialNum:number=0
|
|
|
@State currentStep: number = 1;
|
|
|
@State emptyBoxes: MaterialBoxInfo[] = []
|
|
|
+ //步骤一的扫描
|
|
|
@State scanBoxValue:string = ''
|
|
|
+ //步骤二的扫描
|
|
|
@State scanMaterialValue:string = ''
|
|
|
@State selectedMaterialBox: MaterialBoxInfo = {};
|
|
|
+ //是否查询料箱
|
|
|
@State isQueryMaterial : boolean = false
|
|
|
+ //按钮缩放标志
|
|
|
@State nextStepButtonClick :number = 1
|
|
|
@State preStepButtonClick :number = 1
|
|
|
@State outBoundButtonClick :number = 1
|
|
|
+ //查询到的料箱
|
|
|
@State materialBoxes: MaterialBoxInfo[] = [];
|
|
|
+ //查询的料箱数量
|
|
|
@State queryMaterialBoxNum:number = 0
|
|
|
@State scanMaterialList: MaterialInfo[] = []
|
|
|
@State reminds: string=''
|
|
|
+ //查询到目标物料信息
|
|
|
@State queryTargetMaterial: MaterialInfo = {}
|
|
|
@StorageLink('materialBoxWeight') materialBoxWeight: number =0;
|
|
|
@StorageLink('drawerPositionStatus') drawerPositionStatus: number=1 ;
|
|
|
- @State orders: OrderParams[] = [
|
|
|
- { orderName: '订单名称XXXXX', orderNo: '123123213', date: '2025/11/11', progress: '50%' },
|
|
|
- { orderName: '订单名称XXXX', orderNo: '123123213', date: '2025/11/11', progress: '75%' },
|
|
|
- { orderName: '特殊订单', orderNo: 'SH2024001', date: '2024/03/01', progress: '100%' },
|
|
|
- { orderName: '订单名称XXXXX', orderNo: '123123213', date: '2025/11/11', progress: '50%' },
|
|
|
- { orderName: '订单名称XXXX', orderNo: '123123213', date: '2025/11/11', progress: '75%' },
|
|
|
- { orderName: '特殊订单', orderNo: 'SH2024001', date: '2024/03/01', progress: '100%' }
|
|
|
- ]
|
|
|
remindController: CustomDialogController = new CustomDialogController({
|
|
|
builder: RemindDialog({
|
|
|
remind: this.reminds,}
|
|
@@ -147,7 +144,7 @@ struct LittleMaterialsStorage{
|
|
|
|
|
|
boxOutBound = async () => {
|
|
|
try {
|
|
|
- const res: outBoxClass = await WmsRequest.post("/api/v1/wmsOrder/outBox", {
|
|
|
+ const res: OutBoxClass = await WmsRequest.post("/api/v1/wmsOrder/outBox", {
|
|
|
houseNo: this.selectedMaterialBox?.houseNo,
|
|
|
vehicleNo: this.selectedMaterialBox?.vehicleCode,
|
|
|
stanCode: CommonConstants.STATION_CODE
|