优化
This commit is contained in:
@@ -738,7 +738,7 @@ public class AcceptFormulaServiceImpl implements AcceptFormulaService {
|
|||||||
if(bom_ivt_qty < 0){
|
if(bom_ivt_qty < 0){
|
||||||
throw new BadRequestException("碳化钨配粉结果为负数,当前配粉无解!");
|
throw new BadRequestException("碳化钨配粉结果为负数,当前配粉无解!");
|
||||||
}
|
}
|
||||||
double C = X22_jian + bom_ivt_qty*Z_sum_per.get();
|
double C = X22_jian + Z_sum.get();
|
||||||
if(C < 0){
|
if(C < 0){
|
||||||
throw new BadRequestException("补碳结果为负数,当前配粉无解!");
|
throw new BadRequestException("补碳结果为负数,当前配粉无解!");
|
||||||
}else if(C >= 0){
|
}else if(C >= 0){
|
||||||
@@ -852,10 +852,6 @@ public class AcceptFormulaServiceImpl implements AcceptFormulaService {
|
|||||||
}
|
}
|
||||||
bomdlt_Cr3C2.put("bom_ivt_qty",bom_ivt_qty);
|
bomdlt_Cr3C2.put("bom_ivt_qty",bom_ivt_qty);
|
||||||
bomdlts_plan_map.put(bomdlt_Cr3C2.getString("material_id"),bomdlt_Cr3C2);
|
bomdlts_plan_map.put(bomdlt_Cr3C2.getString("material_id"),bomdlt_Cr3C2);
|
||||||
//统计除钨以外其他总重
|
|
||||||
AtomicReference<Double> total_sum = new AtomicReference<>(0.0);
|
|
||||||
|
|
||||||
total_sum.set(total_sum.get() + bomdlt_Cr3C2.getDouble("bom_ivt_qty"));
|
|
||||||
//计算不需要移库的添加剂
|
//计算不需要移库的添加剂
|
||||||
yzj_map.forEach((key,tjj_map_jo)->{
|
yzj_map.forEach((key,tjj_map_jo)->{
|
||||||
//获取添加剂id
|
//获取添加剂id
|
||||||
@@ -896,10 +892,9 @@ public class AcceptFormulaServiceImpl implements AcceptFormulaService {
|
|||||||
tjj_map_now.put("is_active","1");
|
tjj_map_now.put("is_active","1");
|
||||||
tjj_map_now.put("quality_scode","01");
|
tjj_map_now.put("quality_scode","01");
|
||||||
yzj_list.add(tjj_map_now);
|
yzj_list.add(tjj_map_now);
|
||||||
total_sum.set(total_sum.get() + need_qty-finished_qty);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
double W = new_qty - total_sum.get();
|
double W = X22_jian + Z_sum.get();
|
||||||
if(W>0){
|
if(W>0){
|
||||||
JSONObject W_weight = new JSONObject();
|
JSONObject W_weight = new JSONObject();
|
||||||
W_weight.put("formula_qty",W);
|
W_weight.put("formula_qty",W);
|
||||||
|
|||||||
@@ -271,7 +271,6 @@
|
|||||||
<el-table-column min-width="70" prop="source_bill_type" :formatter="workorder_typeFormat2" label="源类型" />
|
<el-table-column min-width="70" prop="source_bill_type" :formatter="workorder_typeFormat2" label="源类型" />
|
||||||
<el-table-column prop="source_bill_code" label="来源单据编号" min-width="105" />
|
<el-table-column prop="source_bill_code" label="来源单据编号" min-width="105" />
|
||||||
<el-table-column min-width="70" prop="workprocedure_id" label="当前工序" :formatter="seriesFormat2" />
|
<el-table-column min-width="70" prop="workprocedure_id" label="当前工序" :formatter="seriesFormat2" />
|
||||||
<el-table-column :formatter="create_modeFormat" min-width="155" prop="create_mode" label="生成方式" />
|
|
||||||
<el-table-column prop="startwork_name" min-width="60" label="开工人"/>
|
<el-table-column prop="startwork_name" min-width="60" label="开工人"/>
|
||||||
<el-table-column prop="endwork_name" min-width="60" label="完工人"/>
|
<el-table-column prop="endwork_name" min-width="60" label="完工人"/>
|
||||||
<el-table-column prop="create_name" min-width="60" label="创建人"/>
|
<el-table-column prop="create_name" min-width="60" label="创建人"/>
|
||||||
|
|||||||
@@ -258,6 +258,7 @@
|
|||||||
:data="tableData"
|
:data="tableData"
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
size="mini"
|
size="mini"
|
||||||
|
show-summary
|
||||||
border
|
border
|
||||||
:header-cell-style="{background:'#f5f7fa',color:'#606266'}"
|
:header-cell-style="{background:'#f5f7fa',color:'#606266'}"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user