| 
					
				 | 
			
			
				@@ -113,6 +113,7 @@ import { salesDetailBySn } from '@/api/sales' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { salesDetailDispatchByOneKey, insertBatchOfWaitDispatch, salesDetailUpdateCancelQty } from '@/api/salesDetail' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { deleteBatch, pushDown, waitDispatchDetailAllList, updateQty } from '@/api/waitDispatchDetail' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { findBySalesBillSn } from '@/api/dispatch' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { keys } from 'core-js/fn/array' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   name: 'WaitDispatch', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   mixins: [commonMixin], 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -136,7 +137,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { title: '序号', dataIndex: 'no', width: '4%', align: 'center' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { title: '产品编码', dataIndex: 'productEntity.code', scopedSlots: { customRender: 'productCode' }, width: '26%', align: 'center' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { title: '产品名称', dataIndex: 'productEntity.name', width: '29%', align: 'center', customRender: function (text) { return text || '--' } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        { title: '出库仓库', dataIndex: 'warehouseName', width: '8%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { title: '出库仓库', dataIndex: 'dispatchBill.warehouseName', width: '8%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { title: '待下推数量', dataIndex: 'surplusQty', width: '10%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { title: '本次下推数', scopedSlots: { customRender: 'salesNums' }, width: '11%', align: 'center' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { title: '单位', dataIndex: 'productEntity.unit', width: '10%', align: 'center', customRender: function (text) { return text || '--' } }, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -175,11 +176,16 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       findBySalesBillSn({ salesBillSn: this.$route.params.salesBillSn }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (res.status == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.totalData = res.data || null 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.productForm.dispatchBillSn = res.data.dispatchBillSn 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          const _this = this 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.$nextTick(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            _this.$refs.table.refresh() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          if (res.data && Object.keys(res.data).length > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.productForm.dispatchBillSn = res.data.dispatchBillSn 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            const _this = this 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$nextTick(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              _this.$refs.table.refresh() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.dataSource = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+             this.$refs.table.clearTable() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.totalData = null 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -372,7 +378,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     pageInit () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.rowSelectionInfo = null 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.$refs.table.clearTable() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // this.$refs.table.clearTable() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$refs.partQuery.clearTable() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.salesBillSn = this.$route.params.salesBillSn 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.getOrderDetail() 
			 |