|
@@ -329,16 +329,16 @@
|
|
|
v-for="(item, index) in beginRate.tzlxList" :key="index">
|
|
|
{{item.split(",")[1]}}<span class="lanse-first">{{item.split(",")[2]}}</span>
|
|
|
</label>
|
|
|
- <label class="juli" @click="levelList('subjects',item.split(',')[1],item.split(',')[0])"
|
|
|
+ <label class="juli" @click="levelList('subjects',item.name,item.code)"
|
|
|
v-for="(item, index) in beginRate.jsddList" :key="index">
|
|
|
- {{item.split(",")[1]}}<span class="lanse-first">{{item.split(",")[2]}}</span>
|
|
|
+ {{item.name}}<span class="lanse-first">{{item.num}}</span>
|
|
|
</label>
|
|
|
</div>
|
|
|
<div style="margin-bottom: 3px">
|
|
|
<label class="juli"
|
|
|
@click="levelList('indusKinds',item.split(',')[1]?item.split(',')[1]:item.split(',')[0],item.split(',')[3])"
|
|
|
v-for="(item, index) in beginRate.hyflList" :key="index">
|
|
|
- {{item.split(",")[1]?item.split(",")[1]:item.split(",")[0]}}<span class="lanse-first">{{item.split(",")[2]}}</span>
|
|
|
+ {{item.name}}<span class="lanse-first">{{item.num}}</span>
|
|
|
</label>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -666,7 +666,7 @@
|
|
|
|
|
|
<script type="text/html" id="date">
|
|
|
<div title="">
|
|
|
- <div class="line"><span class="shense">{{d.tcDate}}</span>
|
|
|
+ <div class="line"><span class="shense">{{d.tcDate?d.tcDate:"--"}}</span>
|
|
|
|
|
|
</div>
|
|
|
<%-- <div class="line"><span class="qianse">计划开工:</span><span class="shense">{{d.beginDate}}</span>--%>
|
|
@@ -913,58 +913,74 @@
|
|
|
param.orderBy = this.sort.field;
|
|
|
param.orderType = this.sort.type || null;
|
|
|
|
|
|
- App.postJson("/api/subInfo/query/all", param, function (res) {
|
|
|
+ // 表格分页数据
|
|
|
+ param.status = 3;
|
|
|
+ App.postJson("/api/subInfo/query/queryPage", param, function (res) {
|
|
|
self.dataList = res.rows;
|
|
|
- console.log(res.rows)
|
|
|
self.loadPage(res.total);
|
|
|
- self.loadTable(param);
|
|
|
+ self.loadTable();
|
|
|
});
|
|
|
|
|
|
- App.postJson("/api/subInfo/query/beginRate", param, function (res) {
|
|
|
+ // App.postJson("/api/subInfo/query/all", param, function (res) {
|
|
|
+ // self.dataList = res.rows;
|
|
|
+ // console.log(res.rows)
|
|
|
+ // self.loadPage(res.total);
|
|
|
+ // self.loadTable(param);
|
|
|
+ // });
|
|
|
+
|
|
|
+ // 统计数据
|
|
|
+ App.postJson("/api/subInfo/query/statistics", param, function (res) {
|
|
|
if (res.success) {
|
|
|
self.beginRate = res.data;
|
|
|
- res.data.yearAmtSj = (res.data.yearAmtSj ? res.data.yearAmtSj : 0);
|
|
|
- res.data.yearAmtAssign = (res.data.yearAmtAssign ? res.data.yearAmtAssign : 0);
|
|
|
- res.data.yearAmt = (res.data.yearAmt ? res.data.yearAmt : 0);
|
|
|
- self.beginRate.yearAmtSj = res.data.monthAmtSj
|
|
|
- self.beginRate.yearAmtAssign = res.data.monthAmtAssign
|
|
|
- self.beginRate.yearAmt = res.data.monthAmt
|
|
|
- self.beginRate.hyflList = self.beginRate.hyflData.split(";");
|
|
|
- self.beginRate.tzlxList = self.beginRate.tzlxData.split(";");
|
|
|
- self.beginRate.jsddList = self.beginRate.jsddData.split(";");
|
|
|
- // alert(JSON.stringify( self.beginRate.hyflList));
|
|
|
- if (res.data.total != 0) {
|
|
|
- self.beginRate.beginRate = (res.data.beginNum * 100 / res.data.total).toFixed(2);
|
|
|
- self.beginRate.endRate = (res.data.endNum * 100 / res.data.total).toFixed(2);
|
|
|
- } else {
|
|
|
- self.beginRate.beginRate = 0;
|
|
|
- self.beginRate.endRate = 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) + '%';
|
|
|
- } else {
|
|
|
- self.beginRate.noRate = "0%";
|
|
|
- self.beginRate.beginRate = "0%";
|
|
|
- self.beginRate.endRate = "0%";
|
|
|
- self.beginRate.stopRate = "0%";
|
|
|
- }
|
|
|
-
|
|
|
- } else {
|
|
|
- self.beginRate.beginRate = 0;
|
|
|
- self.beginRate.amtRate = 0;
|
|
|
- self.beginRate.endRate = 0;
|
|
|
+ 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;
|
|
|
+ // res.data.yearAmtSj = (res.data.yearAmtSj ? res.data.yearAmtSj : 0);
|
|
|
+ // res.data.yearAmtAssign = (res.data.yearAmtAssign ? res.data.yearAmtAssign : 0);
|
|
|
+ // res.data.yearAmt = (res.data.yearAmt ? res.data.yearAmt : 0);
|
|
|
+ // self.beginRate.yearAmtSj = res.data.monthAmtSj
|
|
|
+ // self.beginRate.yearAmtAssign = res.data.monthAmtAssign
|
|
|
+ // self.beginRate.yearAmt = res.data.monthAmt
|
|
|
+ // self.beginRate.hyflList = self.beginRate.hyflData.split(";");
|
|
|
+ // self.beginRate.tzlxList = self.beginRate.tzlxData.split(";");
|
|
|
+ // self.beginRate.jsddList = self.beginRate.jsddData.split(";");
|
|
|
+ // // alert(JSON.stringify( self.beginRate.hyflList));
|
|
|
+ // if (res.data.total != 0) {
|
|
|
+ // self.beginRate.beginRate = (res.data.beginNum * 100 / res.data.total).toFixed(2);
|
|
|
+ // self.beginRate.endRate = (res.data.endNum * 100 / res.data.total).toFixed(2);
|
|
|
+ // } else {
|
|
|
+ // self.beginRate.beginRate = 0;
|
|
|
+ // self.beginRate.endRate = 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) + '%';
|
|
|
+ // } else {
|
|
|
+ // self.beginRate.noRate = "0%";
|
|
|
+ // self.beginRate.beginRate = "0%";
|
|
|
+ // self.beginRate.endRate = "0%";
|
|
|
+ // self.beginRate.stopRate = "0%";
|
|
|
+ // }
|
|
|
+ //
|
|
|
+ // } else {
|
|
|
+ // self.beginRate.beginRate = 0;
|
|
|
+ // self.beginRate.amtRate = 0;
|
|
|
+ // self.beginRate.endRate = 0;
|
|
|
+ // }
|
|
|
+ // });
|
|
|
},
|
|
|
levelList: function (field, title, val) {
|
|
|
//详情
|
|
@@ -981,7 +997,7 @@
|
|
|
loadTable: function (params) {
|
|
|
for (var i = 0; i < this.dataList.length; i++) {
|
|
|
var tem = this.dataList[i];
|
|
|
- tem.queryYear = params.year;
|
|
|
+ // tem.queryYear = params.year;
|
|
|
switch (tem.status) {
|
|
|
case '0':
|
|
|
tem.statusName = '暂存';
|
|
@@ -1062,7 +1078,7 @@
|
|
|
// {field: 'mainName', title: '日常责任监管单位', minWidth: 100},
|
|
|
// {field: 'unitName', title: '项目单位', minWidth: 110},
|
|
|
// // { field: 'openLight', title: '开工红黄灯', minWidth: 150, templet: '#openLight' },
|
|
|
- {title: '操作', width: 180, toolbar: '#toolBar', fixed: 'right',},
|
|
|
+ {title: '操作', width: 180, toolbar: '#toolBar', fixed: 'right'},
|
|
|
]],
|
|
|
fixed: true,
|
|
|
height: window.screen.availHeight - 470,
|
|
@@ -1255,7 +1271,7 @@
|
|
|
type: 2,
|
|
|
title: "",
|
|
|
area: ['1000px', '800px'],
|
|
|
- content: App.getUrl("/subject/subInfo/detailView?layer=true&subId=" + obj.data.id + "&lastUrl=" + window.location.href + "&queryYear=" + obj.data.queryYear),
|
|
|
+ content: App.getUrl("/subject/subInfo/detailView2?layer=true&subId=" + obj.data.id + "&lastUrl=" + window.location.href + "&queryYear=" + obj.data.queryYear),
|
|
|
});
|
|
|
layui.layer.full(index);
|
|
|
},
|