|  | @@ -53,7 +53,8 @@
 | 
	
		
			
				|  |  |              v-for="item in options"
 | 
	
		
			
				|  |  |              :key="item.value"
 | 
	
		
			
				|  |  |              :label="item.dictLabel"
 | 
	
		
			
				|  |  | -            :value="item.dictValue">
 | 
	
		
			
				|  |  | +            :value="item.dictValue"
 | 
	
		
			
				|  |  | +          >
 | 
	
		
			
				|  |  |            </el-option>
 | 
	
		
			
				|  |  |          </el-select>
 | 
	
		
			
				|  |  |        </el-form-item>
 | 
	
	
		
			
				|  | @@ -235,7 +236,7 @@
 | 
	
		
			
				|  |  |          <el-button type="warning" size="small" @click="charGe">收费</el-button>
 | 
	
		
			
				|  |  |          <el-button type="primary" size="small" @click="confirmCharge">确认收费</el-button>
 | 
	
		
			
				|  |  |          <el-button type="success" size="small">导出</el-button>
 | 
	
		
			
				|  |  | -        <el-button type="info" size="small" @click="openPrint=true">打印</el-button>
 | 
	
		
			
				|  |  | +        <el-button type="info" size="small" @click="printing">打印</el-button>
 | 
	
		
			
				|  |  |          <el-button type="danger" size="small">删除</el-button>
 | 
	
		
			
				|  |  |        </div>
 | 
	
		
			
				|  |  |        <el-table v-loading="loading" :data="increase_s" @selection-change="handleSelectionChange_s">
 | 
	
	
		
			
				|  | @@ -246,7 +247,7 @@
 | 
	
		
			
				|  |  |          <el-table-column label="品名" align="center" prop="fProductName"/>
 | 
	
		
			
				|  |  |          <el-table-column label="业务日期" align="center" prop="fBsdate">
 | 
	
		
			
				|  |  |            <template slot-scope="scope">
 | 
	
		
			
				|  |  | -            <span>{{scope.row.fBsdate.slice(0,10)}}</span>
 | 
	
		
			
				|  |  | +            <span>{{ scope.row.fBsdate.slice(0, 10) }}</span>
 | 
	
		
			
				|  |  |            </template>
 | 
	
		
			
				|  |  |          </el-table-column>
 | 
	
		
			
				|  |  |          <el-table-column label="费用名称" align="center" prop="fFeeName"/>
 | 
	
	
		
			
				|  | @@ -261,7 +262,7 @@
 | 
	
		
			
				|  |  |              <span v-if="scope.row.fBilltype =='SJRK'">入库</span>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              <span v-else-if="scope.row.fBilltype == 'SJCK'">出库</span>
 | 
	
		
			
				|  |  | -            <span v-else>{{scope.row.fBilltype}}</span>
 | 
	
		
			
				|  |  | +            <span v-else>{{ scope.row.fBilltype }}</span>
 | 
	
		
			
				|  |  |            </template>
 | 
	
		
			
				|  |  |          </el-table-column>
 | 
	
		
			
				|  |  |          <el-table-column label="金额" align="center" prop="fAmtdr"/>
 | 
	
	
		
			
				|  | @@ -378,7 +379,9 @@
 | 
	
		
			
				|  |  |              <el-button icon="el-icon-refresh" size="mini" @click="resetQuery_s">重置</el-button>
 | 
	
		
			
				|  |  |            </el-form-item>
 | 
	
		
			
				|  |  |          </el-form>
 | 
	
		
			
				|  |  | -        <el-table v-loading="loading" :data="chargeList_s" ref="chargeList" show-summary :summary-method="getSummaries" @selection-change="handleSelectionChange_s">
 | 
	
		
			
				|  |  | +        <el-table v-loading="loading" :data="chargeList_s" ref="chargeList" 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="货权方" align="center" prop="fName"/>
 | 
	
	
		
			
				|  | @@ -389,7 +392,7 @@
 | 
	
		
			
				|  |  |              <template slot-scope="scope">
 | 
	
		
			
				|  |  |                <span v-if="scope.row.fBilltype =='SJRK'">入库</span>
 | 
	
		
			
				|  |  |                <span v-else-if="scope.row.fBilltype == 'SJCK'">出库</span>
 | 
	
		
			
				|  |  | -              <span v-else>{{scope.row.fBilltype}}</span>
 | 
	
		
			
				|  |  | +              <span v-else>{{ scope.row.fBilltype }}</span>
 | 
	
		
			
				|  |  |              </template>
 | 
	
		
			
				|  |  |            </el-table-column>
 | 
	
		
			
				|  |  |            <el-table-column label="审核日期" align="center" prop="fReviewDate"/>
 | 
	
	
		
			
				|  | @@ -424,27 +427,20 @@
 | 
	
		
			
				|  |  |          </div>
 | 
	
		
			
				|  |  |        </el-dialog>
 | 
	
		
			
				|  |  |      </el-dialog>
 | 
	
		
			
				|  |  | -    <!-- 打印页面 -->
 | 
	
		
			
				|  |  |      <el-dialog
 | 
	
		
			
				|  |  | -    :visible.sync="openPrint"
 | 
	
		
			
				|  |  | -      width="70%"
 | 
	
		
			
				|  |  | -      append-to-body
 | 
	
		
			
				|  |  | -      :close-on-click-modal="false"
 | 
	
		
			
				|  |  | -      title="收费单">
 | 
	
		
			
				|  |  | -      
 | 
	
		
			
				|  |  | -      <el-table
 | 
	
		
			
				|  |  | -        border="true"
 | 
	
		
			
				|  |  | -        v-loading="loading"
 | 
	
		
			
				|  |  | -        :data="increase_s"
 | 
	
		
			
				|  |  | -        @selection-change="handleSelectionChanGe">
 | 
	
		
			
				|  |  | -        
 | 
	
		
			
				|  |  | +      :visible.sync="printStatus"
 | 
	
		
			
				|  |  | +      width="80%"
 | 
	
		
			
				|  |  | +      :before-close="closePrinting"
 | 
	
		
			
				|  |  | +    >
 | 
	
		
			
				|  |  | +      <el-table id="print_area2" v-loading="loading" :data="printObject" @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="提单号" 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">
 | 
	
		
			
				|  |  |            <template slot-scope="scope">
 | 
	
		
			
				|  |  | -            <span>{{scope.row.fBsdate.slice(0,10)}}</span>
 | 
	
		
			
				|  |  | +            <span>{{ scope.row.fBsdate.slice(0, 10) }}</span>
 | 
	
		
			
				|  |  |            </template>
 | 
	
		
			
				|  |  |          </el-table-column>
 | 
	
		
			
				|  |  |          <el-table-column label="费用名称" align="center" prop="fFeeName"/>
 | 
	
	
		
			
				|  | @@ -459,15 +455,17 @@
 | 
	
		
			
				|  |  |              <span v-if="scope.row.fBilltype =='SJRK'">入库</span>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              <span v-else-if="scope.row.fBilltype == 'SJCK'">出库</span>
 | 
	
		
			
				|  |  | -            <span v-else>{{scope.row.fBilltype}}</span>
 | 
	
		
			
				|  |  | +            <span v-else>{{ scope.row.fBilltype }}</span>
 | 
	
		
			
				|  |  |            </template>
 | 
	
		
			
				|  |  |          </el-table-column>
 | 
	
		
			
				|  |  |          <el-table-column label="金额" align="center" prop="fAmtdr"/>
 | 
	
		
			
				|  |  |          <el-table-column label="本次金额" align="center" prop="fAmt"/>
 | 
	
		
			
				|  |  |          <el-table-column label="备注" align="center" prop="fRemarks"/>
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |        </el-table>
 | 
	
		
			
				|  |  | +      <span slot="footer" class="dialog-footer">
 | 
	
		
			
				|  |  | +    <el-button @click="printStatus = false">取 消</el-button>
 | 
	
		
			
				|  |  | +    <el-button type="primary" @click="printSomething">确 定</el-button>
 | 
	
		
			
				|  |  | +  </span>
 | 
	
		
			
				|  |  |      </el-dialog>
 | 
	
		
			
				|  |  |    </div>
 | 
	
		
			
				|  |  |  </template>
 | 
	
	
		
			
				|  | @@ -479,13 +477,12 @@ import {
 | 
	
		
			
				|  |  |    getCharge,
 | 
	
		
			
				|  |  |    delCharge,
 | 
	
		
			
				|  |  |    addCharge,
 | 
	
		
			
				|  |  | -  updateCharge,
 | 
	
		
			
				|  |  |    exportCharge,
 | 
	
		
			
				|  |  |    search,
 | 
	
		
			
				|  |  |    listCorps
 | 
	
		
			
				|  |  |  } from '@/api/finance/charge'
 | 
	
		
			
				|  |  |  import { listFees } from '@/api/basicdata/fees'
 | 
	
		
			
				|  |  | -import log from '@/views/monitor/job/log'
 | 
	
		
			
				|  |  | +import print from "print-js"
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    name: 'Charge',
 | 
	
	
		
			
				|  | @@ -494,11 +491,14 @@ export default {
 | 
	
		
			
				|  |  |      return {
 | 
	
		
			
				|  |  |        openPrint:false,
 | 
	
		
			
				|  |  |        browseStatus: true,
 | 
	
		
			
				|  |  | -      nothing:[],
 | 
	
		
			
				|  |  | +      nothing: [],
 | 
	
		
			
				|  |  | +      //打印表
 | 
	
		
			
				|  |  | +      printObject: [],
 | 
	
		
			
				|  |  | +      printStatus: false,
 | 
	
		
			
				|  |  |        //导入状态
 | 
	
		
			
				|  |  | -      state_s: true ,
 | 
	
		
			
				|  |  | +      state_s: true,
 | 
	
		
			
				|  |  |        fWbuOptions: [],
 | 
	
		
			
				|  |  | -      options:'',
 | 
	
		
			
				|  |  | +      options: '',
 | 
	
		
			
				|  |  |        // 遮罩层
 | 
	
		
			
				|  |  |        loading: true,
 | 
	
		
			
				|  |  |        //打开内部弹窗
 | 
	
	
		
			
				|  | @@ -517,7 +517,7 @@ export default {
 | 
	
		
			
				|  |  |        // 总条数
 | 
	
		
			
				|  |  |        total: 0,
 | 
	
		
			
				|  |  |        //提单号暂存
 | 
	
		
			
				|  |  | -      fMblno:'',
 | 
	
		
			
				|  |  | +      fMblno: '',
 | 
	
		
			
				|  |  |        // 财务数据主表格数据
 | 
	
		
			
				|  |  |        chargeList: [],
 | 
	
		
			
				|  |  |        // 弹出层标题
 | 
	
	
		
			
				|  | @@ -535,13 +535,13 @@ export default {
 | 
	
		
			
				|  |  |          timeExamine: '',
 | 
	
		
			
				|  |  |          timeInterval: ''
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  | -      empty:[],
 | 
	
		
			
				|  |  | +      empty: [],
 | 
	
		
			
				|  |  |        //导入从表传主表
 | 
	
		
			
				|  |  | -      pass:{
 | 
	
		
			
				|  |  | -        fAmtdr:'',    //应收合计
 | 
	
		
			
				|  |  | -        fAmtcr:'',    //应付合计
 | 
	
		
			
				|  |  | -        fMblno:'',    //提单号
 | 
	
		
			
				|  |  | -        fName:''      //货权方
 | 
	
		
			
				|  |  | +      pass: {
 | 
	
		
			
				|  |  | +        fAmtdr: '',    //应收合计
 | 
	
		
			
				|  |  | +        fAmtcr: '',    //应付合计
 | 
	
		
			
				|  |  | +        fMblno: '',    //提单号
 | 
	
		
			
				|  |  | +        fName: ''      //货权方
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  |        // 查询参数
 | 
	
		
			
				|  |  |        queryParams: {
 | 
	
	
		
			
				|  | @@ -614,45 +614,76 @@ export default {
 | 
	
		
			
				|  |  |      this.getList()
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    methods: {
 | 
	
		
			
				|  |  | +    //打印功能
 | 
	
		
			
				|  |  | +    printing() {
 | 
	
		
			
				|  |  | +      if(this.increase_s.length !== 0){
 | 
	
		
			
				|  |  | +        this.printStatus = true
 | 
	
		
			
				|  |  | +        this.printObject = this.increase_s
 | 
	
		
			
				|  |  | +      }else {
 | 
	
		
			
				|  |  | +        this.$message.error('无数据,请检查是否有数据');
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    //确认打印
 | 
	
		
			
				|  |  | +    printSomething() {
 | 
	
		
			
				|  |  | +      console.log("22222");
 | 
	
		
			
				|  |  | +      // 此处的style即为打印时的样式
 | 
	
		
			
				|  |  | +      const style =
 | 
	
		
			
				|  |  | +        "@media print { .print-div{ padding:8px;background-color:#cccccc;line-height:12px } .red{ color:#f00} .green{color:green} td{text-align: center}}";
 | 
	
		
			
				|  |  | +      print({
 | 
	
		
			
				|  |  | +        printable: "print_area2",
 | 
	
		
			
				|  |  | +        type: "html",
 | 
	
		
			
				|  |  | +        style: style, // 亦可使用引入的外部css;
 | 
	
		
			
				|  |  | +        scanStyles: false,
 | 
	
		
			
				|  |  | +      });
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    //关闭打印弹窗
 | 
	
		
			
				|  |  | +    closePrinting() {
 | 
	
		
			
				|  |  | +      this.$confirm('确认关闭?')
 | 
	
		
			
				|  |  | +        .then(_ => {
 | 
	
		
			
				|  |  | +        })
 | 
	
		
			
				|  |  | +        .catch(_ => {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        })
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      // 确认收费
 | 
	
		
			
				|  |  |      confirmCharge() {
 | 
	
		
			
				|  |  |        this.queryParams.fBillstatus = '4'
 | 
	
		
			
				|  |  |        let formDate = new window.FormData()
 | 
	
		
			
				|  |  | -        formDate.append('tFee',JSON.stringify(this.queryParams))
 | 
	
		
			
				|  |  | -        formDate.append("tFeeDo", JSON.stringify(this.increase_s))
 | 
	
		
			
				|  |  | +      formDate.append('tFee', JSON.stringify(this.queryParams))
 | 
	
		
			
				|  |  | +      formDate.append('tFeeDo', JSON.stringify(this.increase_s))
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        collectFee(formDate).then(response=>{
 | 
	
		
			
				|  |  | -          console.log(response)
 | 
	
		
			
				|  |  | -          this.msgSuccess("操作成功")
 | 
	
		
			
				|  |  | -        })
 | 
	
		
			
				|  |  | -        this.open = false
 | 
	
		
			
				|  |  | +      collectFee(formDate).then(response => {
 | 
	
		
			
				|  |  | +        console.log(response)
 | 
	
		
			
				|  |  | +        this.msgSuccess('操作成功')
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  | +      this.open = false
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    charGe(){
 | 
	
		
			
				|  |  | +    charGe() {
 | 
	
		
			
				|  |  |        this.queryParameter.fToCorpid = this.queryParams.fCorpid
 | 
	
		
			
				|  |  |        this.innerVisible = true
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      getSummaries(param) {
 | 
	
		
			
				|  |  | -      const { columns, data } = param;
 | 
	
		
			
				|  |  | -      const sums = [];
 | 
	
		
			
				|  |  | +      const { columns, data } = param
 | 
	
		
			
				|  |  | +      const sums = []
 | 
	
		
			
				|  |  |        columns.forEach((column, index) => {
 | 
	
		
			
				|  |  | -        const values = data.map(item => Number(item[column.property]));
 | 
	
		
			
				|  |  | +        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);
 | 
	
		
			
				|  |  | +            const value = Number(curr)
 | 
	
		
			
				|  |  |              if (!isNaN(value)) {
 | 
	
		
			
				|  |  | -              return prev + curr;
 | 
	
		
			
				|  |  | +              return prev + curr
 | 
	
		
			
				|  |  |              } else {
 | 
	
		
			
				|  |  | -              return prev;
 | 
	
		
			
				|  |  | +              return prev
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | -          }, 0);
 | 
	
		
			
				|  |  | -          sums[0] = '合计';
 | 
	
		
			
				|  |  | -          sums[3] = '';
 | 
	
		
			
				|  |  | +          }, 0)
 | 
	
		
			
				|  |  | +          sums[0] = '合计'
 | 
	
		
			
				|  |  | +          sums[3] = ''
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -      });
 | 
	
		
			
				|  |  | -      return sums;
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  | +      return sums
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    imgChangeI(row){
 | 
	
		
			
				|  |  | -      if (row.fAmt && Number(row.fAmt) > Number(row.fAmtdr)){
 | 
	
		
			
				|  |  | +    imgChangeI(row) {
 | 
	
		
			
				|  |  | +      if (row.fAmt && Number(row.fAmt) > Number(row.fAmtdr)) {
 | 
	
		
			
				|  |  |          this.$set(row, 'fAmt', row.fAmtdr)
 | 
	
		
			
				|  |  |          this.state_s = true
 | 
	
		
			
				|  |  |        }
 | 
	
	
		
			
				|  | @@ -687,17 +718,17 @@ export default {
 | 
	
		
			
				|  |  |            this.nothing = new Set(this.nothing)
 | 
	
		
			
				|  |  |            this.nothing = Array.from(this.nothing)
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -          if(this.empty.length <= 1){
 | 
	
		
			
				|  |  | +          if (this.empty.length <= 1) {
 | 
	
		
			
				|  |  |              this.pass.fMblno = this.empty[0]
 | 
	
		
			
				|  |  |              console.log(this.pass.fMblno)
 | 
	
		
			
				|  |  | -          }else {
 | 
	
		
			
				|  |  | -            this.pass.fMblno = this.empty[0] + "..."
 | 
	
		
			
				|  |  | +          } else {
 | 
	
		
			
				|  |  | +            this.pass.fMblno = this.empty[0] + '...'
 | 
	
		
			
				|  |  |              console.log(this.pass.fMblno)
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  | -          if (this.nothing.length <= 1){
 | 
	
		
			
				|  |  | +          if (this.nothing.length <= 1) {
 | 
	
		
			
				|  |  |              this.pass.fName = this.nothing[0]
 | 
	
		
			
				|  |  | -          }else {
 | 
	
		
			
				|  |  | -            this.pass.fName = this.nothing[0] + "..."
 | 
	
		
			
				|  |  | +          } else {
 | 
	
		
			
				|  |  | +            this.pass.fName = this.nothing[0] + '...'
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |            this.increase_s = this.selection
 | 
	
	
		
			
				|  | @@ -726,9 +757,9 @@ export default {
 | 
	
		
			
				|  |  |      /** 查询财务数据主列表 */
 | 
	
		
			
				|  |  |      getList() {
 | 
	
		
			
				|  |  |        this.loading = true
 | 
	
		
			
				|  |  | -      this.getDicts("approval_process").then((response) => {
 | 
	
		
			
				|  |  | +      this.getDicts('approval_process').then((response) => {
 | 
	
		
			
				|  |  |          this.options = response.data
 | 
	
		
			
				|  |  | -      });
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  |        listCharge(this.queryParams_s).then(response => {
 | 
	
		
			
				|  |  |          console.log(response)
 | 
	
		
			
				|  |  |          this.chargeList = response.rows
 | 
	
	
		
			
				|  | @@ -837,32 +868,32 @@ export default {
 | 
	
		
			
				|  |  |      /** 新增按钮操作 */
 | 
	
		
			
				|  |  |      handleAdd() {
 | 
	
		
			
				|  |  |        this.reset()
 | 
	
		
			
				|  |  | -      this.pass={
 | 
	
		
			
				|  |  | -        fAmtdr:'',    //应收合计
 | 
	
		
			
				|  |  | -        fAmtcr:'',    //应付合计
 | 
	
		
			
				|  |  | -        fMblno:'',    //提单号
 | 
	
		
			
				|  |  | -        fName:'',      //货权方
 | 
	
		
			
				|  |  | -        fFeesName:'',   //结算单位
 | 
	
		
			
				|  |  | -        fCorpid:''     //结算单位ID
 | 
	
		
			
				|  |  | +      this.pass = {
 | 
	
		
			
				|  |  | +        fAmtdr: '',    //应收合计
 | 
	
		
			
				|  |  | +        fAmtcr: '',    //应付合计
 | 
	
		
			
				|  |  | +        fMblno: '',    //提单号
 | 
	
		
			
				|  |  | +        fName: '',      //货权方
 | 
	
		
			
				|  |  | +        fFeesName: '',   //结算单位
 | 
	
		
			
				|  |  | +        fCorpid: ''     //结算单位ID
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  | -      // this.queryParams = []
 | 
	
		
			
				|  |  | -      this.increase_s = []
 | 
	
		
			
				|  |  | +        // 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
 | 
	
		
			
				|  |  | +        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.resetForm('queryParams')
 | 
	
		
			
				|  |  |        this.open = true
 | 
	
		
			
				|  |  |        this.title = '添加财务数据主'
 | 
	
		
			
				|  |  |      },
 | 
	
	
		
			
				|  | @@ -870,13 +901,13 @@ export default {
 | 
	
		
			
				|  |  |      handleUpdate(row) {
 | 
	
		
			
				|  |  |        console.log(row)
 | 
	
		
			
				|  |  |        this.reset()
 | 
	
		
			
				|  |  | -      this.pass={
 | 
	
		
			
				|  |  | -        fAmtdr:'',    //应收合计
 | 
	
		
			
				|  |  | -        fAmtcr:'',    //应付合计
 | 
	
		
			
				|  |  | -        fMblno:'',    //提单号
 | 
	
		
			
				|  |  | -        fName:'',      //货权方
 | 
	
		
			
				|  |  | -        fFeesName:'',   //结算单位
 | 
	
		
			
				|  |  | -        fCorpid:''     //结算单位ID
 | 
	
		
			
				|  |  | +      this.pass = {
 | 
	
		
			
				|  |  | +        fAmtdr: '',    //应收合计
 | 
	
		
			
				|  |  | +        fAmtcr: '',    //应付合计
 | 
	
		
			
				|  |  | +        fMblno: '',    //提单号
 | 
	
		
			
				|  |  | +        fName: '',      //货权方
 | 
	
		
			
				|  |  | +        fFeesName: '',   //结算单位
 | 
	
		
			
				|  |  | +        fCorpid: ''     //结算单位ID
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |        const fId = row.fId || this.ids
 | 
	
		
			
				|  |  |        console.log(fId)
 | 
	
	
		
			
				|  | @@ -897,7 +928,7 @@ export default {
 | 
	
		
			
				|  |  |        this.$refs['ruless'].validate(valid => {
 | 
	
		
			
				|  |  |          console.log(valid)
 | 
	
		
			
				|  |  |          if (valid) {
 | 
	
		
			
				|  |  | -          if(this.queryParams.fId == null){
 | 
	
		
			
				|  |  | +          if (this.queryParams.fId == null) {
 | 
	
		
			
				|  |  |              console.log(this.queryParams)
 | 
	
		
			
				|  |  |              // this.chargeList.fBillstatus = '1'
 | 
	
		
			
				|  |  |              this.queryParams.fBillstatus = '1'
 | 
	
	
		
			
				|  | @@ -910,7 +941,7 @@ export default {
 | 
	
		
			
				|  |  |                this.open = false
 | 
	
		
			
				|  |  |                this.getList()
 | 
	
		
			
				|  |  |              })
 | 
	
		
			
				|  |  | -          }else {
 | 
	
		
			
				|  |  | +          } else {
 | 
	
		
			
				|  |  |              console.log(this.queryParams)
 | 
	
		
			
				|  |  |              // this.chargeList.fBillstatus = '1'
 | 
	
		
			
				|  |  |              this.queryParams.fBillstatus = '1'
 | 
	
	
		
			
				|  | @@ -958,17 +989,17 @@ export default {
 | 
	
		
			
				|  |  |      deleteRow(index, rows) {
 | 
	
		
			
				|  |  |        this.queryParams.fAmtcr = 0
 | 
	
		
			
				|  |  |        this.queryParams.fAmtdr = 0
 | 
	
		
			
				|  |  | -      rows.splice(index, 1);
 | 
	
		
			
				|  |  | -      for(let item in this.increase_s) {
 | 
	
		
			
				|  |  | +      rows.splice(index, 1)
 | 
	
		
			
				|  |  | +      for (let item in this.increase_s) {
 | 
	
		
			
				|  |  |          console.log(this.increase_s[item])
 | 
	
		
			
				|  |  |          this.queryParams.fAmtcr += this.increase_s[item].fAmt
 | 
	
		
			
				|  |  |          this.queryParams.fAmtdr += this.increase_s[item].fAmtdr
 | 
	
		
			
				|  |  | -        
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |        console.log(this.queryParams.fAmtdr)
 | 
	
		
			
				|  |  |        console.log(this.queryParams.fAmtcr)
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    },
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  </script>
 |