...
|
...
|
@@ -53,6 +53,7 @@ |
|
|
<div id="refundConfirmDialog" class="easyui-dialog" style="width:400px;height:300px;"
|
|
|
data-options="title:'人工打款确认',buttons:'#refundConfirmDialog_tb',modal:true,closed:true">
|
|
|
<div style="padding:20px;">
|
|
|
<input id="refund_sceneId" type="hidden" readonly disabled/>
|
|
|
<input id="refund_tradeBillsId" type="hidden" readonly disabled/>
|
|
|
<input id="refund_uid" type="hidden" readonly disabled/>
|
|
|
<label>订 单 编 号:</label>
|
...
|
...
|
@@ -194,13 +195,19 @@ function getTradeBillsList(){ |
|
|
align: "center",
|
|
|
formatter: function (value, rowData, rowIndex) {
|
|
|
if (rowData.tradeStatus != 100) {
|
|
|
var btn= "<a role='refundsConfirm' onclick='openConfirmDialog(\"%s\",\"%s\",\"%s\",\"%s\",\"%s\")' style='margin-left:10px;background-color: #5cb85c !important;'>打款</a>";
|
|
|
var btn= "<a role='refundsConfirm' onclick='openConfirmDialog(0,\"%s\",\"%s\",\"%s\",\"%s\",\"%s\")' style='margin-left:10px;background-color: #5cb85c !important;'>打款</a>";
|
|
|
btn = btn.replace("%s",rowData.id);
|
|
|
btn = btn.replace("%s",rowData.uid);
|
|
|
btn = btn.replace("%s",rowData.orderCode);
|
|
|
btn = btn.replace("%s",rowData.alipayAccount);
|
|
|
btn = btn.replace("%s",rowData.amount);
|
|
|
return btn;
|
|
|
var markPaidBtn = "<a role='refundsConfirm' onclick='openConfirmDialog(10,\"%s\",\"%s\",\"%s\",\"%s\",\"%s\")' style='margin-left:10px;background-color: #5cb85c !important;'>已打款</a>";
|
|
|
markPaidBtn = markPaidBtn.replace("%s",rowData.id);
|
|
|
markPaidBtn = markPaidBtn.replace("%s",rowData.uid);
|
|
|
markPaidBtn = markPaidBtn.replace("%s",rowData.orderCode);
|
|
|
markPaidBtn = markPaidBtn.replace("%s",rowData.alipayAccount);
|
|
|
markPaidBtn = markPaidBtn.replace("%s",rowData.amount);
|
|
|
return btn + markPaidBtn;
|
|
|
}
|
|
|
}
|
|
|
}]],
|
...
|
...
|
@@ -215,26 +222,28 @@ function getTradeBillsList(){ |
|
|
});
|
|
|
}
|
|
|
|
|
|
function openConfirmDialog(id,uid,orderCode,alipayAccount,amount) {
|
|
|
function openConfirmDialog(sceneId,id,uid,orderCode,alipayAccount,amount) {
|
|
|
//重新赋值
|
|
|
$("#refund_sceneId").val(sceneId);
|
|
|
$("#refund_tradeBillsId").val(id);
|
|
|
$("#refund_uid").val(uid);
|
|
|
$("#refund_orderCode").textbox('setValue',orderCode);
|
|
|
$("#refund_alipayAccount").textbox('setValue',alipayAccount);
|
|
|
$("#refund_amount").textbox('setValue',amount);
|
|
|
|
|
|
$("#refundConfirmDialog").dialog('open');
|
|
|
}
|
|
|
|
|
|
//确认打款
|
|
|
function refundGo() {
|
|
|
var param={};
|
|
|
param.sceneId = $("#refund_sceneId").val();
|
|
|
param.tradeBillsId = $("#refund_tradeBillsId").val();
|
|
|
param.uid=$("#refund_uid").val();
|
|
|
param.orderCode=$("#refund_orderCode").val();
|
|
|
param.alipayAccount=$("#refund_alipayAccount").val();
|
|
|
param.amount=$("#refund_amount").val();
|
|
|
|
|
|
|
|
|
//发送请求
|
|
|
$.ajax({
|
|
|
type: "POST",
|
...
|
...
|
|