diff --git a/ant-design-vue-jeecg/src/views/productplan/ProductplanManage.vue b/ant-design-vue-jeecg/src/views/productplan/ProductplanManage.vue
index 86aaa60e..0fc14f06 100644
--- a/ant-design-vue-jeecg/src/views/productplan/ProductplanManage.vue
+++ b/ant-design-vue-jeecg/src/views/productplan/ProductplanManage.vue
@@ -50,6 +50,13 @@
导出
返回
+
+ 面料
+
+ 辅料
+
+ 详情
+
@@ -102,10 +109,10 @@ export default {
type: JVXETypes.hidden
},
{
- title: '设备列表',
+ title: '设备名称',
key: 'machineNames',
type: JVXETypes.selectMultiple,
- width: '200px',
+ width: '180px',
options: [],
placeholder: '请选择${title}',
},
@@ -115,10 +122,10 @@ export default {
type: JVXETypes.hidden,
},
{
- title: '工具列表',
+ title: '工具名称',
key: 'toolsNames',
type: JVXETypes.selectMultiple,
- width: '200px',
+ width: '180px',
options: [],
placeholder: '请选择${title}',
},
@@ -143,15 +150,23 @@ export default {
width: '180px',
popupCode: 'zy_process',
field: 'id,process_code,process_name,process_describe',
- // orgFields: 'id,process_code,process_name,process_describe',
- // destFields: 'proProcessName,process_code,process_name,process_describe',
orgFields: 'process_name,id',
destFields: 'postProcessName,postProcess',
},
{key: 'inputProduct', title: '输入产品', width: '150', type: JVXETypes.input},
{key: 'semiProduct', title: '成品/半成品', width: '150', type: JVXETypes.input},
- {key: 'totalMachine', title: '机器时长', width: '150', type: JVXETypes.normal},
- {key: 'totalMaunal', title: '人工时长', width: '150', type: JVXETypes.normal},
+ // {key: 'semiProduct', title: '面料', width: '150', type: JVXETypes.input},
+ {key: 'totalMachine', title: '机器时长', width: '80', type: JVXETypes.normal},
+ {key: 'totalMaunal', title: '人工时长', width: '80', type: JVXETypes.normal},
+ {
+ title: '管理',
+ key: 'action',
+ type: JVXETypes.slot,
+ fixed: 'right',
+ minWidth: '150px',
+ align: 'center',
+ slotName: 'action',
+ },
],
url: {
list: "/org.jeecg.modules.productplan/zyPlanProcess/getProcessDatalist",
@@ -166,7 +181,6 @@ export default {
dictOptions: {},
planInfo: {},
superFieldList: [],
- // stationId: [],
stationIdList: [],
toolsList: [],
machineList: [],
@@ -178,12 +192,30 @@ export default {
this.getPlanInfo(this.planId);
},
methods: {
+ jump2MianLiao(key,props){
+ console.log("mianLiao() ----key:",key)
+ console.log("mianLiao() ----props:",props)
+ this.$router.push({
+ path: '/productplan/ZyPlanProcessFabricList',
+ // query: { // 路由携带参数
+ // 'planProcessId': record.id,
+ // },
+ });
+ },
+
+ jump2FuLiao(key,props){
+ console.log("fuLiao() ----key:",key)
+ console.log("fuLiao() ----props:",props)
+ },
+ detail(props){
+ alert("稍等,正在开发中。。。")
+ },
getPlanInfo(planId) {
// debugger;
getAction(this.url.getPlanInfo, {"planId": planId}).then((res) => {
if (res.success) {
this.planInfo = res.result.records || res.result;
- console.log("getPlanInfo------------:" + JSON.stringify(this.planInfo));
+ // console.log("getPlanInfo------------:" + JSON.stringify(this.planInfo));
} else {
// this.stationIdCode = "station,station_name,id,depart_id in (select workshop_id from zy_product_plan where id='" + this.planId + "')";
this.$message.warning(res.message)
diff --git a/ant-design-vue-jeecg/src/views/productplan/ZyPlanProcessList.vue b/ant-design-vue-jeecg/src/views/productplan/ZyPlanProcessList.vue
index fc351c8c..7721128e 100644
--- a/ant-design-vue-jeecg/src/views/productplan/ZyPlanProcessList.vue
+++ b/ant-design-vue-jeecg/src/views/productplan/ZyPlanProcessList.vue
@@ -18,19 +18,8 @@
-
-
-
-
-
-
-
-
-
-
-
-
+
+
diff --git a/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/entity/ZyProcessAccessories.java b/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/entity/ZyProcessAccessories.java
index a3f85393..663404c8 100644
--- a/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/entity/ZyProcessAccessories.java
+++ b/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/entity/ZyProcessAccessories.java
@@ -65,7 +65,7 @@ public class ZyProcessAccessories implements Serializable {
@ApiModelProperty(value = "面料表id")
private String accessoriesId;
- private String processCode;
- private String nums;
+// private String processCode;
+// private String nums;
}
diff --git a/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/entity/ZyProcessFabric.java b/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/entity/ZyProcessFabric.java
index f75cb90f..77f688a2 100644
--- a/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/entity/ZyProcessFabric.java
+++ b/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/entity/ZyProcessFabric.java
@@ -50,7 +50,7 @@ public class ZyProcessFabric implements Serializable {
@ApiModelProperty(value = "创建时间")
private Date createTime;
- private String processCode;
- private String fabricNumber;
+// private String processCode;
+// private String fabricNumber;
}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/productplan/service/impl/ZyPlanProcessServiceImpl.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/productplan/service/impl/ZyPlanProcessServiceImpl.java
index 9999390a..9344b05c 100644
--- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/productplan/service/impl/ZyPlanProcessServiceImpl.java
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/productplan/service/impl/ZyPlanProcessServiceImpl.java
@@ -57,6 +57,7 @@ import org.jeecg.modules.zyclothsstyle.entity.ZyClothsStyle;
import org.jeecg.modules.zyclothsstyle.service.IZyClothsStyleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.ObjectUtils;
import java.util.*;
@@ -167,6 +168,7 @@ public class ZyPlanProcessServiceImpl extends ServiceImpl syncProductBaseProcess(ZyPlanProcess zyPlanProcess) {
int count = this.count(new LambdaQueryWrapper().eq(ZyPlanProcess::getPlanId, zyPlanProcess.getPlanId()));
//生产计划工序表没有对应工序时,说明没有制定过该产品的生产工序计划,先把该产品对应的基本工序数据插入到生产计划工序表
@@ -191,7 +193,7 @@ public class ZyPlanProcessServiceImpl extends ServiceImpl {
ZyPlanProcess en = new ZyPlanProcess();
en.setProcessId(o.getProcessId());
- ZyProcess zyProcess = iZyProcessService.getById(o.getId());
+ ZyProcess zyProcess = iZyProcessService.getById(o.getProcessId());
en.setProcessName(zyProcess.getProcessName());
en.setPlanId(zyPlanProcess.getPlanId());
en.setTotalMachine(zyProcess.getTotalMachine());
@@ -209,6 +211,37 @@ public class ZyPlanProcessServiceImpl extends ServiceImpl updateList = new LinkedList<>();
+ for (int i = 0; i < planProcessList.size(); i++) {
+ //第一个没有前导工序
+ if (i == 0) {
+ ZyPlanProcess process1 = planProcessList.get(i);
+ ZyPlanProcess process2 = planProcessList.get(i + 1);
+ process1.setPostProcess(process2.getProcessId());
+ process1.setPostProcessName(process2.getProcessName());
+ updateList.add(process1);
+ } else if (i > 0 && i < planProcessList.size() - 1) {
+ ZyPlanProcess process = planProcessList.get(i - 1);
+ ZyPlanProcess process1 = planProcessList.get(i);
+ ZyPlanProcess process2 = planProcessList.get(i + 1);
+ process1.setProProcess(process.getProcessId());
+ process1.setProProcessName(process.getProcessName());
+ process1.setPostProcess(process2.getProcessId());
+ process1.setPostProcessName(process2.getProcessName());
+ updateList.add(process1);
+ }
+// 最后一个没有后导工序
+ else if (i == planProcessList.size() - 1) {
+ ZyPlanProcess process = planProcessList.get(i - 1);
+ ZyPlanProcess process1 = planProcessList.get(i);
+ process1.setProProcess(process.getProcessId());
+ process1.setProProcessName(process.getProcessName());
+ updateList.add(process1);
+ }
+ }
+ this.saveOrUpdateBatch(updateList);
}
return null;
}
@@ -224,7 +257,7 @@ public class ZyPlanProcessServiceImpl extends ServiceImpl