|
@@ -7,6 +7,7 @@ use app\common\model\HumanEnterpriseApplyModel;
|
|
|
use app\common\model\HumanEnterpriseModel;
|
|
|
use app\common\model\HumanInstitutionApplyModel;
|
|
|
use app\common\model\HumanInstitutionModel;
|
|
|
+use app\common\service\QrcodeService;
|
|
|
use app\common\validate\HumanEnterpriseValidate;
|
|
|
use app\common\validate\HumanInstitutionValidate;
|
|
|
use think\exception\ValidateException;
|
|
@@ -19,19 +20,22 @@ class Human extends AdminBaseController
|
|
|
*/
|
|
|
public function institutionApply()
|
|
|
{
|
|
|
+ $file_url = QrcodeService::getQrcode('human_arrive', url('/mobile/human/arrive'), 600);
|
|
|
return view('', [
|
|
|
- 'status_list' => HumanInstitutionApplyModel::STATUS,
|
|
|
+ 'status_list' => HumanInstitutionApplyModel::STATUS,
|
|
|
+ 'is_arrive_list' => HumanInstitutionApplyModel::IS_ARRIVE,
|
|
|
+ 'file_url' => $file_url,
|
|
|
]);
|
|
|
}
|
|
|
|
|
|
public function listInstitutionApply()
|
|
|
{
|
|
|
- $map = $this->dealEqualInput(['status'], $this->dealLikeInput(['name']));
|
|
|
+ $map = $this->dealEqualInput(['status', 'is_arrive'], $this->dealLikeInput(['name']));
|
|
|
$list = HumanInstitutionApplyModel::where($map)
|
|
|
->order(['status' => 'asc'])
|
|
|
->limit(input('limit'))
|
|
|
->page(input('page'))
|
|
|
- ->append(['status_text'])
|
|
|
+ ->append(['status_text', 'is_arrive_text'])
|
|
|
->select();
|
|
|
$count = HumanInstitutionApplyModel::where($map)->count();
|
|
|
if ($count == 0) {
|
|
@@ -50,11 +54,11 @@ class Human extends AdminBaseController
|
|
|
|
|
|
public function institutionDetail()
|
|
|
{
|
|
|
- $id = input('id/d');
|
|
|
- $info = HumanInstitutionApplyModel::find($id);
|
|
|
+ $id = input('id/d');
|
|
|
+ $info = HumanInstitutionApplyModel::find($id);
|
|
|
|
|
|
return view('', [
|
|
|
- 'info' => $info,
|
|
|
+ 'info' => $info,
|
|
|
]);
|
|
|
}
|
|
|
|
|
@@ -63,19 +67,22 @@ class Human extends AdminBaseController
|
|
|
*/
|
|
|
public function enterpriseApply()
|
|
|
{
|
|
|
+ $file_url = QrcodeService::getQrcode('human_arrive', url('/mobile/human/arrive'), 600);
|
|
|
return view('', [
|
|
|
- 'status_list' => HumanEnterpriseApplyModel::STATUS,
|
|
|
+ 'status_list' => HumanEnterpriseApplyModel::STATUS,
|
|
|
+ 'is_arrive_list' => HumanEnterpriseApplyModel::IS_ARRIVE,
|
|
|
+ 'file_url' => $file_url,
|
|
|
]);
|
|
|
}
|
|
|
|
|
|
public function listEnterpriseApply()
|
|
|
{
|
|
|
- $map = $this->dealEqualInput(['status'], $this->dealLikeInput(['name']));
|
|
|
+ $map = $this->dealEqualInput(['status', 'is_arrive'], $this->dealLikeInput(['name']));
|
|
|
$list = HumanEnterpriseApplyModel::where($map)
|
|
|
->order(['status' => 'asc'])
|
|
|
->limit(input('limit'))
|
|
|
->page(input('page'))
|
|
|
- ->append(['status_text'])
|
|
|
+ ->append(['status_text', 'is_arrive_text'])
|
|
|
->select();
|
|
|
$count = HumanEnterpriseApplyModel::where($map)->count();
|
|
|
if ($count == 0) {
|
|
@@ -94,11 +101,11 @@ class Human extends AdminBaseController
|
|
|
|
|
|
public function enterpriseDetail()
|
|
|
{
|
|
|
- $id = input('id/d');
|
|
|
- $info = HumanEnterpriseApplyModel::find($id);
|
|
|
+ $id = input('id/d');
|
|
|
+ $info = HumanEnterpriseApplyModel::find($id);
|
|
|
|
|
|
return view('', [
|
|
|
- 'info' => $info,
|
|
|
+ 'info' => $info,
|
|
|
]);
|
|
|
}
|
|
|
|