123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394 |
- <?php /*a:2:{s:81:"D:\phpstudy_pro\WWW\caiping\app\admin\view\project\audit\datalist_proprietor.html";i:1724739052;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-t border-x">
- <div class="layui-input-inline" style="width:300px;">
- <input type="text" name="keywords" placeholder="请输入关键字" class="layui-input" autocomplete="off"/>
- </div>
- <div class="layui-input-inline">
- <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="searchform">提交搜索</button>
- </div>
- </form>
- <table class="layui-hide" id="cost_project" lay-filter="cost_project"></table>
- </div>
- <script type="text/html" id="toolbarDemo">
- <div class="layui-btn-container">
- </div>
- </script>
- <!-- /主体 -->
- <!-- 底部 -->
-
- <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'];
- var num_aaa =0;
-
- function gouguInit() {
- var table = layui.table, tool = layui.tool, form = layui.form;
- layui.pageTable = table.render({
- elem: '#cost_project',
- id: "cost_project",
- title: '造价项目列表',
- toolbar: '#toolbarDemo',
- url: '/admin/project.audit/datalist_proprietor',
- page: true,
- limit: 20,
-
- parseData: function(res) { // 数据解析回调函数
- // 在这里可以获取数据总数
- allcount = res.count;
- return {
- code: res.code, // 数据状态码
- msg: res.msg, // 状态信息
- count: res.count, // 数据总数
- data: res.data // 当前页数据
- };
- },
- cols: [
- [
- {fixed: 'left', field: 'id', title: '编号', align: 'center', width: 100,
- templet: function(d){
- return allcount - (d.LAY_NUM-1);
- }
- },
- {
- field: 'project_status',
- title: '项目状态',
- align: 'center',
- width: 100,
- templet: function (item) {
- console.log(item);
- var html = '';
- if (item.project_status === 1) {
- html = '<span class="layui-badge layui-bg-orange" style="background-color: #ffb800 !important">立项中</span> ';
- } else if (item.project_status === 2) {
- html = '<span class="layui-badge layui-bg-blue" style="background-color: #b30095 !important">审批中</span> ';
- } else if (item.project_status === -1) {
- html = '<span class="layui-badge layui-bg-red" style="background-color: #5825aa !important">待修改</span> ';
- } else if (item.project_status === 3) {
- html = '<span class="layui-badge layui-bg-green" style="background-color: #d37000 !important">待接收</span> ';
- } else if (item.project_status === 4) {
- html = '<span class="layui-badge" style="background-color: #005fa8 !important">分配中</span> ';
- } else if (item.project_status === 5) {
- html = '<span class="layui-badge layui-bg-blue" style="background-color: #1e9fff !important">作业中</span> ';
- } else if (item.project_status === 6) {
- html = '<span class="layui-badge" style="background-color: #007244 !important">归档中</span> ';
- } else if (item.project_status === 7) {
- html = '<span class="layui-badge" style="background-color: #881f1f !important">退审中</span> ';
- } else if (item.project_status === 8) {
- html = '<span class="layui-badge" style="background-color: #16b777 !important">已归档</span> ';
- } else if (item.project_status === 9) {
- html = '<span class="layui-badge" style="background-color: #d81e06 !important">已退审</span> ';
- } else if (item.project_status === 0) {
- html = '<span">业主端进行中</span> ';
- }
- return html;
- }
- }, {
- field: 'audit_status',
- title: '审批状态',
- align: 'center',
- width: 100,
- templet: function (item) {
- var html = '';
- if (item.audit_status === 1) {
- num_aaa += 1;
- html = '<span class="layui-badge layui-bg-blue">待审核</span> ';
- } else if (item.audit_status === 2) {
- html = '<span class="layui-badge layui-bg-green">已通过</span> ';
- } else if (item.audit_status === 3) {
- html = '<span class="layui-badge layui-bg-red">已拒绝</span> ';
- }
- return html;
- }
- }, {
- field: 'project_name',
- title: '项目名称',
- align: 'center',
- width: 100,
- templet: function (d) {
- return '<div style="text-align:left">' + d.project_name + '</div>'
- }
- }, {
- field: 'audit_name',
- title: '流程名称',
- align: 'center',
- width: 150
- }, {
- field: 'sponsor',
- title: '发起人',
- align: 'center',
- width: 150
- }, {
- field: 'create_time',
- title: '发起时间',
- align: 'center',
- width: 150,
- templet: function (d) {
- if (d.create_time) {
- return layui.util.toDateString(d.create_time * 1000, "yyyy-MM-dd")
- } else {
- return "";
- }
- }
- }, {
- field: 'approver_name',
- title: '审批人',
- align: 'center',
- width: 150
- }, {
- field: 'audit_time',
- title: '审批时间',
- align: 'center',
- width: 100,
- templet: function (d) {
- if (d.audit_time) {
- return layui.util.toDateString(d.audit_time * 1000, "yyyy-MM-dd")
- } else {
- return "";
- }
- }
- }, {
- field: 'remark',
- title: '申请原因',
- align: 'center',
- width: 250,
- }, {
- field: 'audit_remark',
- title: '审批回执',
- align: 'center',
- width: 250,
- }, {
- fixed: 'right',
- field: 'right',
- title: '操作',
- width: 136,
- align: 'center',
- templet: function (item) {
- var h = '';
- if (item.audit_status === 1) {
- h = '<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> <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="overrule">拒绝</a> </div>'
- } else {
- h = '<div class="layui-btn-group"> <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="read">查看</a></div>'
- }
- return h;
- }
- }
- ]
- ],
- done:function () {
- if(num_aaa === 0){
- parent.showhongdian()
- // console.log('2执行了')
- }
- }
- });
- let abc = 0;
- //监听表格行工具事件
- table.on('tool(cost_project)', function (obj) {
- var data = obj.data;
- if (obj.event === 'read') {
- tool.side('/admin/project.audit/read?id=' + data.project_id);
- } else if (obj.event === 'edit') {
- layer.confirm("确认是否审批通过?", function (index) {
- console.log(abc, data.else_status)
- let callback = function (e) {
- select_Data = [];
- abc = 0
- layer.msg(e.msg);
- setTimeout(function () {
- layui.pageTable.reload()
- layer.close(index);
- }, 1000)
- }
- if (data.audit_type ==1){
- tool.post("/admin/project.audit/proprietor_agree", {
- id: data.id,
- else_id: data.else_id,
- audit_type: data.audit_type,
- project_id: data.project_id,
- project_status: data.project_status,
- }, callback);
- }
- if (data.audit_type ==0){
- tool.post("/admin/project.audit/proprietor_agree2", {
- id: data.id,
- else_id: data.else_id,
- audit_type: data.audit_type,
- project_id: data.project_id,
- project_status: data.project_status,
- }, callback);
- }
- abc = 1;
- }, function () {
- abc = 0;
- })
- } else if (obj.event === 'overrule') {
- var ttxx = layer.prompt({
- title: '请输入<span style="color: red">拒绝</span>原因',
- formType: 2,
- area: ['35vw', '15vw']
- }, function (text, index) {
- if (text == '') {
- layer.msg('请先完善拒绝原因');
- return false;
- } else {
- let callback = function (e) {
- layer.msg(e.msg);
- setTimeout(function () {
- layui.pageTable.reload()
- layer.close(index);
- }, 2000)
- }
- if (data.audit_type==1){
- tool.post("/admin/project.audit/proprietor_disagree", {
- id: data.id,
- else_id: data.else_id,
- audit_type: data.audit_type,
- project_id: data.project_id,
- project_status: data.project_status,
- audit_remark:text,
- }, callback);
- }else if (data.audit_type==0){
- ool.post("/admin/project.audit/proprietor_disagree2", {
- id: data.id,
- else_id: data.else_id,
- audit_type: data.audit_type,
- project_id: data.project_id,
- project_status: data.project_status,
- audit_remark:text,
- }, callback);
- }
- }
- }, function () {
- abc = 0;
- })
- }
- return false;
- });
- //监听搜索提交
- form.on('submit(searchform)', function (data) {
- layui.pageTable.reload({
- where: {
- keywords: data.field.keywords
- },
- 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>
|