홍보확인서 추가
This commit is contained in:
@@ -128,17 +128,97 @@ class M701 extends BaseController
|
||||
|
||||
$codes = $this->codeModel->getCodeLists(['VRFCREQ_WAY', 'CONFIRM_RESULT_D11', 'CONFIRM_RESULT_T11', 'CONSULTANT_COMMENT', 'STEP_VERIFICATION', 'TEL_FAIL_CAUSE']); // 코드조회
|
||||
|
||||
$record = $this->model->getRecordInfo($id, '1'); // 홍보확인서
|
||||
$regist = $this->model->getRecordInfo($id, '2'); // 등기부등본
|
||||
$tel = $this->model->getRecordInfo($id, '3'); // 녹취파일
|
||||
$memo = $this->model->getMemo($id); // 메모
|
||||
|
||||
$data = $this->model->getDetail($id);
|
||||
|
||||
$history = $this->model->getHistory($id);
|
||||
|
||||
$this->data['codes'] = $codes;
|
||||
|
||||
$this->data['record'] = $record;
|
||||
$this->data['regist'] = $regist;
|
||||
$this->data['tel'] = $tel;
|
||||
$this->data['memo'] = $memo;
|
||||
|
||||
$this->data['data'] = $data;
|
||||
$this->data['history'] = $history;
|
||||
|
||||
|
||||
return view("pages/v2/m701/detail", $this->data);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 상태변경
|
||||
public function chgArticleStatus()
|
||||
{
|
||||
|
||||
try {
|
||||
|
||||
$usrLvl = session('usr_level');
|
||||
|
||||
if (in_array($usrLvl, ['1', '60', '70', '80'])) {
|
||||
|
||||
$data = [
|
||||
'vr_sq' => $this->request->getPost('vr_sq'),
|
||||
'stat_cd' => $this->request->getPost('stat_cd'),
|
||||
];
|
||||
|
||||
// update v2_chg_stat, v2_modify_info, v2_vrfc_req
|
||||
$this->model->chgArticleStatus($data);
|
||||
|
||||
} else {
|
||||
return $this->response->setJSON([
|
||||
'code' => '6',
|
||||
'msg' => '권한이 없습니다.'
|
||||
]);
|
||||
}
|
||||
|
||||
return $this->response->setJSON([
|
||||
'code' => '0',
|
||||
'msg' => 'success'
|
||||
]);
|
||||
|
||||
} catch (\Exception $e) {
|
||||
return $this->response->setJSON([
|
||||
'code' => '9',
|
||||
'msg' => $e->getMessage(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 전화정보>메모저장
|
||||
public function saveMemo()
|
||||
{
|
||||
try {
|
||||
|
||||
|
||||
$data = [
|
||||
'vr_sq' => $this->request->getPost('vr_sq'),
|
||||
'memo' => $this->request->getPost('memo'),
|
||||
];
|
||||
|
||||
// UPDATE v2_vrfc_req
|
||||
$this->model->saveMemo($data);
|
||||
|
||||
|
||||
return $this->response->setJSON([
|
||||
'code' => '0',
|
||||
'msg' => 'success'
|
||||
]);
|
||||
|
||||
} catch (\Exception $e) {
|
||||
return $this->response->setJSON([
|
||||
'code' => '9',
|
||||
'msg' => $e->getMessage(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user