table_five.blade.php 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. @extends('layouts.admin')
  2. @section('content')
  3. {{--修改表格--}}
  4. @include('admin.table.style')
  5. <!--左侧菜单栏-->
  6. @include('admin.left-sidebar')
  7. <!-- 内容 -->
  8. <div class="content-wrapper" xmlns="http://www.w3.org/1999/html">
  9. <!-- Content Header (Page header) -->
  10. <section class="content-header">
  11. <h1>
  12. 受理案件
  13. <small> </small>
  14. </h1>
  15. <ol class="breadcrumb">
  16. <li><a href="{{ url('/')}}"><i class="fa fa-dashboard"></i> 主页</a></li>
  17. <li><a href="#">项目申请</a></li>
  18. <li><a href="{{ url('/table') }}">受理案件</a></li>
  19. </ol>
  20. </section>
  21. <!-- Main content -->
  22. <section class="content">
  23. <!-- Default box -->
  24. <div class="box">
  25. <div class="box-header">
  26. </div>
  27. <!-- /.box-header -->
  28. <div class="box-body" id="print">
  29. {{--content--}}
  30. <div class="row" style="text-align: center">
  31. <h3>房屋逾期过渡安置补助费发放单</h3><br>
  32. </div>
  33. <form action="" method="post">
  34. {{ csrf_field() }}
  35. <div id="example2_wrapper" class="dataTables_wrapper form-inline dt-bootstrap">
  36. <div class="row">
  37. <div class="col-sm-2">项目名称:</div>
  38. <div class="col-sm-7">
  39. <select name="project_name" class="form-control">
  40. <option value=" "></option>
  41. @foreach($project as $data)
  42. <option value="{{ $data->project_name }}"
  43. @if($table->project_name == $data->project_name) selected @endif
  44. >{{ $data->project_name }}</option>
  45. @endforeach
  46. </select> </div>
  47. <div class="col-sm-1">编号:</div>
  48. <div class="col-sm-2">
  49. <input style="margin: 0px;" name="num" value="{{ $table->num }}" class="form-control" type="text" placeholder="必填项">
  50. </div><br><br>
  51. </div>
  52. <div class="row">
  53. <div class="col-sm-12">
  54. <table style="border: 1px solid #585858" id="example2" class="table table-bordered">
  55. <tbody>
  56. <tr>
  57. <td>被征收户姓名</td>
  58. <td><input name="bzc_name" value="{{ $table->bzc_name }}" class="form-control" type="text" placeholder=""></td>
  59. <td>被征收房屋住址</td>
  60. <td colspan="2"><input name="bzc_addr" value="{{ $table->bzc_addr }}" class="form-control" type="text" placeholder=""></td>
  61. </tr>
  62. <tr>
  63. <td>联系电话</td>
  64. <td><input name="bzc_tel" value="{{ $table->bzc_tel }}" class="form-control" type="text" placeholder=""></td>
  65. <td>被征收人身份证号</td>
  66. <td colspan="2"><input name="bzc_cardid" value="{{ $table->bzc_cardid }}" class="form-control" type="text" placeholder=""></td>
  67. </tr>
  68. <tr>
  69. <td>逾期开始时间</td>
  70. <td>逾期结束时间</td>
  71. <td>逾期月数</td>
  72. <td>补助标准</td>
  73. <td>合 计</td>
  74. </tr>
  75. <tr>
  76. <td><input name="yuqi_time1" id="yuqi_time1" class="form-control" type="hidden" placeholder="">
  77. <input readonly id="yuqi_time1_1" value="{{ $table->yuqi_time1 }}" class="form-control form_datetime" type="text"></td>
  78. <td><input readonly id="yuqi_time1_2" value="{{ $table->yuqi_time2 }}" class="form-control form_datetime" type="text"></td>
  79. <td><input name="yuqi_mothe1" value="{{ $table->yuqi_mothe1 }}" class="form-control" type="text" placeholder=""></td>
  80. <td><input name="buzu1" value="{{ $table->buzu1 }}" class="form-control" type="text" placeholder=""></td>
  81. <td><input name="total1" value="{{ $table->total1 }}" class="form-control" type="text" placeholder=""></td>
  82. </tr>
  83. <tr>
  84. <td><input name="yuqi_time2" id="yuqi_time2" value="{{ $table->yuqi_time2 }}" class="form-control" type="hidden" placeholder="">
  85. <input value="<?php echo substr($table->yuqi_time2,0,8);?>" readonly id="yuqi_time2_1" class="form-control form_datetime" type="text"></td>
  86. <td><input value="<?php echo substr($table->yuqi_time2,8,16);?>" readonly id="yuqi_time2_2" class="form-control form_datetime" type="text"></td>
  87. <td><input name="yuqi_mothe2" value="{{ $table->yuqi_mothe2 }}" class="form-control" type="text" placeholder=""></td>
  88. <td><input name="buzu2" value="{{ $table->buzu2 }}" class="form-control" type="text" placeholder=""></td>
  89. <td><input name="total2" value="{{ $table->total2 }}" class="form-control" type="text" placeholder=""></td>
  90. </tr>
  91. <tr>
  92. <td><input name="yuqi_time3" id="yuqi_time3" value="{{ $table->yuqi_time3 }}" class="form-control" type="hidden" placeholder="">
  93. <input value="<?php echo substr($table->yuqi_time3,0,8);?>" readonly id="yuqi_time3_1" class="form-control form_datetime" type="text"></td>
  94. <td><input value="<?php echo substr($table->yuqi_time3,8,16);?>" readonly id="yuqi_time3_2" class="form-control form_datetime" type="text"></td>
  95. <td><input name="yuqi_mothe3" value="{{ $table->yuqi_mothe3 }}" class="form-control" type="text" placeholder=""></td>
  96. <td><input name="buzu3" value="{{ $table->buzu3 }}" class="form-control" type="text" placeholder=""></td>
  97. <td><input name="total3" value="{{ $table->total3 }}" class="form-control" type="text" placeholder=""></td>
  98. </tr>
  99. <tr>
  100. <td><input name="yuqi_time4" id="yuqi_time4" value="{{ $table->yuqi_time4 }}" class="form-control" type="hidden" placeholder="">
  101. <input value="<?php echo substr($table->yuqi_time4,0,8);?>" readonly id="yuqi_time4_1" class="form-control form_datetime" type="text"></td>
  102. <td><input value="<?php echo substr($table->yuqi_time4,8,16);?>" readonly id="yuqi_time4_2" class="form-control form_datetime" type="text"></td>
  103. <td><input name="yuqi_mothe4" value="{{ $table->yuqi_mothe4 }}" class="form-control" type="text" placeholder=""></td>
  104. <td><input name="buzu4" value="{{ $table->buzu4 }}" class="form-control" type="text" placeholder=""></td>
  105. <td><input name="total4" value="{{ $table->total4 }}" class="form-control" type="text" placeholder=""></td>
  106. </tr>
  107. <tr>
  108. <td>逾期补偿金额</td>
  109. <td colspan="3">¥:<input id="yuqij2" class="form-control" type="text" placeholder="">(元)</td>
  110. <td> <input name="yuqij" id="yuqij1" value="{{ $table->yuqij }}" class="form-control" type="text" placeholder="" onclick="add(total1,total2,total3,total4,yuqij)"> </td>
  111. </tr>
  112. <tr>
  113. <td>约定</td>
  114. <td colspan="4">1.待回迁楼建成交钥匙时,征收当事人根据双方实际逾期月数,据实结算安置过渡补助费差价。
  115. <br><input name="yueding" value="{{ $table->yueding }}" class="form-control" type="text" placeholder=""></td>
  116. </tr>
  117. <tr>
  118. <td rowspan="2" style="height: 90px;">征收实施单位(章)</td>
  119. <td>被征收人(签字)</td>
  120. <td ></td>
  121. <td >代理人(签字)</td>
  122. <td ></td>
  123. </tr>
  124. <tr>
  125. <td >签约时间</td>
  126. <td colspan="3"><input readonly id="table_time" name="table_time" class="form-control form_datetime" type="hidden" placeholder=""></td>
  127. </tr>
  128. </tbody>
  129. </table>
  130. <div class="row">
  131. <div class="col-sm-4">核算(签字):<input name="hesuan" style="border: none #ffffff;border-bottom: #777777 solid 1px;" type="text" placeholder=""></div>
  132. <div class="col-sm-4">初审(签字):<input disabled style="border: none #ffffff;border-bottom: #777777 solid 1px;" ></div>
  133. <div class="col-sm-4">监审(签字):<input disabled style="border: none #ffffff;border-bottom: #777777 solid 1px;" ></div>
  134. </div><br>
  135. <div class="row">
  136. <div class="col-sm-4">复核(签字):<input name="fuhe" style="border: none #ffffff;border-bottom: #777777 solid 1px;" type="text" value="{{ $table->fuhe }}" placeholder=""></div>
  137. <div class="col-sm-4">初审(签字):<input style="border: none #ffffff;border-bottom: #777777 solid 1px;" ></div>
  138. <div class="col-sm-4">监审(签字):<input style="border: none #ffffff;border-bottom: #777777 solid 1px;" ></div>
  139. </div><br>
  140. <div class="row">
  141. <div class="col-sm-8">
  142. 提交说明 : <label id="sub_description">{{ $table->sub_description }}</label>
  143. </div>
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. {{--model--}}
  149. <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  150. <div class="modal-dialog" role="document">
  151. <div class="modal-content">
  152. <div class="modal-header">
  153. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  154. <h4 class="modal-title" id="myModalLabel">提交说明</h4>
  155. </div>
  156. <div class="modal-body">
  157. <div class="form-group">
  158. <textarea class="form-control" id="model_des" name="sub_description" placeholder="输入您的内容..."></textarea>
  159. </div>
  160. </div>
  161. <div class="modal-footer">
  162. <button type="button" class="btn btn-default" data-dismiss="modal">返回</button>
  163. <button id="sub" type="submit" class="btn btn-primary" onclick="javascript:this.form.action='{{ url('/table/sub/'.$table_id) }}'">提交</button>
  164. </div>
  165. </div>
  166. </div>
  167. </div>
  168. {{--end model--}}
  169. <div class="row" id="bottom_button">
  170. <div class="col-sm-8"></div>
  171. <div class="col-sm-4">
  172. @if($table->status == null || $table->status<3)
  173. @if($user->role == 0 && $table->status == 0)
  174. <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/save/'.$table_id.'/update') }}'" class="btn btn-success">
  175. 保存</button>
  176. @endif
  177. @if($user->role == $table->status)
  178. @if($table->status == 0)
  179. <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">提交</button>
  180. @else
  181. <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/sub/'.$table_id) }}'" class="btn btn-primary">
  182. 提交</button>
  183. <a href="{{ url('/back/?table_type_id='.$table_type_id.'&table_id='.$table_id) }}" class="btn btn-danger">驳回</a>
  184. @endif
  185. @endif
  186. <a href="{{ url('/on_table') }}" class="btn btn-info">返回</a>
  187. <a href="{{ url('/print/'.$table_id) }}" target="_blank" class="btn btn-success">打印</a>
  188. @else
  189. <a href="{{ url('/') }}" class="btn btn-info">返回</a>
  190. <a href="{{ url('/print/'.$table_id) }}" target="_blank" class="btn btn-success">打印</a>
  191. @endif
  192. </div>
  193. </div>
  194. </form>
  195. <script type="text/javascript">
  196. $(function(){
  197. var num = $('#yuqij1').val();
  198. var AA = new Array("零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖");
  199. var BB = new Array("", "拾", "佰", "仟", "萬", "億", "点", "");
  200. var a = ("" + num).replace(/(^0*)/g, "").split("."), k = 0, re = "";
  201. for (var i = a[0].length - 1; i >= 0; i--) {
  202. switch (k) {
  203. case 0: re = BB[7] + re; break;
  204. case 4: if (!new RegExp("0{4}\\d{" + (a[0].length - i - 1) + "}$").test(a[0]))
  205. re = BB[4] + re; break;
  206. case 8: re = BB[5] + re; BB[7] = BB[5]; k = 0; break;
  207. }
  208. if (k % 4 == 2 && a[0].charAt(i + 2) != 0 && a[0].charAt(i + 1) == 0) re = AA[0] + re;
  209. if (a[0].charAt(i) != 0) re = AA[a[0].charAt(i)] + BB[k % 4] + re; k++;
  210. }
  211. if (a.length > 1) //加上小数部分(如果有小数部分)
  212. {
  213. re += BB[6];
  214. for (var i = 0; i < a[1].length; i++) re += AA[a[1].charAt(i)];
  215. }
  216. $('#yuqij2').val(re);
  217. });
  218. $(".form_datetime").datetimepicker({
  219. language: 'zh',
  220. format: 'yyyy年mm月dd日',
  221. minView:'month'
  222. }).on('changeDate',function(){
  223. $(".datetimepicker").hide();
  224. });
  225. function add(one,two,three,four,add){
  226. var num = parseFloat($(one).val()) + parseFloat($(two).val())+ parseFloat($(three).val())+ parseFloat($(four).val());
  227. num = Math.round(num);
  228. $(add).val(num + "");
  229. if (!/^\d*(\.\d*)?$/.test(num)) { alert("Number is wrong!"); return "Number is wrong!"; }
  230. var AA = new Array("零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖");
  231. var BB = new Array("", "拾", "佰", "仟", "萬", "億", "点", "");
  232. var a = ("" + num).replace(/(^0*)/g, "").split("."), k = 0, re = "";
  233. for (var i = a[0].length - 1; i >= 0; i--) {
  234. switch (k) {
  235. case 0: re = BB[7] + re; break;
  236. case 4: if (!new RegExp("0{4}\\d{" + (a[0].length - i - 1) + "}$").test(a[0]))
  237. re = BB[4] + re; break;
  238. case 8: re = BB[5] + re; BB[7] = BB[5]; k = 0; break;
  239. }
  240. if (k % 4 == 2 && a[0].charAt(i + 2) != 0 && a[0].charAt(i + 1) == 0) re = AA[0] + re;
  241. if (a[0].charAt(i) != 0) re = AA[a[0].charAt(i)] + BB[k % 4] + re; k++;
  242. }
  243. if (a.length > 1) //加上小数部分(如果有小数部分)
  244. {
  245. re += BB[6];
  246. for (var i = 0; i < a[1].length; i++) re += AA[a[1].charAt(i)];
  247. }
  248. $('#yuqij2').val(re);
  249. }
  250. function printed(printpage)
  251. {
  252. $('#bottom_button').hide();
  253. var headstr = "<html><head><title></title></head><body>";
  254. var footstr = "</body>";
  255. var newstr = document.all.item(printpage).innerHTML;
  256. var oldstr = document.body.innerHTML;
  257. document.body.innerHTML = headstr+newstr+footstr;
  258. window.print();
  259. document.body.innerHTML = oldstr;
  260. $('#bottom_button').show();
  261. return false;
  262. }
  263. </script>
  264. </div>
  265. <!-- /.box-body -->
  266. </div>
  267. <!-- /.box -->
  268. </section>
  269. <!-- /.content -->
  270. </div>
  271. <!-- /.content-wrapper -->
  272. @endsection