d50a0a9e94ec8e121fe0b67cd450320f.php 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381
  1. <?php /*a:2:{s:78:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\audit_company\datalist.html";i:1723541257;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 type="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. <div id="selectBox2" style="display: none;">
  40. <div id="financialSelect2"></div>
  41. <div id="companySelect2"></div>
  42. <button id="cc">1111</button>
  43. </div>
  44. <script type="text/html" id="toolbarDemo">
  45. <div class="layui-btn-container">
  46. </div>
  47. </script>
  48. <script type="text/html" id="barDemo">
  49. <div class="layui-btn-group">
  50. <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="read">查看</a>
  51. <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="receive">接收</a>
  52. </div>
  53. </script>
  54. <!-- /主体 -->
  55. <!-- 底部 -->
  56. <div class="footer">
  57. 逸管工程项目管理系统 © www.yiguanfep.com
  58. <img src="/static/home/images/police.png" alt="" style="width:14.5px;height:16px;">
  59. <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>
  60. <a href="https://beian.miit.gov.cn/#/Integrated/index" onclick="window.open(this.href); return false;">桂ICP备17000971号</a>
  61. </div>
  62. <!-- /底部 -->
  63. <!-- 脚本 -->
  64. <script>
  65. const moduleInit = ['tool'];
  66. var listount;
  67. var select_Data
  68. var financial = [
  69. {nickname: "hhh1", id: 1},
  70. {nickname: "hhh2", id: 2},
  71. {nickname: "hhh3", id: 3},
  72. ]
  73. function gouguInit() {
  74. var table = layui.table, tool = layui.tool, form = layui.form;
  75. var allcount;
  76. layui.pageTable = table.render({
  77. elem: '#cost_project',
  78. title: '造价项目列表',
  79. toolbar: '#toolbarDemo',
  80. url: '/admin/project.audit_company/datalist',
  81. page: true,
  82. limit: 20,
  83. parseData: function(res) { // 数据解析回调函数
  84. // 在这里可以获取数据总数
  85. allcount = res.count;
  86. return {
  87. code: res.code, // 数据状态码
  88. msg: res.msg, // 状态信息
  89. count: res.count, // 数据总数
  90. data: res.data // 当前页数据
  91. };
  92. },
  93. cols: [
  94. [
  95. {fixed: 'left', field: 'id', title: '编号', align: 'center', width: 80,
  96. templet: function(d){
  97. return allcount - (d.LAY_NUM-1);
  98. }
  99. },
  100. {
  101. field: 'project_status',
  102. title: '项目状态',
  103. align: 'center',
  104. width: 100,
  105. templet: function (item) {
  106. var html;
  107. if (item.project_status === 3) {
  108. html = '<span class="layui-badge layui-bg-orange">待接收</span> ';
  109. }
  110. return html;
  111. }
  112. },
  113. {
  114. field: 'project_name',
  115. title: '项目名称',
  116. align: 'center',
  117. width: 200
  118. }, {
  119. field: 'project_num',
  120. title: '项目编号',
  121. align: 'center',
  122. width: 150
  123. }, {
  124. field: 'project_time',
  125. title: '项目周期',
  126. align: 'center',
  127. width: 250,
  128. templet: function (item) {
  129. var html;
  130. html =
  131. "<div>" +
  132. layui.util.toDateString(item.project_start_time * 1000, 'yyyy-MM-dd') +
  133. "~" +
  134. layui.util.toDateString(item.project_end_time * 1000, 'yyyy-MM-dd') +
  135. "</div>";
  136. return html;
  137. }
  138. }, {
  139. field: 'entrust_unit_name',
  140. title: '委托单位',
  141. align: 'center',
  142. width: 150
  143. }, {
  144. field: 'entrust_head',
  145. title: '委托单位负责人',
  146. align: 'center',
  147. width: 150
  148. }, {
  149. field: 'entrust_head_phone',
  150. title: '委托单位负责人电话',
  151. align: 'center',
  152. width: 150
  153. }, {
  154. field: 'sent_review_unit',
  155. title: '送审单位',
  156. align: 'center',
  157. width: 100
  158. }, {
  159. field: 'sent_review_head',
  160. title: '送审单位负责人',
  161. align: 'center',
  162. width: 150
  163. }, {
  164. field: 'sent_review_phone',
  165. title: '送审单位负责人电话',
  166. align: 'center',
  167. width: 150
  168. }, {
  169. field: 'project_scale',
  170. title: '项目规模',
  171. align: 'center',
  172. width: 150
  173. }, {
  174. field: 'engineering_category',
  175. title: '工程类别',
  176. align: 'center',
  177. width: 150
  178. }, {
  179. field: 'engineering_type',
  180. title: '项目类型',
  181. align: 'center',
  182. width: 150
  183. }, {
  184. field: 'project_region',
  185. title: '项目区域',
  186. align: 'center',
  187. width: 150
  188. }, {
  189. field: 'fiscal_nature',
  190. title: '财政性质',
  191. align: 'center',
  192. width: 150
  193. }, {
  194. field: 'sent_review_cost',
  195. title: '送审服务费',
  196. align: 'center',
  197. width: 150
  198. }, {
  199. field: 'preparation_amount',
  200. title: '编制金额',
  201. align: 'center',
  202. width: 150
  203. }, {
  204. field: 'sent_review_amount',
  205. title: '送审金额',
  206. align: 'center',
  207. width: 150
  208. }, {
  209. field: 'authorize_amount',
  210. title: '审定金额',
  211. align: 'center',
  212. width: 150
  213. }, {
  214. field: 'review_add_amount',
  215. title: '审增金额',
  216. align: 'center',
  217. width: 150
  218. }, {
  219. field: 'review_reduce_amount',
  220. title: '审减金额',
  221. align: 'center',
  222. width: 150
  223. }, {
  224. field: 'report_time',
  225. title: '报告时间',
  226. align: 'center',
  227. width: 150,
  228. templet: function (d) {
  229. if (d.report_time) {
  230. return layui.util.toDateString(d.report_time * 1000, "yyyy-MM-dd")
  231. } else {
  232. return "";
  233. }
  234. }
  235. }, {
  236. field: 'charge_standard',
  237. title: '收费标准',
  238. align: 'center',
  239. width: 150
  240. }, {
  241. field: 'invoicing__amount',
  242. title: '开票金额',
  243. align: 'center',
  244. width: 150
  245. }, {
  246. field: 'invoicing__num',
  247. title: '开票编号',
  248. align: 'center',
  249. width: 150
  250. }, {
  251. field: 'operate_head_name',
  252. title: '作业负责人',
  253. align: 'center',
  254. width: 150
  255. }, {
  256. field: 'operate_team_names',
  257. title: '作业成员',
  258. align: 'center',
  259. width: 300
  260. }, {
  261. field: 'create_time',
  262. title: '项目创建日期',
  263. align: 'center',
  264. width: 120,
  265. templet: "<div>{{layui.util.toDateString(d.updated, 'yyyy-MM-dd')}}</div>"
  266. }, {
  267. field: 'project_dead_time',
  268. title: '项目归档日期',
  269. align: 'center',
  270. width: 120
  271. },
  272. {
  273. fixed: 'right',
  274. field: 'right',
  275. title: '操作',
  276. toolbar: '#barDemo',
  277. width: 136,
  278. align: 'center'
  279. }
  280. ]
  281. ],
  282. done: function (res, curr, count) {
  283. listount = count;
  284. }
  285. });
  286. //监听表格行工具事件
  287. table.on('tool(cost_project)', function (obj) {
  288. var data = obj.data;
  289. if (obj.event === 'read') {
  290. // console.log(obj.data.getTrusteeName.institution)
  291. tool.side('/admin/project.audit_company/read?id=' + obj.data.id);
  292. } else if (obj.event === 'edit') {
  293. tool.side('/admin/project.audit_company/edit?id=' + obj.data.id);
  294. } else if (obj.event === 'receive') {
  295. var index = layer.confirm("确认是否接收此项目?", function () {
  296. layer.close(index);
  297. let callback = function (e) {
  298. layer.msg(e.msg);
  299. listount--;
  300. if (listount == 0) {
  301. parent.showhongdian()
  302. }
  303. if (e.code == 0) {
  304. obj.del();
  305. }
  306. }
  307. tool.delete("/admin/project.audit_company/receive", {
  308. id: data.id,
  309. }, callback);
  310. })
  311. return false;
  312. }
  313. })
  314. //监听搜索提交
  315. form.on('submit(searchform)', function (data) {
  316. layui.pageTable.reload({
  317. where: {
  318. keywords: data.field.keywords
  319. },
  320. page: {
  321. curr: 1
  322. }
  323. });
  324. return false;
  325. });
  326. }
  327. </script>
  328. <!-- /脚本 -->
  329. <!-- <script src="/static/assets/layui/layui.js"></script> -->
  330. <script src="/static/assets/layui/layui.js"></script>
  331. <script src="/static/assets/third_party/echart/echarts.min.js"></script>
  332. <script src="/static/assets/gougu/gouguInit.js"></script>
  333. <script src="https://unpkg.com/pinyin-pro"></script>
  334. <script>
  335. var { pinyin } = pinyinPro;
  336. </script>
  337. <!-- 统计代码 -->
  338. <!-- /统计代码 -->
  339. </body>
  340. </html>