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 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"> <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" /> --> <!-- <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 && visibleStampPic"
draggable="false" 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" 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>
@@ -146,6 +146,7 @@ const loading = ref(false)
const refreshLoading = ref(false) const refreshLoading = ref(false)
const receiptRef = ref<HTMLElement | null>(null) const receiptRef = ref<HTMLElement | null>(null)
const deptOrUserInput = ref<HTMLInputElement | null>(null) const deptOrUserInput = ref<HTMLInputElement | null>(null)
const visibleStampPic = ref<boolean>(true)
const receiptData = ref<ReceiptData>({ const receiptData = ref<ReceiptData>({
id: "", id: "",
itemJson: "", // 款项json itemJson: "", // 款项json
@@ -197,6 +198,8 @@ const refreshInvoice = async () => {
} }
refreshLoading.value = true refreshLoading.value = true
try { try {
// 现移除盖章图片
visibleStampPic.value = false
// 申请审批 // 申请审批
const blob = await genImage() const blob = await genImage()
if (!blob) return useMessage().error("图片生成失败") if (!blob) return useMessage().error("图片生成失败")
@@ -216,6 +219,7 @@ const refreshInvoice = async () => {
useMessage().error(err.msg) useMessage().error(err.msg)
} finally { } finally {
refreshLoading.value = false refreshLoading.value = false
visibleStampPic.value = true
} }
} }