| 
					
				 | 
			
			
				@@ -181,19 +181,22 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </s-table> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <!-- 选择客户弹框 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <choose-custom-modal :show="openModal" @ok="chooseCustomOk" @cancel="openModal=false"></choose-custom-modal> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <!-- 审核 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <auditModal :openModal="visibleAudit" @close="visibleAudit=false" @ok="auditOrder('OUTING_WAREHOUSE')" @fail="auditOrder('AUDIT_REJECT')" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </a-card> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <script> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import rangeDate from '@/views/common/rangeDate.vue' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { STable, VSelect } from '@/components' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import auditModal from '@/views/common/auditModal.vue' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import chooseCustomModal from './chooseCustomModal.vue' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import custList from '@/views/common/custList.vue' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { salesList, salesDel, salesWriteAudit, salesCount } from '@/api/sales' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { findBySalesBillSn } from '@/api/dispatch' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   name: 'TableList', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  components: { STable, VSelect, chooseCustomModal, custList, rangeDate }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  components: { STable, VSelect, chooseCustomModal, custList, rangeDate, auditModal }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   data () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     return { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       tableHeight: 0, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -269,7 +272,9 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.disabled = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           return data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      visibleAudit: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      auditInfo: null 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   methods: { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -299,36 +304,23 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //  审核 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     handleEexamine (row) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      const _this = this 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.$confirm({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        title: '提示', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        content: '请点击下方按钮确认操作?', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        centered: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        closable: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        okText: '审核通过', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        cancelText: '审核不通过', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        onOk () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          _this.auditOrder(row.salesBillSn, 'OUTING_WAREHOUSE') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        onCancel (e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          if (!e.triggerCancel) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            _this.auditOrder(row.salesBillSn, 'AUDIT_REJECT') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          _this.$destroyAll() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.auditInfo = row 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.visibleAudit = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    auditOrder (salesBillSn, billStatus) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    auditOrder (billStatus) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       salesWriteAudit({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        salesBillSn, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        billStatus 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        salesBillSn: this.auditInfo.salesBillSn, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        billStatus: billStatus 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (res.status == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.visibleAudit = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.$message.success(res.message) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.$refs.table.refresh() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           if (billStatus == 'OUTING_WAREHOUSE') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.handleDispatch({ salesBillSn }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.handleDispatch({ salesBillSn: this.auditInfo.salesBillSn }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.visibleAudit = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 |