Commit e910bbf2 authored by yff's avatar yff

增加加工反馈

parent 7ef67d78
...@@ -280,9 +280,21 @@ public class GpfkController extends BaseController { ...@@ -280,9 +280,21 @@ public class GpfkController extends BaseController {
} }
} }
@RequestMapping(value = "/jgfk", method = RequestMethod.POST)
@ResponseBody
public Object jgfk(@RequestBody JSONObject param) {
FkCondition condition = JSONObject.toJavaObject(param, FkCondition.class);
FkVO gpfk = gpfkService.zpfkUpgrade(condition);
if(gpfk!=null) {
return buildReturnData(gpfk);
}
return ThreadContext.getReturnData();
}
@RequestMapping(value = "/zpfk", method = RequestMethod.POST) @RequestMapping(value = "/zpfk", method = RequestMethod.POST)
@ResponseBody @ResponseBody
public Object query(@RequestBody JSONObject param) { public Object zpfk(@RequestBody JSONObject param) {
FkCondition condition = JSONObject.toJavaObject(param, FkCondition.class); FkCondition condition = JSONObject.toJavaObject(param, FkCondition.class);
FkVO gpfk = gpfkService.zpfkUpgrade(condition); FkVO gpfk = gpfkService.zpfkUpgrade(condition);
if(gpfk!=null) { if(gpfk!=null) {
......
...@@ -1640,7 +1640,7 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao { ...@@ -1640,7 +1640,7 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao {
@Override @Override
public List<WobomVO> queryWobomByWosnAndBzgx(String wosnid, String bzgx) { public List<WobomVO> queryWobomByWosnAndBzgx(String wosnid, String bzgx) {
SqlMap sqlMap = new SqlMap(); SqlMap sqlMap = new SqlMap();
sqlMap.append("select WOBOM_ID, WOBOM_XH, WOBOM_WOID, WOBOM_WLID, WOBOM_FFGX,"); sqlMap.append("select WOBOM_ID,WOBOM_GJWL, WOBOM_XH, WOBOM_WOID, WOBOM_WLID, WOBOM_FFGX,");
sqlMap.append(" WOBOM_DWYL, WOBOM_XQSL, WOBOM_XQRQ, WOBOM_SHL, WOBOM_SHZ, WOBOM_FFYZ,"); sqlMap.append(" WOBOM_DWYL, WOBOM_XQSL, WOBOM_XQRQ, WOBOM_SHL, WOBOM_SHZ, WOBOM_FFYZ,");
sqlMap.append(" WOBOM_LLSL, WOBOM_CKSL, WOBOM_BZ, WOBOM_WHRID, WOBOM_WHR,"); sqlMap.append(" WOBOM_LLSL, WOBOM_CKSL, WOBOM_BZ, WOBOM_WHRID, WOBOM_WHR,");
sqlMap.append(" WOBOM_WHSJ, WOBOM_CJRID, WOBOM_CJR, WOBOM_CJSJ, WOBOM_SYSVERSION,"); sqlMap.append(" WOBOM_WHSJ, WOBOM_CJRID, WOBOM_CJR, WOBOM_CJSJ, WOBOM_SYSVERSION,");
......
...@@ -106,7 +106,7 @@ public interface GpfkService extends BaseEditService { ...@@ -106,7 +106,7 @@ public interface GpfkService extends BaseEditService {
* 判断序列号类型 * 判断序列号类型
*/ */
public String checkSnType(String snid); public String checkSnType(String snid);
public FkVO jgfk(FkCondition fkCondition);
public FkVO zpfk(FkCondition fkCondition); public FkVO zpfk(FkCondition fkCondition);
public FkVO jyfk(FkCondition fkCondition); public FkVO jyfk(FkCondition fkCondition);
public FkVO wxfk(FkCondition fkCondition); public FkVO wxfk(FkCondition fkCondition);
......
...@@ -12,7 +12,8 @@ public enum YymkFKEnum { ...@@ -12,7 +12,8 @@ public enum YymkFKEnum {
ZP("ZP", "1901000200"), ZP("ZP", "1901000200"),
JY("JY","1901000400"), JY("JY","1901000400"),
WX("WX","1901000600"); WX("WX","1901000600"),
JG("JG","1901000800");
private String id; private String id;
private String name; private String name;
......
...@@ -6,6 +6,10 @@ ...@@ -6,6 +6,10 @@
<version>1.0</version> <version>1.0</version>
<menu mkid="901000000" mkmc = "科威尔MES"> <menu mkid="901000000" mkmc = "科威尔MES">
<menu mkid="901001600" mkmc="加工反馈" url="kmes/jgfk/zpindex">
<print entity="com.gavel.kwell.vo.GpfkVO"/>
<mkcz czid = "21" czmc = "取消装配" value="Y"/>
</menu>
<menu mkid="901000200" mkmc="装配反馈" url="kmes/gphy/zpindex"> <menu mkid="901000200" mkmc="装配反馈" url="kmes/gphy/zpindex">
<print entity="com.gavel.kwell.vo.GpfkVO"/> <print entity="com.gavel.kwell.vo.GpfkVO"/>
<mkcz czid = "21" czmc = "取消装配" value="Y"/> <mkcz czid = "21" czmc = "取消装配" value="Y"/>
...@@ -42,6 +46,8 @@ ...@@ -42,6 +46,8 @@
</menu> </menu>
<menu mkid="1901000600" mkmc="维修反馈" url="kmes/gpwx/index" gnlx="M"> <menu mkid="1901000600" mkmc="维修反馈" url="kmes/gpwx/index" gnlx="M">
</menu> </menu>
<menu mkid="1901000800" mkmc="加工反馈" url="kmes/jgfk/index" gnlx="M">
</menu>
</menu> </menu>
<menu fmkid="510020000" mkid="510020300" mkmc="排产计划维护" url="kmes/pcjhk/index"> <menu fmkid="510020000" mkid="510020300" mkmc="排产计划维护" url="kmes/pcjhk/index">
<print entity="com.gavel.kwell.vo.PcjhkVO" type="M"/> <print entity="com.gavel.kwell.vo.PcjhkVO" type="M"/>
......
...@@ -96,6 +96,11 @@ ...@@ -96,6 +96,11 @@
width: '20%', width: '20%',
align:"center" align:"center"
}, },
{title: "关键物料", field: "gjwl", fieldType: "ftString", width: 80,formatter:function (value,index,row) {
var map = {"Y":"<span style='color: green'>是</span>","N": "否"};
var text = map[value];
return text||"";
}},
] ]
] ]
/* 初始化工序 */ /* 初始化工序 */
...@@ -227,11 +232,11 @@ ...@@ -227,11 +232,11 @@
height: '100%', height: '100%',
width:"100%", width:"100%",
fitColumns: false, fitColumns: false,
// rowStyler:function(index,row){ rowStyler:function(index,row){
// if(index<2){ if(row.gjwl==''||row.gjwl==undefined||row.gjwl=='N'){
// return 'background-color:#6293BB;color:#fff;'; return 'background-color:#ADADAD;color:#fff;';
// } }
// }, },
columns:zpfk_columns, columns:zpfk_columns,
data: that.tabdata data: that.tabdata
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment