Commit fc5fcf4e authored by agping's avatar agping

收款记录 删除按钮

parent 290ecf36
......@@ -426,9 +426,9 @@
</div>
</div>
<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 type="button" class="btn btn-primary" id="confirm_delete">
<button type="button" class="btn btn-primary" id="confirm_delete" data-dismiss="modal">
删除
</button>
</div>
......
......@@ -441,13 +441,17 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
// 删除收款记录
delete_collection: function(params) {
$.ajax({
url: '/index/getDistrictStoreList',
url: '/index/updatePayLog',
type: 'POST',
async: true,
data: params,
dataType: 'json',
success: function(data) {
if(data.code == 200) {
alert('删除成功')
} else {
alert(data['msg']);
};
}
});
},
......
......@@ -8,7 +8,6 @@
<td>[%= it[item]['store_name'] %]</td>
<td>[%= it[item]['money'] %]</td>
<td>[%= it[item]['real_money'] %]</td>
<!--<td>[%= it[item]['transaction_fee'] %]</td>-->
<td>[%= it[item]['type'] %]</td>
<td>[%= it[item]['pay_type'] %]</td>
<td>[%= it[item]['internal_address'] %]</td>
......@@ -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 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-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>
</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