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