admin company add credit code
This commit is contained in:
@@ -76,6 +76,7 @@ class Company extends HD_Controller{
|
||||
'id' => $row['id'],
|
||||
'title' => $row['title'],
|
||||
'short' => $row['short'],
|
||||
'credit_code' => $row['credit_code'],
|
||||
'status' => $row['status'],
|
||||
);
|
||||
$action = '/sys/company/edit';
|
||||
@@ -84,6 +85,7 @@ class Company extends HD_Controller{
|
||||
$info = array(
|
||||
'title' => '',
|
||||
'short' => '',
|
||||
'credit_code' => '',
|
||||
'status' => 0,
|
||||
);
|
||||
$action = '/sys/company/add';
|
||||
@@ -117,6 +119,7 @@ class Company extends HD_Controller{
|
||||
$add = array(
|
||||
'title' => $title,
|
||||
'short' => $short,
|
||||
'credit_code' => $info['credit_code'] ? $info['credit_code'] : '',
|
||||
'status' => intval($info['status'])
|
||||
);
|
||||
|
||||
@@ -149,6 +152,7 @@ class Company extends HD_Controller{
|
||||
$upd = array(
|
||||
'title' => $title,
|
||||
'short' => $short ? $short : '',
|
||||
'credit_code' => $info['credit_code'] ? $info['credit_code'] : '',
|
||||
'status' => intval($info['status'])
|
||||
);
|
||||
|
||||
|
||||
@@ -7,6 +7,10 @@
|
||||
<label class="am-para-label"><span class="com-must-star">*</span>公司简称:</label>
|
||||
<div class="am-para-input"><input type="text" placeholder="请输入公司简称" name="short" v-model="info.short"/></div>
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label class="am-para-label">信用代码:</label>
|
||||
<div class="am-para-input"><input type="text" placeholder="请输入统一社会信用代码" name="credit_code" v-model="info.credit_code"/></div>
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label class="am-para-label">状态:</label>
|
||||
<div class="am-para-input wp50">
|
||||
|
||||
@@ -202,6 +202,7 @@ create table lc_sys_company (
|
||||
status tinyint(1) not null default '1' comment '状态:-1删除,0关闭,1开启',
|
||||
primary key (id)
|
||||
) ENGINE=INNODB DEFAULT CHARSET=UTF8MB4 COLLATE=UTF8MB4_0900_AI_CI COMMENT='公司管理';
|
||||
alter table lc_sys_company add column credit_code varchar(18) not null default '' comment '统一社会信用代码' after short;
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
|
||||
Reference in New Issue
Block a user