liche update for admin company add img_seal
This commit is contained in:
@@ -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'])
|
||||
);
|
||||
|
||||
|
||||
@@ -15,6 +15,19 @@
|
||||
<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" style="margin-bottom: 0">
|
||||
<label class="am-para-label">公章:</label>
|
||||
<div class="am-para-input">
|
||||
<div class="am-form-group am-form-file">
|
||||
<button type="button" class="am-btn am-btn-default am-btn-sm"
|
||||
data-file="1" data-type="jpg,png,gif,png,jpeg"
|
||||
data-uptype="qiniu" data-field="img_seal"><i class="am-icon-cloud-upload"></i> 选择图片(200x200)
|
||||
</button>
|
||||
<input type="hidden" id="img-seal" name="img_seal" value="<?= $info['img_seal'] ?>" class="layui-input">
|
||||
<img data-tips-image style="height:auto;max-height:32px;max-width:32px" :src="info.img_seal_url"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label class="am-para-label">状态:</label>
|
||||
<div class="am-para-input wp50">
|
||||
@@ -52,6 +65,8 @@
|
||||
}
|
||||
loading = 1;
|
||||
|
||||
vm.info.img_seal = $('#img-seal').val();
|
||||
|
||||
$.ajax({
|
||||
url: vm.action,
|
||||
type: 'post',
|
||||
|
||||
+3
-1
@@ -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;
|
||||
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
|
||||
Reference in New Issue
Block a user