Commit e1c84297 authored by 李苏's avatar 李苏 💬

D=>FORMATTER

parent a724e055
...@@ -40,6 +40,11 @@ ...@@ -40,6 +40,11 @@
field: "wlxxCode", field: "wlxxCode",
width: 140 width: 140
}, },
{
title: "物料批号",
field: "wlph",
width: 140
},
{ {
title: "物料名称", title: "物料名称",
field: "wlxxName", field: "wlxxName",
...@@ -85,11 +90,28 @@ ...@@ -85,11 +90,28 @@
}else{ }else{
show=false show=false
} }
let formatter=(a,b,value)=>value
if(item.type=='D'){
formatter= (a,b,value)=>{
if ( value==undefined || value ==''||value==='undefined'){
return "";
} else if(!isNaN(value)){
var date = new Date(parseInt(value));
if ( isNaN(date) ){
return ""
}
return date.Format("yyyy-MM-dd");
}else{
return value
}
}
}
let pitem={ let pitem={
prop:item.field, prop:item.field,
width:item.width||200, width:item.width||200,
label:item.name, label:item.name,
show:show show:show,
formatter:formatter
} }
/* 解决页面复杂渲染过长导致偶尔Dom获取不到 */ /* 解决页面复杂渲染过长导致偶尔Dom获取不到 */
setTimeout(()=>{ setTimeout(()=>{
......
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