diff --git a/src/views/material/purchase/goodsEntry/detail.vue b/src/views/material/purchase/goodsEntry/detail.vue
index d7338bb0..1b419ac9 100644
--- a/src/views/material/purchase/goodsEntry/detail.vue
+++ b/src/views/material/purchase/goodsEntry/detail.vue
@@ -79,13 +79,20 @@
       
       
       
+      
+          
+              
+                编码管理
+                数量管理
+          
+      
       
         
           报告管理
         
       
       
-      
+      
           
               
                 入库
@@ -150,7 +157,30 @@
       
     
 
-
+    
+     
+        
+            
+                入库
+            
+        
+        
+            
+            
+             
+            
+            
+        
+        
+    
   
  
 
@@ -216,6 +246,9 @@ export default {
         // 上传的地址
         url: process.env.VUE_APP_BASE_API + '/file/upload'
       },
+      //编码入库
+      openCode:false,
+      codeTableData:[]
     };
   },
   mounted() {
@@ -297,19 +330,23 @@ export default {
           this.multiple = !selection.length
       },
       //入库
-      pass(row) { 
-        let obj = {
-          // taskId: this.taskId,
-          purchaseId: row.id
-        };
-        console.log(obj)  
-        purchaseWarehouse(obj).then((res)=>{
-            console.log(res)
-            if(res.code==200){
-              this.$modal.msgSuccess('操作成功')
-              this.getList()
-            }
-        })
+      pass(row) {
+        if(row.manageType==0){//编码
+
+          this.openCode=true
+        }else{
+            this.$modal.confirm('是否确认新购入库该物资类型?').then(function() {
+              let obj = {
+                purchaseId: row.id
+              };
+              return purchaseWarehouse(obj)
+            }).then((res) => {
+              if(res.code==200){
+                  this.$modal.msgSuccess('入库成功')
+                  this.getList()
+                }
+            }).catch(() => {});
+        }
       },
       //不合格
       reject(row) {
diff --git a/src/views/material/purchase/goodsEntry/index.vue b/src/views/material/purchase/goodsEntry/index.vue
index 3eb2a3a2..c11c4b01 100644
--- a/src/views/material/purchase/goodsEntry/index.vue
+++ b/src/views/material/purchase/goodsEntry/index.vue
@@ -60,7 +60,7 @@
             
         
         
-            
+