需求计划
This commit is contained in:
parent
64097f906c
commit
ab3845343f
|
|
@ -32,9 +32,8 @@ body {
|
|||
#plan-detail-box {
|
||||
width: 100%;
|
||||
height: 80px;
|
||||
flex-direction: column;
|
||||
align-items: baseline;
|
||||
justify-content: space-evenly;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
#plan-detail-box>p,
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ function initTable() {
|
|||
authorization: sessionStorage.getItem("gz-token"),
|
||||
},
|
||||
height: "full-170",
|
||||
url: dataUrl + "backstage/partInput/findByPage",
|
||||
url: dataUrl + "backstage/planApplication/findByPage",
|
||||
where: {
|
||||
encryptedData: JSON.stringify({
|
||||
'keyWord': $('#keyWord').val(),
|
||||
|
|
@ -80,7 +80,7 @@ function initTable() {
|
|||
cols: [
|
||||
[
|
||||
{
|
||||
width: '6.9%',
|
||||
width: '5.9%',
|
||||
title: "序号",
|
||||
align: "center",
|
||||
templet: function (d) {
|
||||
|
|
@ -89,72 +89,55 @@ function initTable() {
|
|||
},
|
||||
{
|
||||
field: "code",
|
||||
width: '10%',
|
||||
title: "计划编号",
|
||||
unresize: true,
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
field: "proName",
|
||||
width: '15%',
|
||||
title: "工程名称",
|
||||
unresize: true,
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
field: "inputUser",
|
||||
width: '8%',
|
||||
title: "工程状态",
|
||||
field: "needTime",
|
||||
width: '10%',
|
||||
title: "需用日期",
|
||||
unresize: true,
|
||||
align: "center",
|
||||
templet: function (d) {
|
||||
return setProStatus('1');
|
||||
},
|
||||
},
|
||||
{
|
||||
field: "inputNum",
|
||||
field: "creator",
|
||||
width: '10%',
|
||||
title: "维修单数量",
|
||||
title: "申请人",
|
||||
unresize: true,
|
||||
align: "center",
|
||||
templet: function (d) {
|
||||
return '<span style="color:#ff9900;font-weight:bold;">1</span>';
|
||||
},
|
||||
},
|
||||
{
|
||||
field: "allPrice",
|
||||
width: '10%',
|
||||
title: "配件领料单数量",
|
||||
field: "createTime",
|
||||
width: '15%',
|
||||
title: "申请时间",
|
||||
unresize: true,
|
||||
align: "center",
|
||||
templet: function (d) {
|
||||
return '<span style="color:#409eff;font-weight:bold;">1</span>';
|
||||
},
|
||||
},
|
||||
{
|
||||
field: "allPrice",
|
||||
width: '10%',
|
||||
title: "配件退回单数量",
|
||||
unresize: true,
|
||||
align: "center",
|
||||
templet: function (d) {
|
||||
return '<span style="color:#f56c6c;font-weight:bold;">1</span>';
|
||||
},
|
||||
},
|
||||
{
|
||||
field: "remark",
|
||||
width: '15%',
|
||||
title: "领用/使用/退回配件数量",
|
||||
width: '14%',
|
||||
title: "备注",
|
||||
unresize: true,
|
||||
align: "center",
|
||||
templet: function (d) {
|
||||
return '<p style="color:#409eff;">领:2,563 </p>';
|
||||
// return '<p style="color:#409eff;">领:2,563 </p><p style="color:#19be6b;">用:2,000 </p><p style="color:#f56c6c;">退:563</p>';
|
||||
},
|
||||
|
||||
},
|
||||
{
|
||||
field: "remark",
|
||||
width: '15%',
|
||||
title: "领用/使用/退回配件金额",
|
||||
width: '10%',
|
||||
title: "审核状态",
|
||||
unresize: true,
|
||||
align: "center",
|
||||
templet: function (d) {
|
||||
return '<p style="color:#409eff;">领:2,563 </p>';
|
||||
// return '<p style="color:#409eff;">领:2,563 </p><p style="color:#19be6b;">用:2,000 </p><p style="color:#f56c6c;">退:563</p>';
|
||||
return getCheckStatus(d.statusType,d.status);
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
@ -164,7 +147,7 @@ function initTable() {
|
|||
unresize: true,
|
||||
templet: function (d) {
|
||||
let html = "";
|
||||
html += "<a onclick='proCountDetail(" + JSON.stringify(d) + ")'>详情</a>";
|
||||
html += "<a onclick='applyPlanDetail(" + JSON.stringify(d) + ")'>详情</a>";
|
||||
return html;
|
||||
},
|
||||
},
|
||||
|
|
@ -183,28 +166,42 @@ function initTable() {
|
|||
// 导出
|
||||
function exportExcel() {
|
||||
let params = {
|
||||
'proName': $('#proName').val(),
|
||||
'status': $('#status').val()
|
||||
'keyWord': $('#keyWord').val(),
|
||||
}
|
||||
let url = dataUrl + "backstage/export/exportFhList";
|
||||
exportExcelUtil(url, '配件入库数据', JSON.stringify(params));
|
||||
let url = dataUrl + "backstage/export/export";
|
||||
exportExcelUtil(url, '需求计划申请', JSON.stringify(params));
|
||||
}
|
||||
|
||||
// 配件退料详情
|
||||
function proCountDetail(obj) {
|
||||
openIframeByParamObj("pro_count_detail", "详情", "./child/pro_count_detail.html", "92%", "95%", obj);
|
||||
}
|
||||
|
||||
// 工程状态
|
||||
function setProStatus(status) {
|
||||
if (status === '1') {
|
||||
return "<span style='color:#19BE6B;margin:0 5px 0 5px;font-size:16px'>●</span>在建";
|
||||
} else if (status === '2') {
|
||||
return "<span style='color:#999;margin:0 5px 0 5px;font-size:16px;'>●</span>完工";
|
||||
}
|
||||
|
||||
//审核状态
|
||||
function getCheckStatus(statusType, status) {
|
||||
var company = "";
|
||||
if (statusType === '1') {
|
||||
return "<span style='color:#19BE6B;margin:0 5px 0 5px;font-size:16px;'>●</span>审核通过";
|
||||
} else if (statusType === '2') {
|
||||
company = "分公司";
|
||||
} else if (statusType === '3') {
|
||||
company = "项目管理中心";
|
||||
} else if (statusType === '4') {
|
||||
company = "机具公司";
|
||||
}
|
||||
if (status === '1') {
|
||||
return "<span style='color:#FF9900;margin:0 5px 0 5px;font-size:16px'>●</span>待" + company + "审核";
|
||||
} else if (status === '2') {
|
||||
return "<span style='color:#19BE6B;margin:0 5px 0 5px;font-size:16px;'>●</span>审核通过";
|
||||
} else if (status === '3') {
|
||||
return "<span style='color:#F56C6C;margin:0 5px 0 5px;font-size:16px'>●</span>"+company + "审核驳回";
|
||||
}
|
||||
return "<span style='color:#FF9900;margin:0 5px 0 5px;font-size:16px'>●</span>待审核";
|
||||
}
|
||||
|
||||
// 查询流程
|
||||
function showProcess(){
|
||||
openIframeByParamObj("show_process", "流程说明", "./child/show_process.html", "70%", "65%", null);
|
||||
}
|
||||
|
||||
// 详情
|
||||
function applyPlanDetail(obj) {
|
||||
openIframeByParamObj("apply_plan_detail", "详情", "./child/apply_plan_detail.html", "92%", "95%", obj);
|
||||
}
|
||||
|
|
@ -23,15 +23,9 @@
|
|||
<div class="layui-inline">
|
||||
<div class="layui-input-inline" style="width: 300px;">
|
||||
<input type="text" name="keyWord" id="keyWord" autocomplete="off"
|
||||
class="layui-input" lay-affix="clear" placeholder="输入工程名称" maxlength="30">
|
||||
class="layui-input" lay-affix="clear" placeholder="输入关键字" maxlength="30">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline" style="width: 200px;">
|
||||
<select class="layui-select">
|
||||
<option value="1">在建</option>
|
||||
<option value="2">完工</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
<button class="layui-btn layui-bg-blue" onclick="queryTable(1)"><i
|
||||
class="layui-icon"></i> 搜 索</button>
|
||||
|
|
|
|||
|
|
@ -1,34 +1,39 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>机具需求计划</title>
|
||||
<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">
|
||||
<link rel="stylesheet" href="../../../css/demandPlan/apply_plan_detail.css" media="all">
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>机具需求计划</title>
|
||||
<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">
|
||||
<link rel="stylesheet" href="../../../css/demandPlan/apply_plan_detail.css" media="all">
|
||||
</head>
|
||||
|
||||
<body id="body">
|
||||
<div id="main-box">
|
||||
<div id="main-box">
|
||||
<div id="plan-detail-box" class="layout">
|
||||
<div class="layout" style="width: 100%;justify-content: space-between;">
|
||||
<p style="font-size: 20px;font-weight: bold;">机具需求计划</p>
|
||||
<button type="button" class="layui-btn layui-bg-blue" onclick="print()">打印</button>
|
||||
</div>
|
||||
<div class="layout">
|
||||
<p id="code"></p>
|
||||
<img src="../../../images/svg/u702.svg" width="40px" height="40px" style="margin-right: 10px;">
|
||||
<div>
|
||||
<span id="checkStatus"></span>
|
||||
<p style="font-size: 20px;font-weight: bold;">机具需求计划</p>
|
||||
<div class="layout">
|
||||
<p id="code"></p>
|
||||
<span id="checkStatus"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<button type="button" class="layui-btn layui-bg-blue" onclick="print()">打印</button>
|
||||
</div>
|
||||
</div>
|
||||
<!--基本信息-->
|
||||
<div id="plan-basic-box" class="layout">
|
||||
<div class="title layout">
|
||||
<span style="font-weight:700;text-decoration:none;color:#409EFF;">▋</span>
|
||||
<p>基本信息</p>
|
||||
</div>
|
||||
<span style="font-weight:700;text-decoration:none;color:#409EFF;">▋</span>
|
||||
<p>基本信息</p>
|
||||
</div>
|
||||
<div id="plan-basic-table">
|
||||
<table class="classTable">
|
||||
<tr>
|
||||
|
|
@ -55,27 +60,27 @@
|
|||
<!--机具明细-->
|
||||
<div id="implement-box" class="layout">
|
||||
<div class="title layout">
|
||||
<span style="font-weight:700;text-decoration:none;color:#409EFF;">▋</span>
|
||||
<p>机具明细</p>
|
||||
</div>
|
||||
<span style="font-weight:700;text-decoration:none;color:#409EFF;">▋</span>
|
||||
<p>机具明细</p>
|
||||
</div>
|
||||
<div class="page-content">
|
||||
<form class="layui-form layui-form-pane" action="#" onsubmit="return false;">
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-inline">
|
||||
<div class="layui-input-inline" style="width: 300px;">
|
||||
<input type="text" name="keyWord" id="keyWord" autocomplete="off"
|
||||
class="layui-input" lay-affix="clear" placeholder="输入物机名称" maxlength="30">
|
||||
<input type="text" name="keyWord" id="keyWord" autocomplete="off" class="layui-input"
|
||||
lay-affix="clear" placeholder="输入物机名称" maxlength="30">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
<div class="layui-input-inline" style="width: 300px;">
|
||||
<input type="text" name="keyWord2" id="keyWord2" autocomplete="off"
|
||||
class="layui-input" lay-affix="clear" placeholder="输入规格" maxlength="30">
|
||||
<input type="text" name="keyWord2" id="keyWord2" autocomplete="off" class="layui-input"
|
||||
lay-affix="clear" placeholder="输入规格" maxlength="30">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
<button class="layui-btn layui-bg-blue" onclick="search()"><i
|
||||
class="layui-icon"></i> 搜 索</button>
|
||||
<button class="layui-btn layui-bg-blue" onclick="search()"><i class="layui-icon"></i> 搜
|
||||
索</button>
|
||||
<button class="layui-btn layui-btn-primary" onclick="resetSearch()"><i
|
||||
class="layui-icon layui-icon-refresh"></i> 重 置</button>
|
||||
<button class="layui-btn layui-btn-primary" onclick="exportData()"><i
|
||||
|
|
@ -83,8 +88,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<table id="baseTable"
|
||||
class="classTable table-hover">
|
||||
<table id="baseTable" class="classTable table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 10%" class="center">序号</th>
|
||||
|
|
@ -104,9 +108,9 @@
|
|||
<!-- 操作记录 -->
|
||||
<div id="oper-record-box" class="layout">
|
||||
<div class="title layout">
|
||||
<span style="font-weight:700;text-decoration:none;color:#409EFF;">▋</span>
|
||||
<p>操作记录</p>
|
||||
</div>
|
||||
<span style="font-weight:700;text-decoration:none;color:#409EFF;">▋</span>
|
||||
<p>操作记录</p>
|
||||
</div>
|
||||
<div class="layui-timeline">
|
||||
<div class="layui-timeline-item">
|
||||
<i class="layui-icon layui-timeline-axis"></i>
|
||||
|
|
@ -142,4 +146,5 @@
|
|||
<script src="../../../js/Print.js" charset="utf-8"></script>
|
||||
<script src="../../../lib/layui-v2.9.18/layui/layui.js" charset="utf-8"></script>
|
||||
<script src="../../../js/demandPlan/child/apply_plan_detail.js" charset="utf-8"></script>
|
||||
|
||||
</html>
|
||||
Loading…
Reference in New Issue