fix:仓库

This commit is contained in:
zhaoyf
2026-11-05 15:12:58 +08:00
parent 0423ebe7e4
commit 5800ced076
4 changed files with 3 additions and 11 deletions

View File

@@ -107,15 +107,7 @@ public class MesToWmsController {
List<String> orderCodes = new ArrayList<>();
for (WorkOrderDto.WorkOrderDataDto dto : dtos) {
if (!ArrayUtils.contains(filter, dto.getWorkArea())){
if (!StringUtils.isEmpty(dto.getWorkArea()) && dto.getWorkArea().startsWith("E3")){
orderCodes.add(dto.getOrderCode());
dto.getWorkOrderBomList().forEach(bom -> {
bom.setWarehouseCode("6.011.03");
bom.setWarehouseName("五期智能结构件仓库");
});
}
iWorkOrderService.insert(dto);
}
}
// 配盘按托盘进行,工单同步后由工单管理页面下推出库,不再自动创建配盘需求单。

View File

@@ -126,7 +126,7 @@ public class PartDemandServiceImpl extends ServiceImpl<PartDemandMapper, PartDem
demand.setCreate_at(DateUtil.now());
demand.setMax_load(param.getMaxLoad());
demand.setStatus("01");
demand.setInventory_dis("6.006");
demand.setInventory_dis(RegionConstant.ASSEMBLY_PART_STORE_CODE);
this.save(demand);
}

View File

@@ -126,7 +126,7 @@ public class PmDemandPlatingServiceImpl extends ServiceImpl<PmDemandPlatingMappe
demand.setCreate_at(DateUtil.now());
demand.setMax_load(param.getMaxLoad());
demand.setStatus("01");
demand.setInventory_dis("6.005");
demand.setInventory_dis(RegionConstant.PLATING_STORE_CODE);
this.save(demand);
}

View File

@@ -158,7 +158,7 @@
</el-table-column>
<el-table-column label="交货数量" width="120">
<template slot-scope="scope">
<el-input-number v-model="scope.row.deliv_qty" :min="0" :precision="3" :controls="false" :disabled="isEditMode" size="mini" style="width: 100%;" />
<el-input-number v-model="scope.row.deliv_qty" :min="0" :precision="3" :controls="false" size="mini" style="width: 100%;" />
</template>
</el-table-column>
<el-table-column label="单位" width="80">