master
lynn 6 months ago
parent dee24ac102
commit 56246d3f77

@ -4,13 +4,13 @@
<template v-slot:normalContent>
<div class="form-switch">
<RadioGroup v-model="currentForm" type="button">
<Radio label="pre" :disabled="!getBeforeForms">事前审批表格</Radio>
<Radio label="finance" :disabled="!fundLog">财务审核表</Radio>
<Radio label="post" :disabled="!getForms">事后支付表格</Radio>
<!-- <Radio label="pre" :disabled="!getBeforeForms">事前审批表格</Radio> -->
<!-- <Radio label="finance" :disabled="!fundLog">财务审核表</Radio> -->
<Radio label="post" :disabled="!getForms">事后支付表格2</Radio>
</RadioGroup>
</div>
<div class="white-container" ref="printtable">
<div class="white-container">
<div class="form-container">
<!-- Pre-payment Form -->
<div v-if="currentForm === 'pre'" class="payment-form">
@ -20,12 +20,7 @@
<!-- Post-payment Form -->
<div v-else-if="currentForm === 'post'" class="payment-form">
<div v-if="getForms" v-html="getForms"></div>
<div v-else class="no-form-message">暂无事后支付表格内容</div>
</div>
<!-- Finance Review Form -->
<div v-else-if="currentForm === 'finance'" class="payment-form">
<!-- 财务审核表内容放到事后支付表头部 -->
<table class="finance-review-table">
<tr>
<th colspan="2" class="finance-header-row">合同信息</th>
@ -58,7 +53,11 @@
<td colspan="2">{{ fundLog && fundLog.remark || '-' }}</td>
</tr>
</table>
<div v-if="getForms" v-html="getForms"></div>
<div v-else class="no-form-message">暂无事后支付表格内容</div>
</div>
</div>
</div>
</template>

@ -549,7 +549,7 @@ export default {
try {
// if (row.contract && (row.contract.forms || row.contract.before_forms)) {
await this.$refs['printPaymentForm'].getDetailFundLog(row.id);
this.$refs['printPaymentForm'].currentForm = 'finance';
this.$refs['printPaymentForm'].currentForm = 'post';
this.$refs['printPaymentForm'].isShow = true;
// return;
// }

Loading…
Cancel
Save