|
@@ -20,7 +20,6 @@
|
|
|
treeDefaultClose: false,
|
|
|
treeLinkage: false,
|
|
|
elem: '#table1',
|
|
|
- <%--url: '${ctxp}/webpage/modules/sys/free/selfwbs.json',--%>
|
|
|
page: false,
|
|
|
cols: [[
|
|
|
{type:'numbers',title: '序号', rowspan: 2, totalRowText: "合计",},
|
|
@@ -32,7 +31,6 @@
|
|
|
{field:'fbfxtch',align:'center',title:'共性分摊费用',colspan:'10'},
|
|
|
|
|
|
{field:'hj',align:'center',width:120,title:'合计',rowspan:'2',totalRow: true}
|
|
|
-// {templet: '#oper-col', title: 'oper'}
|
|
|
],[
|
|
|
{field:'hjje', width:120,align:'center',title:'合计金额',totalRow: true},
|
|
|
{field:'zjgcf', width:120,align:'center',title:'直接工程费',totalRow: true},
|
|
@@ -57,7 +55,6 @@
|
|
|
{field:'qtf',align:'center',width:120,title:'其他费',totalRow: true},
|
|
|
{field:'gf',align:'center',width:120,title:'规费',totalRow: true},
|
|
|
{field:'sf',align:'center',width:120,title:'税金',totalRow: true},
|
|
|
- // {field:'gxfy',align:'center',width:120,title: '共性费用',rowspan:'2',totalRow: true},
|
|
|
]]
|
|
|
,data: [
|
|
|
<c:if test="${ not empty map.list}">
|
|
@@ -79,9 +76,6 @@
|
|
|
"cbrcg2": "${data.cbrCost}",
|
|
|
"fbrcg2":"${data.fbrCost}",
|
|
|
"jxf2": "${data.jxCost}",
|
|
|
-
|
|
|
- <%--"rgf3": "${data.rgFtFee}",--%>
|
|
|
- "rgf3": "<c:if test="${ empty data.rgFtFee and not empty data.originalTotalCost}">0.0</c:if><c:if test="${ not empty data.rgFtFee}">${data.rgFtFee}</c:if> ",
|
|
|
"cbrcg3": "<c:if test="${ empty data.cbrFtFee and not empty data.originalTotalCost}">0.0</c:if><c:if test="${ not empty data.cbrFtFee}">${data.cbrFtFee}</c:if>",
|
|
|
"fbrcg3": "<c:if test="${ empty data.fbrFtFee and not empty data.originalTotalCost}">0.0</c:if><c:if test="${ not empty data.fbrFtFee}">${data.fbrFtFee}</c:if>",
|
|
|
"jxf3": "<c:if test="${ empty data.jxFtFee and not empty data.originalTotalCost}">0.0</c:if><c:if test="${ not empty data.jxFtFee}">${data.jxFtFee}</c:if>",
|
|
@@ -108,8 +102,6 @@
|
|
|
|
|
|
renderTable1();
|
|
|
});
|
|
|
-</script>
|
|
|
-<script>
|
|
|
layui.use(['table', 'form', 'element', 'treetable'], function () {
|
|
|
var $ = layui.jquery;
|
|
|
var table = layui.table;
|
|
@@ -126,15 +118,14 @@ layui.use(['table', 'form', 'element', 'treetable'], function () {
|
|
|
treeIdName: 'd_id',
|
|
|
treePidName: 'd_pid',
|
|
|
elem: '#table2',
|
|
|
- <%--url: '${ctxp}/webpage/modules/sys/free/other.json',--%>
|
|
|
- page: false,
|
|
|
- cols: [[
|
|
|
- {type: 'numbers'},
|
|
|
- {field: 'wbsys', title: 'WBS要素'},
|
|
|
- {field: 'wbssbm', title: 'WBS识别码'},
|
|
|
- {field: 'money', title: '金额'},
|
|
|
- ]]
|
|
|
- ,data: [
|
|
|
+ page: false,
|
|
|
+ cols: [[
|
|
|
+ {type: 'numbers'},
|
|
|
+ {field: 'wbsys', title: 'WBS要素'},
|
|
|
+ {field: 'wbssbm', title: 'WBS识别码'},
|
|
|
+ {field: 'money', title: '金额'},
|
|
|
+ ]]
|
|
|
+ ,data: [
|
|
|
<c:if test="${ not empty map.list}">
|
|
|
<c:forEach items="${map.list}" var="data" varStatus="index">
|
|
|
<c:if test="${data.feeType eq '0'}">
|
|
@@ -149,60 +140,54 @@ layui.use(['table', 'form', 'element', 'treetable'], function () {
|
|
|
</c:if>
|
|
|
</c:forEach>
|
|
|
</c:if>
|
|
|
- ],
|
|
|
- done: function () {
|
|
|
- layer.closeAll('loading');
|
|
|
- }
|
|
|
- });
|
|
|
- };
|
|
|
+ ],
|
|
|
+ done: function () {
|
|
|
+ layer.closeAll('loading');
|
|
|
+ }
|
|
|
+ });
|
|
|
+ };
|
|
|
|
|
|
- renderTable2();
|
|
|
-});
|
|
|
-</script>
|
|
|
-<script>
|
|
|
-layui.use('table', function(){
|
|
|
- var table = layui.table;
|
|
|
-});
|
|
|
-</script>
|
|
|
-<script>
|
|
|
-layui.use('table', function(){
|
|
|
- var table = layui.table;
|
|
|
+ renderTable2();
|
|
|
+ });
|
|
|
+ layui.use('table', function(){
|
|
|
+ var table = layui.table;
|
|
|
+ });
|
|
|
+ layui.use('table', function(){
|
|
|
+ var table = layui.table;
|
|
|
|
|
|
- table.render({
|
|
|
- elem: '#xmmc'
|
|
|
- ,title: '未标识'
|
|
|
- ,cols: [[
|
|
|
- {field:'xmmc', width:200,title:'项目名称'}
|
|
|
- ,{field:'fyje', width:178,title:'费用金额'}
|
|
|
- ,{width:178, toolbar: '#barDemo',title:'操作'}
|
|
|
- ]]
|
|
|
- ,data:[
|
|
|
- <c:if test="${ not empty map.list}">
|
|
|
- <c:forEach items="${map.list2}" var="data" varStatus="index">
|
|
|
- {
|
|
|
- "id":"${data.id}",
|
|
|
- "xmmc": "${data.type}",
|
|
|
- "fyje": "${data.fee}"
|
|
|
- },
|
|
|
- </c:forEach>
|
|
|
- </c:if>
|
|
|
- ]
|
|
|
- ,page: false
|
|
|
- });
|
|
|
- //监听工具条
|
|
|
- table.on('tool(freestr)', function(obj){
|
|
|
- var datacount="";
|
|
|
- var data = obj.data;
|
|
|
- if(obj.event === 'fttz'){
|
|
|
- sureradio(data);
|
|
|
- } else if(obj.event === 'ddtz'){
|
|
|
- sureradio2(data,'${ctx}/jkxl/getft?id='+data.id);
|
|
|
- }
|
|
|
- // alert(datacount);
|
|
|
- });
|
|
|
-});
|
|
|
-</script>
|
|
|
-<script>
|
|
|
+ table.render({
|
|
|
+ elem: '#xmmc'
|
|
|
+ ,title: '未标识'
|
|
|
+ ,cols: [[
|
|
|
+ {field:'xmmc', width:200,title:'项目名称'}
|
|
|
+ ,{field:'fyje', width:178,title:'费用金额'}
|
|
|
+ ,{width:178, toolbar: '#barDemo',title:'操作'}
|
|
|
+ ]]
|
|
|
+ ,data:[
|
|
|
+ <c:if test="${ not empty map.list}">
|
|
|
+ <c:forEach items="${map.list2}" var="data" varStatus="index">
|
|
|
+ {
|
|
|
+ "id":"${data.id}",
|
|
|
+ "xmmc": "${data.type}",
|
|
|
+ "fyje": "${data.fee}"
|
|
|
+ },
|
|
|
+ </c:forEach>
|
|
|
+ </c:if>
|
|
|
+ ]
|
|
|
+ ,page: false
|
|
|
+ });
|
|
|
+ //监听工具条
|
|
|
+ table.on('tool(freestr)', function(obj){
|
|
|
+ var datacount="";
|
|
|
+ var data = obj.data;
|
|
|
+ if(obj.event === 'fttz'){
|
|
|
+ sureradio(data);
|
|
|
+ } else if(obj.event === 'ddtz'){
|
|
|
+ sureradio2(data,'${ctx}/jkxl/getft?id='+data.id);
|
|
|
+ }
|
|
|
+ // alert(datacount);
|
|
|
+ });
|
|
|
+ });
|
|
|
function sureradio2(data,url){
|
|
|
var newid = data.id;
|
|
|
var xmmc = data.xmmc;
|
|
@@ -219,22 +204,18 @@ function sureradio2(data,url){
|
|
|
shade: 0.8,
|
|
|
maxmin: true,
|
|
|
shadeClose: true,
|
|
|
- <%--content: '${ctxp}/webpage/modules/sg/free/alongst.jsp'--%>
|
|
|
- content: url
|
|
|
- , btn: ['确定','关闭']
|
|
|
+ content: url
|
|
|
+ , btn: ['确定','关闭']
|
|
|
,yes: function(index, layero){
|
|
|
var bodyparent = layer.getChildFrame('body', index);
|
|
|
bodyparent.find('#freenl').click();
|
|
|
}
|
|
|
,btn2: function(index, layero){
|
|
|
-// alert(layero);
|
|
|
layer.close(index);
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
}
|
|
|
-</script>
|
|
|
-<script>
|
|
|
function sureradio(data,target){
|
|
|
var newid = data.id;
|
|
|
var xmmc = data.xmmc;
|
|
@@ -272,8 +253,6 @@ function sureradio2(data,url){
|
|
|
})
|
|
|
})
|
|
|
}
|
|
|
-</script>
|
|
|
-<script>
|
|
|
layui.use('table', function(){
|
|
|
var table = layui.table;
|
|
|
table.render({
|