644a89f884faeff329ac860cda932957.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. <?php /*a:2:{s:78:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\appropriation\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. .name{
  25. font-weight: 600;
  26. color: rgb(95,95,95);
  27. }
  28. .number-red{
  29. color: red;
  30. }
  31. .number-green{
  32. color: rgb(11,178,89);
  33. }
  34. .yuan{
  35. padding-right: 2vw;
  36. }
  37. .static{
  38. display: flex;
  39. }
  40. </style>
  41. </head>
  42. <body class="main-body">
  43. <!-- 主体 -->
  44. <div class="p-3">
  45. <form class="layui-form gg-form-bar border-t border-x">
  46. <div class="layui-input-inline" style="width:300px;">
  47. <input type="text" name="keywords" placeholder="请输入关键字" class="layui-input" autocomplete="off"/>
  48. </div>
  49. <div class="layui-input-inline">
  50. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="searchform">提交搜索</button>
  51. </div>
  52. </form>
  53. <table class="layui-hide" id="appropriation" lay-filter="appropriation"></table>
  54. </div>
  55. <script type="text/html" id="toolbarDemo">
  56. <div class="layui-btn-container static">
  57. <div>
  58. <span class="name">评审服务费:</span><span class="number-red"><?php echo htmlentities($sent_review_cost); ?></span><span class="yuan">元</span>
  59. <span class="name">已请款:</span><span class="number-green"><?php echo htmlentities($appropriation_amount); ?></span><span class="yuan">元</span>
  60. <span class="name">未请款:</span><span class="number-red"><?php echo htmlentities($not_appropriation_amount); ?></span><span class="yuan">元</span>
  61. <span class="name">已开票:</span><span class="number-green"><?php echo htmlentities($invoicing_amount); ?></span><span class="yuan">元</span>
  62. <span class="name">未开票:</span><span class="number-red"><?php echo htmlentities($not_invoicing_amount); ?></span><span class="yuan">元</span>
  63. </div>
  64. <!--<span class="layui-btn layui-btn-sm " data-title="添加造价项目" lay-event="add">+ 添加造价项目</span>-->
  65. </div>
  66. </script>
  67. <script type="text/html" id="barDemo">
  68. </script>
  69. <!-- /主体 -->
  70. <!-- 底部 -->
  71. <div class="footer">
  72. 逸管工程项目管理系统 © www.yiguanfep.com
  73. <img src="/static/home/images/police.png" alt="" style="width:14.5px;height:16px;">
  74. <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>
  75. <a href="https://beian.miit.gov.cn/#/Integrated/index" onclick="window.open(this.href); return false;">桂ICP备17000971号</a>
  76. </div>
  77. <!-- /底部 -->
  78. <!-- 脚本 -->
  79. <script>
  80. const moduleInit = ['tool'];
  81. function gouguInit() {
  82. var table = layui.table, tool = layui.tool, form = layui.form;
  83. var allcount;
  84. var num_aaa =0;
  85. layui.pageTable = table.render({
  86. elem: '#appropriation',
  87. title: '造价项目列表',
  88. toolbar: '#toolbarDemo',
  89. url: '/admin/project.appropriation/datalist',
  90. page: true,
  91. limit: 20,
  92. cellMinWidth: 150,
  93. parseData: function(res) { // 数据解析回调函数
  94. // 在这里可以获取数据总数
  95. allcount = res.count;
  96. return {
  97. code: res.code, // 数据状态码
  98. msg: res.msg, // 状态信息
  99. count: res.count, // 数据总数
  100. data: res.data // 当前页数据
  101. };
  102. },
  103. cols: [
  104. [
  105. {fixed: 'left', field: 'id', title: '编号', align: 'center', width: 80,
  106. templet: function(d){
  107. return allcount - (d.LAY_NUM-1);
  108. }
  109. },
  110. {
  111. field: 'status',
  112. title: '项目状态',
  113. align: 'center',
  114. width: 100,
  115. templet: function (item) {
  116. var html = '';
  117. if (item.status === 0) {
  118. html = '<span>立项中</span> ';
  119. } else if (item.status === 1) {
  120. html = '<span">审核中</span> ';
  121. num_aaa += 1;
  122. } else if (item.status === 2) {
  123. html = '<span">已通过</span> ';
  124. } else if (item.status === 3) {
  125. html = '<span">已驳回</span> ';
  126. }
  127. return html;
  128. }
  129. }, {
  130. field: 'review_unit_name',
  131. title: '送审单位',
  132. align: 'center',
  133. width: 100,
  134. }, {
  135. field: 'appropriation_amount',
  136. title: '请款金额',
  137. align: 'center',
  138. width: 100
  139. }, {
  140. field: 'appropriation_time',
  141. title: '请款时间',
  142. align: 'center',
  143. width: 150,
  144. templet: function (d) { if(d.appropriation_time){ return layui.util.toDateString(d.appropriation_time * 1000, "yyyy-MM-dd") }else{return "";}}
  145. }, {
  146. field: 'project_names',
  147. title: '相关项目',
  148. align: 'center',
  149. width: 150
  150. }, {
  151. field: 'refund_amount',
  152. title: '付款金额(元)',
  153. align: 'center',
  154. width: 150,
  155. templet:function (d){
  156. if(d.refund_amount){
  157. return `<u style="color: green">${d.refund_amount}</u>`
  158. }else {
  159. return ""
  160. }
  161. }
  162. }, {
  163. field: 'refund_time',
  164. title: '付款时间',
  165. align: 'center',
  166. width: 150,
  167. templet: function (d) { if(d.refund_time){ return layui.util.toDateString(d.refund_time * 1000, "yyyy-MM-dd") }else{return "";}}
  168. }, {
  169. field: 'invoicing_amount',
  170. title: '发票金额',
  171. align: 'center',
  172. width: 100,
  173. templet:function (d){
  174. if(d.invoicing_amount){
  175. return `<u style="color: green">${d.invoicing_amount}</u>`
  176. }else {
  177. return ""
  178. }
  179. }
  180. }, {
  181. field: 'invoicing_num',
  182. title: '发票编号',
  183. align: 'center',
  184. width: 150
  185. }, {
  186. field: 'invoice_status',
  187. title: '发票状态',
  188. align: 'center',
  189. width: 150,
  190. templet:function (d){
  191. var h="";
  192. if(d.invoice_status==1){
  193. h="已开票";
  194. }else if(d.invoice_status==0){
  195. h="未开票";
  196. }
  197. return h;
  198. }
  199. }, {
  200. field: 'invoice_type',
  201. title: '发票类型',
  202. align: 'center',
  203. width: 100,
  204. templet: function (d){
  205. var h="";
  206. if(d.invoice_type==1){
  207. h="专用发票";
  208. }else if(d.invoice_type==2){
  209. h="专用发票2";
  210. }
  211. return h;
  212. }
  213. }, {
  214. field: 'invoice_detail',
  215. title: '请款函',
  216. align: 'center',
  217. }, {
  218. field: 'maker_name',
  219. title: '创建人名称',
  220. align: 'center',
  221. }, {
  222. fixed: 'right',
  223. field: 'right',
  224. title: '操作',
  225. width: 136,
  226. align: 'center',
  227. templet:function(d){
  228. var h = "";
  229. if(d.status==1){
  230. h=`<div class="layui-btn-container"><div class="layui-btn-group"><a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="read">查看</a><a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a></div></div>`
  231. }else{
  232. h=`<div class="layui-btn-container"><div class="layui-btn-group"><a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="read">查看</a></div></div>`
  233. }
  234. return h;
  235. }
  236. }
  237. ]
  238. ],
  239. done:function () {
  240. if(num_aaa === 0){
  241. parent.showhongdian()
  242. // console.log('2执行了')
  243. }
  244. }
  245. });
  246. table.on('tool(appropriation)', function (obj) {
  247. var data = obj.data;
  248. if (obj.event === 'read') {
  249. tool.side('/admin/project.appropriation/read?id=' + obj.data.id);
  250. } else if (obj.event === 'edit') {
  251. tool.side('/admin/project.appropriation/c_edit?id=' + obj.data.id);
  252. }
  253. })
  254. //监听搜索提交
  255. form.on('submit(searchform)', function (data) {
  256. layui.pageTable.reload({
  257. where: {
  258. keywords: data.field.keywords
  259. },
  260. page: {
  261. curr: 1
  262. }
  263. });
  264. return false;
  265. });
  266. }
  267. </script>
  268. <!-- /脚本 -->
  269. <!-- <script src="/static/assets/layui/layui.js"></script> -->
  270. <script src="/static/assets/layui/layui.js"></script>
  271. <script src="/static/assets/third_party/echart/echarts.min.js"></script>
  272. <script src="/static/assets/gougu/gouguInit.js"></script>
  273. <script src="https://unpkg.com/pinyin-pro"></script>
  274. <script>
  275. var { pinyin } = pinyinPro;
  276. </script>
  277. <!-- 统计代码 -->
  278. <!-- /统计代码 -->
  279. </body>
  280. </html>