提交 adec06e2 authored 作者: chengye's avatar chengye 提交者: wangkr

init 2020-5-7

上级 2522c76b
......@@ -64,16 +64,15 @@
</div>
</div>
</div>
<div class="layui-col-md5">
<div class="layui-form-item">
<label class="layui-form-label layui-text-left">
缴费凭证:
</label>
<div class="layui-input-inline">
<a class="layui-btn layui-btn-normal layui-right" lay-submit lay-filter="showCert" οnclick="return false;">查看</a>
<a class="layui-btn layui-btn-normal layui-right" lay-submit lay-filter="showCert" onclick="return false;">查看</a>
{if $payment.status <= 3}
<button class="layui-btn layui-btn-normal layui-right" lay-submit lay-filter="addCert" οnclick="return false;"><i class="layui-icon layui-icon-add-circle-fine"></i></button>
<button class="layui-btn layui-btn-normal layui-right" lay-submit lay-filter="addCert" onclick="return false;"><i class="layui-icon layui-icon-add-circle-fine"></i></button>
{/if}
</div>
</div>
......@@ -85,9 +84,9 @@
发票凭证:
</label>
<div class="layui-input-inline">
<a class="layui-btn layui-btn-normal layui-right" lay-submit lay-filter="showReceipt" οnclick="return false;">查看</a>
<a class="layui-btn layui-btn-normal layui-right" lay-submit lay-filter="showReceipt" onclick="return false;">查看</a>
{if $payment.status <= 3}
<button class="layui-btn layui-btn-normal layui-right" lay-submit lay-filter="addReceipt" οnclick="return false;"><i class="layui-icon layui-icon-add-circle-fine"></i></button>
<button class="layui-btn layui-btn-normal layui-right" lay-submit lay-filter="addReceipt" onclick="return false;"><i class="layui-icon layui-icon-add-circle-fine"></i></button>
{/if}
</div>
</div>
......@@ -141,6 +140,11 @@
审核
</button>
{/if}
{if $payment.oa_numb == ''}
<button class="layui-btn" lay-filter="pay" lay-submit="">
创建付款
</button>
{/if}
</div>
</div>
</div>
......@@ -278,6 +282,27 @@
return false;
});
//审核通过
form.on('submit(pay)',
function (data) {
$.ajax({
url: '/payment/payoa',
method: "POST",
data: data.field,
dataType: "json",
success: function (data) {
if (data.status == 1) {
layer.msg(data.message,{icon: 6,time: 2000},function(){
window.location.href="/payment"
})
} else {
layer.msg(data.message || data.msg,{icon: 5,time: 1000 })
}
}
});
return false;
});
//上传电表照片
var upPhoto = upload.render({
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论