|
|
|
@ -159,6 +159,7 @@
|
|
|
|
<printMeetingSettlement ref="printMeetingSettlement"></printMeetingSettlement>
|
|
|
|
<printMeetingSettlement ref="printMeetingSettlement"></printMeetingSettlement>
|
|
|
|
<printFundApproval ref="printFundApproval"></printFundApproval>
|
|
|
|
<printFundApproval ref="printFundApproval"></printFundApproval>
|
|
|
|
<detailPaymentRegistration ref="detailPaymentRegistration" @success="getFundLogs"></detailPaymentRegistration>
|
|
|
|
<detailPaymentRegistration ref="detailPaymentRegistration" @success="getFundLogs"></detailPaymentRegistration>
|
|
|
|
|
|
|
|
<printPaymentForm ref="printPaymentForm"></printPaymentForm>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
@ -181,6 +182,7 @@ import printUtilityBill from "./components/printUtilityBill";
|
|
|
|
import printReimbursementSimple from "./components/printReimbursementSimple";
|
|
|
|
import printReimbursementSimple from "./components/printReimbursementSimple";
|
|
|
|
import printMeetingSettlement from "./components/printMeetingSettlement";
|
|
|
|
import printMeetingSettlement from "./components/printMeetingSettlement";
|
|
|
|
import printFundApproval from "./components/printFundApproval";
|
|
|
|
import printFundApproval from "./components/printFundApproval";
|
|
|
|
|
|
|
|
import printPaymentForm from "./components/printPaymentForm";
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
components: {
|
|
|
|
@ -195,6 +197,7 @@ export default {
|
|
|
|
printMeetingSettlement,
|
|
|
|
printMeetingSettlement,
|
|
|
|
printFundApproval,
|
|
|
|
printFundApproval,
|
|
|
|
detailPaymentRegistration,
|
|
|
|
detailPaymentRegistration,
|
|
|
|
|
|
|
|
printPaymentForm,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
@ -551,9 +554,18 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
async handlePrint(row) {
|
|
|
|
async handlePrint(row) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
const rowIndex = this.list.findIndex(item => item.id === row.id);
|
|
|
|
// 检查合同信息中的forms和before_forms
|
|
|
|
console.log('当前行号:', rowIndex);
|
|
|
|
if (row.contract) {
|
|
|
|
|
|
|
|
// 如果有forms或before_forms,显示支付表格打印窗口
|
|
|
|
|
|
|
|
if (row.contract.forms || row.contract.before_forms) {
|
|
|
|
|
|
|
|
this.$refs['printPaymentForm'].getDetailFundLog(row.id);
|
|
|
|
|
|
|
|
this.$refs['printPaymentForm'].isShow = true;
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 如果没有forms和before_forms,则按原来的逻辑处理
|
|
|
|
|
|
|
|
const rowIndex = this.list.findIndex(item => item.id === row.id);
|
|
|
|
if(rowIndex === 0) { // 第一行
|
|
|
|
if(rowIndex === 0) { // 第一行
|
|
|
|
this.$refs['printRegistration'].getDetailFundLog(row.id);
|
|
|
|
this.$refs['printRegistration'].getDetailFundLog(row.id);
|
|
|
|
this.$refs['printRegistration'].isShow = true;
|
|
|
|
this.$refs['printRegistration'].isShow = true;
|
|
|
|
|