rev:工单显示字段

This commit is contained in:
zhangzhiqiang
2023-06-13 15:12:16 +08:00
parent 33d3de5b53
commit 8d1f012a36
4 changed files with 20 additions and 7 deletions

View File

@@ -177,6 +177,17 @@ public class SpeFullTask extends AbstractAcsTask {
// pointService.update(new UpdateWrapper<SchBasePoint>()
// .set("vehicle_code",task.getVehicle_code2())
// .eq("point_code",task.getPoint_code3()));
}
if (extParam.get("fall_finish") != null){
PdmBiDevice one = deviceService.getOne(new QueryWrapper<PdmBiDevice>().eq("device_code", task.getPoint_code2()));
if (!("fall_finish"+task.getTask_id()).equals(one.getRemark())){
deviceService.update(new UpdateWrapper<PdmBiDevice>()
.set("material_id", task.getMaterial_id())
.set("deviceinstor_qty",one.getDeviceinstor_qty().add(task.getMaterial_qty()))
.set("remark","fall_finish"+task.getTask_id())
.eq("device_code", task.getPoint_code2()));
}
}
if (extParam.get("take_finish") != null){
log.info("取货完成:{},vechile_code:{}",task.getTask_id(),task.getVehicle_code2());

View File

@@ -70,7 +70,7 @@ public class PdmBiDevice implements Serializable {
private String device_code2;
/**
* 设备来料仓上限数
* 设备上料料斗上限数
*/
private BigDecimal inupperlimit_qty;
@@ -80,7 +80,7 @@ public class PdmBiDevice implements Serializable {
private BigDecimal inlowerlimit_qty;
/**
* 设备产品仓上限数
* 设备满料框上限:每筐数量
*/
private BigDecimal outupperlimit_qty;
@@ -95,13 +95,13 @@ public class PdmBiDevice implements Serializable {
private BigDecimal deviceinitinstor_qty;
/**
* 设备实时来料仓数:用于数量校验
* 上(倒)料斗实时数:用于数量校验
*/
private BigDecimal deviceinstor_qty;
private BigDecimal deviceinstor_weight;
/**
* 设备实时产品仓
* 满料框实时
*/
private BigDecimal deviceoutstor_qty;

View File

@@ -8,6 +8,7 @@
material.material_name,
material.material_code,
material.material_spec,
pdm_bi_device.outupperlimit_qty,
pro.workprocedure_code,
pro.workprocedure_name,
user.person_name as current_produce_person_name
@@ -16,6 +17,7 @@
left join md_me_materialbase material on material.material_id = ShiftOrder.material_id
left join PDM_BI_WorkProcedure pro on pro.workprocedure_id = ShiftOrder.workprocedure_id
left join sys_user user on user.user_id = ShiftOrder.current_produce_person_id
left join pdm_bi_device on ShiftOrder.device_code = pdm_bi_device.device_code
WHERE
ShiftOrder.is_delete = '0'
<if test="query.workorder_code != null and query.workorder_code != ''">

View File

@@ -76,15 +76,15 @@
<el-table-column prop="needproduct_qty" label="待生产数" />
<el-table-column prop="report_qty" label="报工数量">
<template slot-scope="scope">
<el-input v-model="scope.row.report_qty/" /></template>
<el-input v-model="scope.row.report_qty"/></template>
</el-table-column>
<el-table-column prop="nok_qty" label="报废数量">
<template slot-scope="scope">
<el-input v-model="scope.row.nok_qty/" /></template>
<el-input v-model="scope.row.nok_qty" /></template>
</el-table-column>
<el-table-column prop="repare_qty" label="报修数量">
<template slot-scope="scope">
<el-input v-model="scope.row.repare_qty/" /></template>
<el-input v-model="scope.row.repare_qty" /></template>
</el-table-column>
<el-table-column prop="person_finish_qty" label="人员期末数量" />
<el-table-column prop="operatetime_start" label="开工时间" />