Browse Source

添加批量报工

qinhb 10 months ago
parent
commit
8c8d8d26d7

+ 8 - 0
src/views/base/craftManagement/process/index.vue

@@ -454,6 +454,14 @@ option.value = Object.assign(option.value, {
       // slot:true, // 自定义列
       // slot:true, // 自定义列
     },
     },
     {
     {
+      label: "批量报工",
+      prop: "batchReport",
+      span: 24,
+      type: "switch",
+      dicData: switchOp,
+      value: 0,
+    },
+    {
       label: "工序描述",
       label: "工序描述",
       prop: "operationDesc",
       prop: "operationDesc",
       hide: true,
       hide: true,

+ 8 - 0
src/views/base/craftManagement/route/bindConfig.ts

@@ -175,6 +175,14 @@ export const formOption = {
       value: 0,
       value: 0,
     },
     },
     {
     {
+      label: "批量报工",
+      prop: "batchReport",
+      span: 24,
+      type: "switch",
+      dicData: switchOp,
+      value: 0,
+    },
+    {
       label: "工序描述",
       label: "工序描述",
       prop: "operationDesc",
       prop: "operationDesc",
       span: 24,
       span: 24,

+ 0 - 1
src/views/base/craftManagement/route/bindProcess.vue

@@ -178,7 +178,6 @@ const saveFlow = async () => {
   for (let i = 0; i < list2.value.length; i++) {
   for (let i = 0; i < list2.value.length; i++) {
     list2.value[i].operationSort = i;
     list2.value[i].operationSort = i;
     list2.value[i].operationId = list2.value[i]?.operationVO?.id;
     list2.value[i].operationId = list2.value[i]?.operationVO?.id;
-    list2.value[i].operation = list2.value[i]?.operationVO; //后端入参和返回不一样,在这里处理一下。
     if (i === list2.value.length - 1) {
     if (i === list2.value.length - 1) {
       list2.value[i].nextOperationId = null;
       list2.value[i].nextOperationId = null;
     } else {
     } else {