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
646142fa
Commit
646142fa
authored
Sep 26, 2016
by
蒋林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 派工单相关接口参数修改
2. 维修单相关接口参数修改
parent
f3506497
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
129 additions
and
120 deletions
+129
-120
Galanz.php
application/controllers/api/Galanz.php
+53
-90
ReceiveGalanz.php
application/libraries/Receive/ReceiveGalanz.php
+58
-18
SourceGalanz.php
application/libraries/Source/SourceGalanz.php
+18
-12
No files found.
application/controllers/api/Galanz.php
View file @
646142fa
This diff is collapsed.
Click to expand it.
application/libraries/Receive/ReceiveGalanz.php
View file @
646142fa
...
@@ -15,13 +15,13 @@ class ReceiveGalanz extends Receive
...
@@ -15,13 +15,13 @@ class ReceiveGalanz extends Receive
*/
*/
public
function
CheckQueryOrderValues
()
public
function
CheckQueryOrderValues
()
{
{
$fileds
=
[
'
out_trade_no
'
];
$fileds
=
[
'
id
'
];
$this
->
CheckValues
(
$fileds
);
$this
->
CheckValues
(
$fileds
);
}
}
public
function
CheckQueryWorkOrderValues
()
public
function
CheckQueryWorkOrderValues
()
{
{
$fileds
=
[
'
work_order_no
'
];
$fileds
=
[
'
id
'
];
$this
->
CheckValues
(
$fileds
);
$this
->
CheckValues
(
$fileds
);
}
}
...
@@ -59,8 +59,48 @@ class ReceiveGalanz extends Receive
...
@@ -59,8 +59,48 @@ class ReceiveGalanz extends Receive
public
function
CheckSearchWorkOrderValues
()
public
function
CheckSearchWorkOrderValues
()
{
{
$fileds
=
[
'mobile'
];
// $fileds = ['mobile'];
$this
->
CheckValues
(
$fileds
);
// $this->CheckValues($fileds);
$dfields
=
[
'name'
,
'custmobile'
,
'producenumber'
,
'approvalstatus'
,
'ischangepart'
,
'returnfactory'
,
'isrelief'
,
'starttime'
,
'endtime'
];
$this
->
SetDefaultValues
(
$dfields
);
if
(
$this
->
values
[
'starttime'
])
{
$this
->
values
[
'starttime'
]
=
date
(
'Y/m/d'
,
strtotime
(
$this
->
values
[
'starttime'
]));
}
if
(
$this
->
values
[
'endtime'
])
{
$this
->
values
[
'endtime'
]
=
date
(
'Y/m/d'
,
strtotime
(
$this
->
values
[
'endtime'
]));
}
if
(
$this
->
values
[
'ischangepart'
]
&&
in_array
(
$this
->
values
[
'ischangepart'
],
[
1
,
2
]))
{
$this
->
values
[
'ischangepart'
]
+=
1
;
}
else
{
$this
->
values
[
'ischangepart'
]
=
1
;
}
if
(
$this
->
values
[
'returnfactory'
]
&&
in_array
(
$this
->
values
[
'returnfactory'
],
[
1
,
2
]))
{
$this
->
values
[
'returnfactory'
]
+=
1
;
}
else
{
$this
->
values
[
'returnfactory'
]
=
1
;
}
if
(
$this
->
values
[
'isrelief'
]
&&
in_array
(
$this
->
values
[
'isrelief'
],
[
1
,
2
]))
{
$this
->
values
[
'isrelief'
]
+=
1
;
}
else
{
$this
->
values
[
'isrelief'
]
=
1
;
}
}
}
public
function
CheckSearchUserProfieOrderValues
()
public
function
CheckSearchUserProfieOrderValues
()
...
@@ -74,7 +114,7 @@ class ReceiveGalanz extends Receive
...
@@ -74,7 +114,7 @@ class ReceiveGalanz extends Receive
*/
*/
public
function
CheckSaveOrderValues
()
public
function
CheckSaveOrderValues
()
{
{
$fileds
=
[
'
out_trade_no
'
];
$fileds
=
[
'
id
'
];
$this
->
CheckValues
(
$fileds
);
$this
->
CheckValues
(
$fileds
);
$dfields
=
[
$dfields
=
[
...
@@ -130,7 +170,7 @@ class ReceiveGalanz extends Receive
...
@@ -130,7 +170,7 @@ class ReceiveGalanz extends Receive
*/
*/
public
function
CheckRefuseOrderValues
()
public
function
CheckRefuseOrderValues
()
{
{
$fileds
=
[
'
out_trade_no
'
];
$fileds
=
[
'
id
'
];
$this
->
CheckValues
(
$fileds
);
$this
->
CheckValues
(
$fileds
);
}
}
...
@@ -139,7 +179,7 @@ class ReceiveGalanz extends Receive
...
@@ -139,7 +179,7 @@ class ReceiveGalanz extends Receive
*/
*/
public
function
CheckAcceptOrderValues
()
public
function
CheckAcceptOrderValues
()
{
{
$fileds
=
[
'
out_trade_no
'
];
$fileds
=
[
'
id
'
];
$this
->
CheckValues
(
$fileds
);
$this
->
CheckValues
(
$fileds
);
}
}
...
@@ -149,7 +189,7 @@ class ReceiveGalanz extends Receive
...
@@ -149,7 +189,7 @@ class ReceiveGalanz extends Receive
*/
*/
public
function
CheckCreateWorkOrderValues
()
public
function
CheckCreateWorkOrderValues
()
{
{
$fileds
=
[
'
out_trade_no
'
];
$fileds
=
[
'
id
'
];
$this
->
CheckValues
(
$fileds
);
$this
->
CheckValues
(
$fileds
);
}
}
...
@@ -158,14 +198,14 @@ class ReceiveGalanz extends Receive
...
@@ -158,14 +198,14 @@ class ReceiveGalanz extends Receive
*/
*/
public
function
CheckCreateUserProfileOrderValues
()
public
function
CheckCreateUserProfileOrderValues
()
{
{
$fileds
=
[
'
out_trade_no
'
];
$fileds
=
[
'
id
'
];
$this
->
CheckValues
(
$fileds
);
$this
->
CheckValues
(
$fileds
);
}
}
//保存维修单
//保存维修单
public
function
CheckSaveWorkOrderValues
()
public
function
CheckSaveWorkOrderValues
()
{
{
$fileds
=
[
'
work_order_no
'
];
$fileds
=
[
'
id
'
];
$this
->
CheckValues
(
$fileds
);
$this
->
CheckValues
(
$fileds
);
$dfields
=
[
$dfields
=
[
...
@@ -286,7 +326,7 @@ class ReceiveGalanz extends Receive
...
@@ -286,7 +326,7 @@ class ReceiveGalanz extends Receive
public
function
CheckSendWorkOrderValues
()
public
function
CheckSendWorkOrderValues
()
{
{
$fileds
=
[
'
work_order_no
'
];
$fileds
=
[
'
id
'
];
$this
->
CheckValues
(
$fileds
);
$this
->
CheckValues
(
$fileds
);
}
}
...
@@ -410,19 +450,19 @@ class ReceiveGalanz extends Receive
...
@@ -410,19 +450,19 @@ class ReceiveGalanz extends Receive
public
function
CheckAddProdWorkOrderValues
()
public
function
CheckAddProdWorkOrderValues
()
{
{
$fileds
=
[
'
work_order_no
'
];
$fileds
=
[
'
id
'
];
$this
->
CheckValues
(
$fileds
);
$this
->
CheckValues
(
$fileds
);
}
}
public
function
CheckSetProdWorkOrderValues
()
public
function
CheckSetProdWorkOrderValues
()
{
{
$fileds
=
[
'
work_order_no
'
,
'txtproducenumber'
];
$fileds
=
[
'
id
'
,
'txtproducenumber'
];
$this
->
CheckValues
(
$fileds
);
$this
->
CheckValues
(
$fileds
);
}
}
public
function
CheckAddErrorWorkOrderValues
()
public
function
CheckAddErrorWorkOrderValues
()
{
{
$fileds
=
[
'
work_order_no
'
,
'chk'
];
$fileds
=
[
'
id
'
,
'chk'
];
$this
->
CheckValues
(
$fileds
);
$this
->
CheckValues
(
$fileds
);
}
}
...
@@ -442,7 +482,7 @@ class ReceiveGalanz extends Receive
...
@@ -442,7 +482,7 @@ class ReceiveGalanz extends Receive
public
function
CheckAddPartsWorkOrderValues
()
public
function
CheckAddPartsWorkOrderValues
()
{
{
$fileds
=
[
'
work_order_no
'
,
'chk'
];
$fileds
=
[
'
id
'
,
'chk'
];
$this
->
CheckValues
(
$fileds
);
$this
->
CheckValues
(
$fileds
);
}
}
...
@@ -461,7 +501,7 @@ class ReceiveGalanz extends Receive
...
@@ -461,7 +501,7 @@ class ReceiveGalanz extends Receive
public
function
CheckDelProdWorkOrderValues
()
public
function
CheckDelProdWorkOrderValues
()
{
{
$fileds
=
[
'
work_order_no
'
,
'chk'
];
$fileds
=
[
'
id
'
,
'chk'
];
$this
->
CheckValues
(
$fileds
);
$this
->
CheckValues
(
$fileds
);
}
}
...
@@ -480,7 +520,7 @@ class ReceiveGalanz extends Receive
...
@@ -480,7 +520,7 @@ class ReceiveGalanz extends Receive
public
function
CheckDelErrorWorkOrderValues
()
public
function
CheckDelErrorWorkOrderValues
()
{
{
$fileds
=
[
'
work_order_no
'
,
'chk'
];
$fileds
=
[
'
id
'
,
'chk'
];
$this
->
CheckValues
(
$fileds
);
$this
->
CheckValues
(
$fileds
);
}
}
...
@@ -491,7 +531,7 @@ class ReceiveGalanz extends Receive
...
@@ -491,7 +531,7 @@ class ReceiveGalanz extends Receive
public
function
CheckDelPartsWorkOrderValues
()
public
function
CheckDelPartsWorkOrderValues
()
{
{
$fileds
=
[
'
work_order_no
'
,
'chk'
];
$fileds
=
[
'
id
'
,
'chk'
];
$this
->
CheckValues
(
$fileds
);
$this
->
CheckValues
(
$fileds
);
}
}
...
...
application/libraries/Source/SourceGalanz.php
View file @
646142fa
...
@@ -226,12 +226,18 @@ class SourceGalanz extends Source
...
@@ -226,12 +226,18 @@ class SourceGalanz extends Source
/**
/**
* 维修单搜索
* 维修单搜索
* @param string $new_number
* @param string $name 维修单号
* @param string $mobile
* @param string $custmobile 顾客手机
* @param string $approvalstatus 单据状态
* @param string $producenumber 产品条码
* @param string $approvalstatus 单据状态: '':默认; 1:待发送; 2:已发送; 3:驳回; 4:合格; 5:复议; 6:虚假单
* @param string $ischangepart 是否换件: 1:默认; 2:是; 3:否
* @param string $returnfactory 售前机: 1:默认; 2:是; 3:否
* @param string $isrelief 减免: 1:默认; 2:是; 3:否
* @param string $stime 开始时间,格式:2016/08/05
* @param string $etime 结束时间,格式:同上
* @return array
* @return array
*/
*/
public
function
SearchWorkOrder
(
$n
ew_number
=
''
,
$mobile
=
''
,
$approvalstatus
=
''
)
public
function
SearchWorkOrder
(
$n
ame
=
''
,
$custmobile
=
''
,
$producenumber
=
''
,
$approvalstatus
=
''
,
$ischangepart
=
''
,
$returnfactory
=
''
,
$isrelief
=
''
,
$stime
=
''
,
$etime
=
''
)
{
{
$post
=
[
$post
=
[
'__EVENTTARGET'
=>
'ctl00$ContentQuery$btnQuery'
,
'__EVENTTARGET'
=>
'ctl00$ContentQuery$btnQuery'
,
...
@@ -242,16 +248,16 @@ class SourceGalanz extends Source
...
@@ -242,16 +248,16 @@ class SourceGalanz extends Source
'ctl00$ContentQuery$hidMainId'
=>
''
,
'ctl00$ContentQuery$hidMainId'
=>
''
,
'ctl00$ContentQuery$hidAttrCode'
=>
''
,
'ctl00$ContentQuery$hidAttrCode'
=>
''
,
'ctl00$ContentQuery$hidMainIdName'
=>
''
,
'ctl00$ContentQuery$hidMainIdName'
=>
''
,
'ctl00$ContentQuery$new_finishtime_s'
=>
''
,
'ctl00$ContentQuery$new_finishtime_s'
=>
$stime
,
'ctl00$ContentQuery$new_finishtime_e'
=>
''
,
'ctl00$ContentQuery$new_finishtime_e'
=>
$etime
,
'ctl00$ContentQuery$new_number'
=>
$n
ew_number
,
'ctl00$ContentQuery$new_number'
=>
$n
ame
,
'ctl00$ContentQuery$new_custname'
=>
''
,
'ctl00$ContentQuery$new_custname'
=>
''
,
'ctl00$ContentQuery$new_custmobile'
=>
$mobile
,
'ctl00$ContentQuery$new_custmobile'
=>
$
cust
mobile
,
'ctl00$ContentQuery$new_ischangepart'
=>
1
,
'ctl00$ContentQuery$new_ischangepart'
=>
$ischangepart
,
'ctl00$ContentQuery$new_returnfactory'
=>
1
,
'ctl00$ContentQuery$new_returnfactory'
=>
$returnfactory
,
'ctl00$ContentQuery$new_isrelief'
=>
1
,
'ctl00$ContentQuery$new_isrelief'
=>
$isrelief
,
'ctl00$ContentQuery$new_approvalstatus'
=>
$approvalstatus
,
'ctl00$ContentQuery$new_approvalstatus'
=>
$approvalstatus
,
'ctl00$ContentQuery$txtproducenumber'
=>
''
,
'ctl00$ContentQuery$txtproducenumber'
=>
$producenumber
,
'ctl00$ContentQuery$new_name'
=>
''
,
'ctl00$ContentQuery$new_name'
=>
''
,
'ctl00$ContentQuery$new_iskt'
=>
0
,
'ctl00$ContentQuery$new_iskt'
=>
0
,
'ctl00$ContentData$PagerToolBar1$ctl00'
=>
500
,
'ctl00$ContentData$PagerToolBar1$ctl00'
=>
500
,
...
...
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