12b0c234c191390adb182e10f98a05f5.php 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. <?php /*a:2:{s:79:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\appointment\add_company.html";i:1724742265;s:59:"D:\phpstudy_pro\WWW\caiping\app\admin\view\common\base.html";i:1723541257;}*/ ?>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <meta name="renderer" content="webkit">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  8. <meta name="360-site-verification" content="a7c876fae8b6e3175a52ea9f19543f51" />
  9. <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0">
  10. <script src="/static/dist/xm-select.js"></script>
  11. <link rel="mobile-prefetch" href=""/>
  12. <title><?php echo get_system_config('web','admin_title'); ?></title>
  13. <meta name="keywords" content="<?php echo get_system_config('web','keywords'); ?>"/>
  14. <meta name="description" content="<?php echo get_system_config('web','desc'); ?>"/>
  15. <link rel="stylesheet" href="/static/assets/gougu/css/gougu.css?v=<?php echo get_system_config('web','version'); ?>" media="all">
  16. <style>
  17. .footer{
  18. display: none;
  19. }
  20. /*表格*/
  21. #tabniubi {
  22. width: 100%;
  23. margin: 10px 0;
  24. background-color: #fff;
  25. color: #5f5f5f;
  26. }
  27. #tabniubi th {
  28. padding: 9px 15px;
  29. min-height: 20px;
  30. height: 40px !important;
  31. text-align: center;
  32. /* font-size: 14px; */
  33. border-width: 1px;
  34. border-style: solid;
  35. border-color: #e2e2e2;
  36. font: 14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial, sans-serif;
  37. }
  38. #tabniubi tr:first-child {
  39. padding: 0;
  40. min-height: 0;
  41. line-height: 0;
  42. border-width: 0;
  43. border-style: none;
  44. border-color: #fff;
  45. font-size: 0;
  46. }
  47. #tabniubi tr:first-child th {
  48. padding: 0;
  49. min-height: 0;
  50. line-height: 0;
  51. border-width: 0;
  52. border-style: none;
  53. border-color: #fff;
  54. font-size: 0;
  55. }
  56. .form-title {
  57. background-color: rgb(241, 241, 241);
  58. color: rgb(95, 95, 95);
  59. border-color: rgb(241, 241, 241);
  60. font-weight: 600;
  61. }
  62. </style>
  63. </head>
  64. <body class="main-body">
  65. <!-- 主体 -->
  66. <form class="layui-form p-4">
  67. <h3 class="pb-3">新增预约</h3>
  68. <table id="tabniubi" cellpadding="1" cellspacing="1">
  69. <tr>
  70. <th style="width: 10%;height: 0 !important;"></th>
  71. <th style="width: 10%;height: 0 !important;"></th>
  72. <th style="width: 10%;height: 0 !important;"></th>
  73. <th style="width: 10%;height: 0 !important;"></th>
  74. <th style="width: 10%;height: 0 !important;"></th>
  75. <th style="width: 10%;height: 0 !important;"></th>
  76. <th style="width: 10%;height: 0 !important;"></th>
  77. <th style="width: 10%;height: 0 !important;"></th>
  78. <th style="width: 10%;height: 0 !important;"></th>
  79. </tr>
  80. <tr border="1">
  81. <tr>
  82. <th class="form-title">预约时间<font style="color:red;"> *</font></th>
  83. <th colspan="4">
  84. <input type="text" class="layui-input" lay-verify="required" readonly name="appointment_time" id="ID-laydate-type-datetime-1" placeholder="请选择预约时间">
  85. </th>
  86. <th class="form-title">派遣人数<font style="color:red;">*</font></th>
  87. <th colspan="3">
  88. <input type="text" name="dispatch_num" lay-verify="required" class="layui-input" placeholder="请添加派遣人数">
  89. </th>
  90. </tr>
  91. <tr>
  92. <th class="form-title">审核人 <font style="color: red !important;">*</font></th>
  93. <th colspan="2">
  94. <select name="sent_review_head" lay-reqText="请选择审核人">
  95. <option value="<?php echo htmlentities($sent_review_head_name); ?>"><?php echo htmlentities($sent_review_head_name); ?></option>
  96. </select>
  97. </th>
  98. </tr>
  99. <tr>
  100. <th class="form-title">地址/备注<font style="color:red;"> *</font></th>
  101. <th colspan="8">
  102. <textarea placeholder="" name="address_or_remark" lay-verify="required" class="layui-textarea"></textarea>
  103. </th>
  104. </tr>
  105. </table>
  106. <div class="pt-3">
  107. <input type="hidden" name="project_id" lay-verify="required" lay-reqText="" placeholder="" class="layui-input" value="<?php echo htmlentities($project_id); ?>" readonly>
  108. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="webform">立即提交</button>
  109. <button type="reset" class="layui-btn layui-btn-primary">重置</button>
  110. </div>
  111. </form>
  112. <!-- /主体 -->
  113. <!-- 底部 -->
  114. <div class="footer">
  115. 逸管工程项目管理系统 © www.yiguanfep.com
  116. <img src="/static/home/images/police.png" alt="" style="width:14.5px;height:16px;">
  117. <a href="https://beian.mps.gov.cn/#/query/websearch?code=45030202000160 " rel="\&quot;noreferrer'target=\”blank\&quot;" onclick="window.open(this.href); return false;">桂公网安备45030202000160号</a>
  118. <a href="https://beian.miit.gov.cn/#/Integrated/index" onclick="window.open(this.href); return false;">桂ICP备17000971号</a>
  119. </div>
  120. <!-- /底部 -->
  121. <!-- 脚本 -->
  122. <script>
  123. const moduleInit = ['tool', 'oaTool'];
  124. function gouguInit() {
  125. var form = layui.form, tool = layui.tool, oaTool = layui.oaTool;
  126. layui.laydate.render({
  127. elem: '#ID-laydate-type-datetime-1',
  128. type: 'datetime',
  129. fullPanel: true // 2.8+
  130. });
  131. let a = 1;
  132. //监听提交
  133. form.on('submit(webform)', function (data) {
  134. if (!isIntegerString(data.field.dispatch_num)){
  135. layer.msg('派遣人数请输入整数');
  136. return false;
  137. }
  138. console.log(Number.isInteger(data.field.dispatch_num),data.field.dispatch_num)
  139. if(a){
  140. layer.confirm('确定要申请吗?', {
  141. icon: 3,
  142. title: '提示'
  143. }, function (index) {
  144. let callback = function (e) {
  145. layer.msg(e.msg);
  146. parent.layui.appointmentTable.reload();
  147. if (e.code == 0) {
  148. tool.tabRefresh(71);
  149. tool.sideClose(1000);
  150. a = 1
  151. }
  152. }
  153. tool.post("/admin/project.appointment/add_company", data.field, callback)
  154. a = 0
  155. });
  156. }
  157. return false;
  158. });
  159. }
  160. function isIntegerString(str) {
  161. var pattern = /^-?\d+$/; // 匹配整数,包括负整数
  162. return pattern.test(str);
  163. }
  164. </script>
  165. <!-- /脚本 -->
  166. <!-- <script src="/static/assets/layui/layui.js"></script> -->
  167. <script src="/static/assets/layui/layui.js"></script>
  168. <script src="/static/assets/third_party/echart/echarts.min.js"></script>
  169. <script src="/static/assets/gougu/gouguInit.js"></script>
  170. <script src="https://unpkg.com/pinyin-pro"></script>
  171. <script>
  172. var { pinyin } = pinyinPro;
  173. </script>
  174. <!-- 统计代码 -->
  175. <!-- /统计代码 -->
  176. </body>
  177. </html>