liche update for admin company add wx_mchid
This commit is contained in:
@@ -77,6 +77,7 @@ class Company extends HD_Controller{
|
||||
'title' => $row['title'],
|
||||
'short' => $row['short'],
|
||||
'credit_code' => $row['credit_code'],
|
||||
'wx_mchid' => $row['wx_mchid'],
|
||||
'status' => $row['status'],
|
||||
);
|
||||
$action = '/sys/company/edit';
|
||||
@@ -86,6 +87,7 @@ class Company extends HD_Controller{
|
||||
'title' => '',
|
||||
'short' => '',
|
||||
'credit_code' => '',
|
||||
'wx_mchid' => '',
|
||||
'status' => 0,
|
||||
);
|
||||
$action = '/sys/company/add';
|
||||
@@ -120,6 +122,7 @@ class Company extends HD_Controller{
|
||||
'title' => $title,
|
||||
'short' => $short,
|
||||
'credit_code' => $info['credit_code'] ? $info['credit_code'] : '',
|
||||
'wx_mchid' => $info['wx_mchid'] ? $info['wx_mchid'] : '',
|
||||
'status' => intval($info['status'])
|
||||
);
|
||||
|
||||
@@ -153,6 +156,7 @@ class Company extends HD_Controller{
|
||||
'title' => $title,
|
||||
'short' => $short ? $short : '',
|
||||
'credit_code' => $info['credit_code'] ? $info['credit_code'] : '',
|
||||
'wx_mchid' => $info['wx_mchid'] ? $info['wx_mchid'] : '',
|
||||
'status' => intval($info['status'])
|
||||
);
|
||||
|
||||
|
||||
@@ -11,6 +11,10 @@
|
||||
<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"><input type="text" placeholder="请输入微信商户号" name="wx_mchid" v-model="info.wx_mchid"/></div>
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label class="am-para-label">状态:</label>
|
||||
<div class="am-para-input wp50">
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ create table lc_biz (
|
||||
u_time timestamp not null default current_timestamp on update current_timestamp comment '更新时间',
|
||||
primary key (id)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='商家表';
|
||||
alter table lc_biz add column type tinyint(1) not null default 0 comment '类型:1-直营店,2-二网,3-合作店' after floor;
|
||||
alter table lc_biz add column type tinyint(1) not null default 0 comment '类型:1-合伙店,2-加盟店,3-代理店' after floor;
|
||||
alter table lc_biz add column company_id int not null default 0 comment '公司ID' after type;
|
||||
|
||||
-- ----------------------------
|
||||
|
||||
@@ -204,6 +204,7 @@ create table lc_sys_company (
|
||||
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;
|
||||
alter table lc_sys_company add column wx_mchid varchar(10) not null default '' comment '微信商户号' after credit_code;
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
|
||||
Reference in New Issue
Block a user