ysy 1 yıl önce
ebeveyn
işleme
59b40d86da

+ 7 - 0
src/views/produce/components/picking/details.vue

@@ -12,7 +12,10 @@
       @refresh="refresh"
     >
       <template v-slot:toolbar>
+      <div class="rx-sc">
         <div class="c_title">领料记录 </div>
+        <el-button type="primary" size="mini" style="margin: 0 5px" @click="handleAdd">新增</el-button>
+      </div>
       </template>
 
       <template v-slot:action="{ row }">
@@ -123,6 +126,10 @@
 
       rowClick(row) {},
 
+      handleAdd() {
+        this.$emit('pickAdd', 'pick');
+      },
+
       refresh() {
         this.getList(this.workListIds);
       },

+ 6 - 2
src/views/produce/index.vue

@@ -34,7 +34,7 @@
         <template v-slot:content>
           <div class="right_main">
             <div v-if="operationType == 'pick'">
-              <pickDetails ref="pickListRef"></pickDetails>
+              <pickDetails ref="pickListRef" @pickAdd="pickAdd"></pickDetails>
             </div>
 
             <div v-if="operationType == 'feed'">
@@ -149,13 +149,17 @@
             this.$refs.pickListRef.getList(this.workListIds);
           });
 
-          this.pickingShow = true;
+        
         }
 
         if (t == 'feed') {
         }
       },
 
+      pickAdd() {
+  this.pickingShow = true;
+      },
+
       pickingClose(val) {
         if (val) {
           this.$nextTick(() => {