|
@@ -120,7 +120,7 @@
|
|
<div class="layui-colla-item">
|
|
<div class="layui-colla-item">
|
|
<div class="layui-colla-content layui-show">
|
|
<div class="layui-colla-content layui-show">
|
|
<form class="layui-form" lay-filter="searchForm" id="searchForm">
|
|
<form class="layui-form" lay-filter="searchForm" id="searchForm">
|
|
- <input type="hidden" name="queryType" value="1">
|
|
|
|
|
|
+ <input type="hidden" name="subId" value="${subId}">
|
|
<div class="layui-row">
|
|
<div class="layui-row">
|
|
<div class="layui-col-xs3 layui-col-sm3 layui-col-md3">
|
|
<div class="layui-col-xs3 layui-col-sm3 layui-col-md3">
|
|
<div class="layui-form-item">
|
|
<div class="layui-form-item">
|
|
@@ -162,7 +162,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="layui-col-xs3 layui-col-sm3 layui-col-md3 hiddenParam">
|
|
|
|
|
|
+ <div class="layui-col-xs6 layui-col-sm6 layui-col-md6 hiddenParam">
|
|
<div class="layui-form-item">
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label required label-longers">四库</label>
|
|
<label class="layui-form-label required label-longers">四库</label>
|
|
<div class="layui-input-block">
|
|
<div class="layui-input-block">
|
|
@@ -170,16 +170,6 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="layui-col-xs3 layui-col-sm3 layui-col-md3 hiddenParam">
|
|
|
|
- <div class="layui-form-item">
|
|
|
|
- <label class="layui-form-label label-longers">项目单位</label>
|
|
|
|
- <div class="layui-input-block">
|
|
|
|
- <input type="text" name="sbdw" placeholder="请输入项目项目单位名称"
|
|
|
|
- autocomplete="off"
|
|
|
|
- class="layui-input">
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
<div class="layui-col-xs3 layui-col-sm3 layui-col-md3 hiddenParams">
|
|
<div class="layui-col-xs3 layui-col-sm3 layui-col-md3 hiddenParams">
|
|
<div class="layui-form-item">
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label"></label>
|
|
<label class="layui-form-label"></label>
|
|
@@ -218,12 +208,10 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div style="position: relative; display: inline-block">
|
|
<div style="position: relative; display: inline-block">
|
|
- <div class="export" id="uploadBtn">
|
|
|
|
- <img src="${WebSite.asset}/css/images/left/export.svg"/>
|
|
|
|
- <span>导入</span>
|
|
|
|
|
|
+ <div class="export" id="addProcedure" style="text-align: center" @click="addProcedure">
|
|
|
|
+ <span>新建</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- 请先导出文件,再点击导入上传修改后的数据!
|
|
|
|
<table id="table1" lay-filter="test"></table>
|
|
<table id="table1" lay-filter="test"></table>
|
|
<div class="pagination-box" id="pagination"></div>
|
|
<div class="pagination-box" id="pagination"></div>
|
|
</div>
|
|
</div>
|
|
@@ -406,18 +394,10 @@
|
|
<%-- table操作按钮 --%>
|
|
<%-- table操作按钮 --%>
|
|
<script type="text/html" id="toolBar">
|
|
<script type="text/html" id="toolBar">
|
|
<div class="toolBar">
|
|
<div class="toolBar">
|
|
- <span title="项目查询" lay-event="toDetail" class="no-wrap">项目查询</span>
|
|
|
|
{{# if("${currUser.edit}" == 'true'||( d.propKind == '3' && "${currUser.id}" == d.create_user_id )) { }}
|
|
{{# if("${currUser.edit}" == 'true'||( d.propKind == '3' && "${currUser.id}" == d.create_user_id )) { }}
|
|
- <span title="编辑" lay-event="toEditSubInfo" class="no-wrap"> 编辑</span>
|
|
|
|
- {{#} }}
|
|
|
|
- <span title="红黄灯" lay-event="toEditLight" class="no-wrap">红黄灯</span>
|
|
|
|
- <span title="转库" lay-event="move" class="no-wrap">转库</span>
|
|
|
|
- {{# if(d.status != '5') { }}
|
|
|
|
- <span title="移出4库" lay-event="removeFour" class="no-wrap">移出4库</span>
|
|
|
|
- {{#} }}
|
|
|
|
- {{# if(d.status == '5') { }}
|
|
|
|
- <span title="取消移除" lay-event="cancelRemove" class="no-wrap">取消移除</span>
|
|
|
|
|
|
+ <span title="编辑" lay-event="toEditProcedure" class="no-wrap"> 编辑</span>
|
|
{{#} }}
|
|
{{#} }}
|
|
|
|
+ <span title="删除" lay-event="toDelProcedure" class="no-wrap">删除</span>
|
|
</div>
|
|
</div>
|
|
</script>
|
|
</script>
|
|
|
|
|
|
@@ -542,6 +522,15 @@
|
|
this.init()
|
|
this.init()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ toEditProcedure: function (obj) {
|
|
|
|
+ window.location.href = App.getUrl("/subject/subInfo/editProcedure?subId=" + obj.data.id + "&queryType=3");
|
|
|
|
+ },
|
|
|
|
+ addProcedure(){
|
|
|
|
+ window.location.href = App.getUrl("/subject/subInfo/editProcedure?subId=");
|
|
|
|
+ },
|
|
|
|
+ delProcedure(){
|
|
|
|
+ window.location.href = App.getUrl("/subject/subInfo/addProcedure?subId=" + obj.data.id + "&queryType=3");
|
|
|
|
+ },
|
|
// 红黄灯
|
|
// 红黄灯
|
|
toEditLight(obj){
|
|
toEditLight(obj){
|
|
let self = this;
|
|
let self = this;
|
|
@@ -699,7 +688,9 @@
|
|
|
|
|
|
// var subInfoStatusData = [];
|
|
// var subInfoStatusData = [];
|
|
<c:forEach items="${subInfoStatus}" var="xm">
|
|
<c:forEach items="${subInfoStatus}" var="xm">
|
|
- self.subInfoStatusData.push({value: "${xm.code}", name: "${xm.desc}"});
|
|
|
|
|
|
+ <c:if test="${xm.code == '1' || xm.code == '2' || xm.code == '3' || xm.code == '9'}">
|
|
|
|
+ self.subInfoStatusData.push({value: "${xm.code}", name: "${xm.desc}"});
|
|
|
|
+ </c:if>
|
|
</c:forEach>
|
|
</c:forEach>
|
|
this.subInfoStatus = layui.xmSelect.render({
|
|
this.subInfoStatus = layui.xmSelect.render({
|
|
el: "#subInfoStatus",
|
|
el: "#subInfoStatus",
|
|
@@ -887,69 +878,15 @@
|
|
param.pageSize = this.pageSize;
|
|
param.pageSize = this.pageSize;
|
|
param.orderBy = this.sort.field;
|
|
param.orderBy = this.sort.field;
|
|
param.orderType = this.sort.type || "asc";
|
|
param.orderType = this.sort.type || "asc";
|
|
- // 查询 table 数据列表
|
|
|
|
- // App.postJson("/api/subInfo/query/all", param, function (res) {
|
|
|
|
- // self.dataList = res.rows;
|
|
|
|
- // self.loadPage(res.total);
|
|
|
|
- // self.loadTable();
|
|
|
|
- // });
|
|
|
|
-
|
|
|
|
|
|
+ if (param.statusList == null || param.statusList.length === 0){
|
|
|
|
+ param.statusList = ["1","2","3","9"]
|
|
|
|
+ }
|
|
// 表格分页数据
|
|
// 表格分页数据
|
|
App.postJson("/api/subInfo/query/queryPage", param, function (res) {
|
|
App.postJson("/api/subInfo/query/queryPage", param, function (res) {
|
|
self.dataList = res.rows;
|
|
self.dataList = res.rows;
|
|
self.loadPage(res.total);
|
|
self.loadPage(res.total);
|
|
self.loadTable();
|
|
self.loadTable();
|
|
});
|
|
});
|
|
-
|
|
|
|
- // 统计数据
|
|
|
|
- // App.postJson("/api/subInfo/query/statistics", param, function (res) {
|
|
|
|
- // if (res.success) {
|
|
|
|
- // self.beginRate = res.data;
|
|
|
|
- // self.beginRate.hyflList = self.beginRate.hyflData;
|
|
|
|
- // self.beginRate.jsddList = self.beginRate.jsddData;
|
|
|
|
- // }
|
|
|
|
- // });
|
|
|
|
-
|
|
|
|
- /*App.postJson("/api/subInfo/query/beginRate", param, function (res) {
|
|
|
|
- if (res.success) {
|
|
|
|
- self.beginRate = res.data;
|
|
|
|
- self.beginRate.hyflList = self.beginRate.hyflData.split(";");
|
|
|
|
- self.beginRate.tzlxList = self.beginRate.tzlxData.split(";");
|
|
|
|
- self.beginRate.jsddList = self.beginRate.jsddData.split(";");
|
|
|
|
- if (res.data.total != 0) {
|
|
|
|
- self.beginRate.beginRate = (res.data.beginNum * 100 / res.data.total).toFixed(2);
|
|
|
|
- } else {
|
|
|
|
- self.beginRate.beginRate = 0;
|
|
|
|
- }
|
|
|
|
- if (res.data.yearAmt != 0) {
|
|
|
|
- self.beginRate.amtRate = (res.data.yearAmtSj * 100 / res.data.yearAmt).toFixed(2);
|
|
|
|
- } else if (res.data.yearAmtSj != 0) {
|
|
|
|
- self.beginRate.amtRate = 100;
|
|
|
|
- } else {
|
|
|
|
- self.beginRate.amtRate = 0;
|
|
|
|
- }
|
|
|
|
- if (res.data.total != 0) {
|
|
|
|
- self.beginRate.noRate = (res.data.noNum * 100 / res.data.total).toFixed(2) + '%';
|
|
|
|
- self.beginRate.beginRate = (res.data.beginNum * 100 / res.data.total).toFixed(2) + '%';
|
|
|
|
- self.beginRate.endRate = (res.data.endNum * 100 / res.data.total).toFixed(2) + '%';
|
|
|
|
- self.beginRate.stopRate = (res.data.stopNum * 100 / res.data.total).toFixed(2) + '%';
|
|
|
|
- self.beginRate.aRate = (res.data.aNum * 100 / res.data.total).toFixed(2) + '%';
|
|
|
|
- self.beginRate.bRate = (res.data.bNum * 100 / res.data.total).toFixed(2) + '%';
|
|
|
|
- self.beginRate.cRate = (res.data.cNum * 100 / res.data.total).toFixed(2) + '%';
|
|
|
|
- } else {
|
|
|
|
- self.beginRate.noRate = "0%";
|
|
|
|
- self.beginRate.beginRate = "0%";
|
|
|
|
- self.beginRate.endRate = "0%";
|
|
|
|
- self.beginRate.stopRate = "0%";
|
|
|
|
- self.beginRate.aRate = "0%";
|
|
|
|
- self.beginRate.bRate = "0%";
|
|
|
|
- self.beginRate.cRate = "0%";
|
|
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- self.beginRate.beginRate = 0;
|
|
|
|
- self.beginRate.amtRate = 0;
|
|
|
|
- }
|
|
|
|
- });*/
|
|
|
|
},
|
|
},
|
|
getStatusName: function (status) {
|
|
getStatusName: function (status) {
|
|
const statusMap = {
|
|
const statusMap = {
|
|
@@ -993,14 +930,8 @@
|
|
width: 100,
|
|
width: 100,
|
|
templet: d => `<span class="new-roman">` + (d.amtTotal / 10000).toFixed(2) + `</span>` + "亿元",
|
|
templet: d => `<span class="new-roman">` + (d.amtTotal / 10000).toFixed(2) + `</span>` + "亿元",
|
|
},
|
|
},
|
|
- {field: 'statusName', title: '状态', width: 60},
|
|
|
|
- {field: 'beginDate', title: '计划开工日期', minWidth: 100,
|
|
|
|
- templet: (d)=> `<span class="new-roman">` + d.beginDate + `</span>`
|
|
|
|
- },
|
|
|
|
- {field: 'endDate', title: '计划完工日期', minWidth: 100,
|
|
|
|
- templet: (d)=> `<span class="new-roman">` + d.endDate + `</span>`
|
|
|
|
- },
|
|
|
|
- {title: '操作', width: 160, toolbar: '#toolBar', fixed: 'right'},
|
|
|
|
|
|
+ {field: 'lastUpdateTime', title: '填写时间', width: 140},
|
|
|
|
+ {title: '操作', width: 120, toolbar: '#toolBar', fixed: 'right'},
|
|
]],
|
|
]],
|
|
fixed: true,
|
|
fixed: true,
|
|
height: $(window).height() - $('#table1').offset().top - 50,
|
|
height: $(window).height() - $('#table1').offset().top - 50,
|
|
@@ -1257,9 +1188,6 @@
|
|
print: function (obj) {
|
|
print: function (obj) {
|
|
window.open(App.getUrl("/subject/apply/downPdf?subId=" + obj.data.id));
|
|
window.open(App.getUrl("/subject/apply/downPdf?subId=" + obj.data.id));
|
|
},
|
|
},
|
|
- toEditSubInfo: function (obj) {
|
|
|
|
- window.location.href = App.getUrl("/subject/subInfo/editSubInfo2?subId=" + obj.data.id + "&queryType=3");
|
|
|
|
- },
|
|
|
|
preNew: function (obj) {
|
|
preNew: function (obj) {
|
|
window.location.href = App.getUrl("/subPreNew/todo?subId=" + obj.data.id);
|
|
window.location.href = App.getUrl("/subPreNew/todo?subId=" + obj.data.id);
|
|
},
|
|
},
|