|
@@ -201,7 +201,6 @@
|
|
|
<div>
|
|
|
<div class="layui-row">
|
|
|
<div style="display: flex;margin-bottom: 3px">
|
|
|
-<%-- <label class="juli" onclick="levelList('abcs','A类','')">--%>
|
|
|
<label class="juli">
|
|
|
储备项目总数
|
|
|
<span class="info-icon" title="A类项目:成熟类项目,可研或初设已编制并完成初审,达到项目等资金的进度">?</span>
|
|
@@ -259,140 +258,15 @@
|
|
|
<div style="height: 20px;"></div>
|
|
|
</div>
|
|
|
</template>
|
|
|
-<%--<div id="setReason" style="display: none;">--%>
|
|
|
-<%-- <form class="layui-form" lay-filter="reasonForm">--%>
|
|
|
-<%-- <div class="layui-row">--%>
|
|
|
-<%-- <div class="layui-col-xs6 layui-col-sm6">--%>
|
|
|
-<%-- <div class="layui-form-item">--%>
|
|
|
-<%-- <label class="layui-form-label">已开工未入库原因:</label>--%>
|
|
|
-<%-- <div class="layui-input-block">--%>
|
|
|
-<%-- <textarea name="reasonNoRk" maxlength="200" style="height: 50px;width: 80%;" id="reasonNoRk"--%>
|
|
|
-<%-- autocomplete="off" class="layui-textarea"></textarea>--%>
|
|
|
-<%-- </div>--%>
|
|
|
-<%-- </div>--%>
|
|
|
-<%-- </div>--%>
|
|
|
-<%-- <div class="layui-col-xs6 layui-col-sm6">--%>
|
|
|
-<%-- <div class="layui-form-item">--%>
|
|
|
-<%-- <label class="layui-form-label">已入库无投资原因:</label>--%>
|
|
|
-<%-- <div class="layui-input-block">--%>
|
|
|
-<%-- <textarea name="reasonNoAmt" maxlength="200" style="height: 50px;width: 80%;" id="reasonNoAmt"--%>
|
|
|
-<%-- autocomplete="off" class="layui-textarea"></textarea>--%>
|
|
|
-<%-- </div>--%>
|
|
|
-<%-- </div>--%>
|
|
|
-<%-- </div>--%>
|
|
|
-<%-- </div>--%>
|
|
|
-<%-- <div class="layui-row">--%>
|
|
|
-<%-- <div class="layui-col-xs6 layui-col-sm6">--%>
|
|
|
-<%-- <div class="layui-form-item">--%>
|
|
|
-<%-- <label class="layui-form-label">是否入统:</label>--%>
|
|
|
-<%-- <div class="layui-input-block">--%>
|
|
|
-<%-- <input type="radio" name="isRk" value="0" title="否" checked="checked"/>--%>
|
|
|
-<%-- <input type="radio" name="isRk" value="1" title="是"/>--%>
|
|
|
-<%-- </div>--%>
|
|
|
-<%-- </div>--%>
|
|
|
-<%-- </div>--%>
|
|
|
-<%-- <div class="layui-col-xs6 layui-col-sm6">--%>
|
|
|
-<%-- <div class="layui-form-item">--%>
|
|
|
-<%-- <label class="layui-form-label">未开工建设原因:</label>--%>
|
|
|
-<%-- <div class="layui-input-block">--%>
|
|
|
-<%-- <textarea name="reasonNoKg" maxlength="200" style="height: 50px;width: 80%;" id="reasonNoKg"--%>
|
|
|
-<%-- autocomplete="off" class="layui-textarea"></textarea>--%>
|
|
|
-<%-- </div>--%>
|
|
|
-<%-- </div>--%>
|
|
|
-<%-- </div>--%>
|
|
|
-<%-- </div>--%>
|
|
|
-<%-- <div class="layui-row">--%>
|
|
|
-<%-- <div class="layui-col-xs6 layui-col-sm6">--%>
|
|
|
-<%-- <div class="layui-form-item">--%>
|
|
|
-<%-- <label class="layui-form-label">存在的问题:</label>--%>
|
|
|
-<%-- <div class="layui-input-block">--%>
|
|
|
-<%-- <textarea name="reasonq" maxlength="200" style="height: 50px;width: 80%;" id="reasonq"--%>
|
|
|
-<%-- autocomplete="off" class="layui-textarea"></textarea>--%>
|
|
|
-<%-- </div>--%>
|
|
|
-<%-- </div>--%>
|
|
|
-<%-- </div>--%>
|
|
|
-<%-- <div class="layui-col-xs6 layui-col-sm6">--%>
|
|
|
-<%-- <div class="layui-form-item">--%>
|
|
|
-<%-- <label class="layui-form-label">已开工进度慢原因:</label>--%>
|
|
|
-<%-- <div class="layui-input-block">--%>
|
|
|
-<%-- <textarea name="reasonJd" maxlength="200" style="height: 50px;width: 80%;" id="reasonJd"--%>
|
|
|
-<%-- autocomplete="off" class="layui-textarea"></textarea>--%>
|
|
|
-<%-- </div>--%>
|
|
|
-<%-- </div>--%>
|
|
|
-<%-- </div>--%>
|
|
|
-<%-- </div>--%>
|
|
|
-<%-- </form>--%>
|
|
|
-<%--</div>--%>
|
|
|
-
|
|
|
-
|
|
|
-<%--<div id="problem" class="layuimini-main" style="display: none;">--%>
|
|
|
-<%-- <form class="layui-form" lay-filter="problemForm">--%>
|
|
|
-<%-- <div class="layui-row">--%>
|
|
|
-<%-- <div class="layui-col-xs12 layui-col-sm12">--%>
|
|
|
-<%-- <div class="layui-form-item">--%>
|
|
|
-<%-- <label class="layui-form-label">状态:</label>--%>
|
|
|
-<%-- <div class="layui-input-block block-width">--%>
|
|
|
-<%-- <input type="radio" name="statusF" value="2" title="红灯" checked="checked"/>--%>
|
|
|
-<%-- <input type="radio" name="statusF" value="1" title="黄灯"/>--%>
|
|
|
-<%-- <input type="radio" name="statusF" value="0" title="绿灯"/>--%>
|
|
|
-<%-- </div>--%>
|
|
|
-<%-- </div>--%>
|
|
|
-<%-- </div>--%>
|
|
|
-<%-- </div>--%>
|
|
|
-<%-- <div class="layui-row">--%>
|
|
|
-<%-- <div class="layui-col-xs12 layui-col-sm12">--%>
|
|
|
-<%-- <div class="layui-form-item">--%>
|
|
|
-<%-- <label class="layui-form-label">问题描述:</label>--%>
|
|
|
-<%-- <div class="layui-input-block block-width">--%>
|
|
|
-<%-- <textarea name="status_reason" maxlength="400" style="height: 300px;width: 80%;"--%>
|
|
|
-<%-- id="problemReason" autocomplete="off" class="layui-textarea"></textarea>--%>
|
|
|
-<%-- </div>--%>
|
|
|
-<%-- </div>--%>
|
|
|
-<%-- </div>--%>
|
|
|
-<%-- </div>--%>
|
|
|
-<%-- <div class="layui-row">--%>
|
|
|
-<%-- <div class="layui-col-xs12 layui-col-sm12">--%>
|
|
|
-<%-- <div class="layui-form-item">--%>
|
|
|
-<%-- <label class="layui-form-label">要求解决日期:</label>--%>
|
|
|
-<%-- <div class="layui-input-block block-width" style="width: 25%">--%>
|
|
|
-<%-- <input type="text" id="dateConfirm" name="dateConfirm" autocomplete="off" class="layui-input">--%>
|
|
|
-<%-- </div>--%>
|
|
|
-<%-- </div>--%>
|
|
|
-<%-- </div>--%>
|
|
|
-<%-- </div>--%>
|
|
|
-<%-- </form>--%>
|
|
|
-<%--</div>--%>
|
|
|
-
|
|
|
-<div id="toBack" class="layuimini-main" style="display: none;">
|
|
|
- <form class="layui-form" lay-filter="toBackForm">
|
|
|
- <div class="layui-row">
|
|
|
- <div class="layui-col-xs12 layui-col-sm12">
|
|
|
- <div class="layui-form-item">
|
|
|
- <label class="layui-form-label" style="width: 100px">退回到状态:</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <input type="radio" name="status" value="1" title="项目前期" checked="checked"/>
|
|
|
- <input type="radio" name="status" value="6" title="待开工"/>
|
|
|
- <input type="radio" name="status" value="7" title="施工中"/>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
-</div>
|
|
|
|
|
|
<script type="text/html" id="subName">
|
|
|
<span lay-event="toDetail" title="{{d.subName}}">{{d.subName}}</span>
|
|
|
</script>
|
|
|
|
|
|
-<script type="text/html" id="mainName">
|
|
|
- <span lay-event="toManagerUnit" title="{{d.mainName}}">{{d.mainName}}</span>
|
|
|
-</script>
|
|
|
-
|
|
|
<script type="text/html" id="unitName">
|
|
|
<span lay-event="toQcc" title="{{d.unitName}}">{{d.unitName}}</span>
|
|
|
</script>
|
|
|
|
|
|
-
|
|
|
<script type="text/html" id="date">
|
|
|
<div title="">
|
|
|
<div class="line"><span class="qianse">计划开工:</span> <span class="shense">{{d.beginDate}}</span>
|
|
@@ -411,25 +285,6 @@
|
|
|
</div>
|
|
|
</script>
|
|
|
|
|
|
-
|
|
|
-<script type="text/html" id="zjly">
|
|
|
- <div title="">
|
|
|
- <span class="lanse">{{d.zjlyName}}</span>
|
|
|
- </div>
|
|
|
-</script>
|
|
|
-
|
|
|
-
|
|
|
-<script type="text/html" id="abcSpan">
|
|
|
- {{# if(d.abc == "A") { }}
|
|
|
- <span style="font-size:16px;font-weigh:500 !important;color: #26B520">{{d.abc||''}}</span>
|
|
|
- {{#} }}
|
|
|
- {{# if(d.abc == "B") { }}
|
|
|
- <span style="font-size:16px;font-weigh:500 !important;color: #1869F6">{{d.abc||''}}</span>
|
|
|
- {{#} }}
|
|
|
- {{# if(d.abc == "C") { }}
|
|
|
- <span style="font-size:16px;font-weigh:500 !important;color: #FF9600">{{d.abc||''}}</span>
|
|
|
- {{#} }}
|
|
|
-</script>
|
|
|
<%-- table操作按钮 --%>
|
|
|
<script type="text/html" id="toolBar">
|
|
|
<div class="toolBar">
|
|
@@ -441,67 +296,6 @@
|
|
|
</div>
|
|
|
</script>
|
|
|
|
|
|
-<script type="text/html" id="imageDiv">
|
|
|
- <div style="width:50px;height:50px" onclick="showImage(this)">
|
|
|
- {{# if(d.fileId != null && d.fileId != '') { }}
|
|
|
- <img src="${domain}/static/file/{{d.fileId}}/showfile" realUrl="${domain}/static/file/{{d.fileId}}/showfile"
|
|
|
- width="50px" height="50px"/>
|
|
|
- {{#} }}
|
|
|
- </div>
|
|
|
-</script>
|
|
|
-
|
|
|
-
|
|
|
-<script type="text/html" id="offsetLight">
|
|
|
- {{#if(d.offset >= -30 && d.offset <= -10 ) { }}
|
|
|
- <span style="color: yellow"><image class="light-rgb"
|
|
|
- src="${WebSite.asset}/css/images/bigScreen/light-yellow.png"></image></span>
|
|
|
- {{#} else if(d.offset < -30) { }}
|
|
|
- <span style="color: red"><image class="light-rgb"
|
|
|
- src="${WebSite.asset}/css/images/bigScreen/light-red.png"></image></span>
|
|
|
- {{#}}}
|
|
|
- {{#if(d.offset !="" || d.offset != undefined || d.offset != null) { }}
|
|
|
- {{#if(d.offset<0) { }}
|
|
|
- <span class="grey">{{d.offset||"--"}}%</span>
|
|
|
- {{# } }}
|
|
|
- {{#if(d.offset>0) { }}
|
|
|
- <span class="green">{{d.offset||"--"}}%</span>
|
|
|
- {{# } }}
|
|
|
- {{# } }}
|
|
|
-</script>
|
|
|
-
|
|
|
-
|
|
|
-<script type="text/html" id="openLight">
|
|
|
-
|
|
|
-
|
|
|
- {{# var computedPer1 = function(beginDate){
|
|
|
-
|
|
|
- var beginDate =new Date(beginDate);
|
|
|
- var beginDate7 =new Date(beginDate);
|
|
|
- var beginDate3 =new Date(beginDate);
|
|
|
- beginDate7.setDate(beginDate7.getDate()-7);
|
|
|
- beginDate3.setDate(beginDate3.getDate()-3);
|
|
|
-
|
|
|
- var newDate = new Date();
|
|
|
- if(newDate.getTime() >=beginDate7.getTime() && newDate.getTime() <=beginDate3.getTime()){
|
|
|
- return "yellow";
|
|
|
- }else if(newDate.getTime() >=beginDate3.getTime() && newDate.getTime() <= beginDate.getTime() ){
|
|
|
- return "red";
|
|
|
- }else{
|
|
|
- return "-";
|
|
|
- }
|
|
|
- };
|
|
|
- }}
|
|
|
-
|
|
|
- {{#if(computedPer1(d.beginDate)=="yellow" ) { }}
|
|
|
- <span style="color: yellow"> <image style="width:20px;height:20px;margin: auto;"
|
|
|
- src="${WebSite.asset}/css/images/bigScreen/light-yellow.png"></image></span>
|
|
|
- {{#} else if(computedPer1(d.beginDate)=="red") { }}
|
|
|
- <span style="color: red"> <image style="width:20px;height:20px;margin: auto;"
|
|
|
- src="${WebSite.asset}/css/images/bigScreen/light-red.png"></image></span>
|
|
|
- {{#}}}
|
|
|
-</script>
|
|
|
-
|
|
|
-
|
|
|
<script>
|
|
|
layui.use('element', function () {
|
|
|
let element = layui.element;
|
|
@@ -526,7 +320,7 @@
|
|
|
sort: {field: "abc", type: ""},
|
|
|
pageSize: 10,
|
|
|
showExport: false,
|
|
|
- moveDbParam:{
|
|
|
+ moveDbParam: {
|
|
|
status: "",
|
|
|
id: "",
|
|
|
statusName: ""
|
|
@@ -555,8 +349,8 @@
|
|
|
param.statusName = statusMap[param.status] || "未知状态";
|
|
|
let self = this;
|
|
|
self.closeAllLayers();
|
|
|
- App.msg.confirm(`是否移入`+param.statusName+`库?`, () => {
|
|
|
- App.postJson("/api/subject/subInfo/moveDb", { id: param.id, status: param.status }, (res) => {
|
|
|
+ App.msg.confirm(`是否移入` + param.statusName + `库?`, () => {
|
|
|
+ App.postJson("/api/subject/subInfo/moveDb", {id: param.id, status: param.status}, (res) => {
|
|
|
if (res.success) {
|
|
|
App.msg.success("移入成功");
|
|
|
self.getData()
|
|
@@ -630,102 +424,13 @@
|
|
|
if (params) {
|
|
|
layui.form.val("searchForm", JSON.parse(params));
|
|
|
}
|
|
|
- <%--if(${isHydw}) {--%>
|
|
|
- <%-- this.light = layui.xmSelect.render({--%>
|
|
|
- <%-- el: "#light",--%>
|
|
|
- <%-- language:'zn',--%>
|
|
|
- <%-- data: [--%>
|
|
|
- <%-- {value: '0', name:'绿灯'},--%>
|
|
|
- <%-- {value: '1', name:'黄灯'},--%>
|
|
|
- <%-- {value: '2', name:'红灯'}--%>
|
|
|
- <%-- ]--%>
|
|
|
- <%-- })--%>
|
|
|
- <%--}--%>
|
|
|
+
|
|
|
this.getData();
|
|
|
window.toDetail = this.toDetail;
|
|
|
window.levelList = this.levelList;
|
|
|
- window.showImage = this.showImage;
|
|
|
$(".hiddenParams").show();
|
|
|
},
|
|
|
- leaderSupervise: function (obj) {
|
|
|
|
|
|
- App.openLayer({
|
|
|
- title: "督办信息",
|
|
|
- content: App.getUrl("/meetingRecords/leaderMeeting?subId=" + obj.data.id),
|
|
|
- height: "600",
|
|
|
- width: "800"
|
|
|
- })
|
|
|
-
|
|
|
- },
|
|
|
- setIsNew: function (obj) {
|
|
|
- var self = this;
|
|
|
- App.msg.confirm("是否移入新建库?", function () {
|
|
|
- App.postJson("/api/subject/subInfo/setIsNew", {subId: obj.data.id}, function (res) {
|
|
|
- if (res.success) {
|
|
|
- App.msg.success("设置成功");
|
|
|
- self.getData();
|
|
|
- layer.close(index);
|
|
|
- }
|
|
|
- });
|
|
|
- });
|
|
|
- },
|
|
|
- showImage: function (that) {
|
|
|
- var imageUrl = $(that).find("img").eq(0).attr("realUrl");
|
|
|
- if (imageUrl) {
|
|
|
- // layer.open({
|
|
|
- // type: 2,
|
|
|
- // content: imageUrl,
|
|
|
- // area: ['500px', '1000px'],
|
|
|
- // offset: 'auto',
|
|
|
- // success: function(obj,index){
|
|
|
- // layer.full(index);
|
|
|
- // }
|
|
|
- // })
|
|
|
- layer.photos({
|
|
|
- photos: {
|
|
|
- "title": "",
|
|
|
- "id": "",
|
|
|
- "start": 0,
|
|
|
- "data": [
|
|
|
- {
|
|
|
- "alt": "",
|
|
|
- "pid": "",
|
|
|
- "src": imageUrl,
|
|
|
- "thumb": imageUrl
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- anim: 5,
|
|
|
- closeBtn: "1",
|
|
|
- success: function () {
|
|
|
- //以鼠标位置为中心的图片滚动放大缩小
|
|
|
- $(document).on("mousewheel", ".layui-layer-photos", function (ev) {
|
|
|
- var oImg = this;
|
|
|
- var ev = event || window.event;//返回WheelEvent
|
|
|
- //ev.preventDefault();
|
|
|
- var delta = ev.detail ? ev.detail > 0 : ev.wheelDelta < 0;
|
|
|
- var ratioL = (ev.clientX - oImg.offsetLeft) / oImg.offsetWidth,
|
|
|
- ratioT = (ev.clientY - oImg.offsetTop) / oImg.offsetHeight,
|
|
|
- ratioDelta = !delta ? 1 + 0.1 : 1 - 0.1,
|
|
|
- w = parseInt(oImg.offsetWidth * ratioDelta),
|
|
|
- h = parseInt(oImg.offsetHeight * ratioDelta),
|
|
|
- l = Math.round(ev.clientX - (w * ratioL)),
|
|
|
- t = Math.round(ev.clientY - (h * ratioT));
|
|
|
- $(".layui-layer-photos").css({
|
|
|
- width: w, height: h
|
|
|
- , left: l, top: t
|
|
|
- });
|
|
|
- $("#layui-layer-photos").css({width: w, height: h});
|
|
|
- $("#layui-layer-photos>img").css({width: w, height: h});
|
|
|
- });
|
|
|
- }
|
|
|
- , end: function () { //销毁回调
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- });
|
|
|
- }
|
|
|
- },
|
|
|
showMore: function () {
|
|
|
this.showMoreFlag = !this.showMoreFlag;
|
|
|
if (this.showMoreFlag) {
|
|
@@ -806,7 +511,7 @@
|
|
|
autoSort: false,
|
|
|
initSort: self.sort,
|
|
|
cols: [[
|
|
|
- {type: 'numbers', align: 'center', width: 44, title: '序号',fixed: 'left'},
|
|
|
+ {type: 'numbers', align: 'center', width: 44, title: '序号', fixed: 'left'},
|
|
|
{field: 'subName', fixed: 'left', title: '项目名称', width: 200, templet: '#subName'},
|
|
|
{field: 'subjectName', title: '项目所在地', width: 100},
|
|
|
{field: 'content', title: '项目建设内容', minWidth: 300},
|
|
@@ -829,7 +534,7 @@
|
|
|
});
|
|
|
|
|
|
layui.table.on('tool(' + this.tableName + ')', obj => {
|
|
|
- const { event } = obj;
|
|
|
+ const {event} = obj;
|
|
|
if (typeof self[event] === 'function') {
|
|
|
self[event](obj);
|
|
|
} else {
|
|
@@ -842,42 +547,7 @@
|
|
|
self.getData();
|
|
|
});
|
|
|
},
|
|
|
- toBack: function (obj) {
|
|
|
- layer.open({
|
|
|
- type: 1,
|
|
|
- title: "退回",
|
|
|
- content: $("#toBack"),
|
|
|
- area: ['600px', ''],
|
|
|
- btn: ["保存", "取消"],
|
|
|
- yes: function (index) {
|
|
|
- var data = layui.form.val("toBackForm");
|
|
|
- var status = data.status;
|
|
|
- if (status != undefined) {
|
|
|
- if (parseInt(obj.data.status) <= parseInt(data.status)) {
|
|
|
- App.msg.warn("只能退回下级状态,请检查!!!!");
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- App.postJson("/api/subject/subInfo/toTemp", {
|
|
|
- subId: obj.data.id,
|
|
|
- status: data.status
|
|
|
- }, function (res) {
|
|
|
- if (res.success) {
|
|
|
- layer.msg("成功", {icon: 6, time: 1000});
|
|
|
- //
|
|
|
- window.location.href = App.getUrl("subject/subInfo/projTz?type=4");
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
- },
|
|
|
- close: function (index) {
|
|
|
- layer.close(index);
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
-
|
|
|
- move (obj) {
|
|
|
+ move(obj) {
|
|
|
this.moveDbParam.id = obj.data.id
|
|
|
const formTemplate = `<div class="layui-form" style="padding: 20px;">
|
|
|
<div class="layui-form-item">
|
|
@@ -901,30 +571,17 @@
|
|
|
<button type="button" class="layui-btn layui-btn-primary layui-border" onclick="vm.closeAllLayers()">取消</button>
|
|
|
<button type="button" class="layui-btn moveConfirm" onclick="vm.confirmMove()">确认移入</button>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- `;
|
|
|
+ </div>`;
|
|
|
layer.open({
|
|
|
type: 1,
|
|
|
title: '移入',
|
|
|
content: formTemplate,
|
|
|
area: ['350px', '300px'],
|
|
|
- success: function(layero, index){
|
|
|
+ success: function (layero, index) {
|
|
|
layui.form.render();
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- isHide: function (obj) {
|
|
|
- var self = this;
|
|
|
- App.msg.confirm("是否移入在建库?", function () {
|
|
|
- App.postJson("/api/subject/subInfo/setIsHide", {subId: obj.data.id}, function (res) {
|
|
|
- if (res.success) {
|
|
|
- App.msg.success("设置成功");
|
|
|
- self.getData();
|
|
|
- layer.close(index);
|
|
|
- }
|
|
|
- });
|
|
|
- });
|
|
|
- },
|
|
|
loadPage: function (totalCount) {
|
|
|
var self = this;
|
|
|
layui.laypage.render({
|
|
@@ -942,72 +599,6 @@
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- // yearPlan: function (obj) {
|
|
|
- // window.location.href = App.getUrl("amtPlan/detail?subId=" + obj.data.id);
|
|
|
- // },
|
|
|
- // setSubReason: function (obj) {
|
|
|
- // var self = this;
|
|
|
- // layui.form.val("reasonForm", obj.data);
|
|
|
- // layer.open({
|
|
|
- // type: 1,
|
|
|
- // title: "项目原因录入",
|
|
|
- // content: $("#setReason"),
|
|
|
- // area: ['880px', '560px'],
|
|
|
- // btn: ["保存", "取消"],
|
|
|
- // yes: function (index) {
|
|
|
- // var reason = layui.form.val("reasonForm");
|
|
|
- // reason.subId = obj.data.id;
|
|
|
- // App.postJson("/api/subject/subInfo/setSubReason", reason, function (res) {
|
|
|
- // if (res.success) {
|
|
|
- // App.msg.success("设置成功");
|
|
|
- // self.getData();
|
|
|
- // layer.close(index);
|
|
|
- // }
|
|
|
- // });
|
|
|
- // },
|
|
|
- // close: function (index) {
|
|
|
- // layer.close(index);
|
|
|
- // }
|
|
|
- // })
|
|
|
- // },
|
|
|
- // problem: function (obj) {
|
|
|
- // var self = this;
|
|
|
- // obj.data.status_reason = "";
|
|
|
- // layui.form.val("problemForm", obj.data);
|
|
|
- // layer.open({
|
|
|
- // type: 1,
|
|
|
- // title: "问题督办",
|
|
|
- // content: $("#problem"),
|
|
|
- // area: ['800px', '600px'],
|
|
|
- // btn: ["保存", "取消"],
|
|
|
- // yes: function (index) {
|
|
|
- // var reason = layui.form.val("problemForm");
|
|
|
- // reason.subId = obj.data.id;
|
|
|
- //
|
|
|
- // if (reason.statusF == "2" || reason.statusF == "1") {
|
|
|
- // if (reason.status_reason == "" || reason.status_reason == undefined) {
|
|
|
- // layer.msg("红灯,黄灯必须输入原因");
|
|
|
- // return;
|
|
|
- // }
|
|
|
- // }
|
|
|
- // App.postJson("/api/subject/subInfo/setStatus", {
|
|
|
- // subId: obj.data.id,
|
|
|
- // statusFgw: reason.statusF,
|
|
|
- // reason: reason.status_reason,
|
|
|
- // dateConfirm: reason.dateConfirm
|
|
|
- // }, function (res) {
|
|
|
- // if (res.success) {
|
|
|
- // App.msg.success("设置成功");
|
|
|
- // self.getData();
|
|
|
- // layer.close(index);
|
|
|
- // }
|
|
|
- // });
|
|
|
- // },
|
|
|
- // close: function (index) {
|
|
|
- // layer.close(index);
|
|
|
- // }
|
|
|
- // })
|
|
|
- // },
|
|
|
exportExcel: function () {
|
|
|
var param = this.getSearchParams();
|
|
|
App.common.utils.downFile(App.getUrl("subInfoExport/exportSumExcel"), "POST", param, "项目情况表.xlsx", "导出失败");
|
|
@@ -1030,10 +621,6 @@
|
|
|
var param = this.getSearchParams();
|
|
|
App.common.utils.downFile(App.getUrl("subInfoExport/exportSchedulingExcel"), "POST", param, "项目调度表.xlsx", "导出失败");
|
|
|
},
|
|
|
- /* exportExcel2: function(){
|
|
|
- var param = this.getSearchParams();
|
|
|
- App.common.utils.downFile(App.getUrl("subInfoExport/exportExcelTz"),"POST", param,"项目详情信息表.xlsx", "导出失败");
|
|
|
- }, */
|
|
|
exportMoreExcel: function () {
|
|
|
top.window.getSearchParams = this.getSearchParams;
|
|
|
App.openLayer({
|
|
@@ -1046,18 +633,6 @@
|
|
|
toQcc: function (obj) {
|
|
|
window.open('https://www.qcc.com/web/search?key=' + obj.data.unitName, '_blank')
|
|
|
},
|
|
|
-
|
|
|
- toManagerUnit: function (obj) {
|
|
|
- //详情
|
|
|
- var index = layer.open({
|
|
|
- type: 2,
|
|
|
- title: '',
|
|
|
- area: ['1000px', '800px'],
|
|
|
- // /subject/subInfo/editSubInfo
|
|
|
- content: App.getUrl("/subject/subInfo/manageUnit?subId=" + obj.data.id + "&queryType=3"),
|
|
|
- });
|
|
|
- layui.layer.full(index);
|
|
|
- },
|
|
|
toDetail: function (obj) {
|
|
|
//详情
|
|
|
var index = layer.open({
|
|
@@ -1068,16 +643,6 @@
|
|
|
});
|
|
|
layui.layer.full(index);
|
|
|
},
|
|
|
- /* toDetail: function (obj) {
|
|
|
- //详情
|
|
|
- var index = layer.open({
|
|
|
- type: 2,
|
|
|
- title: '',
|
|
|
- area: ['1000px', '800px'],
|
|
|
- content: App.getUrl("/subject/subInfo/detailView?layer=true&subId=" + obj.data.id + "&lastUrl=" + window.location.href),
|
|
|
- });
|
|
|
- layui.layer.full(index);
|
|
|
- },*/
|
|
|
levelList: function (field, title, val) {
|
|
|
//详情
|
|
|
var param = field + "," + title + "," + val
|
|
@@ -1090,30 +655,9 @@
|
|
|
});
|
|
|
//top.layer.full(index);
|
|
|
},
|
|
|
- // print: function (obj) {
|
|
|
- // 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) {
|
|
|
- // window.location.href = App.getUrl("/subPreNew/todo?subId=" + obj.data.id);
|
|
|
- // },
|
|
|
- // toTh: function (obj) {
|
|
|
- // if (obj.data.statusJh == null || obj.data.statusJh == '0' || obj.data.statusJh == '1') {
|
|
|
- // App.msg.confirm("是否需要退回到暂存状态?", function () {
|
|
|
- // App.postJson("/api/subject/subInfo/toTemp", {subId: obj.data.id, status: "0"}, function (res) {
|
|
|
- // if (res.success) {
|
|
|
- // layer.msg("成功", {icon: 6, time: 1000});
|
|
|
- // //
|
|
|
- // window.location.href = App.getUrl("subject/subInfo/projTz");
|
|
|
- // }
|
|
|
- // });
|
|
|
- // })
|
|
|
- // } else {
|
|
|
- // App.msg.warn("已做过开工申报,需要走变更流程");
|
|
|
- // }
|
|
|
- // },
|
|
|
search: function () {
|
|
|
var param = layui.form.getValue("searchForm");
|
|
|
window.localStorage.setItem(this.cacheName, JSON.stringify(param));
|