Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
weixiuhui
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
蒋林
weixiuhui
Commits
94e16b4e
Commit
94e16b4e
authored
Nov 26, 2016
by
蒋林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
海信-订单明细
parent
498fc947
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
324 additions
and
85 deletions
+324
-85
Hisense.php
application/controllers/test/Hisense.php
+1
-1
Source.php
application/libraries/Source/Source.php
+29
-0
SourceChigo.php
application/libraries/Source/SourceChigo.php
+52
-52
SourceHisense.php
application/libraries/Source/SourceHisense.php
+226
-16
SourceSuning.php
application/libraries/Source/SourceSuning.php
+16
-16
No files found.
application/controllers/test/Hisense.php
View file @
94e16b4e
...
@@ -39,7 +39,7 @@ class Hisense extends BaseController
...
@@ -39,7 +39,7 @@ class Hisense extends BaseController
{
{
$sobj
=
$this
->
sourceObj
();
$sobj
=
$this
->
sourceObj
();
$res
=
$sobj
->
InformationFeedback
List
(
''
);
$res
=
$sobj
->
InformationFeedback
Detail
(
"CC16112302769017"
);
print_r
(
$res
);
print_r
(
$res
);
}
}
...
...
application/libraries/Source/Source.php
View file @
94e16b4e
...
@@ -222,4 +222,33 @@ class Source
...
@@ -222,4 +222,33 @@ class Source
return
$result
;
return
$result
;
}
}
/**
* select 数据处理
* @param $html
* @return array
*/
protected
function
ConditionSelect
(
$html
)
{
preg_match_all
(
'/<select[^>]*name="([^"]+)"[^>]*>[\s\S]+?<\/select>/'
,
$html
,
$select
);
if
(
!
isset
(
$select
[
1
]))
{
return_msg
(
false
,
'没有Select数据'
);
}
$result
=
[];
foreach
(
$select
[
0
]
as
$k
=>
$v
)
{
preg_match_all
(
'/<option[^>]+value="([^"]*)"[^>]*>([\s\S]*?)<\/option>/'
,
$v
,
$option
);
if
(
isset
(
$option
[
1
]))
{
foreach
(
$option
[
1
]
as
$kk
=>
$vv
)
{
$result
[
$select
[
1
][
$k
]][
'key'
][
$kk
]
=
$vv
;
$result
[
$select
[
1
][
$k
]][
'val'
][
$kk
]
=
$option
[
2
][
$kk
];
}
}
}
return
$result
;
}
}
}
\ No newline at end of file
application/libraries/Source/SourceChigo.php
View file @
94e16b4e
...
@@ -45,13 +45,13 @@ class SourceChigo extends Source
...
@@ -45,13 +45,13 @@ class SourceChigo extends Source
{
{
$post
=
[
$post
=
[
'adat_begin'
=>
$condition
[
'adat_begin'
]
,
//开始时间 2011-11-11
'adat_begin'
=>
isset
(
$condition
[
'adat_begin'
])
?
$condition
[
'adat_begin'
]
:
''
,
//开始时间 2011-11-11
'adat_end'
=>
$condition
[
'adat_end'
]
,
//结束时间
'adat_end'
=>
isset
(
$condition
[
'adat_end'
])
?
$condition
[
'adat_end'
]
:
''
,
//结束时间
'mobile'
=>
$condition
[
'mobile'
]
,
//手机
'mobile'
=>
isset
(
$condition
[
'mobile'
])
?
$condition
[
'mobile'
]
:
''
,
//手机
'phone'
=>
$condition
[
'phone'
]
,
//电话
'phone'
=>
isset
(
$condition
[
'phone'
])
?
$condition
[
'phone'
]
:
''
,
//电话
'read_state'
=>
$condition
[
'read_state'
]
,
//查阅状态: Y:已查阅; N:未查阅
'read_state'
=>
isset
(
$condition
[
'read_state'
])
?
$condition
[
'read_state'
]
:
''
,
//查阅状态: Y:已查阅; N:未查阅
'proc_state'
=>
'1'
,
'proc_state'
=>
'1'
,
'ano'
=>
$condition
[
'ano'
]
,
//受理单号
'ano'
=>
isset
(
$condition
[
'ano'
])
?
$condition
[
'ano'
]
:
''
,
//受理单号
'check_state'
=>
'N'
,
'check_state'
=>
'N'
,
];
];
...
@@ -67,15 +67,15 @@ class SourceChigo extends Source
...
@@ -67,15 +67,15 @@ class SourceChigo extends Source
public
function
VisitingService
(
$condition
)
public
function
VisitingService
(
$condition
)
{
{
$post
=
[
$post
=
[
'adat_begin'
=>
$condition
[
'adat_begin'
]
,
//开始时间 2011-11-11
'adat_begin'
=>
isset
(
$condition
[
'adat_begin'
])
?
$condition
[
'adat_begin'
]
:
''
,
//开始时间 2011-11-11
'adat_end'
=>
$condition
[
'adat_end'
]
,
//结束时间
'adat_end'
=>
isset
(
$condition
[
'adat_end'
])
?
$condition
[
'adat_end'
]
:
''
,
//结束时间
'mobile'
=>
$condition
[
'mobile'
]
,
//手机
'mobile'
=>
isset
(
$condition
[
'mobile'
])
?
$condition
[
'mobile'
]
:
''
,
//手机
'phone'
=>
$condition
[
'phone'
]
,
//电话
'phone'
=>
isset
(
$condition
[
'phone'
])
?
$condition
[
'phone'
]
:
''
,
//电话
'proc_state'
=>
$condition
[
'proc_state'
]
,
//处理状态: 所有:"" 0:中心派工; 1:上门服务; 2:完成;
'proc_state'
=>
isset
(
$condition
[
'proc_state'
])
?
$condition
[
'proc_state'
]
:
''
,
//处理状态: 所有:"" 0:中心派工; 1:上门服务; 2:完成;
'ano'
=>
$condition
[
'ano'
]
,
//受理单号
'ano'
=>
isset
(
$condition
[
'ano'
])
?
$condition
[
'ano'
]
:
''
,
//受理单号
'check_state'
=>
'Y'
,
'check_state'
=>
'Y'
,
'ctype'
=>
$condition
[
'ctype'
]
,
//类型: 所有:"" ; 家用; 制冷设备; 商用;
'ctype'
=>
isset
(
$condition
[
'ctype'
])
?
$condition
[
'ctype'
]
:
''
,
//类型: 所有:"" ; 家用; 制冷设备; 商用;
'bxcd'
=>
$condition
[
'bxcd'
]
,
//报修催单: 1:选中; 0:未选中
'bxcd'
=>
isset
(
$condition
[
'bxcd'
])
?
$condition
[
'bxcd'
]
:
''
,
//报修催单: 1:选中; 0:未选中
];
];
//转码
//转码
...
@@ -93,14 +93,14 @@ class SourceChigo extends Source
...
@@ -93,14 +93,14 @@ class SourceChigo extends Source
public
function
QueryInstallBill
(
$condition
)
public
function
QueryInstallBill
(
$condition
)
{
{
$post
=
[
$post
=
[
'input_date_begin'
=>
$condition
[
'input_date_begin'
]
,
//输单日期 2011-11-11
'input_date_begin'
=>
isset
(
$condition
[
'input_date_begin'
])
?
$condition
[
'input_date_begin'
]
:
''
,
//输单日期 2011-11-11
'input_date_end'
=>
$condition
[
'input_date_end'
]
,
'input_date_end'
=>
isset
(
$condition
[
'input_date_end'
])
?
$condition
[
'input_date_end'
]
:
''
,
'telephone_no'
=>
''
,
//用户电话
'telephone_no'
=>
''
,
//用户电话
'node_id'
=>
$condition
[
'node_id'
]
,
//服务商编号, PickupAllSerNodeForUser->node_id
'node_id'
=>
isset
(
$condition
[
'node_id'
])
?
$condition
[
'node_id'
]
:
''
,
//服务商编号, PickupAllSerNodeForUser->node_id
'install_date_begin'
=>
$condition
[
'install_date_begin'
]
,
//安装日期 2011-11-11
'install_date_begin'
=>
isset
(
$condition
[
'install_date_begin'
])
?
$condition
[
'install_date_begin'
]
:
''
,
//安装日期 2011-11-11
'install_date_end'
=>
$condition
[
'install_date_end'
]
,
'install_date_end'
=>
isset
(
$condition
[
'install_date_end'
])
?
$condition
[
'install_date_end'
]
:
''
,
'customer_name'
=>
$condition
[
'customer_name'
]
,
//用户名称
'customer_name'
=>
isset
(
$condition
[
'customer_name'
])
?
$condition
[
'customer_name'
]
:
''
,
//用户名称
'warranty'
=>
$condition
[
'warranty'
]
,
//保修卡号
'warranty'
=>
isset
(
$condition
[
'warranty'
])
?
$condition
[
'warranty'
]
:
''
,
//保修卡号
];
];
//转码
//转码
...
@@ -118,10 +118,10 @@ class SourceChigo extends Source
...
@@ -118,10 +118,10 @@ class SourceChigo extends Source
public
function
BrowseCloseAccount
(
$condition
)
public
function
BrowseCloseAccount
(
$condition
)
{
{
$post
=
[
$post
=
[
'periodb'
=>
$condition
[
'periodb'
]
,
//'201610'
'periodb'
=>
isset
(
$condition
[
'periodb'
])
?
$condition
[
'periodb'
]
:
''
,
//'201610'
'periode'
=>
$condition
[
'periode'
]
,
'periode'
=>
isset
(
$condition
[
'periode'
])
?
$condition
[
'periode'
]
:
''
,
'ser_node_id'
=>
$condition
[
'ser_node_id'
]
,
//服务商, PickupAllSerNodeForUser->node_id
'ser_node_id'
=>
isset
(
$condition
[
'ser_node_id'
])
?
$condition
[
'ser_node_id'
]
:
''
,
//服务商, PickupAllSerNodeForUser->node_id
'center_code'
=>
$condition
[
'center_code'
]
,
//中心, PickupAllForUser->center_code
'center_code'
=>
isset
(
$condition
[
'center_code'
])
?
$condition
[
'center_code'
]
:
''
,
//中心, PickupAllForUser->center_code
'ins_rep'
=>
'I'
,
'ins_rep'
=>
'I'
,
'wxqx'
=>
''
,
'wxqx'
=>
''
,
];
];
...
@@ -138,12 +138,12 @@ class SourceChigo extends Source
...
@@ -138,12 +138,12 @@ class SourceChigo extends Source
public
function
QueryRepairBill
(
$condition
)
public
function
QueryRepairBill
(
$condition
)
{
{
$post
=
[
$post
=
[
'input_date_begin'
=>
$condition
[
'input_date_begin'
]
,
//输单日期: 2016-10-01
'input_date_begin'
=>
isset
(
$condition
[
'input_date_begin'
])
?
$condition
[
'input_date_begin'
]
:
''
,
//输单日期: 2016-10-01
'input_date_end'
=>
$condition
[
'input_date_end'
]
,
'input_date_end'
=>
isset
(
$condition
[
'input_date_end'
])
?
$condition
[
'input_date_end'
]
:
''
,
'node_id'
=>
$condition
[
'node_id'
]
,
//服务商, PickupAllSerNodeForUser->node_id
'node_id'
=>
isset
(
$condition
[
'node_id'
])
?
$condition
[
'node_id'
]
:
''
,
//服务商, PickupAllSerNodeForUser->node_id
'repair_date_begin'
=>
$condition
[
'repair_date_begin'
]
,
//维修日期: 2016-10-01
'repair_date_begin'
=>
isset
(
$condition
[
'repair_date_begin'
])
?
$condition
[
'repair_date_begin'
]
:
''
,
//维修日期: 2016-10-01
'repair_date_end'
=>
$condition
[
'repair_date_end'
]
,
'repair_date_end'
=>
isset
(
$condition
[
'repair_date_end'
])
?
$condition
[
'repair_date_end'
]
:
''
,
'repair_no'
=>
$condition
[
'repair_no'
]
,
//维修单号: 201609235
'repair_no'
=>
isset
(
$condition
[
'repair_no'
])
?
$condition
[
'repair_no'
]
:
''
,
//维修单号: 201609235
'machine_model'
=>
'<10'
,
'machine_model'
=>
'<10'
,
];
];
...
@@ -159,15 +159,15 @@ class SourceChigo extends Source
...
@@ -159,15 +159,15 @@ class SourceChigo extends Source
public
function
QueryInstallPatch
(
$condition
)
public
function
QueryInstallPatch
(
$condition
)
{
{
$post
=
[
$post
=
[
'input_date_begin'
=>
$condition
[
'input_date_begin'
]
,
//输单日期 2016-10-01
'input_date_begin'
=>
isset
(
$condition
[
'input_date_begin'
])
?
$condition
[
'input_date_begin'
]
:
''
,
//输单日期 2016-10-01
'input_date_end'
=>
$condition
[
'input_date_end'
]
,
'input_date_end'
=>
isset
(
$condition
[
'input_date_end'
])
?
$condition
[
'input_date_end'
]
:
''
,
'telephone_no'
=>
$condition
[
'telephone_no'
]
,
//用户电话: 手机号码
'telephone_no'
=>
isset
(
$condition
[
'telephone_no'
])
?
$condition
[
'telephone_no'
]
:
''
,
//用户电话: 手机号码
'node_id'
=>
$condition
[
'node_id'
]
,
//服务商, PickupAllSerNodeForUser->node_id
'node_id'
=>
isset
(
$condition
[
'node_id'
])
?
$condition
[
'node_id'
]
:
''
,
//服务商, PickupAllSerNodeForUser->node_id
'install_date_begin'
=>
$condition
[
'install_date_begin'
]
,
//安装日期 2016-10-01
'install_date_begin'
=>
isset
(
$condition
[
'install_date_begin'
])
?
$condition
[
'install_date_begin'
]
:
''
,
//安装日期 2016-10-01
'install_date_end'
=>
$condition
[
'install_date_end'
]
,
'install_date_end'
=>
isset
(
$condition
[
'install_date_end'
])
?
$condition
[
'install_date_end'
]
:
''
,
'customer_name'
=>
$condition
[
'customer_name'
]
,
//用户姓名
'customer_name'
=>
isset
(
$condition
[
'customer_name'
])
?
$condition
[
'customer_name'
]
:
''
,
//用户姓名
'warranty'
=>
$condition
[
'warranty'
]
,
//保修卡号
'warranty'
=>
isset
(
$condition
[
'warranty'
])
?
$condition
[
'warranty'
]
:
''
,
//保修卡号
'barcode'
=>
$condition
[
'barcode'
]
,
//条码
'barcode'
=>
isset
(
$condition
[
'barcode'
])
?
$condition
[
'barcode'
]
:
''
,
//条码
];
];
//转码
//转码
...
@@ -185,12 +185,12 @@ class SourceChigo extends Source
...
@@ -185,12 +185,12 @@ class SourceChigo extends Source
public
function
QueryOverdateBill
(
$condition
)
public
function
QueryOverdateBill
(
$condition
)
{
{
$post
=
[
$post
=
[
'input_date_begin'
=>
$condition
[
'input_date_begin'
]
,
//输单日期: 2016-10-01
'input_date_begin'
=>
isset
(
$condition
[
'input_date_begin'
])
?
$condition
[
'input_date_begin'
]
:
''
,
//输单日期: 2016-10-01
'input_date_end'
=>
$condition
[
'input_date_end'
]
,
'input_date_end'
=>
isset
(
$condition
[
'input_date_end'
])
?
$condition
[
'input_date_end'
]
:
''
,
'node_id'
=>
$condition
[
'node_id'
]
,
//服务商, PickupAllSerNodeForUser->node_id
'node_id'
=>
isset
(
$condition
[
'node_id'
])
?
$condition
[
'node_id'
]
:
''
,
//服务商, PickupAllSerNodeForUser->node_id
'repair_date_begin'
=>
$condition
[
'repair_date_begin'
]
,
//维修日期: 2016-10-01
'repair_date_begin'
=>
isset
(
$condition
[
'repair_date_begin'
])
?
$condition
[
'repair_date_begin'
]
:
''
,
//维修日期: 2016-10-01
'repair_date_end'
=>
$condition
[
'repair_date_end'
]
,
'repair_date_end'
=>
isset
(
$condition
[
'repair_date_end'
])
?
$condition
[
'repair_date_end'
]
:
''
,
'repair_no'
=>
$condition
[
'repair_no'
]
,
//维修单号: 201609235
'repair_no'
=>
isset
(
$condition
[
'repair_no'
])
?
$condition
[
'repair_no'
]
:
''
,
//维修单号: 201609235
];
];
$data
=
$this
->
HandelAction
(
'OverdateBillAction'
,
'QueryOverdateBill'
,
$post
);
$data
=
$this
->
HandelAction
(
'OverdateBillAction'
,
'QueryOverdateBill'
,
$post
);
...
@@ -205,12 +205,12 @@ class SourceChigo extends Source
...
@@ -205,12 +205,12 @@ class SourceChigo extends Source
public
function
RepairBrowseCloseAccount
(
$condition
)
public
function
RepairBrowseCloseAccount
(
$condition
)
{
{
$post
=
[
$post
=
[
'periodb'
=>
$condition
[
'periodb'
]
,
//'201610'
'periodb'
=>
isset
(
$condition
[
'periodb'
])
?
$condition
[
'periodb'
]
:
''
,
//'201610'
'periode'
=>
$condition
[
'periode'
]
,
'periode'
=>
isset
(
$condition
[
'periode'
])
?
$condition
[
'periode'
]
:
''
,
'ser_node_id'
=>
$condition
[
'ser_node_id'
]
,
//服务商, PickupAllSerNodeForUser->node_id
'ser_node_id'
=>
isset
(
$condition
[
'ser_node_id'
])
?
$condition
[
'ser_node_id'
]
:
''
,
//服务商, PickupAllSerNodeForUser->node_id
'center_code'
=>
$condition
[
'center_code'
]
,
//中心, PickupAllForUser->center_code
'center_code'
=>
isset
(
$condition
[
'center_code'
])
?
$condition
[
'center_code'
]
:
''
,
//中心, PickupAllForUser->center_code
'ins_rep'
=>
$condition
[
'ins_rep'
]
,
//系统: C:志高; H:现代
'ins_rep'
=>
isset
(
$condition
[
'ins_rep'
])
?
$condition
[
'ins_rep'
]
:
''
,
//系统: C:志高; H:现代
'wxqx'
=>
$condition
[
'wxqx'
]
,
//业务类型: C:维修; H:清洗
'wxqx'
=>
isset
(
$condition
[
'wxqx'
])
?
$condition
[
'wxqx'
]
:
''
,
//业务类型: C:维修; H:清洗
];
];
$data
=
$this
->
HandelAction
(
'BrowseCloseAccount'
,
'BrowseCloseAccount'
,
$post
);
$data
=
$this
->
HandelAction
(
'BrowseCloseAccount'
,
'BrowseCloseAccount'
,
$post
);
...
...
application/libraries/Source/SourceHisense.php
View file @
94e16b4e
...
@@ -47,26 +47,44 @@ class SourceHisense extends Source
...
@@ -47,26 +47,44 @@ class SourceHisense extends Source
return
$result
;
return
$result
;
}
}
//工单管理-工单实施-信息反馈-列表查询条件
public
function
InformationFeedbackCondition
()
{
$url
=
"http://222.173.107.86/HisenseCRM/menu.do?method=setMenuLoaction&href=/atelic.do?method=begin&menuName=fws"
;
$result
=
$this
->
HttpCurlGet
(
$url
);
preg_match
(
'/<form id="searchform"[^>]*>[\s\S]+?<\/form>/'
,
$result
[
'data'
],
$html
);
//debug
$this
->
Debug
(
'InformationFeedbackCondition'
,
$html
);
if
(
!
isset
(
$html
[
0
]))
{
return_msg
(
false
,
'获取条件失败'
);
}
return
$this
->
ConditionSelect
(
$html
[
0
]);
}
//工单管理-工单实施-信息反馈-列表
//工单管理-工单实施-信息反馈-列表
public
function
InformationFeedbackList
(
$condition
,
$order
=
''
,
$sort
=
''
,
$page
=
'1'
,
$limit
=
'10'
)
public
function
InformationFeedbackList
(
$condition
,
$order
=
''
,
$sort
=
''
,
$page
=
'1'
,
$limit
=
'10'
)
{
{
$post
=
[
$post
=
[
'cache_row_id'
=>
'CC16111602468037
'
,
'cache_row_id'
=>
isset
(
$condition
[
'out_no'
])
?
$condition
[
'out_no'
]
:
'
'
,
'cache_area_code1'
=>
''
,
'cache_area_code1'
=>
isset
(
$condition
[
'area_code'
])
?
$condition
[
'area_code'
]
:
''
,
'cache_telephone'
=>
''
,
'cache_telephone'
=>
isset
(
$condition
[
'phone'
])
?
$condition
[
'phone'
]
:
''
,
'cache_customer_name'
=>
''
,
'cache_customer_name'
=>
isset
(
$condition
[
'customer_name'
])
?
$condition
[
'customer_name'
]
:
''
,
'cache_is_return_bill'
=>
''
,
'cache_is_return_bill'
=>
isset
(
$condition
[
'return_bill'
])
?
$condition
[
'return_bill'
]
:
''
,
'cache_service_type'
=>
''
,
'cache_service_type'
=>
isset
(
$condition
[
'service_type'
])
?
$condition
[
'service_type'
]
:
''
,
'cache_START_TIME'
=>
''
,
'cache_START_TIME'
=>
isset
(
$condition
[
'start_time'
])
?
$condition
[
'start_time'
]
:
''
,
'cache_END_TIME'
=>
''
,
'cache_END_TIME'
=>
isset
(
$condition
[
'end_time'
])
?
$condition
[
'end_time'
]
:
''
,
'cache_wb_status'
=>
''
,
'cache_wb_status'
=>
isset
(
$condition
[
'wb_status'
])
?
$condition
[
'wb_status'
]
:
''
,
'cache_START_require_service_date'
=>
''
,
'cache_START_require_service_date'
=>
isset
(
$condition
[
'service_stime'
])
?
$condition
[
'service_stime'
]
:
''
,
'cache_END_require_service_date'
=>
''
,
'cache_END_require_service_date'
=>
isset
(
$condition
[
'service_etime'
])
?
$condition
[
'service_etime'
]
:
''
,
'cache_wb_type'
=>
''
,
'cache_wb_type'
=>
isset
(
$condition
[
'wb_type'
])
?
$condition
[
'wb_type'
]
:
''
,
'cache_product_id'
=>
''
,
'cache_product_id'
=>
isset
(
$condition
[
'product_id'
])
?
$condition
[
'product_id'
]
:
''
,
'cache_logo_id'
=>
''
,
'cache_logo_id'
=>
isset
(
$condition
[
'login_id'
])
?
$condition
[
'login_id'
]
:
''
,
'cache_if_special_deal'
=>
''
,
'cache_if_special_deal'
=>
isset
(
$condition
[
'special_deal'
])
?
$condition
[
'special_deal'
]
:
''
,
'cache_engineer_if_finished'
=>
''
,
'cache_engineer_if_finished'
=>
isset
(
$condition
[
'engineer_finished'
])
?
$condition
[
'engineer_finished'
]
:
''
,
'rows'
=>
$limit
,
//条数
'rows'
=>
$limit
,
//条数
'page'
=>
$page
,
//当前页
'page'
=>
$page
,
//当前页
'order'
=>
$order
,
//排序类型: asc, desc
'order'
=>
$order
,
//排序类型: asc, desc
...
@@ -131,9 +149,201 @@ class SourceHisense extends Source
...
@@ -131,9 +149,201 @@ class SourceHisense extends Source
$result
=
$this
->
HttpCurlGet
(
$url
);
$result
=
$this
->
HttpCurlGet
(
$url
);
$result
=
$this
->
GbkToUtf8
(
$result
[
'data'
]);
$result
=
$this
->
GbkToUtf8
(
$result
[
'data'
]);
//匹配页面的tr
preg_match_all
(
'/<tr height="35px">\s+<td[\s\S]+?<\/tr>/'
,
$result
,
$tr
);
//debug
$this
->
Debug
(
'InformationFeedbackDetail-tr'
,
$tr
);
if
(
!
isset
(
$tr
[
0
]))
{
return_msg
(
'信息反馈-订单详情错误'
);
}
//订单的每个字段
$order
=
[];
foreach
(
$tr
[
0
]
as
$v
)
{
preg_match_all
(
'/<td[^>]+class="lefttext"[\s\S]+?class="centertext"[\s\S]+?<\/td>/'
,
$v
,
$filed
);
if
(
isset
(
$filed
[
0
]))
{
foreach
(
$filed
[
0
]
as
$vv
)
{
if
(
!
empty
(
$vv
))
{
$order
[]
=
$vv
;
}
}
}
}
//debug
$this
->
Debug
(
'InformationFeedbackDetail-field'
,
$order
);
//key-val
$orderField
=
$this
->
InformationFeedbackDetailField
();
//$str = '';
$result
=
[];
foreach
(
$order
as
$k
=>
$v
)
{
preg_match_all
(
'/<td[^>]+>([\s\S]*?)<\/td>/'
,
$v
,
$temp
);
//去除空字段
if
(
stripos
(
$temp
[
1
][
0
],
' '
)
===
false
)
{
$temp
[
1
][
0
]
=
preg_replace
(
'/<[^>]*>/'
,
''
,
$temp
[
1
][
0
]);
$temp
[
1
][
1
]
=
preg_replace
(
'/<[^>]*>|\s+/'
,
''
,
$temp
[
1
][
1
]);
$result
[
array_search
(
$temp
[
1
][
0
],
$orderField
)]
=
$temp
[
1
][
1
];
//打印字段
//$str .= "'xx' => '{$temp[1][0]}',<br/>";
}
}
return
$result
;
return
$result
;
}
}
protected
function
InformationFeedbackDetailField
()
{
$data
=
[
'yhxxbh'
=>
'用户信息编号'
,
'yhxm'
=>
'姓名'
,
'yhdz'
=>
'地址'
,
'yhqh'
=>
'区号'
,
'jtdh'
=>
'家庭电话'
,
'yhsj'
=>
'手机'
,
'qtdh'
=>
'其他电话'
,
'yhlb'
=>
'用户类别'
,
'ssqx'
=>
'所属区县'
,
'yhbz'
=>
'备注'
,
'jrdl'
=>
'接入道路'
,
'zxlx'
=>
'咨询类型'
,
'zxfs'
=>
'咨询方式'
,
'zxjjlx'
=>
'在线解决类型'
,
'sfmyzx'
=>
'是否用户不满意咨询'
,
'fywtms'
=>
'反映问题描述'
,
'xgzjjfa'
=>
'0线故障树解决方案'
,
'xgzdm'
=>
'0线故障代码'
,
'xgzdmfa'
=>
'0线故障代码解决方案'
,
'cpxxbh'
=>
'产品信息编号'
,
'cpzl'
=>
'产品中类'
,
'cppp'
=>
'品牌'
,
'cpxl'
=>
'产品系列'
,
'cpxh'
=>
'产品型号、版本'
,
'jqlx'
=>
'机器类型'
,
'gmrq'
=>
'购买日期'
,
'fwdx'
=>
'服务对象'
,
'azrq'
=>
'安装日期'
,
'gmjg'
=>
'购买价格'
,
'gmqd'
=>
'渠道'
,
'cpxlh'
=>
'产品序列号(外机编号)'
,
'esm'
=>
'手机ESN号(内机编号)'
,
'imei'
=>
'手机IMEI号'
,
'cpxlh2'
=>
'产品序列号(内机编号2)'
,
'sfzjd'
=>
'是否自接单未报'
,
'jjxlh'
=>
'旧机产品序列号(外机编号)'
,
'jjesn'
=>
'旧机手机ESN号(内机编号)'
,
'jjimei'
=>
'旧机手机IMEI号'
,
'jixlh'
=>
'旧机产品序列号(内机编号2)'
,
'jjgmsj'
=>
'旧机购买时间'
,
'gdbh'
=>
'工单编号'
,
'glgdh'
=>
'关联工单号'
,
'yqfwlx'
=>
'要求服务类型'
,
'yqfwfx'
=>
'要求服务方式'
,
'dwts'
=>
'对外投诉'
,
'yysjms'
=>
'预约时间描述'
,
'fwsgysj'
=>
'服务商改约时间'
,
'sfgy'
=>
'是否改约'
,
'djbm'
=>
'登记部门'
,
'fywtms1'
=>
'反映问题描述'
,
'xhdsj'
=>
'1线回电时间'
,
'xwtms'
=>
'1线问题描述'
,
'xfwlx'
=>
'1线要求服务类型'
,
'xfwfs'
=>
'1线要求服务方式'
,
'sfgcd'
=>
'是否工程单'
,
'gdlx'
=>
'工单类型'
,
'gcdsl'
=>
'工程单数量'
,
'gcdw'
=>
'工程单位'
,
'gczs'
=>
'工程总数'
,
'sjgcds'
=>
'实际工程单数'
,
'tsfl'
=>
'投诉分类'
,
'tsjb'
=>
'投诉级别'
,
'fgssfwc'
=>
'分公司是否完成'
,
'tsyy'
=>
'投诉原因'
,
'lxcs'
=>
'联系次数'
,
'khly'
=>
'客户来源'
,
'sshjzx'
=>
'所属呼叫中心'
,
'ssfgs'
=>
'所属分公司'
,
'pgry'
=>
'派工人员'
,
'pgsj'
=>
'派工时间'
,
'zjxgr'
=>
'最近修改人'
,
'zjxgrq'
=>
'最近修改日期'
,
'ecpno'
=>
'ECP销售订单号'
,
'gps'
=>
'GPS安装地址'
,
'sjfwlx'
=>
'实际服务类型'
,
'sjfwfx'
=>
'实际服务方式'
,
'jdjg'
=>
'鉴定结果'
,
'lxyhsj'
=>
'联系用户时间'
,
'fwwcsj'
=>
'服务完成时间'
,
'appgcs'
=>
'APP工程师'
,
'gcsa'
=>
'工程师A'
,
'gcsb'
=>
'工程师B'
,
'gcsc'
=>
'工程师C'
,
'gcsd'
=>
'工程师D'
,
'fwsbh'
=>
'服务商编号'
,
'fwsmc'
=>
'服务商名称'
,
'bxlx'
=>
'保修类型'
,
'fwsjdsj'
=>
'服务商结单时间'
,
'wwcyy'
=>
'未完成原因'
,
'wwcyyms'
=>
'未完成原因描述'
,
'zhfwsj'
=>
'最近一次服务时间'
,
'zdshjg'
=>
'自动审核结果'
,
'gzxx'
=>
'故障现象'
,
'gzyy'
=>
'故障原因'
,
'wxcs'
=>
'维修措施'
,
'wxbj'
=>
'维修部件'
,
'wxqkms'
=>
'维修情况描述'
,
'bjsyzt'
=>
'备件使用状态'
,
'scfksj'
=>
'首次反馈时间'
,
'sfyzzj'
=>
'是否用周转机'
,
'sfjggd'
=>
'是否技改工单'
,
'sxbj'
=>
'失效部件'
,
'bjxh'
=>
'部件型号'
,
'gys'
=>
'供应商'
,
'zjxgren'
=>
'最近修改人'
,
'zjxgsj'
=>
'最近修改时间'
,
'ptdyy'
=>
'派/退单原因'
,
'gdzt'
=>
'工单状态'
,
'qxyy'
=>
'取消原因'
,
'hftdyy'
=>
'回访退单原因'
,
'jqjj'
=>
'旧件'
,
'fgsyj'
=>
'分公司意见'
,
'yhbz2'
=>
'备注2'
,
'yhldpj'
=>
'用户来电评价'
,
'yqfkr'
=>
'要求反馈人'
,
'fksb'
=>
'反馈设备'
,
'zqyhxx'
=>
'正确用户信息'
,
'yjbtf'
=>
'远郊补贴费'
,
'byf'
=>
'搬运费'
,
'clf'
=>
'差旅费'
,
'yhbcf'
=>
'用户补偿费'
,
'qtfy'
=>
'其他费用'
,
'smjl'
=>
'上门距离'
,
'wxf'
=>
'维修费'
,
'clfei'
=>
'材料费'
,
'qtf'
=>
'其它费用'
,
'sjd'
=>
'收据号'
,
'zgjcbhj'
=>
'自构件成本合计'
,
'ssr'
=>
'申诉人'
,
'sssj'
=>
'申诉时间'
,
'ssms'
=>
'申诉描述'
,
'shr'
=>
'审核人'
,
'shsj'
=>
'审核时间'
,
'shms'
=>
'审核描述'
,
'htbh'
=>
'合同编号'
,
'xmmc'
=>
'项目名称'
,
'dls'
=>
'代理商'
,
];
return
$data
;
}
public
function
IsLogin
(
$num
=
0
)
public
function
IsLogin
(
$num
=
0
)
{
{
if
(
$num
>
2
)
{
if
(
$num
>
2
)
{
...
...
application/libraries/Source/SourceSuning.php
View file @
94e16b4e
...
@@ -74,13 +74,13 @@ class SourceSuning extends Source
...
@@ -74,13 +74,13 @@ class SourceSuning extends Source
$post
=
[
$post
=
[
'choosedFlag'
=>
''
,
//类型
'choosedFlag'
=>
''
,
//类型
'siteBp'
=>
$condition
[
'siteBp'
]
,
//网点BP
'siteBp'
=>
isset
(
$condition
[
'siteBp'
])
?
$condition
[
'siteBp'
]
:
''
,
//网点BP
'objectIds'
=>
$condition
[
'objectIds'
]
,
//订单号,多个用(,)隔开
'objectIds'
=>
isset
(
$condition
[
'objectIds'
])
?
$condition
[
'objectIds'
]
:
''
,
//订单号,多个用(,)隔开
'applyStartTime'
=>
$condition
[
'startTime'
]
,
//开始时间
'applyStartTime'
=>
isset
(
$condition
[
'startTime'
])
?
$condition
[
'startTime'
]
:
''
,
//开始时间
'applyEndTime'
=>
$condition
[
'endTime'
]
,
//结束时间
'applyEndTime'
=>
isset
(
$condition
[
'endTime'
])
?
$condition
[
'endTime'
]
:
''
,
//结束时间
'choosedtabNow'
=>
''
,
'choosedtabNow'
=>
''
,
'processTypeName'
=>
$condition
[
'processTypeName'
]
,
//订单类型名称
'processTypeName'
=>
isset
(
$condition
[
'processTypeName'
])
?
$condition
[
'processTypeName'
]
:
''
,
//订单类型名称
'processType'
=>
$condition
[
'processType'
]
//订单类型编号
'processType'
=>
isset
(
$condition
[
'processType'
])
?
$condition
[
'processType'
]
:
''
//订单类型编号
];
];
//debug
//debug
...
@@ -139,16 +139,16 @@ class SourceSuning extends Source
...
@@ -139,16 +139,16 @@ class SourceSuning extends Source
public
function
SelectServiceOrder
(
$condition
)
public
function
SelectServiceOrder
(
$condition
)
{
{
$post
=
[
$post
=
[
'mark'
=>
$condition
[
'mark'
]
,
'mark'
=>
isset
(
$condition
[
'mark'
])
?
$condition
[
'mark'
]
:
''
,
'partner'
=>
$condition
[
'siteBp'
]
,
'partner'
=>
isset
(
$condition
[
'siteBp'
])
?
$condition
[
'siteBp'
]
:
''
,
'objectId'
=>
$condition
[
'objectIds'
]
,
'objectId'
=>
isset
(
$condition
[
'objectIds'
])
?
$condition
[
'objectIds'
]
:
''
,
'mobPhoneNum'
=>
$condition
[
'phone'
]
,
'mobPhoneNum'
=>
isset
(
$condition
[
'phone'
])
?
$condition
[
'phone'
]
:
''
,
'startTime'
=>
$condition
[
'startTime'
]
,
'startTime'
=>
isset
(
$condition
[
'startTime'
])
?
$condition
[
'startTime'
]
:
''
,
'endTime'
=>
$condition
[
'endTime'
]
,
'endTime'
=>
isset
(
$condition
[
'endTime'
])
?
$condition
[
'endTime'
]
:
''
,
'printTypeName'
=>
$condition
[
'processTypeName'
]
,
'printTypeName'
=>
isset
(
$condition
[
'processTypeName'
])
?
$condition
[
'processTypeName'
]
:
''
,
'processType'
=>
$condition
[
'processType'
]
,
'processType'
=>
isset
(
$condition
[
'processType'
])
?
$condition
[
'processType'
]
:
''
,
'statusName'
=>
$condition
[
'orderStatusName'
]
,
'statusName'
=>
isset
(
$condition
[
'orderStatusName'
])
?
$condition
[
'orderStatusName'
]
:
''
,
'orderStatus'
=>
$condition
[
'orderStatus'
]
'orderStatus'
=>
isset
(
$condition
[
'orderStatus'
])
?
$condition
[
'orderStatus'
]
:
''
];
];
//debug
//debug
...
...
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