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
c221de1e
Commit
c221de1e
authored
Dec 28, 2016
by
蒋林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
格兰仕 - 保存维修单 - 是否远程
parent
087044de
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
3 deletions
+19
-3
Galanz.php
application/controllers/test/Galanz.php
+5
-3
ReceiveGalanz.php
application/libraries/Receive/ReceiveGalanz.php
+8
-0
SourceGalanz.php
application/libraries/Source/SourceGalanz.php
+4
-0
galanz.md
docs/galanz.md
+2
-0
No files found.
application/controllers/test/Galanz.php
View file @
c221de1e
...
...
@@ -233,7 +233,7 @@ class Galanz extends BaseController
$data
[
'appid'
]
=
'10001'
;
$data
[
'account'
]
=
self
::
$testu
;
$data
[
'pwd'
]
=
self
::
$testp
;
$data
[
'id'
]
=
'
ddea2315-f4ec-410f-9e4a-2f1d752d5852
'
;
$data
[
'id'
]
=
'
c9ac9231-2189-44d9-be34-e19aede8895f
'
;
$data
[
'nonce_str'
]
=
$obj
->
GetNonceStr
();
$obj
->
SetValues
(
$data
);
...
...
@@ -631,7 +631,7 @@ class Galanz extends BaseController
'appid'
=>
'10001'
,
'account'
=>
self
::
$testu
,
'pwd'
=>
self
::
$testp
,
'id'
=>
'
ddea2315-f4ec-410f-9e4a-2f1d752d5852
'
,
'id'
=>
'
c9ac9231-2189-44d9-be34-e19aede8895f
'
,
'custname'
=>
''
,
'custmobile'
=>
''
,
'address'
=>
''
,
...
...
@@ -647,7 +647,9 @@ class Galanz extends BaseController
'isremote'
=>
''
,
//是否远程
'scope'
=>
'2'
,
//上门范围
'distancekm'
=>
''
,
//上门距离
'laxiuamount'
=>
50
'laxiuamount'
=>
50
,
'isrelief'
=>
'1'
,
'reliefmemo'
=>
'访问积分为哦'
];
// $machine = [
...
...
application/libraries/Receive/ReceiveGalanz.php
View file @
c221de1e
...
...
@@ -218,6 +218,8 @@ class ReceiveGalanz extends Receive
'machine'
,
//机器信息
'fault'
,
//故障信息
'parts'
,
//换件信息
'isrelief'
,
//是否减免
'reliefmemo'
,
//减免备注
];
$this
->
SetDefaultValues
(
$dfields
);
}
...
...
@@ -270,6 +272,12 @@ class ReceiveGalanz extends Receive
if
(
$values
[
'laxiuamount'
])
{
$order
[
'new_laxiuamount'
]
=
$values
[
'laxiuamount'
]
+
0
;
}
if
(
$values
[
'isrelief'
])
{
$order
[
'new_isrelief'
]
=
$values
[
'isrelief'
]
+
0
;
}
if
(
$values
[
'reliefmemo'
])
{
$order
[
'new_reliefmemo'
]
=
$values
[
'reliefmemo'
];
}
//处理机器信息参数
if
(
$values
[
'machine'
])
{
...
...
application/libraries/Source/SourceGalanz.php
View file @
c221de1e
...
...
@@ -1567,6 +1567,10 @@ class SourceGalanz extends Source
$post
[
'ctl00$ContentData$new_distancekm'
]
=
'0'
;
}
if
(
$data
[
'new_isrelief'
])
{
$post
[
'ctl00$ContentData$new_isrelief'
]
=
'on'
;
}
switch
(
$type
){
case
'Save'
:
$post
[
'__EVENTTARGET'
]
=
'ctl00$ContentQuery$btnSave'
;
...
...
docs/galanz.md
View file @
c221de1e
...
...
@@ -555,6 +555,8 @@ new_id | id | 是 | String(32) | 2ac18853-8f45-4210-8e98-e4bb0d3554a9 | 维修
维修人员 | repairapply | 否 | String(32) | 牛师傅
是否远程 | isremote | 否 | String(32) | | 1:是; 0:否
上门范围 | scope | 否 | String(32) | | 1:市区; 2:市郊; 3:市外
是否减免 | isrelief | 否 | String(32) | | 1:是; 0:否
减免备注 | reliefmemo | 否 | String(32) | |
上门距离 | distancekm | 否 | String(32) | 100
拉修费 | laxiuamount | 否 | String(32) | 50
机器信息 | machine | 否 | Json | {"chk":"machine下chk","producttypeid":"new_producttypeid","producttypeidName":"new_producttypeidName","productmodelid":"new_productmodelid","productmodelidName":"new_name","productnumber":"productnumber","modelnumber":"name"} | 添加机器,保存需要填写该字段,其他非必填
...
...
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