| 
					
				 | 
			
			
				@@ -1,5 +1,5 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  <div class="salesDetail-wrap"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <div class="salesDetail-wrap" :style="{paddingBottom:hideFooter?'0px':'60px'}"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <a-spin :spinning="spinning" tip="Loading..."> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <a-page-header :ghost="false" :backIcon="false" class="salesDetail-cont"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <template slot="subTitle" v-if="!bizSn"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -126,7 +126,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </a-card> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </a-spin> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <div class="affix-cont"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <div class="affix-cont" :style="{padding:hideFooter?0:'7px 0 4px'}"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <a-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         size="large" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         style="width: 100px;" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -140,13 +140,13 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         审核 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </a-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <a-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        type="default" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        type="primary" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         :disabled="spinning" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         class="button-info" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         size="large" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         style="width: 100px;margin: 0 20px;" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         id="salesDetail-edit-btn" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        v-if="detailData&&detailData.salesBillSource != 'PURCHASE' && (detailData.billStatus == 'WAIT_SUBMIT' || detailData.billStatus == 'WAIT_AUDIT' || detailData.billStatus == 'AUDIT_REJECT')&&$hasPermissions('B_salesEdit')" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        v-if="detailData&&detailData.salesBillSource == 'SALES' && (detailData.billStatus == 'WAIT_SUBMIT' || detailData.billStatus == 'WAIT_AUDIT' || detailData.billStatus == 'AUDIT_REJECT' || detailData.billStatus == 'HQ_CHANGE')&&$hasPermissions('B_salesEdit')" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         @click="handleEdit()" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         编辑 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -155,7 +155,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         size="large" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         style="width: 100px;margin: 0 20px;" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         :disabled="spinning" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        type="default" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        type="primary" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         class="button-info" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         id="salesDetail-edit-btn" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         v-if="detailData&&detailData.salesBillSource == 'PURCHASE' && (detailData.billStatus == 'WAIT_AUDIT'||detailData.billStatus == 'HQ_CHANGE')&&$hasPermissions('B_salesEdit')" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -168,13 +168,21 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         style="width: 100px;" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         :disabled="spinning" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         type="primary" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        class="button-success" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        class="button-info" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         id="salesDetail-batchAudit-btn" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         v-if="detailData&&detailData.billStatus == 'WAIT_AUDIT'&&$hasPermissions('B_salesAudit')" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         @click="handleAudit('batch')" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         一键审核 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </a-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <a-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        size="large" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        style="width: 100px;" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        type="primary" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        class="button-warning" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        v-if="detailData&&detailData.billStatus == 'WAIT_PUSH'&&$hasPermissions('B_salesDispatch')" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        @click="handleDispatch(detailData)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      >下推</a-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <!-- 打印导出 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <print-modal :openModal="openModal" :itemData="detailData" :nowType="nowType" @ok="handleOk" @close="closePrint" /> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -259,8 +267,12 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return shippingAddrProvinceName + shippingAddrCityName + shippingAddrCountyName + shippingAddr 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    hideFooter (){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      const detailData = this.detailData 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      return detailData&&(detailData.billStatus == 'HQ_CHANGE'|| (detailData.salesBillSource != 'SALES'&&detailData.billStatus == 'AUDIT_REJECT') ||detailData.billStatus == 'FINISH'||detailData.billStatus == 'OUTING_WAREHOUSE') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     pageHeight () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      return window.innerHeight - 330 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      return window.innerHeight - 333 + (this.hideFooter ? 50 : 0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   methods: { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -306,6 +318,10 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    // 下推 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    handleDispatch (row) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.$router.push({ name: 'waitDispatchNew', params: { salesBillSn: row.salesBillSn } }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 打开审核/一键审核弹框 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     handleAudit (isBatch) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       if (isBatch) { // 一键审核 
			 |