LiGuang 2 rokov pred
rodič
commit
0eeef04f98

+ 19 - 17
src/views/system/SysPositionList.vue

@@ -138,25 +138,27 @@ import JTreeSelect from '@/components/jeecg/JTreeSelect'
         },
         // 表头
         columns: [
-          {
-            title: '#',
-            dataIndex: '',
-            key: 'rowIndex',
-            width: 60,
-            align: 'center',
-            customRender: function (t, r, index) {
-              return parseInt(index) + 1
-            }
-          },
+          // {
+          //   title: '#',
+          //   dataIndex: '',
+          //   key: 'rowIndex',
+          //   width: 60,
+          //   align: 'center',
+          //   customRender: function (t, r, index) {
+          //     return parseInt(index) + 1
+          //   }
+          // },
           {
             title: '职位编码',
             align: 'center',
-            dataIndex: 'code'
+            dataIndex: 'code',
+            sorter: true
           },
           {
             title: '职位名称',
             align: 'center',
-            dataIndex: 'name'
+            dataIndex: 'name',
+            sorter: true
           },
           // {
           //   title: '职级',
@@ -173,11 +175,11 @@ import JTreeSelect from '@/components/jeecg/JTreeSelect'
             align: 'center',
             dataIndex: 'deptName2'
           },
-          {
-            title: '三级部门',
-            align: 'center',
-            dataIndex: 'deptName3'
-          },
+          // {
+          //   title: '三级部门',
+          //   align: 'center',
+          //   dataIndex: 'deptName3'
+          // },
           // {
           //   title: '公司id',
           //   align: 'center',

+ 61 - 13
src/views/system/UserChange.vue

@@ -39,31 +39,57 @@
         </a-row>
         <template v-if="toggleSearchStatus">
           <a-row>
-          <a-col :md="6" :sm="8">
-            <a-form-item label="离职日期">
-              <a-date-picker valueFormat="YYYY-MM-DD HH:mm:ss"  showTime format='YYYY-MM-DD' v-model="queryParam.newDate"/>
-            </a-form-item>
-          </a-col>
+            <a-col :md="6" :sm="8">
+              <a-form-item label="离职日期">
+                    <a-range-picker
+                      style="width: 210px"
+                      format="YYYY-MM-DD"
+                      :placeholder="['开始时间', '结束时间']"
+                      @change="onDateChanges"
+                      
+                    />
+              </a-form-item>
+            </a-col>
+            <a-col :md="6" :sm="12" >
+              <a-form-item label="人员类别">
+                <j-multi-select-tag
+                v-model="queryParam.spName" placeholder="请选择人员类别"
+                  dictCode="category"/>
+                  </j-multi-select-tag>
+              </a-form-item>
+            </a-col>
+          
           </a-row>
         </template>
         <a-row :gutter="24" v-if="isShow==2||isShow=='2'">
-          <a-col :xl="6" :lg="7" :md="8" :sm="24" >
+          <a-col :xl="6" :lg="7" :md="5" :sm="24" >
             <a-form-item label="姓名">
               <j-input placeholder="请输入姓名" v-model="queryParam2.realname"></j-input>
             </a-form-item>
           </a-col>
-          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+          <a-col :xl="6" :lg="7" :md="5" :sm="24">
             <a-form-item label="类型">
               <j-dict-select-tag  v-model="queryParam2.type" placeholder="请选择类型"
                 dictCode="change_type" />
             </a-form-item>
           </a-col>
-          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+          <a-col :xl="6" :lg="7" :md="5" :sm="24">
             <a-form-item label="状态">
              <j-dict-select-tag  v-model="queryParam2.state" placeholder="请选择类型"
                dictCode="state" />
             </a-form-item>
           </a-col>
+          <a-col :md="6" :sm="5">
+            <a-form-item label="生效日期">
+                  <a-range-picker
+                    style="width: 210px"
+                    format="YYYY-MM-DD"
+                    :placeholder="['开始时间', '结束时间']"
+                    @change="onDateChange"
+                    
+                  />
+            </a-form-item>
+          </a-col>
           <a-col :xl="6" :lg="7" :md="8" :sm="24">
             <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
               <a-button type="primary" @click="searchQuerys()" icon="search">查询</a-button>
@@ -185,34 +211,50 @@
         },
         // 表头
         columns: [
+          {
+            title: '工号',
+            align: "center",
+            dataIndex: 'workNo',
+            sorter: true
+          },
           {
             title: '姓名',
             align: "center",
-            dataIndex: 'userName'
+            dataIndex: 'userName',
+            sorter: true
           },
           {
             title: '部门',
             align: "center",
             dataIndex: 'dept',
             ellipsis: true,
+            sorter: true
           },
           {
             title: '职位',
             align: "center",
-            dataIndex: 'post'
+            dataIndex: 'post',
+            sorter: true
           },
           {
+            title: '人员类型',
+            align: "center",
+            dataIndex: 'category_dictText',
+            sorter: true
+          },
+         /* {
             title: '预计离职日期',
             align: "center",
             dataIndex: 'endDate',
             customRender: function(t, r, index) {
               return moment(t).format('YYYY-MM-DD');
             }
-          },
+          }, */
           {
             title: '实际离职日期',
             align: "center",
             dataIndex: 'newDate',
+            sorter: true,
             customRender: function(t, r, index) {
               if(t==""||t==null){
                 return "-";
@@ -226,20 +268,22 @@
             title: '备注',
             align: "center",
             dataIndex: 'remarks',
+            sorter: true,
             ellipsis: true,
           },
-          {
+          /* {
             title: '提交时间',
             align: "center",
             dataIndex: 'applyTime',
             customRender: function(t, r, index) {
               return moment(t).format('YYYY-MM-DD');
             }
-          },
+          }, */
           {
             title: '状态',
             align: "center",
             dataIndex: 'state_dictText',
+            sorter: true,
             ellipsis: true,
             scopedSlots: {
               customRender: 'types'
@@ -362,6 +406,10 @@
       }
     },
     methods: {
+      onDateChanges: function (value, dateString) {
+        this.queryParam.spNo=dateString[0]+","+dateString[1];
+      
+      },
       modalFormOks(formData) {
         if (formData.departIdList != null && formData.departIdList.length > 0) {
           for (let i = 0; i < formData.departIdList.length; i++) {

+ 8 - 6
src/views/system/UserList.vue

@@ -43,7 +43,7 @@
           </a-col>
         </a-row>
         <template v-if="toggleSearchStatus">
-          <!-- <a-row :gutter="24">
+          <a-row :gutter="24">
           
             <a-col :md="6" :sm="8">
               <a-form-item label="性别">
@@ -77,7 +77,7 @@
                     />
                   </a-form-item>
                 </a-col>
-          </a-row> -->
+          </a-row>
           <a-row :gutter="24">
           <a-col :md="6" :sm="12" style="width: 50%;">
             <a-form-item label="人员类别">
@@ -111,7 +111,7 @@
       <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel" v-has='"user:import"'>
         <a-button type="primary" icon="import">员工导入</a-button>
       </a-upload>
-      <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrls" @change="handleImportExcels" v-has='"userchange:import"'>
+      <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrls" @change="handleImportExcels" >
         <a-button type="primary" icon="import">薪资导入</a-button>
       </a-upload>
       <a-button type="primary" icon="hdd" @click="recycleBinVisible=true" v-has='"user:recovery"'>回收站</a-button>
@@ -261,7 +261,9 @@ import JSelectDepart from '@/components/jeecgbiz/JSelectDepart'
           empStatus:"10",
           categorys:null,
           orgCodeTxt:null,
-          entryDate
+          rzDate:null,
+          syDate:null,
+          sex:null
         },
        
         departNames:null,
@@ -437,10 +439,10 @@ import JSelectDepart from '@/components/jeecgbiz/JSelectDepart'
       //   this.selectionRows = selectionRows;
       // },
       onDateChange: function (value, dateString) {
-        this.queryParam.entryDate=dateString[0]+","+dateString[1];
+        this.queryParam.rzDate=dateString[0]+","+dateString[1];
       },
       onDateChanges: function (value, dateString) {
-        this.queryParam.trialEndDate=dateString[0]+","+dateString[1];
+        this.queryParam.syDate=dateString[0]+","+dateString[1];
       
       },
       handleExportXltx(){

+ 4 - 4
src/views/system/modules/StatutoryLeaveModal.vue

@@ -30,10 +30,10 @@
         <a-form-item
           :labelCol="labelCol"
           :wrapperCol="wrapperCol"
-          label="是否为法">
-          <a-select  placeholder="请选择假期类型" v-model="isF" :getPopupContainer= "(target) => target.parentNode">
-            <a-select-option value="1">是</a-select-option>
+          label="法">
+          <a-select  placeholder="请选择" v-model="isF" :getPopupContainer= "(target) => target.parentNode">
             <a-select-option value="2">否</a-select-option>
+            <a-select-option value="1">是</a-select-option>
           </a-select>
         </a-form-item>
         <a-form-item
@@ -73,7 +73,7 @@
         visible: false,
         type:"2",
         id:null,
-        isF:"1",
+        isF:"2",
         model: {},
         date:null,
         labelCol: {

+ 3 - 1
src/views/system/modules/UserDetailModal.vue

@@ -133,7 +133,7 @@
             </a-form-item>
 
           </a-col>
-          <a-col :md="6" :sm="8" :lg="8">
+          <a-col :md="6" :sm="8" :lg="8" v-if="isatt=='0'||isatt==0">
             <a-form-item label="上班类型" :labelCol="labelCol" :wrapperCol="wrapperCol">
               <j-dict-select-tag style="width: 70%" v-decorator="['type']" disabled :triggerChange="true" dictCode="type" />
             </a-form-item>
@@ -408,6 +408,7 @@ const uidGenerator=()=>{
         dataContract: [],
         selectionRows: [],
         dataSources2: [],
+        isatt:'0',
         workMoth:0,
         departDisabled: false, //是否是我的部门调用该页面
         roleDisabled: false, //是否是角色维护调用该页面
@@ -1028,6 +1029,7 @@ const uidGenerator=()=>{
           this.isQuit = true;
         }if(record.isAttendance!=null&& record.isAttendance != ""){
             this.isAttendance=record.isAttendance;
+            this.isatt=record.isAttendance;
         }if(record.workMoth!=null&&record.workMoth!=""){
           this.worMoth=record.workMoth;
           this.workMoth=record.workMoth - 0+this.moth - 0;

+ 25 - 14
src/views/system/modules/UserModal.vue

@@ -123,13 +123,16 @@
               <a-input style="width: 70%"  :maxLength="30" placeholder="请输入开户行" v-decorator="['bankAddr', {initialValue:'招商银行'}]" />
             </a-form-item>
           </a-col>
-          <a-col :md="6" :sm="8" :lg="8" >
-            <a-form-item label="上班类型" :labelCol="labelCol" :wrapperCol="wrapperCol">
-              <j-dict-select-tag style="width: 70%"  v-decorator="['type', {initialValue:2,rules: [{ required: true, message: '请选择类型'}]}]" :triggerChange="true" placeholder="请选择上班类型"
-                dictCode="type" />
-            </a-form-item>
           
+          <a-col :md="6" :sm="8" :lg="8">
+            <a-form-item label="雇佣状态" :labelCol="labelCol" :wrapperCol="wrapperCol">
+              <j-dict-select-tag style="width: 70%"  v-decorator="[ 'employmentStatus', {initialValue:40,rules: [{ required: true, message: '请选择状态'}]}]" placeholder="请选择人员类别"
+                dictCode="employmentStatus" :triggerChange="true"/>
+              
+            </a-form-item>
           </a-col>
+          
+          
         </a-row>
 
         <a-row>
@@ -242,22 +245,23 @@
         <a-row>
           <a-col :md="6" :sm="8" :lg="8">
             <a-form-item label="是否打卡" :labelCol="labelCol" :wrapperCol="wrapperCol">
-              <a-select style="width: 70%"   v-decorator="['isAttendance',{initialValue:'0'}]" placeholder="请选择"
-                :getPopupContainer="(target) => target.parentNode">
+              <a-select style="width: 70%"  @change="isAttes"   v-decorator="['isAttendance',{initialValue:'0'}]" placeholder="请选择"
+                :getPopupContainer="(target) => target.parentNode" >
                 <a-select-option value="0">是</a-select-option>
                 <a-select-option value="1">否</a-select-option>
               </a-select>
             </a-form-item>
 
           </a-col>
-          
-          <a-col :md="6" :sm="8" :lg="8">
-            <a-form-item label="雇佣状态" :labelCol="labelCol" :wrapperCol="wrapperCol">
-              <j-dict-select-tag style="width: 70%"  v-decorator="[ 'employmentStatus', {initialValue:40,rules: [{ required: true, message: '请选择状态'}]}]" placeholder="请选择人员类别"
-                dictCode="employmentStatus" :triggerChange="true"/>
-              
+          <a-col :md="6" :sm="8" :lg="8" v-if="isatt=='0'||isatt==0">
+            <a-form-item label="上班类型" :labelCol="labelCol" :wrapperCol="wrapperCol">
+              <j-dict-select-tag style="width: 70%"  v-decorator="['type', {initialValue:2,rules: [{ required: true, message: '请选择类型'}]}]" :triggerChange="true" placeholder="请选择上班类型"
+                dictCode="type" />
             </a-form-item>
+          
           </a-col>
+          
+          
           <a-col :md="6" :sm="8" :lg="8">
             <a-form-item label="附件上传" :labelCol="labelCol" :wrapperCol="wrapperCol">
              <a-badge  :count="fileLists.length" show-zero :number-style="{ backgroundColor: '#52c41a' }">
@@ -373,6 +377,7 @@
         drawerWidth: 700,
         statet:true,
         titles: "新增员工",
+        isatt:'0',
         visibles: false,
         isEdit:false,
         worMoth:0,
@@ -765,6 +770,9 @@
           })
         }
       },
+      isAttes(e){
+        this.isatt=e;
+      },
       queryFiles(e) {
         getAction(this.url.sysFile, {
           userid: e
@@ -895,6 +903,7 @@
             this.cEndDate=moment(d).format('YYYY-MM-DD');
         }if(record.isAttendance!=null&& record.isAttendance != ""){
             this.isAttendance=record.isAttendance;
+            this.isatt=record.isAttendance;
         }if(record.workMoth!=null&&record.workMoth!=""){
           this.worMoth=record.workMoth;
           this.workMoth=record.workMoth - 0+this.moth - 0;
@@ -1018,6 +1027,7 @@
         this.moth=0;
         this.cEndDate=null;
         this.statet=true;
+        this.isatt='0';
       },
       moment,
       handleSubmit() {
@@ -1242,6 +1252,7 @@
           callback()
         } else {
          var date= this.form.getFieldValue('entryDate');
+         console.log(this.statet)
          if(date!=null&&this.statet==true){
            var da=new Date(date);
            if(value==1){
@@ -1255,7 +1266,7 @@
              this.cEndDate=moment(da).subtract(1, "days");
            }
             
-         }else{
+         }else if(date==null){
            callback("请输入入职日期!")
          }
         callback()