| 
					
				 | 
			
			
				@@ -60,6 +60,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <script> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { commonMixin } from '@/utils/mixin' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { STable, VSelect } from '@/components' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { shelfControlList } from '@/api/shelf' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { shelfRecallSave } from '@/api/shelfRecall' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   name: 'ShelfMonitoringAddModal', 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -139,6 +140,21 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.listData.map((item, index) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         item.no = index + 1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    getList () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      const params = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.nowData.list.map((item, index) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        params.push(item.shelfProductSn) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      shelfControlList({ shelfProductSnList: params }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (res.status == 200 && res.data) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          res.data.map((item, index) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            item.no = index + 1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            item.confirmQty = item.qty 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.listData = res.data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   watch: { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -153,12 +169,10 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.listData = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (this.nowData && this.nowData.list) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.nowData.list.map((item, index) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            item.no = index + 1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            item.confirmQty = item.qty 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.getList() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.listData = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.listData = JSON.parse(JSON.stringify(this.nowData && this.nowData.list || [])) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 |