123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233 |
- <?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;}*/ ?>
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="renderer" content="webkit">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="360-site-verification" content="a7c876fae8b6e3175a52ea9f19543f51" />
- <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0">
- <script src="/static/dist/xm-select.js"></script>
- <link rel="mobile-prefetch" href=""/>
- <title><?php echo get_system_config('web','admin_title'); ?></title>
- <meta name="keywords" content="<?php echo get_system_config('web','keywords'); ?>"/>
- <meta name="description" content="<?php echo get_system_config('web','desc'); ?>"/>
- <link rel="stylesheet" href="/static/assets/gougu/css/gougu.css?v=<?php echo get_system_config('web','version'); ?>" media="all">
- <style>
- .footer{
- width: 100%;
- height: 25px;
- text-align: center;
- position: fixed;
- bottom: 0;
- }
- </style>
- </head>
- <body class="main-body">
- <!-- 主体 -->
-
- <div class="p-3">
- <form class="layui-form gg-form-bar border-x border-t">
- <div class="layui-input-inline" style="width:150px;">
- <select name="cate_id">
- <option value="">请选择合同类别</option>
- <?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;?>
- <option value="<?php echo htmlentities($v['id']); ?>"><?php echo htmlentities($v['title']); ?></option>
- <?php endforeach; endif; else: echo "" ;endif; ?>
- </select>
- </div>
- <div class="layui-input-inline" style="width:150px;">
- <select name="type">
- <option value="">请选择合同性质</option>
- <option value="1">普通合同</option>
- <option value="2">框架合同</option>
- <option value="3">补充协议</option>
- <option value="4">其他合同</option>
- </select>
- </div>
- <div class="layui-input-inline" style="width:240px;">
- <input type="text" name="keywords" placeholder="输入关键字" class="layui-input" autocomplete="off" />
- </div>
- <div class="layui-input-inline" style="width:150px;">
- <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="webform"><i class="layui-icon layui-icon-search mr-1"></i>搜索</button>
- <button type="reset" class="layui-btn layui-btn-reset" lay-filter="reset">清空</button>
- </div>
- </form>
- <table class="layui-hide" id="test" lay-filter="test"></table>
- </div>
- <!-- /主体 -->
- <!-- 底部 -->
-
- <div class="footer">
- 逸管工程项目管理系统 © www.yiguanfep.com
- <img src="/static/home/images/police.png" alt="" style="width:14.5px;height:16px;">
- <a href="https://beian.mps.gov.cn/#/query/websearch?code=45030202000160 " rel="\"noreferrer'target=\”blank\"" onclick="window.open(this.href); return false;">桂公网安备45030202000160号</a>
- <a href="https://beian.miit.gov.cn/#/Integrated/index" onclick="window.open(this.href); return false;">桂ICP备17000971号</a>
- </div>
-
-
- <!-- /底部 -->
-
- <!-- 脚本 -->
-
- <script>
- const moduleInit = ['tool'];
- function gouguInit() {
- var table = layui.table, tool = layui.tool ,form = layui.form;
- var allcount;
- layui.pageTable = table.render({
- elem: '#test',
- title: '合同归档列表',
- url: "/admin/contract.index/archive", //数据接口
- cellMinWidth: 80,
- parseData: function (res) { // 数据解析回调函数
- // 在这里可以获取数据总数
- allcount = res.data.length;
- return {
- code: res.code, // 数据状态码
- msg: res.msg, // 状态信息
- count: res.count, // 数据总数
- data: res.data // 当前页数据
- };
- },
- page: true, //开启分页
- limit: 20,
- cols: [
- [ //表头
- {
- field: 'id',
- title: '编号',
- align: 'center',
- width: 80,
- templet: function (d) {
- console.log(allcount,d.LAY_NUM)
- return allcount - (d.LAY_NUM - 1);
-
- }
- },{ field: 'check_status', title: '状态', align: 'center', width: 80, templet: function (d) {
- var html = '<span class="layui-btn layui-btn-xs layui-bg-' + d.check_status + '">' + d.status_name + '</span>';
- return html;
- }
- },{
- field: 'code',
- title: '合同编号',
- width: 160
- },{
- field: 'name',
- title: '合同名称',
- minWidth:240,
- templet: '<div><a data-href="/admin/contract.index/view?id={{d.id}}" class="side-a">{{d.name}}</a></div>'
- }, {
- field: 'cate_title',
- title: '合同类别',
- align: 'center',
- width: 100
- }, {
- field: 'type_name',
- title: '合同性质',
- align: 'center',
- width: 80,
- templet: function (d) {
- var html = '<span class="layui-color-' + d.type + '">' + d.type_name + '</span>';
- return html;
- }
- },{
- field: 'cost',
- title: '合同金额/元',
- align: 'right',
- width: 100
- }, {
- field: 'sign_name',
- title: '签定人',
- align: 'center',
- width: 80
- },{
- field: 'keeper_name',
- title: '保管人',
- align: 'center',
- width: 80
- }, {
- field: 'sign_time',
- title: '签订时间',
- align: 'center',
- width: 100
- }, {
- field: 'right',
- fixed:'right',
- title: '操作',
- width: 100,
- align: 'center',
- templet: function (d) {
- return '<span class="layui-btn layui-btn-normal layui-btn-xs" lay-event="view">详情</span>';
- }
- }
- ]
- ]
- });
-
- //表头工具栏事件
- table.on('toolbar(test)', function(obj){
- if (obj.event === 'add') {
- selectType();
- return;
- }
- });
- //监听行工具事件
- table.on('tool(test)', function(obj) {
- var data = obj.data;
- if(obj.event === 'view'){
- tool.side('/admin/contract.index/view?id='+data.id);
- return;
- }
- });
-
- //监听搜索提交
- form.on('submit(webform)', function(data) {
- layui.pageTable.reload({
- where: {
- keywords: data.field.keywords,
- cate_id: data.field.cate_id,
- type: data.field.type
- },
- page: {
- curr: 1
- }
- });
- return false;
- });
- }
- </script>
- <!-- /脚本 -->
-
- <!-- <script src="/static/assets/layui/layui.js"></script> -->
- <script src="/static/assets/layui/layui.js"></script>
- <script src="/static/assets/third_party/echart/echarts.min.js"></script>
- <script src="/static/assets/gougu/gouguInit.js"></script>
- <script src="https://unpkg.com/pinyin-pro"></script>
- <script>
-
- var { pinyin } = pinyinPro;
- </script>
-
-
- <!-- 统计代码 -->
-
- <!-- /统计代码 -->
- </body>
- </html>
|