admin company add credit code

This commit is contained in:
xxb
2021-07-30 15:36:14 +08:00
committed by lccsw
parent c86d97bcc0
commit deabbe77c4
3 changed files with 9 additions and 0 deletions
+4
View File
@@ -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'])
);
+4
View File
@@ -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">
+1
View File
@@ -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;
-- ----------------------------