Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
4cb1519c
Commit
4cb1519c
authored
Jun 20, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
财务修改
parent
bff4778f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
722 deletions
+28
-722
commission.js
public/resource/js/commission.js
+14
-359
tax.js
public/resource/js/tax.js
+14
-363
No files found.
public/resource/js/commission.js
View file @
4cb1519c
//define(['doT', 'text!temp/commission_template_tpl.html', 'css!style/home.css', 'ckfinder', 'ckfinderStart', 'pagination', 'bootstrapJs'], function(doT, template) {
// business = {
// pageNo: 1,
// /*第几页*/
// pageSize: 10,
// /*每页显示多少条*/
// id: '',
// house_id: '',
// type: '',
// valueCurrent: '',
// ajaxObj: '',
// stopstatus: true,
// ldHtml: $('.phone_list'),
// boxphoto: '',
// exclusive_id: 0,
// init: function() {
// //初始化dot
// $("body").append(template);
// business.getList();
// business.event();
// },
// event: function() {
// var _doc = $(document);
// $("#search").click(function() {
// business.getList(1);
// });
// $("#export").click(function() { //导出列表
// business.exportList();
// });
//
// $("#reset").click(function() { //重置
// document.getElementById("form_search").reset();
// });
//
// $(document).delegate(".del_modal", "click", function() {
// business.id = $(this).attr("data-id");
//
// });
// $(document).delegate(".caozuo", "click", function() { //点击操作记录
// business.Caozuo();
// });
// // 时间轴
// $(document).delegate(".timeline", "click", function() { //时间轴
// // business.house_id = $ (this).attr ("data-id");
// business.Timeline();
// });
// // 编辑
// $(document).delegate(".edit", "click", function() { //点击编辑
// business.house_id = $(this).attr("data-id");
// business.Edit();
// });
// $(document).delegate(".is_pass", "click", function() { //点击编辑
// follow.house_id = $(this).attr("data-id");
// console.log(follow.house_id);
// });
// $(document).delegate("#confirm_edit", "click", function() { //点击编辑确定
// business.confirmEdit();
// });
// $(document).delegate("#new-commission", "click", function() { //点击分佣提成
// business.newCommission();
// business.Caozuo();
// });
// //table切换
// $(document).delegate("#information", "click", function() {
// business.Information();
// });
// $(document).delegate("#fees", "click", function() {
// console.log(business.house_id);
// business.Fees();
// });
// $(document).delegate("#records", "click", function() {
// business.Records();
// });
// },
// Timeline: function() { //获取时间轴
// $.ajax({
// 'type': 'GET',
// 'url': '/index/selectReportAll',
// data: {
// "order_id": business.house_id
// },
// dataType: "json",
// success: function(data) {
// if(data.code == 200) {
// if(data.data) {
// console.log(data.data);
// }
// } else {
// alert('获取失败!');
// }
// }
// });
// },
// Edit: function() { //报告详情
// $(".Tswitch").eq(0).show();
// $(".Tswitch").eq(1).hide();
// $(".Tswitch").eq(2).hide();
// $("#information").removeClass("btn-default");
// $("#information").addClass("btn-info");
// $("#fees").removeClass("btn-info");
// $("#fees").addClass("btn-default");
// $("#records").removeClass("btn-info");
// $("#records").addClass("btn-default");
// console.log(business.house_id);
// $.ajax({
// 'type': 'GET',
// 'url': '/index/bargainInfo',
// data: {
// "id": business.house_id
// },
// dataType: "json",
// success: function(data) {
// if(data.code == 200) {
// if(data.data) {
// $(".create_time").html(data.data.create_time);
// $(".user_phone").html(data.data.user_phone);
// $(".user_name").html(data.data.user_name);
// $(".internal_address").html(data.data.internal_address);
// $(".internal_title").html(data.data.internal_title);
// $(".commission").val(data.data.commission);
// $(".practical_fee").val(data.data.practical_fee);
// }
// } else {
// alert('获取失败!');
// }
// }
// });
// },
// confirmEdit: function() { //修改报告详情
// $.ajax({
// 'type': 'POST',
// 'url': '/index/editBargainInfo',
// data: {
// "id": business.house_id,
// "scale_fee": $(".commission").val(),
// "practical_fee": $(".practical_fee").val()
// },
// dataType: "json",
// success: function(data) {
// if(data.code == 200) {
// if(data.data) {}
// } else {
// alert('获取失败!');
// }
// }
// });
// },
// Caozuo: function() { //分佣提成获取跟进详情的数据
// console.log(business);
// console.log(business.house_id);
// $.ajax({
// 'type': 'GET',
// 'url': '/index/commissionList',
// data: {
// "id": business.house_id
// },
// dataType: "json",
// success: function(data) {
// if(data.code == 200) {
// if(data.data) {
// var caozuo_table = "";
// $.each(data['data'], function(i, item) {
// caozuo_table += '<tr><td>' + item.role + '</td><td>' + item.agent_name + '</td><td>' + item.store_name +
// '</td><td>' + item.scale + '</td><td>' + item.scale_fee + '</td><td>' + item.practical_fee + '</td><td>' + item.content + '</td></tr>';
// });
// $("#caozuo_table").html(caozuo_table);
// $("#caozuo_table tr").each(function(e) { //不能为空
// var temp = $("#caozuo_table").find("tr").eq(e).find("td").eq(6).html(); //获取一列的值
// if(temp == 'null') {
// $("#caozuo_table").find("tr").eq(e).find("td").eq(6).html(" ")
// }
// });
// }
// } else {
// alert('获取失败!');
// }
// }
// });
// },
// Records: function() { //分佣提成数据
// $(".Tswitch").eq(0).hide();
// $(".Tswitch").eq(1).hide();
// $(".Tswitch").eq(2).show();
// $("#information").removeClass("btn-info");
// $("#information").addClass("btn-default");
// $("#fees").removeClass("btn-info");
// $("#fees").addClass("btn-default");
// $("#records").removeClass("btn-default");
// $("#records").addClass("btn-info");
// $.ajax({
// 'type': 'GET',
// 'url': '/index/payLogList',
// data: {
// "id": business.house_id
// },
// dataType: "json",
// success: function(data) {
// if(data.code == 200) {
// if(data.data) {
// var caozuo_table = "";
// $.each(data['data'], function(i, item) {
// caozuo_table += '<tr><td>' + item.create_time + '</td><td>' + item.money + '</td><td>' + item.type +
// '</td><td>' + item.pay_type + '</td><td>' + item.agent_name + '</td></tr>';
// });
// $("#tcaozuo_table").html(caozuo_table);
// $("#tcaozuo_table tr").each(function(e) { //不能为空
// var temp_one = $("#tcaozuo_table").find("tr").eq(e).find("td").eq(4).html();
// var temp = $("#tcaozuo_table").find("tr").eq(e).find("td").eq(3).html(); //获取一列的值
// var temp_two = $("#tcaozuo_table").find("tr").eq(e).find("td").eq(2).html();
// // 支付方式 10支付宝 20 微信 30pos机器 40转账 50现金 60其他
// if(temp * 1 == 10) {
// $("#tcaozuo_table").find("tr").eq(e).find("td").eq(3).html("支付宝")
// }
// if(temp * 1 == 20) {
// $("#tcaozuo_table").find("tr").eq(e).find("td").eq(3).html("微信")
// }
// if(temp * 1 == 30) {
// $("#tcaozuo_table").find("tr").eq(e).find("td").eq(3).html("pos机器")
// }
// if(temp * 1 == 40) {
// $("#tcaozuo_table").find("tr").eq(e).find("td").eq(3).html("转账")
// }
// if(temp * 1 == 50) {
// $("#tcaozuo_table").find("tr").eq(e).find("td").eq(3).html("现金")
// }
// if(temp * 1 == 60) {
// $("#tcaozuo_table").find("tr").eq(e).find("td").eq(3).html("其他")
// }
//
// // 付款类型 10意向金 20定金 30保管金 40押金 50 租金 60 进场费 70转让费 80其他
// if(temp_two * 1 == 10) {
// $("#tcaozuo_table").find("tr").eq(e).find("td").eq(2).html("意向金")
// }
// if(temp_two * 1 == 20) {
// $("#tcaozuo_table").find("tr").eq(e).find("td").eq(2).html("定金")
// }
// if(temp_two * 1 == 30) {
// $("#tcaozuo_table").find("tr").eq(e).find("td").eq(2).html("保管金")
// }
// if(temp_two * 1 == 40) {
// $("#tcaozuo_table").find("tr").eq(e).find("td").eq(2).html("押金")
// }
// if(temp_two * 1 == 50) {
// $("#tcaozuo_table").find("tr").eq(e).find("td").eq(2).html("租金")
// }
// if(temp_two * 1 == 60) {
// $("#tcaozuo_table").find("tr").eq(e).find("td").eq(2).html("进场费")
// }
// if(temp_two * 1 == 70) {
// $("#tcaozuo_table").find("tr").eq(e).find("td").eq(2).html("转让费")
// }
// if(temp_two * 1 == 80) {
// $("#tcaozuo_table").find("tr").eq(e).find("td").eq(2).html("其他")
// };
// if(temp_one == 'null') {
// $("#tcaozuo_table").find("tr").eq(e).find("td").eq(4).html(" ")
// }
//
// });
// }
// } else {
// alert('获取失败!');
// }
// }
// });
// },
// newCommission: function() { //新增分佣提成
// $.ajax({
// 'type': 'POST',
// 'url': '/index/addBargain',
// data: {
// "id": business.house_id,
// "role": $("#is_carefully_chosen").val(),
// "scale": $("#commission-rate").val(),
// "scale_fee": $("#should-commission").val(),
// },
// dataType: "json",
// success: function(data) {
// if(data.code == 200) {
// if(data.data) {
// console.log(666);
// }
// } else {
// alert('获取失败!');
// }
// }
// });
// },
// // table切换
// Information: function() {
// $(".Tswitch").eq(0).show();
// $(".Tswitch").eq(1).hide();
// $(".Tswitch").eq(2).hide();
// $("#information").removeClass("btn-default");
// $("#information").addClass("btn-info");
// $("#fees").removeClass("btn-info");
// $("#fees").addClass("btn-default");
// $("#records").removeClass("btn-info");
// $("#records").addClass("btn-default");
// },
// Fees: function() {
// $(".Tswitch").eq(0).hide();
// $(".Tswitch").eq(1).show();
// $(".Tswitch").eq(2).hide();
// $("#information").removeClass("btn-info");
// $("#information").addClass("btn-default");
// $("#fees").removeClass("btn-default");
// $("#fees").addClass("btn-info");
// $("#records").removeClass("btn-info");
// $("#records").addClass("btn-default");
//
// },
// getList: function(pageNo) {
// business.pageNo = pageNo;
// var params = {};
// params.pageNo = business.pageNo;
// params.pageSize = business.pageSize;
// params.create_time = $('#create_time') .val();
// params.end_time = $('#end_time') .val();
// params.internal_address = $('#internal_address').val();
// params.name = $('#user_name').val();
// params.phone = $('#user_phone').val();
// params.house_number = $('#internal_num').val();
//
// $.ajax({
// url: '/index/partialCommissionList', //获取列表
// type: 'GET',
// async: true,
// data: params,
// dataType: 'json',
// success: function(data) {
// console.log(data);
// var temp = document.getElementById('commission_list_tpl').innerHTML;
// var doTtmpl = doT.template(temp);
// $("#business_list").html(doTtmpl(data.data.data.list));
//
// /*分页代码*/
// add_page(data.data.data.total, pageNo, business.pageSize, business.getList);
// }
// });
// },
// exportList: function(pageNo) {
// //导出分佣提成列表
// business.pageNo = pageNo;
// var create_time = $('#create_time').val();
// var end_time = $('#end_time').val();
// var internal_address = $('#internal_address').val();
// var agent = $('#user_name').val();
// var user_phone = $('#user_phone').val();
// var house_number = $('#internal_num').val();
// window.open('/index/exportExcel?create_time=' + create_time + '&end_time=' + end_time + '&internal_address=' + internal_address + '&name=' + agent + '&phone=' + user_phone + '&house_number=' + house_number);
//
// },
//
// };
// return business;
//});
define
([
'doT'
,
'text!temp/commission_template_tpl.html'
,
'text!temp/reportList_shuiFee_template_tpl.html'
,
'text!temp/reportList_maidtwo_template_tpl.html'
,
'text!temp/reportList_maid_sub1_template_tpl.html'
,
'css!style/home.css'
,
'css!style/report_list.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
,
template_tax
,
template_maid
,
template_maid_sub1
)
{
define
([
'doT'
,
'text!temp/commission_template_tpl.html'
,
'text!temp/reportList_shuiFee_template_tpl.html'
,
'text!temp/reportList_maidtwo_template_tpl.html'
,
'text!temp/reportList_maid_sub1_template_tpl.html'
,
'css!style/home.css'
,
'css!style/report_list.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
,
template_tax
,
template_maid
,
template_maid_sub1
)
{
bargain
=
{
bargain
=
{
pageNo
:
1
,
pageNo
:
1
,
...
@@ -889,11 +532,17 @@ define(['doT', 'text!temp/commission_template_tpl.html', 'text!temp/reportList_s
...
@@ -889,11 +532,17 @@ define(['doT', 'text!temp/commission_template_tpl.html', 'text!temp/reportList_s
maidShow
:
function
()
{
maidShow
:
function
()
{
$
(
'[href="#modal_new_maid"]'
).
hide
();
//默认隐藏新增按钮
$
(
'[href="#modal_new_maid"]'
).
hide
();
//默认隐藏新增按钮
$
(
"#maid_new_table_list"
).
html
(
''
);
$
(
"#maid_new_table_list"
).
html
(
''
);
var
bargainId3
;
if
(
bargain
.
father_id
==
0
){
bargainId3
=
bargain
.
bargain_id
;
}
else
{
bargainId3
=
bargain
.
father_id
;
}
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
url
:
'/index/commissionList'
,
url
:
'/index/commissionList'
,
data
:
{
data
:
{
'id'
:
bargain
.
bargain_id
'id'
:
bargain
Id3
},
},
timeout
:
30000
,
timeout
:
30000
,
dataType
:
'json'
,
dataType
:
'json'
,
...
@@ -972,11 +621,17 @@ define(['doT', 'text!temp/commission_template_tpl.html', 'text!temp/reportList_s
...
@@ -972,11 +621,17 @@ define(['doT', 'text!temp/commission_template_tpl.html', 'text!temp/reportList_s
// 开票税费
// 开票税费
taxShow
:
function
()
{
taxShow
:
function
()
{
var
bargainId2
;
if
(
bargain
.
father_id
==
0
){
bargainId2
=
bargain
.
bargain_id
;
}
else
{
bargainId2
=
bargain
.
father_id
;
}
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
url
:
'/index/getTallAge'
,
url
:
'/index/getTallAge'
,
data
:
{
data
:
{
'bargain_id'
:
bargain
.
bargain_id
'bargain_id'
:
bargain
Id2
},
},
timeout
:
30000
,
timeout
:
30000
,
dataType
:
'json'
,
dataType
:
'json'
,
...
...
public/resource/js/tax.js
View file @
4cb1519c
//define(['doT', 'text!temp/tax_template_tpl.html', 'css!style/home.css', 'ckfinder', 'ckfinderStart', 'pagination', 'bootstrapJs'], function(doT, template) {
// business = {
// pageNo: 1,
// /*第几页*/
// pageSize: 10,
// /*每页显示多少条*/
// id: '',
// house_id: '',
// type: '',
// valueCurrent: '',
// ajaxObj: '',
// stopstatus: true,
// ldHtml: $('.phone_list'),
// boxphoto: '',
// exclusive_id: 0,
// init: function() {
// //初始化dot
// $("body").append(template);
// business.getList();
// business.event();
// },
// event: function() {
// var _doc = $(document);
// $("#search").click(function() {
// business.getList(1);
// });
// $("#export").click(function() { //导出列表
// business.exportList();
// });
//
// $("#reset").click(function() { //重置
// document.getElementById("form_search").reset();
// });
//
// $(document).delegate(".del_modal", "click", function() {
// business.id = $(this).attr("data-id");
//
// });
// $(document).delegate(".caozuo", "click", function() { //点击操作记录
// business.Caozuo();
// });
// // 时间轴
// $(document).delegate(".timeline", "click", function() { //时间轴
// // business.house_id = $ (this).attr ("data-id");
// business.Timeline();
// });
// // 编辑
// $(document).delegate(".edit", "click", function() { //点击编辑
// business.house_id = $(this).attr("data-id");
// business.Edit();
// });
// $(document).delegate(".is_pass", "click", function() { //点击编辑
// follow.house_id = $(this).attr("data-id");
// console.log(follow.house_id);
// });
// $(document).delegate("#confirm_edit", "click", function() { //点击编辑确定
// business.confirmEdit();
// });
// $(document).delegate("#new-commission", "click", function() { //点击分佣提成
// business.newCommission();
// business.Caozuo();
// });
// //table切换
// $(document).delegate("#information", "click", function() {
// business.Information();
// });
// $(document).delegate("#fees", "click", function() {
// console.log(business.house_id);
// business.Fees();
// });
// $(document).delegate("#records", "click", function() {
// business.Records();
// });
// },
// Timeline: function() { //获取时间轴
// $.ajax({
// 'type': 'GET',
// 'url': '/index/selectReportAll',
// data: {
// "order_id": business.house_id
// },
// dataType: "json",
// success: function(data) {
// if(data.code == 200) {
// if(data.data) {
// console.log(data.data);
// }
// } else {
// alert('获取失败!');
// }
// }
// });
// },
// Edit: function() { //报告详情
// $(".Tswitch").eq(0).show();
// $(".Tswitch").eq(1).hide();
// $(".Tswitch").eq(2).hide();
// $("#information").removeClass("btn-default");
// $("#information").addClass("btn-info");
// $("#fees").removeClass("btn-info");
// $("#fees").addClass("btn-default");
// $("#records").removeClass("btn-info");
// $("#records").addClass("btn-default");
// console.log(business.house_id);
// $.ajax({
// 'type': 'GET',
// 'url': '/index/bargainInfo',
// data: {
// "id": business.house_id
// },
// dataType: "json",
// success: function(data) {
// if(data.code == 200) {
// if(data.data) {
// $(".create_time").html(data.data.create_time);
// $(".user_phone").html(data.data.user_phone);
// $(".user_name").html(data.data.user_name);
// $(".internal_address").html(data.data.internal_address);
// $(".internal_title").html(data.data.internal_title);
// $(".commission").val(data.data.commission);
// $(".practical_fee").val(data.data.practical_fee);
// }
// } else {
// alert('获取失败!');
// }
// }
// });
// },
// confirmEdit: function() { //修改报告详情
// $.ajax({
// 'type': 'POST',
// 'url': '/index/editBargainInfo',
// data: {
// "id": business.house_id,
// "scale_fee": $(".commission").val(),
// "practical_fee": $(".practical_fee").val()
// },
// dataType: "json",
// success: function(data) {
// if(data.code == 200) {
// if(data.data) {}
// } else {
// alert('获取失败!');
// }
// }
// });
// },
// Caozuo: function() { //分佣提成获取跟进详情的数据
// console.log(business);
// console.log(business.house_id);
// $.ajax({
// 'type': 'GET',
// 'url': '/index/commissionList',
// data: {
// "id": business.house_id
// },
// dataType: "json",
// success: function(data) {
// if(data.code == 200) {
// if(data.data) {
// var caozuo_table = "";
// $.each(data['data'], function(i, item) {
// caozuo_table += '<tr><td>' + item.role + '</td><td>' + item.agent_name + '</td><td>' + item.store_name +
// '</td><td>' + item.scale + '</td><td>' + item.scale_fee + '</td><td>' + item.practical_fee + '</td><td>' + item.content + '</td></tr>';
// });
// $("#caozuo_table").html(caozuo_table);
// $("#caozuo_table tr").each(function(e) { //不能为空
// var temp = $("#caozuo_table").find("tr").eq(e).find("td").eq(6).html(); //获取一列的值
// if(temp == 'null') {
// $("#caozuo_table").find("tr").eq(e).find("td").eq(6).html(" ")
// }
// });
// }
// } else {
// alert('获取失败!');
// }
// }
// });
// },
// Records: function() { //分佣提成数据
// $(".Tswitch").eq(0).hide();
// $(".Tswitch").eq(1).hide();
// $(".Tswitch").eq(2).show();
// $("#information").removeClass("btn-info");
// $("#information").addClass("btn-default");
// $("#fees").removeClass("btn-info");
// $("#fees").addClass("btn-default");
// $("#records").removeClass("btn-default");
// $("#records").addClass("btn-info");
// $.ajax({
// 'type': 'GET',
// 'url': '/index/payLogList',
// data: {
// "id": business.house_id
// },
// dataType: "json",
// success: function(data) {
// if(data.code == 200) {
// if(data.data) {
// var caozuo_table = "";
// $.each(data['data'], function(i, item) {
// caozuo_table += '<tr><td>' + item.create_time + '</td><td>' + item.money + '</td><td>' + item.type +
// '</td><td>' + item.pay_type + '</td><td>' + item.agent_name + '</td></tr>';
// });
// $("#tcaozuo_table").html(caozuo_table);
// $("#tcaozuo_table tr").each(function(e) { //不能为空
// var temp_one = $("#tcaozuo_table").find("tr").eq(e).find("td").eq(4).html();
// var temp = $("#tcaozuo_table").find("tr").eq(e).find("td").eq(3).html(); //获取一列的值
// var temp_two = $("#tcaozuo_table").find("tr").eq(e).find("td").eq(2).html();
// // 支付方式 10支付宝 20 微信 30pos机器 40转账 50现金 60其他
// if(temp * 1 == 10) {
// $("#tcaozuo_table").find("tr").eq(e).find("td").eq(3).html("支付宝")
// }
// if(temp * 1 == 20) {
// $("#tcaozuo_table").find("tr").eq(e).find("td").eq(3).html("微信")
// }
// if(temp * 1 == 30) {
// $("#tcaozuo_table").find("tr").eq(e).find("td").eq(3).html("pos机器")
// }
// if(temp * 1 == 40) {
// $("#tcaozuo_table").find("tr").eq(e).find("td").eq(3).html("转账")
// }
// if(temp * 1 == 50) {
// $("#tcaozuo_table").find("tr").eq(e).find("td").eq(3).html("现金")
// }
// if(temp * 1 == 60) {
// $("#tcaozuo_table").find("tr").eq(e).find("td").eq(3).html("其他")
// }
//
// // 付款类型 10意向金 20定金 30保管金 40押金 50 租金 60 进场费 70转让费 80其他
// if(temp_two * 1 == 10) {
// $("#tcaozuo_table").find("tr").eq(e).find("td").eq(2).html("意向金")
// }
// if(temp_two * 1 == 20) {
// $("#tcaozuo_table").find("tr").eq(e).find("td").eq(2).html("定金")
// }
// if(temp_two * 1 == 30) {
// $("#tcaozuo_table").find("tr").eq(e).find("td").eq(2).html("保管金")
// }
// if(temp_two * 1 == 40) {
// $("#tcaozuo_table").find("tr").eq(e).find("td").eq(2).html("押金")
// }
// if(temp_two * 1 == 50) {
// $("#tcaozuo_table").find("tr").eq(e).find("td").eq(2).html("租金")
// }
// if(temp_two * 1 == 60) {
// $("#tcaozuo_table").find("tr").eq(e).find("td").eq(2).html("进场费")
// }
// if(temp_two * 1 == 70) {
// $("#tcaozuo_table").find("tr").eq(e).find("td").eq(2).html("转让费")
// }
// if(temp_two * 1 == 80) {
// $("#tcaozuo_table").find("tr").eq(e).find("td").eq(2).html("其他")
// };
// if(temp_one == 'null') {
// $("#tcaozuo_table").find("tr").eq(e).find("td").eq(4).html(" ")
// }
//
// });
// }
// } else {
// alert('获取失败!');
// }
// }
// });
// },
// newCommission: function() { //新增分佣提成
// $.ajax({
// 'type': 'POST',
// 'url': '/index/addBargain',
// data: {
// "id": business.house_id,
// "role": $("#is_carefully_chosen").val(),
// "scale": $("#commission-rate").val(),
// "scale_fee": $("#should-commission").val(),
// },
// dataType: "json",
// success: function(data) {
// if(data.code == 200) {
// if(data.data) {
// console.log(666);
// }
// } else {
// alert('获取失败!');
// }
// }
// });
// },
// // table切换
// Information: function() {
// $(".Tswitch").eq(0).show();
// $(".Tswitch").eq(1).hide();
// $(".Tswitch").eq(2).hide();
// $("#information").removeClass("btn-default");
// $("#information").addClass("btn-info");
// $("#fees").removeClass("btn-info");
// $("#fees").addClass("btn-default");
// $("#records").removeClass("btn-info");
// $("#records").addClass("btn-default");
// },
// Fees: function() {
// $(".Tswitch").eq(0).hide();
// $(".Tswitch").eq(1).show();
// $(".Tswitch").eq(2).hide();
// $("#information").removeClass("btn-info");
// $("#information").addClass("btn-default");
// $("#fees").removeClass("btn-default");
// $("#fees").addClass("btn-info");
// $("#records").removeClass("btn-info");
// $("#records").addClass("btn-default");
//
// },
// getList: function(pageNo) {
// business.pageNo = pageNo;
// var params = {};
// params.pageNo = business.pageNo;
// params.pageSize = business.pageSize;
// params.create_time = $('#create_time') .val();
// params.end_time = $('#end_time') .val();
// params.internal_address = $('#internal_address').val();
// params.name = $('#user_name').val();
// params.phone = $('#user_phone').val();
// params.house_number = $('#internal_num').val();
//
//
// $.ajax({
// url: '/index/getTallAgeList', //获取列表
// type: 'GET',
// async: true,
// data: params,
// dataType: 'json',
// success: function(data) {
//// console.log(data);
// var temp = document.getElementById('tax_list_tpl').innerHTML;
// var doTtmpl = doT.template(temp);
// $("#business_list").html(doTtmpl(data.data.list));
// $("#taxTotal").html(data.data.total_fee);
//
// /*分页代码*/
// add_page(data.data.total, pageNo, business.pageSize, business.getList);
// //总的税费
//
//
// }
// });
// },
// exportList: function(pageNo) {
// business.pageNo = pageNo;
// var create_time = $('#create_time').val();
// var end_time = $('#end_time').val();
// var internal_address = $('#internal_address').val();
// var agent = $('#user_name').val();
// var user_phone = $('#user_phone').val();
// var house_number = $('#internal_num').val();
// window.open('/index/exportExcel?create_time=' + create_time + '&end_time=' + end_time + '&internal_address=' + internal_address + '&name=' + agent + '&phone=' + user_phone + '&house_number=' + house_number);
//
// },
//
// };
// return business;
//});
define
([
'doT'
,
'text!temp/tax_template_tpl.html'
,
'text!temp/reportList_shuiFee_template_tpl.html'
,
'text!temp/reportList_maidtwo_template_tpl.html'
,
'text!temp/reportList_maid_sub1_template_tpl.html'
,
'css!style/home.css'
,
'css!style/report_list.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
,
template_tax
,
template_maid
,
template_maid_sub1
)
{
define
([
'doT'
,
'text!temp/tax_template_tpl.html'
,
'text!temp/reportList_shuiFee_template_tpl.html'
,
'text!temp/reportList_maidtwo_template_tpl.html'
,
'text!temp/reportList_maid_sub1_template_tpl.html'
,
'css!style/home.css'
,
'css!style/report_list.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
,
template_tax
,
template_maid
,
template_maid_sub1
)
{
bargain
=
{
bargain
=
{
pageNo
:
1
,
pageNo
:
1
,
...
@@ -894,11 +533,17 @@ define(['doT', 'text!temp/tax_template_tpl.html', 'text!temp/reportList_shuiFee_
...
@@ -894,11 +533,17 @@ define(['doT', 'text!temp/tax_template_tpl.html', 'text!temp/reportList_shuiFee_
maidShow
:
function
()
{
maidShow
:
function
()
{
$
(
'[href="#modal_new_maid"]'
).
hide
();
//默认隐藏新增按钮
$
(
'[href="#modal_new_maid"]'
).
hide
();
//默认隐藏新增按钮
$
(
"#maid_new_table_list"
).
html
(
''
);
$
(
"#maid_new_table_list"
).
html
(
''
);
var
bargainId2
;
if
(
bargain
.
father_id
==
0
){
bargainId2
=
bargain
.
bargain_id
;
}
else
{
bargainId2
=
bargain
.
father_id
;
};
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
url
:
'/index/commissionList'
,
url
:
'/index/commissionList'
,
data
:
{
data
:
{
'id'
:
bargain
.
bargain_id
'id'
:
bargain
.
bargain_id
2
},
},
timeout
:
30000
,
timeout
:
30000
,
dataType
:
'json'
,
dataType
:
'json'
,
...
@@ -977,11 +622,17 @@ define(['doT', 'text!temp/tax_template_tpl.html', 'text!temp/reportList_shuiFee_
...
@@ -977,11 +622,17 @@ define(['doT', 'text!temp/tax_template_tpl.html', 'text!temp/reportList_shuiFee_
// 开票税费
// 开票税费
taxShow
:
function
()
{
taxShow
:
function
()
{
var
bargainId3
;
if
(
bargain
.
father_id
==
0
){
bargainId3
=
bargain
.
bargain_id
;
}
else
{
bargainId3
=
bargain
.
father_id
;
};
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
url
:
'/index/getTallAge'
,
url
:
'/index/getTallAge'
,
data
:
{
data
:
{
'bargain_id'
:
bargain
.
bargain_id
'bargain_id'
:
bargain
Id3
},
},
timeout
:
30000
,
timeout
:
30000
,
dataType
:
'json'
,
dataType
:
'json'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment