| 
					
				 | 
			
			
				@@ -1,13 +1,13 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  <div class="expenseReimbursementAddwrap"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <div class="financialCollectionAddwrap"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <a-spin :spinning="spinning" tip="Loading..."> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <a-page-header :ghost="false" :backIcon="false" class="expenseReimbursementAddcont" > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <a-page-header :ghost="false" :backIcon="false" class="financialCollectionAddcont" > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <!-- 自定义的二级文字标题 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <template slot="subTitle"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <a id="purchaseOrderEdit-back-btn" href="javascript:;" @click="handleBack(0)"><a-icon type="left" /> 返回列表</a> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </a-page-header> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <a-collapse :activeKey="['1']" class="expenseReimbursementAddcont" v-if="detailData"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <a-collapse :activeKey="['1']" class="financialCollectionAddcont" v-if="detailData"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <a-collapse-panel key="1" header="基础信息"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <div slot="extra" style="padding: 0 20px; color: #00aaff;" @click.stop="handleEditBase" > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <a-icon type="edit" /> 编辑基础信息 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -15,12 +15,12 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <a-descriptions :column="{ xs: 2, sm: 3, md: 3}"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <a-descriptions-item label="创建时间">{{ detailData&&detailData.createDate || '--' }}</a-descriptions-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <a-descriptions-item label="申请人">{{ detailData&&detailData.applyPersonName || '--' }}</a-descriptions-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <a-descriptions-item label="审核时间">{{ detailData&&detailData.finishDate || '--' }}</a-descriptions-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <a-descriptions-item span="2" label="收款事由">{{ detailData&&detailData.expenseAccountNo || '--' }}</a-descriptions-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <a-descriptions-item label="状态">{{ detailData&&detailData.stateDictValue || '--' }}</a-descriptions-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <a-descriptions-item label="备注" :span="3">{{ detailData&&detailData.content.join(',')||'' }}</a-descriptions-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <a-descriptions-item label="审核时间">{{ detailData&&detailData.auditDate || '--' }}</a-descriptions-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <a-descriptions-item span="2" label="收款事由">{{ detailData&&detailData.bookReason || '--' }}</a-descriptions-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <a-descriptions-item label="状态">{{ detailData&&detailData.statusDictValue || '--' }}</a-descriptions-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <a-descriptions-item label="备注" :span="3">{{ detailData&&detailData.remarks||'--' }}</a-descriptions-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <a-descriptions-item label="附件" :span="3"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              <a target="_blank" style="color: #00aaff;text-decoration: underline;margin-right: 15px;" :href="item.filePath" v-for="item in detailData.expenseAccountFilesList" :key="item.id"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <a target="_blank" style="color: #00aaff;text-decoration: underline;margin-right: 15px;" :href="item.filePath" v-for="item in detailData.attachmentList" :key="item.id"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 {{ item.fileName }} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               </a> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </a-descriptions-item> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -28,18 +28,23 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </a-collapse-panel> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </a-collapse> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <!-- 财务明细 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <a-card :bordered="false" size="small" class="expenseReimbursementAddcont" v-if="$route.params.sn"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <a-card :bordered="false" size="small" class="financialCollectionAddcont" v-if="$route.params.sn"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <div slot="title"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <div style="display: flex;justify-content: space-between;align-items: center;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <div>财务明细</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              <a-button size="small" class="button-error" type="primary" @click="newExpenseDetail">新增收款明细</a-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <a-button size="small" class="button-error" type="primary" @click="handleEdit">新增收款明细</a-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <a-alert type="info" style="margin-bottom:10px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <a-alert type="info" style="margin-bottom:10px" v-if="detailData"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <div slot="message"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            共 2 条,订单金额合计¥56253.60,收款金额合计 ¥56253.60,使用授信合计¥0.00,授信还款合计¥0.00,余款抵扣合计¥0.00 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            共 {{ total }} 条, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            订单金额合计¥{{ detailData.orderTotalAmount }}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            收款金额合计¥{{ detailData.receiptTotalAmount }}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            使用授信合计¥{{ detailData.useTotalAmount }}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            授信还款合计¥{{ detailData.payTotalAmount }}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            余款抵扣合计¥{{ detailData.balanceTotalAmount }} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </a-alert> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <!-- 列表 --> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -53,6 +58,24 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           :defaultLoadData="false" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           :showPagination="false" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           bordered> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <template slot="expandedRowRender" slot-scope="record" v-if="record.detailItemUseList.length || record.detailItemPayList.length"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <div style="display:flex;justify-content: space-around;padding:10px;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <a-table 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                style="width:45%;background:#fff;" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                :bordered="false" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                :pagination="false" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                :columns="useCol" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                :data-source="record.detailItemUseList"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              </a-table> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <a-table 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                :bordered="false" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                style="width:45%;background:#fff;" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                :pagination="false" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                :columns="payCol" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                :data-source="record.detailItemPayList"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              </a-table> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <template slot="action" slot-scope="text,record"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <a-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               size="small" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -75,13 +98,28 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         type="primary" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         class="button-primary" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         :disabled="spinning" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        id="expenseReimbursementAddsubmit-btn" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        id="financialCollectionAddsubmit-btn" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         size="large" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         @click="beforeSubmit" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         style="padding: 0 60px;">提交</a-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <!-- 基础信息 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <baseModal :show="openBaseModal" @cancel="openBaseModal=false"></baseModal> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <baseModal 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      ref="baseModal" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      @refashData="refashData" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      :show="openBaseModal" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      :itemSn="$route.params.sn" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      @cancel="openBaseModal=false"></baseModal> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <!-- 明细弹框 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <fcDetailModal 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      ref="fcDetailModal" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      @refashData="fcDetailOk" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      :show="openFcDetailModal" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      :bookSn="$route.params.sn" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      :bookNo="detailData?detailData.bookNo:''" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      @cancel="openFcDetailModal=false"></fcDetailModal> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <!-- 选择审核人员 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <chooseDepartUserModal :openModal="openDepartUserModal" @close="openDepartUserModal=false" @submit="handleSubmit"></chooseDepartUserModal> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -89,31 +127,33 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { commonMixin } from '@/utils/mixin' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { VSelect, STable } from '@/components' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import baseModal from './baseModal.vue' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import { expenseAccountDetail, expenseAcctDetailDelete, expenseAcctDetailFindList, expenseAccountSubmit, expenseInsertImport } from '@/api/expenseManagement.js' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import fcDetailModal from './fcDetailModal.vue' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import chooseDepartUserModal from '../../expenseManagement/expenseReimbursement/chooseDepartUserModal.vue' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { financeBookFindBySn, financeBookDetailDelete, financeBookDetailQueryList, financeBookSubmit } from '@/api/financeBook.js' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   name: 'FinancialCollectionEdit', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   mixins: [commonMixin], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  components: { VSelect, STable, baseModal }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  components: { VSelect, STable, baseModal, fcDetailModal, chooseDepartUserModal }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   data () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     return { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       spinning: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       detailData: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       openBaseModal: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      openGuideModal: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       openDepartUserModal: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      openEpenseDetailModal: false, // 财务明细弹框 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      expenseAccountDetailSn: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      openProductInfoModal: false, // 产品信息弹框 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      openFcDetailModal: false, // 财务明细弹框 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       total: 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       loadData: parameter => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        const params = Object.assign(parameter, { expenseAccountSn: this.$route.params.sn }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return expenseAcctDetailFindList(params).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        const params = Object.assign(parameter, { bookSn: this.$route.params.sn }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return financeBookDetailQueryList(params).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           let data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           if (res.status == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             data = res.data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             const no = 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             for (var i = 0; i < data.length; i++) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               data[i].no = no + i + 1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              // 计算使用授信和授信还款的合计 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              data[i].useTotalAmount = this.getTotal(data[i].detailItemUseList) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              data[i].payTotalAmount = this.getTotal(data[i].detailItemPayList) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.total = data.length 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.disabled = false 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -124,27 +164,43 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       columns: [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { title: '序号', dataIndex: 'no', width: '5%', align: 'center' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        { title: '日期', dataIndex: 'accountTypeDictValue', align: 'center', width: '8%', customRender: function (text) { return text || '--' } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        { title: '客户名称', dataIndex: 'accountName', align: 'center', width: '8%', customRender: function (text) { return text || '--' } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        { title: '客户编码', dataIndex: 'subareaNames', align: 'center', width: '8%', customRender: function (text) { return text || '--' } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        { title: '营业执照名称', dataIndex: 'provinceName', align: 'center', width: '8%', customRender: function (text) { return text || '--' } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        { title: '订单金额', dataIndex: 'cityName', align: 'center', width: '8%', customRender: function (text) { return (text == 0 || text) ? text : '--' } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        { title: '收款金额', dataIndex: 'expense', align: 'center', width: '8%', customRender: function (text) { return (text == 0 || text) ? text : '--' } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        { title: '使用授信', dataIndex: 'expense', align: 'center', width: '8%', customRender: function (text) { return (text == 0 || text) ? text : '--' } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        { title: '授信还款', dataIndex: 'expense', align: 'center', width: '8%', customRender: function (text) { return (text == 0 || text) ? text : '--' } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        { title: '跨月打款', dataIndex: 'expense', align: 'center', width: '8%', customRender: function (text) { return (text == 0 || text) ? text : '--' } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        { title: '户名', dataIndex: 'subareaNames', align: 'center', width: '8%', customRender: function (text) { return text || '--' } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        { title: '汇入银行', dataIndex: 'provinceName', align: 'center', width: '8%', customRender: function (text) { return text || '--' } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        { title: '足额打款', dataIndex: 'expense', align: 'center', width: '8%', customRender: function (text) { return (text == 0 || text) ? text : '--' } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        { title: '备注', dataIndex: 'remarks', align: 'center', width: '8%', customRender: function (text) { return text || '--' } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        { title: '操作', scopedSlots: { customRender: 'action' }, width: '100px', align: 'center' } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { title: '收款日期', dataIndex: 'receiptDate', align: 'center', width: '8%', customRender: function (text) { return text || '--' } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { title: '客户名称', dataIndex: 'dealerEntity.dealerName', align: 'center', width: '8%', customRender: function (text) { return text || '--' } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { title: '客户编码', dataIndex: 'dealerEntity.dealerCode', align: 'center', width: '8%', customRender: function (text) { return text || '--' } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { title: '营业执照名称', dataIndex: 'dealerEntity.licenseName', align: 'center', width: '8%', customRender: function (text) { return text || '--' } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { title: '订单金额', dataIndex: 'orderAmount', align: 'center', width: '5%', customRender: function (text) { return (text == 0 || text) ? text : '--' } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { title: '收款金额', dataIndex: 'receiptAmount', align: 'center', width: '5%', customRender: function (text) { return (text == 0 || text) ? text : '--' } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { title: '使用授信', dataIndex: 'useTotalAmount', align: 'center', width: '5%', customRender: function (text) { return (text == 0 || text) ? text : '--' } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { title: '授信还款', dataIndex: 'payTotalAmount', align: 'center', width: '5%', customRender: function (text) { return (text == 0 || text) ? text : '--' } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { title: '跨月打款', dataIndex: 'nextMonthAmount', align: 'center', width: '5%', customRender: function (text) { return (text == 0 || text) ? text : '--' } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { title: '户名', dataIndex: 'bankAccount', align: 'center', width: '5%', customRender: function (text) { return text || '--' } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { title: '汇入银行', dataIndex: 'bankName', align: 'center', width: '5%', customRender: function (text) { return text || '--' } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { title: '足额打款', dataIndex: 'fullPaymentFlagDictValue', align: 'center', width: '5%', customRender: function (text) { return (text == 0 || text) ? text : '--' } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { title: '备注', dataIndex: 'remarks', align: 'center', width: '13%', customRender: function (text) { return text || '--' } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { title: '操作', scopedSlots: { customRender: 'action' }, width: '10%', align: 'center' } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      ], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      useCol: [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { title: '使用授信项目', dataIndex: 'itemName', width: '50%', align: 'center' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { title: '使用授信金额', dataIndex: 'itemAmount', width: '50%', align: 'center' } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      ], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      payCol: [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { title: '授信还款项目', dataIndex: 'itemName', width: '50%', align: 'center' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { title: '授信还款金额', dataIndex: 'itemAmount', width: '50%', align: 'center' } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       ] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   methods: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    getTotal (data) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      let ret = 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      data.map(item => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ret = ret + item.itemAmount 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      return ret.toFixed(2) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 编辑基础信息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     handleEditBase (event) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.openBaseModal = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.$refs.baseModal.getDetail() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     refashData () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.getDetail(1) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -153,13 +209,12 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     getDetail (type) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.spinning = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.disabled = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      expenseAccountDetail({ expenseAccountSn: this.$route.params.sn }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      financeBookFindBySn({ bookSn: this.$route.params.sn }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (res.status == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.detailData = res.data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.detailData.content = res.data.content.replace(/\n+/, '\n').split('\n') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           if (!type) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            // 获取财务明细列表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.getExpenseDetailList() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // 刷新明细列表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$refs.table.refresh() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.spinning = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.disabled = false 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -167,45 +222,17 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    getExpenseDetailList () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.$refs.table.refresh() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    // 确认导入明细 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    hanldeImprotOk (obj) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      console.log(obj) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      expenseInsertImport(obj).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if (res.status == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.getDetail(false) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    // 新增明细 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    newExpenseDetail () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.expenseAccountDetailSn = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.openEpenseDetailModal = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 新增明细成功 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    epenseDetailOk () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      // 刷新列表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.openEpenseDetailModal = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    fcDetailOk () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.openFcDetailModal = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.getDetail(false) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    // 设置产品 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    setProduct (row) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.openProductInfoModal = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.expenseAccountDetailSn = row.expenseAccountDetailSn 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.$refs.productInfo.setBaseData(row) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    // 新增产品成功 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    productInfoOk () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      // 刷新列表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.openProductInfoModal = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.getDetail(false) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    // 编辑明细 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    // 新增、编辑明细 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     handleEdit (row) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.openEpenseDetailModal = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.expenseAccountDetailSn = row.expenseAccountDetailSn 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.openFcDetailModal = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if (row && row.bookDetailSn) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.$refs.fcDetailModal.getDetail(row.bookDetailSn) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 删除明细 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     handleDel (row) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -217,7 +244,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         closable: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         onOk () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           _this.spinning = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          expenseAcctDetailDelete({ detailSn: row.expenseAccountDetailSn }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          financeBookDetailDelete({ bookDetailSn: row.bookDetailSn }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (res.status == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               _this.$message.success(res.message) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               _this.getDetail(false) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -239,7 +266,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 提交信息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     handleSubmit (data) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.spinning = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      expenseAccountSubmit({ expenseAccountSn: this.$route.params.sn, ...data }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      financeBookSubmit({ bookSn: this.$route.params.sn, ...data }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (res.status == '200') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.$message.success(res.message) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.handleBack() 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -249,7 +276,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 返回 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     handleBack (data) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.$router.push({ name: 'expenseReimbursementList' }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.$router.push({ name: 'financialCollectionList' }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     pageInit () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       if (this.$route.params.sn) { //  编辑页 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -275,7 +302,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </script> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <style lang="less"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  .expenseReimbursementAddwrap{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  .financialCollectionAddwrap{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     position: relative; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     height: 100%; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     padding-bottom: 51px; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -284,7 +311,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       overflow-y: scroll; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       height: 100%; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    .expenseReimbursementAddcont{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    .financialCollectionAddcont{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       margin-bottom: 10px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     .affix{ 
			 |