This commit is contained in:
dzc committed 2025-08-01 15:24:23 +08:00
1 parent 5436fe9e04
commit 78e5d6b7d6
1 file changed
+6 -2
@@ -60,8 +60,8 @@
<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]"
draggable="false"
<img v-if="receiptData.stampPicUrl && visibleStampPic"
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" />
</td>
@@ -146,6 +146,7 @@ const loading = ref(false)
const refreshLoading = ref(false)
const receiptRef = ref<HTMLElement | null>(null)
const deptOrUserInput = ref<HTMLInputElement | null>(null)
const visibleStampPic = ref<boolean>(true)
const receiptData = ref<ReceiptData>({
id: "",
itemJson: "", // 款项json
@@ -197,6 +198,8 @@ const refreshInvoice = async () => {
}
refreshLoading.value = true
try {
// 现移除盖章图片
visibleStampPic.value = false
// 申请审批
const blob = await genImage()
if (!blob) return useMessage().error("图片生成失败")
@@ -216,6 +219,7 @@ const refreshInvoice = async () => {
useMessage().error(err.msg)
} finally {
refreshLoading.value = false
visibleStampPic.value = true
}
}