Authored by LUOXC

添加手动已付款

@@ -53,6 +53,7 @@ @@ -53,6 +53,7 @@
53 <div id="refundConfirmDialog" class="easyui-dialog" style="width:400px;height:300px;" 53 <div id="refundConfirmDialog" class="easyui-dialog" style="width:400px;height:300px;"
54 data-options="title:'人工打款确认',buttons:'#refundConfirmDialog_tb',modal:true,closed:true"> 54 data-options="title:'人工打款确认',buttons:'#refundConfirmDialog_tb',modal:true,closed:true">
55 <div style="padding:20px;"> 55 <div style="padding:20px;">
  56 + <input id="refund_sceneId" type="hidden" readonly disabled/>
56 <input id="refund_tradeBillsId" type="hidden" readonly disabled/> 57 <input id="refund_tradeBillsId" type="hidden" readonly disabled/>
57 <input id="refund_uid" type="hidden" readonly disabled/> 58 <input id="refund_uid" type="hidden" readonly disabled/>
58 <label>订 单 编 号:</label> 59 <label>订 单 编 号:</label>
@@ -194,13 +195,19 @@ function getTradeBillsList(){ @@ -194,13 +195,19 @@ function getTradeBillsList(){
194 align: "center", 195 align: "center",
195 formatter: function (value, rowData, rowIndex) { 196 formatter: function (value, rowData, rowIndex) {
196 if (rowData.tradeStatus != 100) { 197 if (rowData.tradeStatus != 100) {
197 - var btn= "<a role='refundsConfirm' onclick='openConfirmDialog(\"%s\",\"%s\",\"%s\",\"%s\",\"%s\")' style='margin-left:10px;background-color: #5cb85c !important;'>打款</a>"; 198 + var btn= "<a role='refundsConfirm' onclick='openConfirmDialog(0,\"%s\",\"%s\",\"%s\",\"%s\",\"%s\")' style='margin-left:10px;background-color: #5cb85c !important;'>打款</a>";
198 btn = btn.replace("%s",rowData.id); 199 btn = btn.replace("%s",rowData.id);
199 btn = btn.replace("%s",rowData.uid); 200 btn = btn.replace("%s",rowData.uid);
200 btn = btn.replace("%s",rowData.orderCode); 201 btn = btn.replace("%s",rowData.orderCode);
201 btn = btn.replace("%s",rowData.alipayAccount); 202 btn = btn.replace("%s",rowData.alipayAccount);
202 btn = btn.replace("%s",rowData.amount); 203 btn = btn.replace("%s",rowData.amount);
203 - return btn; 204 + var markPaidBtn = "<a role='refundsConfirm' onclick='openConfirmDialog(10,\"%s\",\"%s\",\"%s\",\"%s\",\"%s\")' style='margin-left:10px;background-color: #5cb85c !important;'>已打款</a>";
  205 + markPaidBtn = markPaidBtn.replace("%s",rowData.id);
  206 + markPaidBtn = markPaidBtn.replace("%s",rowData.uid);
  207 + markPaidBtn = markPaidBtn.replace("%s",rowData.orderCode);
  208 + markPaidBtn = markPaidBtn.replace("%s",rowData.alipayAccount);
  209 + markPaidBtn = markPaidBtn.replace("%s",rowData.amount);
  210 + return btn + markPaidBtn;
204 } 211 }
205 } 212 }
206 }]], 213 }]],
@@ -215,26 +222,28 @@ function getTradeBillsList(){ @@ -215,26 +222,28 @@ function getTradeBillsList(){
215 }); 222 });
216 } 223 }
217 224
218 -function openConfirmDialog(id,uid,orderCode,alipayAccount,amount) { 225 +function openConfirmDialog(sceneId,id,uid,orderCode,alipayAccount,amount) {
219 //重新赋值 226 //重新赋值
  227 + $("#refund_sceneId").val(sceneId);
220 $("#refund_tradeBillsId").val(id); 228 $("#refund_tradeBillsId").val(id);
221 $("#refund_uid").val(uid); 229 $("#refund_uid").val(uid);
222 $("#refund_orderCode").textbox('setValue',orderCode); 230 $("#refund_orderCode").textbox('setValue',orderCode);
223 $("#refund_alipayAccount").textbox('setValue',alipayAccount); 231 $("#refund_alipayAccount").textbox('setValue',alipayAccount);
224 $("#refund_amount").textbox('setValue',amount); 232 $("#refund_amount").textbox('setValue',amount);
225 -  
226 $("#refundConfirmDialog").dialog('open'); 233 $("#refundConfirmDialog").dialog('open');
227 } 234 }
228 235
229 //确认打款 236 //确认打款
230 function refundGo() { 237 function refundGo() {
231 var param={}; 238 var param={};
  239 + param.sceneId = $("#refund_sceneId").val();
232 param.tradeBillsId = $("#refund_tradeBillsId").val(); 240 param.tradeBillsId = $("#refund_tradeBillsId").val();
233 param.uid=$("#refund_uid").val(); 241 param.uid=$("#refund_uid").val();
234 param.orderCode=$("#refund_orderCode").val(); 242 param.orderCode=$("#refund_orderCode").val();
235 param.alipayAccount=$("#refund_alipayAccount").val(); 243 param.alipayAccount=$("#refund_alipayAccount").val();
236 param.amount=$("#refund_amount").val(); 244 param.amount=$("#refund_amount").val();
237 245
  246 +
238 //发送请求 247 //发送请求
239 $.ajax({ 248 $.ajax({
240 type: "POST", 249 type: "POST",