receiptTrainLecturerEdi.html 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. <!-- include '../header' -->
  2. <link rel=stylesheet href="<?= WEB_SITE_GLOBAL ?>css/jquery.validator.css">
  3. <script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>js/jquery.validator.min.js"></script>
  4. <script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>js/zh-CN.js"></script>
  5. <script type="text/javascript" src="<?= receipt ?>"></script>
  6. <script type="text/javascript" >
  7. function computePrice(){
  8. var schoolDay=$('#schoolDay').val();
  9. var price=$('#price').val();
  10. var sum=price*schoolDay;
  11. $('#schPrice').val(sum);
  12. }
  13. </script>
  14. <body>
  15. <div class="mainLayout">
  16. <div class="mainMenu">
  17. <div class="menuItem">
  18. <a href="#" class="mLogo">CLD</a>
  19. <ul>
  20. <!-- include '../admin/menuReceipt' -->
  21. </ul>
  22. </div>
  23. </div>
  24. <div class="warpContent">
  25. <div class="subMenu fL">
  26. <div class="menuItem">
  27. <!-- include '../admin/receipt_menu' -->
  28. </div>
  29. </div>
  30. <div class="adminContent autoHeight" style="height: 821px;">
  31. <!-- include 'receiptTrainApprovalForm' -->
  32. <div class="borad-news">
  33. <div class="subNav">
  34. <!-- include 'receiptTrainMenu' -->
  35. </div>
  36. <div class="saeaList">
  37. <!--支出项-->
  38. <div class="clearfix">
  39. <legend><div class="fR"><button type="submit" class="button" href="#add-teach" data-toggle="modal">添加讲师</button></div>培训班讲师</legend>
  40. <table class="table table-bordered table-condensed">
  41. <tbody>
  42. <tr>
  43. <th class="taC">类型</th>
  44. <th class="taC">讲师姓名</th>
  45. <th class="taC">授课日数</th>
  46. <th class="taC">日授课费</th>
  47. <th class="taC">合计应发授课费</th>
  48. <th class="taC"></th>
  49. </tr>
  50. <!-- loop RILecturerList -->
  51. <tr>
  52. <td>
  53. <!-- if {{RILecturerList' value.ltype}}=='OUTSIDE' -->
  54. 外聘
  55. <!-- if {{RILecturerList' value.taxation}}==0 -->
  56. (不计税)
  57. <!-- else -->
  58. (计税)
  59. <!-- endif -->
  60. <!-- else -->
  61. 员工
  62. <!-- endif -->
  63. </td>
  64. <td>
  65. {{RILecturerList' value.lecturerName}}</td>
  66. <td>{{RILecturerList' value.schoolDay}}</td>
  67. <td>{{RILecturerList' value.price}}</td>
  68. <td>
  69. <!-- if {{RILecturerList' value.fees}}=='0.00' -->
  70. {{RILecturerList' value.sum}}
  71. <!-- else -->
  72. {{RILecturerList' value.fees}}
  73. <!-- endif -->
  74. </td>
  75. <td><a href="javascript:if(confirm('确定移除?')){window.location='/receiptTrainLecturerDelDo?ridKey={{receiptDetail.ridKey}}&rlidKey={{RILecturerList' value.rlidKey}}';}">移除</a></td>
  76. </tr>
  77. <!-- endloop -->
  78. </tbody>
  79. </table>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. <!--弹出 添加指出 -->
  86. <div class="modal hide fade" id="add-teach">
  87. <form action="/receiptTrainLecturerAddDo" name="receiptTrainLecturerAdd" method="post" class="nice-validator n-yellow" novalidate="novalidate">
  88. <input type="hidden" name="ridKey" value="{{receiptDetail.ridKey}}">
  89. <div class="modal-dialog">
  90. <div class="modal-content">
  91. <div class="modal-header">
  92. <h3>添加讲师</h3>
  93. </div>
  94. <div class="modal-body saeaList">
  95. <table class="table table-bordered table-condensed">
  96. <tbody>
  97. <tr>
  98. <th class="taC">选择讲师类型</th>
  99. <td>
  100. <select name='ltype' id='ltype' ltype>
  101. <option selected value='INSIDE'>员工</option>
  102. <option value='OUTSIDE'>外聘</option>
  103. </select>
  104. <p class="colRed">「员工」讲课费,不计税,随工资一并发放。</p>
  105. <p class="colRed">「外聘」讲课费,有<b>计税</b>与<b>不计税</b>两种,单独发放给讲课老师。</p>
  106. </td>
  107. </tr>
  108. </tbody>
  109. </table>
  110. <table class="table table-bordered table-condensed">
  111. <tbody>
  112. <tr>
  113. <th class="taC">讲师</th><td>
  114. <select name='lecturerName' id='lecturerName' selectLecture >
  115. {{INSIDEhtml}}
  116. </select>
  117. </tr>
  118. <tr node-taxation style="display:none;">
  119. <th class="taC">计税</th><td>
  120. <select name="taxation">
  121. <option value='TAXATION'>计税(需计入税款中)</option>
  122. <option value='NOTAXATION'>不计税(需提供发票)</option>
  123. </select>
  124. <p class="colRed">「计税(需计入税款)」计税,税金填写到「<a target="_blank" href="/receiptTrainItemEdi/{{ridKey}}.html">支出</a>」的「税款」中。</p>
  125. <p class="colRed">「不计税(需提供发票)」不需计税,需提供发票。</p>
  126. </td></tr>
  127. <tr>
  128. <th class="taC">授课日数</th>
  129. <td><input name='schoolDay' id='schoolDay' value="0" onkeyup="computePrice()" placeholder="输入授课天数" pattern="[0-9]" min="0" step="0.5" type="number"></td>
  130. </tr>
  131. <tr>
  132. <th class="taC">日授课费</th>
  133. <td><input name='price' id='price' value="0" onkeyup="computePrice()" placeholder="输入日授课费" pattern="[0-9]" min="0" step="10" type="number"></td>
  134. </tr>
  135. <tr>
  136. <th class="taC">合计应发授课费</th><td >
  137. <input name='fees' id="schPrice" value="0" placeholder="输入日授课费" pattern="[0-9]" min="0" step="10" type="number">
  138. </td>
  139. </tr>
  140. </tbody>
  141. </table>
  142. </div>
  143. <div class="modal-footer">
  144. <input type="submit" value="确定" class="button">
  145. <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
  146. </div>
  147. </div>
  148. </div>
  149. </form>
  150. </div>
  151. <!--弹出内容-->
  152. <script type="text/javascript">
  153. $(function() {
  154. $("select[ltype]").change(function() {
  155. var ltypeVal=$(this).val();
  156. var selectLecture=$("select[selectLecture]");
  157. if(ltypeVal=='INSIDE'){
  158. $("tr[node-taxation]").hide();
  159. selectLecture.html('{{INSIDEhtml}}');
  160. }else if(ltypeVal=='OUTSIDE'){
  161. $("tr[node-taxation]").show();
  162. selectLecture.html('{{OUTSIDEhtml}}');
  163. }
  164. });
  165. })
  166. autoFlashHeight();
  167. </script>
  168. </body>