修改 铝内胆设备看板

master
wangh 2 years ago
parent f74f744465
commit 86c3a7f484

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

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

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

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

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

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

@ -119,16 +119,14 @@ $(() => {
}) })
const deviceStatus = (statusArray) => { const deviceStatus = (statusArray) => {
let info = `<table style="width: 100%;height:100%;"> let info = `
<tr style="width: 100%;"> <img src="../../img/foamBox/${statusArray[0] == 1 ? "deviceopen.png" : "deviceclose.png"}" style="position: absolute;transform: translate(-50%,-50%);top:30%;left:34%;width: 2vw;"/>
<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> <img src="../../img/foamBox/${statusArray[1] == 1 ? "deviceopen.png" : "deviceclose.png"}" style="position: absolute;transform: translate(-50%,-50%);top:30%;left:40%;width: 2vw;"/>
<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> <img src="../../img/foamBox/${statusArray[2] == 1 ? "deviceopen.png" : "deviceclose.png"}" style="position: absolute;transform: translate(-50%,-50%);top:30%;left:45%;width: 2vw;"/>
<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> <img src="../../img/foamBox/${statusArray[3] == 1 ? "deviceopen.png" : "deviceclose.png"}" style="position: absolute;transform: translate(-50%,-50%);top:30%;left:51%;width: 2vw;"/>
<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> <img src="../../img/foamBox/${statusArray[4] == 1 ? "deviceopen.png" : "deviceclose.png"}" style="position: absolute;transform: translate(-50%,-50%);top:30%;left:60%;width: 2vw;"/>
<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> <img src="../../img/foamBox/${statusArray[5] == 1 ? "deviceopen.png" : "deviceclose.png"}" style="position: absolute;transform: translate(-50%,-50%);top:30%;left:68%;width: 2vw;"/>
<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>`;
$(".foamingLineRunStatus table tr").append(info); $(".foamingLineRunStatus table tr").append(info);

Loading…
Cancel
Save