rev:设备监控、新增手动入箱回传、出箱回传
This commit is contained in:
@@ -63,6 +63,9 @@ public class FaultDeviceServiceImpl implements FaultDeviceService {
|
|||||||
String is_fault = MapUtil.getStr(whereJson, "is_fault");
|
String is_fault = MapUtil.getStr(whereJson, "is_fault");
|
||||||
String region_code = MapUtil.getStr(whereJson, "region_code");
|
String region_code = MapUtil.getStr(whereJson, "region_code");
|
||||||
String plant_code = MapUtil.getStr(whereJson, "plant_code");
|
String plant_code = MapUtil.getStr(whereJson, "plant_code");
|
||||||
|
if (StrUtil.isEmpty(plant_code)){
|
||||||
|
throw new BadRequestException("输入的区域不能为空!");
|
||||||
|
}
|
||||||
|
|
||||||
JSONObject param = new JSONObject();
|
JSONObject param = new JSONObject();
|
||||||
if (ObjectUtil.isNotEmpty(device_code)) {
|
if (ObjectUtil.isNotEmpty(device_code)) {
|
||||||
@@ -73,29 +76,19 @@ public class FaultDeviceServiceImpl implements FaultDeviceService {
|
|||||||
// 不为空则只需要查询专机设备
|
// 不为空则只需要查询专机设备
|
||||||
JSONObject jsonStr = WQL.getWO("QMD_BI_FAULT").addParam("flag", "3").process().uniqueResult(0);
|
JSONObject jsonStr = WQL.getWO("QMD_BI_FAULT").addParam("flag", "3").process().uniqueResult(0);
|
||||||
String str = jsonStr.getString("str");
|
String str = jsonStr.getString("str");
|
||||||
String product_area = jsonStr.getString("product_area");
|
|
||||||
param.put("device_code",str);
|
param.put("device_code",str);
|
||||||
param.put("product_area",product_area);
|
param.put("product_area",plant_code);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 调用acs接口获取设备
|
// 调用acs接口获取设备
|
||||||
JSONObject result = SpringContextHolder.getBean(WmsToAcsServiceImpl.class).realTimefaultInfo(param);
|
JSONObject result = SpringContextHolder.getBean(WmsToAcsServiceImpl.class).realTimefaultInfo(param);
|
||||||
JSONArray data = result.getJSONArray("data");
|
JSONArray data = result.getJSONArray("data");
|
||||||
|
|
||||||
JSONObject result2 = SpringContextHolder.getBean(WmsToAcsServiceImpl.class).queryDeviceInfo(new JSONObject());
|
JSONObject result2 = SpringContextHolder.getBean(WmsToAcsServiceImpl.class).queryDeviceInfo(param);
|
||||||
JSONObject jsonData = result2.getJSONObject("data");
|
JSONArray rows = result2.getJSONArray("data");
|
||||||
JSONArray data1 = new JSONArray();
|
|
||||||
|
|
||||||
if (ObjectUtil.isNotEmpty(jsonData)) {
|
for (int i = 0; i < rows.size(); i++) {
|
||||||
JSONArray jsonA1 = jsonData.getJSONArray("jsonA1");
|
JSONObject jsonObject = rows.getJSONObject(i);
|
||||||
JSONArray jsonLK = jsonData.getJSONArray("jsonLK");
|
|
||||||
|
|
||||||
data1.addAll(jsonA1);
|
|
||||||
data1.addAll(jsonLK);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (int i = 0; i < data1.size(); i++) {
|
|
||||||
JSONObject jsonObject = data1.getJSONObject(i);
|
|
||||||
double electricity = jsonObject.getDoubleValue("electricity");
|
double electricity = jsonObject.getDoubleValue("electricity");
|
||||||
|
|
||||||
if (electricity <= 30) {
|
if (electricity <= 30) {
|
||||||
|
|||||||
@@ -91,8 +91,7 @@
|
|||||||
IF 输入.flag = "3"
|
IF 输入.flag = "3"
|
||||||
QUERY
|
QUERY
|
||||||
SELECT
|
SELECT
|
||||||
GROUP_CONCAT(device_code) AS str,
|
GROUP_CONCAT(device_code) AS str
|
||||||
plant_code AS product_area
|
|
||||||
FROM
|
FROM
|
||||||
EM_BI_MonitorDevice
|
EM_BI_MonitorDevice
|
||||||
WHERE
|
WHERE
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ import org.nl.wms.ext.acs.service.AcsToWmsService;
|
|||||||
import org.nl.wms.pda.mps.service.impl.BakingServiceImpl;
|
import org.nl.wms.pda.mps.service.impl.BakingServiceImpl;
|
||||||
import org.nl.wms.pda.st.service.PrintService;
|
import org.nl.wms.pda.st.service.PrintService;
|
||||||
import org.nl.wms.pda.st.service.impl.PrintServiceImpl;
|
import org.nl.wms.pda.st.service.impl.PrintServiceImpl;
|
||||||
|
import org.nl.wms.sch.manage.AbstractAcsTask;
|
||||||
import org.nl.wms.sch.manage.TaskStatusEnum;
|
import org.nl.wms.sch.manage.TaskStatusEnum;
|
||||||
import org.nl.wms.sch.tasks.CutConveyorTask;
|
import org.nl.wms.sch.tasks.CutConveyorTask;
|
||||||
import org.nl.wms.sch.tasks.EmptyVehicleTask;
|
import org.nl.wms.sch.tasks.EmptyVehicleTask;
|
||||||
@@ -100,21 +101,13 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
|||||||
}
|
}
|
||||||
// 任务处理类
|
// 任务处理类
|
||||||
try {
|
try {
|
||||||
Class<?> clz = Class.forName(processing_class);
|
AbstractAcsTask bean = SpringContextHolder.getBean(processing_class);
|
||||||
|
bean.updateTaskStatus(row, status);
|
||||||
|
/*Class<?> clz = Class.forName(processing_class);
|
||||||
Object obj = clz.newInstance();
|
Object obj = clz.newInstance();
|
||||||
// 调用每个任务类的forceFinishInst()强制结束方法
|
// 调用每个任务类的forceFinishInst()强制结束方法
|
||||||
Method m = obj.getClass().getDeclaredMethod("updateTaskStatus", JSONObject.class, String.class);
|
Method m = obj.getClass().getDeclaredMethod("updateTaskStatus", JSONObject.class, String.class);
|
||||||
m.invoke(obj, row, status);
|
m.invoke(obj, row, status);*/
|
||||||
} catch (InvocationTargetException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
//空指针
|
|
||||||
if (ObjectUtil.isNull(e.getTargetException().getMessage())) {
|
|
||||||
message = e.getTargetException().toString();
|
|
||||||
} else {
|
|
||||||
message = e.getTargetException().getMessage();
|
|
||||||
}
|
|
||||||
throw new BadRequestException(message);
|
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
message = e.getMessage();
|
message = e.getMessage();
|
||||||
@@ -872,8 +865,8 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
|||||||
tran_jo.put("point_code1", translate_code1);
|
tran_jo.put("point_code1", translate_code1);
|
||||||
tran_jo.put("point_code2", translate_code2);
|
tran_jo.put("point_code2", translate_code2);
|
||||||
tran_jo.put("vehicle_code", right_point.getString("qzzno"));
|
tran_jo.put("vehicle_code", right_point.getString("qzzno"));
|
||||||
if (StrUtil.isEmpty(right_point.getString("vehicle_code"))){
|
if (StrUtil.isEmpty(right_point.getString("vehicle_code"))) {
|
||||||
throw new BadRequestException("点位:"+right_point.getString("point_code")+"载具号为空!");
|
throw new BadRequestException("点位:" + right_point.getString("point_code") + "载具号为空!");
|
||||||
}
|
}
|
||||||
tran_jo.put("vehicle_code2", right_point.getString("vehicle_code"));
|
tran_jo.put("vehicle_code2", right_point.getString("vehicle_code"));
|
||||||
tran_jo.put("task_type", "010406");
|
tran_jo.put("task_type", "010406");
|
||||||
|
|||||||
@@ -242,10 +242,19 @@ public class WmsToAcsServiceImpl implements WmsToAcsService {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
//ACS地址:127.0.0.1:8010
|
String product_area = whereJson.getString("product_area");
|
||||||
String acsUrl = SpringContextHolder.getBean(SysParamServiceImpl.class).findByCode("acs_url").getValue();
|
|
||||||
|
|
||||||
String url = acsUrl + api;
|
if (StrUtil.isEmpty(product_area)) {
|
||||||
|
throw new BadRequestException("区域不能为空!下发信息:" + whereJson.toString());
|
||||||
|
}
|
||||||
|
|
||||||
|
String acs_url = URLEnum.find(product_area);
|
||||||
|
if (StrUtil.isEmpty(acs_url)) {
|
||||||
|
log.info(product_area);
|
||||||
|
throw new BadRequestException("未查询到区域对应的acs地址!");
|
||||||
|
}
|
||||||
|
|
||||||
|
String url = acs_url + api;
|
||||||
try {
|
try {
|
||||||
String resultMsg = HttpRequest.post(url)
|
String resultMsg = HttpRequest.post(url)
|
||||||
.body(String.valueOf(whereJson))
|
.body(String.valueOf(whereJson))
|
||||||
@@ -255,9 +264,7 @@ public class WmsToAcsServiceImpl implements WmsToAcsService {
|
|||||||
// 重新组织数据
|
// 重新组织数据
|
||||||
JSONArray data = result.getJSONArray("data");
|
JSONArray data = result.getJSONArray("data");
|
||||||
|
|
||||||
JSONObject nowJson = new JSONObject(); // 返回数据
|
JSONArray rows = new JSONArray();
|
||||||
JSONArray ArrA1 = new JSONArray(); // A1车间
|
|
||||||
JSONArray ArrLk = new JSONArray(); // LK车间
|
|
||||||
|
|
||||||
String run_time = SpringContextHolder.getBean(SysParamServiceImpl.class).findByCode("AGV_RUN_TIME").getValue();
|
String run_time = SpringContextHolder.getBean(SysParamServiceImpl.class).findByCode("AGV_RUN_TIME").getValue();
|
||||||
|
|
||||||
@@ -268,17 +275,9 @@ public class WmsToAcsServiceImpl implements WmsToAcsService {
|
|||||||
// 工作时长:电量百分比*6
|
// 工作时长:电量百分比*6
|
||||||
String electricity = json.getString("electricity");
|
String electricity = json.getString("electricity");
|
||||||
json.put("run_time", NumberUtil.round(NumberUtil.div(NumberUtil.mul(electricity, run_time), 100), 1));
|
json.put("run_time", NumberUtil.round(NumberUtil.div(NumberUtil.mul(electricity, run_time), 100), 1));
|
||||||
|
rows.add(json);
|
||||||
if ("2,3".contains(json.getString("car_no"))) {
|
|
||||||
ArrA1.add(json);
|
|
||||||
}
|
|
||||||
if ("1".contains(json.getString("car_no"))) {
|
|
||||||
ArrLk.add(json);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
nowJson.put("jsonA1", ArrA1);
|
result.put("data", rows);
|
||||||
nowJson.put("jsonLK", ArrLk);
|
|
||||||
result.put("data", nowJson);
|
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
String msg = e.getMessage();
|
String msg = e.getMessage();
|
||||||
@@ -314,11 +313,19 @@ public class WmsToAcsServiceImpl implements WmsToAcsService {
|
|||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
String product_area = whereJson.getString("product_area");
|
||||||
|
|
||||||
//ACS地址:127.0.0.1:8010
|
if (StrUtil.isEmpty(product_area)) {
|
||||||
String acsUrl = SpringContextHolder.getBean(SysParamServiceImpl.class).findByCode("acs_url").getValue();
|
throw new BadRequestException("区域不能为空!下发信息:" + whereJson.toString());
|
||||||
|
}
|
||||||
|
|
||||||
String url = acsUrl + api;
|
String acs_url = URLEnum.find(product_area);
|
||||||
|
if (StrUtil.isEmpty(acs_url)) {
|
||||||
|
log.info(product_area);
|
||||||
|
throw new BadRequestException("未查询到区域对应的acs地址!");
|
||||||
|
}
|
||||||
|
|
||||||
|
String url = acs_url + api;
|
||||||
|
|
||||||
// 判断此此号属于哪个系统
|
// 判断此此号属于哪个系统
|
||||||
String car_no = whereJson.getString("car_no");
|
String car_no = whereJson.getString("car_no");
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
package org.nl.wms.pdm.ivt.rest;
|
package org.nl.wms.pdm.ivt.rest;
|
||||||
|
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
@@ -71,4 +72,12 @@ public class HotPointIvtController {
|
|||||||
public ResponseEntity<Object> taskDtlQuery(@RequestParam Map whereJson, Pageable page){
|
public ResponseEntity<Object> taskDtlQuery(@RequestParam Map whereJson, Pageable page){
|
||||||
return new ResponseEntity<>(hotpointivtService.taskDtlQuery(whereJson,page),HttpStatus.OK);
|
return new ResponseEntity<>(hotpointivtService.taskDtlQuery(whereJson,page),HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@PostMapping("/uploadMes")
|
||||||
|
@Log("手动回传MES")
|
||||||
|
@ApiOperation("手动回传MES")
|
||||||
|
public ResponseEntity<Object> uploadMes(@RequestBody JSONObject form){
|
||||||
|
hotpointivtService.uploadMes(form);
|
||||||
|
return new ResponseEntity<>(HttpStatus.OK);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
package org.nl.wms.pdm.ivt.service;
|
package org.nl.wms.pdm.ivt.service;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import org.nl.wms.pdm.ivt.service.dto.HotPointIvtDto;
|
import org.nl.wms.pdm.ivt.service.dto.HotPointIvtDto;
|
||||||
import org.springframework.data.domain.Pageable;
|
import org.springframework.data.domain.Pageable;
|
||||||
|
|
||||||
@@ -70,4 +71,6 @@ public interface HotPointIvtService {
|
|||||||
*/
|
*/
|
||||||
Map<String,Object> taskDtlQuery(Map whereJson, Pageable page);
|
Map<String,Object> taskDtlQuery(Map whereJson, Pageable page);
|
||||||
|
|
||||||
|
void uploadMes(JSONObject form);
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -15,7 +15,10 @@ import org.nl.modules.common.exception.BadRequestException;
|
|||||||
import org.nl.common.utils.SecurityUtils;
|
import org.nl.common.utils.SecurityUtils;
|
||||||
import org.nl.modules.wql.WQL;
|
import org.nl.modules.wql.WQL;
|
||||||
import org.nl.modules.wql.core.bean.WQLObject;
|
import org.nl.modules.wql.core.bean.WQLObject;
|
||||||
|
import org.nl.modules.wql.util.SpringContextHolder;
|
||||||
import org.nl.modules.wql.util.WqlUtil;
|
import org.nl.modules.wql.util.WqlUtil;
|
||||||
|
import org.nl.system.service.param.impl.SysParamServiceImpl;
|
||||||
|
import org.nl.wms.ext.mes.service.impl.LmsToMesServiceImpl;
|
||||||
import org.nl.wms.pdm.ivt.service.HotPointIvtService;
|
import org.nl.wms.pdm.ivt.service.HotPointIvtService;
|
||||||
import org.nl.wms.pdm.ivt.service.dto.HotPointIvtDto;
|
import org.nl.wms.pdm.ivt.service.dto.HotPointIvtDto;
|
||||||
import org.springframework.data.domain.Pageable;
|
import org.springframework.data.domain.Pageable;
|
||||||
@@ -27,21 +30,21 @@ import java.util.List;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description 服务实现
|
* @author lyd
|
||||||
* @author lyd
|
* @description 服务实现
|
||||||
* @date 2022-10-09
|
* @date 2022-10-09
|
||||||
**/
|
**/
|
||||||
@Service
|
@Service
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class HotPointIvtServiceImpl implements HotPointIvtService {
|
public class HotPointIvtServiceImpl implements HotPointIvtService {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String,Object> queryAll(Map whereJson, Pageable page){
|
public Map<String, Object> queryAll(Map whereJson, Pageable page) {
|
||||||
HashMap map = new HashMap();
|
HashMap map = new HashMap();
|
||||||
map.put("flag", "1");
|
map.put("flag", "1");
|
||||||
if (whereJson.get("point_code")!=null)
|
if (whereJson.get("point_code") != null)
|
||||||
map.put("point_code", "%" + whereJson.get("point_code") + "%");
|
map.put("point_code", "%" + whereJson.get("point_code") + "%");
|
||||||
map.put("point_status", whereJson.get("point_status"));
|
map.put("point_status", whereJson.get("point_status"));
|
||||||
map.put("product_area", whereJson.get("product_area"));
|
map.put("product_area", whereJson.get("product_area"));
|
||||||
map.put("is_used", whereJson.get("is_used"));
|
map.put("is_used", whereJson.get("is_used"));
|
||||||
@@ -54,7 +57,7 @@ public class HotPointIvtServiceImpl implements HotPointIvtService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<HotPointIvtDto> queryAll(Map whereJson){
|
public List<HotPointIvtDto> queryAll(Map whereJson) {
|
||||||
WQLObject wo = WQLObject.getWQLObject("st_ivt_hotpointivt");
|
WQLObject wo = WQLObject.getWQLObject("st_ivt_hotpointivt");
|
||||||
JSONArray arr = wo.query().getResultJSONArray(0);
|
JSONArray arr = wo.query().getResultJSONArray(0);
|
||||||
if (ObjectUtil.isNotEmpty(arr)) return arr.toJavaList(HotPointIvtDto.class);
|
if (ObjectUtil.isNotEmpty(arr)) return arr.toJavaList(HotPointIvtDto.class);
|
||||||
@@ -65,18 +68,18 @@ public class HotPointIvtServiceImpl implements HotPointIvtService {
|
|||||||
public HotPointIvtDto findById(Long ivt_id) {
|
public HotPointIvtDto findById(Long ivt_id) {
|
||||||
WQLObject wo = WQLObject.getWQLObject("st_ivt_hotpointivt");
|
WQLObject wo = WQLObject.getWQLObject("st_ivt_hotpointivt");
|
||||||
JSONObject json = wo.query("ivt_id = '" + ivt_id + "'").uniqueResult(0);
|
JSONObject json = wo.query("ivt_id = '" + ivt_id + "'").uniqueResult(0);
|
||||||
if (ObjectUtil.isNotEmpty(json)){
|
if (ObjectUtil.isNotEmpty(json)) {
|
||||||
return json.toJavaObject( HotPointIvtDto.class);
|
return json.toJavaObject(HotPointIvtDto.class);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public HotPointIvtDto findByCode(String code) {
|
public HotPointIvtDto findByCode(String code) {
|
||||||
WQLObject wo = WQLObject.getWQLObject("st_ivt_hotpointivt");
|
WQLObject wo = WQLObject.getWQLObject("st_ivt_hotpointivt");
|
||||||
JSONObject json = wo.query("code ='" + code + "'").uniqueResult(0);
|
JSONObject json = wo.query("code ='" + code + "'").uniqueResult(0);
|
||||||
if (ObjectUtil.isNotEmpty(json)){
|
if (ObjectUtil.isNotEmpty(json)) {
|
||||||
return json.toJavaObject( HotPointIvtDto.class);
|
return json.toJavaObject(HotPointIvtDto.class);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@@ -117,8 +120,8 @@ public class HotPointIvtServiceImpl implements HotPointIvtService {
|
|||||||
|
|
||||||
WQLObject wo = WQLObject.getWQLObject("st_ivt_hotpointivt");
|
WQLObject wo = WQLObject.getWQLObject("st_ivt_hotpointivt");
|
||||||
JSONObject json = JSONObject.parseObject(JSON.toJSONString(dto));
|
JSONObject json = JSONObject.parseObject(JSON.toJSONString(dto));
|
||||||
if (!json.containsKey("temperature")){
|
if (!json.containsKey("temperature")) {
|
||||||
json.put("temperature",null);
|
json.put("temperature", null);
|
||||||
}
|
}
|
||||||
wo.update(json);
|
wo.update(json);
|
||||||
}
|
}
|
||||||
@@ -131,7 +134,7 @@ public class HotPointIvtServiceImpl implements HotPointIvtService {
|
|||||||
String now = DateUtil.now();
|
String now = DateUtil.now();
|
||||||
|
|
||||||
WQLObject wo = WQLObject.getWQLObject("st_ivt_hotpointivt");
|
WQLObject wo = WQLObject.getWQLObject("st_ivt_hotpointivt");
|
||||||
for (Long ivt_id: ids) {
|
for (Long ivt_id : ids) {
|
||||||
JSONObject param = new JSONObject();
|
JSONObject param = new JSONObject();
|
||||||
param.put("ivt_id", String.valueOf(ivt_id));
|
param.put("ivt_id", String.valueOf(ivt_id));
|
||||||
param.put("is_delete", "1");
|
param.put("is_delete", "1");
|
||||||
@@ -142,6 +145,48 @@ public class HotPointIvtServiceImpl implements HotPointIvtService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void uploadMes(JSONObject form) {
|
||||||
|
String flag = form.getString("flag");
|
||||||
|
|
||||||
|
// 将入烘箱信息发送给mes
|
||||||
|
JSONObject param = new JSONObject();
|
||||||
|
String userName = SpringContextHolder.getBean(SysParamServiceImpl.class).findByCode("MES_USERNAME").getValue();
|
||||||
|
String passWord = SpringContextHolder.getBean(SysParamServiceImpl.class).findByCode("MES_PASSWORD").getValue();
|
||||||
|
param.put("iContainerName", form.getString("container_name"));
|
||||||
|
param.put("iResourceName", form.getString(""));
|
||||||
|
param.put("iMoveInDate", DateUtil.now());
|
||||||
|
param.put("iPlanBakingTemperature", form.getDoubleValue("temperature"));
|
||||||
|
param.put("iPlanBakingTimer", form.getDoubleValue("oven_time"));
|
||||||
|
param.put("UserName", userName);
|
||||||
|
param.put("PassWord", passWord);
|
||||||
|
|
||||||
|
//入箱回传
|
||||||
|
if ("1".equals(flag)) {
|
||||||
|
//判断该接口是否需要回传
|
||||||
|
JSONObject back_jo = WQLObject.getWQLObject("MD_PB_InterfaceBack").query("interface_name = 'momRollBakeInBound'").uniqueResult(0);
|
||||||
|
if (ObjectUtil.isNotEmpty(back_jo) && "1".equals(back_jo.getString("is_back"))) {
|
||||||
|
new LmsToMesServiceImpl().momRollBakeInBound(param);
|
||||||
|
}
|
||||||
|
|
||||||
|
//将该母卷的入烘箱标识改为0
|
||||||
|
HashMap<String, String> map = new HashMap<>();
|
||||||
|
map.put("is_baking", "0");
|
||||||
|
WQLObject.getWQLObject("PDM_BI_RawFoilWorkOrder").update(map, "container_name = '" + form.getString("container_name") + "'");
|
||||||
|
log.info("母卷:" + form.getString("container_name") + "对应的入烘箱任务完成,请求烘烤标识改为0");
|
||||||
|
}
|
||||||
|
//出箱回传
|
||||||
|
if ("2".equals(flag)) {
|
||||||
|
//判断该接口是否需要回传
|
||||||
|
JSONObject back_jo = WQLObject.getWQLObject("MD_PB_InterfaceBack").query("interface_name = 'momRollBakeOutBound'").uniqueResult(0);
|
||||||
|
if (ObjectUtil.isNotEmpty(back_jo) && "1".equals(back_jo.getString("is_back"))) {
|
||||||
|
new LmsToMesServiceImpl().momRollBakeOutBound(param);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, Object> taskDtlQuery(Map whereJson, Pageable page) {
|
public Map<String, Object> taskDtlQuery(Map whereJson, Pageable page) {
|
||||||
|
|
||||||
@@ -151,15 +196,15 @@ public class HotPointIvtServiceImpl implements HotPointIvtService {
|
|||||||
String container_name = MapUtil.getStr(whereJson, "container_name");
|
String container_name = MapUtil.getStr(whereJson, "container_name");
|
||||||
|
|
||||||
JSONObject map = new JSONObject();
|
JSONObject map = new JSONObject();
|
||||||
map.put("flag","2");
|
map.put("flag", "2");
|
||||||
map.put("bill_code", MapUtil.getStr(whereJson,"bill_code"));
|
map.put("bill_code", MapUtil.getStr(whereJson, "bill_code"));
|
||||||
map.put("dtl_status", MapUtil.getStr(whereJson,"dtl_status"));
|
map.put("dtl_status", MapUtil.getStr(whereJson, "dtl_status"));
|
||||||
map.put("begin_time", whereJson.get("begin_time"));
|
map.put("begin_time", whereJson.get("begin_time"));
|
||||||
map.put("end_time", whereJson.get("end_time"));
|
map.put("end_time", whereJson.get("end_time"));
|
||||||
map.put("container_name", container_name);
|
map.put("container_name", container_name);
|
||||||
if (ObjectUtil.isNotEmpty(task_code)) map.put("task_code","%"+task_code+"%");
|
if (ObjectUtil.isNotEmpty(task_code)) map.put("task_code", "%" + task_code + "%");
|
||||||
if (ObjectUtil.isNotEmpty(start_point_code)) map.put("start_point_code","%"+start_point_code+"%");
|
if (ObjectUtil.isNotEmpty(start_point_code)) map.put("start_point_code", "%" + start_point_code + "%");
|
||||||
if (ObjectUtil.isNotEmpty(next_point_code)) map.put("next_point_code","%"+next_point_code+"%");
|
if (ObjectUtil.isNotEmpty(next_point_code)) map.put("next_point_code", "%" + next_point_code + "%");
|
||||||
|
|
||||||
JSONObject json = WQL.getWO("ST_IVT_HOTPOINTIVT").addParamMap(map).pageQuery(WqlUtil.getHttpContext(page), "create_time DESC");
|
JSONObject json = WQL.getWO("ST_IVT_HOTPOINTIVT").addParamMap(map).pageQuery(WqlUtil.getHttpContext(page), "create_time DESC");
|
||||||
|
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
form: {
|
form: {
|
||||||
flag: '1'
|
flag: 'A1'
|
||||||
},
|
},
|
||||||
chargeLoading: false,
|
chargeLoading: false,
|
||||||
listA1: [],
|
listA1: [],
|
||||||
@@ -154,11 +154,11 @@ export default {
|
|||||||
agvList: [
|
agvList: [
|
||||||
],
|
],
|
||||||
agvRegionList: [
|
agvRegionList: [
|
||||||
{ 'label': 'A1', 'value': '1' },
|
{ 'label': 'A1', 'value': 'A1' },
|
||||||
{ 'label': 'A2', 'value': '2' },
|
{ 'label': 'A2', 'value': 'A2' },
|
||||||
{ 'label': 'A3', 'value': '3' },
|
{ 'label': 'A3', 'value': 'A3' },
|
||||||
{ 'label': 'A4', 'value': '4' },
|
{ 'label': 'A4', 'value': 'A4' },
|
||||||
{ 'label': 'LK', 'value': '5' }
|
{ 'label': 'LK', 'value': 'LK' }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -199,6 +199,7 @@ export default {
|
|||||||
},
|
},
|
||||||
charge_task(data) {
|
charge_task(data) {
|
||||||
this.chargeLoading = true
|
this.chargeLoading = true
|
||||||
|
data.product_area = this.form.flag
|
||||||
sendAgvChargeTask(data).then(res => {
|
sendAgvChargeTask(data).then(res => {
|
||||||
this.chargeLoading = false
|
this.chargeLoading = false
|
||||||
this.$message({
|
this.$message({
|
||||||
|
|||||||
@@ -67,7 +67,7 @@
|
|||||||
@change="crud.toQuery"
|
@change="crud.toQuery"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in dict.product_area"
|
v-for="item in product_area"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
@@ -104,7 +104,7 @@
|
|||||||
<el-table-column prop="solve_mode" label="解决方式" show-overflow-tooltip width="250px" />
|
<el-table-column prop="solve_mode" label="解决方式" show-overflow-tooltip width="250px" />
|
||||||
</el-table>
|
</el-table>
|
||||||
<!--分页组件-->
|
<!--分页组件-->
|
||||||
<!-- <pagination />-->
|
<!-- <pagination />-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -132,6 +132,9 @@ export default {
|
|||||||
add: false,
|
add: false,
|
||||||
reset: true
|
reset: true
|
||||||
},
|
},
|
||||||
|
query: {
|
||||||
|
plant_code: 'A1'
|
||||||
|
},
|
||||||
idField: 'device_id',
|
idField: 'device_id',
|
||||||
sort: 'device_id,desc',
|
sort: 'device_id,desc',
|
||||||
crudMethod: { ...crudFaultdevice }
|
crudMethod: { ...crudFaultdevice }
|
||||||
@@ -141,6 +144,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
permission: {},
|
permission: {},
|
||||||
tableData: [],
|
tableData: [],
|
||||||
|
product_area: [{ 'value': 'A1', 'label': 'A1' }, { 'value': 'A2', 'label': 'A2' }, { 'value': 'A3', 'label': 'A3' }, { 'value': 'A4', 'label': 'A4' }, { 'value': 'LK', 'label': 'LK' }],
|
||||||
rules: {
|
rules: {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
90
lms/nladmin-ui/src/views/wms/pdm/ivt/hotpointivt/Dialog.vue
Normal file
90
lms/nladmin-ui/src/views/wms/pdm/ivt/hotpointivt/Dialog.vue
Normal file
@@ -0,0 +1,90 @@
|
|||||||
|
<template>
|
||||||
|
<el-dialog
|
||||||
|
title="回传MES"
|
||||||
|
append-to-body
|
||||||
|
:visible.sync="dialogVisible"
|
||||||
|
:before-close="handleClose"
|
||||||
|
width="500px"
|
||||||
|
destroy-on-close
|
||||||
|
@close="close"
|
||||||
|
>
|
||||||
|
<el-form ref="form" :model="form1" size="mini" label-width="110px">
|
||||||
|
<el-form-item label="母卷号" prop="container_name">
|
||||||
|
<el-input v-model="form1.container_name" clearable size="mini"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="烘烤时间" prop="oven_time">
|
||||||
|
<el-input v-model="form1.oven_time" clearable size="mini"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="烘烤温度" prop="temperature">
|
||||||
|
<el-input v-model="form1.temperature" clearable size="mini"/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="text" @click="close">取消</el-button>
|
||||||
|
<el-button type="primary" @click="confirm('1')">入箱回传</el-button>
|
||||||
|
<el-button type="primary" @click="confirm('2')">出箱回传</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
import CRUD, { crud } from '@crud/crud'
|
||||||
|
import crudHotpointivt from '@/views/wms/pdm/ivt/hotpointivt/hotpointivt'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'SunShowDialog',
|
||||||
|
mixins: [crud()],
|
||||||
|
props: {
|
||||||
|
dialogShow: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
openParam: {
|
||||||
|
type: Object
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
dialogShow: {
|
||||||
|
handler(newValue, oldValue) {
|
||||||
|
this.dialogVisible = newValue
|
||||||
|
this.form1 = this.openParam
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
form1: {},
|
||||||
|
dialogVisible: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
handleClose(done) {
|
||||||
|
this.$confirm('确认关闭?')
|
||||||
|
.then(_ => {
|
||||||
|
done()
|
||||||
|
})
|
||||||
|
.catch(_ => {
|
||||||
|
})
|
||||||
|
},
|
||||||
|
close() {
|
||||||
|
this.$emit('update:dialogShow', false)
|
||||||
|
this.form1 = {}
|
||||||
|
this.crud.toQuery()
|
||||||
|
},
|
||||||
|
confirm(flag) {
|
||||||
|
this.form1.flag = flag
|
||||||
|
crudHotpointivt.uploadMes(this.form1).then(res => {
|
||||||
|
this.crud.toQuery()
|
||||||
|
this.close()
|
||||||
|
this.crud.notify('回传成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
</style>
|
||||||
@@ -24,4 +24,12 @@ export function edit(data) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export default { add, edit, del }
|
export function uploadMes(data) {
|
||||||
|
return request({
|
||||||
|
url: 'api/hotpointivt/uploadMes',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export default { add, edit, del, uploadMes }
|
||||||
|
|||||||
@@ -92,16 +92,29 @@
|
|||||||
@change="crud.toQuery"
|
@change="crud.toQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<rrOperation :crud="crud" />
|
<rrOperation :crud="crud"/>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
||||||
<crudOperation :permission="permission" />
|
<crudOperation :permission="permission">
|
||||||
|
<el-button
|
||||||
|
slot="right"
|
||||||
|
class="filter-item"
|
||||||
|
type="success"
|
||||||
|
icon="el-icon-position"
|
||||||
|
size="mini"
|
||||||
|
:disabled="crud.selections.length !== 1"
|
||||||
|
@click="uploadMES"
|
||||||
|
>
|
||||||
|
回传MES
|
||||||
|
</el-button>
|
||||||
|
</crudOperation>
|
||||||
<!--表单组件-->
|
<!--表单组件-->
|
||||||
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="520px">
|
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0"
|
||||||
|
:title="crud.status.title" width="520px">
|
||||||
<el-form ref="form" :model="form" :rules="rules" size="mini" label-width="100px">
|
<el-form ref="form" :model="form" :rules="rules" size="mini" label-width="100px">
|
||||||
<el-form-item label="点位编码" prop="point_code">
|
<el-form-item label="点位编码" prop="point_code">
|
||||||
<el-input v-model="form.point_code" style="width: 370px;" />
|
<el-input v-model="form.point_code" style="width: 370px;"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="生产区域">
|
<el-form-item label="生产区域">
|
||||||
<el-select
|
<el-select
|
||||||
@@ -136,13 +149,13 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="母卷号">
|
<el-form-item label="母卷号">
|
||||||
<el-input v-model="form.container_name" style="width: 370px;" />
|
<el-input v-model="form.container_name" style="width: 370px;"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="温度">
|
<el-form-item label="温度">
|
||||||
<el-input v-model="form.temperature" style="width: 370px;" />
|
<el-input v-model="form.temperature" style="width: 370px;"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="是否启用" prop="is_used">
|
<el-form-item label="是否启用" prop="is_used">
|
||||||
<el-switch v-model="form.is_used" active-value="1" inactive-value="0" />
|
<el-switch v-model="form.is_used" active-value="1" inactive-value="0"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
@@ -151,26 +164,27 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<!--表格渲染-->
|
<!--表格渲染-->
|
||||||
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
|
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;"
|
||||||
<el-table-column type="selection" width="55" />
|
@selection-change="crud.selectionChangeHandler">
|
||||||
<el-table-column prop="point_code" width="120px" show-overflow-tooltip label="点位编码" />
|
<el-table-column type="selection" width="55"/>
|
||||||
|
<el-table-column prop="point_code" width="120px" show-overflow-tooltip label="点位编码"/>
|
||||||
<el-table-column prop="point_status" label="点位状态">
|
<el-table-column prop="point_status" label="点位状态">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ dict.label.sch_hot_point_status[scope.row.point_status] }}
|
{{ dict.label.sch_hot_point_status[scope.row.point_status] }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="container_name" label="母卷号" width="150px" show-overflow-tooltip />
|
<el-table-column prop="container_name" label="母卷号" width="150px" show-overflow-tooltip/>
|
||||||
<el-table-column prop="ivt_qty" label="库存数" :formatter="crud.formatNum3" />
|
<el-table-column prop="ivt_qty" label="库存数" :formatter="crud.formatNum3"/>
|
||||||
<el-table-column prop="instorage_time" label="入箱时间" width="150px" show-overflow-tooltip />
|
<el-table-column prop="instorage_time" label="入箱时间" width="150px" show-overflow-tooltip/>
|
||||||
<el-table-column prop="product_area" label="生产区域">
|
<el-table-column prop="product_area" label="生产区域">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ dict.label.product_area[scope.row.product_area] }}
|
{{ dict.label.product_area[scope.row.product_area] }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="temperature" label="温度" />
|
<el-table-column prop="temperature" label="温度"/>
|
||||||
<el-table-column prop="last_time" label="倒计时" width="120"/>
|
<el-table-column prop="last_time" label="倒计时" width="120"/>
|
||||||
<el-table-column prop="group_name" label="组别" />
|
<el-table-column prop="group_name" label="组别"/>
|
||||||
<el-table-column prop="ext_code" label="外部编码" width="130" />
|
<el-table-column prop="ext_code" label="外部编码" width="130"/>
|
||||||
<el-table-column prop="point_location" label="位置">
|
<el-table-column prop="point_location" label="位置">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ dict.label.point_location[scope.row.point_location] }}
|
{{ dict.label.point_location[scope.row.point_location] }}
|
||||||
@@ -181,8 +195,8 @@
|
|||||||
{{ dict.label.is_used[scope.row.is_used] }}
|
{{ dict.label.is_used[scope.row.is_used] }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="remark" label="备注" />
|
<el-table-column prop="remark" label="备注"/>
|
||||||
<el-table-column prop="update_time" label="修改时间" min-width="150" show-overflow-tooltip />
|
<el-table-column prop="update_time" label="修改时间" min-width="150" show-overflow-tooltip/>
|
||||||
<el-table-column v-permission="[]" label="操作" width="120px" align="center" fixed="right">
|
<el-table-column v-permission="[]" label="操作" width="120px" align="center" fixed="right">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<udOperation
|
<udOperation
|
||||||
@@ -194,8 +208,9 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<!--分页组件-->
|
<!--分页组件-->
|
||||||
<pagination />
|
<pagination/>
|
||||||
</div>
|
</div>
|
||||||
|
<Dialog :dialog-show.sync="dialogShow" :open-param="openParam"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -206,11 +221,36 @@ import rrOperation from '@crud/RR.operation'
|
|||||||
import crudOperation from '@crud/CRUD.operation'
|
import crudOperation from '@crud/CRUD.operation'
|
||||||
import udOperation from '@crud/UD.operation'
|
import udOperation from '@crud/UD.operation'
|
||||||
import pagination from '@crud/Pagination'
|
import pagination from '@crud/Pagination'
|
||||||
|
import Dialog from '@/views/wms/pdm/ivt/hotpointivt/Dialog.vue'
|
||||||
|
|
||||||
const defaultForm = { ivt_id: null, point_code: null, point_status: null, container_name: null, workorder_id: null, full_vehicle_code: null, pcsn: null, ivt_qty: null, qty_unit_id: null, instorage_time: null, product_area: null, temperature: null, group_name: null, point_location: null, sort_seq: null, is_used: null, remark: null, create_id: null, create_name: null, create_time: null, update_optid: null, update_optname: null, update_time: null }
|
const defaultForm = {
|
||||||
|
ivt_id: null,
|
||||||
|
point_code: null,
|
||||||
|
point_status: null,
|
||||||
|
container_name: null,
|
||||||
|
workorder_id: null,
|
||||||
|
full_vehicle_code: null,
|
||||||
|
pcsn: null,
|
||||||
|
ivt_qty: null,
|
||||||
|
qty_unit_id: null,
|
||||||
|
instorage_time: null,
|
||||||
|
product_area: null,
|
||||||
|
temperature: null,
|
||||||
|
group_name: null,
|
||||||
|
point_location: null,
|
||||||
|
sort_seq: null,
|
||||||
|
is_used: null,
|
||||||
|
remark: null,
|
||||||
|
create_id: null,
|
||||||
|
create_name: null,
|
||||||
|
create_time: null,
|
||||||
|
update_optid: null,
|
||||||
|
update_optname: null,
|
||||||
|
update_time: null
|
||||||
|
}
|
||||||
export default {
|
export default {
|
||||||
name: 'HotPointIvt',
|
name: 'HotPointIvt',
|
||||||
components: { pagination, crudOperation, rrOperation, udOperation },
|
components: { Dialog, pagination, crudOperation, rrOperation, udOperation },
|
||||||
dicts: ['product_area', 'is_used', 'point_location', 'sch_hot_point_status'],
|
dicts: ['product_area', 'is_used', 'point_location', 'sch_hot_point_status'],
|
||||||
mixins: [presenter(), header(), form(defaultForm), crud()],
|
mixins: [presenter(), header(), form(defaultForm), crud()],
|
||||||
cruds() {
|
cruds() {
|
||||||
@@ -231,8 +271,9 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
permission: {
|
permission: {},
|
||||||
},
|
openParam: null,
|
||||||
|
dialogShow: false,
|
||||||
rules: {
|
rules: {
|
||||||
point_code: [
|
point_code: [
|
||||||
{ required: true, message: '点位编码不能为空', trigger: 'blur' }
|
{ required: true, message: '点位编码不能为空', trigger: 'blur' }
|
||||||
@@ -240,7 +281,8 @@ export default {
|
|||||||
point_status: [
|
point_status: [
|
||||||
{ required: true, message: '点位状态不能为空', trigger: 'blur' }
|
{ required: true, message: '点位状态不能为空', trigger: 'blur' }
|
||||||
]
|
]
|
||||||
}}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
|
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
|
||||||
@@ -249,6 +291,15 @@ export default {
|
|||||||
},
|
},
|
||||||
hand(value) {
|
hand(value) {
|
||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
|
},
|
||||||
|
uploadMES() {
|
||||||
|
debugger
|
||||||
|
const _selectData = this.$refs.table.selection
|
||||||
|
if (_selectData.length !== 1) {
|
||||||
|
return this.crud.notify('请选择一个点位进行回传!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||||
|
}
|
||||||
|
this.openParam = _selectData[0]
|
||||||
|
this.dialogShow = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user