Browse Source

加班 增加 加班(计薪),原来 加班 改为 加班(计假)

Chente 5 years ago
parent
commit
9f512d8ca6
2 changed files with 31 additions and 5 deletions
  1. 7 1
      holidayIndexDetail.html
  2. 24 4
      js/sui/global.js

+ 7 - 1
holidayIndexDetail.html

@@ -41,6 +41,9 @@
                <p class="bg-danger">对不起,你的年假不足!</p>
                <p class="bg-danger">对不起,你没有年假!</p>
                <p class="bg-danger">对不起,你没有存假!</p>
+               <p class="bg-danger">当前加班(计假)申请,按加班天数增加存假。</p>
+               <p class="bg-danger">当前加班(计薪)申请,按加班天数结算薪酬。</p>
+               <!--事假-->
                <div class="list-block">
                    <ul>
                        <li>
@@ -210,6 +213,7 @@
                       </li>
                   </ul>
                </div>
+               <!--加班-->
                <div class="list-block">
                    <ul>
                        <li>
@@ -217,7 +221,7 @@
                                <div class="item-inner">
                                    <div class="item-title label">假期类型</div>
                                    <div class="item-input">
-                                       <input type="text" readonly="readonly" placeholder="假期类型 [ 加班 ]">
+                                       <input type="text" readonly="readonly" placeholder="假期类型 [ 加班(计假) ]">
                                    </div>
                                </div>
                            </div>
@@ -285,6 +289,7 @@
                       </li>
                   </ul>
                </div>
+               <!--年假-->
                <div class="list-block">
                    <ul>
                        <li>
@@ -360,6 +365,7 @@
                       </li>
                   </ul>
                </div>
+               <!--补休-->
                <div class="list-block">
                    <ul>
                        <li>

+ 24 - 4
js/sui/global.js

@@ -74,10 +74,10 @@ $(function(){
             }
         },
         {
-          text: '加班',
+          text: '加班(计假)',
             onClick: function() {
-                $('#holidaytypeshow').attr('placeholder','假期类型 [ 加班 ]');
-                $('#holidaytypeshow').val('加班');
+                $('#holidaytypeshow').attr('placeholder','假期类型 [ 加班(计假) ]');
+                $('#holidaytypeshow').val('加班(计假)');
                 $('#otherholiday').hide();
                 $('#holidaytype').val(4);
                 $('.tab').removeClass('active');
@@ -89,7 +89,27 @@ $(function(){
                 $('#tab1').addClass('active');
                 $('#tab1').find('input').removeAttr('disabled');
                 $('#tab1').find('textarea').removeAttr('disabled');
-                $('.tabtitle').text('加班');
+                $('.tabtitle').text('加班(计假)');
+                $('#typenum').val(1);
+            }
+        },
+        {
+          text: '加班(计薪)',
+            onClick: function() {
+                $('#holidaytypeshow').attr('placeholder','假期类型 [ 加班(计薪) ]');
+                $('#holidaytypeshow').val('加班(计薪)');
+                $('#otherholiday').hide();
+                $('#holidaytype').val(4);
+                $('.tab').removeClass('active');
+                $('.align-top').show();
+                $('#holidayshow').hide();
+                $('.haveholidaynum').hide();
+                $('.tab').find('input').attr('disabled',true);
+                $('.tab').find('textarea').attr('disabled',true);
+                $('#tab1').addClass('active');
+                $('#tab1').find('input').removeAttr('disabled');
+                $('#tab1').find('textarea').removeAttr('disabled');
+                $('.tabtitle').text('加班(计薪)');
                 $('#typenum').val(1);
             }
         },