Showing
1 changed file
with
8 additions
and
6 deletions
@@ -291,6 +291,12 @@ function getTradeBillsList(){ | @@ -291,6 +291,12 @@ function getTradeBillsList(){ | ||
291 | width: 40, | 291 | width: 40, |
292 | align: "center", | 292 | align: "center", |
293 | formatter: function (value, rowData, rowIndex) { | 293 | formatter: function (value, rowData, rowIndex) { |
294 | + var markPaidbtn= "<a role='confirmDialog' onclick='openMarkPaidConfirmDialog(\"%s\",\"%s\",\"%s\",\"%s\",\"%s\")' style='margin-left:10px;background-color: #d9534f !important;'>已打款</a>"; | ||
295 | + markPaidbtn = markPaidbtn.replace("%s",rowData.id); | ||
296 | + markPaidbtn = markPaidbtn.replace("%s",rowData.uid); | ||
297 | + markPaidbtn = markPaidbtn.replace("%s",rowData.orderCode); | ||
298 | + markPaidbtn = markPaidbtn.replace("%s",rowData.alipayAccount); | ||
299 | + markPaidbtn = markPaidbtn.replace("%s",rowData.amount); | ||
294 | // 已收款 和 等待打款结果 不可以打款 | 300 | // 已收款 和 等待打款结果 不可以打款 |
295 | if (rowData.tradeStatus != 100 && rowData.tradeStatus != 90) { | 301 | if (rowData.tradeStatus != 100 && rowData.tradeStatus != 90) { |
296 | var btn= "<a role='confirmDialog' onclick='openConfirmDialog(\"%s\",\"%s\",\"%s\",\"%s\",\"%s\")' style='margin-left:10px;background-color: #5cb85c !important;'>打款</a>"; | 302 | var btn= "<a role='confirmDialog' onclick='openConfirmDialog(\"%s\",\"%s\",\"%s\",\"%s\",\"%s\")' style='margin-left:10px;background-color: #5cb85c !important;'>打款</a>"; |
@@ -299,13 +305,9 @@ function getTradeBillsList(){ | @@ -299,13 +305,9 @@ function getTradeBillsList(){ | ||
299 | btn = btn.replace("%s",rowData.orderCode); | 305 | btn = btn.replace("%s",rowData.orderCode); |
300 | btn = btn.replace("%s",rowData.alipayAccount); | 306 | btn = btn.replace("%s",rowData.alipayAccount); |
301 | btn = btn.replace("%s",rowData.amount); | 307 | btn = btn.replace("%s",rowData.amount); |
302 | - var markPaidbtn= "<a role='confirmDialog' onclick='openMarkPaidConfirmDialog(\"%s\",\"%s\",\"%s\",\"%s\",\"%s\")' style='margin-left:10px;background-color: #d9534f !important;'>已打款</a>"; | ||
303 | - markPaidbtn = markPaidbtn.replace("%s",rowData.id); | ||
304 | - markPaidbtn = markPaidbtn.replace("%s",rowData.uid); | ||
305 | - markPaidbtn = markPaidbtn.replace("%s",rowData.orderCode); | ||
306 | - markPaidbtn = markPaidbtn.replace("%s",rowData.alipayAccount); | ||
307 | - markPaidbtn = markPaidbtn.replace("%s",rowData.amount); | ||
308 | return btn + markPaidbtn; | 308 | return btn + markPaidbtn; |
309 | + } else if (rowData.tradeStatus == 90) { | ||
310 | + return markPaidbtn; | ||
309 | } | 311 | } |
310 | } | 312 | } |
311 | }]], | 313 | }]], |
-
Please register or login to post a comment