修改 铝内胆设备看板

master
wangh 2 years ago
parent f74f744465
commit 86c3a7f484

@ -99,17 +99,18 @@ public class PreassembleController {
@GetMapping("/getMaterialStoreJson")
@ResponseBody
public String getMesMaterialStoreStatisticsJson(){
List<MesMaterialStoreStatistics> mesMaterialStoreStatisticsList = iMesProductionDataService.getMesMaterialStoreStatisticsList("1004");
List<MesMaterialStoreStatistics> mesMaterialStoreStatisticsList =
iMesProductionDataService.getMesMaterialStoreStatisticsList("1004");
return JSONArray.toJSONString(mesMaterialStoreStatisticsList);
}
/**
/* *//**
*
*
* @author WenJY
* @date 2022/4/20 10:15
* @return java.lang.String
*/
*//*
@GetMapping("/getStatisticalOutputByModel")
@ResponseBody
public String getStatisticalOutputByModel() {
@ -127,13 +128,13 @@ public class PreassembleController {
return info;
}
/**
*//**
*
*
* @author WenJY
* @date 2022/4/20 10:16
* @return java.lang.String
*/
*//*
@GetMapping("/getInventoryStatistics")
@ResponseBody
public String getInventoryStatistics() {
@ -155,5 +156,5 @@ public class PreassembleController {
+ " ]\n"
+ "}";
return info;
}
}*/
}

@ -68,7 +68,6 @@ public interface MesMaterialStoreStatisticsMapper extends BaseMapper<MesMaterial
* @return
*/
@Select("select materialName,LINERSTOREAMOUNT as lineStoreAmount,hullStoreAmount from table ( scada_absorb_kctj2(#{in_id}) )")
List<MesMaterialStoreStatistics> getAdsorptionTankStoreStatistics4(@Param("in_id") Integer in_id);
@Select("select * from table ( scada_adsorb_fault(#{in_id}) )")
List<DeviceFault> selectDeviceFaultByType1005(int in_id);

@ -165,7 +165,7 @@ public class MesProductionDataServiceImpl implements IMesProductionDataService {
public List<MesMaterialStoreStatistics> getMesMaterialStoreStatisticsList(String locationNumber) {
List<MesMaterialStoreStatistics> mesMaterialStoreStatistics = new ArrayList<>();
System.out.println("数据切换标志: "+this.in_id);
switch (locationNumber) {
case "1001":
mesMaterialStoreStatistics = materialStoreStatisticsMapper.getAdsorptionTankStoreStatistics(this.in_id);

@ -33,11 +33,6 @@ body {
}
.foamingLineRunStatus {
position: absolute;
width: 40%;
height: 27%;
top: 12%;
left: 30%;
}
.inventoryStatistics {

@ -41,7 +41,7 @@ $(() => {
let Res = {}
Res.data=res.map(val => {
return [val.spe,val.oq,val.aq,val.cha,val.round,]
return [val["spe"],val["oq"],val["aq"],val["cha"],val.round,]
})
Res.header = ['型号', '计划数', '完成数', '差异数', '执行进度']
dynamicTable({
@ -51,7 +51,7 @@ $(() => {
header: Res.header,
data: Res.data,
index: false,
fontColor: '#B4B7BF ',
fontColor: '#B4B7BF',
indexBGC: '#86F3FF',
headerBGC: 'rgba(8,36,75,0.2)',
oddRowBGC: 'rgba(8,36,75,0.2)',

@ -1226,7 +1226,7 @@ const multipleThreeDimensionalCylindrical = (res, ids) => {
color: "#fff",
fontSize: fontSize,
},
data: ["内胆库", "箱壳库"],
data: ["箱壳库", "内胆库"],
},
xAxis: [
{

@ -119,16 +119,14 @@ $(() => {
})
const deviceStatus = (statusArray) => {
let info = `<table style="width: 100%;height:100%;">
<tr style="width: 100%;">
<td style="position:absolute;top:-7%;left:8%;height:50%;width:10%;border:0px solid red;text-align:left;"><img src="../../img/foamBox/${statusArray[0] == 1 ? "deviceopen.png" : "deviceclose.png"}" style="width: 2vw;"/></td>
<td style="position:absolute;top:-7%;left:23%;height:50%;width:10%;border:0px solid red;text-align:left;"><img src="../../img/foamBox/${statusArray[1] == 1 ? "deviceopen.png" : "deviceclose.png"}" style="width: 2vw;"/></td>
<td style="position:absolute;top:-7%;left:38%;height:50%;width:10%;border:0px solid red;text-align:left;"><img src="../../img/foamBox/${statusArray[2] == 1 ? "deviceopen.png" : "deviceclose.png"}" style="width: 2vw;"/></td>
<td style="position:absolute;top:-7%;left:52%;height:50%;width:10%;border:0px solid red;text-align:left;"><img src="../../img/foamBox/${statusArray[3] == 1 ? "deviceopen.png" : "deviceclose.png"}" style="width: 2vw;"/></td>
<td style="position:absolute;top:-7%;left:75%;height:50%;width:10%;border:0px solid red;text-align:left;"><img src="../../img/foamBox/${statusArray[4] == 1 ? "deviceopen.png" : "deviceclose.png"}" style="width: 2vw;"/></td>
<td style="position:absolute;top:-7%;left:93%;height:50%;width:10%;border:0px solid red;text-align:left;"><img src="../../img/foamBox/${statusArray[5] == 1 ? "deviceopen.png" : "deviceclose.png"}" style="width: 2vw;"/></td>
</tr>
</table>`;
let info = `
<img src="../../img/foamBox/${statusArray[0] == 1 ? "deviceopen.png" : "deviceclose.png"}" style="position: absolute;transform: translate(-50%,-50%);top:30%;left:34%;width: 2vw;"/>
<img src="../../img/foamBox/${statusArray[1] == 1 ? "deviceopen.png" : "deviceclose.png"}" style="position: absolute;transform: translate(-50%,-50%);top:30%;left:40%;width: 2vw;"/>
<img src="../../img/foamBox/${statusArray[2] == 1 ? "deviceopen.png" : "deviceclose.png"}" style="position: absolute;transform: translate(-50%,-50%);top:30%;left:45%;width: 2vw;"/>
<img src="../../img/foamBox/${statusArray[3] == 1 ? "deviceopen.png" : "deviceclose.png"}" style="position: absolute;transform: translate(-50%,-50%);top:30%;left:51%;width: 2vw;"/>
<img src="../../img/foamBox/${statusArray[4] == 1 ? "deviceopen.png" : "deviceclose.png"}" style="position: absolute;transform: translate(-50%,-50%);top:30%;left:60%;width: 2vw;"/>
<img src="../../img/foamBox/${statusArray[5] == 1 ? "deviceopen.png" : "deviceclose.png"}" style="position: absolute;transform: translate(-50%,-50%);top:30%;left:68%;width: 2vw;"/>
`;
$(".foamingLineRunStatus table tr").append(info);

Loading…
Cancel
Save