table_two.blade.php 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. @extends('layouts.admin')
  2. @section('content')
  3. {{--修改表格--}}
  4. <style>
  5. .table-bordered>tbody>tr>td,.table-bordered>thead:first-child>tr:first-child>th{
  6. border: 1px solid #585858;
  7. font-weight: bold;
  8. text-align: center;
  9. font-size: 16px;
  10. overflow:hidden;
  11. width: 12%;
  12. padding: 15px 0px 15px 0px;
  13. }
  14. .table>tbody>tr>td{
  15. padding: 15px 0px 15px 0px;
  16. vertical-align: middle;
  17. }
  18. .table>tbody:first-child>tr>td{
  19. padding: 0px;
  20. }
  21. .table>tbody>tr>td>.form-control{
  22. margin: 15px 0px 15px 0px;
  23. width: 80%;
  24. }
  25. </style>
  26. <!--左侧菜单栏-->
  27. @include('admin.left-sidebar')
  28. <!-- 内容 -->
  29. <div class="content-wrapper">
  30. <!-- Content Header (Page header) -->
  31. <section class="content-header">
  32. <h1>
  33. 受理案件
  34. <small> </small>
  35. </h1>
  36. <ol class="breadcrumb">
  37. <li><a href="{{ url('/')}}"><i class="fa fa-dashboard"></i> 主页</a></li>
  38. <li><a href="#">项目申请</a></li>
  39. <li><a href="{{ url('/table') }}">受理案件</a></li>
  40. </ol>
  41. </section>
  42. <!-- Main content -->
  43. <section class="content">
  44. <!-- Default box -->
  45. <div class="box">
  46. <div class="box-header">
  47. </div>
  48. <!-- /.box-header -->
  49. <div class="box-body" id="print">
  50. {{--content--}}
  51. <div class="row" style="text-align: center">
  52. <h3>违章建筑自行拆除费用申领表</h3><br>
  53. </div>
  54. <form action="" method="post">
  55. {{ csrf_field() }}
  56. <div id="example2_wrapper" class="dataTables_wrapper form-inline dt-bootstrap">
  57. <div class="row">
  58. <div class="col-sm-2">项目名称:</div>
  59. <div class="col-sm-7">
  60. <select name="project_name" class="form-control">
  61. <option value=" "></option>
  62. @foreach($project as $data)
  63. <option value="{{ $data->project_name }}"
  64. @if($table->project_name == $data->project_name) selected @endif
  65. >{{ $data->project_name }}</option>
  66. @endforeach
  67. </select> </div>
  68. <div class="col-sm-1">编号:</div>
  69. <div class="col-sm-2">
  70. <input name="num" style="margin: 0px;" class="form-control" type="text" placeholder="必填项" value="{{ $table->num }}">
  71. </div><br><br>
  72. </div>
  73. <div class="row">
  74. <div class="col-sm-12">
  75. <table style="border: 1px solid #585858" id="example2" class="table table-bordered">
  76. <tbody>
  77. <tr>
  78. <td></td>
  79. <td></td>
  80. <td></td>
  81. <td></td>
  82. <td></td>
  83. <td></td>
  84. </tr>
  85. <tr>
  86. <td>姓 名</td>
  87. <td colspan="2">身份证号码</td>
  88. <td>电 话</td>
  89. <td colspan="2">违章建筑地址</td>
  90. </tr>
  91. <tr>
  92. <td><input name="bzc_name" class="form-control" type="text" placeholder="" value="{{ $table->bzc_name }}"></td>
  93. <td colspan="2"><input name="bzc_cardid" class="form-control" type="text" placeholder="" value="{{ $table->bzc_cardid }}"></td>
  94. <td><input name="bzc_tel" class="form-control" type="text" placeholder="" value="{{ $table->bzc_tel }}"></td>
  95. <td colspan="2"><input name="bzc_addr" class="form-control" type="text" placeholder="" value="{{ $table->bzc_addr }}"></td>
  96. </tr>
  97. <tr>
  98. <td>违章面积(㎡)</td>
  99. <td><input name="bzc_area" class="form-control" type="text" placeholder="" value="{{ $table->bzc_area }}"></td>
  100. <td colspan="3">拆除金额:<input disabled id="chaichuje2" class="form-control" type="text" placeholder=""></td>
  101. <td><input id="chaichuje1" name="chaichuje" class="form-control" type="text" placeholder="小写" value="{{ $table->chaichuje }}"></td>
  102. </tr>
  103. <tr>
  104. <td colspan="6"><textarea name="jisuanmx" style="width: 95%;height: 250px;" placeholder="计算明细:">{{ $table->jisuanmx }}</textarea></td>
  105. </tr>
  106. <tr>
  107. <td colspan="2">违章建筑自拆费用申取人:</td>
  108. <td><input name="zichaiqz" class="form-control" type="text" placeholder="" value="{{ $table->zichaiqz }}"></td>
  109. <td colspan="3">时 间:<input readonly id="table_time" name="table_time" class="form-control timepicker" type="text" placeholder="" value="{{ $table->table_time }}"></td>
  110. </tr>
  111. <tr>
  112. <td colspan="3">工作小组执法人员全体:<input name="workmanallqz" class="form-control" type="text" placeholder="" value="{{ $table->workmanallqz }}">
  113. <br>时 间:<input readonly id="workmanallqz_time" name="workmanallqz_time" class="form-control timepicker" type="text" placeholder="" value="{{ $table->workmanallqz_time }}"></td>
  114. <td colspan="3">区征拆局工作人员:<input name="zcworkmanqz" class="form-control" type="text" placeholder="" value="{{ $table->zcworkmanqz }}">
  115. <br>时 间:<input readonly id="zcworkmanqz_time" name="zcworkmanqz_time" class="form-control timepicker" type="text" placeholder="" value="{{ $table->zcworkmanqz_time }}"></td>
  116. </tr>
  117. <tr>
  118. <td colspan="3">工作小组组长:<input name="workcaptainqz" class="form-control" type="text" placeholder="" value="{{ $table->workcaptainqz }}">
  119. <br>时 间:<input readonly id="workcaptainqz_time" name="workcaptainqz_time" class="form-control timepicker" type="text" placeholder="" value="{{ $table->workcaptainqz_time }}"></td>
  120. <td colspan="3">督查专员:<input name="duchaqz" class="form-control" type="text" placeholder="" value="{{ $table->duchaqz }}">
  121. <br>时 间:<input readonly id=" duchaqz_time" name="duchaqz_time" class="form-control timepicker" type="text" placeholder="" value="{{ $table->duchaqz_time }}"></td>
  122. </tr>
  123. <tr>
  124. <td colspan="3">工作组负责人:<input name="workfzqz" class="form-control" type="text" placeholder="{{ $table->workfzqz }}">
  125. <br>时 间:<input readonly id="workfzqz_time" name="workfzqz_time" class="form-control timepicker" type="text" placeholder="" value="{{ $table->workfzqz_time }}"></td>
  126. <td colspan="3">分管领导:<input name="bossqz" class="form-control" type="text" placeholder="" value="{{ $table->bossqz }}">
  127. <br>时 间:<input readonly id="bossqz_time" name="bossqz_time" class="form-control timepicker" type="text" placeholder="" value="{{ $table->bossqz_time }}"></td>
  128. </tr>
  129. <tr>
  130. <td colspan="3">工作组意见,经我们核实,该违章户已按要求自行完成违章建筑的拆除,同意<input name="ok" class="form-control" type="text" placeholder="" value="{{ $table->ok }}">发放自行拆除费用
  131. <br>时 间:<input readonly id="ok_time" name="ok_time" class="form-control timepicker" type="text" placeholder="" value="{{ $table->ok_time }}"></td>
  132. <td colspan="3">财务负责人:<input name="cwqz" class="form-control" type="text" placeholder="" value="{{ $table->cwqz }}">
  133. <br>时 间:<input readonly id="cw_time" name="cw_time" class="form-control timepicker" type="text" placeholder="" value="{{ $table->cw_time }}"></td>
  134. </tr>
  135. <tr>
  136. <td><p>发证单位审核意见</p></td>
  137. <td colspan="2"><p style="margin-top: 50%;text-align: center"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;年 &nbsp;&nbsp;&nbsp;&nbsp;月 &nbsp;&nbsp;&nbsp;&nbsp;日</p></td>
  138. <td><p>征收实施单位审批意见</p></td>
  139. <td colspan="2"><p style="margin-top: 50%;text-align: center"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;年 &nbsp;&nbsp;&nbsp;&nbsp;月 &nbsp;&nbsp;&nbsp;&nbsp;日</p></td>
  140. </tr>
  141. </tbody>
  142. </table>
  143. <div class="row">
  144. <div class="col-sm-4">核算:<input name="hesuan" style="border: none #ffffff;border-bottom: #777777 solid 1px;" type="text" placeholder=""></div>
  145. <div class="col-sm-4">初审:<input disabled style="border: none #ffffff;border-bottom: #777777 solid 1px;" ></div>
  146. <div class="col-sm-4">监审:<input disabled style="border: none #ffffff;border-bottom: #777777 solid 1px;" ></div>
  147. </div><br>
  148. <div class="row">
  149. <div class="col-sm-4">复核:<input name="fuhe" style="border: none #ffffff;border-bottom: #777777 solid 1px;" type="text" value="{{ $table->fuhe }}" placeholder=""></div>
  150. <div class="col-sm-8">提交说明 : <label id="sub_description">{{ $table->sub_description }}</label></div>
  151. </div>
  152. </div>
  153. </div>
  154. </div>
  155. {{--model--}}
  156. <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  157. <div class="modal-dialog" role="document">
  158. <div class="modal-content">
  159. <div class="modal-header">
  160. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  161. <h4 class="modal-title" id="myModalLabel">提交说明</h4>
  162. </div>
  163. <div class="modal-body">
  164. <div class="form-group">
  165. <textarea class="form-control" id="model_des" name="sub_description" placeholder="输入您的内容..."></textarea>
  166. </div>
  167. </div>
  168. <div class="modal-footer">
  169. <button type="button" class="btn btn-default" data-dismiss="modal">返回</button>
  170. <button id="sub" type="submit" class="btn btn-primary" onclick="javascript:this.form.action='{{ url('/table/sub/'.$table_id) }}'">提交</button>
  171. </div>
  172. </div>
  173. </div>
  174. </div>
  175. {{--end model--}}
  176. </form>
  177. <script type="text/javascript">
  178. $(function(){
  179. var num = $('#chaichuje1').val();
  180. var AA = new Array("零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖");
  181. var BB = new Array("", "拾", "佰", "仟", "萬", "億", "点", "");
  182. var a = ("" + num).replace(/(^0*)/g, "").split("."), k = 0, re = "";
  183. for (var i = a[0].length - 1; i >= 0; i--) {
  184. switch (k) {
  185. case 0: re = BB[7] + re; break;
  186. case 4: if (!new RegExp("0{4}\\d{" + (a[0].length - i - 1) + "}$").test(a[0]))
  187. re = BB[4] + re; break;
  188. case 8: re = BB[5] + re; BB[7] = BB[5]; k = 0; break;
  189. }
  190. if (k % 4 == 2 && a[0].charAt(i + 2) != 0 && a[0].charAt(i + 1) == 0) re = AA[0] + re;
  191. if (a[0].charAt(i) != 0) re = AA[a[0].charAt(i)] + BB[k % 4] + re; k++;
  192. }
  193. if (a.length > 1) //加上小数部分(如果有小数部分)
  194. {
  195. re += BB[6];
  196. for (var i = 0; i < a[1].length; i++) re += AA[a[1].charAt(i)];
  197. }
  198. $('#chaichuje2').val(re);
  199. });
  200. $(".timepicker").datetimepicker({
  201. language: 'zh',
  202. format: 'yyyy年mm月dd日',
  203. minView:'month'
  204. }).on('changeDate',function(){
  205. $(".datetimepicker").hide();
  206. });
  207. function printed(printpage)
  208. {
  209. var headstr = "<html><head><title></title></head><body>";
  210. var footstr = "</body>";
  211. var newstr = document.all.item(printpage).innerHTML;
  212. var oldstr = document.body.innerHTML;
  213. document.body.innerHTML = headstr+newstr+footstr;
  214. window.print();
  215. document.body.innerHTML = oldstr;
  216. return false;
  217. }
  218. </script>
  219. </div>
  220. <!-- /.box-body -->
  221. </div>
  222. <!-- /.box -->
  223. <div class="row">
  224. <div class="col-sm-8"></div>
  225. <div class="col-sm-4">
  226. @if($table->status == null || $table->status<3)
  227. @if($user->role == 0 && $table->status == 0)
  228. <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/save/'.$table_id.'/update') }}'" class="btn btn-success">
  229. 保存</button>
  230. @endif
  231. @if($user->role == $table->status)
  232. @if($table->status == 0)
  233. <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">提交</button>
  234. @else
  235. <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/sub/'.$table_id) }}'" class="btn btn-primary">
  236. 提交</button>
  237. @endif
  238. @endif
  239. <a href="{{ url('/on_table') }}" class="btn btn-info">返回</a>
  240. @else
  241. <a href="{{ url('/') }}" class="btn btn-info">返回</a>
  242. <a onclick="printed('print')" class="btn btn-success">打印</a>
  243. @endif
  244. </div>
  245. </div>
  246. </section>
  247. <!-- /.content -->
  248. </div>
  249. <!-- /.content-wrapper -->
  250. @endsection