Commit c221de1e authored by 蒋林's avatar 蒋林

格兰仕 - 保存维修单 - 是否远程

parent 087044de
...@@ -233,7 +233,7 @@ class Galanz extends BaseController ...@@ -233,7 +233,7 @@ class Galanz extends BaseController
$data['appid'] = '10001'; $data['appid'] = '10001';
$data['account'] = self::$testu; $data['account'] = self::$testu;
$data['pwd'] = self::$testp; $data['pwd'] = self::$testp;
$data['id'] = 'ddea2315-f4ec-410f-9e4a-2f1d752d5852'; $data['id'] = 'c9ac9231-2189-44d9-be34-e19aede8895f';
$data['nonce_str'] = $obj->GetNonceStr(); $data['nonce_str'] = $obj->GetNonceStr();
$obj->SetValues($data); $obj->SetValues($data);
...@@ -631,7 +631,7 @@ class Galanz extends BaseController ...@@ -631,7 +631,7 @@ class Galanz extends BaseController
'appid' => '10001', 'appid' => '10001',
'account' => self::$testu, 'account' => self::$testu,
'pwd' => self::$testp, 'pwd' => self::$testp,
'id' => 'ddea2315-f4ec-410f-9e4a-2f1d752d5852', 'id' => 'c9ac9231-2189-44d9-be34-e19aede8895f',
'custname' => '', 'custname' => '',
'custmobile' => '', 'custmobile' => '',
'address' => '', 'address' => '',
...@@ -647,7 +647,9 @@ class Galanz extends BaseController ...@@ -647,7 +647,9 @@ class Galanz extends BaseController
'isremote' => '', //是否远程 'isremote' => '', //是否远程
'scope' => '2', //上门范围 'scope' => '2', //上门范围
'distancekm' => '', //上门距离 'distancekm' => '', //上门距离
'laxiuamount' => 50 'laxiuamount' => 50,
'isrelief' => '1',
'reliefmemo' => '访问积分为哦'
]; ];
// $machine = [ // $machine = [
......
...@@ -218,6 +218,8 @@ class ReceiveGalanz extends Receive ...@@ -218,6 +218,8 @@ class ReceiveGalanz extends Receive
'machine', //机器信息 'machine', //机器信息
'fault', //故障信息 'fault', //故障信息
'parts', //换件信息 'parts', //换件信息
'isrelief', //是否减免
'reliefmemo', //减免备注
]; ];
$this->SetDefaultValues($dfields); $this->SetDefaultValues($dfields);
} }
...@@ -270,6 +272,12 @@ class ReceiveGalanz extends Receive ...@@ -270,6 +272,12 @@ class ReceiveGalanz extends Receive
if ($values['laxiuamount']) { if ($values['laxiuamount']) {
$order['new_laxiuamount'] = $values['laxiuamount'] + 0; $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']) { if ($values['machine']) {
......
...@@ -1567,6 +1567,10 @@ class SourceGalanz extends Source ...@@ -1567,6 +1567,10 @@ class SourceGalanz extends Source
$post['ctl00$ContentData$new_distancekm'] = '0'; $post['ctl00$ContentData$new_distancekm'] = '0';
} }
if ($data['new_isrelief']) {
$post['ctl00$ContentData$new_isrelief'] = 'on';
}
switch ($type){ switch ($type){
case 'Save': case 'Save':
$post['__EVENTTARGET'] = 'ctl00$ContentQuery$btnSave'; $post['__EVENTTARGET'] = 'ctl00$ContentQuery$btnSave';
......
...@@ -555,6 +555,8 @@ new_id | id | 是 | String(32) | 2ac18853-8f45-4210-8e98-e4bb0d3554a9 | 维修 ...@@ -555,6 +555,8 @@ new_id | id | 是 | String(32) | 2ac18853-8f45-4210-8e98-e4bb0d3554a9 | 维修
维修人员 | repairapply | 否 | String(32) | 牛师傅 维修人员 | repairapply | 否 | String(32) | 牛师傅
是否远程 | isremote | 否 | String(32) | | 1:是; 0:否 是否远程 | isremote | 否 | String(32) | | 1:是; 0:否
上门范围 | scope | 否 | String(32) | | 1:市区; 2:市郊; 3:市外 上门范围 | scope | 否 | String(32) | | 1:市区; 2:市郊; 3:市外
是否减免 | isrelief | 否 | String(32) | | 1:是; 0:否
减免备注 | reliefmemo | 否 | String(32) | |
上门距离 | distancekm | 否 | String(32) | 100 上门距离 | distancekm | 否 | String(32) | 100
拉修费 | laxiuamount | 否 | String(32) | 50 拉修费 | 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"} | 添加机器,保存需要填写该字段,其他非必填 机器信息 | machine | 否 | Json | {"chk":"machine下chk","producttypeid":"new_producttypeid","producttypeidName":"new_producttypeidName","productmodelid":"new_productmodelid","productmodelidName":"new_name","productnumber":"productnumber","modelnumber":"name"} | 添加机器,保存需要填写该字段,其他非必填
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment