切换导航条
此项目
正在载入...
登录
王智
/
spare
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
王智
5 years ago
提交
37d2f3f2029c5ab5c0a7db739273700cb3409e55
1 个父辈
ebe7f4fa
222
隐藏空白字符变更
内嵌
并排对比
正在显示
4 个修改的文件
包含
25 行增加
和
23 行删除
application/admin/lang/zh-cn/company.php
application/api/controller/Invoice.php
application/api/controller/Team.php
public/assets/js/backend/company.js
application/admin/lang/zh-cn/company.php
查看文件 @
37d2f3f
<?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'
=>
'行业'
];
...
...
application/api/controller/Invoice.php
查看文件 @
37d2f3f
...
...
@@ -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'
);
...
...
application/api/controller/Team.php
查看文件 @
37d2f3f
...
...
@@ -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
];
...
...
public/assets/js/backend/company.js
查看文件 @
37d2f3f
...
...
@@ -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')},
...
...
请
注册
或
登录
后发表评论