diff --git a/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseAttachInfoController.java b/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseAttachInfoController.java
index b206ca4..b354940 100644
--- a/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseAttachInfoController.java
+++ b/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseAttachInfoController.java
@@ -3,6 +3,8 @@ package com.hw.mes.controller;
import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
+
+import com.hw.common.security.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
@@ -78,6 +80,7 @@ public class MesBaseAttachInfoController extends BaseController
@PostMapping
public AjaxResult add(@RequestBody MesBaseAttachInfo mesBaseAttachInfo)
{
+ mesBaseAttachInfo.setCreateBy(SecurityUtils.getLoginUser().getUsername());
return toAjax(mesBaseAttachInfoService.insertMesBaseAttachInfo(mesBaseAttachInfo));
}
@@ -89,6 +92,7 @@ public class MesBaseAttachInfoController extends BaseController
@PutMapping
public AjaxResult edit(@RequestBody MesBaseAttachInfo mesBaseAttachInfo)
{
+ mesBaseAttachInfo.setUpdateBy(SecurityUtils.getLoginUser().getUsername());
return toAjax(mesBaseAttachInfoService.updateMesBaseAttachInfo(mesBaseAttachInfo));
}
diff --git a/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseBarcodeInfoController.java b/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseBarcodeInfoController.java
index cdf84c2..fa96b2e 100644
--- a/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseBarcodeInfoController.java
+++ b/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseBarcodeInfoController.java
@@ -4,6 +4,7 @@ import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.hw.common.security.annotation.InnerAuth;
+import com.hw.common.security.utils.SecurityUtils;
import com.hw.mes.api.domain.MesBaseBarcodeInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
@@ -79,6 +80,7 @@ public class MesBaseBarcodeInfoController extends BaseController
@PostMapping
public AjaxResult add(@RequestBody MesBaseBarcodeInfo mesBaseBarcodeInfo)
{
+ mesBaseBarcodeInfo.setCreateBy(SecurityUtils.getLoginUser().getUsername());
return toAjax(mesBaseBarcodeInfoService.insertMesBaseBarcodeInfo(mesBaseBarcodeInfo));
}
@@ -90,6 +92,7 @@ public class MesBaseBarcodeInfoController extends BaseController
@PutMapping
public AjaxResult edit(@RequestBody MesBaseBarcodeInfo mesBaseBarcodeInfo)
{
+ mesBaseBarcodeInfo.setUpdateBy(SecurityUtils.getLoginUser().getUsername());
return toAjax(mesBaseBarcodeInfoService.updateMesBaseBarcodeInfo(mesBaseBarcodeInfo));
}
diff --git a/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseMaterialTypeController.java b/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseMaterialTypeController.java
index ab0ea7b..73ff7cf 100644
--- a/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseMaterialTypeController.java
+++ b/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseMaterialTypeController.java
@@ -3,6 +3,8 @@ package com.hw.mes.controller;
import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
+
+import com.hw.common.security.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
@@ -76,6 +78,7 @@ public class MesBaseMaterialTypeController extends BaseController
@PostMapping
public AjaxResult add(@RequestBody MesBaseMaterialType mesBaseMaterialType)
{
+ mesBaseMaterialType.setCreateBy(SecurityUtils.getLoginUser().getUsername());
return toAjax(mesBaseMaterialTypeService.insertMesBaseMaterialType(mesBaseMaterialType));
}
@@ -87,6 +90,7 @@ public class MesBaseMaterialTypeController extends BaseController
@PutMapping
public AjaxResult edit(@RequestBody MesBaseMaterialType mesBaseMaterialType)
{
+ mesBaseMaterialType.setUpdateBy(SecurityUtils.getLoginUser().getUsername());
return toAjax(mesBaseMaterialTypeService.updateMesBaseMaterialType(mesBaseMaterialType));
}
diff --git a/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBasePalletInfoController.java b/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBasePalletInfoController.java
index 3e36f8a..856dc27 100644
--- a/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBasePalletInfoController.java
+++ b/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBasePalletInfoController.java
@@ -3,6 +3,8 @@ package com.hw.mes.controller;
import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
+
+import com.hw.common.security.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
@@ -78,6 +80,7 @@ public class MesBasePalletInfoController extends BaseController
@PostMapping
public AjaxResult add(@RequestBody MesBasePalletInfo mesBasePalletInfo)
{
+ mesBasePalletInfo.setCreateBy(SecurityUtils.getLoginUser().getUsername());
return toAjax(mesBasePalletInfoService.insertMesBasePalletInfo(mesBasePalletInfo));
}
@@ -89,6 +92,7 @@ public class MesBasePalletInfoController extends BaseController
@PutMapping
public AjaxResult edit(@RequestBody MesBasePalletInfo mesBasePalletInfo)
{
+ mesBasePalletInfo.setUpdateBy(SecurityUtils.getLoginUser().getUsername());
return toAjax(mesBasePalletInfoService.updateMesBasePalletInfo(mesBasePalletInfo));
}
diff --git a/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseProcessInfoController.java b/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseProcessInfoController.java
index e564717..cdcd5fc 100644
--- a/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseProcessInfoController.java
+++ b/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseProcessInfoController.java
@@ -3,6 +3,8 @@ package com.hw.mes.controller;
import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
+
+import com.hw.common.security.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
@@ -98,6 +100,7 @@ public class MesBaseProcessInfoController extends BaseController
@PostMapping
public AjaxResult add(@RequestBody MesBaseProcessInfo mesBaseProcessInfo)
{
+ mesBaseProcessInfo.setCreateBy(SecurityUtils.getLoginUser().getUsername());
return toAjax(mesBaseProcessInfoService.insertMesBaseProcessInfo(mesBaseProcessInfo));
}
@@ -109,6 +112,7 @@ public class MesBaseProcessInfoController extends BaseController
@PutMapping
public AjaxResult edit(@RequestBody MesBaseProcessInfo mesBaseProcessInfo)
{
+ mesBaseProcessInfo.setUpdateBy(SecurityUtils.getLoginUser().getUsername());
return toAjax(mesBaseProcessInfoService.updateMesBaseProcessInfo(mesBaseProcessInfo));
}
diff --git a/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseProdlineInfoController.java b/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseProdlineInfoController.java
index a4d479f..b75940d 100644
--- a/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseProdlineInfoController.java
+++ b/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseProdlineInfoController.java
@@ -3,6 +3,8 @@ package com.hw.mes.controller;
import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
+
+import com.hw.common.security.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
@@ -88,6 +90,7 @@ public class MesBaseProdlineInfoController extends BaseController
@PostMapping
public AjaxResult add(@RequestBody MesBaseProdlineInfo mesBaseProdlineInfo)
{
+ mesBaseProdlineInfo.setCreateBy(SecurityUtils.getLoginUser().getUsername());
return toAjax(mesBaseProdlineInfoService.insertMesBaseProdlineInfo(mesBaseProdlineInfo));
}
@@ -99,6 +102,7 @@ public class MesBaseProdlineInfoController extends BaseController
@PutMapping
public AjaxResult edit(@RequestBody MesBaseProdlineInfo mesBaseProdlineInfo)
{
+ mesBaseProdlineInfo.setUpdateBy(SecurityUtils.getLoginUser().getUsername());
return toAjax(mesBaseProdlineInfoService.updateMesBaseProdlineInfo(mesBaseProdlineInfo));
}
diff --git a/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseRouteController.java b/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseRouteController.java
index e72d00a..15542af 100644
--- a/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseRouteController.java
+++ b/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseRouteController.java
@@ -3,6 +3,8 @@ package com.hw.mes.controller;
import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
+
+import com.hw.common.security.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
@@ -88,6 +90,7 @@ public class MesBaseRouteController extends BaseController
@PostMapping
public AjaxResult add(@RequestBody MesBaseRoute mesBaseRoute)
{
+ mesBaseRoute.setCreateBy(SecurityUtils.getLoginUser().getUsername());
return toAjax(mesBaseRouteService.insertMesBaseRoute(mesBaseRoute));
}
@@ -99,6 +102,7 @@ public class MesBaseRouteController extends BaseController
@PutMapping
public AjaxResult edit(@RequestBody MesBaseRoute mesBaseRoute)
{
+ mesBaseRoute.setUpdateBy(SecurityUtils.getLoginUser().getUsername());
return toAjax(mesBaseRouteService.updateMesBaseRoute(mesBaseRoute));
}
diff --git a/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseRouteProcessController.java b/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseRouteProcessController.java
index 30a3298..4e7462a 100644
--- a/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseRouteProcessController.java
+++ b/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseRouteProcessController.java
@@ -3,6 +3,8 @@ package com.hw.mes.controller;
import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
+
+import com.hw.common.security.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
@@ -78,6 +80,7 @@ public class MesBaseRouteProcessController extends BaseController
@PostMapping
public AjaxResult add(@RequestBody MesBaseRouteProcess mesBaseRouteProcess)
{
+ mesBaseRouteProcess.setCreateBy(SecurityUtils.getLoginUser().getUsername());
return toAjax(mesBaseRouteProcessService.insertMesBaseRouteProcess(mesBaseRouteProcess));
}
@@ -89,6 +92,7 @@ public class MesBaseRouteProcessController extends BaseController
@PutMapping
public AjaxResult edit(@RequestBody MesBaseRouteProcess mesBaseRouteProcess)
{
+ mesBaseRouteProcess.setUpdateBy(SecurityUtils.getLoginUser().getUsername());
return toAjax(mesBaseRouteProcessService.updateMesBaseRouteProcess(mesBaseRouteProcess));
}
diff --git a/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseStationInfoController.java b/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseStationInfoController.java
index 952d66f..aafd0c4 100644
--- a/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseStationInfoController.java
+++ b/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseStationInfoController.java
@@ -2,6 +2,8 @@ package com.hw.mes.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
+
+import com.hw.common.security.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
@@ -77,6 +79,7 @@ public class MesBaseStationInfoController extends BaseController
@PostMapping
public AjaxResult add(@RequestBody MesBaseStationInfo mesBaseStationInfo)
{
+ mesBaseStationInfo.setCreateBy(SecurityUtils.getLoginUser().getUsername());
return toAjax(mesBaseStationInfoService.insertMesBaseStationInfo(mesBaseStationInfo));
}
@@ -88,6 +91,7 @@ public class MesBaseStationInfoController extends BaseController
@PutMapping
public AjaxResult edit(@RequestBody MesBaseStationInfo mesBaseStationInfo)
{
+ mesBaseStationInfo.setUpdateBy(SecurityUtils.getLoginUser().getUsername());
return toAjax(mesBaseStationInfoService.updateMesBaseStationInfo(mesBaseStationInfo));
}
diff --git a/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseSupplierInfoController.java b/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseSupplierInfoController.java
index 32e759d..95f884a 100644
--- a/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseSupplierInfoController.java
+++ b/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBaseSupplierInfoController.java
@@ -3,6 +3,8 @@ package com.hw.mes.controller;
import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
+
+import com.hw.common.security.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
@@ -78,6 +80,7 @@ public class MesBaseSupplierInfoController extends BaseController
@PostMapping
public AjaxResult add(@RequestBody MesBaseSupplierInfo mesBaseSupplierInfo)
{
+ mesBaseSupplierInfo.setCreateBy(SecurityUtils.getLoginUser().getUsername());
return toAjax(mesBaseSupplierInfoService.insertMesBaseSupplierInfo(mesBaseSupplierInfo));
}
@@ -89,6 +92,7 @@ public class MesBaseSupplierInfoController extends BaseController
@PutMapping
public AjaxResult edit(@RequestBody MesBaseSupplierInfo mesBaseSupplierInfo)
{
+ mesBaseSupplierInfo.setUpdateBy(SecurityUtils.getLoginUser().getUsername());
return toAjax(mesBaseSupplierInfoService.updateMesBaseSupplierInfo(mesBaseSupplierInfo));
}
diff --git a/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBindBarcodeController.java b/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBindBarcodeController.java
index e86e482..2705a6b 100644
--- a/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBindBarcodeController.java
+++ b/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesBindBarcodeController.java
@@ -3,6 +3,8 @@ package com.hw.mes.controller;
import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
+
+import com.hw.common.security.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
@@ -78,6 +80,7 @@ public class MesBindBarcodeController extends BaseController
@PostMapping
public AjaxResult add(@RequestBody MesBindBarcode mesBindBarcode)
{
+ mesBindBarcode.setCreateBy(SecurityUtils.getLoginUser().getUsername());
return toAjax(mesBindBarcodeService.insertMesBindBarcode(mesBindBarcode));
}
@@ -89,6 +92,7 @@ public class MesBindBarcodeController extends BaseController
@PutMapping
public AjaxResult edit(@RequestBody MesBindBarcode mesBindBarcode)
{
+ mesBindBarcode.setUpdateBy(SecurityUtils.getLoginUser().getUsername());
return toAjax(mesBindBarcodeService.updateMesBindBarcode(mesBindBarcode));
}
diff --git a/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesMaterialBomController.java b/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesMaterialBomController.java
index 1418d6a..1e2b174 100644
--- a/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesMaterialBomController.java
+++ b/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesMaterialBomController.java
@@ -2,6 +2,8 @@ package com.hw.mes.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
+
+import com.hw.common.security.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
@@ -75,6 +77,7 @@ public class MesMaterialBomController extends BaseController
@PostMapping
public AjaxResult add(@RequestBody MesMaterialBom mesMaterialBom)
{
+ mesMaterialBom.setCreateBy(SecurityUtils.getLoginUser().getUsername());
return toAjax(mesMaterialBomService.insertMesMaterialBom(mesMaterialBom));
}
@@ -86,6 +89,7 @@ public class MesMaterialBomController extends BaseController
@PutMapping
public AjaxResult edit(@RequestBody MesMaterialBom mesMaterialBom)
{
+ mesMaterialBom.setUpdateBy(SecurityUtils.getLoginUser().getUsername());
return toAjax(mesMaterialBomService.updateMesMaterialBom(mesMaterialBom));
}
diff --git a/hw-modules/hw-mes/src/main/java/com/hw/mes/domain/MesBaseProcessInfo.java b/hw-modules/hw-mes/src/main/java/com/hw/mes/domain/MesBaseProcessInfo.java
index 905ff0d..3f33c5c 100644
--- a/hw-modules/hw-mes/src/main/java/com/hw/mes/domain/MesBaseProcessInfo.java
+++ b/hw-modules/hw-mes/src/main/java/com/hw/mes/domain/MesBaseProcessInfo.java
@@ -40,9 +40,9 @@ public class MesBaseProcessInfo extends BaseEntity {
private String processType;
/**
- * 单位生产时间
+ * 标准工时(分钟)
*/
- @Excel(name = "单位生产时间")
+ @Excel(name = "标准工时(分钟)")
private Long productionTime;
/**
diff --git a/hw-modules/hw-mes/src/main/java/com/hw/mes/service/impl/MesBaseMaterialTypeServiceImpl.java b/hw-modules/hw-mes/src/main/java/com/hw/mes/service/impl/MesBaseMaterialTypeServiceImpl.java
index 7887d79..9145873 100644
--- a/hw-modules/hw-mes/src/main/java/com/hw/mes/service/impl/MesBaseMaterialTypeServiceImpl.java
+++ b/hw-modules/hw-mes/src/main/java/com/hw/mes/service/impl/MesBaseMaterialTypeServiceImpl.java
@@ -2,12 +2,15 @@ package com.hw.mes.service.impl;
import java.util.List;
import com.hw.common.core.utils.DateUtils;
+import com.hw.common.core.utils.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hw.mes.mapper.MesBaseMaterialTypeMapper;
import com.hw.mes.domain.MesBaseMaterialType;
import com.hw.mes.service.IMesBaseMaterialTypeService;
+import static java.awt.SystemColor.info;
+
/**
* 物料类型信息Service业务层处理
*
@@ -54,6 +57,12 @@ public class MesBaseMaterialTypeServiceImpl implements IMesBaseMaterialTypeServi
public int insertMesBaseMaterialType(MesBaseMaterialType mesBaseMaterialType)
{
mesBaseMaterialType.setCreateTime(DateUtils.getNowDate());
+ MesBaseMaterialType info = mesBaseMaterialTypeMapper.selectMesBaseMaterialTypeByMatrialTypeId(mesBaseMaterialType.getParentId());
+ if (StringUtils.isNull(info)){
+ mesBaseMaterialType.setAncestors(mesBaseMaterialType.getParentId().toString());
+ }else {
+ mesBaseMaterialType.setAncestors(info.getAncestors() + "," + mesBaseMaterialType.getParentId());
+ }
return mesBaseMaterialTypeMapper.insertMesBaseMaterialType(mesBaseMaterialType);
}
@@ -67,6 +76,12 @@ public class MesBaseMaterialTypeServiceImpl implements IMesBaseMaterialTypeServi
public int updateMesBaseMaterialType(MesBaseMaterialType mesBaseMaterialType)
{
mesBaseMaterialType.setUpdateTime(DateUtils.getNowDate());
+ MesBaseMaterialType info = mesBaseMaterialTypeMapper.selectMesBaseMaterialTypeByMatrialTypeId(mesBaseMaterialType.getParentId());
+ if (StringUtils.isNull(info)){
+ mesBaseMaterialType.setAncestors(mesBaseMaterialType.getParentId().toString());
+ }else {
+ mesBaseMaterialType.setAncestors(info.getAncestors() + "," + mesBaseMaterialType.getParentId());
+ }
return mesBaseMaterialTypeMapper.updateMesBaseMaterialType(mesBaseMaterialType);
}
diff --git a/hw-ui/src/views/mes/baseFactoryInfo/index.vue b/hw-ui/src/views/mes/baseFactoryInfo/index.vue
index b22a21d..ea148df 100644
--- a/hw-ui/src/views/mes/baseFactoryInfo/index.vue
+++ b/hw-ui/src/views/mes/baseFactoryInfo/index.vue
@@ -95,6 +95,18 @@
+
+
+
+ {{ parseTime(scope.row.createTime, '{y}-{m}-{d} {h}:{i}:{s}') }}
+
+
+
+
+
+ {{ parseTime(scope.row.updateTime, '{y}-{m}-{d} {h}:{i}:{s}') }}
+
+
item.factoryId)
+ this.idNames = selection.map(item => item.factoryName)
this.single = selection.length !== 1
this.multiple = !selection.length
},
@@ -315,7 +330,8 @@ export default {
/** 删除按钮操作 */
handleDelete(row) {
const factoryIds = row.factoryId || this.ids;
- this.$modal.confirm('是否确认删除工厂信息编号为"' + factoryIds + '"的数据项?').then(function () {
+ const factoryNames = row.factoryName || this.idNames;
+ this.$modal.confirm('是否确认删除工厂名称为"' + factoryNames + '"的数据项?').then(function () {
return delBaseFactoryInfo(factoryIds);
}).then(() => {
this.getList();
diff --git a/hw-ui/src/views/mes/baseMaterialType/index.vue b/hw-ui/src/views/mes/baseMaterialType/index.vue
index 53cc96a..eec1215 100644
--- a/hw-ui/src/views/mes/baseMaterialType/index.vue
+++ b/hw-ui/src/views/mes/baseMaterialType/index.vue
@@ -92,6 +92,18 @@
+
+
+
+ {{ parseTime(scope.row.createTime, '{y}-{m}-{d} {h}:{i}:{s}') }}
+
+
+
+
+
+ {{ parseTime(scope.row.updateTime, '{y}-{m}-{d} {h}:{i}:{s}') }}
+
+
{
this.getList();
diff --git a/hw-ui/src/views/mes/basePalletInfo/index.vue b/hw-ui/src/views/mes/basePalletInfo/index.vue
index 41973a4..14cda73 100644
--- a/hw-ui/src/views/mes/basePalletInfo/index.vue
+++ b/hw-ui/src/views/mes/basePalletInfo/index.vue
@@ -147,6 +147,8 @@ export default {
loading: true,
// 选中数组
ids: [],
+ // 选中数组
+ idNames: [],
// 非单个禁用
single: true,
// 非多个禁用
@@ -233,6 +235,7 @@ export default {
// 多选框选中数据
handleSelectionChange(selection) {
this.ids = selection.map(item => item.palletInfoId)
+ this.idNames = selection.map(item => item.palletInfoCode)
this.single = selection.length !== 1
this.multiple = !selection.length
},
@@ -275,7 +278,8 @@ export default {
/** 删除按钮操作 */
handleDelete(row) {
const palletInfoIds = row.palletInfoId || this.ids;
- this.$modal.confirm('是否确认删除托盘信息编号为"' + palletInfoIds + '"的数据项?').then(function () {
+ const palletInfoCodes = row.palletInfoCode || this.idNames;
+ this.$modal.confirm('是否确认删除RFID编码为"' + palletInfoCodes + '"的数据项?').then(function () {
return delBasePalletInfo(palletInfoIds);
}).then(() => {
this.getList();
diff --git a/hw-ui/src/views/mes/baseProdlineInfo/index.vue b/hw-ui/src/views/mes/baseProdlineInfo/index.vue
index bc9af48..460cfb8 100644
--- a/hw-ui/src/views/mes/baseProdlineInfo/index.vue
+++ b/hw-ui/src/views/mes/baseProdlineInfo/index.vue
@@ -110,6 +110,18 @@
+
+
+
+ {{ parseTime(scope.row.createTime, '{y}-{m}-{d} {h}:{i}:{s}') }}
+
+
+
+
+
+ {{ parseTime(scope.row.updateTime, '{y}-{m}-{d} {h}:{i}:{s}') }}
+
+
item.prodlineId)
+ this.idNames = selection.map(item => item.prodlineName)
this.single = selection.length !== 1
this.multiple = !selection.length
},
@@ -358,7 +373,8 @@ export default {
/** 删除按钮操作 */
handleDelete(row) {
const prodlineIds = row.prodlineId || this.ids;
- this.$modal.confirm('是否确认删除产线信息编号为"' + prodlineIds + '"的数据项?').then(function () {
+ const prodlineNames = row.prodlineName || this.idNames;
+ this.$modal.confirm('是否确认删除产线名称为"' + prodlineNames + '"的数据项?').then(function () {
return delBaseProdlineInfo(prodlineIds);
}).then(() => {
this.getList();
diff --git a/hw-ui/src/views/mes/baseRoute/index.vue b/hw-ui/src/views/mes/baseRoute/index.vue
index c401e35..c13bd8c 100644
--- a/hw-ui/src/views/mes/baseRoute/index.vue
+++ b/hw-ui/src/views/mes/baseRoute/index.vue
@@ -160,7 +160,7 @@
-
+
@@ -205,6 +205,8 @@ export default {
loading: true,
// 选中数组
ids: [],
+ // 选中数组
+ idNames: [],
// 子表选中数据
checkedMesBaseRouteProcess: [],
// 非单个禁用
@@ -314,6 +316,7 @@ export default {
// 多选框选中数据
handleSelectionChange(selection) {
this.ids = selection.map(item => item.routeId)
+ this.idNames = selection.map(item => item.routeName)
this.single = selection.length!==1
this.multiple = !selection.length
},
@@ -374,7 +377,8 @@ export default {
/** 删除按钮操作 */
handleDelete(row) {
const routeIds = row.routeId || this.ids;
- this.$modal.confirm('是否确认删除工艺路线编号为"' + routeIds + '"的数据项?').then(function() {
+ const routeNames = row.routeName || this.idNames;
+ this.$modal.confirm('是否确认删除工艺路线名称为"' + routeNames + '"的数据项?').then(function() {
return delBaseRoute(routeIds);
}).then(() => {
this.getList();
diff --git a/hw-ui/src/views/mes/processInfo/index.vue b/hw-ui/src/views/mes/processInfo/index.vue
index 9759a07..8d9f133 100644
--- a/hw-ui/src/views/mes/processInfo/index.vue
+++ b/hw-ui/src/views/mes/processInfo/index.vue
@@ -81,7 +81,7 @@
-
+
@@ -136,7 +136,7 @@
-
+
@@ -153,8 +153,8 @@
>
-
-
+
+
@@ -305,6 +305,8 @@ export default {
loading: true,
// 选中数组
ids: [],
+ // 选中数组
+ idNames: [],
// 子表选中数据
checkedMesBaseProcessProdline: [],
// 子表选中数据
@@ -359,7 +361,7 @@ export default {
{ key: 1, label: `工序编号`, visible: true },
{ key: 2, label: `工序名称`, visible: true },
{ key: 3, label: `工序类别`, visible: true },
- { key: 4, label: `单位生产时间`, visible: true },
+ { key: 4, label: `标准工时(分钟)`, visible: true },
{ key: 5, label: `激活标识`, visible: false },
{ key: 6, label: `备注`, visible: true },
{ key: 7, label: `创建人`, visible: false },
@@ -438,6 +440,7 @@ export default {
// 多选框选中数据
handleSelectionChange(selection) {
this.ids = selection.map(item => item.processId)
+ this.idNames = selection.map(item => item.processCode)
this.single = selection.length!==1
this.multiple = !selection.length
},
@@ -518,7 +521,8 @@ export default {
/** 删除按钮操作 */
handleDelete(row) {
const processIds = row.processId || this.ids;
- this.$modal.confirm('是否确认删除工序信息编号为"' + processIds + '"的数据项?').then(function() {
+ const processCodes = row.processCode || this.idNames;
+ this.$modal.confirm('是否确认删除工序编号为"' + processCodes + '"的数据项?').then(function() {
return delProcessInfo(processIds);
}).then(() => {
this.getList();
@@ -537,7 +541,6 @@ export default {
handleAddMesBaseProcessProdline() {
let obj = {};
this.mesBaseProcessProdlineList.push(obj);
- console.log(this.mesBaseProcessProdlineList)
},
/** 工序关联产线删除按钮操作 */
handleDeleteMesBaseProcessProdline() {
diff --git a/hw-ui/src/views/mes/supplierInfo/index.vue b/hw-ui/src/views/mes/supplierInfo/index.vue
index 83160ce..75376c6 100644
--- a/hw-ui/src/views/mes/supplierInfo/index.vue
+++ b/hw-ui/src/views/mes/supplierInfo/index.vue
@@ -208,6 +208,8 @@ export default {
loading: true,
// 选中数组
ids: [],
+ // 选中数组
+ idNames: [],
// 非单个禁用
single: true,
// 非多个禁用
@@ -314,6 +316,7 @@ export default {
// 多选框选中数据
handleSelectionChange(selection) {
this.ids = selection.map(item => item.supplierId)
+ this.idNames = selection.map(item => item.supplierCode)
this.single = selection.length!==1
this.multiple = !selection.length
},
@@ -356,7 +359,8 @@ export default {
/** 删除按钮操作 */
handleDelete(row) {
const supplierIds = row.supplierId || this.ids;
- this.$modal.confirm('是否确认删除物料供应商信息编号为"' + supplierIds + '"的数据项?').then(function() {
+ const supplierCodes = row.supplierCode || this.idNames;
+ this.$modal.confirm('是否确认删除物料供应商编号为"' + supplierCodes + '"的数据项?').then(function() {
return delSupplierInfo(supplierIds);
}).then(() => {
this.getList();