edit.html 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. {extend name="common/base"/}
  2. {block name="style"}
  3. <style>
  4. /* 倒计时 */
  5. .countdown {
  6. height: 8.5vh;
  7. width: 6.5vw;
  8. font-size: 1vw;
  9. text-align: center;
  10. border: 1px solid #eee;
  11. }
  12. .countdown-top {
  13. height: 3.5vh;
  14. line-height: 3.5vh;
  15. border-bottom: 1px solid #eee;
  16. color: #fff;
  17. background-color: rgb(23, 145, 233);
  18. border-bottom: 1px solid rgb(23, 145, 233);
  19. font-size: 0.95vw;
  20. padding: 0;
  21. margin: 0;
  22. }
  23. .countdown-bottom {
  24. height: 5vh;
  25. line-height: 5vh;
  26. padding: 0;
  27. margin: 0;
  28. background-color: #fff;
  29. }
  30. /* 项目名称下面的字体变大 */
  31. .ziti{
  32. font-size: 1vw;
  33. }
  34. </style>
  35. {/block}
  36. <!-- 主体 -->
  37. {block name="body"}
  38. <div class="layui-form p-4">
  39. <div class="layui-row layui-col-space12">
  40. <div class="layui-col-md10" style="padding: 0;">
  41. <div class="layui-col-md12" style="padding: 8px;">
  42. <h1>{$detail.project_name}</h1>
  43. </div>
  44. <div class="layui-col-md3 ziti" style="padding: 8px;font-size:1.1vw;">
  45. {$detail.project_num}
  46. </div>
  47. <div class="layui-col-md3 ziti" style="padding: 8px;font-size:1.1vw;">
  48. {if $detail.unit_type==0}
  49. {$detail.review_head_name}
  50. {elseif $detail.unit_type==2}
  51. {$detail.entrust_unit_name}
  52. {else}
  53. {/if}
  54. <!--公司负责人-->
  55. </div>
  56. <div class="layui-col-md3 ziti" style="padding: 8px;font-size:1.1vw;">
  57. {if $detail.maker_type==2}创建时间于:{$detail.create_time|date="Y-m-d"}
  58. {else}接收时间于:{if $detail.project_receive_time==0}未接收{else}{$detail.project_receive_time|date="Y-m-d"}{/if}
  59. {/if}
  60. </div>
  61. </div>
  62. <div class="layui-col-md1" style="padding: 0;">
  63. <div class="layui-card countdown">
  64. <div class="countdown-top" style="font-weight: 600;font-size:1.1vw;">
  65. {if $detail.project_end_time>time()}剩 余{else}逾 期{/if}
  66. </div>
  67. <div class="countdown-bottom" style="font-size:1.1vw;">
  68. {$advent_time}
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. <div class="layui-tab layui-tab-card" style="margin:0;" lay-filter="project" id="projectTab">
  75. <ul class="layui-tab-title">
  76. <li class="layui-this" lay-id="true">项目概览</li>
  77. {if $project_five.project_user == 1}
  78. <li data-load="" data-id="4">项目人员</li>
  79. {/if}
  80. {if $project_five.project_report == 1}
  81. <li data-load="" data-id="3">项目报告</li>
  82. {/if}
  83. {if $project_five.project_contact == 1}
  84. <li data-load="" data-id="7">联系函</li>
  85. {/if}
  86. {if $project_five.project_comments == 1}
  87. <li lay-id="22" data-id="1">作业日志</li>
  88. {/if}
  89. {if $project_five.project_record == 1}
  90. <li data-load="" data-id="2">工作记录</li>
  91. {/if}
  92. <li data-load="" data-id="8">预约看现场</li>
  93. {if $project_five.project_log == 1}
  94. <li data-load="" data-id="5">项目动态</li>
  95. {/if}
  96. </ul>
  97. <div class="layui-tab-content">
  98. <div class="layui-tab-item layui-show">
  99. {include file="/project/cost_company/edit_first" /}
  100. </div>
  101. {if $project_five.project_user == 1}
  102. <div class="layui-tab-item">
  103. {include file="/project/cost_company/edit_user" /}
  104. </div>
  105. {/if}
  106. {if $project_five.project_report == 1}
  107. <div class="layui-tab-item">
  108. {include file="/project/cost_company/edit_report" /}
  109. </div>
  110. {/if}
  111. {if $project_five.project_contact == 1}
  112. <div class="layui-tab-item">
  113. {include file="/project/cost_company/edit_contact" /}
  114. </div>
  115. {/if}
  116. {if $project_five.project_comments == 1}
  117. <div class="layui-tab-item">
  118. {include file="/project/cost_company/edit_log" /}
  119. </div>
  120. {/if}
  121. {if $project_five.project_record == 1}
  122. <div class="layui-tab-item">
  123. {include file="/project/cost_company/edit_record" /}
  124. </div>
  125. {/if}
  126. <div class="layui-tab-item">
  127. {include file="/project/cost_company/edit_appointment" /}
  128. </div>
  129. {if $project_five.project_log == 1}
  130. <div class="layui-tab-item">
  131. {include file="/project/projectlog/index" /}
  132. </div>
  133. {/if}
  134. </div>
  135. </div>
  136. {/block}
  137. <!-- /主体 -->
  138. <!-- 脚本 -->
  139. {block name="script"}
  140. <script>
  141. var moduleInit = ['tool', 'oaTool', 'employeepicker'];
  142. var project_id = '{$detail.id}';
  143. function gouguInit() {
  144. var element = layui.element,
  145. form = layui.form,
  146. tool = layui.tool;
  147. first();
  148. console.log($('#hha').css("display",'block'))
  149. element.on('tab(project)', function (data) {
  150. let index = $(this).attr('data-id');
  151. console.log(index)
  152. if (index == 1) {
  153. comment();
  154. } else if (index == 2) {
  155. record();
  156. } else if (index == 3) {
  157. report();
  158. } else if (index == 4) {
  159. project_user()
  160. } else if (index == 5) {
  161. } else if (index == 6) {
  162. console.log("aaa")
  163. } else if (index == 7) {
  164. contact()
  165. } else if (index == 8) {
  166. appointment();
  167. }
  168. });
  169. }
  170. </script>
  171. {/block}
  172. <!-- /脚本 -->