|
|
|
@ -115,15 +115,19 @@ |
|
|
|
result = res.data; |
|
|
|
lis.push("<div class='clearfix'>"); |
|
|
|
for (let i = 0; i < result.length; i++) { |
|
|
|
|
|
|
|
let brandItem ='<p>' + "物料品牌:"+result[i].brand + '</p>'; |
|
|
|
if(result[i].brand === ""){ |
|
|
|
brandItem = ""; |
|
|
|
} |
|
|
|
lis.push('<li style="width:100%;margin-top: 10px;float:left;border: 1px solid #9999996e;"><div class="layui-card my-shadow my-card flow1" onclick="showDetail(' |
|
|
|
+ result[i].id + ')"><div class="layui-card-header"><h2>' + result[i].mname + '</h2></div>'); |
|
|
|
+ result[i].id + ')"><div class="layui-card-header"><h2>' + "物料名称:"+result[i].mname + '</h2></div>'); |
|
|
|
lis.push('<div class="layui-col-md4 my-info" style="margin-left: 15px; color: #999;font-size: 15px;">' |
|
|
|
+ '<p style="font-size: large">' + result[i].mcode + '</p>' |
|
|
|
+ '<p>' + result[i].version + '</p>' |
|
|
|
+ '<p>' + result[i].brand + '</p>' |
|
|
|
+ '<p style="font-size: large">' + "物料编码:"+result[i].mcode + '</p>' |
|
|
|
+ '<p>' + "物料型号:"+result[i].version + '</p>' |
|
|
|
+ brandItem |
|
|
|
+ '<p>' + "旧单位:" + result[i].oldUnit + '</p>' |
|
|
|
+ '<p>' + "新单位:" + result[i].quantity + " : " + result[i].newUnit + '</p>' |
|
|
|
+ '<p>' + "新单位:" + result[i].newUnit + '</p>' |
|
|
|
+ '<p>' + "对应关系:" + result[i].quantity + '</p>' |
|
|
|
+ '</div></div></li>'); |
|
|
|
} |
|
|
|
lis.push('</div>'); |
|
|
|
@ -155,15 +159,19 @@ |
|
|
|
result = res.data; |
|
|
|
lis.push("<div class='clearfix'>"); |
|
|
|
for (let i = 0; i < result.length; i++) { |
|
|
|
|
|
|
|
let brandItem ='<p>' + "物料品牌:"+result[i].brand + '</p>'; |
|
|
|
if(result[i].brand === ""){ |
|
|
|
brandItem = ""; |
|
|
|
} |
|
|
|
lis.push('<li style="width:100%;margin-top: 10px;float:left;border: 1px solid #9999996e;"><div class="layui-card my-shadow my-card flow1" onclick="showDetail(' |
|
|
|
+ result[i].id + ')"><div class="layui-card-header"><h2>' + result[i].mname + '</h2></div>'); |
|
|
|
+ result[i].id + ')"><div class="layui-card-header"><h2>' + "物料名称:"+result[i].mname + '</h2></div>'); |
|
|
|
lis.push('<div class="layui-col-md4 my-info" style="margin-left: 15px; color: #999;font-size: 15px;">' |
|
|
|
+ '<p style="font-size: large">' + result[i].mcode + '</p>' |
|
|
|
+ '<p>' + result[i].version + '</p>' |
|
|
|
+ '<p>' + result[i].brand + '</p>' |
|
|
|
+ '<p style="font-size: large">' + "物料编码:"+result[i].mcode + '</p>' |
|
|
|
+ '<p>' + "物料型号:"+result[i].version + '</p>' |
|
|
|
+ brandItem |
|
|
|
+ '<p>' + "旧单位:" + result[i].oldUnit + '</p>' |
|
|
|
+ '<p>' + "新单位:" + result[i].quantity + " : " + result[i].newUnit + '</p>' |
|
|
|
+ '<p>' + "新单位:" + result[i].newUnit + '</p>' |
|
|
|
+ '<p>' + "对应关系:" + result[i].quantity + '</p>' |
|
|
|
+ '</div></div></li>'); |
|
|
|
} |
|
|
|
lis.push('</div>'); |
|
|
|
|