32e87e44f7603bbf3268fb1ebdfc133c.php 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. <?php /*a:2:{s:70:"D:\phpstudy_pro\WWW\caiping\app\admin\view\contract\index\archive.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-x border-t">
  30. <div class="layui-input-inline" style="width:150px;">
  31. <select name="cate_id">
  32. <option value="">请选择合同类别</option>
  33. <?php if(is_array($cate) || $cate instanceof \think\Collection || $cate instanceof \think\Paginator): $i = 0; $__LIST__ = $cate;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
  34. <option value="<?php echo htmlentities($v['id']); ?>"><?php echo htmlentities($v['title']); ?></option>
  35. <?php endforeach; endif; else: echo "" ;endif; ?>
  36. </select>
  37. </div>
  38. <div class="layui-input-inline" style="width:150px;">
  39. <select name="type">
  40. <option value="">请选择合同性质</option>
  41. <option value="1">普通合同</option>
  42. <option value="2">框架合同</option>
  43. <option value="3">补充协议</option>
  44. <option value="4">其他合同</option>
  45. </select>
  46. </div>
  47. <div class="layui-input-inline" style="width:240px;">
  48. <input type="text" name="keywords" placeholder="输入关键字" class="layui-input" autocomplete="off" />
  49. </div>
  50. <div class="layui-input-inline" style="width:150px;">
  51. <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="webform"><i class="layui-icon layui-icon-search mr-1"></i>搜索</button>
  52. <button type="reset" class="layui-btn layui-btn-reset" lay-filter="reset">清空</button>
  53. </div>
  54. </form>
  55. <table class="layui-hide" id="test" lay-filter="test"></table>
  56. </div>
  57. <!-- /主体 -->
  58. <!-- 底部 -->
  59. <div class="footer">
  60. 逸管工程项目管理系统 © www.yiguanfep.com
  61. <img src="/static/home/images/police.png" alt="" style="width:14.5px;height:16px;">
  62. <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>
  63. <a href="https://beian.miit.gov.cn/#/Integrated/index" onclick="window.open(this.href); return false;">桂ICP备17000971号</a>
  64. </div>
  65. <!-- /底部 -->
  66. <!-- 脚本 -->
  67. <script>
  68. const moduleInit = ['tool'];
  69. function gouguInit() {
  70. var table = layui.table, tool = layui.tool ,form = layui.form;
  71. var allcount;
  72. layui.pageTable = table.render({
  73. elem: '#test',
  74. title: '合同归档列表',
  75. url: "/admin/contract.index/archive", //数据接口
  76. cellMinWidth: 80,
  77. parseData: function (res) { // 数据解析回调函数
  78. // 在这里可以获取数据总数
  79. allcount = res.data.length;
  80. return {
  81. code: res.code, // 数据状态码
  82. msg: res.msg, // 状态信息
  83. count: res.count, // 数据总数
  84. data: res.data // 当前页数据
  85. };
  86. },
  87. page: true, //开启分页
  88. limit: 20,
  89. cols: [
  90. [ //表头
  91. {
  92. field: 'id',
  93. title: '编号',
  94. align: 'center',
  95. width: 80,
  96. templet: function (d) {
  97. console.log(allcount,d.LAY_NUM)
  98. return allcount - (d.LAY_NUM - 1);
  99. }
  100. },{ field: 'check_status', title: '状态', align: 'center', width: 80, templet: function (d) {
  101. var html = '<span class="layui-btn layui-btn-xs layui-bg-' + d.check_status + '">' + d.status_name + '</span>';
  102. return html;
  103. }
  104. },{
  105. field: 'code',
  106. title: '合同编号',
  107. width: 160
  108. },{
  109. field: 'name',
  110. title: '合同名称',
  111. minWidth:240,
  112. templet: '<div><a data-href="/admin/contract.index/view?id={{d.id}}" class="side-a">{{d.name}}</a></div>'
  113. }, {
  114. field: 'cate_title',
  115. title: '合同类别',
  116. align: 'center',
  117. width: 100
  118. }, {
  119. field: 'type_name',
  120. title: '合同性质',
  121. align: 'center',
  122. width: 80,
  123. templet: function (d) {
  124. var html = '<span class="layui-color-' + d.type + '">' + d.type_name + '</span>';
  125. return html;
  126. }
  127. },{
  128. field: 'cost',
  129. title: '合同金额/元',
  130. align: 'right',
  131. width: 100
  132. }, {
  133. field: 'sign_name',
  134. title: '签定人',
  135. align: 'center',
  136. width: 80
  137. },{
  138. field: 'keeper_name',
  139. title: '保管人',
  140. align: 'center',
  141. width: 80
  142. }, {
  143. field: 'sign_time',
  144. title: '签订时间',
  145. align: 'center',
  146. width: 100
  147. }, {
  148. field: 'right',
  149. fixed:'right',
  150. title: '操作',
  151. width: 100,
  152. align: 'center',
  153. templet: function (d) {
  154. return '<span class="layui-btn layui-btn-normal layui-btn-xs" lay-event="view">详情</span>';
  155. }
  156. }
  157. ]
  158. ]
  159. });
  160. //表头工具栏事件
  161. table.on('toolbar(test)', function(obj){
  162. if (obj.event === 'add') {
  163. selectType();
  164. return;
  165. }
  166. });
  167. //监听行工具事件
  168. table.on('tool(test)', function(obj) {
  169. var data = obj.data;
  170. if(obj.event === 'view'){
  171. tool.side('/admin/contract.index/view?id='+data.id);
  172. return;
  173. }
  174. });
  175. //监听搜索提交
  176. form.on('submit(webform)', function(data) {
  177. layui.pageTable.reload({
  178. where: {
  179. keywords: data.field.keywords,
  180. cate_id: data.field.cate_id,
  181. type: data.field.type
  182. },
  183. page: {
  184. curr: 1
  185. }
  186. });
  187. return false;
  188. });
  189. }
  190. </script>
  191. <!-- /脚本 -->
  192. <!-- <script src="/static/assets/layui/layui.js"></script> -->
  193. <script src="/static/assets/layui/layui.js"></script>
  194. <script src="/static/assets/third_party/echart/echarts.min.js"></script>
  195. <script src="/static/assets/gougu/gouguInit.js"></script>
  196. <script src="https://unpkg.com/pinyin-pro"></script>
  197. <script>
  198. var { pinyin } = pinyinPro;
  199. </script>
  200. <!-- 统计代码 -->
  201. <!-- /统计代码 -->
  202. </body>
  203. </html>