| | |
| | | { |
| | | try |
| | | { |
| | | input.StorageTypeNo = Domain.Shared.Enums.PlaceTypeEnum.XUNIKUWEI; |
| | | var list = await _wmsmaterialstockAppService.FindListByFilterAsync(input); |
| | | return new CmsApiResponse<List<WmsMaterialStockDto>>() |
| | | { |
| | |
| | | `是否要叫料${names.length ? names.join(',') : ''}` |
| | | ).then(async () => { |
| | | const ids = selection.value.map((item: { id: string }) => item.id) |
| | | await callMaterialOrder.callMaterialByDataIdentifier({ |
| | | var ret= await callMaterialOrder.callMaterialByDataIdentifier({ |
| | | id:ids[0] |
| | | }) |
| | | ElMessage.success('叫料成功') |
| | | tableRef.value.getList() |
| | | if(ret.code=="200"){ |
| | | ElMessage.success('叫料成功') |
| | | tableRef.value.getList() |
| | | }else{ |
| | | ElMessage.error('叫料失败:'+ret.message) |
| | | } |
| | | }) |
| | | } |
| | | |
| | |
| | | ).then(async () => { |
| | | //您的业务逻辑 |
| | | const param={ |
| | | taskCode:queryForm.value.taskCode, |
| | | pipeSpecCode:queryForm.value.pipeSpecCode, |
| | | continerNo:queryForm.value.continerNo, |
| | | placeNo:queryForm.value.placeNo |
| | |
| | | { |
| | | |
| | | /// <summary> |
| | | /// 任务编号 |
| | | /// </summary> |
| | | public string TaskCode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 管段编码 |
| | | /// </summary> |
| | | public string PipeSpecCode { get; set; } |
| | |
| | | /// <returns></returns> |
| | | public async Task<MesOrderResponse> CommonPick(IServiceProvider _serviceProvider, PickInput input, MyCurrentUser myCurrentUser) |
| | | { |
| | | if (string.IsNullOrEmpty(input.TaskCode)) |
| | | { |
| | | throw new UserFriendlyException("请输入任务编号"); |
| | | }; |
| | | if (string.IsNullOrEmpty(input.PipeSpecCode)) |
| | | { |
| | | throw new UserFriendlyException("请输入管段编码"); |
| | |
| | | }); |
| | | } |
| | | //物料参数列表 |
| | | var firstWorkPlans = await workPlanAppService.GetListByFilterAsync(x => x.PipeSpecCode == input.PipeSpecCode); |
| | | |
| | | var firstWorkPlan = await workPlanAppService.GetSingleByFilterAsync(x => x.PipeSpecCode == input.PipeSpecCode); |
| | | var firstWorkPlan = await workPlanAppService.GetSingleByFilterAsync(x => x.TaskCode == input.TaskCode); |
| | | var callMaterialOrder = await callMaterialOrderAppService.GetSingleByFilterAsync(x => x.DataIdentifier == firstWorkPlan.DataIdentifier); |
| | | //TODO:这里调用wms的叫料接口 |
| | | try |