Commit 864fe494 authored by agping's avatar agping

修改

parent 4afed411
...@@ -200,6 +200,9 @@ ...@@ -200,6 +200,9 @@
width: 600px; width: 600px;
} }
.clear{
clear: both;
}
/*css样式*/ /*css样式*/
</style> </style>
<div id="page-content-wrapper"> <div id="page-content-wrapper">
...@@ -227,13 +230,46 @@ ...@@ -227,13 +230,46 @@
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="shop_num" placeholder="商铺号" type="text" value=""> <input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="shop_num" placeholder="商铺号" type="text" value="">
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="customer_phone" placeholder="客户手机号" type="text" value=""> <input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="customer_phone" placeholder="客户手机号" type="text" value="">
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="customer_name" placeholder="客户姓名" type="text" value=""> <input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="customer_name" placeholder="客户姓名" type="text" value="">
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="store_name" placeholder="门店" type="text" value=""> <!--<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="store_name" placeholder="门店" type="text" value="">-->
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="applicant_phone" placeholder="报备手机号" type="text" value=""> <select class="form-control btn2 ld-Marheight" name="maintable_shop_type_1" id="maintable_deal_type">
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="applicant_name" placeholder="报备人姓名" type="text" value=""> <option value="">入账类型</option>
<option value="10">意向金</option>
<option value="20">定金</option>
<option value="30">保管金</option>
<option value="40">押金</option>
<option value="50">租金</option>
<option value="60">进场费</option>
<option value="70">转让费</option>
<option value="80">其他</option>
<option value="90">佣金</option>
</select>
<select class="form-control btn2 ld-Marheight" name="maintable_shop_type_2" id="maintable_money_type">
<option value="">入账方式</option>
<option value="10">支付宝</option>
<option value="20">微信</option>
<option value="30">POS机器</option>
<option value="40">转账</option>
<option value="50">现金</option>
<option value="60">其他</option>
</select>
<select name="district_id" class="form-control btn4 ld-Marheight">
<option value="">约带看人所在部门</option>
</select>
<select name="store_id" class="form-control btn4 ld-Marheight">
<option value="">约带看人所在门店</option>
</select>
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="applicant_phone" placeholder="约带看人手机号" type="text" value="">
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="applicant_name" placeholder="约带看人姓名" type="text" value="">
<div class="clear">
</div>
<!--<span class=" btn btn-info btn3 ld-Marheight" style="visibility: hidden;">搜索</span>--> <!--<span class=" btn btn-info btn3 ld-Marheight" style="visibility: hidden;">搜索</span>-->
<span class="btn btn-info btn3 ld-Marheight" id="search">搜索</span> <span class="btn btn-info btn3 ld-Marheight" id="search">搜索</span>
<span class="btn btn-info btn3 ld-Marheight" id="reset">重置</span> <span class="btn btn-info btn3 ld-Marheight" id="reset">重置</span>
<span class="money_total_two fore-span ld-Marheight ">总额:</span><span id="money_total" class="money_total_two fore-span ld-Marheight"></span> <span class="money_total_two fore-span ld-Marheight ">收款总额:</span><span id="money_total" class="money_total_two fore-span ld-Marheight"></span>
<!--<span class="money_total_two fore-span ld-Marheight ">实付总额:</span><span id="money_total" class="money_total_two_shifu fore-span ld-Marheight">1268</span>元-->
<span class="btn btn-info btn3 ld-Marheight" id="export">导出报表</span> <span class="btn btn-info btn3 ld-Marheight" id="export">导出报表</span>
</form> </form>
</form> </form>
...@@ -241,11 +277,12 @@ ...@@ -241,11 +277,12 @@
</tr> </tr>
<tr> <tr>
<th class="text-center">收款时间</th> <th class="text-center">收款时间</th>
<th class="text-center">客户姓名</th> <th class="text-center">约带看人</th>
<th class="text-center">客户手机号</th> <th class="text-center">所属部门</th>
<th class="text-center">所属门店</th>
<th class="text-center">收款金额(元)</th> <th class="text-center">收款金额(元)</th>
<th class="text-center">实付金额(元)</th> <th class="text-center">实付金额(元)</th>
<th class="text-center">手续费(元)</th> <!--<th class="text-center">手续费(元)</th>-->
<th class="text-center">入账类型</th> <th class="text-center">入账类型</th>
<th class="text-center">入账方式</th> <th class="text-center">入账方式</th>
<th class="text-center">商铺地址</th> <th class="text-center">商铺地址</th>
......
...@@ -29,6 +29,29 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css ...@@ -29,6 +29,29 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
$("#search").click(function() { $("#search").click(function() {
follow.getList(1); follow.getList(1);
}); });
//二级联动
follow.getDistrict(function() {
_doc.on('input', '[name=district_id],#district_id2', function() {
var _this = $(this);
var _id = _this.val();
_this.next().html(''); //先清空
//新增 编辑
var _objTemp = _this.parent().next().find('select');
_objTemp.html(''); //先清空
if(_id && _id != '0') {
follow.getDistrictStoreList(_id, function(_data) {
// var _str = '';
var _str = '<option value="0">全部</option>';
$.each(_data, function(i, item) {
_str += '<option value="' + item.id + '">' + item.store_name + '</option>';
});
_objTemp.html(_str);
_this.next().html(_str);
});
} else {};
});
});
//收款图片按钮点击的事件 //收款图片按钮点击的事件
_doc.on('click', '.add-pic', function() {//区分收款记录的id 和 father-id 获取图片 和保存图片 都区分 _doc.on('click', '.add-pic', function() {//区分收款记录的id 和 father-id 获取图片 和保存图片 都区分
...@@ -167,11 +190,11 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css ...@@ -167,11 +190,11 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
}, },
//编辑-收付金额-保存 //编辑-收付金额-保存
Submit_follow: function() {//提交 Submit_follow: function() {//提交
if(!($("#real_money").val()>0&&$("#real_money2").val()>0)){ // if(!($("#real_money").val()>0&&$("#real_money2").val()>0)){
alert('实付金额及手续费需大于0') // alert('实付金额及手续费需大于0')
return false; // return false;
//
} // }
$.ajax({ $.ajax({
'type': 'POST', 'type': 'POST',
'url': '/index/addRealMoney', 'url': '/index/addRealMoney',
...@@ -329,9 +352,12 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css ...@@ -329,9 +352,12 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
params.internal_address = $('#shop_name').val(); params.internal_address = $('#shop_name').val();
params.user_phone = $('#customer_phone').val(); params.user_phone = $('#customer_phone').val();
params.id = $('#shop_num').val(); params.id = $('#shop_num').val();
params.store_name = $('#store_name').val();
params.report_phone = $('#applicant_phone').val(); params.report_phone = $('#applicant_phone').val();
params.report_name = $('#applicant_name').val(); params.report_name = $('#applicant_name').val();
params.store_id = $("select[name='store_id'] option:selected").val();
params.district_id = $("select[name='district_id'] option:selected").val();
params.pay_type = $("select[name='maintable_shop_type_2'] option:selected").val();
params.type = $("select[name='maintable_shop_type_1'] option:selected").val();
params.pageNo = follow.pageNo; params.pageNo = follow.pageNo;
params.pageSize = follow.pageSize; params.pageSize = follow.pageSize;
...@@ -368,7 +394,47 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css ...@@ -368,7 +394,47 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
}; };
} }
}); });
} },
getDistrict: function(fn) {
$.ajax({
url: '/index/getDistrict',
type: 'GET',
async: true,
data: {
"pageSize": 1000
},
dataType: 'json',
success: function(data) {
if(data.code == 200 && data.data != null) {
var str = '';
$.each(data.data, function(i, item) {
str += '<option value="' + item.id + '">' + item.district_name + '</option>';
});
$('[name=district_id]').append(str);
$('#district_id2').append(str);
fn && fn();
}
}
});
},
getDistrictStoreList: function(id, fn) {
$.ajax({
url: '/index/getDistrictStoreList',
type: 'GET',
async: true,
data: {
'id': id,
"pageSize": 1000
},
dataType: 'json',
success: function(data) {
if(data.code == 200 && data.data != null) {
fn && fn(data.data);
}
}
});
},
}; };
return follow; return follow;
}); });
\ No newline at end of file
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
[% for(var item in it){ %] [% for(var item in it){ %]
<tr class="text-center"> <tr class="text-center">
<td>[%= it[item]['create_time'] %]</td> <td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['user_name'] %]</td> <td>[%= it[item]['report_agent_name'] %]-[%= it[item]['report_agent_phone'] %]</td>
<td>[%= it[item]['user_phone'] %]</td> <td>[%= it[item]['district_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>
......
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