| 
					
				 | 
			
			
				@@ -6,7 +6,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <!-- 自定义的二级文字标题 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <template slot="subTitle"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <a id="dealerAccountDetail-back-btn" href="javascript:;" @click="handleBack"><a-icon type="left" /> 返回列表</a> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <span class="subTitle-word text-overflow" style="margin:0 15px;">轮胎补贴金额({{ $route.params.name }}):<span style="vertical-align: middle;">¥</span><span style="font-size:20px;vertical-align: text-bottom;">{{ toThousands($route.params.num) }}</span></span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <span v-if="totalData" class="subTitle-word text-overflow" style="margin:0 15px;vertical-align: middle;"><span>轮胎补贴金额({{ totalData.dealerEntity?totalData.dealerEntity.dealerName?totalData.dealerEntity.dealerName:'--':'--' }}):¥</span><span style="font-size:20px;" >{{ (totalData.subsidyTire||totalData.subsidyTire==0)?toThousands(totalData.subsidyTire):'--' }}</span></span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <span v-else>--</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <a-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               type="danger" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               v-if="$hasPermissions('B_checkAccount')" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -92,7 +93,14 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </a-card>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </a-spin> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <!-- 调账 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <check-account-modal v-drag ref="checkAccountModal" :openModal="openCheckAccountModal" @ok="$refs.table.refresh(true)" @close="openCheckAccountModal = false" />
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <check-account-modal 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      v-drag 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      ref="checkAccountModal" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      :dealerName="totalData&&totalData.dealerEntity&&totalData.dealerEntity.dealerName?totalData.dealerEntity.dealerName:''" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      :dealerNum="totalData&&totalData.subsidyTire?totalData.subsidyTire:''" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      :openModal="openCheckAccountModal" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      @ok="$refs.table.refresh(true)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      @close="openCheckAccountModal = false" />
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <!-- 调账记录 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <check-record-modal v-drag :openModal="openCheckRecordModal" @ok="$refs.table.refresh(true)" @close="openCheckRecordModal = false" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </div>
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -107,7 +115,7 @@ import checkAccountModal from './checkAccountModal.vue' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import checkRecordModal from './checkRecordModal.vue' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { hdExportExcel } from '@/libs/exportExcel' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 // 接口 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import { dealerAccountFlowList, dealerAccountFlowExport } from '@/api/dealerAccount'
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { dealerAccountFlowList, dealerAccountFlowExport, queryDealerAccount } from '@/api/dealerAccount'
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export default {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   name: 'DealerAccountDetail',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   mixins: [commonMixin],
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -137,12 +145,14 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { title: '金额(¥)', dataIndex: 'flowAmount', width: '16%', align: 'center', customRender: text => { return (text || text == 0) ? _this.toThousands(text) : '--' } },
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { title: '备注', dataIndex: 'remark', width: '16%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true }
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       ], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      totalData: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       loadData: parameter => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.disabled = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.spinning = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.queryParam.dealerSn = this.$route.params.sn 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        const params = Object.assign(parameter, this.queryParam) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // 获取列表数据  有分页 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return dealerAccountFlowList(Object.assign(parameter, this.queryParam)).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return dealerAccountFlowList(params).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           let data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           if (res.status == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             data = res.data 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -151,6 +161,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             for (var i = 0; i < data.list.length; i++) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               data.list[i].no = no + i + 1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.getCount() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.disabled = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.spinning = false 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -170,6 +181,15 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.queryParam.beginDate = date[0] || '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.queryParam.endDate = date[1] || '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    getCount () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      queryDealerAccount({ accountSn: this.$route.params.aSn }).then(res => {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (res.status == 200 && res.data) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.totalData = res.data
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } else {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.totalData = null
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 重置 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     resetSearchForm () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.queryParam = { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -218,18 +238,15 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   mounted () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if (!this.$store.state.app.isNewTab) { // 页签刷新时调用 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.pageInit() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.resetSearchForm() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   activated () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 如果是新页签打开,则重置当前页面 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if (this.$store.state.app.isNewTab) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.pageInit() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.resetSearchForm() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 仅刷新列表,不重置页面 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if (this.$store.state.app.updateList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.$refs.table.refresh() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.pageInit() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 |