286 lines
11 KiB
Plaintext
286 lines
11 KiB
Plaintext
@model CRM.Core.Model.Entity.WX_SzzyOrderRefund
|
|
@{
|
|
ViewBag.Title = "Audit";
|
|
Layout = "~/Views/Shared/_Layout.cshtml";
|
|
}
|
|
|
|
<div class="x-body">
|
|
<style>
|
|
.x-body {
|
|
padding: 0px 20px 20px 20px;
|
|
}
|
|
|
|
.layui-table, .layui-table-view {
|
|
margin: 5px 0;
|
|
}
|
|
|
|
.layui-border-orange {
|
|
border-color: #FFB800 !important;
|
|
color: #FFB800 !important;
|
|
}
|
|
</style>
|
|
<div class="layui-form">
|
|
<table class="layui-table">
|
|
<colgroup>
|
|
<col width="200">
|
|
<col>
|
|
</colgroup>
|
|
@if (!Model.isacturalrefund.HasValue || Model.isacturalrefund == 1)
|
|
{
|
|
<tbody>
|
|
<tr>
|
|
<td>订单号:</td>
|
|
<td>@Html.DisplayFor(m => m.orderid)</td>
|
|
</tr>
|
|
<tr>
|
|
<td>类型:</td>
|
|
<td>
|
|
<span style="font-weight: bold; ">需实际退款</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>支付类型:</td>
|
|
<td>@Html.DisplayFor(m => m.refundtypename)</td>
|
|
</tr>
|
|
<tr>
|
|
<td>退款人账号:</td>
|
|
<td>@Html.DisplayFor(m => m.account)</td>
|
|
</tr>
|
|
<tr>
|
|
<td>退款人姓名:</td>
|
|
<td>@Html.DisplayFor(m => m.username)</td>
|
|
</tr>
|
|
<tr>
|
|
<td>退款金额:</td>
|
|
<td>@Html.DisplayFor(m => m.refundprice)</td>
|
|
</tr>
|
|
<tr>
|
|
<td>退款日期:</td>
|
|
<td>
|
|
@Html.DisplayFor(m => m.refunddate)
|
|
@Html.HiddenFor(m => m.isacturalrefund)
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>附件:</td>
|
|
<td>
|
|
@{ if (!string.IsNullOrEmpty(Model.att))
|
|
{
|
|
<a href="@Html.DisplayFor(m => m.att)" target="_blank" style="color:blue">下载</a>
|
|
} }
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>备注:</td>
|
|
<td>@Html.DisplayFor(m => m.remark)</td>
|
|
</tr>
|
|
<tr>
|
|
<td>退款凭证:</td>
|
|
<td>
|
|
<button type="button" class="layui-btn" id="uploadAtt2">上传凭证</button>
|
|
<i class="layui-icon layui-icon-ok layui-bg-green" style="display:none;" id="hasAtt2"></i>
|
|
<input type="hidden" name="att2" id="hidAtt2" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
退款协议:
|
|
</td>
|
|
<td>
|
|
@if (ViewBag.IsOpen == 1)
|
|
{
|
|
//如果是已经开通
|
|
if (ViewBag.ContractStatus == 2)
|
|
{
|
|
//如果以及签了退款协议
|
|
<span style="color:green; font-weight:bold">已通过</span>
|
|
}
|
|
@*else
|
|
{
|
|
if (ViewBag.isCompliance == 1)
|
|
{
|
|
<span style="color:red; font-weight:bold">未审核</span>
|
|
}
|
|
else
|
|
{
|
|
<span style="color:green; font-weight:bold">无需签协议</span>
|
|
}
|
|
}*@
|
|
}
|
|
else
|
|
{
|
|
<span style="color:green; font-weight:bold">无需签协议</span>
|
|
//如果是已经开通
|
|
@*if (ViewBag.ContractStatus == 2)
|
|
{
|
|
//如果以及签了退款协议
|
|
<span style="color:green; font-weight:bold">已通过</span>
|
|
}
|
|
else
|
|
{
|
|
if (ViewBag.ArrivalTime == null)
|
|
{
|
|
<span style="color:green; font-weight:bold">无需签协议</span>
|
|
}
|
|
else
|
|
{
|
|
if (ViewBag.ArrivalTime.ToString("yyyyMM") == ViewBag.RefundTime.ToString("yyyyMM"))
|
|
{
|
|
<span style="color:red; font-weight:bold">未审核</span>
|
|
}
|
|
else
|
|
{
|
|
<span style="color:green; font-weight:bold">无需签协议</span>
|
|
}
|
|
}
|
|
}*@
|
|
}
|
|
|
|
|
|
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
}
|
|
else
|
|
{
|
|
<tbody>
|
|
<tr>
|
|
<td>订单号:</td>
|
|
<td>@Html.DisplayFor(m => m.orderid)</td>
|
|
</tr>
|
|
<tr>
|
|
<td>类型:</td>
|
|
<td>
|
|
<span style="font-weight: bold; color: #FFB800;">退回可用余额</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>支付类型:</td>
|
|
<td>@Html.DisplayFor(m => m.refundtypename)</td>
|
|
</tr>
|
|
<tr>
|
|
<td>退款人账号:</td>
|
|
<td>@Html.DisplayFor(m => m.account)</td>
|
|
</tr>
|
|
<tr>
|
|
<td>退款人姓名:</td>
|
|
<td>
|
|
@Html.DisplayFor(m => m.username)
|
|
@Html.HiddenFor(m => m.isacturalrefund)
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>退款金额:</td>
|
|
<td>@Html.DisplayFor(m => m.refundprice)</td>
|
|
</tr>
|
|
<tr>
|
|
<td>退款日期:</td>
|
|
<td>@Html.DisplayFor(m => m.refunddate)</td>
|
|
</tr>
|
|
<tr>
|
|
<td>备注:</td>
|
|
<td>@Html.DisplayFor(m => m.remark)</td>
|
|
</tr>
|
|
</tbody>
|
|
}
|
|
</table>
|
|
@Html.HiddenFor(m => m.id)
|
|
@if (!Model.isacturalrefund.HasValue || Model.isacturalrefund == 1)
|
|
{
|
|
<button class="layui-btn" id="save">确定退款</button>
|
|
<button class="layui-btn" id="refund">只退款,不取消权限</button>
|
|
}
|
|
else
|
|
{
|
|
<button class="layui-btn" id="save">确认退回余额</button>
|
|
<button class="layui-btn" id="refund">退回余额,不取消权限</button>
|
|
}
|
|
</div>
|
|
</div>
|
|
<script>
|
|
layui.use(['upload'], function () {
|
|
var upload = layui.upload
|
|
, layer = layui.layer
|
|
, $ = layui.jquery;
|
|
|
|
upload.render({ //允许上传的文件后缀
|
|
elem: '#uploadAtt2'
|
|
, url: '/OrderRefund/UploadAtt'
|
|
, accept: 'file' //普通文件
|
|
, exts: 'zip|rar|7z|jpg|png|gif|bmp|jpeg|txt|doc|docx|xls|xlsx' //只允许上传压缩文件
|
|
, size: 100000 //限制文件大小,单位 KB
|
|
, done: function (res) {
|
|
console.log(res)
|
|
if (res.result) {
|
|
$("#hidAtt2").val(res.retmsg);
|
|
$("#hasAtt2").show();
|
|
}
|
|
}
|
|
});
|
|
|
|
$("#save").click(function () {
|
|
var isacturalrefund = $("#isacturalrefund").val();//
|
|
var id = $("#id").val();
|
|
var att2 = $("#hidAtt2").val();
|
|
if (att2 == "" && isacturalrefund == "1") {//需要实际退款的才需要
|
|
layer.alert("请上传退款凭证!");
|
|
return;
|
|
}
|
|
$.r_post('/OrderRefund/Audit', { id: id, att2: att2, status: 90, isacturalrefund: isacturalrefund }, function (result) {
|
|
if (result.result) {
|
|
layer.alert("操作成功!", {
|
|
yes: function () {
|
|
parent.window.location.reload();
|
|
}
|
|
})
|
|
} else {
|
|
layer.open({
|
|
title: '错误提示'
|
|
, content: result.retmsg
|
|
});
|
|
}
|
|
});
|
|
});
|
|
|
|
$("#cancal").click(function () {
|
|
var id = $("#id").val();
|
|
$.r_post('/OrderRefund/Audit', { id: id, status: 70 }, function (result) {
|
|
if (result.result) {
|
|
layer.alert("操作成功!", {
|
|
yes: function () {
|
|
parent.window.location.reload();
|
|
}
|
|
})
|
|
} else {
|
|
layer.open({
|
|
title: '错误提示'
|
|
, content: result.retmsg
|
|
});
|
|
}
|
|
});
|
|
});
|
|
|
|
$("#refund").click(function () {
|
|
var id = $("#id").val();
|
|
var isacturalrefund = $("#isacturalrefund").val();//
|
|
$.r_post('/OrderRefund/Audit', { id: id, status: 220, isacturalrefund: isacturalrefund }, function (result) {
|
|
if (result.result) {
|
|
layer.alert("操作成功!", {
|
|
yes: function () {
|
|
parent.window.location.reload();
|
|
}
|
|
})
|
|
} else {
|
|
layer.open({
|
|
title: '错误提示'
|
|
, content: result.retmsg
|
|
});
|
|
}
|
|
});
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|