|
@@ -138,263 +138,36 @@ struct ProcessIndex {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- // 选择工单弹窗控制器
|
|
|
- selectOrderController: CustomDialogController = new CustomDialogController({
|
|
|
- builder: SelectWorkOrderDialog({
|
|
|
- selectWorkOder: this.selectWorkOder
|
|
|
- }),
|
|
|
- autoCancel: true, // 点击遮罩关闭
|
|
|
- customStyle: true,
|
|
|
- alignment:DialogAlignment.Center,
|
|
|
- maskColor: 'rgba(0,0,0,0.8)', // 黑色遮罩
|
|
|
- })
|
|
|
- // 选择工位和用户弹窗控制器
|
|
|
- loginInfoController: CustomDialogController = new CustomDialogController({
|
|
|
- builder: LoginInfoDialog({
|
|
|
- searchDept:()=>{this.SwitchingDeptController.open()},
|
|
|
- searchStation:()=>{this.SwitchingStationController.open()},
|
|
|
- searchProductLine:()=>{this.SwitchingProductLineController.open()},
|
|
|
- }),
|
|
|
- autoCancel: true, // 点击遮罩关闭
|
|
|
- customStyle: true,
|
|
|
- alignment:DialogAlignment.Center,
|
|
|
- maskColor: 'rgba(0,0,0,0.8)', // 黑色遮罩
|
|
|
- })
|
|
|
- //切换部门弹窗控制器
|
|
|
- SwitchingDeptController: CustomDialogController = new CustomDialogController({
|
|
|
- builder: SwitchingDeptDialog({}),
|
|
|
- autoCancel: true, // 点击遮罩关闭
|
|
|
- customStyle: true,
|
|
|
- alignment:DialogAlignment.Center,
|
|
|
- maskColor: 'rgba(0,0,0,0.8)', // 黑色遮罩
|
|
|
- })
|
|
|
- // 工序报工-报工数量弹窗
|
|
|
- ReportWorkNumController: CustomDialogController = new CustomDialogController({
|
|
|
- builder: ReportWorkNumDialog({
|
|
|
- userName: this.reportList[this.currentReportNumIndex].userName,
|
|
|
- onConfirm:(num:number)=>{
|
|
|
- const index = this.currentReportNumIndex;
|
|
|
- if (this.reportList[index]) {
|
|
|
- this.reportList[index].reportNum = String(num);
|
|
|
- this.reportList = [...this.reportList];
|
|
|
- }
|
|
|
- }
|
|
|
- }),
|
|
|
- autoCancel: true,
|
|
|
- customStyle: true,
|
|
|
- alignment:DialogAlignment.Center,
|
|
|
- maskColor: 'rgba(0,0,0,0.8)',
|
|
|
- })
|
|
|
- // 工序报工-不良品报工弹窗
|
|
|
- UnqualifiedReportController: CustomDialogController = new CustomDialogController({
|
|
|
- builder: UnqualifiedReportDialog({
|
|
|
- userName: this.reportList[this.currentUnqualifiedIndex].userName,
|
|
|
- onConfirm:(num:number)=>{
|
|
|
- const index = this.currentUnqualifiedIndex;
|
|
|
- if (this.reportList[index]) {
|
|
|
- this.reportList[index].unqualifiedNum = String(num);
|
|
|
- this.reportList = [...this.reportList];
|
|
|
- }
|
|
|
- }
|
|
|
- }),
|
|
|
- autoCancel: true,
|
|
|
- customStyle: true,
|
|
|
- alignment:DialogAlignment.Center,
|
|
|
- maskColor: 'rgba(0,0,0,0.8)',
|
|
|
- })
|
|
|
-
|
|
|
- // 工序报工-添加参与人员
|
|
|
- JoinPersonNameController: CustomDialogController = new CustomDialogController({
|
|
|
- builder: JoinPersonNameDialog({
|
|
|
- reportList:this.reportList,
|
|
|
- onConfirm:(name:string)=>{
|
|
|
- const nameExists = this.reportList.some(item =>
|
|
|
- item.userName && name &&
|
|
|
- item.userName.toString().toLowerCase() === name.toString().toLowerCase().trim()
|
|
|
- );
|
|
|
- if (nameExists) {
|
|
|
- promptAction.showToast({
|
|
|
- message: '该用户已添加,请添加其他用户!',
|
|
|
- duration: 2000
|
|
|
- });
|
|
|
- return;
|
|
|
- }
|
|
|
- const index = this.currentReporterIndex;
|
|
|
- if (this.reportList[index]) {
|
|
|
- this.reportList[index].userName = name;
|
|
|
- this.reportList = [...this.reportList];
|
|
|
+ async scanCodeToStartWork() {
|
|
|
+ this.process = await ProcessRequest.post('/api/v1/process/info/scan', {
|
|
|
+ operationId: this.selectOperationId,
|
|
|
+ qrCode: this.scanCode,
|
|
|
+ workOrderCode: this.selectWorkOder.workOrderCode!
|
|
|
+ } as RequestParamModel)
|
|
|
+ if (this.process && this.process.id) {
|
|
|
+ this.scanState = 1
|
|
|
+ this.opComponents = await ProcessRequest.get(`/api/v1/process/opCompent/get/${this.selectOperationId!}/${this.process?.id!}`)
|
|
|
+ if (this.opComponents) {
|
|
|
+ for (const element of this.opComponents) {
|
|
|
+ if (CommonConstants.OPERATION_COMPONENT_TYPE.has(element.compentType!)) {
|
|
|
+ element.compentType = CommonConstants.OPERATION_COMPONENT_TYPE.get(element.compentType!)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- }),
|
|
|
- autoCancel: true,
|
|
|
- customStyle: true,
|
|
|
- alignment:DialogAlignment.Center,
|
|
|
- maskColor: 'rgba(0,0,0,0.8)',
|
|
|
- })
|
|
|
- // 工序报工弹窗
|
|
|
- ProcessReportingController: CustomDialogController = new CustomDialogController({
|
|
|
- builder: ProcessReportingDialog({
|
|
|
- onSelectReporter:(index:number)=>{
|
|
|
- this.currentReporterIndex = index;
|
|
|
- this.JoinPersonNameController.open();
|
|
|
- },
|
|
|
- onSelectReportNum:(index:number)=>{
|
|
|
- if (!this.reportList[index]?.userName?.trim()) {
|
|
|
- promptAction.showToast({
|
|
|
- message: '请先添加用户',
|
|
|
- duration: 2000
|
|
|
- });
|
|
|
- return;
|
|
|
- }
|
|
|
- this.currentReportNumIndex = index
|
|
|
- this.ReportWorkNumController.open()
|
|
|
- },
|
|
|
- onSelectUnqualified:(index:number)=>{
|
|
|
- if (!this.reportList[index]?.userName?.trim()) {
|
|
|
- promptAction.showToast({
|
|
|
- message: '请先添加用户',
|
|
|
- duration: 2000
|
|
|
- });
|
|
|
- return;
|
|
|
- }
|
|
|
- this.currentUnqualifiedIndex = index
|
|
|
- this.UnqualifiedReportController.open()
|
|
|
- },
|
|
|
- reportList:this.reportList
|
|
|
- }),
|
|
|
- autoCancel: true,
|
|
|
- customStyle: true,
|
|
|
- alignment:DialogAlignment.Center,
|
|
|
- maskColor: 'rgba(0,0,0,0.8)',
|
|
|
- })
|
|
|
- // 切换产线弹窗控制器
|
|
|
- SwitchingProductLineController: CustomDialogController = new CustomDialogController({
|
|
|
- builder: SwitchingProductLineDialog({}),
|
|
|
- autoCancel: true, // 点击遮罩关闭
|
|
|
- customStyle: true,
|
|
|
- alignment:DialogAlignment.Center,
|
|
|
- maskColor: 'rgba(0,0,0,0.8)', // 黑色遮罩
|
|
|
- })
|
|
|
- // 切换工位弹窗控制器
|
|
|
- SwitchingStationController: CustomDialogController = new CustomDialogController({
|
|
|
- builder: SwitchingStationDialog({}),
|
|
|
- autoCancel: true, // 点击遮罩关闭
|
|
|
- customStyle: true,
|
|
|
- alignment:DialogAlignment.Center,
|
|
|
- maskColor: 'rgba(0,0,0,0.8)', // 黑色遮罩
|
|
|
- })
|
|
|
- //切换用户弹窗控制器
|
|
|
- switchingUserController: CustomDialogController = new CustomDialogController({
|
|
|
- builder: SwitchingUserDialog({}),
|
|
|
- autoCancel: true, // 点击遮罩关闭
|
|
|
- customStyle: true,
|
|
|
- alignment:DialogAlignment.Center,
|
|
|
- maskColor: 'rgba(0,0,0,0.8)', // 黑色遮罩
|
|
|
- })
|
|
|
- // 切换产品弹窗控制器
|
|
|
- switchingProductDialogController: CustomDialogController = new CustomDialogController({
|
|
|
- builder: SwitchingProductDialog({
|
|
|
- scanState:this.scanState,
|
|
|
- process:this.process,
|
|
|
- scanSeqValue: this.scanCode,
|
|
|
- currentStationId:this.currentStationId,
|
|
|
- selectWorkOder:this.selectWorkOder,
|
|
|
- currentOperationId:this.selectOperationId,
|
|
|
- opComponents:this.opComponents
|
|
|
- }),
|
|
|
- autoCancel: true, // 点击遮罩关闭
|
|
|
- customStyle: true,
|
|
|
- alignment:DialogAlignment.Center,
|
|
|
- maskColor: 'rgba(0,0,0,0.8)', // 黑色遮罩
|
|
|
- })
|
|
|
-
|
|
|
- // 作业指导弹窗控制器
|
|
|
- workInstructionsController: CustomDialogController = new CustomDialogController({
|
|
|
- builder: WorkInstructionsDialog({
|
|
|
- materialCode: this.selectWorkOder.materialCode!,
|
|
|
- }),
|
|
|
- autoCancel: true, // 点击遮罩关闭
|
|
|
- customStyle: true,
|
|
|
- alignment:DialogAlignment.Center,
|
|
|
- maskColor: 'rgba(0,0,0,0.8)', // 黑色遮罩
|
|
|
- })
|
|
|
-
|
|
|
- // 齐套接收弹窗控制器
|
|
|
- completeReceiveController: CustomDialogController = new CustomDialogController({
|
|
|
- builder: CompleteReceiveDialog({
|
|
|
- currentWorkOrderCode: this.selectWorkOder.workOrderCode!,
|
|
|
- currentOperationId: this.selectOperationId
|
|
|
- }),
|
|
|
- autoCancel: true, // 点击遮罩关闭
|
|
|
- customStyle: true,
|
|
|
- alignment:DialogAlignment.Center,
|
|
|
- maskColor: 'rgba(0,0,0,0.8)', // 黑色遮罩
|
|
|
- })
|
|
|
-
|
|
|
- // 零星叫料弹窗控制器
|
|
|
- littleMaterialRequestController: CustomDialogController = new CustomDialogController({
|
|
|
- builder: LittleMaterialRequestDialog({
|
|
|
- }),
|
|
|
- autoCancel: true, // 点击遮罩关闭
|
|
|
- customStyle: true,
|
|
|
- alignment:DialogAlignment.Center,
|
|
|
- maskColor: 'rgba(0,0,0,0.8)', // 黑色遮罩
|
|
|
- })
|
|
|
- // 仓储操作弹窗控制器
|
|
|
- inAndOutBoundController: CustomDialogController = new CustomDialogController({
|
|
|
- builder: InAndOutBoundDialog({
|
|
|
- }),
|
|
|
- autoCancel: true, // 点击遮罩关闭
|
|
|
- customStyle: true,
|
|
|
- alignment:DialogAlignment.Center,
|
|
|
- maskColor: 'rgba(0,0,0,0.8)', // 黑色遮罩
|
|
|
- })
|
|
|
- // 条码关联弹窗控制器
|
|
|
- barcodeAssociationController: CustomDialogController = new CustomDialogController({
|
|
|
- builder: BarcodeAssociationDialog({
|
|
|
- workOrderCode: this.selectWorkOder?.workOrderCode!,
|
|
|
- seqList: this.seqList
|
|
|
- }),
|
|
|
- autoCancel: true, // 点击遮罩关闭
|
|
|
- customStyle: true,
|
|
|
- alignment:DialogAlignment.Center,
|
|
|
- maskColor: 'rgba(0,0,0,0.8)', // 黑色遮罩
|
|
|
- })
|
|
|
- // 图纸资料弹窗控制器
|
|
|
- pictureDrawingController: CustomDialogController = new CustomDialogController({
|
|
|
- builder: PictureDrawingDialog({
|
|
|
- materialCode: this.selectWorkOder?.materialCode!
|
|
|
- }),
|
|
|
- autoCancel: true, // 点击遮罩关闭
|
|
|
- customStyle: true,
|
|
|
- alignment:DialogAlignment.Center,
|
|
|
- maskColor: 'rgba(0,0,0,0.8)', // 黑色遮罩
|
|
|
- })
|
|
|
-
|
|
|
- // 辅助功能弹窗控制器
|
|
|
- auxiliaryOperationController: CustomDialogController = new CustomDialogController({
|
|
|
- builder: AuxiliaryOperationDialog({
|
|
|
- workOrderCode: this.selectWorkOder?.workOrderCode!,
|
|
|
- seqList: this.seqList,
|
|
|
- process: this.process,
|
|
|
- openLittleMaterialRequestDialog: ()=>{
|
|
|
- this.littleMaterialRequestController.open()
|
|
|
- },
|
|
|
- openBarcodeAssociationDialog: ()=>{
|
|
|
- this.barcodeAssociationController.open()
|
|
|
- },
|
|
|
- openInAndOutBoundDialog: ()=>{
|
|
|
- this.inAndOutBoundController.open()
|
|
|
- },
|
|
|
- openPictureDrawingDialog: ()=>{
|
|
|
- this.pictureDrawingController.open()
|
|
|
- },
|
|
|
- }),
|
|
|
- autoCancel: true, // 点击遮罩关闭
|
|
|
- customStyle: true,
|
|
|
- alignment:DialogAlignment.Bottom,
|
|
|
- maskColor: 'rgba(0,0,0,0.8)', // 黑色遮罩
|
|
|
- })
|
|
|
+ // 过滤掉点检工步
|
|
|
+ this.opComponents = this.opComponents.filter(item => item.compentType !== '5');
|
|
|
+ this.opComponents.unshift({
|
|
|
+ compentName:'自检',
|
|
|
+ compentType: '5',
|
|
|
+ deleted:0,
|
|
|
+ operationId: this.selectOperationId,
|
|
|
+ processRouteId: this.process?.id,
|
|
|
+ remark:'',
|
|
|
+ sortNum:0
|
|
|
+ })
|
|
|
+ }
|
|
|
+ this.scanState = 1
|
|
|
+ }
|
|
|
|
|
|
handleAllClick():void {
|
|
|
if (!this.selectWorkOder.workOrderCode || !this.currentUserName || !this.currentStationId) {
|
|
@@ -1050,11 +823,11 @@ struct ProcessIndex {
|
|
|
})
|
|
|
Row().width('1.5%')
|
|
|
Row({space: 4}) {
|
|
|
- Image($r('app.media.process_start_work'))
|
|
|
+ Image(this.scanState === 1 ? $r('app.media.process_report') : $r('app.media.process_start_work'))
|
|
|
.width($r('app.float.virtualSize_24'))
|
|
|
.height($r('app.float.virtualSize_24'))
|
|
|
.fillColor($r('app.color.FFFFFF'))
|
|
|
- Text('工序开工')
|
|
|
+ Text(this.scanState === 1 ? '工序报工' : '工序开工')
|
|
|
.fontColor($r('app.color.FFFFFF'))
|
|
|
.fontSize($r('app.float.fontSize_24'))
|
|
|
.fontWeight(FontWeight.Medium)
|
|
@@ -1062,7 +835,7 @@ struct ProcessIndex {
|
|
|
.width('10%')
|
|
|
.height('58.3%')
|
|
|
.justifyContent(FlexAlign.Center)
|
|
|
- .backgroundColor($r('app.color.0A84FF'))
|
|
|
+ .backgroundColor(this.scanState === 1 ? $r('app.color.30D158') : $r('app.color.0A84FF'))
|
|
|
.borderRadius($r('app.float.fontSize_16'))
|
|
|
.onClick(async ()=>{
|
|
|
if (!this.scanCode || this.scanCode.length <= 0) {
|
|
@@ -1077,38 +850,15 @@ struct ProcessIndex {
|
|
|
promptAction.showToast({
|
|
|
message: `请先选择工序`,
|
|
|
duration: 1500,
|
|
|
- bottom: 100
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- this.process = await ProcessRequest.post('/api/v1/process/info/scan', {
|
|
|
- operationId: this.selectOperationId,
|
|
|
- qrCode: this.scanCode,
|
|
|
- workOrderCode: this.selectWorkOder.workOrderCode!
|
|
|
- } as RequestParamModel)
|
|
|
- if (this.process && this.process.id) {
|
|
|
- this.scanState = 1
|
|
|
- this.opComponents = await ProcessRequest.get(`/api/v1/process/opCompent/get/${this.selectOperationId!}/${this.process?.id!}`)
|
|
|
- if (this.opComponents) {
|
|
|
- for (const element of this.opComponents) {
|
|
|
- if (CommonConstants.OPERATION_COMPONENT_TYPE.has(element.compentType)) {
|
|
|
- element.compentType = CommonConstants.OPERATION_COMPONENT_TYPE.get(element.compentType)
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- // 过滤掉点检工步
|
|
|
- this.opComponents = this.opComponents.filter(item => item.compentType !== '5');
|
|
|
- this.opComponents.unshift({
|
|
|
- compentName:'自检',
|
|
|
- compentType: '5',
|
|
|
- deleted:0,
|
|
|
- operationId: this.selectOperationId,
|
|
|
- processRouteId: this.process?.id,
|
|
|
- remark:'',
|
|
|
- sortNum:0
|
|
|
+ bottom: 100
|
|
|
})
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.scanState === 0) {
|
|
|
+ this.scanCodeToStartWork()
|
|
|
+ } else if (this.scanState === 1) {
|
|
|
+ // todo 工序报工
|
|
|
}
|
|
|
- this.scanState = 1
|
|
|
})
|
|
|
}
|
|
|
.height('90.6%')
|
|
@@ -1154,4 +904,257 @@ struct ProcessIndex {
|
|
|
onClick();
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
+ // 选择工单弹窗控制器
|
|
|
+ selectOrderController: CustomDialogController = new CustomDialogController({
|
|
|
+ builder: SelectWorkOrderDialog({
|
|
|
+ selectWorkOder: this.selectWorkOder
|
|
|
+ }),
|
|
|
+ autoCancel: true, // 点击遮罩关闭
|
|
|
+ customStyle: true,
|
|
|
+ alignment:DialogAlignment.Center,
|
|
|
+ maskColor: 'rgba(0,0,0,0.8)', // 黑色遮罩
|
|
|
+ })
|
|
|
+ // 选择工位和用户弹窗控制器
|
|
|
+ loginInfoController: CustomDialogController = new CustomDialogController({
|
|
|
+ builder: LoginInfoDialog({
|
|
|
+ searchDept:()=>{this.SwitchingDeptController.open()},
|
|
|
+ searchStation:()=>{this.SwitchingStationController.open()},
|
|
|
+ searchProductLine:()=>{this.SwitchingProductLineController.open()},
|
|
|
+ }),
|
|
|
+ autoCancel: true, // 点击遮罩关闭
|
|
|
+ customStyle: true,
|
|
|
+ alignment:DialogAlignment.Center,
|
|
|
+ maskColor: 'rgba(0,0,0,0.8)', // 黑色遮罩
|
|
|
+ })
|
|
|
+ //切换部门弹窗控制器
|
|
|
+ SwitchingDeptController: CustomDialogController = new CustomDialogController({
|
|
|
+ builder: SwitchingDeptDialog({}),
|
|
|
+ autoCancel: true, // 点击遮罩关闭
|
|
|
+ customStyle: true,
|
|
|
+ alignment:DialogAlignment.Center,
|
|
|
+ maskColor: 'rgba(0,0,0,0.8)', // 黑色遮罩
|
|
|
+ })
|
|
|
+ // 工序报工-报工数量弹窗
|
|
|
+ ReportWorkNumController: CustomDialogController = new CustomDialogController({
|
|
|
+ builder: ReportWorkNumDialog({
|
|
|
+ userName: this.reportList[this.currentReportNumIndex].userName,
|
|
|
+ onConfirm:(num:number)=>{
|
|
|
+ const index = this.currentReportNumIndex;
|
|
|
+ if (this.reportList[index]) {
|
|
|
+ this.reportList[index].reportNum = String(num);
|
|
|
+ this.reportList = [...this.reportList];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ autoCancel: true,
|
|
|
+ customStyle: true,
|
|
|
+ alignment:DialogAlignment.Center,
|
|
|
+ maskColor: 'rgba(0,0,0,0.8)',
|
|
|
+ })
|
|
|
+ // 工序报工-不良品报工弹窗
|
|
|
+ UnqualifiedReportController: CustomDialogController = new CustomDialogController({
|
|
|
+ builder: UnqualifiedReportDialog({
|
|
|
+ userName: this.reportList[this.currentUnqualifiedIndex].userName,
|
|
|
+ onConfirm:(num:number)=>{
|
|
|
+ const index = this.currentUnqualifiedIndex;
|
|
|
+ if (this.reportList[index]) {
|
|
|
+ this.reportList[index].unqualifiedNum = String(num);
|
|
|
+ this.reportList = [...this.reportList];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ autoCancel: true,
|
|
|
+ customStyle: true,
|
|
|
+ alignment:DialogAlignment.Center,
|
|
|
+ maskColor: 'rgba(0,0,0,0.8)',
|
|
|
+ })
|
|
|
+ // 工序报工-添加参与人员
|
|
|
+ JoinPersonNameController: CustomDialogController = new CustomDialogController({
|
|
|
+ builder: JoinPersonNameDialog({
|
|
|
+ reportList:this.reportList,
|
|
|
+ onConfirm:(name:string)=>{
|
|
|
+ const nameExists = this.reportList.some(item =>
|
|
|
+ item.userName && name &&
|
|
|
+ item.userName.toString().toLowerCase() === name.toString().toLowerCase().trim()
|
|
|
+ );
|
|
|
+ if (nameExists) {
|
|
|
+ promptAction.showToast({
|
|
|
+ message: '该用户已添加,请添加其他用户!',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ const index = this.currentReporterIndex;
|
|
|
+ if (this.reportList[index]) {
|
|
|
+ this.reportList[index].userName = name;
|
|
|
+ this.reportList = [...this.reportList];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ autoCancel: true,
|
|
|
+ customStyle: true,
|
|
|
+ alignment:DialogAlignment.Center,
|
|
|
+ maskColor: 'rgba(0,0,0,0.8)',
|
|
|
+ })
|
|
|
+ // 工序报工弹窗
|
|
|
+ ProcessReportingController: CustomDialogController = new CustomDialogController({
|
|
|
+ builder: ProcessReportingDialog({
|
|
|
+ onSelectReporter:(index:number)=>{
|
|
|
+ this.currentReporterIndex = index;
|
|
|
+ this.JoinPersonNameController.open();
|
|
|
+ },
|
|
|
+ onSelectReportNum:(index:number)=>{
|
|
|
+ if (!this.reportList[index]?.userName?.trim()) {
|
|
|
+ promptAction.showToast({
|
|
|
+ message: '请先添加用户',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.currentReportNumIndex = index
|
|
|
+ this.ReportWorkNumController.open()
|
|
|
+ },
|
|
|
+ onSelectUnqualified:(index:number)=>{
|
|
|
+ if (!this.reportList[index]?.userName?.trim()) {
|
|
|
+ promptAction.showToast({
|
|
|
+ message: '请先添加用户',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.currentUnqualifiedIndex = index
|
|
|
+ this.UnqualifiedReportController.open()
|
|
|
+ },
|
|
|
+ reportList:this.reportList
|
|
|
+ }),
|
|
|
+ autoCancel: true,
|
|
|
+ customStyle: true,
|
|
|
+ alignment:DialogAlignment.Center,
|
|
|
+ maskColor: 'rgba(0,0,0,0.8)',
|
|
|
+ })
|
|
|
+ // 切换产线弹窗控制器
|
|
|
+ SwitchingProductLineController: CustomDialogController = new CustomDialogController({
|
|
|
+ builder: SwitchingProductLineDialog({}),
|
|
|
+ autoCancel: true, // 点击遮罩关闭
|
|
|
+ customStyle: true,
|
|
|
+ alignment:DialogAlignment.Center,
|
|
|
+ maskColor: 'rgba(0,0,0,0.8)', // 黑色遮罩
|
|
|
+ })
|
|
|
+ // 切换工位弹窗控制器
|
|
|
+ SwitchingStationController: CustomDialogController = new CustomDialogController({
|
|
|
+ builder: SwitchingStationDialog({}),
|
|
|
+ autoCancel: true, // 点击遮罩关闭
|
|
|
+ customStyle: true,
|
|
|
+ alignment:DialogAlignment.Center,
|
|
|
+ maskColor: 'rgba(0,0,0,0.8)', // 黑色遮罩
|
|
|
+ })
|
|
|
+ //切换用户弹窗控制器
|
|
|
+ switchingUserController: CustomDialogController = new CustomDialogController({
|
|
|
+ builder: SwitchingUserDialog({}),
|
|
|
+ autoCancel: true, // 点击遮罩关闭
|
|
|
+ customStyle: true,
|
|
|
+ alignment:DialogAlignment.Center,
|
|
|
+ maskColor: 'rgba(0,0,0,0.8)', // 黑色遮罩
|
|
|
+ })
|
|
|
+ // 切换产品弹窗控制器
|
|
|
+ switchingProductDialogController: CustomDialogController = new CustomDialogController({
|
|
|
+ builder: SwitchingProductDialog({
|
|
|
+ scanState:this.scanState,
|
|
|
+ process:this.process,
|
|
|
+ scanSeqValue: this.scanCode,
|
|
|
+ currentStationId:this.currentStationId,
|
|
|
+ selectWorkOder:this.selectWorkOder,
|
|
|
+ currentOperationId:this.selectOperationId,
|
|
|
+ opComponents:this.opComponents
|
|
|
+ }),
|
|
|
+ autoCancel: true, // 点击遮罩关闭
|
|
|
+ customStyle: true,
|
|
|
+ alignment:DialogAlignment.Center,
|
|
|
+ maskColor: 'rgba(0,0,0,0.8)', // 黑色遮罩
|
|
|
+ })
|
|
|
+ // 作业指导弹窗控制器
|
|
|
+ workInstructionsController: CustomDialogController = new CustomDialogController({
|
|
|
+ builder: WorkInstructionsDialog({
|
|
|
+ materialCode: this.selectWorkOder.materialCode!,
|
|
|
+ }),
|
|
|
+ autoCancel: true, // 点击遮罩关闭
|
|
|
+ customStyle: true,
|
|
|
+ alignment:DialogAlignment.Center,
|
|
|
+ maskColor: 'rgba(0,0,0,0.8)', // 黑色遮罩
|
|
|
+ })
|
|
|
+ // 齐套接收弹窗控制器
|
|
|
+ completeReceiveController: CustomDialogController = new CustomDialogController({
|
|
|
+ builder: CompleteReceiveDialog({
|
|
|
+ currentWorkOrderCode: this.selectWorkOder.workOrderCode!,
|
|
|
+ currentOperationId: this.selectOperationId
|
|
|
+ }),
|
|
|
+ autoCancel: true, // 点击遮罩关闭
|
|
|
+ customStyle: true,
|
|
|
+ alignment:DialogAlignment.Center,
|
|
|
+ maskColor: 'rgba(0,0,0,0.8)', // 黑色遮罩
|
|
|
+ })
|
|
|
+ // 零星叫料弹窗控制器
|
|
|
+ littleMaterialRequestController: CustomDialogController = new CustomDialogController({
|
|
|
+ builder: LittleMaterialRequestDialog({
|
|
|
+ }),
|
|
|
+ autoCancel: true, // 点击遮罩关闭
|
|
|
+ customStyle: true,
|
|
|
+ alignment:DialogAlignment.Center,
|
|
|
+ maskColor: 'rgba(0,0,0,0.8)', // 黑色遮罩
|
|
|
+ })
|
|
|
+ // 仓储操作弹窗控制器
|
|
|
+ inAndOutBoundController: CustomDialogController = new CustomDialogController({
|
|
|
+ builder: InAndOutBoundDialog({
|
|
|
+ }),
|
|
|
+ autoCancel: true, // 点击遮罩关闭
|
|
|
+ customStyle: true,
|
|
|
+ alignment:DialogAlignment.Center,
|
|
|
+ maskColor: 'rgba(0,0,0,0.8)', // 黑色遮罩
|
|
|
+ })
|
|
|
+ // 条码关联弹窗控制器
|
|
|
+ barcodeAssociationController: CustomDialogController = new CustomDialogController({
|
|
|
+ builder: BarcodeAssociationDialog({
|
|
|
+ workOrderCode: this.selectWorkOder?.workOrderCode!,
|
|
|
+ seqList: this.seqList
|
|
|
+ }),
|
|
|
+ autoCancel: true, // 点击遮罩关闭
|
|
|
+ customStyle: true,
|
|
|
+ alignment:DialogAlignment.Center,
|
|
|
+ maskColor: 'rgba(0,0,0,0.8)', // 黑色遮罩
|
|
|
+ })
|
|
|
+ // 图纸资料弹窗控制器
|
|
|
+ pictureDrawingController: CustomDialogController = new CustomDialogController({
|
|
|
+ builder: PictureDrawingDialog({
|
|
|
+ materialCode: this.selectWorkOder?.materialCode!
|
|
|
+ }),
|
|
|
+ autoCancel: true, // 点击遮罩关闭
|
|
|
+ customStyle: true,
|
|
|
+ alignment:DialogAlignment.Center,
|
|
|
+ maskColor: 'rgba(0,0,0,0.8)', // 黑色遮罩
|
|
|
+ })
|
|
|
+ // 辅助功能弹窗控制器
|
|
|
+ auxiliaryOperationController: CustomDialogController = new CustomDialogController({
|
|
|
+ builder: AuxiliaryOperationDialog({
|
|
|
+ workOrderCode: this.selectWorkOder?.workOrderCode!,
|
|
|
+ seqList: this.seqList,
|
|
|
+ process: this.process,
|
|
|
+ openLittleMaterialRequestDialog: ()=>{
|
|
|
+ this.littleMaterialRequestController.open()
|
|
|
+ },
|
|
|
+ openBarcodeAssociationDialog: ()=>{
|
|
|
+ this.barcodeAssociationController.open()
|
|
|
+ },
|
|
|
+ openInAndOutBoundDialog: ()=>{
|
|
|
+ this.inAndOutBoundController.open()
|
|
|
+ },
|
|
|
+ openPictureDrawingDialog: ()=>{
|
|
|
+ this.pictureDrawingController.open()
|
|
|
+ },
|
|
|
+ }),
|
|
|
+ autoCancel: true, // 点击遮罩关闭
|
|
|
+ customStyle: true,
|
|
|
+ alignment:DialogAlignment.Bottom,
|
|
|
+ maskColor: 'rgba(0,0,0,0.8)', // 黑色遮罩
|
|
|
+ })
|
|
|
}
|