feat: 新增充值订单独立管理模块及退款安全拦截
- 新增充值订单菜单及独立路由 - 禁用通用退款入口处理充值订单 - 完善支付场景类型及状态显示 - 补充充值退款测试用例 - 优化各模块未知状态显示提示 - 升级版本号至1.0.94
这个提交包含在:
@@ -1,4 +1,11 @@
|
||||
<script>require.config.site.version += "-invoice-flow-20261120";</script>
|
||||
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
|
||||
{if condition="!empty($flowOptions)"}
|
||||
<div class="alert alert-info" style="line-height:1.8;margin-bottom:15px">
|
||||
<strong>处理步骤:</strong>① 核对下方申请信息和订单 → ② 在税务开票系统开具发票 → ③ 回到本页填写发票号码并上传文件。<br>
|
||||
本页面只登记开票结果,不会自动开票或发送邮件。无法开票时请选择驳回并填写原因。
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<!-- 1. 开票申请信息(只读) -->
|
||||
<div class="panel panel-default panel-form-section">
|
||||
@@ -28,7 +35,7 @@
|
||||
<p class="form-control-static">
|
||||
<strong class="text-danger" style="font-size:15px">¥{$row.amount|htmlentities}</strong>
|
||||
<span class="label {if $row.type == 'special'}label-warning{else/}label-info{/if}" style="margin-left:6px">
|
||||
{$typeList[$row.type]|default=$row.type}
|
||||
{$typeList[$row.type]|default='未知类型'}
|
||||
</span>
|
||||
<span class="label label-default" style="margin-left:4px">
|
||||
{$titleTypeList[$row.title_type]|default='个人/非企业'}
|
||||
@@ -178,7 +185,7 @@
|
||||
<h4 class="panel-title"><i class="fa fa-file-text-o"></i> 财务开票处理</h4>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<p class="text-muted" style="margin-top:0">线上开具数电发票后标记「开票完成」,填写发票号码并可上传电子发票原件(PDF/图片),申请人即可在小程序直接预览下载;无法开票时请驳回并说明原因,额度及关联订单将自动释放。</p>
|
||||
<p class="text-muted" style="margin-top:0;line-height:1.8">请先在税务开票系统开具发票,再登记结果。提交后状态不能在此修改,请核对发票号码和文件。</p>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">处理结果:</label>
|
||||
@@ -186,20 +193,22 @@
|
||||
<div class="radio" style="margin-top:5px">
|
||||
{foreach name="flowOptions" item="op"}
|
||||
{if $op == 'issued'}
|
||||
<label style="margin-right:18px"><input name="row[status]" type="radio" value="issued" checked /> 开票完成</label>
|
||||
<label style="margin-right:18px"><input name="row[status]" type="radio" value="issued" checked /> 已在税务系统开票,登记结果</label>
|
||||
{elseif $op == 'reject' /}
|
||||
<label><input name="row[status]" type="radio" value="reject" /> 驳回(释放额度与订单)</label>
|
||||
<label><input name="row[status]" type="radio" value="reject" /> 无法开票,驳回申请</label>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p id="invoice-issued-hint" class="text-muted" style="margin:0 0 18px 16.7%">填写真实发票号码,建议上传原件供申请人在小程序查看和下载。</p>
|
||||
<p id="invoice-reject-hint" class="text-muted" style="display:none;margin:0 0 18px 16.7%">驳回后将释放开票额度和关联订单,请在处理说明中填写原因。</p>
|
||||
<div id="box-issued-fields">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">发票号码:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-invoice_no" class="form-control" name="row[invoice_no]" type="text" value="{$row.invoice_no|htmlentities}" placeholder="必填:请输入数电发票号码(20位)或传统发票号码">
|
||||
<input id="c-invoice_no" class="form-control" name="row[invoice_no]" type="text" value="{$row.invoice_no|htmlentities}" placeholder="必填:填写税务系统开具的真实发票号码">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -214,13 +223,14 @@
|
||||
<label class="control-label col-xs-12 col-sm-2">电子发票文件:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<div class="input-group">
|
||||
<input id="c-invoice_file" class="form-control" size="50" name="row[invoice_file]" type="text" value="{$row.invoice_file|htmlentities}" placeholder="支持上传 PDF / OFD / PNG / JPG 格式电子发票原件">
|
||||
<input id="c-invoice_file" class="form-control" size="50" name="row[invoice_file]" type="text" value="{$row.invoice_file|htmlentities}" placeholder="上传后自动填写文件地址(选填)" readonly>
|
||||
<div class="input-group-addon no-border no-padding">
|
||||
<span><button type="button" id="faupload-invoice_file" class="btn btn-danger faupload" data-category="invoice" data-input-id="c-invoice_file" data-mimetype="pdf,ofd,jpg,jpeg,png,webp" data-multiple="false" data-preview-id="p-invoice_file"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
|
||||
<span><button type="button" id="fachoose-invoice_file" class="btn btn-primary fachoose" data-input-id="c-invoice_file" data-mimetype="application/pdf,image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
|
||||
<span><button type="button" id="faupload-invoice_file" class="btn btn-danger faupload" data-category="invoice" data-input-id="c-invoice_file" data-mimetype="pdf,ofd,jpg,jpeg,png,webp" data-multiple="false" data-preview-id="p-invoice_file"><i class="fa fa-upload"></i> 上传本地发票</button></span>
|
||||
<span><button type="button" id="fachoose-invoice_file" class="btn btn-primary fachoose" data-input-id="c-invoice_file" data-mimetype="application/pdf,image/*" data-multiple="false"><i class="fa fa-list"></i> 从附件库选择</button></span>
|
||||
</div>
|
||||
<span class="msg-box n-right" for="c-invoice_file"></span>
|
||||
</div>
|
||||
<p class="help-block">支持 PDF、OFD、JPG、PNG、WEBP。未上传文件时,申请人无法在线查看或下载;提交后不能在此补传。</p>
|
||||
<ul class="row list-inline faupload-preview" id="p-invoice_file"></ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -238,7 +248,7 @@
|
||||
<div class="form-group layer-footer">
|
||||
<label class="control-label col-xs-12 col-sm-2"></label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
|
||||
<button type="submit" id="invoice-submit" class="btn btn-primary btn-embossed disabled">确认登记开票结果</button>
|
||||
<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -253,7 +263,7 @@
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-4">当前状态:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<p class="form-control-static"><strong>{$statusList[$row.status]|default=$row.status}</strong></p>
|
||||
<p class="form-control-static"><strong>{$statusList[$row.status]|default='未知状态'}</strong></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -272,8 +282,16 @@
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">电子发票原件:</label>
|
||||
<div class="col-xs-12 col-sm-10">
|
||||
{if $invoiceIsImage}
|
||||
<div style="margin:8px 0 12px">
|
||||
<a href="{$row.invoice_file|cdnurl|htmlentities}" target="_blank" rel="noopener noreferrer" class="js-image-preview-link" title="点击查看大图">
|
||||
<img src="{$row.invoice_file|cdnurl|htmlentities}" alt="电子发票图片,点击查看大图" style="display:block;max-width:100%;max-height:480px;width:auto;height:auto;border:1px solid #e4e8ed;border-radius:4px">
|
||||
</a>
|
||||
<p class="help-block">点击图片可查看大图</p>
|
||||
</div>
|
||||
{/if}
|
||||
<p class="form-control-static">
|
||||
<a href="{$row.invoice_file|cdnurl|htmlentities}" target="_blank" class="btn btn-xs btn-info js-image-preview-if-image"><i class="fa fa-download"></i> 查看/下载电子发票</a>
|
||||
<a href="{$row.invoice_file|cdnurl|htmlentities}" target="_blank" rel="noopener noreferrer" class="btn btn-xs btn-info"><i class="fa fa-external-link"></i> 打开电子发票原件</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
在新工单中引用
屏蔽一个用户