|
@@ -45,7 +45,7 @@ layui.config({
|
|
|
{field:'xmsl',width:145,title:"结算书数量"},
|
|
|
{field:'cjsq',width:145,title: '创建时期'},
|
|
|
{field:'djr',width:130,title:'登记人'},
|
|
|
- {field:'op',align:'center',title:"操作",minWidth:400,maxWidth:600,templet:function(d){
|
|
|
+ {field:'op',align:'center',title:"操作",minWidth:600,maxWidth:800,templet:function(d){
|
|
|
////对操作进行初始化
|
|
|
var xml = "";
|
|
|
if(d.status==1){ //工程按钮
|
|
@@ -55,7 +55,9 @@ layui.config({
|
|
|
+"<a style='margin-top: 3px;' class='layui-btn layui-btn-xs layui-btn-danger' id=delPro"+d.id+" onclick=\"deleteProject('"+d.id+"')\">删除</a>"
|
|
|
// +"<br>"
|
|
|
+"<a style='margin-top: 3px;' class='layui-btn layui-btn-warm layui-btn-xs' lay-event=''href=\"${ctx}/project/exportone?id=" + d.id+"\">导出wbs工程</a>"
|
|
|
- +"<a style='margin-top: 3px;' class='layui-btn layui-btn-normal layui-btn-xs'onclick=\"withhold( '${ctx}/project/withholdform?id=" + d.id + "&tabId=1')\">诚信扣款</a><div>";
|
|
|
+ +"<a style='margin-top: 3px;' class='layui-btn layui-btn-normal layui-btn-xs'onclick=\"withhold( '${ctx}/project/withholdform?id=" + d.id + "&tabId=1')\">诚信扣款</a>"
|
|
|
+ +"<a style='margin-top: 3px;' class='layui-btn layui-btn-warm layui-btn-xs'onclick=\"materialOffset( '${ctx}/project/materialOffsetForm?id=" + d.id + "&tabId=1')\">甲供材抵扣</a>"
|
|
|
+ +"<a style='margin-top: 3px;' class='layui-btn layui-btn-warm layui-btn-xs'onclick=\"taxDeductions( '${ctx}/project/taxDeductionsForm?id=" + d.id + "&tabId=1')\">税额扣减</a></div>";
|
|
|
|
|
|
}
|
|
|
if(d.status==2){ //项目表头操作
|
|
@@ -217,7 +219,50 @@ function look(url) { //工程 查看
|
|
|
|
|
|
})
|
|
|
}
|
|
|
+ function materialOffset(url) { //甲供材扣抵
|
|
|
+ layer.open({
|
|
|
+ type: 2,
|
|
|
+ title: '甲供材扣抵',
|
|
|
+ area: ['70%', '90%'],
|
|
|
+ offset:['7%','14%'],
|
|
|
+ shade: 0.8,
|
|
|
+ shadeClose: true,
|
|
|
+ fixed: true, //不固定
|
|
|
+ maxmin: true,
|
|
|
+ content: url,//查看的路径
|
|
|
+ btn: ['确定','关闭'],
|
|
|
+ yes: function(index, layero){
|
|
|
+ var bodyparent = layer.getChildFrame('body', index); //获取子类页面body下内容
|
|
|
+ bodyparent.find('#updatebtn').click(); // 点击修改页面隐藏的按钮
|
|
|
+ }
|
|
|
+ ,btn2: function(index, layero){
|
|
|
+ layer.close(index);
|
|
|
+ }
|
|
|
+
|
|
|
+ })
|
|
|
+}
|
|
|
|
|
|
+ function taxDeductions(url) { //税金处理
|
|
|
+ layer.open({
|
|
|
+ type: 2,
|
|
|
+ title: '税金处理',
|
|
|
+ area: ['70%', '90%'],
|
|
|
+ offset:['7%','14%'],
|
|
|
+ shade: 0.8,
|
|
|
+ shadeClose: true,
|
|
|
+ fixed: true, //不固定
|
|
|
+ maxmin: true,
|
|
|
+ content: url,//查看的路径
|
|
|
+ btn: ['确定','关闭'],
|
|
|
+ yes: function(index, layero){
|
|
|
+ var bodyparent = layer.getChildFrame('body', index); //获取子类页面body下内容
|
|
|
+ bodyparent.find('#updatebtn').click(); // 点击修改页面隐藏的按钮
|
|
|
+ }
|
|
|
+ ,btn2: function(index, layero){
|
|
|
+ layer.close(index);
|
|
|
+ }
|
|
|
+ })
|
|
|
+}
|
|
|
function update(url) { //修改
|
|
|
layer.open({
|
|
|
type: 2,
|