作者 王智

222

<?php
return [
'Id' => 'ID',
'Company_holder' => '公司持有人',
'Company_name' => '公司名称',
'Credit' => '信用代码',
'Company_address' => '公司地址',
'Address_con' => '详细地址',
'Invoice_address' => '开票地址',
'Bank_name' => '银行名称',
'Bank_num' => '银行账号',
'Company_tel' => '公司电话',
'Type_id' => '类型',
'Industry_id' => '行业',
'Status' => '团队审核状态',
'Status 0' => '未通过',
'Status 1' => '通过',
'Status 2' => '审核中',
'Business_avatar' => '营业执照',
'Createtime' => '创建时间',
'Updatetime' => '更改时间',
'User.username' => '公司持有人',
'Type.type' => '类型',
'Id' => 'ID',
'Company_holder' => '公司持有人',
'Company_name' => '公司名称',
'Credit' => '信用代码',
'Paragraph' => '公司税号',
'Company_address' => '公司地址',
'Address_con' => '详细地址',
'Invoice_address' => '开票地址',
'Bank_name' => '银行名称',
'Bank_num' => '银行账号',
'Company_tel' => '公司电话',
'Type_id' => '类型',
'Industry_id' => '行业',
'Status' => '团队审核状态',
'Status 0' => '未通过',
'Status 1' => '通过',
'Status 2' => '审核中',
'Business_avatar' => '营业执照',
'Createtime' => '创建时间',
'Updatetime' => '更改时间',
'User.username' => '公司持有人',
'Type.type' => '类型',
'Industry.industry' => '行业'
];
... ...
... ... @@ -124,7 +124,6 @@ class Invoice extends Api
public function InvoiceDataRendering()
{
$user_id = $this->is_token($this->request->header());
$param = $this->request->param();
$is_company = Db::name('company')->where(['company_holder' => $user_id])->value('id');
if (empty($is_company)) {
$is_team = Db::name('team')->where(['user_id' => $user_id])->value('company_id');
... ...
... ... @@ -109,7 +109,6 @@ class Team extends Api
}
/**
* @ApiTitle (团队接口-申请公司团队)
* @ApiSummary (申请公司团队)
... ... @@ -126,6 +125,7 @@ class Team extends Api
* @ApiParams (name="company_tel", type="string", required=true, description="公司电话")
* @ApiParams (name="type_id", type="int", required=true, description="类型")
* @ApiParams (name="industry_id", type="int", required=true, description="行业")
* @ApiParams (name="paragraph", type="int", required=true, description="税号")
* @ApiParams (name="business_avatar", type="string", required=true, description="营业执照")
* @ApiReturnParams (name="code", type="integer", required=true, sample="0")
* @ApiReturnParams (name="msg", type="string", required=true, sample="返回成功")
... ... @@ -155,6 +155,7 @@ class Team extends Api
'type_id' => $param['type_id'],
'industry_id' => $param['industry_id'],
'business_avatar' => $param['business_avatar'],
'paragraph' => $param['paragraph'],
'status' => 2,
'company_holder' => $user_id
];
... ...
... ... @@ -34,6 +34,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
{field: 'bank_name', title: __('Bank_name')},
{field: 'bank_num', title: __('Bank_num')},
{field: 'credit', title: __('Credit')},
{field: 'paragraph', title: __('Paragraph')},
{field: 'company_tel', title: __('Company_tel')},
// {field: 'type_id', title: __('Type_id')},
// {field: 'industry_id', title: __('Industry_id')},
... ...