| 
					
				 | 
			
			
				@@ -121,16 +121,25 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <!--      </el-table-column>--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <!--      <el-table-column label="制单部门" align="center" prop="fId"/>--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <!--      <el-table-column label="结算单位" align="center" prop="fCorpid"/>--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <el-table-column label="对账日期" align="center" prop="tMblno"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <el-table-column label="对账日期" align="center" prop="fAccbilldate"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-table-column label="提单号" align="center" prop="tMblno"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-table-column label="应收合计" align="center" prop="fAmtdr"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-table-column label="应付合计" align="center" prop="fAmtcr"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-table-column label="备注" align="center" prop="fRemarks"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <el-table-column label="状态" align="center" prop="fBillstatus"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <el-table-column label="状态" align="center" prop="fBillstatus"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <span v-if="scope.row.fBillstatus == '1'">新建</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <span v-else-if="scope.row.fBillstatus == '2'">暂存</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <span v-else-if="scope.row.fBillstatus == '3'">审批驳回</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <span v-else-if="scope.row.fBillstatus == '4'">提交审核</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <span v-else-if="scope.row.fBillstatus == '5'">审核中</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <span v-else-if="scope.row.fBillstatus == '6'">审核完成</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <!--      <el-table-column label="单据类型" align="center" prop="fBilltype"/>--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <!--      <el-table-column label="制单部门" align="center" prop="fDeptid"/>--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <el-table-column label="操作" width="100" align="center" class-name="small-padding fixed-width"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <el-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             size="mini" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -161,7 +170,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <!-- 添加或修改财务数据主对话框 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" width="65%" append-to-body> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" width="70%" append-to-body> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-form :model="queryParams" :rules="ruless" ref="ruless" :inline="true" v-show="showSearch" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                label-width="68px" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       > 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -234,30 +243,46 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <el-table-column label="提单号" align="center" prop="fMblno"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <el-table-column label="存货单号" align="center" prop="fBscorpno"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <el-table-column label="品名" align="center" prop="fProductName"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <el-table-column label="业务日期" align="center" prop="fBsdate"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-table-column label="业务日期" align="center" prop="fBsdate"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <span>{{scope.row.fBsdate.slice(0,10)}}</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <el-table-column label="费用名称" align="center" prop="fFeeName"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <el-table-column label="收/付" align="center" prop="fDc"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-table-column label="收/付" align="center" prop="fSrcdc"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <span v-if="scope.row.fDc =='D'">收</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <span v-else="scope.row.fDc =='C'">付</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <span v-if="scope.row.fSrcdc =='D'">收</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <span v-else-if="scope.row.fSrcdc =='C'">付</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <el-table-column label="业务类型" align="center" prop="fBilltype"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <span v-if="scope.row.fBilltype =='SJRK'">入库</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <span v-else-if="scope.row.fBilltype == 'SJCK'">出库</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <span v-else-if="scope.row.fBilltype == 'CKDB'">调拨</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <span v-else-if="scope.row.fBilltype == 'HQZY'">货权转移</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <span v-else>{{scope.row.fBilltype}}</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <el-table-column label="本次金额" align="center" prop="fAmt"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <el-table-column label="备注" align="center" prop="fRemarks"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              size="mini" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              type="text" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              icon="el-icon-delete" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              @click.native.prevent="deleteRow(scope.$index, increase_s)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            >删除 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </el-table> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <div slot="footer" class="dialog-footer"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <el-button type="primary" @click="submitForm">确 定</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-button type="primary" @click="submitForm">保 存</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <el-button @click="cancel">取 消</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <el-dialog :close-on-click-modal="false" width="65%" :visible.sync="innerVisible" title="导入数据" append-to-body> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <el-dialog :close-on-click-modal="false" width="70%" :visible.sync="innerVisible" title="导入数据" append-to-body> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <el-form ref="form" :model="queryParameter" :rules="rules" label-width="80px" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                  style="display: flex;flex-wrap: wrap;" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         > 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -271,7 +296,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               style="width: 200px" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               @keyup.enter.native="handleQuery" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               :remote-method="corpsRemoteMethod" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              placeholder="请输入结算单位" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              placeholder="请选择货权方" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <el-option 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 v-for="(dict, index) in fMblnoOptions" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -312,7 +337,6 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 v-model="queryParameter.fFeeid" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 filterable 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 remote 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                :disabled="browseStatus" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 :remote-method="fWRemoteMethod" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 placeholder="费用名称" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 multiple 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -353,9 +377,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <el-button icon="el-icon-refresh" size="mini" @click="resetQuery_s">重1置</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </el-form> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <el-table v-loading="loading" :data="chargeList_s" @selection-change="handleSelectionChange_s"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-table v-loading="loading" :data="chargeList_s" show-summary :summary-method="getSummaries" @selection-change="handleSelectionChange_s"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <el-table-column type="selection" width="55" align="center"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <el-table-column label="序号" type="index" width="55" align="center"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <el-table-column label="序2号" type="index" width="55" align="center"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <el-table-column label="货权方" align="center" prop="fName"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <el-table-column label="提单号" align="center" prop="fMblno"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <el-table-column label="品名" align="center" prop="fProductName"/> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -364,7 +388,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <span v-if="scope.row.fBilltype =='SJRK'">入库</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              <span v-else="scope.row.fBilltype == 'SJCK'">出库</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <span v-else-if="scope.row.fBilltype == 'SJCK'">出库</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <span v-else>{{scope.row.fBilltype}}</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <el-table-column label="审核日期" align="center" prop="fReviewDate"/> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -373,14 +398,16 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <el-table-column label="本次金额" align="center" prop="fAmt"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <el-input 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                v-model="scope.row.fNewAmount" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                v-model="scope.row.fAmt" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 placeholder="请输入本次金额" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 clearable 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                oninput="value=value.replace(/[^\d]/g,'')" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                @input="imgChange1(scope.row.fAmtdr,scope.row.fAmt)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <el-table-column label="备注" align="center" prop="fRemarks"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <el-table-column label="备1注" align="center" prop="fRemarks"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <el-input 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 v-model="scope.row.fRemarks" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -412,13 +439,16 @@ import { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   listCorps 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } from '@/api/finance/charge' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { listFees } from '@/api/basicdata/fees' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import log from '@/views/monitor/job/log' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   name: 'Charge', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   components: {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   data() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     return { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      browseStatus: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      browseStatus: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //导入状态 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      state_s: true , 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       fWbuOptions: [], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       options:'', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // 遮罩层 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -438,6 +468,8 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       showSearch: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // 总条数 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       total: 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //提单号暂存 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      fMblno:'', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // 财务数据主表格数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       chargeList: [], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // 弹出层标题 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -455,8 +487,16 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         timeExamine: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         timeInterval: '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //导入从表传主表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      pass:{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        fAmtdr:'',    //应收合计 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        fAmtcr:'',    //应付合计 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        fMblno:'',    //提单号 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        fName:''      //货权方 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // 查询参数 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       queryParams: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        fId: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         pageNum: 1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         pageSize: 10, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         fBillno: null, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -525,23 +565,80 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     this.getList() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   methods: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    getSummaries(param) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      const { columns, data } = param; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      const sums = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      columns.forEach((column, index) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        const values = data.map(item => Number(item[column.property])); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (!values.every(value => isNaN(value))) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          sums[index] = values.reduce((prev, curr) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            const value = Number(curr); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (!isNaN(value)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              return prev + curr; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              return prev; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }, 0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          sums[0] = '合计'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          sums[3] = ''; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.pass.fAmtdr = sums[9] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.pass.fAmtcr = sums[10] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      return sums; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    imgChange1(fAmtdr,fAmt){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if (fAmt <= fAmtdr){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        console.log("小了!") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.state_s = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }else if(fAmt > fAmtdr){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        console.log("大了!") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.$message.error('本次金额不能大于原定金额'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.state_s = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //确认导入 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     confirmImport() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      if (this.selection.length == '0') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        console.log('未选择')//写入提示 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.increase_s = this.selection 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.innerVisible = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.chargeList_s = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.queryParameter = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          fCorpid: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          fToCorpid: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          fMblno: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          fStatementNo: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          fFeeid: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          timeExamine: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          timeInterval: '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      console.log(this.state_s) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if(this.state_s == true){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (this.selection.length == '0') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          console.log('未选择')//写入提示 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          console.log(this.selection[0].fMblno) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          for (let item in this.selection){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            console.log(this.selection[item]) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            console.log(this.selection[item].fMblno) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            console.log(this.selection[item].fName) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if(item > 1){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.pass.fMblno = this.selection[item].fMblno + "..." 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.pass.fName = this.selection[item].fName + "..." 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }else if(item == 0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.pass.fMblno = this.selection[item].fMblno 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.pass.fName = this.selection[item].fName 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.increase_s = this.selection 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.queryParams.tMblno = this.pass.fMblno //提单号 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.queryParams.fCtrlcorpid = this.pass.fName 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.queryParams.fAmtcr = this.pass.fAmtcr 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.queryParams.fAmtdr = this.pass.fAmtdr 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          console.log(this.queryParams) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.innerVisible = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.chargeList_s = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.queryParameter = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            fCorpid: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            fToCorpid: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            fMblno: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            fStatementNo: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            fFeeid: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            timeExamine: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            timeInterval: '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }else if(this.state_s == false){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.$message.error('本次金额不能大于原定金额'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 查询财务数据主列表 */ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -593,16 +690,14 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 导入搜索 */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     importSearch() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      console.log(this.queryParameter.fFeeid) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      // console.log(this.queryParameter.fFeeid.join(',')) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      console.log(this.queryParameter) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // console.log(this.queryParameter[0].fFeeid.join(',')) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // .join(',') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.chargeList_s = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$refs['form'].validate(valid => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (valid) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          console.log(this.queryParameter) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           search(this.queryParameter).then(response => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.chargeList_s = response.rows 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            console.log(response) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -662,41 +757,70 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.reset() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // this.queryParams = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.increase_s = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.queryParams = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        pageNum: 1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          pageSize: 10, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          fBillno: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          fCtrlcorpid: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          fCorpid: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          tMblno: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          fAmtdr: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          fAmtcr: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          fBilltype: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          fBillstatus: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          fRemarks: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          fAccbilldate: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          fDeptid: null 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.resetForm('queryParams') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.open = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.title = '添加财务数据主' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 修改按钮操作 */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     handleUpdate(row) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      console.log(row) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.reset() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       const fId = row.fId || this.ids 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      console.log(fId) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       getCharge(fId).then(response => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         console.log(response) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.increase_s = response.data.tFeeDoList 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.increase_s = response.data.feeDoList 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.fWbuOptions = response.data.feesList 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.queryParams = response.data.tFee 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.fWbuOptions = response.data.feesList 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.fMblnoOptions = response.data.corps 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.open = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.title = '修改财务数据主' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.title = '修改收费列表' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 提交按钮 */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     submitForm() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      console.log(this.queryParameter) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$refs['ruless'].validate(valid => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         console.log(valid) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (valid) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          if (this.form.fId != null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            updateCharge(this.form).then(response => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              this.msgSuccess('修改成功') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          if(this.queryParams.fId == null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            console.log(this.queryParams) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // this.chargeList.fBillstatus = '1' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.queryParams.fBillstatus = '1' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            let formData = new window.FormData() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            formData.append('tFee', JSON.stringify(this.queryParams)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            formData.append('tFeeDo', JSON.stringify(this.increase_s)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            addCharge(formData).then(response => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.msgSuccess('新增成功') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.increase_s = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               this.open = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               this.getList() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            console.log(this.queryParams) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // this.chargeList.fBillstatus = '1' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.queryParams.fBillstatus = '1' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             let formData = new window.FormData() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             formData.append('tFee', JSON.stringify(this.queryParams)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             formData.append('tFeeDo', JSON.stringify(this.increase_s)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             addCharge(formData).then(response => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              this.msgSuccess('新增成功') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.msgSuccess('修改成功') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               this.increase_s = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               this.open = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               this.getList() 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -731,7 +855,11 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }).then(response => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.download(response.msg) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    //清空一行 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    deleteRow(index, rows) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      rows.splice(index, 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </script> 
			 |