feat:审批中不能修改

This commit is contained in:
dzc committed 2025-07-07 16:06:15 +08:00
1 parent 37cc8e4c5f
commit ee4b17ce18
1 file changed
+20 -31
@@ -2,13 +2,15 @@
<el-dialog v-model="visible" title="预览" width="800px" :close-on-click-modal="false" draggable destroy-on-close>
<dict-tag class="mb-2" :options="check_status" :value="receiptData.processStatus" />
<div v-loading="loading" id="receiptRef" ref="receiptRef" class="w-[17.5cm] h-[9.5cm] border border-gray-400 p-6 bg-[#EBE1C622]">
<div v-loading="loading" id="receiptRef" ref="receiptRef"
class="w-[17.5cm] h-[9.5cm] border border-gray-400 p-6 bg-[#EBE1C622]">
<div class="text-center mx-auto w-[10cm] text-3xl font-bold">浦江县行政事业单位食堂统一收款收据</div>
<div class="flex justify-between items-end mb-1">
<div></div>
<div>
{{ formatDate(new Date(receiptData.time), "YYYY年 mm月 dd日") || " 年 月 日".replace(/ /g, "&nbsp;&nbsp;") }}
{{ formatDate(new Date(receiptData.time), "YYYY年 mm月 dd日") || " 年 月 日".replace(/ /g, "&nbsp;&nbsp;")
}}
</div>
<span>
<span>No. </span>
@@ -21,13 +23,9 @@
<tr>
<td class="border border-gray-600 px-2 w-3/12 h-[0.75cm]">交款单位(或个人)</td>
<td class="border border-gray-600 px-2 w-9/12 h-[0.75cm] text-sm text-blue-800" colspan="4">
<input
type="text"
v-model="receiptData.deptOrUser"
class="caret-red-600 w-full h-full bg-transparent text-center"
ref="deptOrUserInput"
maxlength="30"
/>
<input type="text" v-model="receiptData.deptOrUser"
class="caret-red-600 w-full h-full bg-transparent text-center" ref="deptOrUserInput"
maxlength="30" />
</td>
</tr>
<tr>
@@ -64,14 +62,10 @@
<td class="border border-gray-600 px-2 w-1/6 h-[0.75cm]">收款单位<br />(盖章)</td>
<td class="border border-gray-600 px-2 text-left w-1/6 h-[0.75cm] text-sm text-blue-800">
<!-- <input type="text" v-model="receiptData.payeeDept" class="w-full h-full bg-transparent" /> -->
<img
v-if="receiptData.stampPicUrl"
class="w-[2.5cm] h-[2.5cm] absolute -top-2 left-[140px]"
<img v-if="receiptData.stampPicUrl" class="w-[2.5cm] h-[2.5cm] absolute -top-2 left-[140px]"
draggable="false"
style="-webkit-user-drag: none; user-select: none; pointer-events: none"
oncontextmenu="return false"
src="/@/assets/receiptStamp.png"
/>
oncontextmenu="return false" src="/@/assets/receiptStamp.png" />
</td>
<td class="border border-gray-600 px-2 w-1/6 h-[0.75cm]">开票人<br />(签名)</td>
<td class="border border-gray-600 px-2 text-left w-1/6 h-[0.75cm] text-sm text-blue-800">
@@ -81,11 +75,8 @@
<td class="border border-gray-600 px-2 text-left align-text-top w-1/3 h-[0.75cm]">
<div class="flex">
<span class="whitespace-nowrap">备注:</span>
<textarea
v-model="receiptData.remark"
maxlength="12"
class="flex-1 text-sm text-blue-800 w-full h-full bg-transparent resize-none overflow-y-hidden"
/>
<textarea v-model="receiptData.remark" maxlength="12"
class="flex-1 text-sm text-blue-800 w-full h-full bg-transparent resize-none overflow-y-hidden" />
</div>
</td>
</tr>
@@ -100,19 +91,17 @@
<template #footer>
<el-button @click="handleClose" :disabled="loading">关闭</el-button>
<el-button
v-if="receiptData.processStatus == '2' || receiptData.processStatus == '3'"
v-auth="'wallet_walletRechargeApply_back'"
type="primary"
plain
@click="backInvoice"
:disabled="loading"
>
<el-button v-if="receiptData.processStatus == '2' || receiptData.processStatus == '3'"
v-auth="'wallet_walletRechargeApply_back'" type="primary" plain @click="backInvoice"
:disabled="loading">
作废
</el-button>
<el-button v-if="!receiptData.processStatus" type="primary" :disabled="loading" @click="applyStamp">申请审批</el-button>
<el-button v-auth="'wallet_walletRechargeApply_receiptSave'" type="primary" @click="saveReceipt" :disabled="loading">保存</el-button>
<el-button v-if="receiptData.stampPicUrl" type="warning" @click="handlePrint" :disabled="loading">打印</el-button>
<el-button v-if="!receiptData.processStatus" type="primary" :disabled="loading"
@click="applyStamp">申请审批</el-button>
<el-button v-if="receiptData.processStatus == undefined" v-auth="'wallet_walletRechargeApply_receiptSave'"
type="primary" @click="saveReceipt" :disabled="loading">保存</el-button>
<el-button v-if="receiptData.stampPicUrl" type="warning" @click="handlePrint"
:disabled="loading">打印</el-button>
</template>
</el-dialog>
</template>