修改bug

This commit is contained in:
zds
2022-07-03 18:07:05 +08:00
parent 48bdf86c89
commit 979fa4aec7
2 changed files with 26 additions and 0 deletions

View File

@@ -214,6 +214,7 @@ public class InitformulaServiceImpl implements InitformulaService {
}else{
jo.put("seqno","0");
}
jo.put("is_need_manage","1");
ja.add(jo);
}
if(ja!=null){
@@ -315,6 +316,12 @@ public class InitformulaServiceImpl implements InitformulaService {
jo.put("formula_code",formula_code);
jo.put("seq_no",(mn)+"");
mn++;
if(!jo.containsKey("is_need_manage")){
throw new BadRequestException("物料"+jo.getString("material_code")+" "+jo.getString("material_name")+"缺少is_need_manage");
}
if(!jo.containsKey("is_need_move")){
throw new BadRequestException("物料"+jo.getString("material_code")+" "+jo.getString("material_name")+"缺少is_need_move");
}
if("".equals(jo.getString("is_need_manage"))){
jo.put("is_need_manage","0");
}
@@ -412,6 +419,12 @@ public class InitformulaServiceImpl implements InitformulaService {
jo.put("formula_code",formula_code2);
jo.put("seq_no",(mm)+"");
mm++;
if(!jo.containsKey("is_need_manage")){
throw new BadRequestException("物料"+jo.getString("material_code")+" "+jo.getString("material_name")+"缺少is_need_manage");
}
if(!jo.containsKey("is_need_move")){
throw new BadRequestException("物料"+jo.getString("material_code")+" "+jo.getString("material_name")+"缺少is_need_move");
}
if("".equals(jo.getString("is_need_manage"))){
jo.put("is_need_manage","0");
}
@@ -587,6 +600,12 @@ public class InitformulaServiceImpl implements InitformulaService {
jo.put("formula_code",formula_code);
jo.put("seq_no",(nn)+"");
nn++;
if(!jo.containsKey("is_need_manage")){
throw new BadRequestException("物料"+jo.getString("material_code")+" "+jo.getString("material_name")+"缺少is_need_manage");
}
if(!jo.containsKey("is_need_move")){
throw new BadRequestException("物料"+jo.getString("material_code")+" "+jo.getString("material_name")+"缺少is_need_move");
}
if("".equals(jo.getString("is_need_manage"))){
jo.put("is_need_manage","0");
}
@@ -685,6 +704,12 @@ public class InitformulaServiceImpl implements InitformulaService {
jo.put("formula_code",formula_code2);
jo.put("seq_no",(num)+"");
num++;
if(!jo.containsKey("is_need_manage")){
throw new BadRequestException("物料"+jo.getString("material_code")+" "+jo.getString("material_name")+"缺少is_need_manage");
}
if(!jo.containsKey("is_need_move")){
throw new BadRequestException("物料"+jo.getString("material_code")+" "+jo.getString("material_name")+"缺少is_need_move");
}
if("".equals(jo.getString("is_need_manage"))){
jo.put("is_need_manage","0");
}

View File

@@ -753,6 +753,7 @@ export default {
}
},
queryTableDtl4(rows) {
debugger
const tablemap = new Map()
rows.forEach((item) => {
if (this.tableDtl.length !== 0) {