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
e565fb5d
Commit
e565fb5d
authored
Jul 19, 2019
by
clone
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '0717-v3.3.5' of
https://gitee.com/zwyjjc/tl_estate
into 0717-v3.3.5
parents
8396821d
ff6410aa
Show whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
1483 additions
and
4449 deletions
+1483
-4449
User.php
application/api_broker/controller/User.php
+2
-2
Broker.php
application/index/controller/Broker.php
+2
-0
Cost.php
application/index/controller/Cost.php
+287
-0
CostDetail.php
application/index/controller/CostDetail.php
+61
-0
OfficeBargain.php
application/index/controller/OfficeBargain.php
+73
-0
StoreFee.php
application/index/controller/StoreFee.php
+72
-0
CostService.php
application/index/service/CostService.php
+81
-0
StoreFeeValidate.php
application/index/validate/StoreFeeValidate.php
+11
-0
accountingTable.html
application/index/view/cost/accountingTable.html
+22
-1533
costCheck.html
application/index/view/cost/costCheck.html
+80
-52
costOffice.html
application/index/view/cost/costOffice.html
+30
-3
footer_tpl.html
application/index/view/global/footer_tpl.html
+1
-1
AStore.php
application/model/AStore.php
+12
-1
FApplyForFee.php
application/model/FApplyForFee.php
+48
-8
FApplyForFeeCheck.php
application/model/FApplyForFeeCheck.php
+28
-1
FOffice.php
application/model/FOffice.php
+1
-52
FStoreCostExt.php
application/model/FStoreCostExt.php
+55
-0
OPayLogAdjustment.php
application/model/OPayLogAdjustment.php
+1
-0
OfficeOBargainModel.php
application/model/OfficeOBargainModel.php
+1
-1
route.php
application/route.php
+18
-0
PrivacyNumber.php
application/task/controller/PrivacyNumber.php
+25
-4
accountingTable.js
public/resource/js/accountingTable.js
+2
-2250
costCheck.js
public/resource/js/costCheck.js
+266
-153
costOffice.js
public/resource/js/costOffice.js
+186
-23
public.js
public/resource/js/public.js
+62
-0
reportListOffice.js
public/resource/js/reportListOffice.js
+2
-2
accountingTable_list_template_tpl.html
.../resource/template/accountingTable_list_template_tpl.html
+1
-311
cost_check_template_tpl.html
public/resource/template/cost_check_template_tpl.html
+46
-30
cost_office_template_tpl.html
public/resource/template/cost_office_template_tpl.html
+1
-1
storeBinding_template_tpl.html
public/resource/template/storeBinding_template_tpl.html
+6
-21
No files found.
application/api_broker/controller/User.php
View file @
e565fb5d
...
...
@@ -162,9 +162,9 @@ class User extends Basic
}
if
(
isset
(
$params
[
'site_id'
])
)
{
$conditions
[
'
s.site_id'
]
=
$params
[
'site_id'
];
$conditions
[
'
a.site_id'
]
=
[
'LIKE'
,
'%'
.
$params
[
'site_id'
]
.
'%'
];
}
else
{
$conditions
[
'
s.site_id'
]
=
$this
->
siteId
;
$conditions
[
'
a.site_id'
]
=
[
'LIKE'
,
'%'
.
$this
->
siteId
.
'%'
]
;
}
$return_user_list
=
$this
->
userModel
->
selectUserList
(
$field
,
$conditions
,
$pageNo
,
$pageSize
,
$order
);
break
;
...
...
application/index/controller/Broker.php
View file @
e565fb5d
...
...
@@ -1095,4 +1095,5 @@ class Broker extends Basic
return
$this
->
response
(
$result
[
'code'
],
$result
[
'msg'
]);
}
}
\ No newline at end of file
application/index/controller/Cost.php
View file @
e565fb5d
...
...
@@ -10,11 +10,297 @@ namespace app\index\controller;
use
app\index\extend\Basic
;
use
app\index\service\CostService
;
use
app\index\untils\ExportExcelUntil
;
use
app\model\FApplyForFee
;
use
app\model\FApplyForFeeCheck
;
class
Cost
extends
Basic
{
/**
* 费用报销列表
*
* @return \think\Response
*/
public
function
getCostList
()
{
if
(
!
$this
->
request
->
isAjax
()
&&
$this
->
params
[
'excel'
]
!=
1
)
{
return
view
(
'cost/costCheck'
);
}
$pageNo
=
empty
(
$this
->
params
[
'pageNo'
])
?
1
:
$this
->
params
[
'pageNo'
];
$pageSize
=
empty
(
$this
->
params
[
'pageSize'
])
?
15
:
$this
->
params
[
'pageSize'
];
$where
=
$this
->
buildWhere
(
$this
->
params
);
$field
=
'a.id,a.count_time,a.source,a.type,a.create_time,a.agent_id,a.total_fee,a.fee_item,a.purpose,a.status,'
;
$field
.=
'b.name as agent_name,a.site_id'
;
$fee_model
=
new
FApplyForFee
();
if
(
$this
->
params
[
'excel'
]
!=
1
)
{
$list
=
$fee_model
->
getJoinAgentList
(
$pageNo
,
$pageSize
,
'a.ID DESC'
,
$field
,
$where
);
$data
[
'list'
]
=
&
$list
;
$data
[
'total'
]
=
$fee_model
->
getJoinAgentListTotal
(
$where
);
return
$this
->
response
(
200
,
''
,
$data
);
}
else
{
$list
=
$fee_model
->
getJoinAgentList
(
1
,
100000
,
'a.ID DESC'
,
$field
,
$where
);
$source
=
[
0
=>
'app申请'
,
1
=>
'excel导入'
];
$status
=
[
0
=>
'申请中'
,
1
=>
'总监通过'
,
2
=>
'一审通过'
,
3
=>
'二审通过'
,
4
=>
'三审通过'
,
];
foreach
(
$list
as
$k
=>
$v
)
{
$excel_data
[
$k
]
=
[
'id'
=>
$v
[
'id'
],
'count_time'
=>
$v
[
'count_time'
],
'create_time'
=>
$v
[
'create_time'
],
'agent_name'
=>
$v
[
'agent_name'
],
'total_fee'
=>
$v
[
'total_fee'
],
'type_name'
=>
$this
->
getFeeType
(
$v
[
'type'
]),
'fee_item_name'
=>
$this
->
getFeeItem
(
$v
[
'fee_item'
]),
'purpose'
=>
$v
[
'purpose'
],
'source_name'
=>
$source
[
$v
[
'source'
]],
'status'
=>
$status
[
$v
[
'status'
]]
];
}
if
(
isset
(
$excel_data
))
{
$export
=
new
ExportExcelUntil
();
$title
=
[
'费用总ID'
,
'计入月份'
,
'提交时间'
,
'提交人'
,
'费用总金额'
,
'费用类型'
,
'费用项目'
,
'费用用途'
,
'来源'
,
'状态'
];
$export
->
exportTable
(
'费用报销审核'
,
$excel_data
,
11
,
'费用报销审核'
,
$title
);
}
}
}
/**
* 构造条件
*
* @param $param
* @return mixed
*/
private
function
buildWhere
(
$param
)
{
if
(
isset
(
$param
[
'check_status'
]))
{
switch
(
$param
[
'check_status'
])
{
case
0
:
$where
[
'a.status'
]
=
0
;
break
;
case
1
:
$where
[
'a.status'
]
=
1
;
break
;
case
2
:
$where
[
'a.status'
]
=
2
;
break
;
case
3
:
$where
[
'a.status'
]
=
3
;
break
;
case
4
:
$where
[
'a.status'
]
=
4
;
break
;
}
}
$where
[
'a.is_del'
]
=
0
;
//默认提交的月份
if
(
isset
(
$params
[
'count_time'
]))
{
$where
[
'a.count_time'
]
=
$param
[
'count_time'
];
}
//申请提交时间
if
(
isset
(
$param
[
'create_time_start'
]))
{
$where
[
'a.create_time'
]
=
[
'>='
,
$param
[
'create_time_start'
]];
}
//申请提交时间
if
(
isset
(
$param
[
'create_time_end'
]))
{
$where
[
'a.create_time'
]
=
[
'<='
,
$param
[
'create_time_end'
]];
}
//申请提交时间
if
(
isset
(
$param
[
'create_time_start'
])
&&
isset
(
$param
[
'create_time_end'
]))
{
$where
[
'a.create_time'
]
=
[
'between'
,
[
$param
[
'create_time_start'
]
.
' 00:00:00'
,
$param
[
'create_time_end'
]
.
' 23:59:59'
]];
}
//财务三审通过时间
if
(
isset
(
$param
[
'pass_time_start'
]))
{
$check_where
[
'create_time'
]
=
[
'>='
,
$param
[
'pass_time_start'
]];
}
//财务三审通过时间
if
(
isset
(
$param
[
'pass_time_end'
]))
{
$check_where
[
'a.create_time'
]
=
[
'<='
,
$param
[
'pass_time_end'
]];
}
//财务三审通过时间
if
(
isset
(
$param
[
'pass_time_start'
])
&&
isset
(
$param
[
'pass_time_end'
]))
{
$check_where
[
'a.create_time'
]
=
[
'between'
,
[
$param
[
'pass_time_end'
]
.
' 00:00:00'
,
$param
[
'pass_time_end'
]
.
' 23:59:59'
]];
}
if
(
isset
(
$check_where
))
{
$m_fee_check
=
new
FApplyForFeeCheck
();
$check_where
[
'is_del'
]
=
0
;
$check_where
[
'type'
]
=
$where
[
'a.status'
]
=
4
;
$fee_id
=
$m_fee_check
->
findColumn
(
'apply_for_id'
,
$check_where
);
$where
[
'a.id'
]
=
[
'in'
,
$fee_id
];
}
//费用类型
if
(
isset
(
$param
[
'type'
]))
{
$where
[
'a.type'
]
=
$param
[
'type'
];
}
//站点
if
(
isset
(
$param
[
'site_id'
]))
{
$where
[
'a.site_id'
]
=
$param
[
'site_id'
];
}
//编号
if
(
isset
(
$param
[
'id'
]))
{
$where
[
'a.id'
]
=
$param
[
'id'
];
}
//提交人id
if
(
isset
(
$param
[
'agent_id'
]))
{
$where
[
'a.agent_id'
]
=
$param
[
'agent_id'
];
}
//提交人门店id
if
(
isset
(
$param
[
'store_id'
]))
{
$where
[
'a.store_id'
]
=
$param
[
'store_id'
];
}
//提交人部门id
if
(
isset
(
$param
[
'district_id'
]))
{
$where
[
'b.district_id'
]
=
$param
[
'district_id'
];
}
//费用项目
if
(
isset
(
$param
[
'fee_item'
]))
{
$where
[
'a.fee_item'
]
=
$param
[
'fee_item'
];
}
//详细用途简述
if
(
isset
(
$param
[
'purpose'
]))
{
$check_where
[
'a.purpose'
]
=
[
'like'
,
'%'
.
$param
[
'purpose'
]
.
'%'
];
}
return
$where
;
}
/**
* 删除费用报销申请
*
* @return \think\Response
*/
public
function
delCost
()
{
$code
=
101
;
if
(
empty
(
$this
->
params
[
'id'
]))
{
return
$this
->
response
(
$code
,
'参数错误'
);
}
$fee_model
=
new
FApplyForFee
();
$is_ok
=
$fee_model
->
editData
([
'is_del'
=>
1
],
$this
->
params
[
'id'
]);
if
(
$is_ok
)
{
$check_model
=
new
FApplyForFeeCheck
();
$check_model
->
editData
([
'is_del'
=>
1
],
$this
->
params
[
'id'
],
'apply_for_id'
);
$code
=
200
;
$msg
=
'删除成功'
;
}
else
{
$msg
=
'删除失败'
;
}
return
$this
->
response
(
$code
,
$msg
);
}
/**
* 审核
*
* @return \think\Response
*/
public
function
checkCost
()
{
$code
=
101
;
if
(
empty
(
$this
->
params
[
'id'
]))
{
return
$this
->
response
(
$code
,
'参数错误'
);
}
switch
(
$this
->
params
[
'check_status'
])
{
case
1
:
$this
->
params
[
'status'
]
=
1
;
break
;
case
2
:
$this
->
params
[
'status'
]
=
2
;
break
;
case
3
:
$this
->
params
[
'status'
]
=
3
;
break
;
case
4
:
$this
->
params
[
'status'
]
=
4
;
break
;
default
:
return
$this
->
response
(
$code
,
'请求链接参数错误'
);
}
$service
=
new
CostService
();
$result
=
$service
->
check
(
$this
->
params
,
$this
->
userId
);
if
(
$result
[
'status'
]
!=
'fail'
)
{
$code
=
200
;
}
return
$this
->
response
(
$code
,
$result
[
'msg'
]);
}
/**
* 获取费用项目
*
* @param $key
* @return string
*/
private
function
getFeeItem
(
$key
)
{
$item_array
=
[
100
=>
'房租租金'
,
101
=>
'水电费'
,
102
=>
'其他费用'
,
201
=>
'总部固定成本'
,
301
=>
'分部固定成本'
,
401
=>
'同联发展基金'
,
501
=>
'家庭基金报销'
,
502
=>
'社保报销'
,
503
=>
'总经理基薪'
,
504
=>
'区域秘书基薪'
,
505
=>
'招聘成本'
,
506
=>
'区域经理基本工资平摊'
,
507
=>
'宿舍成本'
,
508
=>
'宿舍亏损'
,
509
=>
'手续费'
,
510
=>
'员工工资成本'
,
511
=>
'网络报销'
,
512
=>
'离职员工网络'
,
513
=>
'门店独有成本其他费用'
];
if
(
array_key_exists
(
$key
,
$item_array
))
{
$result
=
$item_array
[
$key
];
}
else
{
$result
=
'未知'
;
}
return
$result
;
}
/**
* 获取费用报销类型
*
* @param $key
* @return string
*/
private
function
getFeeType
(
$key
)
{
$type_array
=
[
0
=>
'办公室成本'
,
1
=>
'总部成本'
,
2
=>
'分部成本'
,
3
=>
'门店独有成本'
,
];
if
(
array_key_exists
(
$key
,
$type_array
))
{
$result
=
$type_array
[
$key
];
}
else
{
$result
=
'未知'
;
}
return
$result
;
}
}
\ No newline at end of file
application/index/controller/CostDetail.php
0 → 100644
View file @
e565fb5d
<?php
namespace
app\index\controller
;
use
app\index\extend\Basic
;
use
app\api\service\ActivityService
;
use
app\model\CActivity
;
use
app\model\FStoreCostExt
;
use
think\Request
;
/**
* 成本明细
* Created by PhpStorm.
* User: zw
* Date: 2019-07-19
* Time: 13:22:17
*/
class
CostDetail
extends
Basic
{
private
$storeCostExt
;
public
function
__construct
(
Request
$request
=
null
)
{
parent
::
__construct
(
$request
);
$this
->
storeCostExt
=
new
FStoreCostExt
();
}
/**
* 成本明细表
* @return \think\Response
*/
public
function
getCostDetailList
()
{
$params
=
$this
->
params
;
/* $params = array(
);*/
$pageNo
=
empty
(
$params
[
'pageNo'
])
?
1
:
$params
[
'pageNo'
];
$pageSize
=
empty
(
$params
[
'pageSize'
])
?
15
:
$params
[
'pageSize'
];
$activityModel
=
new
CActivity
();
$conditions
=
[];
// if (!empty($params["title"])) {
// $conditions["title"] = array("like", "%" . trim($params['title']) . "%");
// }
// if (!empty($params["id"])) {
// $conditions["id"] = $params['id'];
// }
$field
=
'a.id,a.cost_id,b.setting_date,a.create_time,b.operator_name,
'
;
$list
=
$this
->
storeCostExt
->
getStoreCostExt
(
$field
,
$conditions
,
$pageNo
,
$pageSize
);
$count
=
$this
->
storeCostExt
->
getStoreCostExtTotal
(
$field
,
$conditions
);
$result
[
"list"
]
=
$list
;
$result
[
"total"
]
=
$count
;
return
$this
->
response
(
"200"
,
"success"
,
$result
);
}
}
\ No newline at end of file
application/index/controller/OfficeBargain.php
View file @
e565fb5d
...
...
@@ -1526,4 +1526,76 @@ class OfficeBargain extends Basic
return
$this
->
response
(
200
,
""
,
$data
);
}
/**
* 财务结单
*
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
checkOver
()
{
if
(
empty
(
$this
->
params
[
'bargain_id'
]))
{
return
$this
->
response
(
101
,
'参数错误'
);
}
$m_partial_commission
=
new
OfficeOPartialCommission
();
$confirm_status
=
$m_partial_commission
->
checkConfirmStatus
(
$this
->
params
[
'bargain_id'
]);
if
(
$confirm_status
)
{
return
$this
->
response
(
101
,
'请确认分佣'
);
}
$insert_data
[
'audit_id'
]
=
$this
->
userId
;
$insert_data
[
'audit_name'
]
=
$this
->
userName
;
$insert_data
[
'audit_level'
]
=
3
;
$data
=
$this
->
m_bargain
->
addCheckBargain
(
$this
->
params
[
'bargain_id'
],
$insert_data
,
1
,
11
);
$code
=
200
;
$msg
=
""
;
if
(
$data
)
{
$this
->
editRecordLog
(
$this
->
params
[
'bargain_id'
],
'[财务结单]'
,
3
);
//日志记录
}
else
{
$code
=
101
;
$msg
=
'参数错误结单失败!'
;
}
return
$this
->
response
(
$code
,
$msg
);
}
/**
* 回到一级审核
*
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
toReportListOne
()
{
if
(
empty
(
$this
->
params
[
'bargain_id'
]))
{
return
$this
->
response
(
101
,
'参数错误'
);
}
$m_financial
=
new
OfficeOFinancialAudit
();
$data
[
'status'
]
=
3
;
$data
[
'is_del'
]
=
1
;
//去除之前的审核记录
$data
=
$m_financial
->
editData
(
$data
,
$this
->
params
[
'bargain_id'
],
'bargain_id'
);
$msg
=
''
;
if
(
$data
>
0
)
{
$update_data
[
'status'
]
=
10
;
$update_data
[
'audit_level'
]
=
0
;
$where
[]
=
[
'EXP'
,
'id='
.
$this
->
params
[
'bargain_id'
]
.
' or father_id='
.
$this
->
params
[
'bargain_id'
]
];
$where
[
'status'
]
=
[
'<>'
,
30
];
$this
->
m_bargain
->
updateBargainByWhere
(
$update_data
,
$where
);
$code
=
200
;
$this
->
editRecordLog
(
$this
->
params
[
'bargain_id'
],
'[转到一级审核]'
,
3
);
//日志记录
}
else
{
$code
=
101
;
$msg
=
'操作失败!'
;
}
return
$this
->
response
(
$code
,
$msg
);
}
}
\ No newline at end of file
application/index/controller/StoreFee.php
View file @
e565fb5d
...
...
@@ -239,4 +239,75 @@ class StoreFee extends Basic
}
/**
* 绑定解绑门店
* @return \think\Response
*/
public
function
bindStore
()
{
$params
=
$this
->
params
;
// $params = array(
// "id" => '1',//id
// );
$checkResult
=
$this
->
validate
(
$params
,
"StoreFeeValidate.bindStore"
);
if
(
true
!==
$checkResult
)
{
return
$this
->
response
(
"101"
,
$checkResult
);
}
$m_store
=
new
AStore
();
$store_result
=
$m_store
->
getStore
([
'id'
=>
$params
[
'store_id'
]],
'id'
);
if
(
!
$store_result
)
return
$this
->
response
(
"101"
,
"该门店不存在"
);
if
(
$params
[
'office_id'
]
==
0
)
{
//解绑
$conditions
[
'office_id'
]
=
0
;
$conditions
[
'id'
]
=
$params
[
'store_id'
];
$return
=
$m_store
->
updateStore
(
$conditions
);
}
else
{
$store_params
[
'id'
]
=
$params
[
'store_id'
];
$store_params
[
'office_id'
]
=
array
(
'gt'
,
0
);
$store_result
=
$m_store
->
getStore
(
$store_params
,
'id'
);
if
(
$store_result
)
return
$this
->
response
(
"101"
,
"该门店已绑定或已绑定其他办公室"
);
//绑定
$conditions
[
'id'
]
=
$params
[
'store_id'
];
$conditions
[
'office_id'
]
=
$params
[
'office_id'
];
$return
=
$m_store
->
updateStore
(
$conditions
);
}
return
$this
->
response
(
"200"
,
"成功"
,
$return
);
}
/**
* 搜索门店
* @return \think\Response
*/
public
function
selectStore
()
{
$params
=
$this
->
params
;
/*$params = array(
"store_name" => '测试'
);*/
$conditions
=
[];
if
(
!
empty
(
$params
[
'store_name'
]))
{
$conditions
[
'store_name'
]
=
[
'LIKE'
,
'%'
.
$params
[
'store_name'
]
.
'%'
];
}
$m_store
=
new
AStore
();
$store_field
=
'id,store_name'
;
$store_result
=
$m_store
->
getStore
(
$conditions
,
$store_field
);
if
(
!
$store_result
)
return
$this
->
response
(
"101"
,
"成功"
,[]);
return
$this
->
response
(
"200"
,
"成功"
,
$store_result
);
}
}
\ No newline at end of file
application/index/service/CostService.php
0 → 100644
View file @
e565fb5d
<?php
namespace
app\index\service
;
use
app\model\FApplyForFee
;
use
app\model\FApplyForFeeCheck
;
class
CostService
{
private
$apply_model
;
private
$check_model
;
public
function
__construct
()
{
$this
->
apply_model
=
new
FApplyForFee
();
$this
->
check_model
=
new
FApplyForFeeCheck
();
}
/**
* 费用报销审核
* status 审核状态 1总监审核 2一审审核 3二审审核 4三审审核
*
* @param $params
* @param $agent_id
* @return mixed
*/
public
function
check
(
$params
,
$agent_id
)
{
$result
[
'status'
]
=
'fail'
;
$where
[
'id'
]
=
$params
[
'id'
];
$where
[
'is_del'
]
=
$id
=
0
;
$cost_data
=
$this
->
apply_model
->
findByOne
(
'id,status'
,
$where
);
if
(
empty
(
$cost_data
))
{
$result
[
'msg'
]
=
'无该记录'
;
return
$result
;
}
if
(
$cost_data
[
'status'
]
==
$params
[
'status'
])
{
$result
[
'msg'
]
=
'已审核过:1'
;
return
$result
;
}
$check_where
[
'apply_for_id'
]
=
$cost_data
[
'id'
];
$check_where
[
'is_del'
]
=
0
;
try
{
$check_data
=
$this
->
check_model
->
findByOneOrder
(
'type'
,
$check_where
,
'id desc'
);
}
catch
(
\Exception
$e
)
{
$result
[
'msg'
]
=
'查询审核记录失败'
.
$e
->
getMessage
();
return
$result
;
}
if
(
$check_data
[
'type'
]
==
$params
[
'status'
])
{
$result
[
'msg'
]
=
'已审核过:2'
;
return
$result
;
}
$save_check
[
'apply_for_id'
]
=
$cost_data
[
'id'
];
$save_check
[
'agent_id'
]
=
$agent_id
;
$save_check
[
'type'
]
=
$params
[
'status'
];
$save_check
[
'remark'
]
=
$params
[
'remark'
];
$num
=
$this
->
check_model
->
saveData
(
$save_check
);
if
(
$num
)
{
try
{
$id
=
$this
->
apply_model
->
updateData
([
'status'
=>
$params
[
'status'
]],
[
'id'
=>
$cost_data
[
'id'
]]);
}
catch
(
\Exception
$e
)
{
$result
[
'msg'
]
=
'修改申请记录失败'
.
$e
->
getMessage
();
return
$result
;
}
}
if
(
$id
)
{
$result
[
'status'
]
=
'successful'
;
}
else
{
$result
[
'msg'
]
=
'审核失败'
;
}
return
$result
;
}
}
\ No newline at end of file
application/index/validate/StoreFeeValidate.php
View file @
e565fb5d
...
...
@@ -13,6 +13,8 @@ class StoreFeeValidate extends Validate {
'rent'
=>
'require|number|gt:0'
,
'id'
=>
'require|number|gt:0'
,
'office_id'
=>
'require|number'
,
'store_id'
=>
'require|number|gt:0'
,
];
protected
$message
=
[
...
...
@@ -26,12 +28,20 @@ class StoreFeeValidate extends Validate {
'id.require'
=>
'id为必填字段'
,
'id.number'
=>
'id只能为数字'
,
'id.gt'
=>
'id必须大于0'
,
'office_id.require'
=>
'office_id为必填字段'
,
'office_id.number'
=>
'office_id只能为数字'
,
'store_id.require'
=>
'store_id为必填字段'
,
'store_id.number'
=>
'store_id只能为数字'
,
'store_id.gt'
=>
'store_id必须大于0'
,
];
protected
$scene
=
[
'addOffice'
=>
[
'site_id'
,
'office_name'
,
'office_address'
,
'rent'
],
'getOfficeInfo'
=>
[
'id'
],
'editOffice'
=>
[
'id'
,
'site_id'
,
'office_name'
,
'office_address'
,
'rent'
],
'bindStore'
=>
[
'office_id'
,
'store_id'
],
];
}
\ No newline at end of file
application/index/view/cost/accountingTable.html
View file @
e565fb5d
...
...
@@ -173,7 +173,7 @@
border
:
1px
solid
#ccc
;
}
.table
{
margin-bottom
:
1
0px
;
margin-bottom
:
0px
;
}
.is-submit-div
{
text-align
:
center
;
...
...
@@ -340,9 +340,6 @@
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading breadcrumb"
>
<li>
<div
class=
"tip-con text-danger"
>
注: 1、 财务日报的账目由当天的正常收款、调整收款、调整出账构成。当日的财务日报里 调整收款+调整出账=0
<br/>
2、当日的财务日报 显示当日 属于本门店的所有经纪人操作账目。即 账目的 操作人是属于本门店的,操作时间是当天。
<br/>
3、前端开发控制 财务审核前,店长都可以进行修改,财务开始审核后,只有财务可以修改。
</div>
<span
class=
"manager-title ld-Marheight"
>
杭州同联- 九部一组周小雨
</span>
<input
class=
"btn4-pk ld-Marheight input-pk-style"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"create_time_start"
name=
"start_date1"
type=
"date"
>
<span
class=
"is-print ld-Marheight"
>
打印
</span>
...
...
@@ -353,28 +350,21 @@
</div>
<div
class=
"panel-body manager-daily-detail"
>
<!--1-->
<
h4>
当日中介费入账
</h4
>
<
!--<h4>当日中介费入账</h4>--
>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<tr
class=
"maintable-tr-bar"
>
<th
class=
"text-center"
>
类型
</th>
<th
class=
"text-center"
>
收款ID
</th>
<th
class=
"text-center"
>
成交报告ID
</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"
>
成本明细ID
</th>
<th
class=
"text-center"
>
费用报销ID
</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>
</tr>
</thead>
...
...
@@ -382,31 +372,19 @@
</tbody>
</table>
</div>
<!--2-->
<h4>
当日案场费入账
</h4>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<tr
class=
"maintable-tr-bar"
>
<th
class=
"text-center"
>
类型
</th>
<th
class=
"text-center"
>
收款ID
</th>
<th
class=
"text-center"
>
成交报告ID
</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"
>
成本明细ID
</th>
<th
class=
"text-center"
>
费用报销ID
</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>
</tr>
</thead>
...
...
@@ -415,1503 +393,15 @@
</tbody>
</table>
</div>
<!--3-->
<h4>
当日意向金入账
</h4>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<tr
class=
"maintable-tr-bar"
>
<th
class=
"text-center"
>
类型
</th>
<th
class=
"text-center"
>
收款ID
</th>
<th
class=
"text-center"
>
订单ID
</th>
<th
class=
"text-center"
>
房源ID
</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>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"maintable_list_c"
>
</tbody>
</table>
</div>
<!--4-->
<h4>
当日保管金入账
</h4>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<tr
class=
"maintable-tr-bar"
>
<th
class=
"text-center"
>
类型
</th>
<th
class=
"text-center"
>
收款ID
</th>
<th
class=
"text-center"
>
订单ID
</th>
<th
class=
"text-center"
>
房源ID
</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>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"maintable_list_d"
>
</tbody>
</table>
</div>
<!--5-->
<h4>
当日调整出账
</h4>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<tr
class=
"maintable-tr-bar"
>
<th
class=
"text-center"
>
类型
</th>
<th
class=
"text-center"
>
调整ID
</th>
<th
class=
"text-center"
>
调整前收款ID
</th>
<th
class=
"text-center"
>
调整前房源ID
</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"
>
调整后收款ID
</th>
<th
class=
"text-center"
>
附件
</th>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"maintable_list_e"
>
</tbody>
</table>
</div>
<!--6-->
<h4>
以上入账金额:
<span
class=
"recorded_money"
></span>
元
以上出账金额:
<span
class=
"adjustment_money"
></span>
元
入账应汇款:
<span
class=
"remittance_money"
></span>
元
实际入账:
<span
class=
"remittance_money"
></span>
元
</h4>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<tr
class=
"maintable-tr-bar"
>
<!--深圳-->
<th
class=
"text-center shenzhen"
>
筠姐支付宝
</th>
<th
class=
"text-center shenzhen"
>
筠姐微信
</th>
<th
class=
"text-center shenzhen"
>
银满谷银行卡
</th>
<th
class=
"text-center shenzhen"
>
筠姐上海银行卡
</th>
<th
class=
"text-center shenzhen"
>
POS机
</th>
<th
class=
"text-center shenzhen"
>
世家公账
</th>
<!--上海 店长 commit-->
<th
class=
"text-center shanghai"
>
施总支付宝
</th>
<th
class=
"text-center shanghai"
>
林老师支付宝
</th>
<th
class=
"text-center shanghai"
>
施总微信
</th>
<th
class=
"text-center shanghai"
>
林老师微信
</th>
<th
class=
"text-center shanghai"
>
地产转账
</th>
<th
class=
"text-center shanghai"
>
世家公账
</th>
<th
class=
"text-center shanghai"
>
3000账号
</th>
<th
class=
"text-center shanghai"
>
现金
</th>
<th
class=
"text-center shanghai"
>
POS机
</th>
<th
class=
"text-center shanghai"
>
其他
</th>
<th
class=
"text-center shanghai"
>
银满谷银行卡
</th>
<th
class=
"text-center shanghai"
>
新同联福居银行卡
</th>
<th
class=
"text-center shanghai"
>
林老师建行卡
</th>
<!--杭州 店长 commit-->
<th
class=
"text-center hangzhou"
>
施总支付宝
</th>
<th
class=
"text-center hangzhou"
>
林老师支付宝
</th>
<th
class=
"text-center hangzhou"
>
施总微信
</th>
<th
class=
"text-center hangzhou"
>
林老师微信
</th>
<th
class=
"text-center hangzhou"
>
地产转账
</th>
<th
class=
"text-center hangzhou"
>
世家公账
</th>
<th
class=
"text-center hangzhou"
>
3000账号
</th>
<th
class=
"text-center hangzhou"
>
现金
</th>
<th
class=
"text-center hangzhou"
>
POS机
</th>
<th
class=
"text-center hangzhou"
>
其他
</th>
<th
class=
"text-center hangzhou"
>
银满谷银行卡
</th>
<th
class=
"text-center hangzhou"
>
林老师建行卡
</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>
</tr>
</thead>
<tbody
class=
"text-center"
id=
""
>
<tr>
<!--深圳-->
<td
class=
"text-center shenzhen"
>
<span
id=
"pay_yun_zhihubao"
></span>
</td>
<td
class=
"text-center shenzhen"
>
<span
id=
"pay_yun_weixin"
></span>
</td>
<td
class=
"text-center shenzhen"
>
<span
id=
"pay_yun_card"
></span>
</td>
<td
class=
"text-center shenzhen"
>
<span
id=
"pay_yun_bank"
></span>
</td>
<td
class=
"text-center shenzhen"
>
<span
id=
"pay_yun_pos"
></span>
</td>
<td
class=
"text-center shenzhen"
>
<span
id=
"pay_yun_family"
></span>
</td>
<!--上海 店长 commit-->
<td
class=
"text-center shanghai"
>
<span
id=
"pay_a"
></span>
</td>
<td
class=
"text-center shanghai"
>
<span
id=
"pay_a1"
></span>
</td>
<td
class=
"text-center shanghai"
>
<span
id=
"pay_b"
></span>
</td>
<td
class=
"text-center shanghai"
>
<span
id=
"pay_b1"
></span>
</td>
<td
class=
"text-center shanghai"
>
<span
id=
"pay_c"
></span>
</td>
<td
class=
"text-center shanghai"
>
<span
id=
"pay_d"
></span>
</td>
<td
class=
"text-center shanghai"
>
<span
id=
"pay_e"
></span>
</td>
<td
class=
"text-center shanghai"
>
<span
id=
"pay_f"
></span>
</td>
<td
class=
"text-center shanghai"
>
<span
id=
"pay_g"
></span>
</td>
<td
class=
"text-center shanghai"
>
<span
id=
"pay_h"
></span>
</td>
<td
class=
"text-center shanghai"
>
<span
id=
"pay_k"
></span>
</td>
<td
class=
"text-center shanghai"
>
<span
id=
"pay_m"
></span>
</td>
<td
class=
"text-center shanghai"
>
<span
id=
"pay_lin"
></span>
</td>
<!--杭州 店长 commit-->
<td
class=
"text-center hangzhou"
>
<span
id=
"pay_a_hangzhou"
></span>
</td>
<td
class=
"text-center hangzhou"
>
<span
id=
"pay_a1_hangzhou"
></span>
</td>
<td
class=
"text-center hangzhou"
>
<span
id=
"pay_b_hangzhou"
></span>
</td>
<td
class=
"text-center hangzhou"
>
<span
id=
"pay_b1_hangzhou"
></span>
</td>
<td
class=
"text-center hangzhou"
>
<span
id=
"pay_c_hangzhou"
></span>
</td>
<td
class=
"text-center hangzhou"
>
<span
id=
"pay_d_hangzhou"
></span>
</td>
<td
class=
"text-center hangzhou"
>
<span
id=
"pay_e_hangzhou"
></span>
</td>
<td
class=
"text-center hangzhou"
>
<span
id=
"pay_f_hangzhou"
></span>
</td>
<td
class=
"text-center hangzhou"
>
<span
id=
"pay_g_hangzhou"
></span>
</td>
<td
class=
"text-center hangzhou"
>
<span
id=
"pay_h_hangzhou"
></span>
</td>
<td
class=
"text-center hangzhou"
>
<span
id=
"pay_k_hangzhou"
></span>
</td>
<td
class=
"text-center hangzhou"
>
<span
id=
"pay_m_hangzhou"
></span>
</td>
<!--陈志杰-->
<td
class=
"text-center"
>
<span
id=
"pay_i_chen"
></span>
</td>
<td
class=
"text-center"
>
<span
id=
"pay_j_chen"
></span>
</td><td
class=
"text-center"
>
<span
id=
"pay_k_chen"
></span>
</td>
<td
class=
"text-center"
>
<span
id=
"pay_i"
></span>
</td>
<td
class=
"text-center"
>
<span
id=
"pay_j"
></span>
</td>
</tr>
</tbody>
</table>
</div>
<!--7-->
<div
class=
"audit-records"
>
<h4>
审核记录
</h4>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<tr
class=
"maintable-tr-bar"
>
<!--深圳-->
<th
class=
"text-center shenzhen"
>
筠姐支付宝
</th>
<th
class=
"text-center shenzhen"
>
筠姐微信
</th>
<th
class=
"text-center shenzhen"
>
银满谷银行卡
</th>
<th
class=
"text-center shenzhen"
>
筠姐上海银行卡
</th>
<th
class=
"text-center shenzhen"
>
POS机
</th>
<th
class=
"text-center shenzhen"
>
世家公账
</th>
<!--上海 total 财务-->
<th
class=
"text-center shanghai"
>
施总支付宝
</th>
<th
class=
"text-center shanghai"
>
林老师支付宝
</th>
<th
class=
"text-center shanghai"
>
施总微信
</th>
<th
class=
"text-center shanghai"
>
林老师微信
</th>
<th
class=
"text-center shanghai"
>
地产转账
</th>
<th
class=
"text-center shanghai"
>
世家公账
</th>
<th
class=
"text-center shanghai"
>
3000账号
</th>
<th
class=
"text-center shanghai"
>
现金
</th>
<th
class=
"text-center shanghai"
>
POS机
</th>
<th
class=
"text-center shanghai"
>
其他
</th>
<th
class=
"text-center shanghai"
>
银满谷银行卡
</th>
<th
class=
"text-center shanghai"
>
新同联福居银行卡
</th>
<th
class=
"text-center shanghai"
>
林老师建行卡
</th>
<!--杭州 total 财务-->
<th
class=
"text-center hangzhou"
>
施总支付宝
</th>
<th
class=
"text-center hangzhou"
>
林老师支付宝
</th>
<th
class=
"text-center hangzhou"
>
施总微信
</th>
<th
class=
"text-center hangzhou"
>
林老师微信
</th>
<th
class=
"text-center hangzhou"
>
地产转账
</th>
<th
class=
"text-center hangzhou"
>
世家公账
</th>
<th
class=
"text-center hangzhou"
>
3000账号
</th>
<th
class=
"text-center hangzhou"
>
现金
</th>
<th
class=
"text-center hangzhou"
>
POS机
</th>
<th
class=
"text-center hangzhou"
>
其他
</th>
<th
class=
"text-center hangzhou"
>
银满谷银行卡
</th>
<th
class=
"text-center hangzhou"
>
林老师建行卡
</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>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"maintable_list_f"
>
</tbody>
<tfoot
class=
"text-center"
id=
"maintable_list_total"
>
<tr>
<!--深圳-->
<td
class=
"text-center shenzhen"
>
<span
id=
"total_yun_zhihubao"
></span>
</td>
<td
class=
"text-center shenzhen"
>
<span
id=
"total_yun_weixin"
></span>
</td>
<td
class=
"text-center shenzhen"
>
<span
id=
"total_yun_card"
></span>
</td>
<td
class=
"text-center shenzhen"
>
<span
id=
"total_yun_bank"
></span>
</td>
<td
class=
"text-center shenzhen"
>
<span
id=
"total_yun_pos"
></span>
</td>
<td
class=
"text-center shenzhen"
>
<span
id=
"total_yun_family"
></span>
</td>
<!--上海-->
<td
class=
"text-center shanghai"
>
<span
id=
"total_a"
></span>
</td>
<td
class=
"text-center shanghai"
>
<span
id=
"total_a1"
></span>
</td>
<td
class=
"text-center shanghai"
>
<span
id=
"total_b"
></span>
</td>
<td
class=
"text-center shanghai"
>
<span
id=
"total_b1"
></span>
</td>
<td
class=
"text-center shanghai"
>
<span
id=
"total_c"
></span>
</td>
<td
class=
"text-center shanghai"
>
<span
id=
"total_d"
></span>
</td>
<td
class=
"text-center shanghai"
>
<span
id=
"total_e"
></span>
</td>
<td
class=
"text-center shanghai"
>
<span
id=
"total_f"
></span>
</td>
<td
class=
"text-center shanghai"
>
<span
id=
"total_g"
></span>
</td>
<td
class=
"text-center shanghai"
>
<span
id=
"total_h"
></span>
</td>
<td
class=
"text-center shanghai"
>
<span
id=
"total_m"
></span>
</td>
<td
class=
"text-center shanghai"
>
<span
id=
"total_n"
></span>
</td>
<td
class=
"text-center shanghai"
>
<span
id=
"total_lin"
></span>
</td>
<!--杭州-->
<td
class=
"text-center hangzhou"
>
<span
id=
"total_a_hangzhou"
></span>
</td>
<td
class=
"text-center hangzhou"
>
<span
id=
"total_a1_hangzhou"
></span>
</td>
<td
class=
"text-center hangzhou"
>
<span
id=
"total_b_hangzhou"
></span>
</td>
<td
class=
"text-center hangzhou"
>
<span
id=
"total_b1_hangzhou"
></span>
</td>
<td
class=
"text-center hangzhou"
>
<span
id=
"total_c_hangzhou"
></span>
</td>
<td
class=
"text-center hangzhou"
>
<span
id=
"total_d_hangzhou"
></span>
</td>
<td
class=
"text-center hangzhou"
>
<span
id=
"total_e_hangzhou"
></span>
</td>
<td
class=
"text-center hangzhou"
>
<span
id=
"total_f_hangzhou"
></span>
</td>
<td
class=
"text-center hangzhou"
>
<span
id=
"total_g_hangzhou"
></span>
</td>
<td
class=
"text-center hangzhou"
>
<span
id=
"total_h_hangzhou"
></span>
</td>
<td
class=
"text-center hangzhou"
>
<span
id=
"total_m_hangzhou"
></span>
</td>
<td
class=
"text-center hangzhou"
>
<span
id=
"total_n_hangzhou"
></span>
</td>
<!--陈志杰-->
<td
class=
"text-center"
>
<span
id=
"total_i_chen"
></span>
</td>
<td
class=
"text-center"
>
<span
id=
"total_j_chen"
></span>
</td><td
class=
"text-center"
>
<span
id=
"total_k_chen"
></span>
</td>
<td
class=
"text-center"
>
<span
id=
"total_i"
></span>
</td>
<td
class=
"text-center"
>
<span
id=
"total_j"
></span>
</td>
<td
class=
"text-center"
>
<span
id=
"total_k"
></span>
</td>
</tr>
</tfoot>
</table>
</div>
</div>
<div
class=
"is-submit-div text-center"
>
<!--<div class="is-submit">提交</div>-->
<a
class=
"btn btn-primary is-submit"
>
提交
</a>
<a
class=
"btn btn-primary is-submit-pass-btn"
href=
"#modal_financialremark"
data-toggle=
"modal"
>
审核通过
</a>
<a
class=
"btn btn-primary is-submit-passed-btn"
href=
"#modal_financialremarked"
data-toggle=
"modal"
>
转到已审核
</a>
<!--<a class="btn btn-primary is-submit-passed" style="margin-left: 20px;">转到已审核</a>-->
</div>
<div
class=
"tips-dian text-danger text-center"
style=
"font-size: 16px; font-weight: 600;"
>
</div>
</div>
</div>
</div>
</div>
</div>
<!--加载图标-->
<div
id=
"main_loading_pic"
>
<img
src=
"/resource/image/jz2.gif"
>
</div>
<!--收款图片-->
<div
class=
"modal fade"
id=
"modal_financial"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
收款图片
</h4>
</div>
<div
class=
"modal-body modal-body-height"
>
<ul
class=
"list-group"
>
<li
class=
"list-group-item"
>
<div
class=
"form-group full-width-100 full-pic-area"
>
<!--input上传图片-->
<div
id=
"container_body"
>
<button
type=
"button btn2"
class=
"btn btn-default"
>
上传图片
</button>
<input
type=
"file"
id=
"file_input_pic_xi"
/>
<div
id=
"container_body_img_area"
></div>
</div>
</div>
</li>
</ul>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button btn2"
class=
"btn btn-primary"
id=
"saveBtnLiu"
data-dismiss=
"modal"
>
保存
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--申请开业-->
<div
class=
"modal fade"
id=
"modal_open"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
申请开业
</h4>
</div>
<div
class=
"modal-body modal-body-height"
>
<ul
class=
"list-group"
>
<li
class=
"list-group-item"
>
<div
class=
"form-group full-width-100 full-pic-area"
>
<span
style=
"position: relative;top: -50px;"
>
开业说明
<span
class=
"text-danger"
>
(必填)
</span>
:
</span><textarea
name=
""
rows=
""
cols=
""
style=
"width: 380px;height: 100px;"
class=
"remark-financial-open"
></textarea>
</div>
<div
class=
"form-group full-width-100 full-pic-area"
>
<!--input上传图片-->
<div>
图片至少1张,最多三张:
<span
class=
"text-danger"
>
(必填)
</span></div>
<div
id=
"container_body"
>
<button
type=
"button btn2"
class=
"btn btn-default"
>
上传图片
</button>
<input
type=
"file"
id=
"file_input_pic_open"
/>
<div
id=
"container_body_img_open"
></div>
</div>
</div>
</li>
</ul>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button btn2"
class=
"btn btn-primary"
id=
"saveBtnOpen"
>
保存
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--审核通过 备注-->
<div
class=
"modal fade"
id=
"modal_financialremark"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
审核通过
</h4>
</div>
<div
class=
"modal-body"
>
备注:
<textarea
name=
""
rows=
""
cols=
""
style=
"width: 500px;height: 160px;"
class=
"remark-financial"
></textarea>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button btn2"
class=
"btn btn-primary is-submit-pass"
>
保存
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--转到已审核 备注-->
<div
class=
"modal fade"
id=
"modal_financialremarked"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
审核通过
</h4>
</div>
<div
class=
"modal-body"
>
备注:
<textarea
name=
""
rows=
""
cols=
""
style=
"width: 500px;height: 160px;"
class=
"remark-financialed"
></textarea>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button btn2"
class=
"btn btn-primary is-submit-passed"
>
保存
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!-- 收款详情 -->
<div
class=
"modal fade"
id=
"modal-addPic"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-width-du"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title tit_con active shoukuanxiangqing"
style=
"width:auto!important;float:left"
>
收款详情
</h4>
<h4
class=
"modal-title tit_con"
style=
"width:auto!important;float:left;margin-left:20px;"
>
收款图片
</h4>
</div>
<div
class=
"modal-body modal-body-height pic-con1"
style=
"height: 528px;"
>
<ul
class=
"list-group "
>
<li
class=
"list-group-item"
>
<div
class=
"form-group full-width-100 full-pic-area"
>
<!--input上传图片-->
<div
id=
"container_body_du"
>
<label>
请选择一个图像文件:
</label>
<button
type=
"button btn2"
class=
"btn btn-default"
>
上传图片
</button>
<input
type=
"file"
id=
"file_input_pic"
/>
<div
id=
"container_body_img_area_du"
></div>
</div>
</div>
<ul
class=
"img-pre-ul"
id=
"xiangqing_pic_ul"
>
</ul>
</li>
</ul>
</div>
<div
class=
"modal-footer pic-con1"
>
<button
type=
"button btn2"
class=
"btn btn-primary"
id=
"saveBtn"
data-dismiss=
"modal"
>
保存
</button>
</div>
<div
class=
"modal-body modal-body-height pic-con2"
style=
"height: 528px;"
>
<form
class=
""
>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-3"
>
<div
class=
"form-group"
>
<strong><span>
入账ID:
</span></strong>
<span
id=
"ruzhangId"
>
45122
</span>
</div>
</div>
<div
class=
"col-xs-3"
>
<div
class=
"form-group"
>
<strong><span>
带看ID:
</span></strong>
<span
id=
"dingdanId"
>
45122
</span>
</div>
</div>
<div
class=
"col-xs-3"
>
<div
class=
"form-group"
>
<strong><span>
成交报告ID:
</span></strong>
<span
id=
"chengjiaobaogaoId"
></span>
</div>
</div>
<div
class=
"col-xs-3"
>
<div
class=
"form-group"
>
<strong><span>
房源ID:
</span></strong>
<span
id=
"fangyuanId"
>
45122
</span>
</div>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
提交人:
</span></strong>
<span
id=
"tijiaoren"
class=
"col-xs-6 ld-Marheight"
>
forgina
</span>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
房源地址:
</span></strong>
<span
id=
"address"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
提交时间:
</span></strong>
<span
id=
"comit_time"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
入账类型:
</span></strong>
<span
id=
"intoType"
class=
"col-xs-6 ld-Marheight"
>
中介费
</span>
</div>
</div>
<!--收款详情 加中介费类型 之前已收佣-->
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-6 agency_fees_type_hide"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
style=
"margin-left: -7px;"
>
中介费类型:
</span></strong>
<div
class=
"col-xs-6"
>
<select
class=
"form-control"
id=
"agency_fees_type_text"
>
<option
class=
""
value=
"0"
>
正常
</option>
<option
class=
""
value=
"1"
>
多收
</option>
</select>
</div>
</div>
</div>
<div
class=
"col-xs-6 before_commission_hide"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
之前已收佣:
</span></strong>
<div
class=
"col-xs-6"
>
<input
class=
"form-control"
type=
"text"
value=
"0"
id=
"before_commission_text"
>
</div>
</div>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
商铺号:
</span></strong>
<!--<input class="form-control" type="text" value="2018" id="shopNo" />-->
<span
id=
"shopNo"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
成交价:
</span></strong>
<!--<input class="form-control" type="text" value="2018" id="salePrice" />-->
<span
id=
"salePrice"
class=
"col-xs-6 ld-Marheight"
></span>
<!--<strong><span class="col-xs-2 ld-Marheight">元</span></strong>-->
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
入账日期:
</span></strong>
<div
class=
"col-xs-6"
>
<input
class=
"form-control"
type=
"text"
value=
""
id=
"intoDate"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',maxDate:'%y-%M-%d',readOnly:true})"
/>
</div>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
入账金额:
</span></strong>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
""
id=
"intoPrice"
/></div>
<strong><span
class=
"col-xs-2 ld-Marheight"
>
元
</span></strong>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
手续费:
</span></strong>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
""
id=
"shouxu"
/></div>
<strong><span
class=
"col-xs-2 ld-Marheight"
>
元
</span></strong>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
实付金额:
</span></strong>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
""
id=
"realPrice"
/></div>
<strong><span
class=
"col-xs-2 ld-Marheight"
>
元
</span></strong>
</div>
</div>
<div
class=
"col-xs-6 zjcon"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
应收金额:
</span></strong>
<!--<div class="col-xs-6"><input class="form-control" type="text" value="" id="getPrice" /></div>-->
<span
id=
"getPrice"
class=
" col-xs-6 ld-Marheight"
></span>
<!--<strong><span class="col-xs-2 ld-Marheight">元</span></strong>-->
</div>
</div>
<div
class=
"col-xs-6 zjcon"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
多收金额:
</span></strong>
<!--<div class="col-xs-6"><input class="form-control" type="text" value="" id="morePrice" /></div>-->
<span
id=
"morePrice"
class=
" col-xs-6 ld-Marheight"
></span>
<!--<strong><span class="col-xs-2 ld-Marheight">元</span></strong>-->
</div>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
对应业务员:
</span></strong>
<span
id=
"person"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
所属门店:
</span></strong>
<span
id=
"belongT"
class=
" col-xs-6 ld-Marheight"
></span>
</div>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-6 zhzd"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
最后转定时间:
</span></strong>
<div
class=
"col-xs-6"
>
<input
class=
"form-control"
type=
"text"
value=
""
id=
"lastTime"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',maxDate:'%y-%M-%d',readOnly:true})"
/>
</div>
</div>
</div>
<div
class=
"col-xs-6 shout"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
收条编号:
</span></strong>
<div
class=
"col-xs-6"
>
<input
class=
"form-control"
type=
"text"
value=
""
id=
"shoutiao"
/>
</div>
</div>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
支付方式:
</span></strong>
<div
class=
"col-xs-6"
>
<select
class=
"form-control"
id=
"payType"
>
<option
value=
"10"
class=
"shanghaipayType"
>
施总支付宝
</option>
<option
value=
"11"
class=
"shanghaipayType"
>
林老师支付宝
</option>
<option
value=
"20"
class=
"shanghaipayType"
>
施总微信
</option>
<option
value=
"21"
class=
"shanghaipayType"
>
林老师微信
</option>
<option
value=
"30"
class=
"shanghaipayType"
>
pos机器
</option>
<option
value=
"40"
class=
"shanghaipayType"
>
地产转账
</option>
<option
value=
"42"
class=
"shanghaipayType"
>
3000账号
</option>
<option
value=
"70"
class=
"shanghaipayType"
>
银满谷银行卡
</option>
<option
value=
"73"
class=
"shanghaipayType"
>
新同联福居银行卡
</option>
<option
value=
"41"
class=
"shanghaipayType"
>
世家公账
</option>
<option
value=
"72"
class=
"shanghaipayType"
>
林老师建行卡
</option>
<option
value=
"13"
class=
"shanghaipayType"
>
陈志杰支付宝
</option>
<option
value=
"23"
class=
"shanghaipayType"
>
陈志杰微信
</option>
<option
value=
"74"
class=
"shanghaipayType"
>
陈志杰招商银行卡
</option>
<option
value=
"11"
class=
"hangzhoupayType"
>
林老师支付宝
</option>
<option
value=
"21"
class=
"hangzhoupayType"
>
林老师微信
</option>
<option
value=
"30"
class=
"hangzhoupayType"
>
pos机器
</option>
<option
value=
"70"
class=
"hangzhoupayType"
>
银满谷银行卡
</option>
<option
value=
"72"
class=
"hangzhoupayType"
>
林老师建行卡
</option>
<option
value=
"13"
class=
"hangzhoupayType"
>
陈志杰支付宝
</option>
<option
value=
"23"
class=
"hangzhoupayType"
>
陈志杰微信
</option>
<option
value=
"74"
class=
"hangzhoupayType"
>
陈志杰招商银行卡
</option>
<option
value=
"12"
class=
"shenzhengpayType"
>
筠姐支付宝
</option>
<option
value=
"22"
class=
"shenzhengpayType"
>
筠姐微信
</option>
<option
value=
"71"
class=
"shenzhengpayType"
>
筠姐上海银行卡
</option>
<option
value=
"41"
class=
"shenzhengpayType"
>
世家公账
</option>
<option
value=
"30"
class=
"shenzhengpayType"
>
pos机器
</option>
<option
value=
"13"
class=
"shenzhengpayType"
>
陈志杰支付宝
</option>
<option
value=
"23"
class=
"shenzhengpayType"
>
陈志杰微信
</option>
<option
value=
"74"
class=
"shenzhengpayType"
>
陈志杰招商银行卡
</option>
</select>
</div>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
转账户名:
</span></strong>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
""
id=
"payNo"
/></div>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
业态/品牌:
</span></strong>
<span
id=
"pinpai"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-6 ky"
style=
"display: none;"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
是否开业:
</span></strong>
<div
class=
"col-xs-6"
>
<!--<span id="running" class="col-xs-6 ld-Marheight"></span>-->
<select
class=
"form-control"
id=
"running"
disabled=
"disabled"
>
<option
value=
"3"
>
请选择
</option>
<option
value=
"0"
>
否
</option>
<option
value=
"1"
>
是
</option>
</select>
</div>
</div>
</div>
<div
class=
"col-xs-6 xqac"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
是否分红:
</span></strong>
<div
class=
"col-xs-6"
>
<select
class=
"form-control"
id=
"fenhong"
>
<option
value=
""
>
请选择
</option>
<option
value=
"0"
>
是
</option>
<option
value=
"1"
>
否
</option>
</select>
</div>
</div>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-6 ky"
style=
"display: none;"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
开业确定时间:
</span></strong>
<!--<div class="col-xs-6">-->
<span
id=
"open_time"
class=
"col-xs-6 ld-Marheight"
></span>
<!--</div>-->
</div>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
来源:
</span></strong>
<span
id=
"comes"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
状态:
</span></strong>
<span
id=
"status"
class=
" col-xs-6 ld-Marheight"
>
正常
</span>
</div>
</div>
</div>
</form>
</div>
<div
class=
"modal-footer pic-con2"
>
<button
type=
"button btn2"
class=
"btn btn-primary"
id=
"savePayBtn"
data-dismiss=
"modal"
>
保存
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!-- /#删除模态框 -->
<div
class=
"modal fade"
id=
"modal-delete"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
删除
</h4>
</div>
<div
class=
"modal-body"
>
<div
class=
"modal-body"
>
<input
type=
"hidden"
value=
""
id=
"delete_id"
/>
确认删除吗?
</div>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
取消
</button>
<button
type=
"button"
class=
"btn btn-primary"
id=
"confirm_delete"
data-dismiss=
"modal"
>
删除
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!-- 弹出框 成交报告详情 -->
<div
class=
"modal fade"
id=
"modal_detail_liu"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
style=
"width: 1080px;"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
成交报告详情
</h4>
</div>
<div
class=
"modal-body detail-modal-body"
>
<iframe
class=
"iframe-bargaininfo-static"
name=
"iframe_bargaininfo_static"
></iframe>
<a
class=
"btn1 bargain-detail-shop btn-info"
href=
"#modal_shop_detail"
data-toggle=
"modal"
style=
"display: none;"
>
商铺
</a>
<a
class=
"btn1 caozuo genj_ure btn-info"
href=
"#modal_user_detail"
data-toggle=
"modal"
style=
"display: none;"
>
客户
</a>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
</div>
<!-- 弹出框 时间轴 -->
<div
class=
"modal fade"
id=
"modal-time-liu"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
时间轴
</h4>
</div>
<div
class=
"modal-body"
class=
"iframe-div-parent"
>
<iframe
class=
"iframe-time-line"
></iframe>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!-- 调整详情 -->
<div
class=
"modal fade"
id=
"modal-addPicLiu"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-width"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
调整详情
</h4>
</div>
<div
class=
"modal-body modal-body-height"
>
<form
class=
""
>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
调整ID:
</span></strong>
<span
id=
"change_id"
class=
"col-xs-6 ld-Marheight"
>
forgina
</span>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"col-xs-12"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
调整金额:
</span></strong>
<span
id=
"after_into_price"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"col-xs-12"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
调整前:
</span></strong>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-12"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
入账ID:
</span></strong>
<span
id=
"befor_into_id"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
订单ID:
</span></strong>
<span
id=
"befor_order_id"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
房源ID:
</span></strong>
<span
id=
"befor_house_id"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
房源地址:
</span></strong>
<span
id=
"befor_house_addr"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
入账日期 :
</span></strong>
<span
id=
"befor_into_date"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
入账类型:
</span></strong>
<span
id=
"befor_into_type"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
提交时间 :
</span></strong>
<span
id=
"befor_create_time"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
提交人:
</span></strong>
<span
id=
"befor_agent_name"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"col-xs-12"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
调整后:
</span></strong>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-12"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
入账ID:
</span></strong>
<span
id=
"after_into_id"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
订单ID:
</span></strong>
<span
id=
"after_order_id"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
成交报告ID:
</span></strong>
<span
id=
"after_report_id"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
房源ID:
</span></strong>
<span
id=
"after_house_id"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
房源地址:
</span></strong>
<span
id=
"after_house_addr"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
入账日期 :
</span></strong>
<span
id=
"after_into_date"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
入账类型:
</span></strong>
<span
id=
"after_into_type"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--退款-->
<div
class=
"modal fade"
id=
"modal-back"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-width"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
退款
</h4>
</div>
<div
class=
"modal-body modal-body-height"
>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-12"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-2 ld-Marheight"
>
退款最大金额:
</span></strong>
<span
id=
"could_price_back"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
退款类型:
</span></strong>
<div
class=
"col-xs-6"
>
<select
class=
"form-control"
id=
"back_type"
>
<option
class=
""
value=
"-1"
>
请选择退款类型
</option>
<option
class=
"type_yixiang"
value=
"0"
>
退意向金
</option>
<option
class=
"type_yixiang"
value=
"1"
>
意向金转定
</option>
<option
class=
"type_baoguan"
value=
"2"
>
退保管金
</option>
<option
class=
"type_baoguan"
value=
"3"
>
保管金转定
</option>
<option
class=
"type_zhongjie"
value=
"4"
>
退中介费
</option>
<option
class=
"type_anchang"
value=
"5"
>
退案场费
</option>
</select>
</div>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
退款金额(元):
</span></strong>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
"0"
id=
"back_price"
/></div>
<!--<strong><span class="col-xs-2 ld-Marheight">元</span></strong>-->
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
退款凭证编号:
</span></strong>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
""
id=
"back_no"
/></div>
<!--<strong><span class="col-xs-2 ld-Marheight">元</span></strong>-->
</div>
</div>
<div
class=
"col-xs-12 rep"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-2 ld-Marheight"
>
退款原因:
</span></strong>
<div
class=
"col-xs-9"
style=
"padding:0px 10px 0px 5px;"
>
<input
class=
"form-control"
type=
"text"
value=
""
id=
"back_reason"
data-status=
"200"
autocomplete=
"off"
/>
<!--<ul class="reportArea" style="display:none" data-status="100" ></ul>-->
</div>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
入账类型:
</span></strong>
<span
id=
"back_into_type"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
商铺地址:
</span></strong>
<span
id=
"back_shop_addr"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
退款方式:
</span></strong>
<span
id=
"back_price_type"
class=
"col-xs-6 ld-Marheight"
>
银行卡
</span>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
退款账户:
</span></strong>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
""
id=
"back_price_user"
/></div>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
开户行:
</span></strong>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
""
id=
"back_bank"
/></div>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
户名:
</span></strong>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
""
id=
"back_bank_name"
/></div>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
收款人手机:
</span></strong>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
""
id=
"back_phone"
/></div>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-2 ld-Marheight"
>
其他说明:
</span></strong>
<div
class=
"col-xs-9"
style=
"padding:0px 10px 0px 5px;"
>
<input
class=
"form-control"
type=
"text"
value=
""
id=
"back_others"
data-status=
"200"
autocomplete=
"off"
/>
<!--<ul class="reportArea" style="display:none" data-status="100" ></ul>-->
</div>
</div>
</div>
<!--上传图片-->
<div
class=
"col-xs-12"
style=
"margin-top:20px;"
>
<div
class=
"col-xs-12"
style=
"padding-left:30px;"
>
<label>
上传资料图片:
</label>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"file-upload-area p-a-0 "
>
<ul
class=
"img-pre-ul"
id=
"fujian_ul"
></ul>
<div
class=
"btn-area"
>
<input
class=
"btn btn-default"
type=
"file"
id=
"file_input3"
data-limittop=
"10"
/>
<!--修改上传文件的最大数字-->
<button
class=
"btn btn-default"
style=
"margin-left : 144px;"
>
选择图片
</button>
</div>
<div
class=
"col-xs-12 p-t-10"
id=
"container_body_img_area3"
>
</div>
</div>
</div>
</div>
<div
class=
"col-xs-12"
style=
"padding:10px;"
>
<strong><span
style=
"margin-left:1rem;"
>
退意向金:收款人身份证、收款人银行卡、意向金收条、转账截图。
</span></strong>
</div>
<div
class=
"col-xs-12"
style=
"padding:10px;"
>
<strong><span
style=
"margin-left:1rem;"
>
意向金转定:收款人身份证、收款人银行卡、意向金收条、转账截图、居间协议、客户的授权委托书。
</span></strong>
</div>
<div
class=
"col-xs-12"
style=
"padding:10px;"
>
<strong><span
style=
"margin-left:1rem;"
>
退保管金:收款人身份证、收款人银行卡、转账截图、客户授权委托书。
</span></strong>
</div>
<div
class=
"col-xs-12"
style=
"padding:10px;"
>
<strong><span
style=
"margin-left:1rem;"
>
保管金转定:收款人身份证、收款人银行卡、转账截图、居间协议、客户授权委托书、房东授权委托书。
</span></strong>
</div>
<div
class=
"col-xs-12"
style=
"padding:10px;"
>
<strong><span
style=
"margin-left:1rem;"
>
退佣金:分部老总给施总申请截图、分红已退回公司的转账截图、收款人身份证、收款人银行卡。
</span></strong>
</div>
</div>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-primary submit_edit"
id=
"back_saveChangeBtn"
>
提交
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--调整-->
<div
class=
"modal fade"
id=
"modal-linetime"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-width"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
调整
</h4>
</div>
<div
class=
"modal-body modal-body-height"
>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-12"
>
<span>
该笔收款可调整/退款金额:
<strong><span
id=
"could_price"
>
1000
</span></strong>
元
</span>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
调整为:
</span></strong>
<div
class=
"col-xs-6"
>
<select
class=
"form-control"
id=
"change_type"
>
<option
class=
"yixiangjin"
value=
"91"
>
中介费
</option>
<option
class=
"yixiangjin"
value=
"92"
>
案场费
</option>
<option
class=
"yixiangjin"
value=
"10"
>
意向金
</option>
<option
class=
"yixiangjin"
value=
"30"
>
保管金
</option>
<option
class=
"baoguanjin"
value=
"91"
>
中介费
</option>
<option
class=
"baoguanjin"
value=
"92"
>
案场费
</option>
<option
class=
"baoguanjin"
value=
"30"
>
保管金
</option>
</select>
</div>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
调整金额(元):
</span></strong>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
"0"
id=
"change_price"
/></div>
<!--<strong><span class="col-xs-2 ld-Marheight">元</span></strong>-->
</div>
</div>
<!--新增中介费 类型 之前已收佣-->
<div
class=
"col-xs-6"
id=
"agency_fees_type_div"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
中介费类型:
</span></strong>
<div
class=
"col-xs-6"
>
<select
class=
"form-control"
id=
"agency_fees_type"
>
<option
class=
""
value=
"0"
>
正常
</option>
<option
class=
""
value=
"1"
>
多收
</option>
</select>
</div>
</div>
</div>
<div
class=
"col-xs-6"
id=
"before_commission_div"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
之前已收佣(元):
</span></strong>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
"0"
id=
"before_commission"
/></div>
<!--<strong><span class="col-xs-2 ld-Marheight">元</span></strong>-->
</div>
</div>
<div
class=
"col-xs-12 rep"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-2 ld-Marheight"
>
成交报告ID:
</span></strong>
<div
class=
"col-xs-9"
style=
"padding:0px 10px 0px 5px;"
>
<input
class=
"form-control"
type=
"text"
value=
""
id=
"report_id_change"
data-status=
"200"
autocomplete=
"off"
placeholder=
"请输入成交报告ID或商铺地址"
/>
<ul
class=
"reportArea"
style=
"display:none"
data-status=
"100"
></ul></div>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-2 ld-Marheight"
id=
"order_title"
>
调整后带看ID:
</span></strong>
<div
class=
"col-xs-9"
style=
"padding:0px 10px 0px 5px;"
>
<input
class=
"form-control"
type=
"text"
value=
""
id=
"into_id_change"
data-status=
"100"
autocomplete=
"off"
placeholder=
"搜索请输入商铺ID"
/>
<ul
class=
"intoIdArea"
style=
"display:none"
data-status=
"100"
></ul></div>
<!--<div class="col-xs-6"><input class="form-control" type="text" value="" id="into_id_change" readonly="true"/></div>-->
<!--<span id="into_id_change" class="col-xs-6 ld-Marheight"></span>-->
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
调整后商铺ID:
</span></strong>
<span
id=
"shop_id_change"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
调整后商铺地址:
</span></strong>
<span
id=
"shop_addr_change"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<div
class=
"col-xs-6 choose_topic_1"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
是否分红:
</span></strong>
<div
class=
"col-xs-6"
>
<select
class=
"form-control "
id=
"change_fenhong"
>
<option
value=
""
>
请选择
</option>
<option
value=
"1"
>
否
</option>
<option
value=
"0"
>
是
</option>
</select>
</div>
</div>
</div>
<div
class=
"col-xs-6 choose_topic_1"
>
<div
class=
"form-group tiaozheng_kaiye"
style=
"display: none;"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
是否开业:
</span></strong>
<div
class=
"col-xs-6"
>
<select
class=
"form-control "
id=
"change_kaiye"
>
<option
value=
"3"
>
请选择
</option>
<option
value=
"0"
>
否
</option>
<option
value=
"1"
>
是
</option>
</select>
</div>
</div>
</div>
<div
class=
"col-xs-6 choose_topic_2"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
商铺号:
</span></strong>
<!--<span id="shop_id_change_shop" class="col-xs-6 ld-Marheight"></span>-->
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
""
id=
"shop_id_change_shop"
/></div>
</div>
</div>
<div
class=
"col-xs-6 choose_topic_2"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
最后转定时间:
</span></strong>
<!--<div class="col-xs-6"><input class="form-control" type="text" value="" id="change_time"
onClick="WdatePicker({el:this,dateFmt:'yyyy-MM-dd',minDate:'#F{ $dp.$D(\'comit_time_start\' )}',maxDate:'%y-%M-%d',readOnly:'readonly'})" /></div>-->
<input
class=
"form-control"
type=
"text"
value=
""
id=
"change_time"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',maxDate:'%y-%M-%d',readOnly:true})"
/>
</div>
</div>
<!--上传图片-->
<div
class=
"col-xs-12"
style=
"margin-top:20px;"
>
<div
class=
"col-xs-12"
style=
"padding-left:30px;"
>
<label>
上传资料图片:
</label>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"file-upload-area p-a-0 "
>
<ul
class=
"img-pre-ul"
id=
"fujian_ul"
></ul>
<div
class=
"btn-area"
>
<input
class=
"btn btn-default"
type=
"file"
id=
"file_input"
data-limittop=
"10"
/>
<!--修改上传文件的最大数字-->
<button
class=
"btn btn-default"
style=
"margin-left : 144px;"
>
选择图片
</button>
</div>
<div
class=
"col-xs-12 img_area p-t-10"
>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-primary submit_edit"
id=
"saveChangeBtn"
>
提交
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!-- /#撤销调整 -->
<div
class=
"modal fade"
id=
"modal_adjust"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
撤销调整
</h4>
</div>
<div
class=
"modal-body"
>
<div
class=
"modal-body"
>
<input
type=
"hidden"
value=
""
id=
"delete_id"
/>
确认撤销调整吗?
</div>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
取消
</button>
<button
type=
"button"
class=
"btn btn-primary"
id=
"confirm_adjusment"
data-dismiss=
"modal"
>
确定
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
\ No newline at end of file
application/index/view/cost/costCheck.html
View file @
e565fb5d
{layout name="global/frame_two_tpl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"costCheck"
/>
<style>
.choose_total
,
.choose_siteID
,
.choose_store
{
display
:
none
;
}
.user-ul2
{
width
:
100%
;
height
:
auto
;
padding-bottom
:
15px
;
float
:
left
;
}
.user-ul2
li
{
list-style
:
none
;
line-height
:
30px
;
}
.user-ul
{
float
:
right
;
text-align
:
center
;
position
:
relative
;
overflow-y
:
scroll
;
height
:
100px
;
left
:
0px
;
width
:
100%
;
line-height
:
30px
;
}
.user-ul
li
{
list-style
:
none
;
line-height
:
20px
;
}
ul
{
-webkit-padding-start
:
0px
!important
;
}
.margain-10
{
margin-bottom
:
10px
;
}
...
...
@@ -76,12 +111,12 @@
<a
href=
"javascript:;"
>
费用报销审核
</a>
</li>
<div
class=
"btn-group"
>
<button
type=
"button"
class=
"choose_btn btn btn-info
"
data-value=
"
1"
style=
"margin-left: 20px;"
>
总监通过
</button>
<button
type=
"button"
class=
"choose_btn btn btn-default
"
data-value=
"3
"
>
财务一审通过
</button>
<button
type=
"button"
class=
"choose_btn btn btn-default
"
data-value=
"2
"
>
财务二审通过
</button>
<button
type=
"button"
class=
"choose_btn btn btn-default
"
data-value=
"
4"
>
财务三审通过
</button>
<button
type=
"button"
class=
"choose_btn btn btn-default
"
data-value=
"5
"
>
未审核
</button>
<button
type=
"button"
class=
"choose_btn btn btn-default
"
data-value=
"-1
"
>
全部
</button>
<button
type=
"button"
class=
"choose_btn btn btn-info
choose_btn1"
data-value=
"/index/getCostListTwo/
1"
style=
"margin-left: 20px;"
>
总监通过
</button>
<button
type=
"button"
class=
"choose_btn btn btn-default
choose_btn2"
data-value=
"/index/getCostListThree/2
"
>
财务一审通过
</button>
<button
type=
"button"
class=
"choose_btn btn btn-default
choose_btn3"
data-value=
"/index/getCostListFour/3
"
>
财务二审通过
</button>
<button
type=
"button"
class=
"choose_btn btn btn-default
choose_btn4"
data-value=
"/index/getCostListFive/
4"
>
财务三审通过
</button>
<button
type=
"button"
class=
"choose_btn btn btn-default
choose_btn5"
data-value=
"/index/getCostListOne/0
"
>
未审核
</button>
<button
type=
"button"
class=
"choose_btn btn btn-default
choose_btn6"
data-value=
"/index/getCostList
"
>
全部
</button>
</div>
<div
class=
"pull-right"
>
<ul
class=
"bread_btn"
>
...
...
@@ -100,40 +135,53 @@
<td
colspan=
"15"
>
<form
id=
"form_search"
>
<span
class=
"fore-span ld-Marheight"
>
计入月份:
</span>
<input
id=
"co
mit_time_start
"
class=
"form-control btn4 ld-Marheight"
type=
"text"
placeholder=
"请选择"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM',
maxDate:'#F{ $dp.$D(\'comit_time_end\')||\'%y-%M-%d\'}',
readOnly:'readonly' })"
>
<input
id=
"co
unt_time
"
class=
"form-control btn4 ld-Marheight"
type=
"text"
placeholder=
"请选择"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM',readOnly:'readonly' })"
>
<span
class=
"fore-span ld-Marheight"
>
申请提交时间:
</span>
<input
id=
"c
omit
_time_start"
class=
"form-control btn4 ld-Marheight"
type=
"text"
placeholder=
"开始时间"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',maxDate:'#F{ $dp.$D(\'c
omit
_time_end\')||\'%y-%M-%d\'}',readOnly:'readonly' })"
>
<input
id=
"c
reate
_time_start"
class=
"form-control btn4 ld-Marheight"
type=
"text"
placeholder=
"开始时间"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',maxDate:'#F{ $dp.$D(\'c
reate
_time_end\')||\'%y-%M-%d\'}',readOnly:'readonly' })"
>
<span
class=
"fore-span ld-Marheight"
>
-
</span>
<input
id=
"c
omit
_time_end"
class=
"form-control btn4 ld-Marheight"
type=
"text"
placeholder=
"结束时间"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',minDate:'#F{ $dp.$D(\'c
omit_time_start\' )}',maxDate:'%y-%M-%d',readOnly:'readO
nly'})"
>
<input
id=
"c
reate
_time_end"
class=
"form-control btn4 ld-Marheight"
type=
"text"
placeholder=
"结束时间"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',minDate:'#F{ $dp.$D(\'c
reate_time_start\' )}',maxDate:'%y-%M-%d',readOnly:'reado
nly'})"
>
<span
class=
"fore-span ld-Marheight"
>
财务三审通过时间:
</span>
<input
id=
"
into
_time_start"
class=
"form-control btn4 ld-Marheight"
type=
"text"
placeholder=
"开始时间"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',maxDate:'#F{ $dp.$D(\'
into
_time_end\')||\'%y-%M-%d\'}',readOnly:'readonly'})"
>
<input
id=
"
pass
_time_start"
class=
"form-control btn4 ld-Marheight"
type=
"text"
placeholder=
"开始时间"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',maxDate:'#F{ $dp.$D(\'
pass
_time_end\')||\'%y-%M-%d\'}',readOnly:'readonly'})"
>
<span
class=
"fore-span ld-Marheight"
>
-
</span>
<input
id=
"
into
_time_end"
class=
"form-control btn4 ld-Marheight"
type=
"text"
placeholder=
"结束时间"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',minDate:'#F{ $dp.$D(\'
into_time_start\'
)}',maxDate:'%y-%M-%d',readOnly:'readonly'})"
>
<select
class=
"form-control btn2 ld-Marheight"
id=
"c
hanged
_type"
>
<input
id=
"
pass
_time_end"
class=
"form-control btn4 ld-Marheight"
type=
"text"
placeholder=
"结束时间"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',minDate:'#F{ $dp.$D(\'
pass_time_start\'
)}',maxDate:'%y-%M-%d',readOnly:'readonly'})"
>
<select
class=
"form-control btn2 ld-Marheight"
id=
"c
ost
_type"
>
<option
value=
""
>
费用类型
</option>
<option
value=
"0"
>
退意向金
</option>
<option
value=
"1"
>
意向金转定
</option>
<option
value=
"2"
>
退保管金
</option>
<option
value=
"3"
>
保管金转定
</option>
<option
value=
"4"
>
退中介费
</option>
<option
value=
"5"
>
退案场费
</option>
<option
value=
"0"
>
办公室成本
</option>
<option
value=
"1"
>
总部成本
</option>
<option
value=
"2"
>
分部成本
</option>
<option
value=
"3"
>
门店独有成本
</option>
</select>
<select
class=
"form-control btn2 ld-Marheight"
id=
"
changed_type
"
>
<select
class=
"form-control btn2 ld-Marheight"
id=
"
fee_item
"
>
<option
value=
""
>
费用项目
</option>
<option
value=
"0"
>
退意向金
</option>
<option
value=
"1"
>
意向金转定
</option>
<option
value=
"2"
>
退保管金
</option>
<option
value=
"3"
>
保管金转定
</option>
<option
value=
"4"
>
退中介费
</option>
<option
value=
"5"
>
退案场费
</option>
<!--办公室类型-->
<option
value=
"101"
class=
"choose_office"
>
水电费
</option>
<option
value=
"102"
class=
"choose_office"
>
其他费用
</option>
<!--总部成本类型-->
<option
value=
"102"
class=
"choose_total"
>
其他费用
</option>
<!--分部成本类型-->
<option
value=
"10002"
class=
"choose_siteID"
>
杭州
</option>
<option
value=
"10003"
class=
"choose_siteID"
>
深圳
</option>
<option
value=
"10004"
class=
"choose_siteID"
>
广州
</option>
<option
value=
"10005"
class=
"choose_siteID"
>
北京
</option>
<!--门店独有成本类型-->
<option
value=
"506"
class=
"choose_store"
>
区域经理基本工资
</option>
<option
value=
"504"
class=
"choose_store"
>
区域秘书基薪
</option>
<option
value=
"505"
class=
"choose_store"
>
招聘成本
</option>
<option
value=
"507"
class=
"choose_store"
>
宿舍成本
</option>
<option
value=
"508"
class=
"choose_store"
>
宿舍亏损
</option>
<option
value=
"510"
class=
"choose_store"
>
员工工资成本
</option>
<option
value=
"511"
class=
"choose_store"
>
网络报销
</option>
<option
value=
"512"
class=
"choose_store"
>
离职员工网络
</option>
</select>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"changed_id"
placeholder=
"费用用途"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"back_id_money"
placeholder=
"费用报销ID"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"purpose"
placeholder=
"费用用途"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"cost_id"
placeholder=
"费用报销ID"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"comit_name"
placeholder=
"提交人姓名"
type=
"text"
value=
""
>
<ul
class=
"user-ul"
style=
"display:none"
></ul>
<select
class=
"form-control btn2 ld-Marheight"
id=
"commit_home"
>
...
...
@@ -178,26 +226,6 @@
</div>
</div>
</div>
<!--时间轴-->
<div
class=
"modal fade"
id=
"modal-time"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
时间轴
</h4>
</div>
<div
class=
"modal-body"
class=
"iframe-div-parent"
>
<iframe
class=
"iframe-time-line"
></iframe>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!-- 新增报销 -->
<div
class=
"modal fade"
id=
"modal-check"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
style=
"font-size: 16px;"
>
<div
class=
"modal-dialog"
style=
"width: 900px;font-size: 14px;"
>
...
...
application/index/view/cost/costOffice.html
View file @
e565fb5d
...
...
@@ -438,9 +438,7 @@
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
取消
</button>
<button
type=
"button"
class=
"btn btn-primary"
id=
"confirm_delete"
data-dismiss=
"modal"
>
删除
</button>
<a
class=
"btn btn-info newStore"
href=
"#modal_addStore"
data-toggle=
"modal"
>
新增门店
</a>
</div>
</div>
<!-- /.modal-content -->
...
...
@@ -448,6 +446,35 @@
<!-- /.modal -->
</div>
<!--新增门店-->
<div
class=
"modal fade"
id=
"modal_addStore"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-dialog-one"
style=
"width: 500px;"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
新增门店
</h4>
</div>
<div
class=
"modal-body modal-body-one"
>
<br>
<input
class=
"form-control ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"comit_name"
placeholder=
"请输入门店名称进行搜索"
type=
"text"
value=
""
style=
"width: 300px;"
>
<ul
class=
"user-ul"
style=
"display:none"
></ul>
<br><br><br>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
取消
</button>
<button
type=
"button"
class=
"btn btn-primary"
id=
"saveStore"
data-dismiss=
"modal"
>
确定
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<div
id=
"img_mask_area"
title=
"点击任意位置可关闭"
>
<img
/>
</div>
application/index/view/global/footer_tpl.html
View file @
e565fb5d
<script
src=
'/resource/lib/js/require.min.js'
data-main=
'/resource/js/main?version=20190718'
charset=
'utf-8'
></script>
<script
src=
'/resource/lib/js/require.min.js'
data-main=
'/resource/js/main?version=2019
1
0718'
charset=
'utf-8'
></script>
application/model/AStore.php
View file @
e565fb5d
...
...
@@ -267,6 +267,7 @@ class AStore extends BaseModel
/**
* 获取门店
* @param $params
* @param $field
* @return false|\PDOStatement|string|\think\Collection
*/
public
function
getStore
(
$params
,
$field
)
...
...
@@ -275,7 +276,6 @@ class AStore extends BaseModel
->
field
(
$field
)
->
where
(
$params
)
->
select
();
//echo Db::table($this->table)->getLastSql();
//dump($this->getLastSql());
return
$result
;
}
...
...
@@ -337,4 +337,14 @@ class AStore extends BaseModel
->
count
();
return
$store_num
;
}
/**
* 更新数据
* @param $params
* @return mixed
*/
public
function
updateStore
(
$params
)
{
return
Db
::
table
(
$this
->
table
)
->
update
(
$params
);
}
}
\ No newline at end of file
application/model/FApplyForFee.php
View file @
e565fb5d
...
...
@@ -16,18 +16,29 @@ class FApplyForFee extends BaseModel
$this
->
db_
=
Db
::
name
(
$this
->
table
);
}
/**
* 新增数据
* @param $data
* @return mixed
* @return int|string
* @throws \think\Exception
* @throws \think\exception\PDOException
*/
public
function
saveOffice
(
$data
)
{
$time
=
date
(
"Y-m-d H:i:s"
,
time
());
public
function
saveData
(
$data
)
{
$data
[
"is_del"
]
=
0
;
$data
[
'create_time'
]
=
$time
;
$data
[
'update_time'
]
=
$time
;
return
$this
->
db_
->
insert
(
$data
);
$data
[
'create_time'
]
=
date
(
"Y-m-d H:i:s"
,
time
());
$id
=
$this
->
db_
->
insertGetId
(
$data
);
return
$id
;
}
/**
* @param $data
* @return int|string
* @throws \think\Exception
* @throws \think\exception\PDOException
*/
public
function
updateData
(
$data
,
$where
)
{
$data
[
'update_time'
]
=
date
(
"Y-m-d H:i:s"
,
time
());
return
$this
->
db_
->
update
(
$data
);
}
/**
...
...
@@ -41,4 +52,33 @@ class FApplyForFee extends BaseModel
->
find
();
return
$result
;
}
/**
* @param int $pageNo
* @param int $pageSize
* @param string $order_
* @param string $field
* @param string $params
* @return false|\PDOStatement|string|\think\Collection
*/
public
function
getJoinAgentList
(
$pageNo
=
1
,
$pageSize
=
15
,
$order_
=
'a.id desc'
,
$field
=
''
,
$params
=
''
)
{
return
$this
->
field
(
$field
)
->
alias
(
'a'
)
->
join
(
'a_agents b'
,
'a.agent_id=b.id'
,
'left'
)
->
where
(
$params
)
->
order
(
$order_
)
->
limit
(
$pageSize
)
->
page
(
$pageNo
)
->
select
();
}
/**
* @param string $params
* @return int|string
*/
public
function
getJoinAgentListTotal
(
$params
=
''
)
{
return
$this
->
alias
(
'a'
)
->
join
(
'a_agents b'
,
'a.agent_id=b.id'
,
'left'
)
->
where
(
$params
)
->
count
(
'a.id'
);
}
}
application/model/FApplyForFeeCheck.php
View file @
e565fb5d
...
...
@@ -22,7 +22,7 @@ class FApplyForFeeCheck extends BaseModel
* @param $data
* @return mixed
*/
public
function
save
Office
(
$data
)
{
public
function
save
Data
(
$data
)
{
$time
=
date
(
"Y-m-d H:i:s"
,
time
());
$data
[
"is_del"
]
=
0
;
$data
[
'create_time'
]
=
$time
;
...
...
@@ -41,4 +41,31 @@ class FApplyForFeeCheck extends BaseModel
->
find
();
return
$result
;
}
/**
* @param $field
* @param $params
* @return array
*/
public
function
findColumn
(
$field
,
$params
)
{
return
$this
->
db_
->
where
(
$params
)
->
column
(
$field
);
}
/**
* @param $field
* @param $params
* @param string $order
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
findByOneOrder
(
$field
,
$params
,
$order
=
'id desc'
)
{
return
$this
->
db_
->
field
(
$field
)
->
where
(
$params
)
->
order
(
$order
)
->
find
();
}
}
application/model/FOffice.php
View file @
e565fb5d
...
...
@@ -84,57 +84,6 @@ class FOffice extends BaseModel
{
return
$this
->
db_
->
update
(
$params
);
}
//
// /**
// * 根据id获取单个字段值
// *
// * @param $id
// * @param $where
// * @param $fields
// * @return mixed
// */
// public function getOfficeById($fields, $id, $where = [])
// {
// $where['is_del'] = 0;
// if ($id) {
// $where['id'] = $id;
// }
// $return = $this->db_->where($where)->value($fields);
// return $return;
// }
//
// /**
// * @param $id
// * @param $fields
// * @return false|\PDOStatement|string|\think\Collection
// * @throws \think\db\exception\DataNotFoundException
// * @throws \think\db\exception\ModelNotFoundException
// * @throws \think\exception\DbException
// */
// public function getOfficeByIdList($id, $fields)
// {
// $return = $this->db_->field($fields)->where('id', 'in',$id)->select();
// return $return;
// }
//
// /**
// * @param string $fields
// * @param array $where
// * @return bool|false|\PDOStatement|string|\think\Collection
// * User HuJun
// * Date 19-5-9 上午10:00
// */
// public function getOfficeList($fields = 'id,name,city', $where = [])
// {
// if (!isset($where['is_del'])) {
// $where['is_del'] = 0;
// }
// try {
// $result = $this->db_->field($fields)->where($where)->select();
// } catch (\Exception $e) {
// $result = false;
// }
// return $result;
// }
}
application/model/FStoreCostExt.php
0 → 100644
View file @
e565fb5d
<?php
namespace
app\model
;
use
think\Db
;
use
think\Model
;
class
FStoreCostExt
extends
BaseModel
{
protected
$table
=
'f_store_cost_ext'
;
private
$db_
;
public
function
__construct
(
$data
=
[])
{
parent
::
__construct
(
$data
);
$this
->
db_
=
Db
::
name
(
$this
->
table
);
}
/**
* 查询数据
* @param $field
* @param $params
* @return false|\PDOStatement|string|\think\Collection
*/
public
function
getStoreCostExt
(
$field
,
$params
,
$pageNo
,
$pageSize
)
{
$params
[
"b.status"
]
=
0
;
$result
=
$this
->
db_
->
field
(
$field
)
->
alias
(
'a'
)
->
join
(
'f_store_cost b'
,
'a.cost_id = b.id'
,
'left'
)
->
where
(
$params
)
->
limit
(
$pageSize
)
->
page
(
$pageNo
)
->
select
();
return
$result
;
}
public
function
getStoreCostExtTotal
(
$field
,
$params
)
{
$params
[
"b.status"
]
=
0
;
$result
=
$this
->
db_
->
field
(
$field
)
->
alias
(
'a'
)
->
join
(
'f_store_cost b'
,
'a.cost_id = b.id'
,
'left'
)
->
where
(
$params
)
->
count
();
return
$result
;
}
}
application/model/OPayLogAdjustment.php
View file @
e565fb5d
...
...
@@ -88,6 +88,7 @@ class OPayLogAdjustment extends BaseModel{
* @return int|mixed
*/
public
function
getFieldColumn
(
$field
,
$params
)
{
$params
[
'is_del'
]
=
0
;
return
$this
->
db_
->
where
(
$params
)
->
column
(
$field
);
}
...
...
application/model/OfficeOBargainModel.php
View file @
e565fb5d
...
...
@@ -391,7 +391,7 @@ class OfficeOBargainModel extends Model
])
->
find
();
if
(
$bargain_data
!=
''
)
{
$audit
=
new
OFinancialAudit
();
$audit
=
new
O
fficeO
FinancialAudit
();
$audit_data
=
$audit
->
getLastStep
(
$bargain_data
[
'id'
],
$source
);
//获取最后一次审核等级
$save_data
[
'bargain_id'
]
=
$bargain_data
[
'id'
];
...
...
application/route.php
View file @
e565fb5d
...
...
@@ -524,6 +524,22 @@ Route::group('index', [
'getOfficeInfo'
=>
[
'index/StoreFee/getOfficeInfo'
,
[
'method'
=>
'POST|GET'
]
],
'editOffice'
=>
[
'index/StoreFee/editOffice'
,
[
'method'
=>
'POST|GET'
]
],
'getStoreList'
=>
[
'index/StoreFee/getStoreList'
,
[
'method'
=>
'POST|GET'
]
],
'bindStore'
=>
[
'index/StoreFee/bindStore'
,
[
'method'
=>
'POST|GET'
]
],
'selectStore'
=>
[
'index/StoreFee/selectStore'
,
[
'method'
=>
'POST|GET'
]
],
'getCostList'
=>
[
'index/Cost/getCostList'
,
[
'method'
=>
'GET'
]],
//费用报销审核全部
'getCostListOne/:check_status'
=>
[
'index/Cost/getCostList'
,
[
'method'
=>
'GET'
],
[
'check_status'
=>
0
]],
//费用报销未审核
'getCostListTwo/:check_status'
=>
[
'index/Cost/getCostList'
,
[
'method'
=>
'GET'
],
[
'check_status'
=>
1
]],
//费用报销审核总监
'getCostListThree/:check_status'
=>
[
'index/Cost/getCostList'
,
[
'method'
=>
'GET'
],
[
'check_status'
=>
2
]],
//费用报销审核一审
'getCostListFour/:check_status'
=>
[
'index/Cost/getCostList'
,
[
'method'
=>
'GET'
],
[
'check_status'
=>
3
]],
//费用报销审核二审
'getCostListFive/:check_status'
=>
[
'index/Cost/getCostList'
,
[
'method'
=>
'GET'
],
[
'check_status'
=>
4
]],
//费用报销审核三审
'delCost'
=>
[
'index/Cost/delCost'
,
[
'method'
=>
'POST'
]],
//删除费用报销审核
'checkCostTwo/:check_status'
=>
[
'index/Cost/checkCost'
,
[
'method'
=>
'POST'
],
[
'check_status'
=>
1
]],
//费用报销审核总监
'checkCostThree/:check_status'
=>
[
'index/Cost/checkCost'
,
[
'method'
=>
'POST'
],
[
'check_status'
=>
2
]],
//费用报销审核一审
'checkCostFour/:check_status'
=>
[
'index/Cost/checkCost'
,
[
'method'
=>
'POST'
],
[
'check_status'
=>
3
]],
//费用报销审核二审
'checkCostFive/:check_status'
=>
[
'index/Cost/checkCost'
,
[
'method'
=>
'POST'
],
[
'check_status'
=>
4
]],
//费用报销审核三审
'getCostDetailList'
=>
[
'index/CostDetail/getCostDetailList'
,
[
'method'
=>
'POST|GET'
]
],
]);
...
...
@@ -1152,6 +1168,8 @@ Route::group('office_index', [
'checkReportAttache/:check_status'
=>
[
'index/OfficeBargain/checkReport'
,
[
'method'
=>
'post'
],
[
'check_status'
=>
1
]],
//审核成交报告-第一级审核
'checkReportManager/:check_status'
=>
[
'index/OfficeBargain/checkReport'
,
[
'method'
=>
'post'
],
[
'check_status'
=>
2
]],
//审核成交报告-第二级审核
'checkReportMajordomo/:check_status'
=>
[
'index/OfficeBargain/checkReport'
,
[
'method'
=>
'post'
],
[
'check_status'
=>
3
]],
//审核成交报告-第三级审核
'checkOver'
=>
[
'index/OfficeBargain/checkOver'
,
[
'method'
=>
'POST'
]],
//财务结单
'toReportListOne'
=>
[
'index/OfficeBargain/toReportListOne'
,
[
'method'
=>
'POST'
]],
//回到一级审核
'partialCommissionList'
=>
[
'index/OfficeFinance/partialCommissionList'
,
[
'method'
=>
'get'
]],
//分佣提成明细表
'performanceInfo'
=>
[
'index/OfficePerformanceInfo/performanceInfo'
,
[
'method'
=>
'GET|POST'
]],
//业绩明细办公楼
...
...
application/task/controller/PrivacyNumber.php
View file @
e565fb5d
...
...
@@ -177,10 +177,11 @@ class PrivacyNumber
$is_down
=
''
;
foreach
(
$down_data
as
$k
=>
$v
)
{
$date_path
=
date
(
'Ymd'
,
strtotime
(
$v
[
'call_time'
]));
if
(
file_exists
(
PHONE_VOICE
.
'/'
.
$v
[
'voice_file'
])
&&
!
empty
(
$v
[
'voice_file'
]))
{
$data
[
'record_down'
]
=
empty
(
$v
[
'record_down'
])
?
1
:
2
;
if
(
$data
[
'record_down'
]
==
1
)
{
$data
[
'voice_file'
]
=
date
(
'Ymd'
)
.
'/'
.
basename
(
$is_down
);
$data
[
'voice_file'
]
=
$date_path
.
'/'
.
basename
(
$is_down
);
}
$this
->
m_secret_report
->
updateDownStatus
(
$v
[
'id'
],
$data
);
continue
;
...
...
@@ -205,7 +206,7 @@ class PrivacyNumber
$file_name
=
explode
(
'/'
,
$v
[
'voice_file'
]);
$file_name
=
$file_name
[
1
];
}
$is_down
=
down_file
(
$result_data
->
DownloadUrl
,
PHONE_VOICE
,
$file_name
,
$
create_time
);
$is_down
=
down_file
(
$result_data
->
DownloadUrl
,
PHONE_VOICE
,
$file_name
,
$
date_path
);
}
}
elseif
(
$v
[
'type'
]
==
2
)
{
/*容联云音频下载*/
...
...
@@ -216,14 +217,14 @@ class PrivacyNumber
$file_name
=
explode
(
'/'
,
$v
[
'voice_file'
]);
$file_name
=
$file_name
[
1
];
}
$is_down
=
down_file
(
$v
[
'mp3_url'
],
PHONE_VOICE
,
$file_name
,
$
create_time
);
$is_down
=
down_file
(
$v
[
'mp3_url'
],
PHONE_VOICE
,
$file_name
,
$
date_path
);
}
}
if
(
file_exists
(
$is_down
))
{
$data
[
'record_down'
]
=
empty
(
$v
[
'record_down'
])
?
1
:
2
;
if
(
$data
[
'record_down'
]
==
1
)
{
$data
[
'voice_file'
]
=
date
(
'Ymd'
)
.
'/'
.
basename
(
$is_down
);
$data
[
'voice_file'
]
=
$date_path
.
'/'
.
basename
(
$is_down
);
}
$this
->
m_secret_report
->
updateDownStatus
(
$v
[
'id'
],
$data
);
}
...
...
@@ -1024,4 +1025,23 @@ class PrivacyNumber
return
Response
::
create
([
'code'
=>
200
,
'msg'
=>
'修改数量'
.
$result
],
'json'
);
}
public
function
dateFilePath
(){
$model
=
new
AliYunSecretReport
();
$date
=
$_GET
[
'date'
];
$where
[
'voice_file'
]
=
[
'like'
,
date
(
'Ymd'
,
strtotime
(
'+1 day'
,
strtotime
(
$date
)))
.
'/%'
];
$where
[
'create_time'
]
=
[
'between'
,
[
date
(
'Y-m-d'
,
strtotime
(
$date
))
.
' 00:00:00'
,
date
(
'Y-m-d'
,
strtotime
(
$date
))
.
' 23:59:59'
]];
$data
=
$model
->
secretReportAll
(
'id,call_time,voice_file'
,
$where
,
500
);
foreach
(
$data
as
$k
=>
$v
)
{
$file_arr
=
explode
(
'/'
,
$v
[
'voice_file'
]);
$update_data
[
$k
]
=
[
'id'
=>
$v
[
'id'
],
'voice_file'
=>
date
(
'Ymd'
,
strtotime
(
$v
[
'call_time'
]))
.
'/'
.
$file_arr
[
1
]
];
}
if
(
$_GET
[
'update'
])
{
$model
->
saveAll
(
$update_data
);
}
return
Response
::
create
([
'code'
=>
200
,
'msg'
=>
''
,
'data'
=>
$update_data
],
'json'
);
}
}
\ No newline at end of file
public/resource/js/accountingTable.js
View file @
e565fb5d
...
...
@@ -43,36 +43,6 @@ define(['doT','html2canvas','text!temp/accountingTable_list_template_tpl.html',
var
day_end
=
y
+
'-'
+
(
m
<
10
?
(
'0'
+
m
)
:
m
)
+
'-'
+
(
d
<
10
?
(
'0'
+
d
)
:
d
);
$
(
'#create_time_start'
).
val
(
day_end
);
//店长日报默认当天
//初始化dot
if
(
getUrlParam
(
'time'
)){
$
(
'.is-close'
).
show
();
bargain
.
isFinancial
=
1
;
//财务
$
(
'#create_time_start'
).
hide
();
$
(
'.is-submit'
).
hide
();
$
(
'.is-print'
).
show
();
$
(
'.is-submit-passed-btn'
).
show
();
$
(
'.is-submit-pass-btn'
).
show
();
bargain
.
financialTime
=
getUrlParam
(
'time'
);
var
managerTitle
=
localStorage
.
getItem
(
'financial_check_string_liu'
)
+
' '
+
bargain
.
financialTime
;
$
(
'.manager-title'
).
html
(
managerTitle
);
bargain
.
store_id
=
getUrlParam
(
'storeId'
);
}
else
{
$
(
'.is-close'
).
hide
();
$
(
'.is-submit-passed-btn'
).
hide
();
$
(
'.is-submit-pass-btn'
).
hide
();
bargain
.
isFinancial
=
0
;
bargain
.
financialTime
=
$
(
'#create_time_start'
).
val
();
if
(
$
.
trim
(
user_info_obj
.
store_name
)){
$
(
'.manager-title'
).
html
(
user_info_obj
.
store_name
);
}
else
{
$
(
'.manager-title'
).
html
(
'您还不是店长'
);
}
bargain
.
store_id
=
user_info_obj
.
store_id
;
}
// 缓存bargain.isFinancial
localStorage
.
setItem
(
'isFinancialDianZhang'
,
bargain
.
isFinancial
);
$
(
document
.
body
).
append
(
template
);
bargain
.
getList
(
1
);
bargain
.
event
();
...
...
@@ -90,801 +60,20 @@ define(['doT','html2canvas','text!temp/accountingTable_list_template_tpl.html',
}
bargain
.
getList
(
1
);
});
//财务日报审核 点击关闭按钮
_doc
.
on
(
'click'
,
'.is-close'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
location
.
href
=
'/index/dailyList'
});
//点击删除按钮 获取收款id
_doc
.
on
(
'click'
,
'.del-details'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
bargain
.
recordid
=
$
(
this
).
attr
(
"data-recordid"
);
bargain
.
isOffice
=
$
(
this
).
attr
(
"data-typeC"
);
//标识商铺 办公楼
});
//点击删除 删除详情
_doc
.
on
(
'click'
,
'#confirm_delete'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
bargain
.
delDetail
();;
});
//点击撤销调整
_doc
.
on
(
'click'
,
'.modal-adjust'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
bargain
.
isOffice
=
$
(
this
).
attr
(
"data-typeC"
);
//标识商铺 办公楼
bargain
.
adjusment_id
=
e
.
target
.
dataset
.
id
;
});
_doc
.
on
(
'click'
,
'#confirm_adjusment'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
bargain
.
deleteTableRow
(
bargain
.
adjusment_id
);
});
//中介费 类型切换 多收 正常
$
(
"#agency_fees_type_text"
).
change
(
function
()
{
//中介费类型显示 隐藏 中介费
if
(
$
(
this
).
val
()
*
1
==
1
){
var
persent_liu
=
0
;
receiv
.
receivedMoneyLiu
=
receiv
.
receivedMoneyLiu
*
0
;
}
else
{
var
persent_liu
=
0.7
;
receiv
.
receivedMoneyLiu
=
receiv
.
receivedMoneyLiu
*
1
;
};
$
(
"#getPrice"
).
text
((
Math
.
floor
(((
receiv
.
payment_details_price
-
0
)
*
persent_liu
)
*
100
)
/
100
).
toFixed
(
2
)
+
"元"
);
$
(
"#morePrice"
).
text
((
Math
.
floor
((
receiv
.
payment_details_money
-
((
receiv
.
payment_details_price
-
0
)
*
persent_liu
)
+
receiv
.
receivedMoneyLiu
)
*
100
)
/
100
).
toFixed
(
2
));
if
(
$
(
"#morePrice"
).
html
()
*
1
<
0
){
$
(
"#morePrice"
).
html
(
0
)
}
});
//点击资料 显示图片
_doc
.
on
(
'click'
,
'.record-pic'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
bargain
.
recordid
=
$
(
this
).
attr
(
"data-recordid"
);
bargain
.
isOffice
=
$
(
this
).
attr
(
"data-typeC"
);
//标识商铺 办公楼
bargain
.
getPic
();
});
//点击开业申请 显示图片
_doc
.
on
(
'click'
,
'.apply-open'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
bargain
.
pay_log_id_open
=
$
(
this
).
attr
(
"data-pay_log_id"
);
bargain
.
report_id_open
=
$
(
this
).
attr
(
"data-report_id"
);
bargain
.
bargain_id_open
=
$
(
this
).
attr
(
"data-bargain_id"
);
bargain
.
order_id_open
=
$
(
this
).
attr
(
"data-order_id"
);
bargain
.
house_id_open
=
$
(
this
).
attr
(
"data-house_id"
);
bargain
.
house_address_open
=
$
(
this
).
attr
(
"data-house_address"
);
$
(
'.remark-financial-open'
).
val
(
''
);
//置空还有备注
$
(
'.result-du-open'
).
remove
();
//置空开业图片
});
//收款详情页面
$
(
document
).
on
(
'click'
,
'.add-pic'
,
function
(
e
){
// 初始化界面
$
(
'.pic-con2'
).
show
();
$
(
'.pic-con1'
).
hide
();
$
(
'.tit_con'
).
removeClass
(
"active"
);
$
(
'.shoukuanxiangqing'
).
addClass
(
"active"
);
var
id
=
$
(
this
).
attr
(
"data-recordid"
);
bargain
.
isOffice
=
$
(
this
).
attr
(
"data-typeC"
);
//标识商铺 办公楼
//获取收款详情单条数据
bargain
.
getMoneyDetail
(
id
);
bargain
.
house_fatherid
=
id
;
//获取图片
bargain
.
getaddPicList
(
id
);
});
//收款图片 和 收款详情切换
$
(
'.tit_con'
).
unbind
(
'click'
).
bind
(
'click'
,
function
(
e
){
$
(
this
).
parent
(
'div'
).
find
(
'h4.active'
).
removeClass
(
"active"
);
$
(
this
).
addClass
(
"active"
);
if
(
e
.
currentTarget
.
innerHTML
==
"收款图片"
){
$
(
'.pic-con1'
).
show
();
$
(
'.pic-con2'
).
hide
();
}
else
{
$
(
'.pic-con2'
).
show
();
$
(
'.pic-con1'
).
hide
();
}
});
//图片上传相关
$
(
'#file_input_pic'
).
on
(
'change'
,
function
(){
var
_this
=
$
(
this
);
var
formData
=
new
FormData
();
formData
.
append
(
'type'
,
'chat'
);
formData
.
append
(
'image'
,
_this
[
0
].
files
[
0
]);
$
.
ajax
({
type
:
'post'
,
url
:
ServerHostImageLiu
+
'/index/uploadImg'
,
data
:
formData
,
dataType
:
'json'
,
contentType
:
false
,
cache
:
false
,
processData
:
false
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
_data
.
code
==
200
)
{
console
.
log
(
5555
)
$
(
'#container_body_img_area_du'
).
append
(
'<div class="result-du"><img data-imgname="{0}" src="{1}" alt=""/> <span class="span-del-du">删除</span></div>'
.
stringFormatObj
({
'0'
:
_data
.
data
.
img_path
,
'1'
:
_data
.
data
.
internet_img_name
?
urlDeal
(
_data
.
data
.
internet_img_name
):
_data
.
data
.
internet_img_name
}));
}
else
{
alert
(
_data
.
msg
);
};
},
error
:
function
()
{
alert
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
alert
(
'请求超时,请重试'
);
};
}
});
});
//图片上传相关(资料)
$
(
'#file_input_pic_xi'
).
on
(
'change'
,
function
(){
var
_this
=
$
(
this
);
var
formData
=
new
FormData
();
formData
.
append
(
'type'
,
'chat'
);
formData
.
append
(
'image'
,
_this
[
0
].
files
[
0
]);
$
.
ajax
({
type
:
'post'
,
url
:
ServerHostImageLiu
+
'/index/uploadImg'
,
data
:
formData
,
dataType
:
'json'
,
contentType
:
false
,
cache
:
false
,
processData
:
false
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
_data
.
code
==
200
)
{
$
(
'#container_body_img_area'
).
append
(
'<div class="result-du-l"><img data-imgname="{0}" src="{1}" alt=""/> <span class="span-del-du-l">删除</span></div>'
.
stringFormatObj
({
'0'
:
_data
.
data
.
img_path
,
'1'
:
_data
.
data
.
internet_img_name
?
urlDeal
(
_data
.
data
.
internet_img_name
):
_data
.
data
.
internet_img_name
}));
}
else
{
alert
(
_data
.
msg
);
};
},
error
:
function
()
{
alert
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
alert
(
'请求超时,请重试'
);
};
}
});
});
//申请开业
$
(
'#file_input_pic_open'
).
on
(
'change'
,
function
(){
var
_this
=
$
(
this
);
var
formData
=
new
FormData
();
formData
.
append
(
'type'
,
'chat'
);
formData
.
append
(
'image'
,
_this
[
0
].
files
[
0
]);
$
.
ajax
({
type
:
'post'
,
url
:
ServerHostImageLiu
+
'/index/uploadImg'
,
data
:
formData
,
dataType
:
'json'
,
contentType
:
false
,
cache
:
false
,
processData
:
false
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
_data
.
code
==
200
)
{
$
(
'#container_body_img_open'
).
append
(
'<div class="result-du-open"><img data-imgname="{0}" src="{1}" alt=""/> <span class="span-del-open">删除</span></div>'
.
stringFormatObj
({
'0'
:
_data
.
data
.
img_path
,
'1'
:
_data
.
data
.
internet_img_name
?
urlDeal
(
_data
.
data
.
internet_img_name
):
_data
.
data
.
internet_img_name
}));
}
else
{
alert
(
_data
.
msg
);
};
},
error
:
function
()
{
alert
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
alert
(
'请求超时,请重试'
);
};
}
});
});
//删除申请开业图片
_doc
.
on
(
'click'
,
'.span-del-open'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
$
(
this
).
parent
().
remove
();
});
//图片删除事件
_doc
.
on
(
'click'
,
'.span-del-du'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
$
(
this
).
parent
().
remove
();
});
//图片删除事件
_doc
.
on
(
'click'
,
'.span-del-du-l'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
$
(
this
).
parent
().
remove
();
});
//图片删除,已有的则调用接口删除
_doc
.
on
(
'click'
,
'.span-del2-du'
,
function
(
e
)
{
var
_this
=
$
(
this
);
e
.
preventDefault
();
e
.
stopPropagation
();
if
(
confirm
(
'确认删除吗?'
)){
_this
.
parent
().
remove
();
bargain
.
spandelList
(
_this
.
prev
().
attr
(
'data-imgid'
));
};
});
//开业申请图片删除,已有的则调用接口删除
_doc
.
on
(
'click'
,
'.span-del-open2'
,
function
(
e
)
{
var
_this
=
$
(
this
);
e
.
preventDefault
();
e
.
stopPropagation
();
if
(
confirm
(
'确认删除吗?'
)){
_this
.
parent
().
remove
();
bargain
.
spandelList
(
_this
.
prev
().
attr
(
'data-imgid'
));
};
});
_doc
.
on
(
'click'
,
'#savePayBtn'
,
function
(
e
)
{
var
_this
=
$
(
this
);
e
.
preventDefault
();
e
.
stopPropagation
();
bargain
.
saveRecervables
();
});
//保存上传的图片
_doc
.
on
(
'click'
,
'#saveBtn'
,
function
(
e
)
{
var
_this
=
$
(
this
);
e
.
preventDefault
();
e
.
stopPropagation
();
var
imgname
=
[];
for
(
var
i
=
0
;
i
<
$
(
'.result-du'
).
length
;
i
++
)
{
imgname
[
i
]
=
$
(
'.result-du>img'
).
eq
(
i
).
attr
(
'data-imgname'
);
};
var
id_pic
=
bargain
.
house_fatherid
;
var
_data
=
{
img_id
:
id_pic
};
//无新的图片上传 不调用接口
if
(
imgname
.
join
(
','
))
{
_data
[
'img_name'
]
=
imgname
.
join
(
','
);
}
else
{
return
};
if
(
bargain
.
isOffice
==
1
){
bargain
.
isOfficeUrl
=
'/index/addReceiptImg'
;
//商铺
}
else
{
bargain
.
isOfficeUrl
=
'/office_index/addReceiptImg'
;
//办公楼
}
$
.
ajax
({
type
:
'GET'
,
url
:
bargain
.
isOfficeUrl
,
data
:
_data
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
typeof
_data
===
'object'
)
{
alert
(
'保存成功'
);
$
(
'#container_body_img_area-du'
).
html
(
""
);
$
(
'.pic-con2'
).
show
();
$
(
'.pic-con1'
).
hide
();
$
(
'.active'
).
removeClass
(
"active"
);
$
(
'.shoukuanxiangqing'
).
addClass
(
"active"
);
bargain
.
getList
();
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
alert
(
'请求超时,请重试'
);
};
}
});
});
//收款详情页面
//保存上传的图片(资料)
_doc
.
on
(
'click'
,
'#saveBtnLiu'
,
function
(
e
)
{
var
_this
=
$
(
this
);
e
.
preventDefault
();
e
.
stopPropagation
();
var
imgname
=
[];
for
(
var
i
=
0
;
i
<
$
(
'.result-du-l'
).
length
;
i
++
)
{
imgname
[
i
]
=
$
(
'.result-du-l>img'
).
eq
(
i
).
attr
(
'data-imgname'
);
};
var
id_pic
=
bargain
.
house_fatherid
;
var
_data
=
{
img_id
:
bargain
.
recordid
,
};
//无新的图片上传 不调用接口
if
(
imgname
.
join
(
','
))
{
_data
[
'img_name'
]
=
imgname
.
join
(
','
);
}
else
{
return
};
if
(
bargain
.
isOffice
==
1
){
bargain
.
isOfficeUrl
=
'/index/addReceiptImg'
;
//商铺
}
else
{
bargain
.
isOfficeUrl
=
'/office_index/addReceiptImg'
;
//办公楼
}
$
.
ajax
({
type
:
'GET'
,
url
:
bargain
.
isOfficeUrl
,
data
:
_data
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
typeof
_data
===
'object'
)
{
alert
(
'保存成功'
);
$
(
'#container_body_img_area'
).
html
(
""
);
bargain
.
getList
();
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
alert
(
'请求超时,请重试'
);
};
}
});
});
_doc
.
on
(
'click'
,
'#saveBtnOpen'
,
function
(
e
)
{
var
_this
=
$
(
this
);
e
.
preventDefault
();
e
.
stopPropagation
();
var
imgname
=
[];
for
(
var
i
=
0
;
i
<
$
(
'.result-du-open'
).
length
;
i
++
)
{
imgname
[
i
]
=
$
(
'.result-du-open>img'
).
eq
(
i
).
attr
(
'data-imgname'
);
};
var
_data
=
{
pay_log_id
:
bargain
.
pay_log_id_open
,
report_id
:
bargain
.
report_id_open
,
bargain_id
:
bargain
.
bargain_id_open
,
order_id
:
bargain
.
order_id_open
,
house_id
:
bargain
.
house_id_open
,
house_address
:
bargain
.
house_address_open
,
agent_id
:
user_info_obj
.
id
,
intro
:
$
(
".remark-financial-open"
).
val
()
};
//无新的图片上传 不调用接口
if
(
imgname
.
join
(
','
))
{
_data
[
'open_img'
]
=
JSON
.
stringify
(
imgname
);;
}
if
(
!
(
$
(
".remark-financial-open"
).
val
())){
alert
(
'请填写开业说明'
);
return
;
}
if
(
!
(
$
(
'.result-du-open'
).
length
>=
1
&&
$
(
'.result-du-open'
).
length
<=
3
)){
alert
(
'图片至少一张,最多三张'
);
return
;
}
$
.
ajax
({
type
:
'POST'
,
url
:
'/index/openPayLog'
,
data
:
_data
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
typeof
_data
===
'object'
)
{
alert
(
'保存成功'
);
$
(
"#modal_open"
).
modal
(
'hide'
);
bargain
.
getList
();
}
else
{
alert
(
data
.
msg
);
};
},
error
:
function
()
{
alert
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
alert
(
'请求超时,请重试'
);
};
}
});
});
//店长提交日报
_doc
.
on
(
'click'
,
'.is-submit'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
bargain
.
submitReport
();
});
//财务审核 通过
_doc
.
on
(
'click'
,
'.is-submit-pass'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
bargain
.
operationStatus
=
0
;
bargain
.
submitPassReport
();
});
//财务 转到已审核
_doc
.
on
(
'click'
,
'.is-submit-passed'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
bargain
.
operationStatus
=
1
;
bargain
.
submitPassReport
();
});
//点击成交报告ID,获取报告详情
_doc
.
on
(
'click'
,
'.details-btn-liu'
,
function
()
{
var
_id
=
$
(
this
).
attr
(
"data-id"
);
var
_type
=
$
(
this
).
attr
(
"data-typeC"
);
if
(
_type
==
2
){
$
(
'.iframe-bargaininfo-static'
).
attr
(
'src'
,
'/app_broker/bargaininfo_detail_static_pc_office?orderid='
+
_id
+
'&type='
+
_type
).
load
;
}
else
{
$
(
'.iframe-bargaininfo-static'
).
attr
(
'src'
,
'/app_broker/bargaininfo_detail_static_pc?orderid='
+
_id
+
'&type='
+
_type
).
load
;
}
});
//时间轴点击事件
_doc
.
on
(
'click'
,
'a[href="#modal-time-liu"]'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_id
=
$
(
this
).
attr
(
"data-id"
);
var
_type
=
$
(
this
).
attr
(
"data-typeC"
);
if
(
_type
==
2
){
$
(
'.iframe-time-line'
).
attr
(
'src'
,
'/app_broker/timeline_pc_office?order_id='
+
_id
+
'&type='
+
_type
);
}
else
{
$
(
'.iframe-time-line'
).
attr
(
'src'
,
'/app_broker/timeline_pc?order_id='
+
_id
+
'&type='
+
_type
);
}
});
//获取调整详情
$
(
document
).
on
(
'click'
,
'.add-pic-liu'
,
function
(
e
){
var
id
=
e
.
target
.
dataset
.
id
;
bargain
.
isOffice
=
$
(
this
).
attr
(
"data-typeC"
);
//标识商铺 办公楼
bargain
.
getAdjustmentDetail
(
id
);
});
//打印功能
_doc
.
on
(
'click'
,
'.is-print'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
window
.
print
();
});
//操作---调整
$
(
document
).
on
(
'click'
,
'.money_change'
,
function
(
e
){
var
id
=
e
.
target
.
dataset
.
id
;
bargain
.
isOffice
=
$
(
this
).
attr
(
"data-typeC"
);
//标识商铺 办公楼
//调整详情 隐藏是否开业
if
(
bargain
.
isOffice
==
1
){
$
(
".tiaozheng_kaiye"
).
show
();
}
else
{
$
(
".tiaozheng_kaiye"
).
hide
();
}
var
type
=
e
.
target
.
dataset
.
type
;
var
order_id
=
e
.
target
.
dataset
.
order_id
;
that
.
type_num
=
e
.
target
.
dataset
.
type_num
;
that
.
transfer_name
=
e
.
target
.
dataset
.
transfer_name
that
.
pay_id
=
id
;
that
.
house_number
=
e
.
target
.
dataset
.
house_number
;
that
.
receipt_number
=
e
.
target
.
dataset
.
receipt_number
;
that
.
pay_type
=
e
.
target
.
dataset
.
pay_type
;
that
.
income_time
=
e
.
target
.
dataset
.
income_time
;
that
.
getAllPrice
(
id
);
if
(
type
==
"意向金"
){
$
(
'#change_type'
).
val
(
91
);
$
(
'.baoguanjin'
).
hide
();
$
(
'.yixiangjin'
).
show
();
}
else
{
$
(
'#change_type'
).
val
(
91
);
$
(
'.yixiangjin'
).
hide
();
$
(
'.baoguanjin'
).
show
();
}
that
.
yetai
=
""
;
//点击调整的时候 初始化调整页面的 中介费类型 之前已收佣
//中介费类型显示 隐藏 中介费
if
(
$
(
'#change_type'
).
val
()
==
91
){
$
(
'#agency_fees_type_div'
).
show
();
}
else
{
$
(
'#agency_fees_type_div'
).
hide
();
};
//之前收佣 显示隐藏 中介费 案场费
if
(
$
(
'#change_type'
).
val
()
==
91
||
$
(
'#change_type'
).
val
()
==
92
){
$
(
'#before_commission_div'
).
show
();
}
else
{
$
(
'#before_commission_div'
).
hide
();
};
});
$
(
'#saveChangeBtn'
).
unbind
(
'click'
).
bind
(
'click'
,
function
(
e
){
//保存调整
that
.
saveChange
();
});
$
(
'#back_saveChangeBtn'
).
unbind
(
'click'
).
bind
(
'click'
,
function
(
e
){
//保存退款
that
.
saveBack
();
});
$
(
"#modal-back"
).
on
(
"hidden.bs.modal"
,
function
(
event
){
$
(
'#before_commission'
).
val
(
"0"
);
//调整页面 之前已收佣 0
$
(
'#agency_fees_type'
).
val
(
"0"
);
//调整页面 中介费 0
$
(
'#change_price'
).
val
(
"0"
);
$
(
'#report_id_change'
).
val
(
""
);
$
(
'#into_id_change'
).
val
(
""
);
$
(
'#shop_id_change'
).
text
(
""
);
$
(
'#shop_addr_change'
).
text
(
""
);
$
(
'#shop_id_change_shop'
).
val
(
""
);
$
(
'#change_fenhong'
).
val
(
""
);
$
(
'#change_time'
).
val
(
""
);
$
(
'.img_area'
).
empty
();
$
(
'#reportArea'
).
hide
();
$
(
'#intoIdArea'
).
hide
();
$
(
"#into_id_change"
).
removeAttr
(
"readOnly"
)
});
$
(
"#modal-linetime"
).
on
(
"hidden.bs.modal"
,
function
(
event
){
//清空 调整 页面内容
// that.initBackData();
$
(
'#could_price'
).
text
(
"0"
);
$
(
'#change_type'
).
val
(
""
);
$
(
'#change_price'
).
val
(
""
);
$
(
'#report_id_change'
).
val
(
""
);
$
(
'#into_id_change'
).
val
(
""
);
$
(
'#shop_id_change'
).
text
(
""
);
$
(
'#shop_addr_change'
).
text
(
""
);
$
(
'#change_fenhong'
).
val
(
""
);
$
(
'#change_kaiye'
).
val
(
3
);
$
(
'#shop_id_change_shop'
).
val
(
""
);
$
(
'#change_time'
).
val
(
""
);
$
(
'.img_area'
).
empty
();
});
$
(
'#change_type'
).
change
(
function
(
e
){
var
val
=
$
(
'#change_type option:selected'
).
text
();
that
.
change_show_hide
(
val
);
});
//调整
$
(
"#modal-linetime"
).
on
(
"shown.bs.modal"
,
function
(
event
){
//initMoadalData
that
.
change_show_hide
(
$
(
'#change_type option:selected'
).
text
());
});
//操作----退款
$
(
document
).
on
(
'click'
,
'.money_back'
,
function
(
e
){
bargain
.
isOffice
=
$
(
this
).
attr
(
"data-typeC"
);
//标识商铺 办公楼
var
id
=
e
.
target
.
dataset
.
id
;
var
address
=
e
.
target
.
dataset
.
addr
;
var
comity_time
=
e
.
target
.
dataset
.
comity_tim
;
var
real_money
=
e
.
target
.
dataset
.
real_money
;
var
order_no
=
e
.
target
.
dataset
.
order_no
;
var
order_id
=
e
.
target
.
dataset
.
order_id
;
var
report_id
=
e
.
target
.
dataset
.
report_id
;
var
agent_id
=
e
.
target
.
dataset
.
agent_id
;
var
agent_name
=
e
.
target
.
dataset
.
agent_name
;
var
type
=
e
.
target
.
dataset
.
type
;
that
.
back_id
=
id
;
that
.
back_addr
=
address
;
that
.
back_time
=
comity_time
;
that
.
back_money
=
real_money
;
that
.
back_order_id
=
order_id
;
that
.
back_order_no
=
order_no
;
that
.
back_report_id
=
report_id
;
that
.
back_agent_name
=
agent_name
;
that
.
back_agent_id
=
agent_id
;
$
(
'#back_into_type'
).
text
(
type
);
$
(
'#back_shop_addr'
).
text
(
address
);
if
(
type
==
"意向金"
){
$
(
'.type_baoguan'
).
hide
();
$
(
'.type_zhongjie'
).
hide
();
$
(
'.type_anchang'
).
hide
();
$
(
'.type_yixiang'
).
show
();
}
else
if
(
type
==
"保管金"
){
$
(
'.type_yixiang'
).
hide
();
$
(
'.type_zhongjie'
).
hide
();
$
(
'.type_anchang'
).
hide
();
$
(
'.type_baoguan'
).
show
();
}
else
if
(
type
==
"中介费"
){
$
(
'.type_yixiang'
).
hide
();
$
(
'.type_baoguan'
).
hide
();
$
(
'.type_anchang'
).
hide
();
$
(
'.type_zhongjie'
).
show
();
}
else
if
(
type
==
"案场费"
){
$
(
'.type_yixiang'
).
hide
();
$
(
'.type_baoguan'
).
hide
();
$
(
'.type_zhongjie'
).
hide
();
$
(
'.type_anchang'
).
show
();
}
else
{
}
that
.
getMaxBackPrice
(
id
)
// that.getBack(id);
});
$
(
"#modal-back"
).
on
(
"hide.bs.modal"
,
function
(
event
){
//清空 退款 页面内容
$
(
'#back_type'
).
val
(
''
);
$
(
'#back_price'
).
val
(
''
);
$
(
'#back_no'
).
val
(
''
);
$
(
'#back_reason'
).
val
(
''
);
$
(
'#back_price_user'
).
val
(
''
);
$
(
'#back_bank'
).
val
(
''
);
$
(
'#back_bank_name'
).
val
(
''
);
$
(
'#back_phone'
).
val
(
''
);
$
(
'#back_others'
).
val
(
''
);
$
(
'#could_price_back'
).
text
(
""
);
$
(
'#back_into_type'
).
text
(
""
);
$
(
'#back_shop_addr'
).
text
(
""
);
// $('#back_price_type').text("");
$
(
'#container_body_img_area3'
).
empty
();
});
//成交报告ID搜索 中介费/案场费
$
(
document
).
on
(
"input"
,
"#report_id_change"
,
function
()
{
//手机号新增搜索客方
var
val
=
$
(
'#report_id_change'
).
val
()
var
data
=
that
.
getReportDataByDetail
(
val
);
if
(
$
(
"#report_id_change"
).
val
()
==
''
)
{
var
tag
=
""
;
$
(
'#reportArea'
).
append
(
tag
);
}
else
{
that
.
search_phone
();
}
});
//带看id搜索 意向金/保管金
$
(
document
).
on
(
"input"
,
"#into_id_change"
,
function
()
{
var
val
=
$
(
'#into_id_change'
).
val
()
var
data
=
that
.
getReportDataByDetail
(
val
);
if
(
$
(
"#into_id_change"
).
val
()
==
''
)
{
var
tag
=
""
;
// tag += '<li class="hideLI" data-id="' + item.id + '">' + item.id + '-' + item.name + '-' + item.phone + status + '</li>';
$
(
'#intoIdArea'
).
append
(
tag
);
}
else
{
that
.
search_into
();
}
});
//点击li 列表消失 成交报告id 列表
$
(
document
).
delegate
(
".reportIdBuild"
,
"click"
,
function
()
{
that
.
reportIdBuild
(
this
);
});
//点击li 列表消失 带看id 列表
$
(
document
).
delegate
(
".intoIdBuild"
,
"click"
,
function
()
{
that
.
intoIdBuild
(
this
);
});
$
(
'#file_input3'
).
on
(
'change'
,
function
(){
//退款图片上传
var
_this
=
$
(
this
);
var
formData
=
new
FormData
();
formData
.
append
(
'type'
,
'chat'
);
formData
.
append
(
'image'
,
_this
[
0
].
files
[
0
]);
$
.
ajax
({
type
:
'post'
,
url
:
ServerHostImageLiu
+
'/index/uploadImg'
,
data
:
formData
,
dataType
:
'json'
,
contentType
:
false
,
cache
:
false
,
processData
:
false
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
_data
.
code
==
200
)
{
$
(
'#container_body_img_area3'
).
append
(
'<div class="result"><img id="{0}" src="{1}" alt=""/> <span class="span-del3">删除</span></div>'
.
stringFormatObj
({
'0'
:
_data
.
data
.
img_path
,
'1'
:
_data
.
data
.
internet_img_name
?
urlDeal
(
_data
.
data
.
internet_img_name
):
_data
.
data
.
internet_img_name
}));
}
else
{
alert
(
_data
.
msg
);
};
},
error
:
function
()
{
alert
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
alert
(
'请求超时,请重试'
);
};
}
});
});
$
(
"#file_input"
).
change
(
function
()
{
//调整 上传图片
var
_this
=
$
(
this
);
var
_spFile
=
_this
.
data
(
'spfile'
);
var
_limitTop
=
_this
.
data
(
'limittop'
);
var
_fileNum
=
_this
.
parent
().
next
().
find
(
'.delet-pic-btn'
).
length
;
//根据删除按钮的个数,确定文件的个数
if
(
_limitTop
&&
(
_fileNum
<
_limitTop
))
{
that
.
uploadImg
(
_this
);
}
else
{
alert
(
'上传上限为 '
+
_limitTop
);
return
false
;
};
});
//图片删除,已有的则调用接口删除
_doc
.
on
(
'click'
,
'.span-del2'
,
function
(
e
)
{
var
_this
=
$
(
this
);
e
.
preventDefault
();
e
.
stopPropagation
();
if
(
confirm
(
'确认删除吗?'
)){
_this
.
parent
().
remove
();
that
.
spandelList
(
_this
.
prev
().
attr
(
'data-imgid'
));
};
});
//图片删除,已有的则调用接口删除
_doc
.
on
(
'click'
,
'.span-del3'
,
function
(
e
)
{
var
_this
=
$
(
this
);
e
.
preventDefault
();
e
.
stopPropagation
();
if
(
confirm
(
'确认删除吗?'
)){
_this
.
parent
().
remove
();
that
.
spandelList
(
_this
.
prev
().
attr
(
'data-imgid'
));
};
});
//收款列表 调整页面 加中介费类型
$
(
"#change_type"
).
change
(
function
()
{
//中介费类型显示 隐藏 中介费
if
(
$
(
'#change_type'
).
val
()
==
91
){
$
(
'#agency_fees_type_div'
).
show
();
}
else
{
$
(
'#agency_fees_type_div'
).
hide
();
};
//之前收佣 显示隐藏 中介费 案场费
if
(
$
(
'#change_type'
).
val
()
==
91
||
$
(
'#change_type'
).
val
()
==
92
){
$
(
'#before_commission_div'
).
show
();
}
else
{
$
(
'#before_commission_div'
).
hide
();
}
});
//搜索的重置
$
(
"#maintable_reset"
).
click
(
function
()
{
document
.
getElementById
(
"maintable_form_search"
).
reset
();
bargain
.
agent_id_phone
=
''
;
});
var
_doc
=
$
(
document
);
bargain
.
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'
)
{
bargain
.
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
{};
});
});
},
//获取一级审核,二级审核,三级审核不同的ajax请求url
switchUrl
:
function
(){
switch
(
Number
(
this
.
mainTabIndex
)){
case
0
:
return
'/index/reportListAll/10'
;
case
1
:
return
'/index/reportListOne/1'
;
case
2
:
return
'/index/reportListTwo/2'
;
case
3
:
return
'/index/reportListThree/3'
;
case
4
:
return
'/index/reportListStatement/4'
;
default
:
return
''
;
}
},
//获取一级审核,二级审核,三级审核数据列表共用的方法
getList
:
function
(
pageNo
){
...
...
@@ -894,13 +83,9 @@ define(['doT','html2canvas','text!temp/accountingTable_list_template_tpl.html',
'store_id'
:
bargain
.
store_id
,
'is_store'
:
bargain
.
isFinancial
,
'daily_data'
:
bargain
.
financialTime
// 'store_id': 730,
// 'is_store': 0,
// 'daily_data': '2018-12-01'
};
$
.
ajax
({
type
:
'GET'
,
// url: bargain.switchUrl(),
url
:
'/index/dailyDetail'
,
data
:
params
,
timeout
:
30000
,
...
...
@@ -911,285 +96,12 @@ define(['doT','html2canvas','text!temp/accountingTable_list_template_tpl.html',
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
//判断 店长 财务 站点
if
(
bargain
.
isFinancial
==
1
){
bargain
.
caiwu_site_id
=
data
.
data
.
site_id
;
// console.log(bargain.caiwu_site_id);
}
else
{
bargain
.
caiwu_site_id
=
user_info_obj
.
site_id
;
}
//中介费
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'a_financial_daily_list_tpl'
).
innerHTML
);
$
(
"#maintable_list_a"
).
html
(
doTtmpl
(
data
.
data
.
list
.
agency_fee
));
//案场费
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'b_financial_daily_list_tpl'
).
innerHTML
);
$
(
"#maintable_list_b"
).
html
(
doTtmpl
(
data
.
data
.
list
.
case_fee
));
//意向金
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'c_financial_daily_list_tpl'
).
innerHTML
);
$
(
"#maintable_list_c"
).
html
(
doTtmpl
(
data
.
data
.
list
.
earnest_money
));
//保管金
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'd_financial_daily_list_tpl'
).
innerHTML
);
$
(
"#maintable_list_d"
).
html
(
doTtmpl
(
data
.
data
.
list
.
custody_money
));
//调整出账
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'e_financial_daily_list_tpl'
).
innerHTML
);
$
(
"#maintable_list_e"
).
html
(
doTtmpl
(
data
.
data
.
list
.
adjustment
));
//审核记录
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'f_financial_daily_list_tpl'
).
innerHTML
);
$
(
"#maintable_list_f"
).
html
(
doTtmpl
(
data
.
data
.
check_list
));
//判断店长是否提交过
if
(
data
.
data
.
is_commit
*
1
){
//提交过 店长
$
(
'.is-submit'
).
hide
();
$
(
'.tips-dian'
).
html
(
'日报已经提交过'
);
//总计commit_info
bargain
.
daily_id
=
data
.
data
.
commit_info
.
id
;
//深圳 和 杭州上海
if
(
bargain
.
caiwu_site_id
==
10003
){
//深圳
$
(
'#pay_yun_zhihubao'
).
html
(
data
.
data
.
commit_info
.
alipay
);
$
(
'#pay_yun_weixin'
).
html
(
data
.
data
.
commit_info
.
tenpay
);
$
(
'#pay_yun_card'
).
html
(
data
.
data
.
commit_info
.
bank_card
);
$
(
'#pay_yun_bank'
).
html
(
data
.
data
.
commit_info
.
bank_card_yun
);
$
(
'#pay_yun_pos'
).
html
(
data
.
data
.
commit_info
.
pos
);
$
(
'#pay_yun_family'
).
html
(
data
.
data
.
commit_info
.
family_pay
);
$
(
'.shenzhen'
).
show
();
$
(
'.shanghai'
).
hide
();
$
(
'.hangzhou'
).
hide
();
// "bank_card_yun" => "2323",
// "bank_card_lin"=>"1213",
// "bank_card_new"=>"123123"
}
else
if
(
bargain
.
caiwu_site_id
==
10002
){
//杭州
$
(
'.shenzhen'
).
hide
();
$
(
'.shanghai'
).
hide
();
$
(
'.hangzhou'
).
show
();
$
(
'#pay_a_hangzhou'
).
html
(
data
.
data
.
commit_info
.
alipay
);
$
(
'#pay_a1_hangzhou'
).
html
(
data
.
data
.
commit_info
.
alipay_2
);
$
(
'#pay_b_hangzhou'
).
html
(
data
.
data
.
commit_info
.
tenpay
);
$
(
'#pay_b1_hangzhou'
).
html
(
data
.
data
.
commit_info
.
tenpay_2
);
$
(
'#pay_c_hangzhou'
).
html
(
data
.
data
.
commit_info
.
realty_pay
);
$
(
'#pay_d_hangzhou'
).
html
(
data
.
data
.
commit_info
.
family_pay
);
$
(
'#pay_e_hangzhou'
).
html
(
data
.
data
.
commit_info
.
private_bank
);
$
(
'#pay_f_hangzhou'
).
html
(
data
.
data
.
commit_info
.
cash
);
$
(
'#pay_g_hangzhou'
).
html
(
data
.
data
.
commit_info
.
pos
);
$
(
'#pay_h_hangzhou'
).
html
(
data
.
data
.
commit_info
.
other_bank
);
$
(
'#pay_g_hangzhou'
).
html
(
data
.
data
.
commit_info
.
pos
);
$
(
'#pay_h_hangzhou'
).
html
(
data
.
data
.
commit_info
.
other_bank
);
$
(
'#pay_k_hangzhou'
).
html
(
data
.
data
.
commit_info
.
bank_card
);
$
(
'#pay_m_hangzhou'
).
html
(
data
.
data
.
commit_info
.
bank_card_lin
);
}
else
{
//上海
$
(
'.shenzhen'
).
hide
();
$
(
'.shanghai'
).
show
();
$
(
'.hangzhou'
).
hide
();
$
(
'#pay_a'
).
html
(
data
.
data
.
commit_info
.
alipay
);
$
(
'#pay_a1'
).
html
(
data
.
data
.
commit_info
.
alipay_2
);
$
(
'#pay_b'
).
html
(
data
.
data
.
commit_info
.
tenpay
);
$
(
'#pay_b1'
).
html
(
data
.
data
.
commit_info
.
tenpay_2
);
$
(
'#pay_c'
).
html
(
data
.
data
.
commit_info
.
realty_pay
);
$
(
'#pay_d'
).
html
(
data
.
data
.
commit_info
.
family_pay
);
$
(
'#pay_e'
).
html
(
data
.
data
.
commit_info
.
private_bank
);
$
(
'#pay_f'
).
html
(
data
.
data
.
commit_info
.
cash
);
$
(
'#pay_g'
).
html
(
data
.
data
.
commit_info
.
pos
);
$
(
'#pay_h'
).
html
(
data
.
data
.
commit_info
.
other_bank
);
$
(
'#pay_k'
).
html
(
data
.
data
.
commit_info
.
bank_card
);
$
(
'#pay_m'
).
html
(
data
.
data
.
commit_info
.
bank_card_new
);
$
(
'#pay_lin'
).
html
(
data
.
data
.
commit_info
.
bank_card_lin
);
}
$
(
'#pay_i'
).
html
(
data
.
data
.
commit_info
.
agent_name
);
$
(
'#pay_j'
).
html
(
data
.
data
.
commit_info
.
create_time
);
//陈志杰
$
(
'#pay_i_chen'
).
html
(
data
.
data
.
commit_info
.
alipay_3
);
$
(
'#pay_j_chen'
).
html
(
data
.
data
.
commit_info
.
tenpay_3
);
$
(
'#pay_k_chen'
).
html
(
data
.
data
.
commit_info
.
bank_card_chen
);
$
(
'.audit-records'
).
show
();
if
(
data
.
data
.
check_list
&&
data
.
data
.
check_list
.
length
){
$
(
'#maintable_list_f'
).
show
();
}
else
{
$
(
'#maintable_list_f'
).
hide
();
};
//店长财务日报 已提交 不显示删除按钮 编辑按钮
if
(
bargain
.
isFinancial
*
1
==
0
){
$
(
'.add-pic'
).
hide
();
$
(
'.del-details'
).
hide
();
$
(
'.modal-adjust'
).
hide
();
//撤销调整按钮 隐藏
}
}
else
{
//未提交
$
(
'.is-submit'
).
show
();
$
(
'.is-submit'
).
html
(
'提交'
);
$
(
'.audit-records'
).
hide
();
$
(
'.tips-dian'
).
html
(
''
);
//未提交 店长
if
(
bargain
.
caiwu_site_id
==
10003
){
//深圳
$
(
'#pay_yun_zhihubao'
).
html
(
data
.
data
.
total_info
.
alipay
);
$
(
'#pay_yun_weixin'
).
html
(
data
.
data
.
total_info
.
tenpay
);
$
(
'#pay_yun_card'
).
html
(
data
.
data
.
total_info
.
bank_card
);
$
(
'#pay_yun_bank'
).
html
(
data
.
data
.
total_info
.
bank_card_yun
);
$
(
'#pay_yun_pos'
).
html
(
data
.
data
.
total_info
.
pos
);
$
(
'#pay_yun_family'
).
html
(
data
.
data
.
total_info
.
family_pay
);
$
(
'.shenzhen'
).
show
();
$
(
'.shanghai'
).
hide
();
$
(
'.hangzhou'
).
hide
();
}
else
if
(
bargain
.
caiwu_site_id
==
10002
){
//杭州
$
(
'.shenzhen'
).
hide
();
$
(
'.shanghai'
).
hide
();
$
(
'.hangzhou'
).
show
();
$
(
'#pay_a_hangzhou'
).
html
(
data
.
data
.
total_info
.
alipay
);
$
(
'#pay_a1_hangzhou'
).
html
(
data
.
data
.
total_info
.
alipay_2
);
$
(
'#pay_b_hangzhou'
).
html
(
data
.
data
.
total_info
.
tenpay
);
$
(
'#pay_b1_hangzhou'
).
html
(
data
.
data
.
total_info
.
tenpay_2
);
$
(
'#pay_c_hangzhou'
).
html
(
data
.
data
.
total_info
.
realty_pay
);
$
(
'#pay_d_hangzhou'
).
html
(
data
.
data
.
total_info
.
family_pay
);
$
(
'#pay_e_hangzhou'
).
html
(
data
.
data
.
total_info
.
private_bank
);
$
(
'#pay_f_hangzhou'
).
html
(
data
.
data
.
total_info
.
cash
);
$
(
'#pay_g_hangzhou'
).
html
(
data
.
data
.
total_info
.
pos
);
$
(
'#pay_h_hangzhou'
).
html
(
data
.
data
.
total_info
.
other_bank
);
$
(
'#pay_k_hangzhou'
).
html
(
data
.
data
.
total_info
.
bank_card
);
$
(
'#pay_m_hangzhou'
).
html
(
data
.
data
.
total_info
.
bank_card_lin
);
}
else
{
//上海
$
(
'.shenzhen'
).
hide
();
$
(
'.shanghai'
).
show
();
$
(
'.hangzhou'
).
hide
();
$
(
'#pay_a'
).
html
(
data
.
data
.
total_info
.
alipay
);
$
(
'#pay_a1'
).
html
(
data
.
data
.
total_info
.
alipay_2
);
$
(
'#pay_b'
).
html
(
data
.
data
.
total_info
.
tenpay
);
$
(
'#pay_b1'
).
html
(
data
.
data
.
total_info
.
tenpay_2
);
$
(
'#pay_c'
).
html
(
data
.
data
.
total_info
.
realty_pay
);
$
(
'#pay_d'
).
html
(
data
.
data
.
total_info
.
family_pay
);
$
(
'#pay_e'
).
html
(
data
.
data
.
total_info
.
private_bank
);
$
(
'#pay_f'
).
html
(
data
.
data
.
total_info
.
cash
);
$
(
'#pay_g'
).
html
(
data
.
data
.
total_info
.
pos
);
$
(
'#pay_h'
).
html
(
data
.
data
.
total_info
.
other_bank
);
$
(
'#pay_k'
).
html
(
data
.
data
.
total_info
.
bank_card
);
$
(
'#pay_m'
).
html
(
data
.
data
.
total_info
.
bank_card_new
);
$
(
'#pay_lin'
).
html
(
data
.
data
.
total_info
.
bank_card_lin
);
}
//陈志杰
$
(
'#pay_i_chen'
).
html
(
data
.
data
.
total_info
.
alipay_3
);
$
(
'#pay_j_chen'
).
html
(
data
.
data
.
total_info
.
tenpay_3
);
$
(
'#pay_k_chen'
).
html
(
data
.
data
.
total_info
.
bank_card_chen
);
$
(
'#pay_i'
).
html
(
''
);
$
(
'#pay_j'
).
html
(
''
);
//店长财务日报 未提交 显示删除按钮 编辑按钮
if
(
bargain
.
isFinancial
*
1
==
0
){
$
(
'.add-pic'
).
show
();
$
(
'.del-details'
).
show
();
$
(
'.modal-adjust'
).
show
();
}
}
//入账总计
$
(
'.adjustment_money'
).
html
(
data
.
data
.
adjustment_money
);
$
(
'.recorded_money'
).
html
(
data
.
data
.
recorded_money
);
$
(
'.remittance_money'
).
html
(
data
.
data
.
remittance_money
);
//判断是否是店长显示审核记录
if
(
bargain
.
isFinancial
*
1
){
$
(
'#maintable_list_total'
).
show
();
$
(
'.tips-dian'
).
hide
();
}
else
{
$
(
'.tips-dian'
).
show
();
$
(
'#maintable_list_total'
).
hide
();
}
//财务审核状态判断
if
(
data
.
data
.
commit_info
){
if
(
data
.
data
.
commit_info
.
status
*
1
){
$
(
'.is-submit-pass-btn'
).
hide
();
$
(
'.is-submit-passed-btn'
).
hide
();
$
(
'#maintable_list_total'
).
hide
();
if
(
bargain
.
isFinancial
*
1
==
1
){
$
(
'.add-pic'
).
hide
();
//财务看的 财务日报 已审核 不显示编辑按钮
$
(
'.del-details'
).
hide
();
}
}
else
{
if
(
bargain
.
isFinancial
*
1
==
1
){
$
(
'.add-pic'
).
show
();
//财务看的 财务日报 没有审核完 显示编辑按钮
$
(
'.del-details'
).
show
();
}
if
(
getUrlParam
(
'time'
)){
$
(
'.is-submit-pass-btn'
).
show
();
$
(
'.is-submit-passed-btn'
).
show
();
$
(
'#maintable_list_total'
).
show
();
}
//杭州 上海 深圳
if
(
bargain
.
caiwu_site_id
==
10003
){
//深圳
$
(
'.shenzhen'
).
show
();
$
(
'.shanghai'
).
hide
();
$
(
'.hangzhou'
).
hide
();
$
(
'#total_yun_zhihubao'
).
html
(
data
.
data
.
total_info
.
alipay
);
$
(
'#total_yun_weixin'
).
html
(
data
.
data
.
total_info
.
tenpay
);
$
(
'#total_yun_card'
).
html
(
data
.
data
.
total_info
.
bank_card
);
$
(
'#total_yun_bank'
).
html
(
data
.
data
.
total_info
.
bank_card_yun
);
$
(
'#total_yun_pos'
).
html
(
data
.
data
.
total_info
.
pos
);
$
(
'#total_yun_family'
).
html
(
data
.
data
.
total_info
.
family_pay
);
}
else
if
(
bargain
.
caiwu_site_id
==
10002
){
//杭州
$
(
'.shenzhen'
).
hide
();
$
(
'.shanghai'
).
hide
();
$
(
'.hangzhou'
).
show
();
$
(
'#total_a_hangzhou'
).
html
(
data
.
data
.
total_info
.
alipay
);
$
(
'#total_a1_hangzhou'
).
html
(
data
.
data
.
total_info
.
alipay_2
);
$
(
'#total_b1_hangzhou'
).
html
(
data
.
data
.
total_info
.
tenpay_2
);
$
(
'#total_b_hangzhou'
).
html
(
data
.
data
.
total_info
.
tenpay
);
$
(
'#total_c_hangzhou'
).
html
(
data
.
data
.
total_info
.
realty_pay
);
$
(
'#total_d_hangzhou'
).
html
(
data
.
data
.
total_info
.
family_pay
);
$
(
'#total_e_hangzhou'
).
html
(
data
.
data
.
total_info
.
private_bank
);
$
(
'#total_f_hangzhou'
).
html
(
data
.
data
.
total_info
.
cash
);
$
(
'#total_g_hangzhou'
).
html
(
data
.
data
.
total_info
.
pos
);
$
(
'#total_h_hangzhou'
).
html
(
data
.
data
.
total_info
.
other_bank
);
$
(
'#total_m_hangzhou'
).
html
(
data
.
data
.
total_info
.
bank_card
);
$
(
'#total_n_hangzhou'
).
html
(
data
.
data
.
total_info
.
bank_card_lin
);
}
else
{
//上海
$
(
'.shenzhen'
).
hide
();
$
(
'.shanghai'
).
show
();
$
(
'.hangzhou'
).
hide
();
$
(
'#total_a'
).
html
(
data
.
data
.
total_info
.
alipay
);
$
(
'#total_a1'
).
html
(
data
.
data
.
total_info
.
alipay_2
);
$
(
'#total_b1'
).
html
(
data
.
data
.
total_info
.
tenpay_2
);
$
(
'#total_b'
).
html
(
data
.
data
.
total_info
.
tenpay
);
$
(
'#total_c'
).
html
(
data
.
data
.
total_info
.
realty_pay
);
$
(
'#total_d'
).
html
(
data
.
data
.
total_info
.
family_pay
);
$
(
'#total_e'
).
html
(
data
.
data
.
total_info
.
private_bank
);
$
(
'#total_f'
).
html
(
data
.
data
.
total_info
.
cash
);
$
(
'#total_g'
).
html
(
data
.
data
.
total_info
.
pos
);
$
(
'#total_h'
).
html
(
data
.
data
.
total_info
.
other_bank
);
$
(
'#total_m'
).
html
(
data
.
data
.
total_info
.
bank_card
);
$
(
'#total_n'
).
html
(
data
.
data
.
total_info
.
bank_card_new
);
$
(
'#total_lin'
).
html
(
data
.
data
.
total_info
.
bank_card_lin
);
}
//陈志杰
$
(
'#total_i_chen'
).
html
(
data
.
data
.
total_info
.
alipay_3
);
$
(
'#total_j_chen'
).
html
(
data
.
data
.
total_info
.
tenpay_3
);
$
(
'#total_k_chen'
).
html
(
data
.
data
.
total_info
.
bank_card_chen
);
$
(
'#total_i'
).
html
(
''
);
$
(
'#total_j'
).
html
(
''
);
$
(
'#total_k'
).
html
(
''
);
}
}
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
bargain
.
pageSize
,
bargain
.
getList
);
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
bargain
.
pageSize
,
bargain
.
getList
);
}
else
{
alert
(
data
[
'msg'
]);
...
...
@@ -1209,1166 +121,6 @@ define(['doT','html2canvas','text!temp/accountingTable_list_template_tpl.html',
}
});
},
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
();
}
}
});
},
//截图
saveHtml2Image
:
function
(
fn
)
{
$
(
"body,html"
).
animate
({
scrollTop
:
0
},
0
);
//必须把页面滚动到最顶部,不然截图会不完整
var
obj
=
$
(
"#screen_shot_area"
);
var
width
=
obj
.
width
();
var
height
=
obj
.
height
();
html2canvas
(
$
(
"#screen_shot_area"
),{
width
:
width
+
20
,
height
:
height
,
background
:
"rgba(255,255,255,1)"
,
onrendered
:
function
(
canvas
)
{
var
dataUrl
=
canvas
.
toDataURL
(
'image/jpeg'
);
bargain
.
savePicLiu
(
dataUrl
);
}
});
},
savePicLiu
:
function
(
url
)
{
$
.
ajax
({
url
:
ServerHostImageLiu
+
'/index/dailyBackImg'
,
type
:
'POST'
,
async
:
true
,
data
:
{
"daily_id"
:
bargain
.
daily_id
,
//日报id
"img"
:
url
,
//文件流
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
}
else
{
alert
(
data
.
msg
);
}
}
});
},
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
);
}
}
});
},
//店长提交日报
submitReport
:
function
()
{
var
params
=
{};
params
.
daily_date
=
bargain
.
financialTime
;
params
.
agent_id
=
user_info_obj
.
id
;
params
.
agent_name
=
user_info_obj
.
name
;
// 判断 深圳 杭州
if
(
bargain
.
caiwu_site_id
==
10003
){
//深圳
params
.
alipay
=
$
(
'#pay_yun_zhihubao'
).
html
();
params
.
tenpay
=
$
(
'#pay_yun_weixin'
).
html
();
params
.
bank_card
=
$
(
'#pay_yun_card'
).
html
();
params
.
bank_card_yun
=
$
(
'#pay_yun_bank'
).
html
();
params
.
pos
=
$
(
'#pay_yun_pos'
).
html
();
params
.
family_pay
=
$
(
'#pay_yun_family'
).
html
();
//深圳店长提交 没有的数据传空
params
.
realty_pay
=
''
;
params
.
other_bank
=
''
;
params
.
cash
=
''
;
params
.
private_bank
=
''
;
}
else
if
(
bargain
.
caiwu_site_id
==
10002
){
//杭州
params
.
alipay
=
$
(
'#pay_a_hangzhou'
).
html
();
params
.
alipay_2
=
$
(
'#pay_a1_hangzhou'
).
html
();
params
.
tenpay
=
$
(
'#pay_b_hangzhou'
).
html
();
params
.
tenpay_2
=
$
(
'#pay_b1_hangzhou'
).
html
();
params
.
realty_pay
=
$
(
'#pay_c_hangzhou'
).
html
();
params
.
family_pay
=
$
(
'#pay_d_hangzhou'
).
html
();
params
.
private_bank
=
$
(
'#pay_e_hangzhou'
).
html
();
params
.
cash
=
$
(
'#pay_f_hangzhou'
).
html
();
params
.
pos
=
$
(
'#pay_g_hangzhou'
).
html
();
params
.
other_bank
=
$
(
'#pay_h_hangzhou'
).
html
();
params
.
bank_card
=
$
(
'#pay_k_hangzhou'
).
html
();
params
.
bank_card_lin
=
$
(
'#pay_m_hangzhou'
).
html
();
}
else
{
//上海
params
.
alipay
=
$
(
'#pay_a'
).
html
();
params
.
alipay_2
=
$
(
'#pay_a1'
).
html
();
params
.
tenpay
=
$
(
'#pay_b'
).
html
();
params
.
tenpay_2
=
$
(
'#pay_b1'
).
html
();
params
.
realty_pay
=
$
(
'#pay_c'
).
html
();
params
.
family_pay
=
$
(
'#pay_d'
).
html
();
params
.
private_bank
=
$
(
'#pay_e'
).
html
();
params
.
cash
=
$
(
'#pay_f'
).
html
();
params
.
pos
=
$
(
'#pay_g'
).
html
();
params
.
other_bank
=
$
(
'#pay_h'
).
html
();
params
.
bank_card
=
$
(
'#pay_k'
).
html
();
params
.
bank_card_new
=
$
(
'#pay_m'
).
html
();
params
.
bank_card_lin
=
$
(
'#pay_lin'
).
html
();
};
params
.
alipay_3
=
$
(
'#pay_i_chen'
).
html
();
params
.
tenpay_3
=
$
(
'#pay_j_chen'
).
html
();
params
.
bank_card_chen
=
$
(
'#pay_k_chen'
).
html
();
//验证店长 提交日报时间 小于当前时间
var
myDate
=
new
Date
();
var
y
=
myDate
.
getFullYear
();
var
m
=
myDate
.
getMonth
()
+
1
;
var
d
=
myDate
.
getDate
();
var
day_end
=
y
+
'-'
+
(
m
<
10
?
(
'0'
+
m
)
:
m
)
+
'-'
+
(
d
<
10
?
(
'0'
+
d
)
:
d
);
if
(
getTimeStamp
(
bargain
.
financialTime
)
>
getTimeStamp
(
day_end
)){
alert
(
'提交财务日报的时间不能大于当天的时间'
);
return
;
}
if
(
!
bargain
.
isAjaxSaving
){
bargain
.
isAjaxSaving
=
true
;
$
.
ajax
({
url
:
'/index/addDaily'
,
type
:
'GET'
,
async
:
true
,
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
alert
(
'提交成功'
);
bargain
.
getList
();
}
},
complete
:
function
(
xhr
,
textStatus
){
bargain
.
isAjaxSaving
=
false
;
//请求结束,再改为初始状态
if
(
textStatus
===
'timeout'
){
layerTipsX
(
'请求超时'
);
};
}
});
}
},
//获取图片
getPic
:
function
()
{
$
(
'.result2,.result'
).
remove
();
//删除之前存在的图片 显示从接口获取的数据 用来区分新添加的 和 已经保存的
if
(
bargain
.
isOffice
==
1
){
bargain
.
isOfficeUrl
=
'/index/getPayLogImg'
;
//商铺
}
else
{
bargain
.
isOfficeUrl
=
'/office_index/getPayLogImg'
;
//办公楼
}
$
.
ajax
({
url
:
bargain
.
isOfficeUrl
,
type
:
'GET'
,
async
:
true
,
data
:
{
'pay_log_id'
:
bargain
.
recordid
,
'AuthToken'
:
user_info_obj
.
AuthToken
,
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
//渲染已经有的列表
if
(
!
(
Array
.
isArray
(
data
.
data
))
&&
data
.
data
){
for
(
i
=
0
;
i
<
data
.
data
.
img_info
.
length
;
i
++
)
{
$
(
'#container_body_img_area'
).
append
(
'<div class="result2"><img data-imgid="" src="{1}" alt="" class="diagram-image J_preview" data-bimg="{1}"/> <span class="span-del2"></span></div>'
.
stringFormatObj
({
'1'
:
urlDeal
(
data
.
data
.
img_path
+
data
.
data
.
img_info
[
i
].
img_name
)
}));
};
}
else
{
$
(
'#container_body_img_area'
).
append
(
'<div class="result2">暂无图片</div>'
);
}
}
else
{
alert
(
data
.
msg
)
}
}
});
},
//财务审核通过 转到已审核
submitPassReport
:
function
()
{
var
params
=
{};
params
.
daily_id
=
bargain
.
daily_id
;
params
.
agent_id
=
user_info_obj
.
id
;
params
.
agent_name
=
user_info_obj
.
name
;
params
.
operation_status
=
bargain
.
operationStatus
//0审核通过 1转为已审核
if
(
bargain
.
operationStatus
==
0
){
params
.
remark
=
$
.
trim
(
$
(
'.remark-financial'
).
val
());
}
else
{
params
.
remark
=
$
.
trim
(
$
(
'.remark-financialed'
).
val
());
}
if
(
bargain
.
caiwu_site_id
==
10003
){
//深圳
params
.
alipay
=
$
(
'#total_yun_zhihubao'
).
html
();
params
.
tenpay
=
$
(
'#total_yun_weixin'
).
html
();
params
.
bank_card
=
$
(
'#total_yun_card'
).
html
();
params
.
bank_card_yun
=
$
(
'#total_yun_bank'
).
html
();
params
.
pos
=
$
(
'#total_yun_pos'
).
html
();
params
.
family_pay
=
$
(
'#total_yun_family'
).
html
();
//深圳店长提交 没有的数据传空 财务审核
params
.
realty_pay
=
''
;
params
.
other_bank
=
''
;
params
.
cash
=
''
;
params
.
private_bank
=
''
;
}
else
if
(
bargain
.
caiwu_site_id
==
10002
){
//杭州
params
.
alipay
=
$
(
'#total_a_hangzhou'
).
html
();
params
.
alipay_2
=
$
(
'#total_a1_hangzhou'
).
html
();
params
.
tenpay
=
$
(
'#total_b_hangzhou'
).
html
();
params
.
tenpay_2
=
$
(
'#total_b1_hangzhou'
).
html
();
params
.
realty_pay
=
$
(
'#total_c_hangzhou'
).
html
();
params
.
family_pay
=
$
(
'#total_d_hangzhou'
).
html
();
params
.
private_bank
=
$
(
'#total_e_hangzhou'
).
html
();
params
.
cash
=
$
(
'#total_f_hangzhou'
).
html
();
params
.
pos
=
$
(
'#total_g_hangzhou'
).
html
();
params
.
other_bank
=
$
(
'#total_h_hangzhou'
).
html
();
params
.
bank_card
=
$
(
'#total_m_hangzhou'
).
html
();
params
.
bank_card_lin
=
$
(
'#total_n_hangzhou'
).
html
();
}
else
{
//上海
params
.
alipay
=
$
(
'#total_a'
).
html
();
params
.
alipay_2
=
$
(
'#total_a1'
).
html
();
params
.
tenpay
=
$
(
'#total_b'
).
html
();
params
.
tenpay_2
=
$
(
'#total_b1'
).
html
();
params
.
realty_pay
=
$
(
'#total_c'
).
html
();
params
.
family_pay
=
$
(
'#total_d'
).
html
();
params
.
private_bank
=
$
(
'#total_e'
).
html
();
params
.
cash
=
$
(
'#total_f'
).
html
();
params
.
pos
=
$
(
'#total_g'
).
html
();
params
.
other_bank
=
$
(
'#total_h'
).
html
();
params
.
bank_card
=
$
(
'#total_m'
).
html
();
params
.
bank_card_new
=
$
(
'#total_n'
).
html
();
params
.
bank_card_lin
=
$
(
'#total_lin'
).
html
();
};
params
.
alipay_3
=
$
(
'#total_i_chen'
).
html
();
params
.
tenpay_3
=
$
(
'#total_j_chen'
).
html
();
params
.
bank_card_chen
=
$
(
'#total_k_chen'
).
html
();
$
.
ajax
({
url
:
'/index/commitCheck'
,
type
:
'GET'
,
async
:
true
,
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
alert
(
'提交成功'
);
if
(
bargain
.
operationStatus
==
1
){
bargain
.
saveHtml2Image
();
//截图 转为已审核
}
$
(
"#modal_financialremark"
).
modal
(
'hide'
);
//提交成功后 关闭弹窗
$
(
"#modal_financialremarked"
).
modal
(
'hide'
);
//提交成功后 关闭弹窗
bargain
.
getList
();
// location.href='/index/dailyList'
}
else
{
alert
(
data
.
msg
);
}
}
});
},
//删除详情
delDetail
:
function
()
{
if
(
bargain
.
isOffice
==
1
){
bargain
.
isOfficeUrl
=
'/index/delPayLog'
;
//商铺
}
else
{
bargain
.
isOfficeUrl
=
'/office_index/delPayLog'
;
//办公楼
}
$
.
ajax
({
url
:
bargain
.
isOfficeUrl
,
type
:
'POST'
,
async
:
true
,
data
:
{
'pay_id'
:
bargain
.
recordid
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
alert
(
'删除成功'
);
bargain
.
getList
();
}
else
{
alert
(
data
.
msg
);
}
}
});
},
deleteTableRow
:
function
(
id
){
//撤销调整
var
params
=
{
'id'
:
id
};
if
(
bargain
.
isOffice
==
1
){
bargain
.
isOfficeUrl
=
'/index/delAdjustment'
;
//商铺
}
else
{
bargain
.
isOfficeUrl
=
'/office_index/delAdjustment'
;
//办公楼
};
$
.
post
(
bargain
.
isOfficeUrl
,
params
,
function
(
data
){
if
(
data
.
code
==
200
)
{
bargain
.
getList
();
}
else
{
alert
(
data
.
msg
);
}
},
'json'
)
},
//获取收款详情
getMoneyDetail
:
function
(
id
){
var
that
=
bargain
;
var
params
=
{
'pay_id'
:
id
};
if
(
bargain
.
isOffice
==
1
){
bargain
.
isOfficeUrl
=
'/index/getCollectionDetail'
;
//商铺
}
else
{
bargain
.
isOfficeUrl
=
'/office_index/getCollectionDetail'
;
//办公楼
}
$
.
get
(
bargain
.
isOfficeUrl
,
params
,
function
(
data
){
if
(
data
.
code
==
200
)
{
that
.
getValueFunction
(
data
.
data
);
}
else
{
alert
(
data
.
msg
);
}
},
'json'
)
},
getValueFunction
:
function
(
data
){
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
if
(
user_info_obj
.
site_id
==
10001
){
$
(
'.shanghaipayType'
).
show
();
$
(
'.hangzhoupayType'
).
hide
();
$
(
'.shenzhengpayType'
).
hide
();
}
else
if
(
user_info_obj
.
site_id
==
10002
){
$
(
'.shanghaipayType'
).
hide
();
$
(
'.hangzhoupayType'
).
show
();
$
(
'.shenzhengpayType'
).
hide
();
}
else
if
(
user_info_obj
.
site_id
==
10003
){
$
(
'.shanghaipayType'
).
hide
();
$
(
'.hangzhoupayType'
).
hide
();
$
(
'.shenzhengpayType'
).
show
();
}
else
{
//北京 广州
$
(
'.shanghaipayType'
).
show
();
$
(
'.hangzhoupayType'
).
hide
();
$
(
'.shenzhengpayType'
).
hide
();
}
var
persent
=
0.7
;
bargain
.
payment_details_price
=
data
.
price
;
bargain
.
payment_details_money
=
data
.
money
;
bargain
.
receivedMoneyLiu
=
data
.
received_money
*
1
;
$
(
'.zhzd'
).
show
();
$
(
'.zjcon'
).
hide
();
var
doc
=
$
(
'#modal-addPic'
);
doc
.
find
(
"#ruzhangId"
).
text
(
data
.
id
);
doc
.
find
(
"#dingdanId"
).
text
(
data
.
order_id
);
doc
.
find
(
"#chengjiaobaogaoId"
).
text
(
data
.
bargain_id
);
doc
.
find
(
"#fangyuanId"
).
text
(
data
.
house_id
);
doc
.
find
(
"#tijiaoren"
).
text
(
data
.
agent_name
);
doc
.
find
(
"#address"
).
text
(
data
.
address
);
doc
.
find
(
"#comit_time"
).
text
(
data
.
create_time
);
doc
.
find
(
"#open_time"
).
text
(
data
.
open_time
);
//开业确定时间
//判断收款详情的类型
if
(
data
.
type
==
91
){
$
(
'.agency_fees_type_hide'
).
show
();
}
else
{
$
(
'.agency_fees_type_hide'
).
hide
();
};
if
(
data
.
type
==
91
||
data
.
type
==
92
){
$
(
'.before_commission_hide'
).
show
();
}
else
{
$
(
'.before_commission_hide'
).
hide
();
}
if
(
data
.
type
==
10
){
doc
.
find
(
"#intoType"
).
text
(
'意向金'
);
}
else
if
(
data
.
type
==
20
)
{
doc
.
find
(
"#intoType"
).
text
(
'定金'
);
}
else
if
(
data
.
type
==
30
)
{
doc
.
find
(
"#intoType"
).
text
(
'保管金'
);
}
else
if
(
data
.
type
==
40
)
{
doc
.
find
(
"#intoType"
).
text
(
'押金'
);
}
else
if
(
data
.
type
==
50
)
{
doc
.
find
(
"#intoType"
).
text
(
'租金'
);
}
else
if
(
data
.
type
==
60
)
{
doc
.
find
(
"#intoType"
).
text
(
'进场费 '
);
}
else
if
(
data
.
type
==
70
)
{
doc
.
find
(
"#intoType"
).
text
(
'转让费'
);
}
else
if
(
data
.
type
==
80
)
{
doc
.
find
(
"#intoType"
).
text
(
'其他'
);
}
else
if
(
data
.
type
==
90
)
{
doc
.
find
(
"#intoType"
).
text
(
'佣金'
);
}
else
if
(
data
.
type
==
91
)
{
doc
.
find
(
"#intoType"
).
text
(
'中介费'
);
if
(
data
.
type_ext
==
1
){
persent
=
0
;
bargain
.
receivedMoneyLiu
=
bargain
.
receivedMoneyLiu
*
0
;
};
$
(
'.zhzd'
).
hide
();
}
else
if
(
data
.
type
==
92
)
{
doc
.
find
(
"#intoType"
).
text
(
'案场费'
);
$
(
'.zhzd'
).
hide
();
}
else
{
doc
.
find
(
"#intoType"
).
text
(
'佣金'
);
}
//收款详情 获取中介费类型 之前已收佣
doc
.
find
(
"#agency_fees_type_text"
).
val
(
data
.
type_ext
);
doc
.
find
(
"#before_commission_text"
).
val
(
data
.
received_money
);
doc
.
find
(
"#shopNo"
).
text
(
data
.
house_number
);
doc
.
find
(
"#intoDate"
).
val
(
data
.
income_time
);
doc
.
find
(
"#salePrice"
).
text
(
data
.
price
+
"元"
);
doc
.
find
(
"#intoPrice"
).
val
(
data
.
money
);
doc
.
find
(
"#shouxu"
).
val
(
data
.
transaction_fee
);
doc
.
find
(
"#realPrice"
).
val
(
data
.
real_money
);
//保留两位小数
doc
.
find
(
"#getPrice"
).
text
((
Math
.
floor
(((
data
.
price
-
0
)
*
persent
)
*
100
)
/
100
).
toFixed
(
2
)
+
"元"
);
doc
.
find
(
"#morePrice"
).
text
((
Math
.
floor
((
data
.
money
-
((
data
.
price
-
0
)
*
persent
)
+
bargain
.
receivedMoneyLiu
)
*
100
)
/
100
).
toFixed
(
2
));
if
(
$
(
"#morePrice"
).
html
()
*
1
<
0
){
$
(
"#morePrice"
).
html
(
0
)
}
$
(
"#person"
).
text
(
data
.
current_agent_name
);
$
(
"#belongT"
).
text
(
data
.
store_name
);
doc
.
find
(
"#payType"
).
val
(
data
.
pay_type
);
doc
.
find
(
"#payNo"
).
val
(
data
.
transfer_name
);
doc
.
find
(
"#running"
).
val
(
data
.
is_open
);
doc
.
find
(
"#fenhong"
).
val
(
data
.
is_dividend
);
doc
.
find
(
'#pinpai'
).
text
(
data
.
industry_type
);
if
(
data
.
source
==
0
)
{
$
(
"#comes"
).
text
(
'APP'
);
doc
.
find
(
"#status"
).
text
(
"正常"
);
}
else
if
(
data
.
source
==
1
){
$
(
"#comes"
).
text
(
'智能pos机'
);
doc
.
find
(
"#status"
).
text
(
"正常"
);
}
else
{
$
(
"#comes"
).
text
(
'调整'
);
doc
.
find
(
"#status"
).
text
(
"被调整"
);
}
doc
.
find
(
"#lastTime"
).
val
(
data
.
last_transfer_time
);
doc
.
find
(
"#shoutiao"
).
val
(
data
.
receipt_number
);
if
(
data
.
type
==
91
||
data
.
type
==
92
)
{
$
(
'.xqac'
).
show
();
}
else
{
$
(
'.xqac'
).
hide
();
}
if
(
data
.
type
==
10
||
data
.
type
==
30
)
{
if
(
bargain
.
isOffice
==
1
){
//商铺才执行的操作
$
(
'.ky'
).
hide
();
}
$
(
'.shout'
).
show
();
}
else
{
if
(
bargain
.
isOffice
==
1
){
//商铺才执行的操作
$
(
'.ky'
).
show
();
}
$
(
'.shout'
).
hide
();
}
if
(
data
.
type
==
91
){
$
(
'.zjcon'
).
show
();
}
},
//获取收款图片
getaddPicList
:
function
(
id
)
{
$
(
'#container_body_img_area_du'
).
html
(
''
);
//每回先清空所有图片
var
id_pic
=
id
;
//follow.house_fatherid > 0?follow.house_fatherid:follow.house_id;
$
(
'.result2-du,.result-du'
).
remove
();
//删除之前存在的图片 显示从接口获取的数据 用来区分新添加的 和 已经保存的
if
(
bargain
.
isOffice
==
1
){
bargain
.
isOfficeUrl
=
'/index/receiptImgList'
;
//商铺
}
else
{
bargain
.
isOfficeUrl
=
'/office_index/receiptImgList'
;
//办公楼
}
$
.
ajax
({
'type'
:
'GET'
,
'url'
:
bargain
.
isOfficeUrl
,
data
:
{
"id"
:
id_pic
,
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
//渲染已经有的列表
for
(
i
=
0
;
i
<
data
.
data
.
length
;
i
++
)
{
$
(
'#container_body_img_area_du'
).
append
(
'<div class="result2-du"><img data-imgid="{0}" src="{1}" alt="" class="diagram-image J_preview" data-bimg="{1}"/> <span class="span-del2-du">删除</span></div>'
.
stringFormatObj
({
'0'
:
data
.
data
[
i
].
id
,
'1'
:
data
.
data
[
i
].
img_name
?
urlDeal
(
data
.
data
[
i
].
img_name
):
data
.
data
[
i
].
img_name
}));
};
}
else
{
alert
(
data
.
msg
)
}
}
});
},
spandelList
:
function
(
n
)
{
//删除已经保存的图片都调用
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/index/deleteReceiptImg'
,
data
:
{
id
:
n
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
}
else
{
alert
(
data
.
msg
)
}
}
});
},
//保存收款信息
saveRecervables
:
function
(){
var
that
=
bargain
;
var
params
=
that
.
recervablesParams
();
if
(
$
(
'#intoType'
).
val
()
==
92
||
$
(
'#intoType'
).
val
()
==
91
){
if
(
params
.
is_open
==
3
){
alert
(
'请选择是否开业'
);
return
;
};
};
if
(
bargain
.
isOffice
==
1
){
bargain
.
isOfficeUrl
=
'/index/getCollectionEdit'
;
//商铺
}
else
{
bargain
.
isOfficeUrl
=
'/office_index/getCollectionEdit'
;
//办公楼
}
$
.
post
(
bargain
.
isOfficeUrl
,
params
,
function
(
data
){
if
(
data
.
code
==
200
)
{
bargain
.
getList
();
}
else
{
alert
(
data
.
msg
);
}
},
'json'
)
},
//保存收款信息 调用接口
recervablesParams
:
function
(){
var
params
=
{}
;
if
(
$
(
'#ruzhangId'
).
text
()){
//入账ID
params
.
pay_id
=
$
(
'#ruzhangId'
).
text
()
};
if
(
$
(
'#intoDate'
).
val
()){
//入账日期
params
.
income_time
=
$
(
'#intoDate'
).
val
()
};
if
(
$
(
'#intoPrice'
).
val
()){
//入账金额
params
.
money
=
$
(
'#intoPrice'
).
val
()
};
if
(
$
(
'#shouxu'
).
val
()){
//手续费
params
.
transaction_fee
=
$
(
'#shouxu'
).
val
()
};
if
(
$
(
'#realPrice'
).
val
()){
//实付金额
params
.
real_money
=
$
(
'#realPrice'
).
val
()
};
if
(
$
(
'#payType'
).
val
()){
//支付方式
params
.
pay_type
=
$
(
'#payType'
).
val
()
};
if
(
$
(
'#payNo'
).
val
()){
//支付户名
params
.
transfer_name
=
$
(
'#payNo'
).
val
()
};
params
.
is_open
=
$
(
'#running'
).
val
()
if
(
$
(
'#fenhong'
).
val
()){
//分红
params
.
is_dividend
=
$
(
'#fenhong'
).
val
()
};
if
(
$
(
'#lastTime'
).
val
()){
//最后转定时间
params
.
last_transfer_time
=
$
(
'#lastTime'
).
val
()
};
if
(
$
(
'#chengjiaobaogaoId'
).
html
()){
//收款详情 成交报告id
params
.
bargain_id
=
$
(
'#chengjiaobaogaoId'
).
html
();
};
if
(
$
(
'#intoType'
).
text
()
==
'意向金'
||
$
(
'#intoType'
).
text
()
==
'保管金'
)
{
if
(
$
(
'#shoutiao'
).
val
()){
params
.
receipt_number
=
$
(
'#shoutiao'
).
val
()
}
};
//判断是否是 案场费
if
(
$
(
'#intoType'
).
text
()
==
'中介费'
){
params
.
type_ext
=
$
(
'#agency_fees_type_text'
).
val
()
};
//判断是否是 案场费 中介费
if
(
$
(
'#intoType'
).
text
()
==
'案场费'
||
$
(
'#intoType'
).
text
()
==
'中介费'
){
if
(
$
(
'#before_commission_text'
).
val
()){
params
.
received_money
=
$
(
'#before_commission_text'
).
val
();
}
params
.
type_ext
=
$
(
'#agency_fees_type_text'
).
val
()
};
return
params
;
},
getBack
:
function
(
id
){
var
that
=
bargain
;
var
params
=
{
'id'
:
id
};
$
.
post
(
''
,
params
,
function
(
data
){
if
(
data
.
code
==
200
)
{
console
.
log
(
data
);
that
.
initBackData
(
data
);
}
else
{
alert
(
data
.
msg
);
}
})
},
initBackData
:
function
(){
var
that
=
bargain
;
$
(
'#back_type'
).
val
(
30
);
$
(
'#back_price'
).
val
(
100
);
$
(
'#back_no'
).
val
(
100
);
$
(
'#back_reason'
).
val
(
100
);
$
(
'#back_into_type'
).
text
(
100
);
$
(
'#back_shop_addr'
).
text
(
100
);
$
(
'#back_price_type'
).
text
(
100
);
$
(
'#back_price_user'
).
val
(
100
);
$
(
'#back_bank'
).
val
(
100
);
$
(
'#back_bank_name'
).
val
(
100
);
$
(
'#back_phone'
).
val
(
100
);
$
(
'#back_others'
).
val
(
100
);
$
(
'#container_body_img_area3'
).
empty
();
},
clearBackData
:
function
(){
var
that
=
bargain
;
$
(
'#back_type'
).
val
(
""
);
$
(
'#back_price'
).
val
(
""
);
$
(
'#back_no'
).
val
(
""
);
$
(
'#back_reason'
).
val
(
""
);
$
(
'#back_into_type'
).
text
(
""
);
$
(
'#back_shop_addr'
).
text
(
""
);
// $('#back_price_type').text("");
$
(
'#back_price_user'
).
val
(
""
);
$
(
'#back_bank'
).
val
(
""
);
$
(
'#back_bank_name'
).
val
(
""
);
$
(
'#back_phone'
).
val
(
""
);
$
(
'#back_others'
).
val
(
""
);
},
saveBack
:
function
(){
var
that
=
bargain
;
var
params
=
that
.
getBackParams
();
if
(
!
params
)
{
return
false
;
}
if
(
bargain
.
isOffice
==
1
){
bargain
.
isOfficeUrl
=
'/index/refundPayLog'
;
//商铺
}
else
{
bargain
.
isOfficeUrl
=
'/office_index/refundPayLog'
;
//办公楼
}
$
.
post
(
bargain
.
isOfficeUrl
,
params
,
function
(
data
){
if
(
data
.
code
==
200
)
{
$
(
'#modal-back'
).
modal
(
"hide"
)
bargain
.
getList
();
}
else
{
alert
(
data
.
msg
);
}
},
'json'
);
},
//获取调整详情
getAdjustmentDetail
:
function
(
id
){
var
that
=
bargain
;
if
(
bargain
.
isOffice
==
1
){
bargain
.
isOfficeUrl
=
'/index/getAdjustmentDetail'
;
//商铺
}
else
{
bargain
.
isOfficeUrl
=
'/office_index/getAdjustmentDetail'
;
//办公楼
}
$
.
get
(
bargain
.
isOfficeUrl
,{
'id'
:
id
},
function
(
data
){
if
(
data
.
code
==
200
)
{
that
.
setValue
(
data
.
data
);
}
else
{
alert
(
data
.
msg
);
}
},
'json'
);
},
//保存调整
saveChange
:
function
(
no
){
var
that
=
bargain
;
if
(
that
.
pay_id
-
0
<
1
){
alert
(
"参数错误!"
);
}
var
params
=
{
'order_id'
:
that
.
order_id
,
'order_no'
:
that
.
order_no
,
'agent_id'
:
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
))).
id
,
'report_id'
:
that
.
report_id
,
'industry_type'
:
that
.
yetai
?
that
.
yetai
:
''
,
'pay_id'
:
that
.
pay_id
,
'transfer_name'
:
that
.
transfer_name
,
};
//调整类型 选择为中介费 案场费 要提交成交报告id
if
(
$
(
'#change_type'
).
val
()
==
91
||
$
(
'#change_type'
).
val
()
==
92
){
if
(
$
.
trim
(
$
(
"#report_id_change"
).
val
())){
params
.
bargain_id
=
$
.
trim
(
$
(
"#report_id_change"
).
val
());
}
else
{
alert
(
'请选择成交报告ID'
)
return
;
}
}
else
{
params
.
bargain_id
=
0
;
}
var
obj
=
{
'pay_type'
:
that
.
pay_type
};
if
(
$
(
'#change_type'
).
val
()){
//调整类型
obj
.
type
=
$
(
'#change_type'
).
val
();
//that.type_num;
};
//提交调整 案场费 中介费 之前已收佣 中介费类型
if
(
$
(
'#change_type'
).
val
()
==
91
||
$
(
'#change_type'
).
val
()
==
92
){
params
.
received_money
=
$
(
'#before_commission'
).
val
();
params
.
type_ext
=
$
(
'#agency_fees_type'
).
val
();
};
if
(
$
(
'#change_type'
).
val
()
==
91
){
params
.
type_ext
=
$
(
'#agency_fees_type'
).
val
();
}
//拼接jsonArray to jsonObject
if
(
$
(
'#change_price'
).
val
()){
//调整金额
if
(
$
(
'#change_price'
).
val
()
>
0
){
if
(
$
(
'#change_price'
).
val
()
-
$
(
'#could_price'
).
text
()
>
0
){
alert
(
"超出最大限额"
);
return
false
;
}
else
{
obj
.
money
=
$
(
'#change_price'
).
val
();}
}
else
{
alert
(
'请选择调整金额'
);
return
false
;
}
};
var
jsonArray
=
[]
;
jsonArray
.
push
(
obj
);
params
.
collecting_bill
=
JSON
.
stringify
(
jsonArray
)
;
params
.
house_number
=
$
(
'#shop_id_change_shop'
).
val
()
if
(
$
(
'#change_type'
).
val
()
==
10
||
$
(
'#change_type'
).
val
()
==
30
){
if
(
$
(
'#change_time'
).
val
()){
//最后转定时间
if
(
bargain
.
isOffice
==
1
){
//商铺
params
.
last_transfer_time
=
$
(
'#change_time'
).
val
()
}
else
{
//办公楼
params
.
last_transfer_time
=
(
new
Date
(
$
(
'#change_time'
).
val
())).
getTime
()
*
0.001
;
}
};
}
else
{
if
(
$
(
'#change_fenhong'
).
text
()){
//分红
params
.
is_dividend
=
$
(
'#change_fenhong'
).
val
()
};
if
(
bargain
.
isOffice
==
1
){
//商铺 调整
if
(
$
(
'#change_kaiye'
).
val
()
==
3
){
//中介费 案场费
alert
(
'请选择是否开业'
);
return
;
}
else
{
params
.
is_open
=
$
(
'#change_kaiye'
).
val
();
}
}
else
{
}
}
params
.
receipt_number
=
that
.
receipt_number
;
if
(
$
(
'#into_id_change'
).
val
()){
//带看id
params
.
into_id_change
=
$
(
'#into_id_change'
).
val
()
};
//图片数据处理
var
pictures
=
$
(
'.img_area'
).
find
(
'.pictures'
);
var
picName
=
""
;
pictures
.
each
(
function
(
i
,
event
){
picName
+=
$
(
this
).
attr
(
"id"
)
+
","
})
if
(
!
(
pictures
.
length
-
0
>
0
)
){
alert
(
"请选择图片"
);
return
false
;
}
else
{
params
.
transfer_img
=
JSON
.
stringify
(
picName
.
substr
(
0
,
picName
.
length
-
1
).
split
(
","
));
}
//上传数据
if
(
bargain
.
isOffice
==
1
){
bargain
.
isOfficeUrl
=
'/index/collectingBill'
;
//商铺
params
.
income_time
=
that
.
income_time
;
}
else
{
bargain
.
isOfficeUrl
=
'/office_index/collectingBill'
;
//办公楼
params
.
AuthToken
=
user_info_obj
.
AuthToken
;
params
.
income_time
=
(
new
Date
(
that
.
income_time
)).
getTime
()
*
0.001
;
}
$
.
post
(
bargain
.
isOfficeUrl
,
params
,
function
(
data
){
if
(
data
.
code
==
200
)
{
$
(
'#modal-linetime'
).
modal
(
'hide'
);
alert
(
'提交成功'
);
bargain
.
getList
();
//调整后的
}
else
{
alert
(
data
.
msg
);
}
},
'json'
);
},
//保存退款
getBackParams
:
function
(){
var
that
=
bargain
;
var
sysans
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
console
.
log
(
sysans
);
var
params
=
{}
;
var
back_type
=
$
(
'#back_type'
).
val
();
var
back_price
=
$
(
'#back_price'
).
val
();
var
back_no
=
$
(
'#back_no'
).
val
();
var
back_reason
=
$
(
'#back_reason'
).
val
();
var
back_price_user
=
$
(
'#back_price_user'
).
val
();
var
back_bank
=
$
(
'#back_bank'
).
val
();
var
back_bank_name
=
$
(
'#back_bank_name'
).
val
();
var
back_phone
=
$
(
'#back_phone'
).
val
();
var
back_others
=
$
(
'#back_others'
).
val
();
params
.
refund_way
=
0
;
params
.
pay_log_id
=
that
.
back_id
;
params
.
order_id
=
that
.
back_order_id
;
params
.
order_no
=
that
.
back_order_no
;
params
.
report_id
=
that
.
back_report_id
;
params
.
agent_id
=
sysans
.
id
;
params
.
agent_name
=
sysans
.
name
;
// params.agent_id = that.back_agent_id;
if
(
back_type
-
0
>
-
1
){
params
.
type
=
back_type
;
}
else
{
alert
(
"请输入退款类型"
);
return
false
;
};
var
max
=
$
(
'#could_price_back'
).
text
()
if
(
back_price
){
if
(
back_price
>
0
){
console
.
log
(
max
);
console
.
log
(
back_price
)
if
(
max
-
back_price
>
-
1
)
{
params
.
refund_money
=
back_price
;
}
else
{
alert
(
"请输入正确的金额"
);
return
false
;
}
}
else
{
alert
(
"请输入正确的金额"
);
return
false
;
}
}
if
(
back_no
){
params
.
receipt_number
=
back_no
;
}
else
{
alert
(
"请输入退款凭证编号"
);
return
false
;
}
if
(
back_reason
){
params
.
refund_cause
=
back_reason
;
}
else
{
alert
(
"请输入退款原因"
);
return
false
;
}
if
(
back_price_user
){
params
.
card_no
=
back_price_user
;
}
else
{
alert
(
"请输入退款账户"
);
return
false
;
}
if
(
back_bank
){
params
.
bank
=
back_bank
;
}
else
{
alert
(
"请输入开户行"
);
return
false
;
}
if
(
back_bank_name
){
params
.
name
=
back_bank_name
;
}
else
{
alert
(
"请输入户名"
);
return
false
;
}
if
(
back_phone
)
{
if
(
back_phone
[
0
]
==
"1"
&&
back_phone
.
length
==
11
&&
back_phone
-
0
>-
1
)
{
params
.
phone
=
back_phone
;
}
else
{
alert
(
"请输入正确的手机号码"
)
return
false
;
}
}
else
{
lert
(
"请输入正确的手机号码"
)
return
false
;
}
if
(
back_others
){
params
.
remark
=
back_others
;
}
else
{
alert
(
"请输入其他原因"
);
return
false
;
}
//图片数据处理
var
pictures
=
$
(
'#container_body_img_area3'
).
find
(
'.result'
);
var
picName
=
[];
pictures
.
each
(
function
(
i
,
event
){
picName
[
i
]
=
$
(
this
).
find
(
"img"
).
attr
(
"id"
)
})
console
.
log
(
picName
);
if
(
!
(
pictures
.
length
-
0
>
0
)
){
alert
(
"请选择图片"
);
return
false
;
}
else
{
params
.
remark_img
=
picName
;
//JSON.stringify(picName.substr(0,picName.length-1).split(","));
}
console
.
log
(
typeof
(
params
.
remark_img
))
return
params
;
},
getReportDataByDetail
:
function
(
val
){
//调整页面 搜索成交报告id相关
// $.post('/office_index/getCollection',{'val':val},function(data){
// if(data.code == 200) {
// return data ;
// } else {
// alert(data.msg);
// }
// })
},
search_phone
:
function
(){
//成交报告id 下拉列表
var
that
=
bargain
;
if
(
bargain
.
isOffice
==
1
){
bargain
.
isOfficeUrl
=
'/index/bargainListSearchBargainId'
;
//商铺
}
else
{
bargain
.
isOfficeUrl
=
'/office/bargainListSearchBargainId'
;
//办公楼
}
$
.
ajax
({
url
:
bargain
.
isOfficeUrl
,
type
:
'GET'
,
async
:
true
,
data
:
{
"keyword"
:
$
(
"#report_id_change"
).
val
(),
"type"
:
3
,
'status'
:
5
,
'is_my_correlation'
:
0
,
'page_no'
:
1
,
'page_size'
:
20
,
'submit_agent_id'
:
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
))).
id
,
'AuthToken'
:
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
))).
AuthToken
,
//"bargain_id": $("#report_id_change").val(),
//'submit_agent_id' : 0
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
user_ul
=
""
;
$
.
each
(
data
.
data
.
result
,
function
(
i
,
item
)
{
user_ul
+=
'<li class="reportIdBuild" data-house_id="'
+
item
.
house_id
+
'" data-house_number="'
+
item
.
house_number
+
'"data-order_id="'
+
item
.
order_id
+
'" data-agent_id="'
+
item
.
agent_id
+
'" data-order_no="'
+
item
.
order_no
+
'" data-agent_id="'
+
item
.
agent_id
+
'" data-agent_id="'
+
item
.
agent_id
+
'" data-report_id="'
+
item
.
report_id
+
'" data-addr="'
+
item
.
internal_address
+
'" data-id="'
+
item
.
id
+
'">'
+
item
.
internal_address
+
',商铺ID:'
+
item
.
house_id
+
',成交报告ID'
+
item
.
id
+
',成交价:'
+
item
.
price
+
',佣金'
+
item
.
commission
+
'</li>'
;
});
$
(
'.reportArea'
).
show
();
$
(
".reportArea"
).
html
(
user_ul
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
search_into
:
function
(){
//带看id 下拉列表
var
that
=
bargain
;
if
(
bargain
.
isOffice
==
1
){
bargain
.
isOfficeUrl
=
'/broker/searchOrder'
;
//商铺
}
else
{
bargain
.
isOfficeUrl
=
'/office/searchOrder'
;
//办公楼
}
$
.
ajax
({
url
:
bargain
.
isOfficeUrl
,
type
:
'GET'
,
async
:
true
,
data
:
{
"type"
:
7
,
"search_keyword"
:
$
(
"#into_id_change"
).
val
(),
"is_all"
:
1
,
'page_no'
:
1
,
'page_size'
:
20
,
'AuthToken'
:
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
))).
AuthToken
,
'agent_id'
:
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
))).
id
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
user_ul
=
""
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
user_ul
+=
'<li class="intoIdBuild" data-house_number="'
+
item
.
house_number
+
'"data-order_id="'
+
item
.
id
+
'" data-addr="'
+
item
.
house_address
+
'" data-id="'
+
item
.
id
+
'" data-house_id="'
+
item
.
house_id
+
'" data-agent_id="'
+
item
.
report_agent_id
+
'" data-agent_name="'
+
item
.
report_agent_name
+
'" data-order_no="'
+
item
.
order_no
+
'">'
+
item
.
house_address
+
',商铺ID:'
+
item
.
house_id
+
',带看ID:'
+
item
.
id
+
',客户编号:'
+
item
.
user_id
+
'</li>'
;
});
$
(
'.intoIdArea'
).
show
();
$
(
".intoIdArea"
).
html
(
user_ul
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
getAllPrice
:
function
(
id
){
if
(
bargain
.
isOffice
==
1
){
bargain
.
isOfficeUrl
=
'/index/getAdjustment'
;
//商铺
}
else
{
bargain
.
isOfficeUrl
=
'/office_index/getAdjustment'
;
//办公楼
}
$
.
get
(
bargain
.
isOfficeUrl
,{
'pay_id'
:
id
},
function
(
data
){
if
(
data
.
code
==
200
)
{
$
(
'#could_price'
).
text
(
data
.
data
.
residue_money
);
}
else
{
alert
(
data
.
msg
);
}
})
},
getMaxBackPrice
:
function
(
id
){
var
autgtoken
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
))).
AuthToken
;
if
(
bargain
.
isOffice
==
1
){
bargain
.
isOfficeUrl
=
'/broker/adjustment'
;
//商铺
}
else
{
bargain
.
isOfficeUrl
=
'/office/adjustment'
;
//办公楼
}
$
.
get
(
bargain
.
isOfficeUrl
,{
'pay_id'
:
id
,
'AuthToken'
:
autgtoken
},
function
(
data
){
if
(
data
.
code
==
200
)
{
$
(
'#could_price_back'
).
text
(
data
.
data
.
residue_money
);
}
else
{
alert
(
data
.
msg
);
}
})
},
change_show_hide
:
function
(
val
){
if
(
val
==
"意向金"
)
{
$
(
'.choose_topic_1'
).
hide
();
$
(
'.choose_topic_2'
).
show
();
$
(
'.rep'
).
hide
();
$
(
"#into_id_change"
).
removeAttr
(
"readOnly"
)
}
else
if
(
val
==
'保管金'
)
{
$
(
'.choose_topic_1'
).
hide
();
$
(
'.choose_topic_2'
).
show
();
$
(
'.rep'
).
hide
();
$
(
"#into_id_change"
).
removeAttr
(
"readOnly"
)
}
else
{
$
(
'.choose_topic_2'
).
hide
();
$
(
'.choose_topic_1'
).
show
();
$
(
'.rep'
).
show
();
$
(
'#into_id_change'
).
attr
(
"readonly"
,
"readonly"
);
}
},
//将li里的值 赋给input(分佣方姓名)
intoIdBuild
:
function
(
obj
)
{
//新增客户 input赋值
var
that
=
bargain
;
$
(
"#into_id_change"
).
val
(
$
(
obj
).
attr
(
"data-id"
));
$
(
".intoIdArea"
).
html
(
''
);
$
(
'.intoIdArea'
).
hide
();
$
(
'#shop_addr_change'
).
text
(
$
(
obj
).
attr
(
"data-addr"
));
$
(
'#shop_id_change'
).
text
(
$
(
obj
).
attr
(
"data-house_id"
));
that
.
houseNmuber
=
$
(
obj
).
attr
(
"data-house_number"
)
!=
"undefined"
?
$
(
obj
).
attr
(
"data-house_number"
):
''
;
that
.
order_id
=
$
(
obj
).
attr
(
"data-order_id"
)
;
that
.
order_no
=
$
(
obj
).
attr
(
"data-order_no"
)
;
that
.
report_id
=
$
(
obj
).
attr
(
"data-id"
);
that
.
agent_id
=
$
(
obj
).
attr
(
"data-agent_id"
);
that
.
agent_name
=
$
(
obj
).
attr
(
"data-agent_name"
);
that
.
changeType
(
that
.
order_id
);
},
//将li里的值 赋给input(分佣方姓名)
reportIdBuild
:
function
(
obj
)
{
//新增客户 input赋值
var
that
=
bargain
;
$
(
"#report_id_change"
).
val
(
$
(
obj
).
attr
(
"data-id"
));
$
(
".reportArea"
).
html
(
''
);
$
(
'.reportArea'
).
hide
();
$
(
'#shop_addr_change'
).
text
(
$
(
obj
).
attr
(
"data-addr"
));
$
(
'#shop_id_change_shop'
).
val
(
$
(
obj
).
attr
(
"data-house_number"
));
$
(
'#shop_id_change'
).
text
(
$
(
obj
).
attr
(
"data-house_id"
));
that
.
houseNmuber
=
$
(
obj
).
attr
(
"data-house_number"
);
$
(
'#into_id_change'
).
attr
(
"readonly"
,
"readonly"
);
$
(
'#into_id_change'
).
val
(
$
(
obj
).
attr
(
"data-order_id"
));
$
(
'#order_id_report'
).
val
(
$
(
obj
).
attr
(
"data-order_id"
));
that
.
order_id
=
$
(
obj
).
attr
(
"data-order_id"
)
;
that
.
order_no
=
$
(
obj
).
attr
(
"data-order_no"
)
;
that
.
report_id
=
$
(
obj
).
attr
(
"data-report_id"
);
that
.
agent_id
=
$
(
obj
).
attr
(
"data-agent_id"
);
that
.
agent_name
=
$
(
obj
).
attr
(
"data-agent_name"
);
},
//上传图片 调整
uploadImg
:
function
(
_this
){
var
formData
=
new
FormData
();
formData
.
append
(
'type'
,
'chat'
);
formData
.
append
(
'image'
,
_this
[
0
].
files
[
0
]);
$
.
ajax
({
type
:
'post'
,
url
:
'https://images.tonglianjituan.com/index/uploadImg'
,
data
:
formData
,
dataType
:
'json'
,
contentType
:
false
,
cache
:
false
,
processData
:
false
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
_data
.
code
==
200
)
{
var
_url
=
_data
.
data
.
internet_img_name
;
var
tag
=
''
;
tag
+=
'<div class="col-xs-3 pictures" id='
+
_data
.
data
.
img_path
+
'>'
;
if
(
_data
.
data
.
type
==
"shop_image_depot"
)
{
tag
+=
' <img src="/'
+
_url
+
'" class="" id="" width="90%">'
;
}
else
{
tag
+=
' <img src="'
+
_url
+
'" class="" id="" width="90%">'
;
}
tag
+=
' <div style="text-align:center" id="'
+
_data
.
data
.
img_path
+
'"><a href="javascript:;" class="delet-pic-btn">删除</a></div>'
;
tag
+=
'</div>'
;
$
(
'.img_area'
).
append
(
tag
)
}
else
{
alert
(
_data
.
msg
);
};
},
error
:
function
()
{
alert
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
alert
(
'请求超时,请重试'
);
};
}
});
},
setValue
:
function
(
data
){
var
that
=
bargain
;
$
(
'#change_id'
).
text
(
data
.
id
);
$
(
'#befor_into_id'
).
text
(
data
.
adjustment_old
[
0
].
id
);
$
(
'#befor_order_id'
).
text
(
data
.
adjustment_old
[
0
].
order_id
);
$
(
'#befor_house_id'
).
text
(
data
.
adjustment_old
[
0
].
house_id
);
$
(
'#befor_house_addr'
).
text
(
data
.
adjustment_old
[
0
].
internal_address
);
$
(
'#befor_into_date'
).
text
(
data
.
adjustment_old
[
0
].
income_time
);
$
(
'#befor_into_type'
).
text
(
data
.
adjustment_old
[
0
].
type
);
//调整前
$
(
'#befor_agent_name'
).
text
(
data
.
adjustment_old
[
0
].
agent_name
);
$
(
'#befor_create_time'
).
text
(
data
.
adjustment_old
[
0
].
create_time
);
$
(
'#after_into_id'
).
text
(
data
.
adjustment
[
0
].
id
);
$
(
'#after_order_id'
).
text
(
data
.
adjustment
[
0
].
order_id
);
$
(
'#after_report_id'
).
text
(
data
.
adjustment
[
0
].
bargain_id
);
$
(
'#after_house_id'
).
text
(
data
.
adjustment
[
0
].
house_id
);
$
(
'#after_house_addr'
).
text
(
data
.
adjustment
[
0
].
internal_address
);
$
(
'#after_into_date'
).
text
(
data
.
adjustment
[
0
].
income_time
);
$
(
'#after_into_type'
).
text
(
data
.
adjustment
[
0
].
type
);
$
(
'#after_into_price'
).
text
(
data
.
money
);
},
};
return
bargain
;
});
...
...
public/resource/js/costCheck.js
View file @
e565fb5d
...
...
@@ -5,74 +5,143 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
pageSize
:
10
,
/*每页显示多少条*/
id
:
''
,
house_id
:
''
,
house_fatherid
:
''
,
collection_del_id
:
''
,
listData
:
""
,
moneyTotal
:
""
,
agent_id_phone
:
''
,
check_status
:
1
,
deleteRefundId
:
''
,
url
:
''
,
agent_id_phone
:
''
,
init
:
function
()
{
//初始化dot
$
(
document
.
body
).
append
(
template
);
//判断权限 总监
if
(
check_auth
(
'index/getCostListTwo/1'
)){
$
(
'.choose_btn1'
).
show
();
}
else
{
$
(
'.choose_btn1'
).
hide
();
};
//判断权限 财务一级
if
(
check_auth
(
'index/getCostListThree/2'
)){
$
(
'.choose_btn2'
).
show
();
}
else
{
$
(
'.choose_btn2'
).
hide
();
};
//判断权限 财务二级
if
(
check_auth
(
'index/getCostListFour/3'
)){
$
(
'.choose_btn3'
).
show
();
}
else
{
$
(
'.choose_btn3'
).
hide
();
};
//判断权限 财务三级
if
(
check_auth
(
'index/getCostListFive/4'
)){
$
(
'.choose_btn4'
).
show
();
}
else
{
$
(
'.choose_btn4'
).
hide
();
};
//判断权限 未审核
if
(
check_auth
(
'index/getCostListOne/0'
)){
$
(
'.choose_btn5'
).
show
();
}
else
{
$
(
'.choose_btn5'
).
hide
();
};
//判断权限 全部
if
(
check_auth
(
'index/getCostList'
)){
$
(
'.choose_btn6'
).
show
();
}
else
{
$
(
'.choose_btn6'
).
hide
();
};
cost
.
url
=
$
(
'.btn-group .choose_btn:nth-of-type(1)'
).
attr
(
'data-value'
);
cost
.
getList
(
1
);
cost
.
event
();
},
event
:
function
()
{
var
that
=
cost
;
var
_doc
=
$
(
document
);
//初始化
$
(
'.pic-con2'
).
show
();
$
(
'.pic-con1'
).
hide
();
//点击不同审核按钮
_doc
.
on
(
'click'
,
'.choose_btn'
,
function
(
e
){
$
(
this
).
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
cost
.
url
=
e
.
target
.
dataset
.
value
;
cost
.
getList
(
1
);
});
//搜索
$
(
document
).
on
(
'click'
,
'#search'
,
function
(
e
){
that
.
getList
(
1
);
});
//重置搜索条件
$
(
document
).
on
(
'click'
,
'#reset'
,
function
(
e
){
that
.
resetAll
();
});
//费用类型切换
$
(
"#cost_type"
).
change
(
function
()
{
$
(
"#fee_item"
).
val
(
''
);
//置空费用项目
if
(
$
(
'#cost_type'
).
val
()
==
0
){
$
(
'.choose_office'
).
show
();
$
(
'.choose_total'
).
hide
();
$
(
'.choose_siteID'
).
hide
();
$
(
'.choose_store'
).
hide
();
}
else
if
(
$
(
'#cost_type'
).
val
()
==
1
){
$
(
'.choose_office'
).
hide
();
$
(
'.choose_total'
).
show
();
$
(
'.choose_siteID'
).
hide
();
$
(
'.choose_store'
).
hide
();
}
else
if
(
$
(
'#cost_type'
).
val
()
==
2
){
$
(
'.choose_office'
).
hide
();
$
(
'.choose_total'
).
hide
();
$
(
'.choose_siteID'
).
show
();
$
(
'.choose_store'
).
hide
();
}
else
if
(
$
(
'#cost_type'
).
val
()
==
3
){
$
(
'.choose_office'
).
hide
();
$
(
'.choose_total'
).
hide
();
$
(
'.choose_siteID'
).
hide
();
$
(
'.choose_store'
).
show
();
};
});
//获取报销id
$
(
document
).
on
(
'click'
,
'.is_del'
,
function
(
e
){
cost
.
id
=
$
(
this
).
attr
(
'data-id'
);
});
//删除报销
$
(
document
).
on
(
'click'
,
'#confirm_delete'
,
function
(
e
){
that
.
delCost
();
});
//导出报表
$
(
document
).
on
(
'click'
,
'#export'
,
function
(
e
){
that
.
exportExcel
();
});
//新增报销 上传图片
$
(
'#file_input_pic'
).
on
(
'change'
,
function
(){
//二级联动
that
.
getDistrict
(
function
()
{
_doc
.
on
(
'input'
,
'#commit_home'
,
function
()
{
var
_this
=
$
(
this
);
var
formData
=
new
FormData
();
formData
.
append
(
'type'
,
'chat'
);
formData
.
append
(
'image'
,
_this
[
0
].
files
[
0
]);
$
.
ajax
({
type
:
'post'
,
url
:
ServerHostImageLiu
+
'/index/uploadImg'
,
data
:
formData
,
dataType
:
'json'
,
contentType
:
false
,
cache
:
false
,
processData
:
false
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
_data
.
code
==
200
)
{
$
(
'#container_body_img_area'
).
append
(
'<div class="result"><img data-imgname="{0}" src="{1}" alt=""/> <span class="span-del">删除</span></div>'
.
stringFormatObj
({
'0'
:
_data
.
data
.
img_path
,
'1'
:
_data
.
data
.
internet_img_name
?
urlDeal
(
_data
.
data
.
internet_img_name
):
_data
.
data
.
internet_img_name
}));
var
_id
=
$
(
'#commit_home'
).
val
();
$
(
'#commit_shop'
).
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
)
{
that
.
getDistrictStoreList
(
_id
,
function
(
_data
)
{
var
_str
=
'<option value="0">全部</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
store_name
+
'</option>'
;
});
$
(
'#commit_shop'
).
append
(
_str
)
});
}
else
{};
});
});
//点击li 列表消失
$
(
document
).
delegate
(
".addphone"
,
"click"
,
function
()
{
//list消失新增客户 点击li事件 获取id ul消失
that
.
addphone
(
this
);
});
//分佣方 姓名下拉式
$
(
document
).
on
(
"input"
,
"#comit_name"
,
function
()
{
//手机号新增搜索客方
if
(
$
(
"#comit_name"
).
val
()
==
''
)
{
that
.
agent_id_phone
=
''
;
$
(
".user-ul"
).
html
(
''
);
}
else
{
alert
(
_data
.
msg
);
};
},
error
:
function
()
{
alert
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
alert
(
'请求超时,请重试'
);
};
that
.
search_person
();
}
});
});
//新增报销 上传图片
$
(
'#file_input_pic2'
).
on
(
'change'
,
function
(){
...
...
@@ -110,46 +179,42 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
}
});
});
$
(
'.tit_con'
).
unbind
(
'click'
).
bind
(
'click'
,
function
(
e
){
$
(
this
).
parent
(
'div'
).
find
(
'h4.active'
).
removeClass
(
"active"
);
$
(
this
).
addClass
(
"active"
);
if
(
e
.
currentTarget
.
innerHTML
==
"费用图片"
){
$
(
'.pic-con1'
).
show
();
$
(
'.pic-con2'
).
hide
();
}
else
{
$
(
'.pic-con2'
).
show
();
$
(
'.pic-con1'
).
hide
();
}
});
$
(
document
).
on
(
'click'
,
'.add-pic'
,
function
(
e
){
var
id
=
e
.
target
.
dataset
.
id
;
$
(
".publicCostDetails"
).
attr
(
'src'
,
'/index/publicCostDetails'
)
});
_doc
.
on
(
'click'
,
'.choose_btn'
,
function
(
e
){
var
befor
=
that
.
check_status
$
(
this
).
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
if
(
befor
!=
e
.
target
.
dataset
.
value
)
{
that
.
check_status
=
e
.
target
.
dataset
.
value
;
cost
.
getList
(
1
);
}
})
},
//删除退款
deleteRefund
:
function
(
id
)
{
search_person
:
function
()
{
//手机号新增客户
$
.
ajax
({
url
:
'/index/
delRefund
'
,
type
:
'
POS
T'
,
url
:
'/index/
getBroker_new
'
,
type
:
'
GE
T'
,
async
:
true
,
data
:
{
"refund_id"
:
id
"phone"
:
$
(
"#comit_name"
).
val
(),
'all'
:
1
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
cost
.
getList
(
cost
.
pageNo
);
alert
(
data
.
msg
);
var
user_ul
=
""
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
if
(
item
.
status
==
0
||
item
.
status
==
4
){
var
status
=
' '
;
};
if
(
item
.
status
==
1
){
var
status
=
'-长假'
;
};
if
(
item
.
status
==
2
){
var
status
=
'-离职'
;
};
if
(
item
.
status
==
3
){
var
status
=
'-转勤'
;
}
user_ul
+=
'<li class="addphone" data-id="'
+
item
.
id
+
'">'
+
item
.
id
+
'-'
+
item
.
name
+
'-'
+
item
.
phone
+
status
+
'</li>'
;
});
$
(
".user-ul"
).
html
(
user_ul
);
$
(
".user-ul"
).
show
();
}
else
{
alert
(
data
.
msg
);
}
...
...
@@ -157,6 +222,78 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
}
});
},
//将li里的值 赋给input(分佣方姓名)
addphone
:
function
(
obj
)
{
//新增客户 input赋值
var
that
=
cost
;
var
user_ht
=
$
(
obj
).
html
()
+
''
;
var
user_ht_str
=
user_ht
.
substring
(
0
,
user_ht
.
length
-
3
);
$
(
"#comit_name"
).
val
(
user_ht_str
);
$
(
".user-ul"
).
html
(
''
);
$
(
".user-ul"
).
hide
();
that
.
agent_id_phone
=
$
(
obj
).
attr
(
"data-id"
);
},
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>'
;
});
$
(
'#commit_home'
).
append
(
str
);
fn
&&
fn
();
}
else
{
alert
(
data
.
msg
)
}
}
});
},
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
);
}
else
{
alert
(
data
.
msg
)
}
}
});
},
//删除列表
delCost
:
function
()
{
$
.
ajax
({
url
:
'/index/delCost'
,
type
:
'POST'
,
async
:
true
,
data
:
{
'id'
:
cost
.
id
,
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
alert
(
data
.
msg
)
cost
.
getList
(
cost
.
pageNo
);
//重新获取列表
}
else
{
alert
(
data
.
msg
)
}
}
});
},
//获取列表
getList
:
function
(
no
){
var
that
=
cost
;
...
...
@@ -164,14 +301,13 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
var
params
=
that
.
buildSearchParams
(
0
);
params
.
pageNo
=
that
.
pageNo
;
params
.
pageSize
=
that
.
pageSize
;
$
.
get
(
'/index/refundList'
,
params
,
function
(
data
){
$
.
get
(
cost
.
url
,
params
,
function
(
data
){
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
that
.
listData
=
data
.
data
.
list
;
var
temp
=
document
.
getElementById
(
'cost_check_template_tpl'
).
innerHTML
;
var
doTtmpl
=
doT
.
template
(
temp
);
$
(
"#order_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
$
(
'#money_total'
).
text
((
data
.
data
.
total_money
-
0
>
0
)
?
(
data
.
data
.
total_money
+
"元"
):
"0元"
)
/*分页代码*/
add_page
(
data
.
data
.
total
,
no
,
that
.
pageSize
,
that
.
getList
);
...
...
@@ -189,30 +325,30 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
*/
resetAll
:
function
(){
var
that
=
cost
;
$
(
'#comit_time_start'
).
val
(
""
);
$
(
'#comit_time_end'
).
val
(
""
);
$
(
'#into_time_start'
).
val
(
""
);
$
(
'#into_time_end'
).
val
(
""
);
$
(
'#changed_type'
).
val
(
""
);
$
(
'#changed_id'
).
val
(
""
);
$
(
'#back_id'
).
val
(
""
);
$
(
'#get_id'
).
val
(
""
);
$
(
'#shoped_id'
).
val
(
""
);
$
(
'#shoped_addr'
).
val
(
""
);
$
(
'#count_time'
).
val
(
""
);
$
(
'#create_time_start'
).
val
(
""
);
$
(
'#create_time_end'
).
val
(
""
);
$
(
'#pass_time_start'
).
val
(
""
);
$
(
'#pass_time_end'
).
val
(
""
);
$
(
'#cost_type'
).
val
(
""
);
$
(
'#fee_item'
).
val
(
""
);
$
(
'#purpose'
).
val
(
""
);
$
(
'#cost_id'
).
val
(
""
);
$
(
'#commit_home'
).
val
(
""
);
$
(
'#commit_shop'
).
val
(
""
);
$
(
'#comit_name'
).
val
(
""
);
$
(
'#comit_phone'
).
val
(
""
);
$
(
'#is_type'
).
val
(
""
);
$
(
'#is_open'
).
val
(
"-1"
);
$
(
'#back_id_money'
).
val
(
""
);
that
.
agent_id_phone
=
""
;
},
//
退款 审核
//
费用报销 导出
exportExcel
:
function
()
{
var
_url
=
'/index/costListExcel?'
;
if
(
cost
.
buildSearchParams
(
1
)){
//是否要&符号
var
_url
=
cost
.
url
+
"?excel=1&"
;
}
else
{
var
_url
=
cost
.
url
+
"?excel=1"
;
}
window
.
open
(
_url
+
cost
.
buildSearchParams
(
1
));
},
/**
...
...
@@ -220,64 +356,61 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
*/
buildSearchParams
:
function
(
is_excel
){
var
that
=
cost
;
var
co
mmite_time_start
=
$
(
'#comit_time_start
'
).
val
();
var
c
ommite_time_end
=
$
(
'#comit_time_end
'
).
val
();
var
into_time_start
=
$
(
'#into_time_start
'
).
val
();
var
into_time_end
=
$
(
'#into_time_end
'
).
val
();
var
changed_type
=
$
(
'#changed_type
'
).
val
();
var
c
hanged_id
=
$
(
'#changed_id
'
).
val
();
var
back_id_money
=
$
(
'#back_id_money
'
).
val
();
var
shoped_id
=
$
(
'#shoped_id
'
).
val
();
var
shoped_addr
=
$
(
'#shoped_addr
'
).
val
();
var
co
unt_time
=
$
(
'#count_time
'
).
val
();
var
c
reate_time_start
=
$
(
'#create_time_start
'
).
val
();
var
create_time_end
=
$
(
'#create_time_end
'
).
val
();
var
pass_time_start
=
$
(
'#pass_time_start
'
).
val
();
var
pass_time_end
=
$
(
'#pass_time_end
'
).
val
();
var
c
ost_type
=
$
(
'#cost_type
'
).
val
();
var
fee_item
=
$
(
'#fee_item
'
).
val
();
var
purpose
=
$
(
'#purpose
'
).
val
();
var
cost_id
=
$
(
'#cost_id
'
).
val
();
var
commit_home
=
$
(
'#commit_home'
).
val
();
var
commit_shop
=
$
(
'#commit_shop'
).
val
();
var
comit_name
=
that
.
agent_id_phone
;
//$('#comit_name').val();
var
comit_phone
=
$
(
'#comit_phone'
).
val
();
// var choose_type = $('.btn-group').find('.btn-info').html();
var
is_selt
=
$
(
'#is_type'
).
val
();
var
get_id
=
$
(
'#get_id'
).
val
();
var
is_open
=
$
(
'#is_open'
).
val
();
var
params
=
{};
var
paramsStr
=
""
;
if
(
get_id
)
{
params
.
pay_log_id
=
get_id
;
paramsStr
+=
"
pay_log_id="
+
get_id
+
'&'
;
if
(
count_time
)
{
params
.
count_time
=
count_time
;
paramsStr
+=
"
count_time="
+
count_time
+
'&'
;
}
if
(
c
ommi
te_time_start
)
{
params
.
start_time
=
commi
te_time_start
;
paramsStr
+=
"
start_time="
+
commi
te_time_start
+
'&'
;
if
(
c
rea
te_time_start
)
{
params
.
create_time_start
=
crea
te_time_start
;
paramsStr
+=
"
create_time_start="
+
crea
te_time_start
+
'&'
;
}
if
(
c
ommi
te_time_end
)
{
params
.
end_time
=
commi
te_time_end
;
paramsStr
+=
"
end_time="
+
commi
te_time_end
+
'&'
;
if
(
c
rea
te_time_end
)
{
params
.
create_time_end
=
crea
te_time_end
;
paramsStr
+=
"
create_time_end="
+
crea
te_time_end
+
'&'
;
}
if
(
into
_time_start
)
{
params
.
income_start_time
=
into
_time_start
;
paramsStr
+=
"
income_start_time="
+
into
_time_start
+
'&'
;
if
(
pass
_time_start
)
{
params
.
pass_time_start
=
pass
_time_start
;
paramsStr
+=
"
pass_time_start="
+
pass
_time_start
+
'&'
;
}
if
(
into
_time_end
)
{
params
.
income_end_time
=
into
_time_end
;
paramsStr
+=
"
income_end_time="
+
into
_time_end
+
'&'
;
if
(
pass
_time_end
)
{
params
.
pass_time_end
=
pass
_time_end
;
paramsStr
+=
"
pass_time_end="
+
pass
_time_end
+
'&'
;
}
if
(
c
hanged
_type
)
{
params
.
type
=
c
hanged
_type
;
paramsStr
+=
"type="
+
c
hanged
_type
+
'&'
;
if
(
c
ost
_type
)
{
params
.
type
=
c
ost
_type
;
paramsStr
+=
"type="
+
c
ost
_type
+
'&'
;
}
if
(
c
hanged
_id
)
{
params
.
order_id
=
changed
_id
;
paramsStr
+=
"
order_id="
+
changed
_id
+
'&'
;
if
(
c
ost
_id
)
{
params
.
id
=
cost
_id
;
paramsStr
+=
"
id="
+
cost
_id
+
'&'
;
}
if
(
back_id_money
)
{
params
.
id
=
back_id_money
;
paramsStr
+=
"
id="
+
back_id_money
+
'&'
;
if
(
purpose
)
{
params
.
purpose
=
purpose
;
paramsStr
+=
"
purpose="
+
purpose
+
'&'
;
}
if
(
shoped_id
)
{
params
.
house_id
=
shoped_id
;
paramsStr
+=
"house_id="
+
shoped_id
+
'&'
;
if
(
fee_item
)
{
//区分分部
if
(
cost_type
==
2
){
params
.
site_id
=
fee_item
;
paramsStr
+=
"site_id="
+
fee_item
+
'&'
;
}
else
{
params
.
fee_item
=
fee_item
;
paramsStr
+=
"fee_item="
+
fee_item
+
'&'
;
}
if
(
shoped_addr
)
{
params
.
address
=
shoped_addr
;
paramsStr
+=
"address="
+
shoped_addr
+
'&'
;
}
if
(
commit_home
)
{
params
.
district_id
=
commit_home
;
...
...
@@ -291,26 +424,6 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
params
.
agent_id
=
comit_name
;
paramsStr
+=
"agent_id="
+
comit_name
+
'&'
;
}
if
(
comit_phone
)
{
if
(
comit_phone
[
0
]
==
"1"
&&
comit_phone
.
length
==
11
)
{
params
.
phone
=
comit_phone
;
paramsStr
+=
"phone="
+
comit_phone
+
'&'
;
}
else
{
alert
(
"请输入正确的手机号码"
)
}
}
if
(
is_selt
){
params
.
is_self
=
is_selt
;
paramsStr
+=
"is_self="
+
is_selt
+
'&'
;
}
if
(
is_open
>
-
1
)
{
params
.
is_open
=
is_open
;
paramsStr
+=
"is_open="
+
is_open
+
'&'
;
}
params
.
status
=
that
.
check_status
;
paramsStr
+=
"status="
+
that
.
check_status
;
if
(
is_excel
)
{
return
paramsStr
;
}
else
{
...
...
public/resource/js/costOffice.js
View file @
e565fb5d
...
...
@@ -5,14 +5,9 @@ define(['doT', 'text!temp/cost_office_template_tpl.html','text!temp/storeBinding
pageSize
:
10
,
/*每页显示多少条*/
id
:
''
,
house_id
:
''
,
house_fatherid
:
''
,
collection_del_id
:
''
,
listData
:
""
,
moneyTotal
:
""
,
agent_id_phone
:
''
,
check_status
:
1
,
deleteRefundId
:
''
,
isAdd
:
0
,
agent_id_phone
:
''
,
store_id
:
''
,
init
:
function
()
{
//初始化dot
$
(
document
.
body
).
append
(
template
+
template1
);
...
...
@@ -32,41 +27,135 @@ define(['doT', 'text!temp/cost_office_template_tpl.html','text!temp/storeBinding
$
(
document
).
on
(
'click'
,
'#reset'
,
function
(
e
){
that
.
resetAll
();
});
//编辑办公室
//获取办公室详情(点击编辑)
$
(
document
).
on
(
'click'
,
'.edit_office'
,
function
(
e
){
cost
.
id
=
$
(
this
).
attr
(
'data-id'
)
cost
.
isAdd
=
0
;
that
.
officeDetail
();
});
//点击新增 置空数据
$
(
document
).
on
(
'click'
,
'.add-office'
,
function
(
e
){
$
(
"#choose_city"
).
val
(
''
);
$
(
".officeName"
).
val
(
''
);
$
(
".officeAddr"
).
val
(
''
);
$
(
".officeRent"
).
val
(
''
);
cost
.
isAdd
=
1
;
});
//新增 编辑办公室
$
(
document
).
on
(
'click'
,
'.save_office'
,
function
(
e
){
if
(
cost
.
isAdd
==
1
){
that
.
addOffice
();
}
else
{
that
.
editOffice
();
}
});
//
编辑门店
//
点击编辑门店 获取办公室id
$
(
document
).
on
(
'click'
,
'.edit_store'
,
function
(
e
){
that
.
editStore
();
cost
.
id
=
$
(
this
).
attr
(
'data-id'
)
that
.
storeList
();
});
//点击新增门店 置空数据
$
(
document
).
delegate
(
".newStore"
,
"click"
,
function
()
{
cost
.
agent_id_phone
=
''
;
$
(
"#comit_name"
).
val
(
''
);
});
//点击保存新增门店
$
(
document
).
delegate
(
"#saveStore"
,
"click"
,
function
()
{
that
.
saveStore
();
});
//解绑门店
$
(
document
).
delegate
(
".is_jiebang"
,
"click"
,
function
()
{
cost
.
store_id
=
$
(
this
).
attr
(
'data-id'
);
that
.
delStore
();
});
//点击li 门店列表消失
$
(
document
).
delegate
(
".addphone"
,
"click"
,
function
()
{
that
.
addphone
(
this
);
});
//搜索门店名字
$
(
document
).
on
(
"input"
,
"#comit_name"
,
function
()
{
//手机号新增搜索客方
if
(
$
(
"#comit_name"
).
val
()
==
''
)
{
that
.
agent_id_phone
=
''
;
$
(
".user-ul"
).
html
(
''
);
}
else
{
that
.
search_person
();
}
});
},
//
编辑门店
editStore
:
function
()
{
//
获取门店列表
storeList
:
function
()
{
var
params
=
{};
params
.
agent_id
=
6576
;
params
.
id
=
cost
.
id
;
$
.
ajax
({
url
:
'/index/
devic
eList'
,
type
:
'
GE
T'
,
url
:
'/index/
getStor
eList'
,
type
:
'
POS
T'
,
async
:
true
,
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
var
temp
=
document
.
getElementById
(
'store_binding_tpl'
).
innerHTML
;
var
doTempl
=
doT
.
template
(
temp
);
$
(
"#agent_phone_binding"
).
html
(
doTempl
(
data
.
data
));
$
(
"#agent_phone_binding"
).
html
(
doTempl
(
data
.
data
.
list
));
/*分页代码*/
}
})
},
//获取办公室详情
officeDetail
:
function
()
{
var
params
=
{};
params
.
id
=
cost
.
id
;
$
.
ajax
({
url
:
'/index/getOfficeInfo'
,
type
:
'POST'
,
async
:
true
,
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
$
(
"#choose_city"
).
val
(
data
.
data
.
list
.
site_id
);
$
(
".officeName"
).
val
(
data
.
data
.
list
.
office_name
);
$
(
".officeAddr"
).
val
(
data
.
data
.
list
.
office_address
);
$
(
".officeRent"
).
val
(
data
.
data
.
list
.
rent
);
}
}
})
},
//编辑办公室
editOffice
:
function
()
{
var
params
=
{};
params
.
agent_id
=
6576
;
params
.
id
=
cost
.
id
;
params
.
site_id
=
$
(
"#choose_city"
).
val
();
params
.
office_name
=
$
(
".officeName"
).
val
();
params
.
office_address
=
$
(
".officeAddr"
).
val
();
params
.
rent
=
$
(
".officeRent"
).
val
();
$
.
ajax
({
url
:
'/index/editOffice'
,
type
:
'POST'
,
async
:
true
,
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
){
$
(
'.modal'
).
modal
(
"hide"
);
cost
.
getList
(
cost
.
pageNo
)
}
alert
(
data
.
msg
);
}
})
},
//新增办公室
addOffice
:
function
()
{
var
params
=
{};
params
.
site_id
=
$
(
"#choose_city"
).
val
();
params
.
office_name
=
$
(
".officeName"
).
val
();
params
.
office_address
=
$
(
".officeAddr"
).
val
();
params
.
rent
=
$
(
".officeRent"
).
val
();
$
.
ajax
({
url
:
'/index/addOffice'
,
type
:
'POST'
,
...
...
@@ -74,13 +163,55 @@ define(['doT', 'text!temp/cost_office_template_tpl.html','text!temp/storeBinding
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
var
temp
=
document
.
getElementById
(
'store_binding_tpl'
).
innerHTML
;
var
doTempl
=
doT
.
template
(
temp
);
$
(
"#agent_phone_binding"
).
html
(
doTempl
(
data
.
data
));
/*分页代码*/
if
(
data
.
code
==
200
){
$
(
'.modal'
).
modal
(
"hide"
);
cost
.
getList
(
cost
.
pageNo
)
}
alert
(
data
.
msg
)
}
})
},
//新增门店
saveStore
:
function
()
{
var
params
=
{};
params
.
store_id
=
cost
.
agent_id_phone
;
params
.
office_id
=
cost
.
id
;
$
.
ajax
({
url
:
'/index/bindStore'
,
type
:
'POST'
,
async
:
true
,
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
){
// $('.modal').modal("hide");
cost
.
storeList
();
}
alert
(
data
.
msg
)
}
})
},
//解绑门店
delStore
:
function
()
{
var
params
=
{};
params
.
store_id
=
cost
.
store_id
;
params
.
office_id
=
0
;
$
.
ajax
({
url
:
'/index/bindStore'
,
type
:
'POST'
,
async
:
true
,
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
){
// $('.modal').modal("hide");
cost
.
storeList
();
}
alert
(
data
.
msg
)
}
})
},
//获取列表
getList
:
function
(
no
){
var
that
=
cost
;
...
...
@@ -113,7 +244,39 @@ define(['doT', 'text!temp/cost_office_template_tpl.html','text!temp/storeBinding
};
},
'json'
);
},
search_person
:
function
()
{
//手机号新增客户
$
.
ajax
({
url
:
'/index/selectStore'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"store_name"
:
$
(
"#comit_name"
).
val
(),
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
user_ul
=
""
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
user_ul
+=
'<li class="addphone" data-id="'
+
item
.
id
+
'">'
+
item
.
store_name
+
',门店ID:'
+
item
.
id
+
'</li>'
;
});
$
(
".user-ul"
).
html
(
user_ul
);
$
(
".user-ul"
).
show
();
}
else
{
// alert(data.msg);
}
}
});
},
//将li里的值 赋给input(分佣方姓名)
addphone
:
function
(
obj
)
{
//新增客户 input赋值
var
that
=
cost
;
var
user_ht
=
$
(
obj
).
html
()
$
(
"#comit_name"
).
val
(
user_ht
);
$
(
".user-ul"
).
html
(
''
);
$
(
".user-ul"
).
hide
();
that
.
agent_id_phone
=
$
(
obj
).
attr
(
"data-id"
);
},
/**
* 重置查询条件
*/
...
...
public/resource/js/public.js
View file @
e565fb5d
...
...
@@ -332,6 +332,68 @@ function switchRzType(str){
return
'暂无数据'
;
}
};
function
switchFeeItem
(
str
){
//费用项目 100房租租金 101水电费 102其他费用 201总部固定成本 301分部固定成本 401同联发展基金 501家庭基金报销 502社保报销 503总经理基薪 504区域秘书基薪 505招聘成本 506区域经理基本工资平摊 507宿舍成本 508宿舍亏损 509手续费 510员工工资成本 511网络报销 512离职员工网络 513门店独有成本其他费用
switch
(
String
(
str
)){
case
'100'
:
return
'房租租金'
;
case
'101'
:
return
'水电费'
;
case
'102'
:
return
'其他费用'
;
case
'201'
:
return
'总部固定成本'
;
case
'301'
:
return
'分部固定成本'
;
case
'401'
:
return
'同联发展基金'
;
case
'501'
:
return
'家庭基金报销'
;
case
'80'
:
return
'502社保报销'
;
case
'503'
:
return
'总经理基薪'
;
case
'504'
:
return
'区域秘书基薪'
;
case
'505'
:
return
'招聘成本'
;
case
'506'
:
return
'区域经理基本工资平摊'
;
case
'507'
:
return
'宿舍成本'
;
case
'508'
:
return
'宿舍亏损'
;
case
'509'
:
return
'手续费'
;
case
'510'
:
return
'员工工资成本'
;
case
'511'
:
return
'网络报销'
;
case
'512'
:
return
'512离职员工网络'
;
case
'513'
:
return
'513门店独有成本其他费用'
;
default
:
return
'暂无数据'
;
}
};
function
switchFeeSiteId
(
str
){
//费用项目 100房租租金 101水电费 102其他费用 201总部固定成本 301分部固定成本 401同联发展基金 501家庭基金报销 502社保报销 503总经理基薪 504区域秘书基薪 505招聘成本 506区域经理基本工资平摊 507宿舍成本 508宿舍亏损 509手续费 510员工工资成本 511网络报销 512离职员工网络 513门店独有成本其他费用
switch
(
String
(
str
)){
case
'10001'
:
return
'上海市'
;
case
'10002'
:
return
'杭州市'
;
case
'10003'
:
return
'深圳市'
;
case
'10004'
:
return
'广州市'
;
case
'10005'
:
return
'北京市'
;
default
:
return
'暂无数据'
;
}
};
/**
* 如果提示框存在任何问题,可以通过注释alert这个方法,使提示框恢复到之前的默认效果
* 自定义提示框修改
...
...
public/resource/js/reportListOffice.js
View file @
e565fb5d
...
...
@@ -2082,7 +2082,7 @@ define(['doT', 'text!temp/reportList_office_template_tpl.html', 'css!style/home.
transFirstExamine
:
function
(){
$
.
ajax
({
type
:
'POST'
,
url
:
'/index/toReportListOne'
,
url
:
'/
office_
index/toReportListOne'
,
data
:
{
'bargain_id'
:
bargain
.
bargain_id
},
...
...
@@ -2116,7 +2116,7 @@ define(['doT', 'text!temp/reportList_office_template_tpl.html', 'css!style/home.
account
:
function
(){
$
.
ajax
({
type
:
'POST'
,
url
:
'/index/checkOver'
,
url
:
'/
office_
index/checkOver'
,
data
:
{
'bargain_id'
:
bargain
.
bargain_id
},
...
...
public/resource/template/accountingTable_list_template_tpl.html
View file @
e565fb5d
...
...
@@ -43,103 +43,7 @@
<
td
>
[
%=
it
[
item
][
'income_time'
]
%
]
<
/td
>
<
td
>
<
a
class
=
"btn1 btn-info record-pic"
href
=
"#modal_financial"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
data
-
typeC
=
"[%= it[item]['types'] %]"
>
资料
<
/a
>
[
%
if
(
it
[
item
][
"is_open"
]
==
0
&&
localStorage
.
getItem
(
'isFinancialDianZhang'
)
==
0
&&
it
[
item
][
"types"
]
==
1
){
%
]
[
%
if
(
it
[
item
][
"is_check"
]
==
0
)
{
%
]
<
a
class
=
"btn1 btn-info apply-open is-show-open"
href
=
"#modal_open"
data
-
pay_log_id
=
"[%= it[item]['id'] %]"
data
-
report_id
=
"[%= it[item]['report_id'] %]"
data
-
bargain_id
=
"[%= it[item]['bargain_id'] %]"
data
-
order_id
=
"[%= it[item]['order_id'] %]"
data
-
house_id
=
"[%= it[item]['house_id'] %]"
data
-
house_address
=
"[%= it[item]['house_address'] %]"
data
-
toggle
=
"modal"
>
申请开业
<
/a>
[
%
}
%
]
[
%
if
(
it
[
item
][
"is_check"
]
==
1
)
{
%
]
<
a
class
=
"btn1 btn-default is-show-open"
data
-
pay_log_id
=
"[%= it[item]['id'] %]"
data
-
report_id
=
"[%= it[item]['report_id'] %]"
data
-
bargain_id
=
"[%= it[item]['bargain_id'] %]"
data
-
order_id
=
"[%= it[item]['order_id'] %]"
data
-
house_id
=
"[%= it[item]['house_id'] %]"
data
-
house_address
=
"[%= it[item]['house_address'] %]"
>
开业审核中
<
/a>
[
%
}
%
]
[
%
}
%
]
<
a
class
=
"btn1 btn-info add-pic"
href
=
"#modal-addPic"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
data
-
typeC
=
"[%= it[item]['types'] %]"
>
编辑
<
/a
>
<
a
class
=
"btn1 btn-info money_back"
href
=
"#modal-back"
data
-
toggle
=
"modal"
data
-
typeC
=
"[%= it[item]['types'] %]"
data
-
id
=
'[%= it[item]["id"]%]'
data
-
income_time
=
'[%= it[item]['
income_time
'] %]'
data
-
real_money
=
'[%= it[item]['
real_money
'] %]'
data
-
addr
=
"[%= it[item]['house_address'] %]"
data
-
report_id
=
'[%= it[item]['
report_id
'] %]'
data
-
order_id
=
'[%= it[item]['
order_id
'] %]'
data
-
order_no
=
'[%= it[item]['
order_no
'] %]'
data
-
agent_id
=
'[%= it[item]['
agent_id
'] %]'
data
-
agent_name
=
'[%= it[item]['
current_agent_name
'] %]'
data
-
type
=
'中介费'
>
退款
<
/a
>
[
%
if
(
it
[
item
][
"types"
]
==
1
)
{
%
]
[
%
if
(
check_auth
(
'index/delPayLog'
))
{
%
]
<
a
class
=
"btn1 btn-info del-details"
href
=
"#modal-delete"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
data
-
typeC
=
"[%= it[item]['types'] %]"
>
删除
<
/a
>
[
%
}
%
]
[
%
}
else
{
%
]
[
%
if
(
check_auth
(
'office_index/delPayLog'
))
{
%
]
<
a
class
=
"btn1 btn-info del-details"
href
=
"#modal-delete"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
data
-
typeC
=
"[%= it[item]['types'] %]"
>
删除
<
/a
>
[
%
}
%
]
[
%
}
%
]
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"18"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
<!--案场费-->
<script
id=
"b_financial_daily_list_tpl"
type=
"text/template"
>
[
%
if
(
it
.
length
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
>
<
td
>
[
%
if
(
it
[
item
][
"types"
]
==
1
)
{
%
]
商铺
[
%
}
else
{
%
]
办公楼
[
%
}
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
><
a
class
=
"details-btn-liu"
href
=
"#modal_detail_liu"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["bargain_id"] %]'
data
-
typeC
=
"[%= it[item]['types'] %]"
>
[
%=
it
[
item
][
'bargain_id'
]
%
]
<
/a></
td
>
<
td
>
[
%=
it
[
item
][
'house_address'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'price'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'money'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'real_money'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'transaction_fee'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'received_money'
]
%
]
<
/td
>
<
td
>
[
%=
sw
(
it
[
item
][
'pay_type'
])
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"transfer_name"
]
!=
null
)
{
%
]
[
%=
it
[
item
][
"transfer_name"
]
%
]
[
%
}
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'current_agent_name'
]
%
]
<
/td
>
[
%
if
(
it
[
item
][
"types"
]
==
1
)
{
%
]
<
td
>
[
%=
swopen
(
it
[
item
][
'is_open'
])
%
]
<
/td
>
[
%
}
else
{
%
]
<
td
><
/td
>
[
%
}
%
]
<
td
>
[
%=
swred
(
it
[
item
][
'is_dividend'
])
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'remark'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'income_time'
]
%
]
<
/td
>
<
td
>
<
a
class
=
"btn1 btn-info record-pic"
href
=
"#modal_financial"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
data
-
typeC
=
"[%= it[item]['types'] %]"
>
资料
<
/a
>
[
%
if
(
it
[
item
][
"is_open"
]
==
0
&&
localStorage
.
getItem
(
'isFinancialDianZhang'
)
==
0
&&
it
[
item
][
"types"
]
==
1
){
%
]
[
%
if
(
it
[
item
][
"is_check"
]
==
0
)
{
%
]
<
a
class
=
"btn1 btn-info apply-open is-show-open"
href
=
"#modal_open"
data
-
pay_log_id
=
"[%= it[item]['id'] %]"
data
-
report_id
=
"[%= it[item]['report_id'] %]"
data
-
bargain_id
=
"[%= it[item]['bargain_id'] %]"
data
-
order_id
=
"[%= it[item]['order_id'] %]"
data
-
house_id
=
"[%= it[item]['house_id'] %]"
data
-
house_address
=
"[%= it[item]['house_address'] %]"
data
-
toggle
=
"modal"
>
申请开业
<
/a>
[
%
}
%
]
[
%
if
(
it
[
item
][
"is_check"
]
==
1
)
{
%
]
<
a
class
=
"btn1 btn-default is-show-open"
data
-
pay_log_id
=
"[%= it[item]['id'] %]"
data
-
report_id
=
"[%= it[item]['report_id'] %]"
data
-
bargain_id
=
"[%= it[item]['bargain_id'] %]"
data
-
order_id
=
"[%= it[item]['order_id'] %]"
data
-
house_id
=
"[%= it[item]['house_id'] %]"
data
-
house_address
=
"[%= it[item]['house_address'] %]"
>
开业审核中
<
/a>
[
%
}
%
]
[
%
}
%
]
<
a
class
=
"btn1 btn-info add-pic"
href
=
"#modal-addPic"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
data
-
typeC
=
"[%= it[item]['types'] %]"
>
编辑
<
/a
>
<
a
class
=
"btn1 btn-info money_back"
href
=
"#modal-back"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"]%]'
data
-
income_time
=
'[%= it[item]['
income_time
'] %]'
data
-
real_money
=
'[%= it[item]['
real_money
'] %]'
data
-
addr
=
"[%= it[item]['house_address'] %]"
data
-
report_id
=
'[%= it[item]['
report_id
'] %]'
data
-
order_id
=
'[%= it[item]['
order_id
'] %]'
data
-
order_no
=
'[%= it[item]['
order_no
'] %]'
data
-
agent_id
=
'[%= it[item]['
agent_id
'] %]'
data
-
agent_name
=
'[%= it[item]['
current_agent_name
'] %]'
data
-
type
=
'案场费'
>
退款
<
/a
>
[
%
if
(
it
[
item
][
"types"
]
==
1
)
{
%
]
[
%
if
(
check_auth
(
'index/delPayLog'
))
{
%
]
<
a
class
=
"btn1 btn-info del-details"
href
=
"#modal-delete"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
data
-
typeC
=
"[%= it[item]['types'] %]"
>
删除
<
/a
>
[
%
}
%
]
[
%
}
else
{
%
]
[
%
if
(
check_auth
(
'office_index/delPayLog'
))
{
%
]
<
a
class
=
"btn1 btn-info del-details"
href
=
"#modal-delete"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
data
-
typeC
=
"[%= it[item]['types'] %]"
>
删除
<
/a
>
[
%
}
%
]
[
%
}
%
]
<
a
class
=
"btn1 btn-info record-pic"
href
=
"#modal_financial"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
data
-
typeC
=
"[%= it[item]['types'] %]"
>
查看详情
<
/a
>
<
/td
>
<
/tr
>
[
%
}
%
]
...
...
@@ -149,217 +53,3 @@
<
/tr
>
[
%
}
%
]
</script>
<!--意向金-->
<script
id=
"c_financial_daily_list_tpl"
type=
"text/template"
>
[
%
if
(
it
.
length
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
>
<
td
>
[
%
if
(
it
[
item
][
"types"
]
==
1
)
{
%
]
商铺
[
%
}
else
{
%
]
办公楼
[
%
}
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<!--<
td
>
[
%=
it
[
item
][
'order_id'
]
%
]
<
/td>--
>
<
td
><
a
href
=
"#modal-time-liu"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["order_id"] %]'
data
-
typeC
=
"[%= it[item]['types'] %]"
>
[
%=
it
[
item
][
'order_id'
]
%
]
<
/a></
td
>
<
td
>
[
%=
it
[
item
][
'house_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'house_address'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'money'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'real_money'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'transaction_fee'
]
%
]
<
/td
>
<
td
>
[
%=
sw
(
it
[
item
][
'pay_type'
])
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"transfer_name"
]
!=
null
)
{
%
]
[
%=
it
[
item
][
"transfer_name"
]
%
]
[
%
}
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'current_agent_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'receipt_number'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'income_time'
]
%
]
<
/td
>
<
td
>
<
a
class
=
"btn1 btn-info record-pic"
href
=
"#modal_financial"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
data
-
typeC
=
"[%= it[item]['types'] %]"
>
资料
<
/a
>
<
a
class
=
"btn1 btn-info add-pic"
href
=
"#modal-addPic"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
data
-
typeC
=
"[%= it[item]['types'] %]"
>
编辑
<
/a
>
<
a
class
=
"btn1 btn-info money_change"
href
=
"#modal-linetime"
data
-
toggle
=
"modal"
data
-
type
=
'意向金'
data
-
id
=
'[%= it[item]["id"]%]'
data
-
receipt_number
=
'[%= it[item]['
receipt_number
'] %]'
data
-
house_number
=
'[%= it[item]['
house_number
'] %]'
data
-
transfer_name
=
'[%= it[item]['
transfer_name
'] %]'
data
-
order_id
=
'[%= it[item]['
order_id
'] %]'
data
-
type_num
=
'[%= it[item]['
type_num
'] %]'
data
-
income_time
=
'[%= it[item]['
income_time
'] %]'
data
-
pay_type
=
'[%= it[item]['
pay_type
'] %]'
data
-
typeC
=
"[%= it[item]['types'] %]"
>
调整
<
/a
>
<
a
class
=
"btn1 btn-info money_back"
href
=
"#modal-back"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"]%]'
data
-
income_time
=
'[%= it[item]['
income_time
'] %]'
data
-
real_money
=
'[%= it[item]['
real_money
'] %]'
data
-
addr
=
"[%= it[item]['house_address'] %]"
data
-
report_id
=
'[%= it[item]['
report_id
'] %]'
data
-
order_id
=
'[%= it[item]['
order_id
'] %]'
data
-
order_no
=
'[%= it[item]['
order_no
'] %]'
data
-
agent_id
=
'[%= it[item]['
agent_id
'] %]'
data
-
agent_name
=
'[%= it[item]['
current_agent_name
'] %]'
data
-
type
=
'意向金'
data
-
typeC
=
"[%= it[item]['types'] %]"
>
退款
<
/a
>
[
%
if
(
it
[
item
][
"types"
]
==
1
)
{
%
]
[
%
if
(
check_auth
(
'index/delPayLog'
))
{
%
]
<
a
class
=
"btn1 btn-info del-details"
href
=
"#modal-delete"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
data
-
typeC
=
"[%= it[item]['types'] %]"
>
删除
<
/a
>
[
%
}
%
]
[
%
}
else
{
%
]
[
%
if
(
check_auth
(
'office_index/delPayLog'
))
{
%
]
<
a
class
=
"btn1 btn-info del-details"
href
=
"#modal-delete"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
data
-
typeC
=
"[%= it[item]['types'] %]"
>
删除
<
/a
>
[
%
}
%
]
[
%
}
%
]
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"15"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
<!--保管金-->
<script
id=
"d_financial_daily_list_tpl"
type=
"text/template"
>
[
%
if
(
it
.
length
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
>
<
td
>
[
%
if
(
it
[
item
][
"types"
]
==
1
)
{
%
]
商铺
[
%
}
else
{
%
]
办公楼
[
%
}
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<!--<
td
>
[
%=
it
[
item
][
'order_id'
]
%
]
<
/td>--
>
<
td
><
a
href
=
"#modal-time-liu"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["order_id"] %]'
data
-
typeC
=
"[%= it[item]['types'] %]"
>
[
%=
it
[
item
][
'order_id'
]
%
]
<
/a></
td
>
<
td
>
[
%=
it
[
item
][
'house_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'house_address'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'money'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'real_money'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'transaction_fee'
]
%
]
<
/td
>
<
td
>
[
%=
sw
(
it
[
item
][
'pay_type'
])
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"transfer_name"
]
!=
null
)
{
%
]
[
%=
it
[
item
][
"transfer_name"
]
%
]
[
%
}
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'current_agent_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'receipt_number'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'income_time'
]
%
]
<
/td
>
<
td
>
<
a
class
=
"btn1 btn-info record-pic"
href
=
"#modal_financial"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
data
-
typeC
=
"[%= it[item]['types'] %]"
>
资料
<
/a
>
<
a
class
=
"btn1 btn-info add-pic"
href
=
"#modal-addPic"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
data
-
typeC
=
"[%= it[item]['types'] %]"
>
编辑
<
/a>
<
a
class
=
"btn1 btn-info money_change"
href
=
"#modal-linetime"
data
-
toggle
=
"modal"
data
-
type
=
'保管金'
data
-
id
=
'[%= it[item]["id"]%]'
data
-
receipt_number
=
'[%= it[item]['
receipt_number
'] %]'
data
-
house_number
=
'[%= it[item]['
house_number
'] %]'
data
-
transfer_name
=
'[%= it[item]['
transfer_name
'] %]'
data
-
order_id
=
'[%= it[item]['
order_id
'] %]'
data
-
type_num
=
'[%= it[item]['
type_num
'] %]'
data
-
income_time
=
'[%= it[item]['
income_time
'] %]'
data
-
pay_type
=
'[%= it[item]['
pay_type
'] %]'
data
-
typeC
=
"[%= it[item]['types'] %]"
>
调整
<
/a
>
<
a
class
=
"btn1 btn-info money_back"
href
=
"#modal-back"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"]%]'
data
-
income_time
=
'[%= it[item]['
income_time
'] %]'
data
-
real_money
=
'[%= it[item]['
real_money
'] %]'
data
-
addr
=
"[%= it[item]['house_address'] %]"
data
-
report_id
=
'[%= it[item]['
report_id
'] %]'
data
-
order_id
=
'[%= it[item]['
order_id
'] %]'
data
-
order_no
=
'[%= it[item]['
order_no
'] %]'
data
-
agent_id
=
'[%= it[item]['
agent_id
'] %]'
data
-
agent_name
=
'[%= it[item]['
current_agent_name
'] %]'
data
-
type
=
'保管金'
data
-
typeC
=
"[%= it[item]['types'] %]"
>
退款
<
/a
>
[
%
if
(
it
[
item
][
"types"
]
==
1
)
{
%
]
[
%
if
(
check_auth
(
'index/delPayLog'
))
{
%
]
<
a
class
=
"btn1 btn-info del-details"
href
=
"#modal-delete"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
data
-
typeC
=
"[%= it[item]['types'] %]"
>
删除
<
/a
>
[
%
}
%
]
[
%
}
else
{
%
]
[
%
if
(
check_auth
(
'office_index/delPayLog'
))
{
%
]
<
a
class
=
"btn1 btn-info del-details"
href
=
"#modal-delete"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
data
-
typeC
=
"[%= it[item]['types'] %]"
>
删除
<
/a
>
[
%
}
%
]
[
%
}
%
]
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"15"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
<!--调整出账-->
<script
id=
"e_financial_daily_list_tpl"
type=
"text/template"
>
[
%
if
(
it
.
length
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
>
<
td
>
[
%
if
(
it
[
item
][
"types"
]
==
1
)
{
%
]
商铺
[
%
}
else
{
%
]
办公楼
[
%
}
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'old_paylog_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'house_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'house_address'
]
%
]
<
/td
>
<
td
>
[
%=
swtype
(
it
[
item
][
'type'
])
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'income_time'
]
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"receipt_number"
]
!=
null
)
{
%
]
[
%=
it
[
item
][
"receipt_number"
]
%
]
[
%
}
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'money'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'pay_log_id'
]
%
]
<
/td
>
<
td
>
<
a
class
=
"btn1 btn-info add-pic-liu"
href
=
"#modal-addPicLiu"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
data
-
typeC
=
"[%= it[item]['types'] %]"
>
详情
<
/a
>
<
a
class
=
"btn1 btn-info record-pic"
href
=
"#modal_financial"
data
-
recordid
=
"[%= it[item]['pay_log_id'] %]"
data
-
toggle
=
"modal"
data
-
typeC
=
"[%= it[item]['types'] %]"
>
资料
<
/a
>
<
a
class
=
"btn1 btn-info modal-adjust"
href
=
"#modal_adjust"
data
-
id
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
data
-
typeC
=
"[%= it[item]['types'] %]"
>
撤销调整
<
/a
>
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"15"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
<!--审核记录-->
<script
id=
"f_financial_daily_list_tpl"
type=
"text/template"
>
[
%
if
(
it
&&
it
.
length
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
>
<!--
深圳
-->
<
td
class
=
"shenzhen"
>
[
%=
it
[
item
][
'alipay'
]
%
]
<
/td
>
<
td
class
=
"shenzhen"
>
[
%=
it
[
item
][
'tenpay'
]
%
]
<
/td
>
<
td
class
=
"shenzhen"
>
[
%=
it
[
item
][
'bank_card'
]
%
]
<
/td
>
<
td
class
=
"shenzhen"
>
[
%=
it
[
item
][
'bank_card_yun'
]
%
]
<
/td
>
<
td
class
=
"shenzhen"
>
[
%=
it
[
item
][
'pos'
]
%
]
<
/td
>
<
td
class
=
"shenzhen"
>
[
%=
it
[
item
][
'family_pay'
]
%
]
<
/td
>
<
td
class
=
"shenzhen"
>
[
%=
it
[
item
][
'alipay_3'
]
%
]
<
/td
>
<
td
class
=
"shenzhen"
>
[
%=
it
[
item
][
'tenpay_3'
]
%
]
<
/td
>
<
td
class
=
"shenzhen"
>
[
%=
it
[
item
][
'bank_card_chen'
]
%
]
<
/td
>
<!--
上海
-->
<
td
class
=
"shanghai"
>
[
%=
it
[
item
][
'alipay'
]
%
]
<
/td
>
<
td
class
=
"shanghai"
>
[
%=
it
[
item
][
'alipay_2'
]
%
]
<
/td
>
<
td
class
=
"shanghai"
>
[
%=
it
[
item
][
'tenpay'
]
%
]
<
/td
>
<
td
class
=
"shanghai"
>
[
%=
it
[
item
][
'tenpay_2'
]
%
]
<
/td
>
<
td
class
=
"shanghai"
>
[
%=
it
[
item
][
'realty_pay'
]
%
]
<
/td
>
<
td
class
=
"shanghai"
>
[
%=
it
[
item
][
'family_pay'
]
%
]
<
/td
>
<
td
class
=
"shanghai"
>
[
%=
it
[
item
][
'private_bank'
]
%
]
<
/td
>
<
td
class
=
"shanghai"
>
[
%=
it
[
item
][
'cash'
]
%
]
<
/td
>
<
td
class
=
"shanghai"
>
[
%=
it
[
item
][
'pos'
]
%
]
<
/td
>
<
td
class
=
"shanghai"
>
[
%=
it
[
item
][
'other_bank'
]
%
]
<
/td
>
<
td
class
=
"shanghai"
>
[
%=
it
[
item
][
'bank_card'
]
%
]
<
/td
>
<
td
class
=
"shanghai"
>
[
%=
it
[
item
][
'bank_card_new'
]
%
]
<
/td
>
<
td
class
=
"shanghai"
>
[
%=
it
[
item
][
'bank_card_lin'
]
%
]
<
/td
>
<
td
class
=
"shanghai"
>
[
%=
it
[
item
][
'alipay_3'
]
%
]
<
/td
>
<
td
class
=
"shanghai"
>
[
%=
it
[
item
][
'tenpay_3'
]
%
]
<
/td
>
<
td
class
=
"shanghai"
>
[
%=
it
[
item
][
'bank_card_chen'
]
%
]
<
/td
>
<!--
杭州
-->
<
td
class
=
"hangzhou"
>
[
%=
it
[
item
][
'alipay'
]
%
]
<
/td
>
<
td
class
=
"hangzhou"
>
[
%=
it
[
item
][
'alipay_2'
]
%
]
<
/td
>
<
td
class
=
"hangzhou"
>
[
%=
it
[
item
][
'tenpay'
]
%
]
<
/td
>
<
td
class
=
"hangzhou"
>
[
%=
it
[
item
][
'tenpay_2'
]
%
]
<
/td
>
<
td
class
=
"hangzhou"
>
[
%=
it
[
item
][
'realty_pay'
]
%
]
<
/td
>
<
td
class
=
"hangzhou"
>
[
%=
it
[
item
][
'family_pay'
]
%
]
<
/td
>
<
td
class
=
"hangzhou"
>
[
%=
it
[
item
][
'private_bank'
]
%
]
<
/td
>
<
td
class
=
"hangzhou"
>
[
%=
it
[
item
][
'cash'
]
%
]
<
/td
>
<
td
class
=
"hangzhou"
>
[
%=
it
[
item
][
'pos'
]
%
]
<
/td
>
<
td
class
=
"hangzhou"
>
[
%=
it
[
item
][
'other_bank'
]
%
]
<
/td
>
<
td
class
=
"hangzhou"
>
[
%=
it
[
item
][
'bank_card'
]
%
]
<
/td
>
<
td
class
=
"hangzhou"
>
[
%=
it
[
item
][
'bank_card_lin'
]
%
]
<
/td
>
<
td
class
=
"hangzhou"
>
[
%=
it
[
item
][
'alipay_3'
]
%
]
<
/td
>
<
td
class
=
"hangzhou"
>
[
%=
it
[
item
][
'tenpay_3'
]
%
]
<
/td
>
<
td
class
=
"hangzhou"
>
[
%=
it
[
item
][
'bank_card_chen'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'operation_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'update_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'remark'
]
%
]
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"15"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
public/resource/template/cost_check_template_tpl.html
View file @
e565fb5d
<script
id=
"cost_check_template_tpl"
type=
"text/template"
>
[
%
if
(
it
)
{
%
]
[
%
if
(
it
&&
it
.
length
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
[
%
if
(
it
[
item
][
'status'
]
==
0
)
{
%
]
<
td
>
审核中
<
/td
>
[
%
}
else
if
(
it
[
item
][
'status'
]
==
1
)
{
%
]
<
td
>
审核中
<
/td
>
<
td
>
[
%=
it
[
item
][
'count_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'agent_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'total_fee'
]
%
]
<
/td
>
[
%
if
(
it
[
item
][
'type'
]
==
1
)
{
%
]
<
td
>
总部成本
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
2
)
{
%
]
<
td
>
分部成本
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
3
)
{
%
]
<
td
>
门店独有成本
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
0
)
{
%
]
<
td
>
办公室成本
<
/td
>
[
%
}
else
{
%
]
<
td
>--<
/td
>
[
%
}
%
]
[
%
if
(
it
[
item
][
'type'
]
==
2
)
{
%
]
<
td
>
[
%=
switchFeeSiteId
(
it
[
item
][
'site_id'
])
%
]
<
/td
>
[
%
}
else
{
%
]
<
td
>
[
%=
switchFeeItem
(
it
[
item
][
'fee_item'
])
%
]
<
/td
>
[
%
}
%
]
<
td
>
[
%=
it
[
item
][
'purpose'
]
%
]
<
/td
>
[
%
if
(
it
[
item
][
'status'
]
==
1
)
{
%
]
<
td
>
总监通过
<
/td
>
[
%
}
else
if
(
it
[
item
][
'status'
]
==
2
)
{
%
]
<
td
>
退款成功
<
/td
>
<
td
>
一审通过
<
/td
>
[
%
}
else
if
(
it
[
item
][
'status'
]
==
3
)
{
%
]
<
td
>
已审核
<
/td
>
<
td
>
二审通过
<
/td
>
[
%
}
else
if
(
it
[
item
][
'status'
]
==
4
)
{
%
]
<
td
>
驳回
<
/td
>
<
td
>
三审通过
<
/td
>
[
%
}
else
if
(
it
[
item
][
'status'
]
==
0
)
{
%
]
<
td
>
申请中
<
/td
>
[
%
}
else
{
%
]
<
td
>--<
/td
>
[
%
}
%
]
<
td
>
[
%=
it
[
item
][
'order_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'pay_log_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'refund_money'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'income_time'
]
%
]
<
/td
>
<!--<
td
>
[
%=
it
[
item
][
'type'
]
%
]
<
/td>--
>
[
%
if
(
it
[
item
][
'type'
]
==
1
)
{
%
]
<
td
>
意向金转定
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
2
)
{
%
]
<
td
>
退保管金
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
3
)
{
%
]
<
td
>
保管金转定
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
4
)
{
%
]
<
td
>
退中介费
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
5
)
{
%
]
<
td
>
退案场费
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
0
)
{
%
]
<
td
>
退意向金
<
/td
>
[
%
if
(
it
[
item
][
'source'
]
==
1
)
{
%
]
<
td
>
excel
导入
<
/td
>
[
%
}
else
if
(
it
[
item
][
'source'
]
==
2
)
{
%
]
<
td
><
/td
>
[
%
}
else
if
(
it
[
item
][
'source'
]
==
3
)
{
%
]
<
td
><
/td
>
[
%
}
else
if
(
it
[
item
][
'source'
]
==
0
)
{
%
]
<
td
>
app
申请
<
/td
>
[
%
}
else
{
%
]
<
td
>--<
/td
>
[
%
}
%
]
<
td
>
[
%=
it
[
item
][
'agent_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'store_name'
]
%
]
<
/td
>
<
td
>
<
a
class
=
"btn1 btn-success add-pic"
href
=
"#modal-addPic"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
审核
<
/a
>
<
a
class
=
"btn1 btn-success is_del"
href
=
"#modal-del"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
删除
<
/a
>
<
a
class
=
"btn1 btn-success is_del"
href
=
"#modal-del
ete
"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
删除
<
/a
>
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"
8
"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
td
colspan
=
"
15
"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
public/resource/template/cost_office_template_tpl.html
View file @
e565fb5d
...
...
@@ -6,7 +6,7 @@
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'office_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'office_address'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
pay_log_id
'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
rent
'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'store_num'
]
%
]
<
/td
>
<
td
>
...
...
public/resource/template/storeBinding_template_tpl.html
View file @
e565fb5d
...
...
@@ -2,28 +2,13 @@
[
%
if
(
it
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
td
>
[
%
if
(
it
[
item
][
"is_pc"
]
==
1
)
{
%
]
电脑端
[
%
}
else
if
(
it
[
item
][
"is_pc"
]
==
0
)
{
%
]
手机端
[
%
}
else
if
(
it
[
item
][
"is_pc"
]
==
2
){
%
]
Windows
客户端
[
%
}
else
{
%
]
其他
[
%
}
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"model"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"create_time"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"create_time"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"id"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"store_name"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"people_num"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"people_list"
]
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"is_forbidden"
]
==
0
)
{
%
]
<
a
class
=
"btn1 btn-default is_show2"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
解绑
<
/a
>
[
%
}
else
if
(
it
[
item
][
"is_forbidden"
]
==
1
)
{
%
]
<
a
class
=
"btn1 btn-info is_show2"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
允许
<
/a
>
[
%
}
else
{
%
]
<
a
class
=
"btn1 btn-default"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
离职
<
/a
>
[
%
}
%
]
<!--<
a
class
=
"btn1 btn-info review-images"
href
=
"#modal-time"
data
-
toggle
=
"modal"
data
-
img
=
'[%= it[item]["scene_photo"] %]'
>
允许
<
/a>--
>
<
a
class
=
"btn1 btn-info is_jiebang"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
解绑
<
/a
>
<
/td
>
<
/tr
>
[
%
}
%
]
...
...
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