Commit 63890800b94203596db184481885a4e538836aff
1 parent
0ca2eb74
运输公司去掉营运单位,新增服务电话字段
Showing
3 changed files
with
29 additions
and
16 deletions
trash-ui/src/views/unit/enterprise/info.vue
| @@ -113,10 +113,8 @@ | @@ -113,10 +113,8 @@ | ||
| 113 | </el-form-item> | 113 | </el-form-item> |
| 114 | </el-col> | 114 | </el-col> |
| 115 | <el-col :span="7"> | 115 | <el-col :span="7"> |
| 116 | - <el-form-item label="经营单位" prop="parentId"> | ||
| 117 | - <el-select v-model="form.parentId" placeholder="请选择经营单位" clearable style="width: 100%;"> | ||
| 118 | - <el-option v-for="(item,index) in enterpriseList" :label="item.name" :value="item.id" :key="index"/> | ||
| 119 | - </el-select> | 116 | + <el-form-item label="服务电话" prop="servicePhone"> |
| 117 | + <el-input v-model="form.servicePhone" placeholder="请输入企业服务电话" :maxlength="11" show-word-limit/> | ||
| 120 | </el-form-item> | 118 | </el-form-item> |
| 121 | </el-col> | 119 | </el-col> |
| 122 | <el-col :span="7"> | 120 | <el-col :span="7"> |
| @@ -417,6 +415,14 @@ export default { | @@ -417,6 +415,14 @@ export default { | ||
| 417 | safetyPeopleName: [ | 415 | safetyPeopleName: [ |
| 418 | {required: true, message: "请输入安全管理人员", trigger: "blur"} | 416 | {required: true, message: "请输入安全管理人员", trigger: "blur"} |
| 419 | ], | 417 | ], |
| 418 | + servicePhone: [ | ||
| 419 | + {required: true, message: "请输入企业服务手机号码", trigger: "blur"}, | ||
| 420 | + { | ||
| 421 | + pattern: /^1(3|4|5|7|8|9)\d{9}$/, | ||
| 422 | + message: '手机号格式错误', | ||
| 423 | + trigger: 'change' | ||
| 424 | + } | ||
| 425 | + ], | ||
| 420 | }, | 426 | }, |
| 421 | areas:[], | 427 | areas:[], |
| 422 | // 企业道路运输经营许可证 | 428 | // 企业道路运输经营许可证 |
trash-unit/src/main/java/com/trash/enterprise/domain/TransportationEnterprise.java
| @@ -85,31 +85,24 @@ public class TransportationEnterprise extends BaseEntity | @@ -85,31 +85,24 @@ public class TransportationEnterprise extends BaseEntity | ||
| 85 | private String legalRepresentativePhone; | 85 | private String legalRepresentativePhone; |
| 86 | 86 | ||
| 87 | /** 安全管理人员 */ | 87 | /** 安全管理人员 */ |
| 88 | - @Excel(name = "安全管理人员") | ||
| 89 | private String safetyPeopleName; | 88 | private String safetyPeopleName; |
| 90 | 89 | ||
| 91 | /** 企业道路运输经营许可证 */ | 90 | /** 企业道路运输经营许可证 */ |
| 92 | - @Excel(name = "企业道路运输经营许可证") | ||
| 93 | private String transportPermission; | 91 | private String transportPermission; |
| 94 | 92 | ||
| 95 | /** 企业营业执照 */ | 93 | /** 企业营业执照 */ |
| 96 | - @Excel(name = "企业营业执照") | ||
| 97 | private String enterpriseBusinessLicense; | 94 | private String enterpriseBusinessLicense; |
| 98 | 95 | ||
| 99 | /** 安全员考核合格证明 */ | 96 | /** 安全员考核合格证明 */ |
| 100 | - @Excel(name = "安全员考核合格证明") | ||
| 101 | private String safetyOfficerQualificationCertificate; | 97 | private String safetyOfficerQualificationCertificate; |
| 102 | 98 | ||
| 103 | /** 企业负责人安全考核证 */ | 99 | /** 企业负责人安全考核证 */ |
| 104 | - @Excel(name = "企业负责人安全考核证") | ||
| 105 | private String safetyCertificate; | 100 | private String safetyCertificate; |
| 106 | 101 | ||
| 107 | /** 停车场全景图 */ | 102 | /** 停车场全景图 */ |
| 108 | - @Excel(name = "停车场全景图") | ||
| 109 | private String carParkPanorama; | 103 | private String carParkPanorama; |
| 110 | 104 | ||
| 111 | /** 经营单位 */ | 105 | /** 经营单位 */ |
| 112 | - @Excel(name = "经营单位") | ||
| 113 | private String businessUnit; | 106 | private String businessUnit; |
| 114 | 107 | ||
| 115 | /** 审批状态,0=审批中,1=审批通过,2=被驳回 */ | 108 | /** 审批状态,0=审批中,1=审批通过,2=被驳回 */ |
| @@ -117,7 +110,6 @@ public class TransportationEnterprise extends BaseEntity | @@ -117,7 +110,6 @@ public class TransportationEnterprise extends BaseEntity | ||
| 117 | private Integer status; | 110 | private Integer status; |
| 118 | 111 | ||
| 119 | /** 父公司id */ | 112 | /** 父公司id */ |
| 120 | - @Excel(name = "父公司id") | ||
| 121 | private Long parentId; | 113 | private Long parentId; |
| 122 | 114 | ||
| 123 | /** 公司类型(0经营单位,1运输公司) */ | 115 | /** 公司类型(0经营单位,1运输公司) */ |
| @@ -125,14 +117,24 @@ public class TransportationEnterprise extends BaseEntity | @@ -125,14 +117,24 @@ public class TransportationEnterprise extends BaseEntity | ||
| 125 | private Integer companyType; | 117 | private Integer companyType; |
| 126 | 118 | ||
| 127 | /** 信用状态 */ | 119 | /** 信用状态 */ |
| 128 | - @Excel(name = "信用状态") | ||
| 129 | private String creditStatus; | 120 | private String creditStatus; |
| 130 | 121 | ||
| 131 | /** 二维码 */ | 122 | /** 二维码 */ |
| 132 | - @Excel(name = "二维码") | ||
| 133 | private String qrCode; | 123 | private String qrCode; |
| 134 | 124 | ||
| 135 | - public void setId(Long id) | 125 | + /** 企业服务电话 */ |
| 126 | + @Excel(name = "公司类型") | ||
| 127 | + private String servicePhone; | ||
| 128 | + | ||
| 129 | + public String getServicePhone() { | ||
| 130 | + return servicePhone; | ||
| 131 | + } | ||
| 132 | + | ||
| 133 | + public void setServicePhone(String servicePhone) { | ||
| 134 | + this.servicePhone = servicePhone; | ||
| 135 | + } | ||
| 136 | + | ||
| 137 | + public void setId(Long id) | ||
| 136 | { | 138 | { |
| 137 | this.id = id; | 139 | this.id = id; |
| 138 | } | 140 | } |
trash-unit/src/main/resources/mapper/unit/TransportationEnterpriseMapper.xml
| @@ -38,10 +38,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -38,10 +38,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 38 | <result property="companyType" column="company_type" /> | 38 | <result property="companyType" column="company_type" /> |
| 39 | <result property="creditStatus" column="credit_status" /> | 39 | <result property="creditStatus" column="credit_status" /> |
| 40 | <result property="qrCode" column="qr_code" /> | 40 | <result property="qrCode" column="qr_code" /> |
| 41 | + <result property="servicePhone" column="service_phone" /> | ||
| 41 | </resultMap> | 42 | </resultMap> |
| 42 | 43 | ||
| 43 | <sql id="selectTransportationEnterpriseVo"> | 44 | <sql id="selectTransportationEnterpriseVo"> |
| 44 | - select id, name, abbreviation, registration_area, transport_permission_date, enter_date, business_license_date, office_address, parking_lot_location, parking_area, (select count(id) from car_info where company_id = te.id) car_number, safety_manager_name, safety_manager_phone, social_uniform_credit_code_number, legal_representative, legal_representative_phone, safety_people_name, remark, transport_permission, enterprise_business_license, safety_officer_qualification_certificate, safety_certificate, car_park_panorama, business_unit, status, create_time, create_by, update_time, update_by, parent_id, company_type, credit_status, qr_code from transportation_enterprise te | 45 | + select id, name, abbreviation, registration_area, transport_permission_date, enter_date, business_license_date, office_address, parking_lot_location, parking_area, (select count(id) from car_info where company_id = te.id) car_number, safety_manager_name, safety_manager_phone, social_uniform_credit_code_number, legal_representative, legal_representative_phone, safety_people_name, remark, transport_permission, enterprise_business_license, safety_officer_qualification_certificate, safety_certificate, car_park_panorama, business_unit, status, create_time, create_by, update_time, update_by, parent_id, company_type, credit_status, qr_code,service_phone from transportation_enterprise te |
| 45 | </sql> | 46 | </sql> |
| 46 | 47 | ||
| 47 | <select id="selectTransportationEnterpriseList" parameterType="TransportationEnterprise" resultMap="TransportationEnterpriseResult"> | 48 | <select id="selectTransportationEnterpriseList" parameterType="TransportationEnterprise" resultMap="TransportationEnterpriseResult"> |
| @@ -74,6 +75,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -74,6 +75,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 74 | <if test="companyType != null "> and company_type = #{companyType}</if> | 75 | <if test="companyType != null "> and company_type = #{companyType}</if> |
| 75 | <if test="creditStatus != null and creditStatus != ''"> and credit_status = #{creditStatus}</if> | 76 | <if test="creditStatus != null and creditStatus != ''"> and credit_status = #{creditStatus}</if> |
| 76 | <if test="qrCode != null and qrCode != ''"> and qr_code = #{qrCode}</if> | 77 | <if test="qrCode != null and qrCode != ''"> and qr_code = #{qrCode}</if> |
| 78 | + <if test="servicePhone != null and servicePhone != ''"> and service_phone = #{servicePhone}</if> | ||
| 77 | </where> | 79 | </where> |
| 78 | </select> | 80 | </select> |
| 79 | 81 | ||
| @@ -117,6 +119,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -117,6 +119,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 117 | <if test="companyType != null">company_type,</if> | 119 | <if test="companyType != null">company_type,</if> |
| 118 | <if test="creditStatus != null">credit_status,</if> | 120 | <if test="creditStatus != null">credit_status,</if> |
| 119 | <if test="qrCode != null">qr_code,</if> | 121 | <if test="qrCode != null">qr_code,</if> |
| 122 | + <if test="servicePhone != null">service_phone,</if> | ||
| 120 | </trim> | 123 | </trim> |
| 121 | <trim prefix="values (" suffix=")" suffixOverrides=","> | 124 | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| 122 | <if test="name != null">#{name},</if> | 125 | <if test="name != null">#{name},</if> |
| @@ -151,6 +154,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -151,6 +154,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 151 | <if test="companyType != null">#{companyType},</if> | 154 | <if test="companyType != null">#{companyType},</if> |
| 152 | <if test="creditStatus != null">#{creditStatus},</if> | 155 | <if test="creditStatus != null">#{creditStatus},</if> |
| 153 | <if test="qrCode != null">#{qrCode},</if> | 156 | <if test="qrCode != null">#{qrCode},</if> |
| 157 | + <if test="servicePhone != null">#{servicePhone},</if> | ||
| 154 | </trim> | 158 | </trim> |
| 155 | </insert> | 159 | </insert> |
| 156 | 160 | ||
| @@ -189,6 +193,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -189,6 +193,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 189 | <if test="companyType != null">company_type = #{companyType},</if> | 193 | <if test="companyType != null">company_type = #{companyType},</if> |
| 190 | <if test="creditStatus != null">credit_status = #{creditStatus},</if> | 194 | <if test="creditStatus != null">credit_status = #{creditStatus},</if> |
| 191 | <if test="qrCode != null">qr_code = #{qrCode},</if> | 195 | <if test="qrCode != null">qr_code = #{qrCode},</if> |
| 196 | + <if test="servicePhone != null">service_phone = #{servicePhone},</if> | ||
| 192 | </trim> | 197 | </trim> |
| 193 | where id = #{id} | 198 | where id = #{id} |
| 194 | </update> | 199 | </update> |