diff --git a/src/views/contract/components/printPaymentForm.vue b/src/views/contract/components/printPaymentForm.vue
new file mode 100644
index 0000000..71b8f2a
--- /dev/null
+++ b/src/views/contract/components/printPaymentForm.vue
@@ -0,0 +1,132 @@
+
+
+
+
+
+
+ 事前支付表格
+ 事后支付表格
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/contract/components/printReimbursement.vue b/src/views/contract/components/printReimbursement.vue
index d07a835..11912b4 100644
--- a/src/views/contract/components/printReimbursement.vue
+++ b/src/views/contract/components/printReimbursement.vue
@@ -49,7 +49,7 @@
{{ getChildrenRatio }} |
{{ getChildrenActual }} |
财审科审核 |
- {{ getFinanceApproval }} |
+ {{ }} |
| 幼托费用 |
@@ -57,7 +57,7 @@
无 |
{{ getNurseryActual }} |
分管领导审核 |
- {{ getLeaderApproval }} |
+ {{ }} |
| 子女保险费 |
@@ -65,13 +65,13 @@
无 |
{{ getChildInsuranceActual }} |
财务分管领导审核 |
- {{ getFinanceLeaderApproval }} |
+ {{ }} |
| 合计 |
{{ getTotalFee }} {{ getTotalActual }} |
单位负责人审批 |
- {{ getUnitApproval }} |
+ {{ }} |
| 报销金额(大写) |
diff --git a/src/views/contract/paymentRegistrationList.vue b/src/views/contract/paymentRegistrationList.vue
index bc2a7ca..76566d5 100644
--- a/src/views/contract/paymentRegistrationList.vue
+++ b/src/views/contract/paymentRegistrationList.vue
@@ -159,6 +159,7 @@
+
@@ -181,6 +182,7 @@ import printUtilityBill from "./components/printUtilityBill";
import printReimbursementSimple from "./components/printReimbursementSimple";
import printMeetingSettlement from "./components/printMeetingSettlement";
import printFundApproval from "./components/printFundApproval";
+import printPaymentForm from "./components/printPaymentForm";
export default {
components: {
@@ -195,6 +197,7 @@ export default {
printMeetingSettlement,
printFundApproval,
detailPaymentRegistration,
+ printPaymentForm,
},
data() {
return {
@@ -551,9 +554,18 @@ export default {
},
async handlePrint(row) {
try {
- const rowIndex = this.list.findIndex(item => item.id === row.id);
- console.log('当前行号:', rowIndex);
+ // 检查合同信息中的forms和before_forms
+ 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) { // 第一行
this.$refs['printRegistration'].getDetailFundLog(row.id);
this.$refs['printRegistration'].isShow = true;