Pārlūkot izejas kodu

企业服务-导入下载模板
岗位信息-导入下载模板

Liudijing 11 mēneši atpakaļ
vecāks
revīzija
4811b98735

+ 2 - 0
src/main/java/com/hz/employmentsite/services/impl/companyService/CompanyServiceImpl.java

@@ -187,6 +187,8 @@ public class CompanyServiceImpl implements CompanyService {
                 errorInfo += "请填写企业邮箱!";
             if (stringUtils.IsNullOrEmpty(item.frName))
                 errorInfo += "请填写法定代表人!";
+            if (stringUtils.IsNullOrEmpty(String.valueOf(item.insuredCount)))
+                errorInfo += "请填写企业参保人数!";
             if (stringUtils.IsNullOrEmpty(String.valueOf(item.validTime)))
                 errorInfo += "请填写营业执照有效期!";
             if (stringUtils.IsNullOrEmpty(String.valueOf(item.businScope)))

+ 1 - 1
src/main/resources/application.yml

@@ -6,7 +6,7 @@ server:
 spring:
   web:
     resources:
-      static-locations: file:D:\pengj\work\java\employmentsite\src\main\resources\static\
+      static-locations: file:D:\work\projects\EmploymentSite\siteproject\EmploymentSite\src\main\resources\static\
   datasource:
     name: employmentsitedb
     type: com.alibaba.druid.pool.DruidDataSource

BIN
src/main/resources/static/doc/template/企业信息导入模板.xlsx


BIN
src/main/resources/static/doc/template/岗位信息导入模板.xlsx


+ 3 - 1
vue/src/components/basic/excel/importExcel/importExcel.vue

@@ -125,10 +125,12 @@ export default defineComponent({
     }
 
     const downTemp = () => {
+      console.log(downTempLoad.value);
+      console.log(props.options);
+
       if (!downTempLoad.value) {
         if (props.options?.template?.url) {
           downTempLoad.value = true;
-
           exportExcel(props.options?.template?.url, props.options?.template?.params, props.options?.template?.tempFileName).then(() => {
             downTempLoad.value = false;
           }, () => {

+ 1 - 0
vue/src/views/companyService/company/index.vue

@@ -145,6 +145,7 @@ export default defineComponent({
         {cnName: '企业联系电话', enName: 'userMobile', width: 100},
         {cnName: '企业邮箱', enName: 'companyEmail', width: 100},
         {cnName: '法定代表人', enName: 'frName', width: 100},
+        {cnName: '企业参保人数', enName: 'insuredCount', width: 100},
         {cnName: '企业状态', enName: 'recordStatusName', width: 100},
         {cnName: '营业执照有效期', enName: 'validTime', width: 100},
         {cnName: '经营范围', enName: 'businScope', width: 100},