diff --git a/admin/controllers/sys/Company.php b/admin/controllers/sys/Company.php index b9740eca..0e230b42 100644 --- a/admin/controllers/sys/Company.php +++ b/admin/controllers/sys/Company.php @@ -78,6 +78,8 @@ class Company extends HD_Controller{ 'short' => $row['short'], 'credit_code' => $row['credit_code'], 'wx_mchid' => $row['wx_mchid'], + 'img_seal' => $row['img_seal'], + 'img_seal_url' => $row['img_seal'] ? build_qiniu_image_url($row['img_seal']) : '', 'status' => $row['status'], ); $action = '/sys/company/edit'; @@ -123,6 +125,7 @@ class Company extends HD_Controller{ 'short' => $short, 'credit_code' => $info['credit_code'] ? $info['credit_code'] : '', 'wx_mchid' => $info['wx_mchid'] ? $info['wx_mchid'] : '', + 'img_seal' => $info['img_seal'] ? $info['img_seal'] : '', 'status' => intval($info['status']) ); @@ -157,6 +160,7 @@ class Company extends HD_Controller{ 'short' => $short ? $short : '', 'credit_code' => $info['credit_code'] ? $info['credit_code'] : '', 'wx_mchid' => $info['wx_mchid'] ? $info['wx_mchid'] : '', + 'img_seal' => $info['img_seal'] ? $info['img_seal'] : '', 'status' => intval($info['status']) ); diff --git a/admin/views/sys/company/get.php b/admin/views/sys/company/get.php index db9ad63b..0913755a 100644 --- a/admin/views/sys/company/get.php +++ b/admin/views/sys/company/get.php @@ -15,6 +15,19 @@
+
+ +
+
+ + + +
+
+
@@ -52,6 +65,8 @@ } loading = 1; + vm.info.img_seal = $('#img-seal').val(); + $.ajax({ url: vm.action, type: 'post', diff --git a/sql/sys.sql b/sql/sys.sql index dca93981..3658cf12 100644 --- a/sql/sys.sql +++ b/sql/sys.sql @@ -204,7 +204,9 @@ 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; +alter table lc_sys_company add column wx_mchid varchar(10) not null default '' comment '微信商户号' after credit_code; +alter table lc_sys_company add column img_seal varchar(128) not null default '' comment '公章' after wx_mchid; + -- ----------------------------