Commit 400e1e37 authored by agping's avatar agping

财务修改

parent 6a42e204
...@@ -92,13 +92,13 @@ class Collection extends Basic ...@@ -92,13 +92,13 @@ class Collection extends Basic
if(!isset($params["collection_id"]) || $params["collection_id"] <= 0){ if(!isset($params["collection_id"]) || $params["collection_id"] <= 0){
return $this->response("101","请求参数错误"); return $this->response("101","请求参数错误");
} }
if(!isset($params["collection_id"]) || $params["collection_id"] <= 0){ if(!isset($params["real_money"]) || $params["real_money"] <= 0){
return $this->response("101","请求参数错误"); return $this->response("101","请求参数错误");
} }
$where_["id"] = $params["collection_id"]; $where_["id"] = $params["collection_id"];
$where_["real_money"] = $params["real_money"]; $where_["real_money"] = $params["real_money"];
$order = new OPayLogModel(); $order = new OPayLogModel();
$id = $order->updatePayLog($params); $id = $order->updatePayLog($where_);
if($id > 0 ){ if($id > 0 ){
return $this->response("200","编辑成功"); return $this->response("200","编辑成功");
}else{ }else{
......
...@@ -33,9 +33,12 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css ...@@ -33,9 +33,12 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
$("#reset").click(function() { //重置 $("#reset").click(function() { //重置
document.getElementById("form_search").reset(); document.getElementById("form_search").reset();
}); });
$ (document).delegate (".submit_edit2", "click", function () {//提交
follow.house_id2 = $ (this).attr ("data-id");
console.log(follow.house_id2);
});
$ (document).delegate (".submit_edit", "click", function () {//提交 $ (document).delegate (".submit_edit", "click", function () {//提交
follow.house_id = $ (this).attr ("data-id");
follow.Submit_follow(); follow.Submit_follow();
}); });
$ (document).on ("input","#cus_fang", function () {//手机号搜索客方2 $ (document).on ("input","#cus_fang", function () {//手机号搜索客方2
...@@ -85,16 +88,15 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css ...@@ -85,16 +88,15 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
Submit_follow: function() { //提交 Submit_follow: function() { //提交
$.ajax({ $.ajax({
'type': 'POST', 'type': 'POST',
'url': 'index/addRealMoney', 'url': '/index/addRealMoney',
data: { data: {
"collection_id": follow.house_id, "collection_id": follow.house_id2,
"real_money": $("#real_money").val(), "real_money": $("#real_money").val(),
}, },
dataType: "json", dataType: "json",
success: function(data) { success: function(data) {
if(data.code == 200) { if(data.code == 200) {
if(data.data) { follow.getList(0);
}
} else { } else {
} }
} }
......
...@@ -6,14 +6,14 @@ ...@@ -6,14 +6,14 @@
<td>[%= it[item]['user_name'] %]</td> <td>[%= it[item]['user_name'] %]</td>
<td>[%= it[item]['user_phone'] %]</td> <td>[%= it[item]['user_phone'] %]</td>
<td>[%= it[item]['money'] %]</td> <td>[%= it[item]['money'] %]</td>
<td>[%= it[item]['money'] %]</td> <td>[%= it[item]['real_money'] %]</td>
<td class="pay_type">[%= it[item]['pay_type'] %]</td> <td class="pay_type">[%= it[item]['pay_type'] %]</td>
<td>[%= it[item]['type'] %]</td> <td>[%= it[item]['type'] %]</td>
<td>[%= it[item]['internal_address'] %]</td> <td>[%= it[item]['internal_address'] %]</td>
<td>[%= it[item]['house_number'] %]</td> <td>[%= it[item]['house_number'] %]</td>
<td> <td>
<a class="btn1 btn-info timeline" href="#modal-time" data-toggle="modal" data-id='[%= it[item]["order_id"] %]'>时间轴</a> <a class="btn1 btn-info timeline" href="#modal-time" data-toggle="modal" data-id='[%= it[item]["order_id"] %]'>时间轴</a>
<a class="btn1 btn-info " href="#modal-linetime" data-toggle="modal" data-id='[%= it[item]["id"] %]'>编辑</a> <a class="btn1 btn-info submit_edit2" href="#modal-linetime" 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