ysh 3 tahun lalu
induk
melakukan
92b7ac0384

+ 5 - 4
src/views/system/schedulingInformation/AttendanceInformation1.vue

@@ -2,15 +2,15 @@
   <a-row :gutter="10">
     <a-col :md="4" :sm="12">
       <a-card :bordered="false">
-        <div style="background: #fff;height: 100%; margin-top: 5px">
+        <div style="background: #fff;height: 100%; margin-top: 5px; margin-left: -15px">
           <!-- <a-input-search @search="onSearch" style="width:100%" placeholder="请输入部门名称"/> -->
           <!-- 树-->
 
           <template v-if="userIdentity === '2' && departTree.length>0">
 
             <!--组织机构-->
-            <a-tree
-              showLine
+            <!-- <a-tree multiple -->
+            <a-directory-tree multiple 
               :selectedKeys="selectedKeys"
               :checkStrictly="true"
               @select="onSelect"
@@ -23,7 +23,8 @@
 
           </template>
           <div style="margin-top: 24px;" v-else-if="userIdentity === '2' && departTree.length==0">
-            <h3><span>您的部门下暂无有效部门信息</span></h3>
+            <h3><span>  加载中,请稍候  </span><a-spin/></h3>
+                
           </div>
           <div style="margin-top: 24px;" v-else><h3>普通员工暂此权限</h3></div>
         </div>

+ 19 - 4
src/views/system/schedulingInformation/BdClockinMonthList.vue

@@ -16,15 +16,30 @@
               <a-input placeholder="请输入账号" v-model="queryParam.personId"></a-input>
             </a-form-item>
           </a-col>
+          
           <a-col :md="6" :sm="8">
-            <a-form-item label="日期">
-              <a-month-picker valueFormat="YYYY-MM"  @change="onChange" placeholder="请输入日期" v-model="queryParam.monthTime"></a-month-picker>
+            <a-form-item label="是否同步">
+               <a-select v-model="queryParam.syU8" placeholder="请选择是否同步">
+                    <a-select-option value="">请选择</a-select-option>
+                    <a-select-option value="1">是</a-select-option>
+                    <a-select-option value="0">否</a-select-option>
+               </a-select>
             </a-form-item>
           </a-col>
-
           <a-col :md="6" :sm="8">
             <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
               <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
+          
+            </span>
+          </a-col>
+          <a-col :md="6" :sm="8">
+            <a-form-item label="同步日期">
+              <a-month-picker valueFormat="YYYY-MM"  @change="onChange" placeholder="请输入日期" v-model="queryParam.monthTime"></a-month-picker>
+            </a-form-item>
+          </a-col>
+         
+          <a-col :md="6" :sm="8">
+            <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
               <a-button type="primary" @click="syMonthReport" icon="reload" style="margin-left: 8px">同步至U8</a-button>
 
             </span>
@@ -109,7 +124,7 @@
             dataIndex: 'missingNum'
           },
           {
-            title: '本月加班时长',
+            title: '加班时长(时)',
             align: 'center',
             dataIndex: 'duration'
           },

+ 3 - 2
src/views/system/schedulingInformation/ViewClockInList.vue

@@ -100,8 +100,9 @@
           <a-tag color="#87d068" v-if="record.latetimeX <= 0 && record.latetimeS <= 0 ">正常</a-tag> -->
           
           <a-tag color="pink" v-if="record.latetimeS < 0 || record.latetimeX > 0
-          || record.shiftRealTimeS == '' || record.shiftRealTimeS == null || (record.ifwork !=0 && record.attendanceCount < 2)
-           || (record.name != null && record.name != '' && (record.gotoTime == null || record.gotoTime == ''))
+          || (record.ifwork !=0 && record.attendanceCount < 2 && record.name != null)
+          || (record.name != null && record.name != '' && (record.gotoTime == null || record.gotoTime == ''))
+          || record.duration != null
           && (record.setInfo == '' || record.setInfo == null)">
           异常
           </a-tag>

+ 51 - 8
src/views/system/schedulingInformation/ViewClockUserInfo.vue

@@ -36,6 +36,16 @@
         <span slot="ShiftTime" slot-scope="text, record, index">
            {{record.shiftRealTimeS}} - {{record.shiftRealTimeX}}
         </span>
+        <span slot="customTime" slot-scope="text, record, index">
+           {{text.slice(10)}}
+        </span>
+        
+        <span slot="customDuration" slot-scope="text, record, index">
+          <a-tag @click="workInfo(record)" color="pink" v-if="record.workOvertime != null && record.workOvertime > 0 ">
+          {{text}}
+          </a-tag>
+          <a @click="workInfo(record)" v-else>{{text}}</a>
+        </span>
         
         <span slot="shiftType" slot-scope="text, record, index">
           <!-- ruleType 上班类型 1.固定时间上下班,2.按班次上下班,3.自由上下班 -->
@@ -45,8 +55,9 @@
           <span v-else>正常 <a>{{record.setInfo}}</a></span> -->
           
           <a-tag color="pink" v-if="record.latetimeS < 0 || record.latetimeX > 0 
-          || record.shiftRealTimeS == '' || record.shiftRealTimeS == null || (record.ifwork !=0 && record.attendanceCount < 2)
+          || (record.ifwork !=0 && record.attendanceCount < 2 && record.name != null)
           || (record.name != null && record.name != '' && (record.gotoTime == null || record.gotoTime == ''))
+          || record.duration != null
           && (record.setInfo == '' || record.setInfo == null)">
           异常
           </a-tag>
@@ -55,11 +66,11 @@
         </span>
         
         <span slot="action" slot-scope="text, record">
-          <a @click="handleEdit(record)">校准</a>
+          <a v-has="'viewClockUserInfo:jiaozhun'" @click="handleEdit(record)">校准</a>
 
           <a-divider type="vertical"/>
 
-          <a-dropdown>
+          <a-dropdown v-has="'viewClockUserInfo:more'">
             
             <a class="ant-dropdown-link">
               更多 <a-icon type="down"/>
@@ -93,6 +104,15 @@
     <Jiao-Zhun-Modal ref="modalForm" @ok="modalFormOk"></Jiao-Zhun-Modal>
     <Select-User-Modal ref="selectUserModal" @selectFinished="selectOK"></Select-User-Modal>
     <dept-role-user-modal ref="deptRoleUser"></dept-role-user-modal>
+    <a-modal
+          v-model="modal2Visible" title="加班信息详情" :footer="null"
+          centered @ok="() => (modal2Visible = false)" >
+          <h4>加班申请时间 : {{durationCommitDate}}</h4>
+          <h4>加班开始时间 : {{durationBeginDate}}</h4>
+          <h4>加班结束时间 : {{durationEndDate}}</h4>
+          <h4>加班时长 : {{duration}}</h4>
+          <h4>加班事由 : {{demo}}</h4>
+    </a-modal>
   </a-card>
 </template>
 
@@ -117,6 +137,12 @@
     },
     data() {
       return {
+        durationCommitDate:'',//加班申请时间
+        durationBeginDate:'',//加班开始时间
+        durationEndDate:'',//加班结束时间
+        duration:'',//加班时长
+        demo:'',//加班事由
+        modal2Visible: false,
         moment,
         description: '员工考勤信息',
         userName:'',//标题员工姓名
@@ -156,12 +182,18 @@
           {
             title: '最早打卡时间',
             align: "center",
-            dataIndex: 'gotoTime'
+            dataIndex: 'gotoTime',
+            scopedSlots: {
+              customRender: 'customTime'
+            }
           },
           {
             title: '最迟打卡时间',
             align: "center",
-            dataIndex: 'closingTime'
+            dataIndex: 'closingTime',
+            scopedSlots: {
+              customRender: 'customTime'
+            }
           },
           {
             title: '打卡次数',
@@ -178,14 +210,17 @@
             title: '加班时间',
             align: "center",
             dataIndex: 'duration',
-            width: 100
+            width: 100,
+            scopedSlots: {
+              customRender: 'customDuration'
+            }
           },
           {
             title: '操作',
             dataIndex: 'action',
             scopedSlots: {customRender: 'action'},
             align: "center",
-            width: 150
+            width: 120
           }],
         url: {
           list: '/viewClockIn/viewClockIn/list',
@@ -312,7 +347,7 @@
       open(selectedKeys, e) {
         
         if(e.node.dataRef.orgType == 1 || e.node.dataRef.orgType == 2 || e.node.dataRef.orgType == 3){
-          this.$message.warn("点击左侧加减号,展开或者收起菜单!")
+          // this.$message.warn("点击左侧加减号,展开或者收起菜单!")
           return;
         }
         this.queryParam = {}
@@ -402,6 +437,14 @@
             }
           });
                
+      },
+      workInfo(record){
+         this.modal2Visible = true;
+         this.durationCommitDate = record.commitDate;//加班申请时间
+         this.durationBeginDate = record.durationBeginDate;//加班开始时间
+         this.durationEndDate = record.durationEndDate;//加班结束时间
+         this.duration = record.duration;//加班时长
+         this.demo = record.demo;//加班事由   
       }
     }
   }