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

D=>FORMATTER

parent a724e055
......@@ -40,6 +40,11 @@
field: "wlxxCode",
width: 140
},
{
title: "物料批号",
field: "wlph",
width: 140
},
{
title: "物料名称",
field: "wlxxName",
......@@ -85,11 +90,28 @@
}else{
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={
prop:item.field,
width:item.width||200,
label:item.name,
show:show
show:show,
formatter:formatter
}
/* 解决页面复杂渲染过长导致偶尔Dom获取不到 */
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