付款单申请审核
This commit is contained in:
parent
efed85dcab
commit
cbc9196656
|
|
@ -140,13 +140,13 @@
|
|||
},
|
||||
{
|
||||
"title": "付款单申请",
|
||||
"href": "page/car_application_audit/payment_list.html",
|
||||
"href": "page/car_application_audit/payment_tab.html",
|
||||
"icon": "fa fa-asterisk",
|
||||
"target": "_self"
|
||||
},
|
||||
{
|
||||
"title": "付款单审核",
|
||||
"href": "page/car_application_audit/car_audit_list.html",
|
||||
"href": "page/car_application_audit/car_audit_list.html?typeData=2",
|
||||
"icon": "fa fa-asterisk",
|
||||
"target": "_self"
|
||||
}
|
||||
|
|
@ -155,4 +155,4 @@
|
|||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
html {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
height: 99%;
|
||||
}
|
||||
|
||||
body {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,13 @@
|
|||
let form, table, element;
|
||||
let tableIns;
|
||||
let pageNum = 1; // 定义分页
|
||||
|
||||
let typeData = getQuery("typeData"); // type 1是记录 2 是审核
|
||||
function getQuery(name) {
|
||||
let params = new URLSearchParams(window.location.search);
|
||||
return params.get(name);
|
||||
}
|
||||
|
||||
layui.use(["form", "table", 'element'], function () {
|
||||
form = layui.form;
|
||||
table = layui.table;
|
||||
|
|
@ -203,7 +210,9 @@ function initTable() {
|
|||
}
|
||||
// html += "<div class='splitLine'>|</div><a onclick='planAuditDetail(" + JSON.stringify(d) + ")'>详情</a>";
|
||||
if ( status == 1 ) {
|
||||
html += "<div class='splitLine'>|</div><a onclick='checkDetail(" + JSON.stringify(d) + ")'>审核</a>";
|
||||
if(typeData ==2 ) {
|
||||
html += "<div class='splitLine'>|</div><a onclick='checkDetail(" + JSON.stringify(d) + ")'>审核</a>";
|
||||
}
|
||||
}
|
||||
return html;
|
||||
},
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
let form, table, element;
|
||||
layui.use(["form", "table", "element"], function () {
|
||||
let element = layui.element;
|
||||
element.on('tab(demo-filter-tab)', function () {
|
||||
let status = $(this).attr("value");
|
||||
let url = status == "1" ? "./payment_list.html" : "./car_audit_list.html?typeData='1'";
|
||||
$("#tabFrame").attr("src", url);
|
||||
});
|
||||
});
|
||||
|
|
@ -180,7 +180,7 @@ function initTable() {
|
|||
html += "<a onclick='paymentDetail(" + JSON.stringify(d) + ")'>详情</a>";
|
||||
// html += "<div class='splitLine'>|</div><a onclick='payment(" + JSON.stringify(d) + ")'>付款</a>";
|
||||
if(d.money !== d.payMoney){
|
||||
html += "<div class='splitLine'>|</div><a onclick='payment(" + JSON.stringify(d) + ")'>付款</a>";
|
||||
html += "<div class='splitLine'>|</div><a onclick='payment(" + JSON.stringify(d) + ")'>付款申请</a>";
|
||||
}
|
||||
return html;
|
||||
},
|
||||
|
|
|
|||
|
|
@ -11,10 +11,9 @@
|
|||
<link rel="stylesheet" href="../../css/font.css" media="all">
|
||||
<link rel="stylesheet" href="../../css/public.css" media="all">
|
||||
</head>
|
||||
<body>
|
||||
<body >
|
||||
<div class="layuimini-container">
|
||||
<div class="layuimini-main">
|
||||
|
||||
<fieldset class="table-search-fieldset">
|
||||
<legend>搜索信息</legend>
|
||||
<div style="margin: 10px 10px 10px 10px">
|
||||
|
|
@ -50,4 +49,4 @@
|
|||
<script src="../../js/openIframe.js" charset="utf-8"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,54 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>付款单 申请|记录</title>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<link rel="stylesheet" href="../../lib/layui-v2.9.18/layui/css/layui.css" media="all">
|
||||
<link rel="stylesheet" href="../../css/font.css" media="all">
|
||||
<link rel="stylesheet" href="../../css/public.css" media="all">
|
||||
</head>
|
||||
<style>
|
||||
.layui-tab-brief > .layui-tab-title .layui-this {
|
||||
color: #409eff;
|
||||
}
|
||||
|
||||
.layui-tab-brief > .layui-tab-more li.layui-this:after,
|
||||
.layui-tab-brief > .layui-tab-title .layui-this:after {
|
||||
border-bottom: 2px solid #409eff;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #428bca;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover,
|
||||
a:focus {
|
||||
color: #2a6496;
|
||||
text-decoration: underline;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<div class="layuimini-container">
|
||||
<div class="layuimini-main">
|
||||
<div class="layui-tab layui-tab-brief" lay-filter="demo-filter-tab">
|
||||
<ul class="layui-tab-title">
|
||||
<li value="1" class="layui-this">申请列表</li>
|
||||
<li value="2">申请记录</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div style="height: 90%;width: 100%;" >
|
||||
<iframe id="tabFrame" src="./payment_list.html" width="100%" height="100%" frameborder="0"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../lib/jquery-3.4.1/jquery-3.7.1.min.js" charset="utf-8"></script>
|
||||
<script src="../../js/public.js" charset="utf-8"></script>
|
||||
<script src="../../lib/layui-v2.9.18/layui/layui.js" charset="utf-8"></script>
|
||||
<script src="../../js/car_application_audit/payment_tab.js" charset="utf-8"></script>
|
||||
<script src="../../js/openIframe.js" charset="utf-8"></script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue