- 现象:用户 25074105001(吉林医药学院,旧套)销假时表单只显示经纬度/地址, 提交报「该请假销假需要上传图片附件」,无法完成销假。 - 根因:旧套 leaveType.enableAttach 字段不可靠(多所旧套学校恒为 0), 前端以此字段控制销假图片上传入口显隐,导致该字段为 0 时上传入口不显示; 而部分学校销假实际强制要求附件(提交返回 2210990000)。 - 修复:销假图片上传入口改为始终显示(可选,不填则不携带), 并附提示「部分学校销假要求上传,如提交提示需要附件请在此上传」。
This commit is contained in:
@@ -265,9 +265,14 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 销假图片(仅 enableAttach=true 时显示,可选) -->
|
||||
<div v-if="selectedLeave?.enableAttach">
|
||||
<label class="text-xs text-gray-500 mb-1 block">销假图片(可选)</label>
|
||||
<!-- 销假图片:旧套 enableAttach 字段不可靠(多所旧套学校恒为 0),
|
||||
但部分学校销假强制要求附件,故始终提供上传入口(可选;不传则不携带) -->
|
||||
<div>
|
||||
<label class="text-xs text-gray-500 mb-1 block">
|
||||
销假图片
|
||||
<span v-if="selectedLeave?.enableAttach" class="text-[10px] text-gray-400">(可选)</span>
|
||||
<span v-else class="text-[10px] text-amber-500">(部分学校销假要求上传,如提交提示需要附件请在此上传)</span>
|
||||
</label>
|
||||
<div v-if="form.imageUrl" class="relative inline-block">
|
||||
<img :src="form.imageUrl" class="w-20 h-20 rounded-lg object-cover border border-gray-200" />
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user