Commit 9ab22df7 authored by 蒋林's avatar 蒋林

志高-维修业务-浏览

parent 4efa5a9b
...@@ -92,6 +92,24 @@ class Chigo extends BaseController ...@@ -92,6 +92,24 @@ class Chigo extends BaseController
$obj->ReturnMessage(true, '', $result); $obj->ReturnMessage(true, '', $result);
} }
//家用维修业务-业务-维修单录入-浏览
public function queryRepairBill()
{
$param = $this->input->post();
//验证参数
$obj = $this->receiveObj();
$obj->SetValues($param);
$obj->CheckQueryRepairBillValues();
$values = $obj->GetValues();
$this->saveLog('', 'queryRepairBill', $values);
$sourceObj = $this->sourceObj($values['account'], $values['pwd']);
$result = $sourceObj->QueryRepairBill($values);
$obj->ReturnMessage(true, '', $result);
}
//服务商编号 //服务商编号
public function pickupAllSerNodeForUser() public function pickupAllSerNodeForUser()
......
...@@ -41,15 +41,15 @@ class Chigo extends BaseController ...@@ -41,15 +41,15 @@ class Chigo extends BaseController
$sobj = $this->sourceObj(); $sobj = $this->sourceObj();
$data = [ $data = [
'periodb' => '201610', 'input_date_begin' => '2016-10-01',
'periode' => '201611', 'input_date_end' => '2016-11-08',
'ser_node_id' => '0200145', 'node_id' => '0200145',
'center_code' => '0801', 'repair_date_begin' => '',
'ins_rep' => 'I', 'repair_date_end' => '',
'wxqx' => '', 'repair_no' => '201609235',
]; ];
$res = $sobj->BrowseCloseAccount($data); $res = $sobj->QueryRepairBill($data);
$this->show($res); $this->show($res);
} }
...@@ -58,7 +58,7 @@ class Chigo extends BaseController ...@@ -58,7 +58,7 @@ class Chigo extends BaseController
{ {
$xml = '<?xml version="1.0" encoding="gbk" standalone="yes"?> $xml = '<?xml version="1.0" encoding="gbk" standalone="yes"?>
<DATAPACKET Version="2.0"><ACTION isquery="true"/><DATASET providername="BrowseCloseAccount"><METADATA><FIELDS><FIELD attrname="PERIODB" fieldtype="string" width="0"/><FIELD attrname="PERIODE" fieldtype="string" width="0"/><FIELD attrname="SER_NODE_ID" fieldtype="string" width="0"/><FIELD attrname="CENTER_CODE" fieldtype="string" width="0"/><FIELD attrname="INS_REP" fieldtype="string" width="0"/><FIELD attrname="WXQX" fieldtype="string" width="0"/></FIELDS><PARAMS/></METADATA><ROWDATA><ROW PERIODB="201608" PERIODE="201611" SER_NODE_ID="0200145" CENTER_CODE="0801" INS_REP="I" WXQX=""/></ROWDATA></DATASET></DATAPACKET> <DATAPACKET Version="2.0"><ACTION isquery="true"/><DATASET providername="QueryRepairBill"><METADATA><FIELDS><FIELD attrname="INPUT_DATE_BEGIN" fieldtype="string" width="0"/><FIELD attrname="INPUT_DATE_END" fieldtype="string" width="0"/><FIELD attrname="NODE_ID" fieldtype="string" width="0"/><FIELD attrname="REPAIR_DATE_BEGIN" fieldtype="string" width="0"/><FIELD attrname="REPAIR_DATE_END" fieldtype="string" width="0"/><FIELD attrname="REPAIR_NO" fieldtype="string" width="0"/><FIELD attrname="MACHINE_MODEL" fieldtype="string" width="0"/></FIELDS><PARAMS/></METADATA><ROWDATA><ROW INPUT_DATE_BEGIN="2016-10-01" INPUT_DATE_END="2016-11-08" NODE_ID="" REPAIR_DATE_BEGIN="" REPAIR_DATE_END="" REPAIR_NO="" MACHINE_MODEL="&lt;10"/></ROWDATA></DATASET></DATAPACKET>
'; ';
$sobj = $this->sourceObj(); $sobj = $this->sourceObj();
...@@ -190,6 +190,35 @@ class Chigo extends BaseController ...@@ -190,6 +190,35 @@ class Chigo extends BaseController
$this->show($result); $this->show($result);
} }
public function queryRepairBill()
{
$obj = $this->receiveObj();
$data = [
'appid' => '10001',
'account' => self::$testu,
'pwd' => self::$testp,
'input_date_begin' => '20161001',
'input_date_end' => '20161108',
'node_id' => '0200145',
'repair_date_begin' => '',
'repair_date_end' => '',
'repair_no' => '201609235',
];
$data['nonce_str'] = $obj->GetNonceStr();
$obj->SetValues($data);
$obj->SetSign();
$values = $obj->GetValues();
$url = self::$apiUrl . "api/chigo/queryRepairBill";
$result = curl_post($url, $values);
$result = json_decode($result['data'], true);
$this->show($result);
}
public function pickupAllSerNodeForUser() public function pickupAllSerNodeForUser()
{ {
$obj = $this->receiveObj(); $obj = $this->receiveObj();
......
...@@ -95,4 +95,25 @@ class ReceiveChigo extends Receive ...@@ -95,4 +95,25 @@ class ReceiveChigo extends Receive
$this->SetDefaultValues($dfields); $this->SetDefaultValues($dfields);
} }
public function CheckQueryRepairBillValues()
{
$fileds = [];
$this->CheckValues($fileds);
$dfields = [
'input_date_begin', //20161011
'input_date_end',
'node_id', //0200145
'repair_date_begin', //20161011
'repair_date_end',
'repair_no', //
];
$this->SetDefaultValues($dfields);
$this->values['input_date_begin'] = $this->DateFormatValues($this->values['input_date_begin']);
$this->values['input_date_end'] = $this->DateFormatValues($this->values['input_date_end']);
$this->values['repair_date_begin'] = $this->DateFormatValues($this->values['repair_date_begin']);
$this->values['repair_date_end'] = $this->DateFormatValues($this->values['repair_date_end']);
}
} }
\ No newline at end of file
...@@ -124,6 +124,27 @@ class SourceChigo extends Source ...@@ -124,6 +124,27 @@ class SourceChigo extends Source
return $data; return $data;
} }
/**
* 家用维修业务-业务-维修单录入-浏览
* @param $condition
* @return array
*/
public function QueryRepairBill($condition)
{
$post = [
'input_date_begin' => $condition['input_date_begin'], //输单日期: 2016-10-01
'input_date_end' => $condition['input_date_end'],
'node_id' => $condition['node_id'], //服务商, PickupAllSerNodeForUser->node_id
'repair_date_begin' => $condition['repair_date_begin'], //维修日期: 2016-10-01
'repair_date_end' => $condition['repair_date_end'],
'repair_no' => $condition['repair_no'], //维修单号: 201609235
'machine_model' => '&lt;10',
];
$data = $this->HandelAction('RepairBillAction', 'QueryRepairBill', $post);
return $data;
}
//服务商编号 //服务商编号
public function PickupAllSerNodeForUser() public function PickupAllSerNodeForUser()
...@@ -168,9 +189,9 @@ class SourceChigo extends Source ...@@ -168,9 +189,9 @@ class SourceChigo extends Source
$url = "http://58.254.204.86:9001/cus/SerNodeAction.do"; $url = "http://58.254.204.86:9001/cus/SerNodeAction.do";
break; break;
//家用安装业务-录入 //服务中心
case 'InstallBillAction': case 'SerCenterAction':
$url = "http://58.254.204.86:9001/cus/InstallBillAction.do"; $url = "http://58.254.204.86:9001/cus/SerCenterAction.do";
break; break;
//呼叫受理 //呼叫受理
...@@ -178,9 +199,9 @@ class SourceChigo extends Source ...@@ -178,9 +199,9 @@ class SourceChigo extends Source
$url = "http://58.254.204.86:9001/cus/CallAcceptAction.do"; $url = "http://58.254.204.86:9001/cus/CallAcceptAction.do";
break; break;
//服务中心 //家用安装业务-浏览
case 'SerCenterAction': case 'InstallBillAction':
$url = "http://58.254.204.86:9001/cus/SerCenterAction.do"; $url = "http://58.254.204.86:9001/cus/InstallBillAction.do";
break; break;
//家用安装业务-结算 //家用安装业务-结算
...@@ -188,6 +209,11 @@ class SourceChigo extends Source ...@@ -188,6 +209,11 @@ class SourceChigo extends Source
$url = "http://58.254.204.86:9001/cus/BrowseCloseAccount.do"; $url = "http://58.254.204.86:9001/cus/BrowseCloseAccount.do";
break; break;
//家用维修业务-浏览
case 'RepairBillAction':
$url = "http://58.254.204.86:9001/cus/RepairBillAction.do";
break;
default: default:
$url = ''; $url = '';
} }
......
...@@ -87,8 +87,18 @@ class SourceSuning extends Source ...@@ -87,8 +87,18 @@ class SourceSuning extends Source
$post['choosedtabNow'] = '0'; $post['choosedtabNow'] = '0';
$result = $this->ServiceOrderTab1($post); $result = $this->ServiceOrderTab1($post);
break; break;
case 2:
return_msg(false, '可重派未开发');
break;
case 3:
return_msg(false, '待核销未开发');
break;
default: default:
return_msg('false', 'type参数错误'); return_msg(false, 'type参数错误');
} }
return $result; return $result;
......
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