Commit fc5fcf4e authored by agping's avatar agping

收款记录 删除按钮

parent 290ecf36
...@@ -426,9 +426,9 @@ ...@@ -426,9 +426,9 @@
</div> </div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭 <button type="button" class="btn btn-default" data-dismiss="modal">取消
</button> </button>
<button type="button" class="btn btn-primary" id="confirm_delete"> <button type="button" class="btn btn-primary" id="confirm_delete" data-dismiss="modal">
删除 删除
</button> </button>
</div> </div>
......
...@@ -441,13 +441,17 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css ...@@ -441,13 +441,17 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
// 删除收款记录 // 删除收款记录
delete_collection: function(params) { delete_collection: function(params) {
$.ajax({ $.ajax({
url: '/index/getDistrictStoreList', url: '/index/updatePayLog',
type: 'POST', type: 'POST',
async: true, async: true,
data: params, data: params,
dataType: 'json', dataType: 'json',
success: function(data) { success: function(data) {
if(data.code == 200) {
alert('删除成功')
} else {
alert(data['msg']);
};
} }
}); });
}, },
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
<td>[%= it[item]['store_name'] %]</td> <td>[%= it[item]['store_name'] %]</td>
<td>[%= it[item]['money'] %]</td> <td>[%= it[item]['money'] %]</td>
<td>[%= it[item]['real_money'] %]</td> <td>[%= it[item]['real_money'] %]</td>
<!--<td>[%= it[item]['transaction_fee'] %]</td>-->
<td>[%= it[item]['type'] %]</td> <td>[%= it[item]['type'] %]</td>
<td>[%= it[item]['pay_type'] %]</td> <td>[%= it[item]['pay_type'] %]</td>
<td>[%= it[item]['internal_address'] %]</td> <td>[%= it[item]['internal_address'] %]</td>
...@@ -17,7 +16,10 @@ ...@@ -17,7 +16,10 @@
<a class="btn1 btn-success add-pic" href="#modal-addPic" data-toggle="modal" data-id='[%= it[item]["id"] %]' father-id='[%= it[item]["father_id"] %]'>收款图片</a> <a class="btn1 btn-success add-pic" href="#modal-addPic" data-toggle="modal" data-id='[%= it[item]["id"] %]' father-id='[%= it[item]["father_id"] %]'>收款图片</a>
<a class="btn1 btn-success timeline" href="#modal-time" data-toggle="modal" data-id='[%= it[item]["order_id"] %]'>时间轴</a> <a class="btn1 btn-success timeline" href="#modal-time" data-toggle="modal" data-id='[%= it[item]["order_id"] %]'>时间轴</a>
<a class="btn1 btn-success submit_edit2" href="#modal-linetime" data-toggle="modal" data-id='[%= it[item]["id"]%]' data-fee='[%= it[item]["transaction_fee"]%]' data-money='[%= it[item]["real_money"] %]'>实付金额</a> <a class="btn1 btn-success submit_edit2" href="#modal-linetime" data-toggle="modal" data-id='[%= it[item]["id"]%]' data-fee='[%= it[item]["transaction_fee"]%]' data-money='[%= it[item]["real_money"] %]'>实付金额</a>
<a class="btn1 btn-danger collection-del" href="#modal-delete" data-toggle="modal" data-id='[%= it[item]["id"] %]'>删除</a> [% if(check_auth('index/updatePayLog')) { %]
<a class="btn1 btn-danger collection-del" href="#modal-delete" data-toggle="modal" data-id='[%= it[item]["id"] %]'>删除</a>
[% } %]
</td> </td>
</tr> </tr>
[% } %] [% } %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment