ysy 1 год назад
Родитель
Сommit
4b6913813e
2 измененных файлов с 38 добавлено и 3 удалено
  1. 23 0
      src/views/produce/components/feeding/index.vue
  2. 15 3
      src/views/produce/index.vue

+ 23 - 0
src/views/produce/components/feeding/index.vue

@@ -0,0 +1,23 @@
+<template>
+  <div>
+    投料
+    {{ workListIds }}
+  </div>
+</template>
+
+<script>
+  export default {
+    name: 'feeding',
+    props: {
+      workListIds: {
+        type: Array,
+        default() {
+          return [];
+        }
+      }
+    },
+    data() {
+      return {};
+    }
+  };
+</script>

+ 15 - 3
src/views/produce/index.vue

@@ -16,6 +16,10 @@
           <div v-if="operationType == 'pick'">
           <div v-if="operationType == 'pick'">
             <pickDetails ref="pickListRef"></pickDetails>
             <pickDetails ref="pickListRef"></pickDetails>
           </div>
           </div>
+
+          <div v-if="operationType == 'feed'">
+            <feeding :workListIds="workListIds"></feeding>
+          </div>
         </div>
         </div>
       </div>
       </div>
       <footBtn @footBtn="footBtn"></footBtn>
       <footBtn @footBtn="footBtn"></footBtn>
@@ -38,6 +42,8 @@
 
 
   import picking from './components/picking/index.vue';
   import picking from './components/picking/index.vue';
   import pickDetails from './components/picking/details.vue';
   import pickDetails from './components/picking/details.vue';
+
+  import feeding from './components/feeding/index.vue';
   export default {
   export default {
     components: {
     components: {
       Search,
       Search,
@@ -46,7 +52,9 @@
       productionResource,
       productionResource,
 
 
       picking,
       picking,
-      pickDetails
+      pickDetails,
+
+      feeding
     },
     },
     data() {
     data() {
       return {
       return {
@@ -77,19 +85,23 @@
           this.$message.warning('请选择工序');
           this.$message.warning('请选择工序');
           return false;
           return false;
         }
         }
-
-        if (t == 'pick') {
+        if (['pick', 'feed'].includes(t)) {
           if (this.workListIds.length == 0) {
           if (this.workListIds.length == 0) {
             this.$message.warning('请选择工单列表');
             this.$message.warning('请选择工单列表');
             return false;
             return false;
           }
           }
+        }
 
 
+        if (t == 'pick') {
           this.$nextTick(() => {
           this.$nextTick(() => {
             this.$refs.pickListRef.getList(this.workListIds);
             this.$refs.pickListRef.getList(this.workListIds);
           });
           });
 
 
           this.pickingShow = true;
           this.pickingShow = true;
         }
         }
+
+        if (t == 'feed') {
+        }
       },
       },
 
 
       pickingClose(val) {
       pickingClose(val) {