zhangjiaqing
8 天以前 1cef3adee31c6934c0da4b4f0b8a6f5ac03b364f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<div>
    <div class="row">
        <div class="col-md-2">
            <div class=" border-radius bg-white padding">
                <div class="margin-xs margin-bottom">
                    <input type="text" :placeholder="vc.i18n('请选择月份','monthAttendanceManage')"
                        v-model="staffAttendanceManageInfo.curDate" class=" form-control queryDate">
                </div>
                <div class="margin-xs margin-bottom">
                    <input v-model="staffAttendanceManageInfo.orgName" readonly @focus="_staffAttendanceChangeOrg()"
                        type="text" :placeholder="vc.i18n('填写组织','staffAttendanceManage')" class="form-control">
                </div>
                <div class="margin-xs">
                    <input type="text" :placeholder="vc.i18n('请填写员工名称','monthAttendanceManage')"
                        @keyup.enter="_loadStaffs()" v-model="staffAttendanceManageInfo.staffNameLike"
                        class=" form-control">
                </div>
                <div class="flex justify-end">
                    <div class="margin-xs margin-bottom " style="width: 60px;">
                        <button type="button" class="form-control btn btn-primary" @click="_loadStaffs()">
                            <vc:i18n name="查询" namespace="simplifyAcceptance"></vc:i18n>
                        </button>
                    </div>
                </div>
 
                <div class="margin-xs-r bg-white treeview attendance-staff">
                    <ul class="list-group text-center border-radius">
                        <li class="list-group-item node-orgTree "
                            v-for="(item,index) in staffAttendanceManageInfo.staffs" @click="swatchStaff(item)"
                            :class="{'vc-node-selected':staffAttendanceManageInfo.curStaffId==item.userId}">
                            {{item.name}}
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="col-md-10 ">
            <div class="row  bg-white border-radius padding ">
                <div class="col-md-2 text-center border padding-lg labeling-strip"
                    v-for="index in staffAttendanceManageInfo.maxDay" :key="index"
                    :style="{'background-color': _getBgColor(index)}" style="border-radius: 5px;cursor:pointer">
                    <div class="strip" v-if="_getDayAttendance(index) && _getDayAttendance(index).state != '30000'">
                        <span @click="_replenishCheckIn(index)">补考勤</span>
                    </div>
                    <div>{{staffAttendanceManageInfo.curYear}}-{{staffAttendanceManageInfo.curMonth}}-{{index}}</div>
                    <div v-for="(item,detailIndex) in _getAttendanceDetail(index)">
                        <div v-if="item.rest">{{item.rest}}</div>
                        <div v-else>
                            {{item.specCd=='1001'?'上班':'下班'}}:
                            <span v-if="item.state != '10000'">{{vc.timeFormat(item.checkTime)}}</span>
                            <span v-else> - </span>
                            <span>({{item.stateName}})</span>
                        </div>
                    </div>
                    <div>
                        <a href="javascript:void(0)" @click="_checkInLog(index)">考勤记录</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <vc:create path="frame/chooseOrgTree" callBackListener="staffAttendanceManage"></vc:create>
    <vc:create path="property/staffAttendanceDetail" callBackListener="staffAttendanceManage"></vc:create>
    <vc:create path="property/staffAttendanceReplenishCheckIn" callBackListener="staffAttendanceManage"></vc:create>
</div>