8df377af2259cf4f88f966b22d0dee16.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. <?php /*a:2:{s:73:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\approval\datalist.html";i:1724692545;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. width: 100%;
  19. height: 25px;
  20. text-align: center;
  21. position: fixed;
  22. bottom: 0;
  23. }
  24. </style>
  25. </head>
  26. <body class="main-body">
  27. <!-- 主体 -->
  28. <div class="p-3">
  29. <form class="layui-form gg-form-bar border-t border-x">
  30. <div class="layui-input-inline" style="width:300px;">
  31. <input type="text" name="keywords" placeholder="请输入关键字" class="layui-input" autocomplete="off"/>
  32. </div>
  33. <div class="layui-input-inline">
  34. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="searchform">提交搜索</button>
  35. </div>
  36. </form>
  37. <table class="layui-hide" id="cost_project" lay-filter="cost_project"></table>
  38. </div>
  39. <script type="text/html" id="toolbarDemo">
  40. <div class="layui-btn-container">
  41. </div>
  42. </script>
  43. <script type="text/html" id="barDemo">
  44. <div class="layui-btn-group">
  45. <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="read">查看</a>
  46. <a class="layui-btn layui-btn-xs" lay-event="receive">接收</a>
  47. <!-- <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>-->
  48. </div>
  49. </script>
  50. <!-- /主体 -->
  51. <!-- 底部 -->
  52. <div class="footer">
  53. 逸管工程项目管理系统 © www.yiguanfep.com
  54. <img src="/static/home/images/police.png" alt="" style="width:14.5px;height:16px;">
  55. <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>
  56. <a href="https://beian.miit.gov.cn/#/Integrated/index" onclick="window.open(this.href); return false;">桂ICP备17000971号</a>
  57. </div>
  58. <!-- /底部 -->
  59. <!-- 脚本 -->
  60. <script>
  61. const moduleInit = ['tool'];
  62. var listount;
  63. function gouguInit() {
  64. var table = layui.table, tool = layui.tool, form = layui.form;
  65. var allcount;
  66. layui.pageTable = table.render({
  67. elem: '#cost_project',
  68. title: '造价项目列表',
  69. toolbar: '#toolbarDemo',
  70. url: '/admin/project.approval/datalist',
  71. page: true,
  72. limit: 20,
  73. parseData: function (res) { // 数据解析回调函数
  74. // 在这里可以获取数据总数
  75. allcount = res.count;
  76. return {
  77. code: res.code, // 数据状态码
  78. msg: res.msg, // 状态信息
  79. count: res.count, // 数据总数
  80. data: res.data // 当前页数据
  81. };
  82. },
  83. cols: [
  84. [
  85. {
  86. fixed: 'left', field: 'id', title: '编号', align: 'center', width: 80,
  87. templet: function (d) {
  88. return allcount - (d.LAY_NUM - 1);
  89. }
  90. }, {
  91. field: 'project_status',
  92. title: '项目状态',
  93. align: 'center',
  94. width: 100,
  95. templet: function (item) {
  96. var html = '';
  97. if (item.project_status === 2) {
  98. html = '<span>审批中</span> ';
  99. } else if (item.project_status === 3) {
  100. html = '<span">待接收</span> ';
  101. } else if (item.project_status === 4) {
  102. html = '<span">分配中</span> ';
  103. } else if (item.project_status === 5) {
  104. html = '<span>作业中</span> ';
  105. } else if (item.project_status === 6) {
  106. html = '<span">归档中</span> ';
  107. } else if (item.project_status === 7) {
  108. html = '<span">退审中</span> ';
  109. } else if (item.project_status === 8) {
  110. html = '<span">已归档</span> ';
  111. } else if (item.project_status === 9) {
  112. html = '<span">已退审</span> ';
  113. } else if (item.project_status === 0) {
  114. html = '<span">立项中</span> ';
  115. } else if (item.project_status === 1) {
  116. html = '<span">立项中</span> ';
  117. }
  118. return html;
  119. }
  120. },
  121. {
  122. field: 'project_name',
  123. title: '项目名称',
  124. align: 'center',
  125. width: 200
  126. }, {
  127. field: 'project_num',
  128. title: '项目编号',
  129. align: 'center',
  130. width: 150
  131. }, {
  132. field: 'project_time',
  133. title: '项目周期',
  134. align: 'center',
  135. width: 250,
  136. templet: function (item) {
  137. var html;
  138. html =
  139. "<div>" +
  140. layui.util.toDateString(item.project_start_time * 1000, 'yyyy-MM-dd') +
  141. "~" +
  142. layui.util.toDateString(item.project_end_time * 1000, 'yyyy-MM-dd') +
  143. "</div>";
  144. return html;
  145. }
  146. }, {
  147. field: 'sent_review_unit_name',
  148. title: '委托单位',
  149. align: 'center',
  150. width: 150
  151. }, {
  152. field: 'sent_review_head_name',
  153. title: '委托单位负责人',
  154. align: 'center',
  155. width: 150
  156. }, {
  157. field: 'sent_review_phone',
  158. title: '委托单位负责人电话',
  159. align: 'center',
  160. width: 150
  161. }, {
  162. field: 'project_scale',
  163. title: '项目规模',
  164. align: 'center',
  165. width: 150
  166. }, {
  167. field: 'engineering_category',
  168. title: '工程类别',
  169. align: 'center',
  170. width: 150
  171. }, {
  172. field: 'engineering_type',
  173. title: '项目类型',
  174. align: 'center',
  175. width: 150
  176. }, {
  177. field: 'project_region',
  178. title: '项目区域',
  179. align: 'center',
  180. width: 150
  181. }, {
  182. field: 'fiscal_nature',
  183. title: '财政性质',
  184. align: 'center',
  185. width: 150
  186. }, {
  187. field: 'create_time',
  188. title: '项目创建日期',
  189. align: 'center',
  190. width: 120,
  191. templet: "<div>{{layui.util.toDateString(d.updated, 'yyyy-MM-dd')}}</div>"
  192. }, {
  193. field: 'project_dead_time',
  194. title: '项目归档日期',
  195. align: 'center',
  196. width: 120
  197. },
  198. {
  199. fixed: 'right',
  200. field: 'right',
  201. title: '操作',
  202. toolbar: '#barDemo',
  203. width: 136,
  204. align: 'center'
  205. }
  206. ]
  207. ],
  208. done: function (res, curr, count) {
  209. listount = count;
  210. }
  211. });
  212. //监听表格行工具事件
  213. table.on('tool(cost_project)', function (obj) {
  214. var data = obj.data;
  215. if (obj.event === 'read') {
  216. // console.log(obj.data.getTrusteeName.institution)
  217. tool.side('/admin/project.approval/read?id=' + obj.data.id);
  218. } else if (obj.event === 'edit') {
  219. tool.side('/admin/project.approval/edit?id=' + obj.data.id);
  220. } else if (obj.event === 'receive') {
  221. var index = layer.confirm("确认是否接收此项目?", function () {
  222. layer.close(index);
  223. let callback = function (e) {
  224. layer.msg(e.msg);
  225. listount--;
  226. if (listount == 0) {
  227. parent.showhongdian()
  228. }
  229. if (e.code == 0) {
  230. obj.del();
  231. }
  232. }
  233. tool.delete("/admin/project.approval/receive", {
  234. id: data.id,
  235. }, callback);
  236. })
  237. return false;
  238. }
  239. //监听搜索提交
  240. form.on('submit(searchform)', function (data) {
  241. layui.pageTable.reload({
  242. where: {
  243. keywords: data.field.keywords
  244. },
  245. page: {
  246. curr: 1
  247. }
  248. });
  249. return false;
  250. });
  251. })
  252. }
  253. </script>
  254. <!-- /脚本 -->
  255. <!-- <script src="/static/assets/layui/layui.js"></script> -->
  256. <script src="/static/assets/layui/layui.js"></script>
  257. <script src="/static/assets/third_party/echart/echarts.min.js"></script>
  258. <script src="/static/assets/gougu/gouguInit.js"></script>
  259. <script src="https://unpkg.com/pinyin-pro"></script>
  260. <script>
  261. var { pinyin } = pinyinPro;
  262. </script>
  263. <!-- 统计代码 -->
  264. <!-- /统计代码 -->
  265. </body>
  266. </html>