Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
gassafety
Commits
84e2dac6
Commit
84e2dac6
authored
Jul 07, 2021
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企业基本信息
parent
e9117445
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
291 additions
and
568 deletions
+291
-568
CommonController.java
...va/com/zehong/web/controller/common/CommonController.java
+4
-2
TEnterpriseInfo.java
...c/main/java/com/zehong/system/domain/TEnterpriseInfo.java
+4
-214
TEnterpriseInfoMapper.xml
...rc/main/resources/mapper/system/TEnterpriseInfoMapper.xml
+131
-0
index.vue
gassafety-web/src/components/FileUpload/index.vue
+24
-6
index.vue
gassafety-web/src/views/enterprise/info/index.vue
+128
-346
No files found.
gassafety-admin/src/main/java/com/zehong/web/controller/common/CommonController.java
View file @
84e2dac6
...
...
@@ -74,8 +74,10 @@ public class CommonController
// 上传文件路径
String
filePath
=
GasSafetyConfig
.
getUploadPath
();
// 上传并返回新文件名称
String
fileName
=
FileUploadUtils
.
upload
(
filePath
,
file
);
String
url
=
serverConfig
.
getUrl
()
+
fileName
;
// String fileName = FileUploadUtils.upload(filePath, file);
// String url = serverConfig.getUrl() + fileName;
String
fileName
=
file
.
getOriginalFilename
();
String
url
=
serverConfig
.
getUrl
()
+
FileUploadUtils
.
upload
(
filePath
,
file
);
AjaxResult
ajax
=
AjaxResult
.
success
();
ajax
.
put
(
"fileName"
,
fileName
);
ajax
.
put
(
"url"
,
url
);
...
...
gassafety-system/src/main/java/com/zehong/system/domain/TEnterpriseInfo.java
View file @
84e2dac6
...
...
@@ -20,11 +20,11 @@ public class TEnterpriseInfo extends BaseEntity
private
Long
infoId
;
/** 单位名称 */
@Excel
(
name
=
"
单位
名称"
)
@Excel
(
name
=
"
企业
名称"
)
private
String
unitName
;
/** 组织机构代码 */
@Excel
(
name
=
"
组织机构
代码"
)
@Excel
(
name
=
"
社会统一信用
代码"
)
private
String
orgCode
;
/** 营业执照图片路径 */
...
...
@@ -43,46 +43,6 @@ public class TEnterpriseInfo extends BaseEntity
@Excel
(
name
=
"注册地址"
)
private
String
regAddress
;
/** 监管分类大类 */
@Excel
(
name
=
"监管分类大类"
)
private
String
regulationBigType
;
/** 监管分类小类 */
@Excel
(
name
=
"监管分类小类"
)
private
String
regulationSmallType
;
/** 省份代码 */
@Excel
(
name
=
"省份代码"
)
private
String
provinceId
;
/** 省份名称 */
@Excel
(
name
=
"省份名称"
)
private
String
provinceName
;
/** 城市代码 */
@Excel
(
name
=
"城市代码"
)
private
String
cityId
;
/** 城市名称 */
@Excel
(
name
=
"城市名称"
)
private
String
cityName
;
/** 区县代码 */
@Excel
(
name
=
"区县代码"
)
private
String
countyId
;
/** 区县名称 */
@Excel
(
name
=
"区县名称"
)
private
String
countyName
;
/** 所属地区 */
@Excel
(
name
=
"所属地区"
)
private
String
areaName
;
/** 所属街道 */
@Excel
(
name
=
"所属街道"
)
private
String
streetName
;
/** 经度 */
@Excel
(
name
=
"经度"
)
private
BigDecimal
longitude
;
...
...
@@ -96,33 +56,13 @@ public class TEnterpriseInfo extends BaseEntity
private
String
legalPerson
;
/** 法定代表人手机 */
@Excel
(
name
=
"法定代表人
手机
"
)
@Excel
(
name
=
"法定代表人
电话
"
)
private
String
legalPersonPhone
;
/** 法定代表人座机号码 */
@Excel
(
name
=
"法定代表人座机号码"
)
private
String
legalPersonTelephone
;
/** 法人邮箱 */
@Excel
(
name
=
"法人邮箱"
)
private
String
legalPersonEmail
;
/** 授权书 */
@Excel
(
name
=
"授权书"
)
private
String
authorizeFile
;
/** 授权书文件原名 */
@Excel
(
name
=
"授权书文件原名"
)
private
String
authorizeFileOriginalName
;
/** 厂区边界 */
@Excel
(
name
=
"厂区边界"
)
private
String
boundary
;
/** 是否启用,0启用,1禁用 */
@Excel
(
name
=
"是否启用,0启用,1禁用"
)
private
String
isEnable
;
/** 创建人id */
@Excel
(
name
=
"创建人id"
)
private
String
createUserId
;
...
...
@@ -198,96 +138,6 @@ public class TEnterpriseInfo extends BaseEntity
{
return
regAddress
;
}
public
void
setRegulationBigType
(
String
regulationBigType
)
{
this
.
regulationBigType
=
regulationBigType
;
}
public
String
getRegulationBigType
()
{
return
regulationBigType
;
}
public
void
setRegulationSmallType
(
String
regulationSmallType
)
{
this
.
regulationSmallType
=
regulationSmallType
;
}
public
String
getRegulationSmallType
()
{
return
regulationSmallType
;
}
public
void
setProvinceId
(
String
provinceId
)
{
this
.
provinceId
=
provinceId
;
}
public
String
getProvinceId
()
{
return
provinceId
;
}
public
void
setProvinceName
(
String
provinceName
)
{
this
.
provinceName
=
provinceName
;
}
public
String
getProvinceName
()
{
return
provinceName
;
}
public
void
setCityId
(
String
cityId
)
{
this
.
cityId
=
cityId
;
}
public
String
getCityId
()
{
return
cityId
;
}
public
void
setCityName
(
String
cityName
)
{
this
.
cityName
=
cityName
;
}
public
String
getCityName
()
{
return
cityName
;
}
public
void
setCountyId
(
String
countyId
)
{
this
.
countyId
=
countyId
;
}
public
String
getCountyId
()
{
return
countyId
;
}
public
void
setCountyName
(
String
countyName
)
{
this
.
countyName
=
countyName
;
}
public
String
getCountyName
()
{
return
countyName
;
}
public
void
setAreaName
(
String
areaName
)
{
this
.
areaName
=
areaName
;
}
public
String
getAreaName
()
{
return
areaName
;
}
public
void
setStreetName
(
String
streetName
)
{
this
.
streetName
=
streetName
;
}
public
String
getStreetName
()
{
return
streetName
;
}
public
void
setLongitude
(
BigDecimal
longitude
)
{
this
.
longitude
=
longitude
;
...
...
@@ -324,15 +174,6 @@ public class TEnterpriseInfo extends BaseEntity
{
return
legalPersonPhone
;
}
public
void
setLegalPersonTelephone
(
String
legalPersonTelephone
)
{
this
.
legalPersonTelephone
=
legalPersonTelephone
;
}
public
String
getLegalPersonTelephone
()
{
return
legalPersonTelephone
;
}
public
void
setLegalPersonEmail
(
String
legalPersonEmail
)
{
this
.
legalPersonEmail
=
legalPersonEmail
;
...
...
@@ -342,42 +183,6 @@ public class TEnterpriseInfo extends BaseEntity
{
return
legalPersonEmail
;
}
public
void
setAuthorizeFile
(
String
authorizeFile
)
{
this
.
authorizeFile
=
authorizeFile
;
}
public
String
getAuthorizeFile
()
{
return
authorizeFile
;
}
public
void
setAuthorizeFileOriginalName
(
String
authorizeFileOriginalName
)
{
this
.
authorizeFileOriginalName
=
authorizeFileOriginalName
;
}
public
String
getAuthorizeFileOriginalName
()
{
return
authorizeFileOriginalName
;
}
public
void
setBoundary
(
String
boundary
)
{
this
.
boundary
=
boundary
;
}
public
String
getBoundary
()
{
return
boundary
;
}
public
void
setIsEnable
(
String
isEnable
)
{
this
.
isEnable
=
isEnable
;
}
public
String
getIsEnable
()
{
return
isEnable
;
}
public
void
setCreateUserId
(
String
createUserId
)
{
this
.
createUserId
=
createUserId
;
...
...
@@ -416,26 +221,11 @@ public class TEnterpriseInfo extends BaseEntity
.
append
(
"orgFileName"
,
getOrgFileName
())
.
append
(
"runAddress"
,
getRunAddress
())
.
append
(
"regAddress"
,
getRegAddress
())
.
append
(
"regulationBigType"
,
getRegulationBigType
())
.
append
(
"regulationSmallType"
,
getRegulationSmallType
())
.
append
(
"provinceId"
,
getProvinceId
())
.
append
(
"provinceName"
,
getProvinceName
())
.
append
(
"cityId"
,
getCityId
())
.
append
(
"cityName"
,
getCityName
())
.
append
(
"countyId"
,
getCountyId
())
.
append
(
"countyName"
,
getCountyName
())
.
append
(
"areaName"
,
getAreaName
())
.
append
(
"streetName"
,
getStreetName
())
.
append
(
"longitude"
,
getLongitude
())
.
append
(
"latitude"
,
getLatitude
())
.
append
(
"legalPerson"
,
getLegalPerson
())
.
append
(
"legalPersonPhone"
,
getLegalPersonPhone
())
.
append
(
"legalPersonTelephone"
,
getLegalPersonTelephone
())
.
append
(
"legalPersonEmail"
,
getLegalPersonEmail
())
.
append
(
"authorizeFile"
,
getAuthorizeFile
())
.
append
(
"authorizeFileOriginalName"
,
getAuthorizeFileOriginalName
())
.
append
(
"boundary"
,
getBoundary
())
.
append
(
"isEnable"
,
getIsEnable
())
.
append
(
"createUserId"
,
getCreateUserId
())
.
append
(
"updateUserId"
,
getUpdateUserId
())
.
append
(
"updateTime"
,
getUpdateTime
())
...
...
gassafety-system/src/main/resources/mapper/system/TEnterpriseInfoMapper.xml
0 → 100644
View file @
84e2dac6
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.zehong.system.mapper.TEnterpriseInfoMapper"
>
<resultMap
type=
"TEnterpriseInfo"
id=
"TEnterpriseInfoResult"
>
<result
property=
"infoId"
column=
"info_id"
/>
<result
property=
"unitName"
column=
"unit_name"
/>
<result
property=
"orgCode"
column=
"org_code"
/>
<result
property=
"orgFilePath"
column=
"org_file_path"
/>
<result
property=
"orgFileName"
column=
"org_file_name"
/>
<result
property=
"runAddress"
column=
"run_address"
/>
<result
property=
"regAddress"
column=
"reg_address"
/>
<result
property=
"longitude"
column=
"longitude"
/>
<result
property=
"latitude"
column=
"latitude"
/>
<result
property=
"legalPerson"
column=
"legal_person"
/>
<result
property=
"legalPersonPhone"
column=
"legal_person_phone"
/>
<result
property=
"legalPersonEmail"
column=
"legal_person_email"
/>
<result
property=
"createUserId"
column=
"create_user_id"
/>
<result
property=
"updateUserId"
column=
"update_user_id"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"remarks"
column=
"remarks"
/>
</resultMap>
<sql
id=
"selectTEnterpriseInfoVo"
>
select info_id, unit_name, org_code, org_file_path, org_file_name, run_address, reg_address, longitude, latitude, legal_person, legal_person_phone, legal_person_email, create_user_id, update_user_id, update_time, create_time, remarks from t_enterprise_info
</sql>
<select
id=
"selectTEnterpriseInfoList"
parameterType=
"TEnterpriseInfo"
resultMap=
"TEnterpriseInfoResult"
>
<include
refid=
"selectTEnterpriseInfoVo"
/>
<where>
<if
test=
"unitName != null and unitName != ''"
>
and unit_name like concat('%', #{unitName}, '%')
</if>
<if
test=
"orgCode != null and orgCode != ''"
>
and org_code = #{orgCode}
</if>
<if
test=
"orgFilePath != null and orgFilePath != ''"
>
and org_file_path = #{orgFilePath}
</if>
<if
test=
"orgFileName != null and orgFileName != ''"
>
and org_file_name like concat('%', #{orgFileName}, '%')
</if>
<if
test=
"runAddress != null and runAddress != ''"
>
and run_address = #{runAddress}
</if>
<if
test=
"regAddress != null and regAddress != ''"
>
and reg_address = #{regAddress}
</if>
<if
test=
"longitude != null "
>
and longitude = #{longitude}
</if>
<if
test=
"latitude != null "
>
and latitude = #{latitude}
</if>
<if
test=
"legalPerson != null and legalPerson != ''"
>
and legal_person = #{legalPerson}
</if>
<if
test=
"legalPersonPhone != null and legalPersonPhone != ''"
>
and legal_person_phone = #{legalPersonPhone}
</if>
<if
test=
"legalPersonEmail != null and legalPersonEmail != ''"
>
and legal_person_email = #{legalPersonEmail}
</if>
<if
test=
"createUserId != null and createUserId != ''"
>
and create_user_id = #{createUserId}
</if>
<if
test=
"updateUserId != null and updateUserId != ''"
>
and update_user_id = #{updateUserId}
</if>
<if
test=
"remarks != null and remarks != ''"
>
and remarks = #{remarks}
</if>
</where>
</select>
<select
id=
"selectTEnterpriseInfoById"
parameterType=
"Long"
resultMap=
"TEnterpriseInfoResult"
>
<include
refid=
"selectTEnterpriseInfoVo"
/>
where info_id = #{infoId}
</select>
<insert
id=
"insertTEnterpriseInfo"
parameterType=
"TEnterpriseInfo"
>
insert into t_enterprise_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"infoId != null"
>
info_id,
</if>
<if
test=
"unitName != null"
>
unit_name,
</if>
<if
test=
"orgCode != null"
>
org_code,
</if>
<if
test=
"orgFilePath != null"
>
org_file_path,
</if>
<if
test=
"orgFileName != null"
>
org_file_name,
</if>
<if
test=
"runAddress != null"
>
run_address,
</if>
<if
test=
"regAddress != null"
>
reg_address,
</if>
<if
test=
"longitude != null"
>
longitude,
</if>
<if
test=
"latitude != null"
>
latitude,
</if>
<if
test=
"legalPerson != null"
>
legal_person,
</if>
<if
test=
"legalPersonPhone != null"
>
legal_person_phone,
</if>
<if
test=
"legalPersonEmail != null"
>
legal_person_email,
</if>
<if
test=
"createUserId != null"
>
create_user_id,
</if>
<if
test=
"updateUserId != null"
>
update_user_id,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"remarks != null"
>
remarks,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"infoId != null"
>
#{infoId},
</if>
<if
test=
"unitName != null"
>
#{unitName},
</if>
<if
test=
"orgCode != null"
>
#{orgCode},
</if>
<if
test=
"orgFilePath != null"
>
#{orgFilePath},
</if>
<if
test=
"orgFileName != null"
>
#{orgFileName},
</if>
<if
test=
"runAddress != null"
>
#{runAddress},
</if>
<if
test=
"regAddress != null"
>
#{regAddress},
</if>
<if
test=
"longitude != null"
>
#{longitude},
</if>
<if
test=
"latitude != null"
>
#{latitude},
</if>
<if
test=
"legalPerson != null"
>
#{legalPerson},
</if>
<if
test=
"legalPersonPhone != null"
>
#{legalPersonPhone},
</if>
<if
test=
"legalPersonEmail != null"
>
#{legalPersonEmail},
</if>
<if
test=
"createUserId != null"
>
#{createUserId},
</if>
<if
test=
"updateUserId != null"
>
#{updateUserId},
</if>
<if
test=
"updateTime != null"
>
#{updateTime},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"remarks != null"
>
#{remarks},
</if>
</trim>
</insert>
<update
id=
"updateTEnterpriseInfo"
parameterType=
"TEnterpriseInfo"
>
update t_enterprise_info
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"unitName != null"
>
unit_name = #{unitName},
</if>
<if
test=
"orgCode != null"
>
org_code = #{orgCode},
</if>
<if
test=
"orgFilePath != null"
>
org_file_path = #{orgFilePath},
</if>
<if
test=
"orgFileName != null"
>
org_file_name = #{orgFileName},
</if>
<if
test=
"runAddress != null"
>
run_address = #{runAddress},
</if>
<if
test=
"regAddress != null"
>
reg_address = #{regAddress},
</if>
<if
test=
"longitude != null"
>
longitude = #{longitude},
</if>
<if
test=
"latitude != null"
>
latitude = #{latitude},
</if>
<if
test=
"legalPerson != null"
>
legal_person = #{legalPerson},
</if>
<if
test=
"legalPersonPhone != null"
>
legal_person_phone = #{legalPersonPhone},
</if>
<if
test=
"legalPersonEmail != null"
>
legal_person_email = #{legalPersonEmail},
</if>
<if
test=
"createUserId != null"
>
create_user_id = #{createUserId},
</if>
<if
test=
"updateUserId != null"
>
update_user_id = #{updateUserId},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"remarks != null"
>
remarks = #{remarks},
</if>
</trim>
where info_id = #{infoId}
</update>
<delete
id=
"deleteTEnterpriseInfoById"
parameterType=
"Long"
>
delete from t_enterprise_info where info_id = #{infoId}
</delete>
<delete
id=
"deleteTEnterpriseInfoByIds"
parameterType=
"String"
>
delete from t_enterprise_info where info_id in
<foreach
item=
"infoId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{infoId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
gassafety-web/src/components/FileUpload/index.vue
View file @
84e2dac6
...
...
@@ -3,12 +3,12 @@
<el-upload
:action=
"uploadFileUrl"
:before-upload=
"handleBeforeUpload"
:file-list=
"file
List
"
:file-list=
"file
Arr
"
:limit=
"1"
:on-error=
"handleUploadError"
:on-exceed=
"handleExceed"
:on-success=
"handleUploadSuccess"
:show-file-list=
"
fals
e"
:show-file-list=
"
tru
e"
:headers=
"headers"
class=
"upload-file-uploader"
ref=
"upload"
...
...
@@ -50,6 +50,10 @@ export default {
type
:
Number
,
default
:
5
,
},
fileArr
:
{
type
:
Array
,
default
:
[],
},
// 文件类型, 例如['png', 'jpg', 'jpeg']
fileType
:
{
type
:
Array
,
...
...
@@ -58,7 +62,7 @@ export default {
// 是否显示提示
isShowTip
:
{
type
:
Boolean
,
default
:
tru
e
default
:
fals
e
}
},
data
()
{
...
...
@@ -135,12 +139,26 @@ export default {
// 上传成功回调
handleUploadSuccess
(
res
,
file
)
{
this
.
$message
.
success
(
"上传成功"
);
this
.
$emit
(
"
input"
,
res
.
url
);
this
.
$emit
(
"
resFun"
,
res
);
},
// 删除文件
handleDelete
(
index
)
{
this
.
fileList
.
splice
(
index
,
1
);
this
.
$emit
(
"input"
,
''
);
// let that = this,
// param;
// param = file.response ? file.response.fileName.replace(/\\/g, "%")
// : file.response.url.replace(/\\/g, "%").slice(9);
// $.ajax({
// type: "GET",
// url: process.env.VUE_APP_BASE_API + "/common/deleteFile",
// data: {savePath: param},
// dataType: "json",
// success: function(data){
// if (data) that.$message.success("删除成功");
// else return false;
// }
// });
},
// 获取文件名称
getFileName
(
name
)
{
...
...
@@ -152,7 +170,7 @@ export default {
}
},
created
()
{
this
.
fileList
=
this
.
list
;
//
this.fileList = this.list;
},
};
</
script
>
...
...
gassafety-web/src/views/enterprise/info/index.vue
View file @
84e2dac6
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
v-show=
"showSearch"
label-width=
"
68
px"
>
<el-form-item
label=
"
单位
名称"
prop=
"unitName"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
v-show=
"showSearch"
label-width=
"
85
px"
>
<el-form-item
label=
"
企业
名称"
prop=
"unitName"
>
<el-input
v-model=
"queryParams.unitName"
placeholder=
"请输入单位名称"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"组织机构代码"
prop=
"orgCode"
>
<el-input
v-model=
"queryParams.orgCode"
placeholder=
"请输入组织机构代码"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"生产经营地址"
prop=
"runAddress"
>
<el-input
v-model=
"queryParams.runAddress"
placeholder=
"请输入生产经营地址"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"注册地址"
prop=
"regAddress"
>
<el-input
v-model=
"queryParams.regAddress"
placeholder=
"请输入注册地址"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"监管分类大类"
prop=
"regulationBigType"
>
<el-select
v-model=
"queryParams.regulationBigType"
placeholder=
"请选择监管分类大类"
clearable
size=
"small"
>
<el-option
label=
"请选择字典生成"
value=
""
/>
</el-select>
</el-form-item>
<el-form-item
label=
"监管分类小类"
prop=
"regulationSmallType"
>
<el-select
v-model=
"queryParams.regulationSmallType"
placeholder=
"请选择监管分类小类"
clearable
size=
"small"
>
<el-option
label=
"请选择字典生成"
value=
""
/>
</el-select>
</el-form-item>
<el-form-item
label=
"省份代码"
prop=
"provinceId"
>
<el-input
v-model=
"queryParams.provinceId"
placeholder=
"请输入省份代码"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"省份名称"
prop=
"provinceName"
>
<el-input
v-model=
"queryParams.provinceName"
placeholder=
"请输入省份名称"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"城市代码"
prop=
"cityId"
>
<el-input
v-model=
"queryParams.cityId"
placeholder=
"请输入城市代码"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"城市名称"
prop=
"cityName"
>
<el-input
v-model=
"queryParams.cityName"
placeholder=
"请输入城市名称"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"区县代码"
prop=
"countyId"
>
<el-input
v-model=
"queryParams.countyId"
placeholder=
"请输入区县代码"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"区县名称"
prop=
"countyName"
>
<el-input
v-model=
"queryParams.countyName"
placeholder=
"请输入区县名称"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"所属地区"
prop=
"areaName"
>
<el-input
v-model=
"queryParams.areaName"
placeholder=
"请输入所属地区"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"所属街道"
prop=
"streetName"
>
<el-input
v-model=
"queryParams.streetName"
placeholder=
"请输入所属街道"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"经度"
prop=
"longitude"
>
<el-input
v-model=
"queryParams.longitude"
placeholder=
"请输入经度"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"纬度"
prop=
"latitude"
>
<el-input
v-model=
"queryParams.latitude"
placeholder=
"请输入纬度"
placeholder=
"请输入企业名称"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
...
...
@@ -146,69 +19,6 @@
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"法定代表人手机"
prop=
"legalPersonPhone"
>
<el-input
v-model=
"queryParams.legalPersonPhone"
placeholder=
"请输入法定代表人手机"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"法定代表人座机号码"
prop=
"legalPersonTelephone"
>
<el-input
v-model=
"queryParams.legalPersonTelephone"
placeholder=
"请输入法定代表人座机号码"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"法人邮箱"
prop=
"legalPersonEmail"
>
<el-input
v-model=
"queryParams.legalPersonEmail"
placeholder=
"请输入法人邮箱"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"是否启用,0启用,1禁用"
prop=
"isEnable"
>
<el-input
v-model=
"queryParams.isEnable"
placeholder=
"请输入是否启用,0启用,1禁用"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"创建人id"
prop=
"createUserId"
>
<el-input
v-model=
"queryParams.createUserId"
placeholder=
"请输入创建人id"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"更新人id"
prop=
"updateUserId"
>
<el-input
v-model=
"queryParams.updateUserId"
placeholder=
"请输入更新人id"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"备注"
prop=
"remarks"
>
<el-input
v-model=
"queryParams.remarks"
placeholder=
"请输入备注"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
...
...
@@ -264,36 +74,22 @@
<el-table
v-loading=
"loading"
:data=
"infoList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"备注"
align=
"center"
prop=
"infoId"
/>
<el-table-column
label=
"单位名称"
align=
"center"
prop=
"unitName"
/>
<el-table-column
label=
"组织机构代码"
align=
"center"
prop=
"orgCode"
/>
<el-table-column
label=
"营业执照图片路径"
align=
"center"
prop=
"orgFilePath"
/>
<el-table-column
label=
"文件名称"
align=
"center"
prop=
"orgFileName"
/>
<el-table-column
label=
"生产经营地址"
align=
"center"
prop=
"runAddress"
/>
<el-table-column
type=
"index"
label=
"序号"
align=
"center"
/>
<el-table-column
label=
"企业名称"
align=
"center"
prop=
"unitName"
/>
<el-table-column
label=
"社会统一信用代码"
align=
"center"
prop=
"orgCode"
/>
<el-table-column
label=
"注册地址"
align=
"center"
prop=
"regAddress"
/>
<el-table-column
label=
"监管分类大类"
align=
"center"
prop=
"regulationBigType"
/>
<el-table-column
label=
"监管分类小类"
align=
"center"
prop=
"regulationSmallType"
/>
<el-table-column
label=
"省份代码"
align=
"center"
prop=
"provinceId"
/>
<el-table-column
label=
"省份名称"
align=
"center"
prop=
"provinceName"
/>
<el-table-column
label=
"城市代码"
align=
"center"
prop=
"cityId"
/>
<el-table-column
label=
"城市名称"
align=
"center"
prop=
"cityName"
/>
<el-table-column
label=
"区县代码"
align=
"center"
prop=
"countyId"
/>
<el-table-column
label=
"区县名称"
align=
"center"
prop=
"countyName"
/>
<el-table-column
label=
"所属地区"
align=
"center"
prop=
"areaName"
/>
<el-table-column
label=
"所属街道"
align=
"center"
prop=
"streetName"
/>
<el-table-column
label=
"经度"
align=
"center"
prop=
"longitude"
/>
<el-table-column
label=
"纬度"
align=
"center"
prop=
"latitude"
/>
<el-table-column
label=
"法定代表人"
align=
"center"
prop=
"legalPerson"
/>
<el-table-column
label=
"法定代表人手机"
align=
"center"
prop=
"legalPersonPhone"
/>
<el-table-column
label=
"法定代表人座机号码"
align=
"center"
prop=
"legalPersonTelephone"
/>
<el-table-column
label=
"法人邮箱"
align=
"center"
prop=
"legalPersonEmail"
/>
<el-table-column
label=
"授权书"
align=
"center"
prop=
"authorizeFile"
/>
<el-table-column
label=
"授权书文件原名"
align=
"center"
prop=
"authorizeFileOriginalName"
/>
<el-table-column
label=
"厂区边界"
align=
"center"
prop=
"boundary"
/>
<el-table-column
label=
"是否启用,0启用,1禁用"
align=
"center"
prop=
"isEnable"
/>
<el-table-column
label=
"创建人id"
align=
"center"
prop=
"createUserId"
/>
<el-table-column
label=
"更新人id"
align=
"center"
prop=
"updateUserId"
/>
<el-table-column
label=
"备注"
align=
"center"
prop=
"remarks"
/>
<el-table-column
label=
"营业执照"
align=
"center"
prop=
"orgFilePath"
>
<template
slot-scope=
"scope"
>
<span
class=
"dbtn"
@
click=
"checkFile(scope.row.orgFilePath)"
v-if=
"scope.row.orgFilePath != ''"
>
<i
class=
"el-icon el-icon-view"
></i>
查看/下载
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<el-button
...
...
@@ -323,99 +119,48 @@
/>
<!-- 添加或修改企业基本信息对话框 -->
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"500px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"80px"
>
<el-form-item
label=
"单位名称"
prop=
"unitName"
>
<el-input
v-model=
"form.unitName"
placeholder=
"请输入单位名称"
/>
</el-form-item>
<el-form-item
label=
"组织机构代码"
prop=
"orgCode"
>
<el-input
v-model=
"form.orgCode"
placeholder=
"请输入组织机构代码"
/>
</el-form-item>
<el-form-item
label=
"营业执照图片路径"
prop=
"orgFilePath"
>
<el-input
v-model=
"form.orgFilePath"
type=
"textarea"
placeholder=
"请输入内容"
/>
</el-form-item>
<el-form-item
label=
"文件名称"
prop=
"orgFileName"
>
<el-input
v-model=
"form.orgFileName"
type=
"textarea"
placeholder=
"请输入内容"
/>
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"850px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"135px"
>
<el-col>
<el-form-item
label=
"企业名称"
prop=
"unitName"
>
<el-input
v-model=
"form.unitName"
placeholder=
"请输入企业名称"
:style=
"{width: '100%'}"
></el-input>
</el-form-item>
<el-form-item
label=
"生产经营地址"
prop=
"runAddress"
>
<el-input
v-model=
"form.runAddress"
placeholder=
"请输入生产经营地址"
/>
</el-form-item>
<el-form-item
label=
"注册地址"
prop=
"regAddress"
>
<el-input
v-model=
"form.regAddress"
placeholder=
"请输入注册地址"
/>
</el-form-item>
<el-form-item
label=
"监管分类大类"
prop=
"regulationBigType"
>
<el-select
v-model=
"form.regulationBigType"
placeholder=
"请选择监管分类大类"
>
<el-option
label=
"请选择字典生成"
value=
""
/>
</el-select>
</el-form-item>
<el-form-item
label=
"监管分类小类"
prop=
"regulationSmallType"
>
<el-select
v-model=
"form.regulationSmallType"
placeholder=
"请选择监管分类小类"
>
<el-option
label=
"请选择字典生成"
value=
""
/>
</el-select>
</el-form-item>
<el-form-item
label=
"省份代码"
prop=
"provinceId"
>
<el-input
v-model=
"form.provinceId"
placeholder=
"请输入省份代码"
/>
</el-form-item>
<el-form-item
label=
"省份名称"
prop=
"provinceName"
>
<el-input
v-model=
"form.provinceName"
placeholder=
"请输入省份名称"
/>
</el-form-item>
<el-form-item
label=
"城市代码"
prop=
"cityId"
>
<el-input
v-model=
"form.cityId"
placeholder=
"请输入城市代码"
/>
</el-form-item>
<el-form-item
label=
"城市名称"
prop=
"cityName"
>
<el-input
v-model=
"form.cityName"
placeholder=
"请输入城市名称"
/>
</el-form-item>
<el-form-item
label=
"区县代码"
prop=
"countyId"
>
<el-input
v-model=
"form.countyId"
placeholder=
"请输入区县代码"
/>
</el-form-item>
<el-form-item
label=
"区县名称"
prop=
"countyName"
>
<el-input
v-model=
"form.countyName"
placeholder=
"请输入区县名称"
/>
</el-form-item>
<el-form-item
label=
"所属地区"
prop=
"areaName"
>
<el-input
v-model=
"form.areaName"
placeholder=
"请输入所属地区"
/>
</el-form-item>
<el-form-item
label=
"所属街道"
prop=
"streetName"
>
<el-input
v-model=
"form.streetName"
placeholder=
"请输入所属街道"
/>
</el-form-item>
<el-form-item
label=
"经度"
prop=
"longitude"
>
<el-input
v-model=
"form.longitude"
placeholder=
"请输入经度"
/>
</el-form-item>
<el-form-item
label=
"纬度"
prop=
"latitude"
>
<el-input
v-model=
"form.latitude"
placeholder=
"请输入纬度"
/>
</el-form-item>
<el-form-item
label=
"法定代表人"
prop=
"legalPerson"
>
<el-input
v-model=
"form.legalPerson"
placeholder=
"请输入法定代表人"
/>
</el-form-item>
<el-form-item
label=
"法定代表人手机"
prop=
"legalPersonPhone"
>
<el-input
v-model=
"form.legalPersonPhone"
placeholder=
"请输入法定代表人手机"
/>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"统一社会信用代码"
prop=
"orgCode"
>
<el-input
v-model=
"form.orgCode"
placeholder=
"请输入统一社会信用代码"
:style=
"{width: '100%'}"
></el-input>
</el-form-item>
<el-form-item
label=
"法定代表人座机号码"
prop=
"legalPersonTelephone"
>
<el-input
v-model=
"form.legalPersonTelephone"
placeholder=
"请输入法定代表人座机号码"
/>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"法人代表姓名"
prop=
"legalPerson"
>
<el-input
v-model=
"form.legalPerson"
placeholder=
"请输入法人代表姓名"
:style=
"{width: '100%'}"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"法人邮箱"
prop=
"legalPersonEmail"
>
<el-input
v-model=
"form.legalPersonEmail"
placeholder=
"请输入法人邮箱"
/>
</el-form-item>
<el-form-item
label=
"授权书"
>
<fileUpload
v-model=
"form.authorizeFile"
/>
<el-input
v-model=
"form.legalPersonEmail"
placeholder=
"请输入法人邮箱"
:style=
"{width: '100%'}"
></el-input>
</el-form-item>
<el-form-item
label=
"授权书文件原名"
prop=
"authorizeFileOriginalName"
>
<el-input
v-model=
"form.authorizeFileOriginalName"
type=
"textarea"
placeholder=
"请输入内容"
/>
</el-form-item>
<el-form-item
label=
"厂区边界"
prop=
"boundary"
>
<el-input
v-model=
"form.boundary"
type=
"textarea"
placeholder=
"请输入内容"
/>
</el-form-item>
<el-form-item
label=
"是否启用,0启用,1禁用"
prop=
"isEnable"
>
<el-input
v-model=
"form.isEnable"
placeholder=
"请输入是否启用,0启用,1禁用"
/>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"法人电话"
prop=
"legalPersonPhone"
>
<el-input
v-model=
"form.legalPersonPhone"
placeholder=
"请输入法人手机"
:style=
"{width: '100%'}"
></el-input>
</el-form-item>
<el-form-item
label=
"创建人id"
prop=
"createUserId"
>
<el-input
v-model=
"form.createUserId"
placeholder=
"请输入创建人id"
/>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"注册地址"
prop=
"regAddress"
>
<el-input
v-model=
"form.regAddress"
placeholder=
"请输入注册地址"
:style=
"{width: '100%'}"
></el-input>
</el-form-item>
<el-form-item
label=
"更新人id"
prop=
"updateUserId"
>
<el-input
v-model=
"form.updateUserId"
placeholder=
"请输入更新人id"
/>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"生产经营地址"
prop=
"runAddress"
>
<el-input
v-model=
"form.runAddress"
placeholder=
"请输入生产经营地址"
:style=
"{width: '100%'}"
></el-input>
</el-form-item>
<el-form-item
label=
"备注"
prop=
"remarks"
>
<el-input
v-model=
"form.remarks"
placeholder=
"请输入备注"
/>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"营业执照上传"
prop=
"orgFilePath"
>
<FileUpload
:fileArr=
"fileList"
@
resFun=
"getFileInfo"
/>
</el-form-item>
</el-col>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
...
...
@@ -424,7 +169,6 @@
</el-dialog>
</div>
</template>
<
script
>
import
{
listInfo
,
getInfo
,
delInfo
,
addInfo
,
updateInfo
,
exportInfo
}
from
"@/api/enterprise/info"
;
import
FileUpload
from
'@/components/FileUpload'
;
...
...
@@ -456,6 +200,7 @@ export default {
title
:
""
,
// 是否显示弹出层
open
:
false
,
fileList
:
[],
// 查询参数
queryParams
:
{
pageNum
:
1
,
...
...
@@ -466,34 +211,37 @@ export default {
orgFileName
:
null
,
runAddress
:
null
,
regAddress
:
null
,
regulationBigType
:
null
,
regulationSmallType
:
null
,
provinceId
:
null
,
provinceName
:
null
,
cityId
:
null
,
cityName
:
null
,
countyId
:
null
,
countyName
:
null
,
areaName
:
null
,
streetName
:
null
,
longitude
:
null
,
latitude
:
null
,
legalPerson
:
null
,
legalPersonPhone
:
null
,
legalPersonTelephone
:
null
,
legalPersonEmail
:
null
,
authorizeFile
:
null
,
authorizeFileOriginalName
:
null
,
boundary
:
null
,
isEnable
:
null
,
createUserId
:
null
,
updateUserId
:
null
,
remarks
:
null
},
// 表单参数
form
:
{},
form
:
{
orgFileName
:
""
,
orgFilePath
:
""
},
// 表单校验
rules
:
{
unitName
:
[{
required
:
true
,
message
:
'请输入企业名称'
,
trigger
:
'blur'
}],
orgCode
:
[{
required
:
true
,
message
:
'请输入统一社会信用代码'
,
trigger
:
'blur'
}],
legalPerson
:
[{
required
:
true
,
message
:
'请输入法人代表姓名'
,
trigger
:
'blur'
}],
}
};
},
...
...
@@ -510,10 +258,18 @@ export default {
this
.
loading
=
false
;
});
},
checkFile
(
url
)
{
window
.
open
(
""
+
url
,
"_blank"
);
},
getFileInfo
(
res
){
this
.
form
.
orgFilePath
=
res
.
url
;
this
.
form
.
orgFileName
=
res
.
fileName
;
},
// 取消按钮
cancel
()
{
this
.
open
=
false
;
this
.
reset
();
this
.
fileList
=
[];
},
// 表单重置
reset
()
{
...
...
@@ -525,26 +281,11 @@ export default {
orgFileName
:
null
,
runAddress
:
null
,
regAddress
:
null
,
regulationBigType
:
null
,
regulationSmallType
:
null
,
provinceId
:
null
,
provinceName
:
null
,
cityId
:
null
,
cityName
:
null
,
countyId
:
null
,
countyName
:
null
,
areaName
:
null
,
streetName
:
null
,
longitude
:
null
,
latitude
:
null
,
legalPerson
:
null
,
legalPersonPhone
:
null
,
legalPersonTelephone
:
null
,
legalPersonEmail
:
null
,
authorizeFile
:
null
,
authorizeFileOriginalName
:
null
,
boundary
:
null
,
isEnable
:
null
,
createUserId
:
null
,
updateUserId
:
null
,
updateTime
:
null
,
...
...
@@ -583,6 +324,12 @@ export default {
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"修改企业基本信息"
;
if
(
this
.
form
.
orgFileName
)
{
this
.
fileList
.
push
({
name
:
this
.
form
.
orgFileName
,
url
:
this
.
form
.
orgFilePath
,
});
}
});
},
/** 提交按钮 */
...
...
@@ -608,7 +355,8 @@ export default {
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
infoIds
=
row
.
infoId
||
this
.
ids
;
this
.
$confirm
(
'是否确认删除企业基本信息编号为"'
+
infoIds
+
'"的数据项?'
,
"警告"
,
{
const
unitName
=
row
.
unitName
||
this
.
unitName
;
this
.
$confirm
(
'是否确认删除"'
+
unitName
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
...
...
@@ -637,3 +385,37 @@ export default {
}
};
</
script
>
<
style
scoped
lang=
"scss"
>
.upload-file-uploader
{
margin-bottom
:
5px
;
}
.upload-file-list
.el-upload-list__item
{
border
:
1px
solid
#e4e7ed
;
line-height
:
2
;
margin-bottom
:
10px
;
position
:
relative
;
}
.upload-file-list
.ele-upload-list__item-content
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
color
:
inherit
;
}
.ele-upload-list__item-content-action
.el-link
{
margin-right
:
10px
;
}
.dbtn
{
display
:
inline-block
;
padding
:
2px
5px
;
cursor
:
pointer
;
border-radius
:
3px
;
border-style
:
solid
;
border-width
:
0
;
color
:
rgb
(
48
,
180
,
107
);
font-size
:
9px
;
}
.dbtn
:hover
{
border-width
:
1px
;
border-color
:
rgb
(
48
,
180
,
107
);
}
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment