|  | @@ -156,7 +156,7 @@
 | 
	
		
			
				|  |  |          <business-reports :id="form.id" :itemIds="itemIds" ref="printD" businessValue="MYDL" classifyCode="费用"
 | 
	
		
			
				|  |  |              groupCode="应收" :selecList="selectionDList"></business-reports>
 | 
	
		
			
				|  |  |          <business-reports :id="form.id" :itemIds="itemIds" ref="printC" businessValue="MYDL" classifyCode="费用"
 | 
	
		
			
				|  |  | -            groupCode="应付"></business-reports>
 | 
	
		
			
				|  |  | +            groupCode="应付" :selecList="selectionCList"></business-reports>
 | 
	
		
			
				|  |  |          <!--模板弹窗-->
 | 
	
		
			
				|  |  |          <el-dialog title="提示" :visible.sync="templateVisible" append-to-body width="70%" :close-on-click-modal="false"
 | 
	
		
			
				|  |  |              :before-close="handleClose">
 | 
	
	
		
			
				|  | @@ -277,7 +277,7 @@ export default {
 | 
	
		
			
				|  |  |              templateVisible: false,
 | 
	
		
			
				|  |  |              optionD: {},
 | 
	
		
			
				|  |  |              optionDBack: {
 | 
	
		
			
				|  |  | -                height: 'auto',
 | 
	
		
			
				|  |  | +                maxHeight: 300,
 | 
	
		
			
				|  |  |                  calcHeight: 30,
 | 
	
		
			
				|  |  |                  menuWidth: 140,
 | 
	
		
			
				|  |  |                  tip: false,
 | 
	
	
		
			
				|  | @@ -440,7 +440,7 @@ export default {
 | 
	
		
			
				|  |  |              },
 | 
	
		
			
				|  |  |              optionC: {},
 | 
	
		
			
				|  |  |              optionCBack: {
 | 
	
		
			
				|  |  | -                height: 'auto',
 | 
	
		
			
				|  |  | +                maxHeight: 300,
 | 
	
		
			
				|  |  |                  calcHeight: 30,
 | 
	
		
			
				|  |  |                  menuWidth: 140,
 | 
	
		
			
				|  |  |                  tip: false,
 | 
	
	
		
			
				|  | @@ -683,28 +683,65 @@ export default {
 | 
	
		
			
				|  |  |          addRow(type) {
 | 
	
		
			
				|  |  |              if (!this.form.id) return this.$message.error('请保存数据');
 | 
	
		
			
				|  |  |              if (type == 'D') {
 | 
	
		
			
				|  |  | -                this.form.feeCenterListD.push({
 | 
	
		
			
				|  |  | -                    $cellEdit: true,
 | 
	
		
			
				|  |  | -                    pid: this.form.id,
 | 
	
		
			
				|  |  | -                    dc: type,
 | 
	
		
			
				|  |  | -                    accStatus: 0,
 | 
	
		
			
				|  |  | -                    businessType: this.form.businessType,
 | 
	
		
			
				|  |  | -                    billNo: this.form.businessNo,
 | 
	
		
			
				|  |  | -                    billDate: this.form.businessDate,
 | 
	
		
			
				|  |  | -                    discountExrate: 0,
 | 
	
		
			
				|  |  | -                })
 | 
	
		
			
				|  |  | +                if (this.form.feeCenterListD.length == 0) {
 | 
	
		
			
				|  |  | +                    this.form.feeCenterListD.push({
 | 
	
		
			
				|  |  | +                        $cellEdit: true,
 | 
	
		
			
				|  |  | +                        pid: this.form.id,
 | 
	
		
			
				|  |  | +                        dc: type,
 | 
	
		
			
				|  |  | +                        accStatus: 0,
 | 
	
		
			
				|  |  | +                        businessType: this.form.businessType,
 | 
	
		
			
				|  |  | +                        billNo: this.form.businessNo,
 | 
	
		
			
				|  |  | +                        billDate: this.form.businessDate,
 | 
	
		
			
				|  |  | +                        discountExrate: 0,
 | 
	
		
			
				|  |  | +                    })
 | 
	
		
			
				|  |  | +                } else {
 | 
	
		
			
				|  |  | +                    this.form.feeCenterListD.push({
 | 
	
		
			
				|  |  | +                        $cellEdit: true,
 | 
	
		
			
				|  |  | +                        pid: this.form.id,
 | 
	
		
			
				|  |  | +                        dc: type,
 | 
	
		
			
				|  |  | +                        accStatus: 0,
 | 
	
		
			
				|  |  | +                        businessType: this.form.businessType,
 | 
	
		
			
				|  |  | +                        billNo: this.form.businessNo,
 | 
	
		
			
				|  |  | +                        billDate: this.form.businessDate,
 | 
	
		
			
				|  |  | +                        discountExrate: 0,
 | 
	
		
			
				|  |  | +                        corpCnName: this.form.feeCenterListD[this.form.feeCenterListD.length - 1].corpCnName,
 | 
	
		
			
				|  |  | +                        corpId: this.form.feeCenterListD[this.form.feeCenterListD.length - 1].corpId,
 | 
	
		
			
				|  |  | +                        corpEnName: this.form.feeCenterListD[this.form.feeCenterListD.length - 1].corpEnName,
 | 
	
		
			
				|  |  | +                        billCorpId: this.form.feeCenterListD[this.form.feeCenterListD.length - 1].billCorpId,
 | 
	
		
			
				|  |  | +                        billCorpCnName: this.form.feeCenterListD[this.form.feeCenterListD.length - 1].billCorpCnName,
 | 
	
		
			
				|  |  | +                    })
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              if (type == 'C') {
 | 
	
		
			
				|  |  | -                this.form.feeCenterListC.push({
 | 
	
		
			
				|  |  | -                    $cellEdit: true,
 | 
	
		
			
				|  |  | -                    pid: this.form.id,
 | 
	
		
			
				|  |  | -                    dc: type,
 | 
	
		
			
				|  |  | -                    accStatus: 0,
 | 
	
		
			
				|  |  | -                    businessType: this.form.businessType,
 | 
	
		
			
				|  |  | -                    billNo: this.form.businessNo,
 | 
	
		
			
				|  |  | -                    billDate: this.form.businessDate,
 | 
	
		
			
				|  |  | -                    discountExrate: 0,
 | 
	
		
			
				|  |  | -                })
 | 
	
		
			
				|  |  | +                if (this.form.feeCenterListC.length == 0) {
 | 
	
		
			
				|  |  | +                    this.form.feeCenterListC.push({
 | 
	
		
			
				|  |  | +                        $cellEdit: true,
 | 
	
		
			
				|  |  | +                        pid: this.form.id,
 | 
	
		
			
				|  |  | +                        dc: type,
 | 
	
		
			
				|  |  | +                        accStatus: 0,
 | 
	
		
			
				|  |  | +                        businessType: this.form.businessType,
 | 
	
		
			
				|  |  | +                        billNo: this.form.businessNo,
 | 
	
		
			
				|  |  | +                        billDate: this.form.businessDate,
 | 
	
		
			
				|  |  | +                        discountExrate: 0,
 | 
	
		
			
				|  |  | +                    })
 | 
	
		
			
				|  |  | +                } else {
 | 
	
		
			
				|  |  | +                    this.form.feeCenterListC.push({
 | 
	
		
			
				|  |  | +                        $cellEdit: true,
 | 
	
		
			
				|  |  | +                        pid: this.form.id,
 | 
	
		
			
				|  |  | +                        dc: type,
 | 
	
		
			
				|  |  | +                        accStatus: 0,
 | 
	
		
			
				|  |  | +                        businessType: this.form.businessType,
 | 
	
		
			
				|  |  | +                        billNo: this.form.businessNo,
 | 
	
		
			
				|  |  | +                        billDate: this.form.businessDate,
 | 
	
		
			
				|  |  | +                        discountExrate: 0,
 | 
	
		
			
				|  |  | +                        corpCnName: this.form.feeCenterListC[this.form.feeCenterListC.length - 1].corpCnName,
 | 
	
		
			
				|  |  | +                        corpId: this.form.feeCenterListC[this.form.feeCenterListC.length - 1].corpId,
 | 
	
		
			
				|  |  | +                        corpEnName: this.form.feeCenterListC[this.form.feeCenterListC.length - 1].corpEnName,
 | 
	
		
			
				|  |  | +                        billCorpId: this.form.feeCenterListC[this.form.feeCenterListC.length - 1].billCorpId,
 | 
	
		
			
				|  |  | +                        billCorpCnName: this.form.feeCenterListC[this.form.feeCenterListC.length - 1].billCorpCnName,
 | 
	
		
			
				|  |  | +                    })
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |          countChange(row) {
 | 
	
	
		
			
				|  | @@ -1154,4 +1191,9 @@ export default {
 | 
	
		
			
				|  |  |      text-align: center;
 | 
	
		
			
				|  |  |      padding: 4px 0;
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +::v-deep .el-table--small td,
 | 
	
		
			
				|  |  | +.el-table--small th {
 | 
	
		
			
				|  |  | +    padding: 2px !important;
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  |  </style>
 |