|
@@ -471,12 +471,55 @@
|
|
cancel: function(index){
|
|
cancel: function(index){
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
+ }
|
|
|
|
+ function formSubmit2($document,inputForm,index){
|
|
|
|
+ var validateForm = $($document.getElementById(inputForm)).validate({
|
|
|
|
+ submitHandler: function(form){
|
|
|
|
+ loading('正在提交,请稍等...');
|
|
|
|
+ form.submit();
|
|
|
|
+ },
|
|
|
|
+ errorContainer: "#messageBox",
|
|
|
|
+ errorPlacement: function(error, element) {
|
|
|
|
+ $($document.getElementById("#messageBox")).text("输入有误,请先更正。");
|
|
|
|
+ if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
|
|
|
|
+ error.appendTo(element.parent().parent());
|
|
|
|
+ } else {
|
|
|
|
+ error.insertAfter(element);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ if(validateForm.form()){
|
|
|
|
+ $($document.getElementById(inputForm)).ajaxSubmit({
|
|
|
|
+ success:function(data) {
|
|
|
|
+ var d = data;
|
|
|
|
+ if(d.msg == "false"){
|
|
|
|
+ parent.layer.msg("保存客户信息异常!",{icon:2});
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ addRow('#workClientLinkmanList', workClientLinkmanRowIdx, workClientLinkmanTpl);
|
|
|
|
+ workClientLinkmanRowIdx = workClientLinkmanRowIdx + 1;
|
|
|
|
+ var row = workClientLinkmanRowIdx - 1 ;
|
|
|
|
|
|
|
|
+ $("#"+"workClientLinkmanList"+row+"_id").val(d.id);
|
|
|
|
+ $("#"+"workClientLinkmanList"+row+"_clientId_id").val(d.clientId);
|
|
|
|
+ $("#"+"workClientLinkmanList"+row+"_clientName").val(d.clientName);
|
|
|
|
+ $("#"+"workClientLinkmanList"+row+"_uscCode").val(d.uscCode);
|
|
|
|
+ $("#"+"workClientLinkmanList"+row+"_name").val(d.linkName);
|
|
|
|
+ $("#"+"workClientLinkmanList"+row+"_linkMobile").val(d.linkMobile);
|
|
|
|
+ $("#"+"workClientLinkmanList"+row+"_linkPhone").val(d.linkPhone)
|
|
|
|
+ if(isMasterClient){
|
|
|
|
+ $("#contractClientName").val(d.clientName);
|
|
|
|
+ isMasterClient = false;
|
|
|
|
+ }
|
|
|
|
+ /*parent.layer.msg(d.str,{icon:1});*/
|
|
|
|
+ top.layer.close(index)
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
}
|
|
}
|
|
-
|
|
|
|
- /*设计类型*/
|
|
|
|
- function openBuild(title,url,width,height,target,formId){
|
|
|
|
|
|
+ /*委托类型*/
|
|
|
|
+ function openClient(title,url,width,height,target,formId){
|
|
var frameIndex = parent.layer.getFrameIndex(window.name);
|
|
var frameIndex = parent.layer.getFrameIndex(window.name);
|
|
var urls = url+"&index="+frameIndex;
|
|
var urls = url+"&index="+frameIndex;
|
|
if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端,就使用自适应大小弹窗
|
|
if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端,就使用自适应大小弹窗
|
|
@@ -505,10 +548,10 @@
|
|
}
|
|
}
|
|
inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
/*inputForm.attr("action","${ctx}/project/projectRecords/linkManSave");*///表单提交成功后,从服务器返回的url在当前tab中展示
|
|
/*inputForm.attr("action","${ctx}/project/projectRecords/linkManSave");*///表单提交成功后,从服务器返回的url在当前tab中展示
|
|
- inputForm.attr("action","${ctx}/workclientinfo/workClientInfo/save")
|
|
|
|
|
|
+ inputForm.attr("action","${ctx}/workclientinfo/workClientInfo/saveType")
|
|
var $document = iframeWin.contentWindow.document;
|
|
var $document = iframeWin.contentWindow.document;
|
|
|
|
|
|
- formSubmit2($document,formId,index);
|
|
|
|
|
|
+ formClient($document,formId,index);
|
|
|
|
|
|
},
|
|
},
|
|
cancel: function(index){
|
|
cancel: function(index){
|
|
@@ -517,8 +560,7 @@
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
- function formSubmit2($document,inputForm,index){
|
|
|
|
|
|
+ function formClient($document,inputForm,index){
|
|
var validateForm = $($document.getElementById(inputForm)).validate({
|
|
var validateForm = $($document.getElementById(inputForm)).validate({
|
|
submitHandler: function(form){
|
|
submitHandler: function(form){
|
|
loading('正在提交,请稍等...');
|
|
loading('正在提交,请稍等...');
|
|
@@ -542,7 +584,7 @@
|
|
parent.layer.msg("保存客户信息异常!",{icon:2});
|
|
parent.layer.msg("保存客户信息异常!",{icon:2});
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
- console.log("-------集合"+d);
|
|
|
|
|
|
+
|
|
addRow('#workClientLinkmanList', workClientLinkmanRowIdx, workClientLinkmanTpl);
|
|
addRow('#workClientLinkmanList', workClientLinkmanRowIdx, workClientLinkmanTpl);
|
|
workClientLinkmanRowIdx = workClientLinkmanRowIdx + 1;
|
|
workClientLinkmanRowIdx = workClientLinkmanRowIdx + 1;
|
|
var row = workClientLinkmanRowIdx - 1 ;
|
|
var row = workClientLinkmanRowIdx - 1 ;
|
|
@@ -550,6 +592,7 @@
|
|
$("#"+"workClientLinkmanList"+row+"_id").val(d.id);
|
|
$("#"+"workClientLinkmanList"+row+"_id").val(d.id);
|
|
$("#"+"workClientLinkmanList"+row+"_clientId_id").val(d.clientId);
|
|
$("#"+"workClientLinkmanList"+row+"_clientId_id").val(d.clientId);
|
|
$("#"+"workClientLinkmanList"+row+"_clientName").val(d.clientName);
|
|
$("#"+"workClientLinkmanList"+row+"_clientName").val(d.clientName);
|
|
|
|
+ $("#"+"workClientLinkmanList"+row+"_cuscCode").val(d.uscCode);
|
|
$("#"+"workClientLinkmanList"+row+"_name").val(d.linkName);
|
|
$("#"+"workClientLinkmanList"+row+"_name").val(d.linkName);
|
|
$("#"+"workClientLinkmanList"+row+"_linkMobile").val(d.linkMobile);
|
|
$("#"+"workClientLinkmanList"+row+"_linkMobile").val(d.linkMobile);
|
|
$("#"+"workClientLinkmanList"+row+"_linkPhone").val(d.linkPhone)
|
|
$("#"+"workClientLinkmanList"+row+"_linkPhone").val(d.linkPhone)
|
|
@@ -557,12 +600,378 @@
|
|
$("#contractClientName").val(d.clientName);
|
|
$("#contractClientName").val(d.clientName);
|
|
isMasterClient = false;
|
|
isMasterClient = false;
|
|
}
|
|
}
|
|
- parent.layer.msg(d.str,{icon:1});
|
|
|
|
|
|
+ /*parent.layer.msg(d.str,{icon:1});*/
|
|
top.layer.close(index)
|
|
top.layer.close(index)
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /*建设类型*/
|
|
|
|
+ function openBuild(title,url,width,height,target,formId){
|
|
|
|
+ var frameIndex = parent.layer.getFrameIndex(window.name);
|
|
|
|
+ var urls = url+"&index="+frameIndex;
|
|
|
|
+ if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端,就使用自适应大小弹窗
|
|
|
|
+ width='auto';
|
|
|
|
+ height='auto';
|
|
|
|
+ }else{//如果是PC端,根据用户设置的width和height显示。
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ top.layer.open({
|
|
|
|
+ type: 2,
|
|
|
|
+ area: [width, height],
|
|
|
|
+ title: title,
|
|
|
|
+ skin:"two-btns",
|
|
|
|
+ maxmin: false, //开启最大化最小化按钮
|
|
|
|
+ content: urls ,
|
|
|
|
+ btn: ['确定','关闭'],
|
|
|
|
+ yes: function(index, layero){
|
|
|
|
+ var body = top.layer.getChildFrame('body', index);
|
|
|
|
+ var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
|
|
|
|
+ var inputForm = body.find('#inputForm');
|
|
|
|
+ var top_iframe;
|
|
|
|
+ if(target){
|
|
|
|
+ top_iframe = target;//如果指定了iframe,则在改frame中跳转
|
|
|
|
+ }else{
|
|
|
|
+ top_iframe = top.getActiveTab().attr("name");//获取当前active的tab的iframe
|
|
|
|
+ }
|
|
|
|
+ inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
|
+ /*inputForm.attr("action","${ctx}/project/projectRecords/linkManSave");*///表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
|
+ inputForm.attr("action","${ctx}/workclientinfo/workClientInfo/saveType")
|
|
|
|
+ var $document = iframeWin.contentWindow.document;
|
|
|
|
+
|
|
|
|
+ formBuild($document,formId,index);
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ cancel: function(index){
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ function formBuild($document,inputForm,index){
|
|
|
|
+ var validateForm = $($document.getElementById(inputForm)).validate({
|
|
|
|
+ submitHandler: function(form){
|
|
|
|
+ loading('正在提交,请稍等...');
|
|
|
|
+ form.submit();
|
|
|
|
+ },
|
|
|
|
+ errorContainer: "#messageBox",
|
|
|
|
+ errorPlacement: function(error, element) {
|
|
|
|
+ $($document.getElementById("#messageBox")).text("输入有误,请先更正。");
|
|
|
|
+ if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
|
|
|
|
+ error.appendTo(element.parent().parent());
|
|
|
|
+ } else {
|
|
|
|
+ error.insertAfter(element);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ if(validateForm.form()){
|
|
|
|
+ $($document.getElementById(inputForm)).ajaxSubmit({
|
|
|
|
+ success:function(data) {
|
|
|
|
+ var d = data;
|
|
|
|
+ if(d.msg == "false"){
|
|
|
|
+ parent.layer.msg("保存客户信息异常!",{icon:2});
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ addRow('#workBuildLinkmanList', workBuildLinkmanRowIdx, workBuildLinkmanTpl);
|
|
|
|
+ workConstructionLinkmanRowIdx = workConstructionLinkmanRowIdx + 1;
|
|
|
|
+ var row = workConstructionLinkmanRowIdx - 1 ;
|
|
|
|
+
|
|
|
|
+ $("#"+"workBuildLinkmanList"+row+"_id").val(d.id);
|
|
|
|
+ $("#"+"workBuildLinkmanList"+row+"_cid").val(d.clientId);
|
|
|
|
+ $("#"+"workBuildLinkmanList"+row+"_cname").val(d.clientName);
|
|
|
|
+ $("#"+"workBuildLinkmanList"+row+"_cuscCode").val(d.uscCode);
|
|
|
|
+ $("#"+"workBuildLinkmanList"+row+"_name").val(d.linkName);
|
|
|
|
+ $("#"+"workBuildLinkmanList"+row+"_linkMobile").val(d.linkMobile);
|
|
|
|
+ $("#"+"workBuildLinkmanList"+row+"_linkPhone").val(d.linkPhone);
|
|
|
|
+ if(isMasterClient){
|
|
|
|
+ $("#contractClientName").val(d.clientName);
|
|
|
|
+ isMasterClient = false;
|
|
|
|
+ }
|
|
|
|
+ /*parent.layer.msg(d.str,{icon:1});*/
|
|
|
|
+ top.layer.close(index)
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /*施工类型*/
|
|
|
|
+ function openConstruction(title,url,width,height,target,formId){
|
|
|
|
+ var frameIndex = parent.layer.getFrameIndex(window.name);
|
|
|
|
+ var urls = url+"&index="+frameIndex;
|
|
|
|
+ if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端,就使用自适应大小弹窗
|
|
|
|
+ width='auto';
|
|
|
|
+ height='auto';
|
|
|
|
+ }else{//如果是PC端,根据用户设置的width和height显示。
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ top.layer.open({
|
|
|
|
+ type: 2,
|
|
|
|
+ area: [width, height],
|
|
|
|
+ title: title,
|
|
|
|
+ skin:"two-btns",
|
|
|
|
+ maxmin: false, //开启最大化最小化按钮
|
|
|
|
+ content: urls ,
|
|
|
|
+ btn: ['确定','关闭'],
|
|
|
|
+ yes: function(index, layero){
|
|
|
|
+ var body = top.layer.getChildFrame('body', index);
|
|
|
|
+ var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
|
|
|
|
+ var inputForm = body.find('#inputForm');
|
|
|
|
+ var top_iframe;
|
|
|
|
+ if(target){
|
|
|
|
+ top_iframe = target;//如果指定了iframe,则在改frame中跳转
|
|
|
|
+ }else{
|
|
|
|
+ top_iframe = top.getActiveTab().attr("name");//获取当前active的tab的iframe
|
|
|
|
+ }
|
|
|
|
+ inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
|
+ /*inputForm.attr("action","${ctx}/project/projectRecords/linkManSave");*///表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
|
+ inputForm.attr("action","${ctx}/workclientinfo/workClientInfo/saveType")
|
|
|
|
+ var $document = iframeWin.contentWindow.document;
|
|
|
|
+
|
|
|
|
+ formConstruction($document,formId,index);
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ cancel: function(index){
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ function formConstruction($document,inputForm,index){
|
|
|
|
+ var validateForm = $($document.getElementById(inputForm)).validate({
|
|
|
|
+ submitHandler: function(form){
|
|
|
|
+ loading('正在提交,请稍等...');
|
|
|
|
+ form.submit();
|
|
|
|
+ },
|
|
|
|
+ errorContainer: "#messageBox",
|
|
|
|
+ errorPlacement: function(error, element) {
|
|
|
|
+ $($document.getElementById("#messageBox")).text("输入有误,请先更正。");
|
|
|
|
+ if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
|
|
|
|
+ error.appendTo(element.parent().parent());
|
|
|
|
+ } else {
|
|
|
|
+ error.insertAfter(element);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ if(validateForm.form()){
|
|
|
|
+ $($document.getElementById(inputForm)).ajaxSubmit({
|
|
|
|
+ success:function(data) {
|
|
|
|
+ var d = data;
|
|
|
|
+ if(d.msg == "false"){
|
|
|
|
+ parent.layer.msg("保存客户信息异常!",{icon:2});
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ addRow('#workConstructionLinkmanList', workConstructionLinkmanRowIdx, workConstructionLinkmanTpl);
|
|
|
|
+ workConstructionLinkmanRowIdx = workConstructionLinkmanRowIdx + 1;
|
|
|
|
+ var row = workConstructionLinkmanRowIdx - 1 ;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ $("#"+"workConstructionLinkmanList"+row+"_id").val(d.id);
|
|
|
|
+ $("#"+"workConstructionLinkmanList"+row+"_cid").val(d.clientId);
|
|
|
|
+ $("#"+"workConstructionLinkmanList"+row+"_cname").val(d.clientName);
|
|
|
|
+ $("#"+"workConstructionLinkmanList"+row+"_cuscCode").val(d.uscCode);
|
|
|
|
+ $("#"+"workConstructionLinkmanList"+row+"_name").val(d.linkName);
|
|
|
|
+ $("#"+"workConstructionLinkmanList"+row+"_linkMobile").val(d.linkMobile);
|
|
|
|
+ $("#"+"workConstructionLinkmanList"+row+"_linkPhone").val(d.linkPhone);
|
|
|
|
+ if(isMasterClient){
|
|
|
|
+ $("#contractClientName").val(d.clientName);
|
|
|
|
+ isMasterClient = false;
|
|
|
|
+ }
|
|
|
|
+ /*parent.layer.msg(d.str,{icon:1});*/
|
|
|
|
+ top.layer.close(index)
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /*监理类型*/
|
|
|
|
+ function openSuper(title,url,width,height,target,formId){
|
|
|
|
+ var frameIndex = parent.layer.getFrameIndex(window.name);
|
|
|
|
+ var urls = url+"&index="+frameIndex;
|
|
|
|
+ if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端,就使用自适应大小弹窗
|
|
|
|
+ width='auto';
|
|
|
|
+ height='auto';
|
|
|
|
+ }else{//如果是PC端,根据用户设置的width和height显示。
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ top.layer.open({
|
|
|
|
+ type: 2,
|
|
|
|
+ area: [width, height],
|
|
|
|
+ title: title,
|
|
|
|
+ skin:"two-btns",
|
|
|
|
+ maxmin: false, //开启最大化最小化按钮
|
|
|
|
+ content: urls ,
|
|
|
|
+ btn: ['确定','关闭'],
|
|
|
|
+ yes: function(index, layero){
|
|
|
|
+ var body = top.layer.getChildFrame('body', index);
|
|
|
|
+ var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
|
|
|
|
+ var inputForm = body.find('#inputForm');
|
|
|
|
+ var top_iframe;
|
|
|
|
+ if(target){
|
|
|
|
+ top_iframe = target;//如果指定了iframe,则在改frame中跳转
|
|
|
|
+ }else{
|
|
|
|
+ top_iframe = top.getActiveTab().attr("name");//获取当前active的tab的iframe
|
|
|
|
+ }
|
|
|
|
+ inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
|
+ /*inputForm.attr("action","${ctx}/project/projectRecords/linkManSave");*///表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
|
+ inputForm.attr("action","${ctx}/workclientinfo/workClientInfo/saveType")
|
|
|
|
+ var $document = iframeWin.contentWindow.document;
|
|
|
|
+
|
|
|
|
+ formSuper($document,formId,index);
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ cancel: function(index){
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ function formSuper($document,inputForm,index){
|
|
|
|
+ var validateForm = $($document.getElementById(inputForm)).validate({
|
|
|
|
+ submitHandler: function(form){
|
|
|
|
+ loading('正在提交,请稍等...');
|
|
|
|
+ form.submit();
|
|
|
|
+ },
|
|
|
|
+ errorContainer: "#messageBox",
|
|
|
|
+ errorPlacement: function(error, element) {
|
|
|
|
+ $($document.getElementById("#messageBox")).text("输入有误,请先更正。");
|
|
|
|
+ if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
|
|
|
|
+ error.appendTo(element.parent().parent());
|
|
|
|
+ } else {
|
|
|
|
+ error.insertAfter(element);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ if(validateForm.form()){
|
|
|
|
+ $($document.getElementById(inputForm)).ajaxSubmit({
|
|
|
|
+ success:function(data) {
|
|
|
|
+ var d = data;
|
|
|
|
+ if(d.msg == "false"){
|
|
|
|
+ parent.layer.msg("保存客户信息异常!",{icon:2});
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ addRow('#workSuperLinkmanList', workSuperLinkmanRowIdx, workSuperLinkmanTpl);
|
|
|
|
+ workSuperLinkmanRowIdx = workSuperLinkmanRowIdx + 1;
|
|
|
|
+ var row = workSuperLinkmanRowIdx - 1 ;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ $("#"+"workSuperLinkmanList"+row+"_id").val(d.id);
|
|
|
|
+ $("#"+"workSuperLinkmanList"+row+"_cid").val(d.clientId);
|
|
|
|
+ $("#"+"workSuperLinkmanList"+row+"_cname").val(d.clientName);
|
|
|
|
+ $("#"+"workSuperLinkmanList"+row+"_cuscCode").val(d.uscCode);
|
|
|
|
+ $("#"+"workSuperLinkmanList"+row+"_name").val(d.linkName);
|
|
|
|
+ $("#"+"workSuperLinkmanList"+row+"_linkMobile").val(d.linkMobile);
|
|
|
|
+ $("#"+"workSuperLinkmanList"+row+"_linkPhone").val(d.linkPhone);
|
|
|
|
+ if(isMasterClient){
|
|
|
|
+ $("#contractClientName").val(d.clientName);
|
|
|
|
+ isMasterClient = false;
|
|
|
|
+ }
|
|
|
|
+ /*parent.layer.msg(d.str,{icon:1});*/
|
|
|
|
+ top.layer.close(index)
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /*设计类型*/
|
|
|
|
+ function openDesign(title,url,width,height,target,formId){
|
|
|
|
+ var frameIndex = parent.layer.getFrameIndex(window.name);
|
|
|
|
+ var urls = url+"&index="+frameIndex;
|
|
|
|
+ if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端,就使用自适应大小弹窗
|
|
|
|
+ width='auto';
|
|
|
|
+ height='auto';
|
|
|
|
+ }else{//如果是PC端,根据用户设置的width和height显示。
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ top.layer.open({
|
|
|
|
+ type: 2,
|
|
|
|
+ area: [width, height],
|
|
|
|
+ title: title,
|
|
|
|
+ skin:"two-btns",
|
|
|
|
+ maxmin: false, //开启最大化最小化按钮
|
|
|
|
+ content: urls ,
|
|
|
|
+ btn: ['确定','关闭'],
|
|
|
|
+ yes: function(index, layero){
|
|
|
|
+ var body = top.layer.getChildFrame('body', index);
|
|
|
|
+ var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
|
|
|
|
+ var inputForm = body.find('#inputForm');
|
|
|
|
+ var top_iframe;
|
|
|
|
+ if(target){
|
|
|
|
+ top_iframe = target;//如果指定了iframe,则在改frame中跳转
|
|
|
|
+ }else{
|
|
|
|
+ top_iframe = top.getActiveTab().attr("name");//获取当前active的tab的iframe
|
|
|
|
+ }
|
|
|
|
+ inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
|
+ /*inputForm.attr("action","${ctx}/project/projectRecords/linkManSave");*///表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
|
+ inputForm.attr("action","${ctx}/workclientinfo/workClientInfo/saveType")
|
|
|
|
+ var $document = iframeWin.contentWindow.document;
|
|
|
|
+
|
|
|
|
+ formDesign($document,formId,index);
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ cancel: function(index){
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ function formDesign($document,inputForm,index){
|
|
|
|
+ var validateForm = $($document.getElementById(inputForm)).validate({
|
|
|
|
+ submitHandler: function(form){
|
|
|
|
+ loading('正在提交,请稍等...');
|
|
|
|
+ form.submit();
|
|
|
|
+ },
|
|
|
|
+ errorContainer: "#messageBox",
|
|
|
|
+ errorPlacement: function(error, element) {
|
|
|
|
+ $($document.getElementById("#messageBox")).text("输入有误,请先更正。");
|
|
|
|
+ if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
|
|
|
|
+ error.appendTo(element.parent().parent());
|
|
|
|
+ } else {
|
|
|
|
+ error.insertAfter(element);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ if(validateForm.form()){
|
|
|
|
+ $($document.getElementById(inputForm)).ajaxSubmit({
|
|
|
|
+ success:function(data) {
|
|
|
|
+ var d = data;
|
|
|
|
+ if(d.msg == "false"){
|
|
|
|
+ parent.layer.msg("保存客户信息异常!",{icon:2});
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ addRow('#workDesignLinkmanList', workDesignLinkmanRowIdx, workDesignLinkmanTpl);
|
|
|
|
+ workDesignLinkmanRowIdx = workDesignLinkmanRowIdx + 1;
|
|
|
|
+ var row = workDesignLinkmanRowIdx - 1 ;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ $("#"+"workDesignLinkmanList"+row+"_id").val(d.id);
|
|
|
|
+ $("#"+"workDesignLinkmanList"+row+"_cid").val(d.clientId);
|
|
|
|
+ $("#"+"workDesignLinkmanList"+row+"_cname").val(d.clientName);
|
|
|
|
+ $("#"+"workDesignLinkmanList"+row+"_cuscCode").val(d.uscCode);
|
|
|
|
+ $("#"+"workDesignLinkmanList"+row+"_name").val(d.linkName);
|
|
|
|
+ $("#"+"workDesignLinkmanList"+row+"_linkMobile").val(d.linkMobile);
|
|
|
|
+ $("#"+"workDesignLinkmanList"+row+"_linkPhone").val(d.linkPhone);
|
|
|
|
+ if(isMasterClient){
|
|
|
|
+ $("#contractClientName").val(d.clientName);
|
|
|
|
+ isMasterClient = false;
|
|
|
|
+ }
|
|
|
|
+ /*parent.layer.msg(d.str,{icon:1});*/
|
|
|
|
+ top.layer.close(index)
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
</script>
|
|
</script>
|
|
</head>
|
|
</head>
|
|
<body>
|
|
<body>
|
|
@@ -646,30 +1055,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <%--<div class="layui-item layui-col-sm6 lw7">--%>
|
|
|
|
- <%--<label class="layui-form-label">规模类型:</label>--%>
|
|
|
|
- <%--<div class="layui-input-block">--%>
|
|
|
|
- <%--<form:select path="scaleType" class="form-control editable-select layui-input" id="scaleType" value="${scaleType}">--%>
|
|
|
|
- <%--<form:option value=""/>--%>
|
|
|
|
- <%--<form:options items="${fns:getMainDictList('scale_type')}" itemLabel="label" itemValue="label" htmlEscape="false"/>--%>
|
|
|
|
- <%--</form:select>--%>
|
|
|
|
- <%--</div>--%>
|
|
|
|
- <%--</div>--%>
|
|
|
|
- <%--<div class="layui-item layui-col-sm6 lw7">--%>
|
|
|
|
- <%--<label class="layui-form-label">规模单位:</label>--%>
|
|
|
|
- <%--<div class="layui-input-block">--%>
|
|
|
|
- <%--<form:select path="scaleUnit" class="form-control editable-select layui-input" id="scaleUnit" value="${scaleUnit}">--%>
|
|
|
|
- <%--<form:option value=""/>--%>
|
|
|
|
- <%--<form:options items="${fns:getMainDictList('scale_unit')}" itemLabel="label" itemValue="label" htmlEscape="false"/>--%>
|
|
|
|
- <%--</form:select>--%>
|
|
|
|
- <%--</div>--%>
|
|
|
|
- <%--</div>--%>
|
|
|
|
- <%--<div class="layui-item layui-col-sm6 lw7">--%>
|
|
|
|
- <%--<label class="layui-form-label">规模数量:</label>--%>
|
|
|
|
- <%--<div class="layui-input-block">--%>
|
|
|
|
- <%--<form:input path="scaleQuantity" htmlEscape="false" class="form-control number layui-input"/>--%>
|
|
|
|
- <%--</div>--%>
|
|
|
|
- <%--</div>--%>
|
|
|
|
|
|
+
|
|
<div class="layui-item layui-col-sm6 lw7">
|
|
<div class="layui-item layui-col-sm6 lw7">
|
|
<label class="layui-form-label"><span class="require-item">*</span>项目所在地:</label>
|
|
<label class="layui-form-label"><span class="require-item">*</span>项目所在地:</label>
|
|
<div class="layui-input-block with-icon">
|
|
<div class="layui-input-block with-icon">
|
|
@@ -860,7 +1246,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="layui-item nav-btns" style="float: left;">
|
|
<div class="layui-item nav-btns" style="float: left;">
|
|
<a href="javascript:void(0)"
|
|
<a href="javascript:void(0)"
|
|
- onclick="openBuild('新增客户管理', '${ctx}/workclientinfo/workClientInfo/formType?param=1','95%','95%',false,'inputForm')"
|
|
|
|
|
|
+ onclick="openClient('新增客户管理', '${ctx}/workclientinfo/workClientInfo/formType?param=1','95%','95%',false,'inputForm')"
|
|
class="nav-btn nav-btn-add"><i class="fa fa-plus"></i> 新增委托方</a>
|
|
class="nav-btn nav-btn-add"><i class="fa fa-plus"></i> 新增委托方</a>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -869,12 +1255,12 @@
|
|
<thead>
|
|
<thead>
|
|
<tr>
|
|
<tr>
|
|
<th class="hide"></th>
|
|
<th class="hide"></th>
|
|
- <th width="20%"><font color="red">*</font>委托方</th>
|
|
|
|
- <th width="20%">统一社会信用代码</th>
|
|
|
|
- <th width="20%">联系人姓名</th>
|
|
|
|
- <th width="20%">联系方式1</th>
|
|
|
|
- <th width="20%">联系方式2</th>
|
|
|
|
- <th width="20%">操作</th>
|
|
|
|
|
|
+ <th width="17%"><font color="red">*</font>委托方</th>
|
|
|
|
+ <th width="17%">统一社会信用代码</th>
|
|
|
|
+ <th width="17%">联系人姓名</th>
|
|
|
|
+ <th width="17%">联系方式1</th>
|
|
|
|
+ <th width="17%">联系方式2</th>
|
|
|
|
+ <th width="17%">操作</th>
|
|
</tr>
|
|
</tr>
|
|
</thead>
|
|
</thead>
|
|
<tbody id="workClientLinkmanList">
|
|
<tbody id="workClientLinkmanList">
|
|
@@ -888,21 +1274,21 @@
|
|
<input id="workClientLinkmanList{{idx}}_delFlag" name="workClientLinkmanList[{{idx}}].delFlag" type="hidden" value="0"/>
|
|
<input id="workClientLinkmanList{{idx}}_delFlag" name="workClientLinkmanList[{{idx}}].delFlag" type="hidden" value="0"/>
|
|
</td>
|
|
</td>
|
|
<td>
|
|
<td>
|
|
- <input readonly="true" id="workClientLinkmanList{{idx}}_clientName" name="workClientLinkmanList[{{idx}}].clientId.name" type="text" value="{{row.clientId.name}}" class="form-control "/>
|
|
|
|
|
|
+ <input style="text-align:center" readonly="true" id="workClientLinkmanList{{idx}}_clientName" name="workClientLinkmanList[{{idx}}].clientId.name" type="text" value="{{row.clientId.name}}" class="form-control "/>
|
|
</td>
|
|
</td>
|
|
<td>
|
|
<td>
|
|
- <input readonly="true" id="workClientLinkmanList{{idx}}_uscCode" name="workClientLinkmanList[{{idx}}].uscCode" type="text" value="{{row.uscCode}}" class="form-control "/>
|
|
|
|
|
|
+ <input style="text-align:center" readonly="true" id="workClientLinkmanList{{idx}}_uscCode" name="workClientLinkmanList[{{idx}}].uscCode" type="text" value="{{row.uscCode}}" class="form-control "/>
|
|
</td>
|
|
</td>
|
|
|
|
|
|
<td>
|
|
<td>
|
|
- <input readonly="true" id="workClientLinkmanList{{idx}}_name" name="workClientLinkmanList[{{idx}}].name" type="text" value="{{row.name}}" class="form-control required"/>
|
|
|
|
|
|
+ <input style="text-align:center" readonly="true" id="workClientLinkmanList{{idx}}_name" name="workClientLinkmanList[{{idx}}].name" type="text" value="{{row.name}}" class="form-control required"/>
|
|
</td>
|
|
</td>
|
|
|
|
|
|
<td>
|
|
<td>
|
|
- <input readonly="true" id="workClientLinkmanList{{idx}}_linkPhone" name="workClientLinkmanList[{{idx}}].linkPhone" type="text" value="{{row.linkPhone}}" class="form-control isTel"/>
|
|
|
|
|
|
+ <input style="text-align:center" readonly="true" id="workClientLinkmanList{{idx}}_linkPhone" name="workClientLinkmanList[{{idx}}].linkPhone" type="text" value="{{row.linkPhone}}" class="form-control isTel"/>
|
|
</td>
|
|
</td>
|
|
<td>
|
|
<td>
|
|
- <input readonly="true" id="workClientLinkmanList{{idx}}_linkMobile" name="workClientLinkmanList[{{idx}}].linkMobile" type="text" value="{{row.linkMobile}}" class="form-control isPhone"/>
|
|
|
|
|
|
+ <input style="text-align:center" readonly="true" id="workClientLinkmanList{{idx}}_linkMobile" name="workClientLinkmanList[{{idx}}].linkMobile" type="text" value="{{row.linkMobile}}" class="form-control isPhone"/>
|
|
</td>
|
|
</td>
|
|
<td class="text-center op-td" >
|
|
<td class="text-center op-td" >
|
|
{{#delBtn}}<span class="op-btn op-btn-delete" onclick="delRow(this, '#workClientLinkmanList{{idx}}')" title="删除"><i class="glyphicon glyphicon-remove"></i> 删除</span>{{/delBtn}}
|
|
{{#delBtn}}<span class="op-btn op-btn-delete" onclick="delRow(this, '#workClientLinkmanList{{idx}}')" title="删除"><i class="glyphicon glyphicon-remove"></i> 删除</span>{{/delBtn}}
|
|
@@ -961,22 +1347,27 @@
|
|
<input id="workBuildLinkmanList{{idx}}_id" name="workBuildLinkmanList[{{idx}}].id" type="hidden" value="{{row.id}}" class="linkmanId"/>
|
|
<input id="workBuildLinkmanList{{idx}}_id" name="workBuildLinkmanList[{{idx}}].id" type="hidden" value="{{row.id}}" class="linkmanId"/>
|
|
<input id="workBuildLinkmanList{{idx}}_delFlag" name="workBuildLinkmanList[{{idx}}].delFlag" type="hidden" value="0"/>
|
|
<input id="workBuildLinkmanList{{idx}}_delFlag" name="workBuildLinkmanList[{{idx}}].delFlag" type="hidden" value="0"/>
|
|
</td>
|
|
</td>
|
|
- <td style="text-align: center">
|
|
|
|
|
|
+ <td>
|
|
<input id="workBuildLinkmanList{{idx}}_cid" name = "workBuildLinkmanList[{{idx}}].clientId.id" type="hidden" value="{{row.clientId.id}}"/>
|
|
<input id="workBuildLinkmanList{{idx}}_cid" name = "workBuildLinkmanList[{{idx}}].clientId.id" type="hidden" value="{{row.clientId.id}}"/>
|
|
- {{row.clientId.name}}
|
|
|
|
|
|
+
|
|
|
|
+ <input style="text-align:center" readonly="true" id="workBuildLinkmanList{{idx}}_cname" name = "workBuildLinkmanList[{{idx}}].clientId.name" value="{{row.clientId.name}}" class="form-control "/>
|
|
|
|
+
|
|
</td>
|
|
</td>
|
|
- <td style="text-align: center">
|
|
|
|
- <input id="workBuildLinkmanList{{idx}}_cuscCode" name = "workBuildLinkmanList[{{idx}}].clientId.uscCode" type="hidden" value="{{row.clientId.uscCode}}"/>
|
|
|
|
- {{row.clientId.uscCode}}
|
|
|
|
|
|
+ <td>
|
|
|
|
+ <input style="text-align:center" readonly="true" id="workBuildLinkmanList{{idx}}_cuscCode" name = "workBuildLinkmanList[{{idx}}].clientId.uscCode" value="{{row.clientId.uscCode}}" class="form-control "/>
|
|
|
|
+
|
|
</td>
|
|
</td>
|
|
- <td style="text-align: center">
|
|
|
|
- {{row.name }}
|
|
|
|
|
|
+ <td>
|
|
|
|
+ <input style="text-align:center" readonly="true" id="workBuildLinkmanList{{idx}}_name" name = "workBuildLinkmanList[{{idx}}].name" value="{{row.name}}" class="form-control "/>
|
|
|
|
+
|
|
</td>
|
|
</td>
|
|
- <td style="text-align: center">
|
|
|
|
- {{row.linkPhone}}
|
|
|
|
|
|
+ <td>
|
|
|
|
+ <input style="text-align:center" readonly="true" id="workBuildLinkmanList{{idx}}_linkPhone" name = "workBuildLinkmanList[{{idx}}].linkPhone" value="{{row.linkPhone}}" class="form-control "/>
|
|
|
|
+
|
|
</td>
|
|
</td>
|
|
- <td style="text-align: center">
|
|
|
|
- {{row.linkMobile}}
|
|
|
|
|
|
+ <td>
|
|
|
|
+ <input style="text-align:center" readonly="true" id="workBuildLinkmanList{{idx}}_linkMobile" name = "workBuildLinkmanList[{{idx}}].linkMobile" value="{{row.linkMobile}}" class="form-control "/>
|
|
|
|
+
|
|
</td>
|
|
</td>
|
|
<td class="text-center" width="10">
|
|
<td class="text-center" width="10">
|
|
{{#delBtn}}<span class="op-btn op-btn-delete" onclick="delRow(this, '#workBuildLinkmanList{{idx}}')" title="删除"><i class="fa fa-trash"></i> 删除</span>{{/delBtn}}
|
|
{{#delBtn}}<span class="op-btn op-btn-delete" onclick="delRow(this, '#workBuildLinkmanList{{idx}}')" title="删除"><i class="fa fa-trash"></i> 删除</span>{{/delBtn}}
|
|
@@ -1017,7 +1408,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="layui-item nav-btns" style="float: left;">
|
|
<div class="layui-item nav-btns" style="float: left;">
|
|
<a href="javascript:void(0)"
|
|
<a href="javascript:void(0)"
|
|
- onclick="openBuild('新增施工方', '${ctx}/workclientinfo/workClientInfo/formType?param=3','95%','95%',false,'inputForm')"
|
|
|
|
|
|
+ onclick="openConstruction('新增施工方', '${ctx}/workclientinfo/workClientInfo/formType?param=3','95%','95%',false,'inputForm')"
|
|
class="nav-btn nav-btn-add"><i class="fa fa-plus"></i> 新增施工方</a>
|
|
class="nav-btn nav-btn-add"><i class="fa fa-plus"></i> 新增施工方</a>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -1043,21 +1434,25 @@
|
|
<input id="workConstructionLinkmanList{{idx}}_id" name="workConstructionLinkmanList[{{idx}}].id" type="hidden" value="{{row.id}}" class="linkmanId"/>
|
|
<input id="workConstructionLinkmanList{{idx}}_id" name="workConstructionLinkmanList[{{idx}}].id" type="hidden" value="{{row.id}}" class="linkmanId"/>
|
|
<input id="workConstructionLinkmanList{{idx}}_delFlag" name="workConstructionLinkmanList[{{idx}}].delFlag" type="hidden" value="0"/>
|
|
<input id="workConstructionLinkmanList{{idx}}_delFlag" name="workConstructionLinkmanList[{{idx}}].delFlag" type="hidden" value="0"/>
|
|
</td>
|
|
</td>
|
|
- <td style="text-align: center">
|
|
|
|
- <input id="workConstructionLinkmanList{{idx}}_cid" name = "workConstructionLinkmanList[{{idx}}].clientId.id" type="hidden" value="{{row.clientId.id}}"/>
|
|
|
|
- {{row.clientId.name}}
|
|
|
|
|
|
+ <td>
|
|
|
|
+ <input id="workConstructionLinkmanList{{idx}}_cid" name = "workConstructionLinkmanList[{{idx}}].clientId.id" type="hidden" value="{{row.clientId.id}}"/>
|
|
|
|
+ <input style="text-align:center" readonly="true" id="workConstructionLinkmanList{{idx}}_cname" name = "workConstructionLinkmanList[{{idx}}].clientId.name" value="{{row.clientId.name}}" class="form-control "/>
|
|
</td>
|
|
</td>
|
|
- <td style="text-align: center">
|
|
|
|
- {{row.clientId.uscCode}}
|
|
|
|
|
|
+ <td>
|
|
|
|
+ <input style="text-align:center" readonly="true" id="workConstructionLinkmanList{{idx}}_cuscCode" name = "workConstructionLinkmanList[{{idx}}].clientId.uscCode" value="{{row.clientId.uscCode}}" class="form-control "/>
|
|
|
|
+
|
|
</td>
|
|
</td>
|
|
- <td style="text-align: center">
|
|
|
|
- {{row.name }}
|
|
|
|
|
|
+ <td>
|
|
|
|
+ <input style="text-align:center" readonly="true" id="workConstructionLinkmanList{{idx}}_name" name = "workConstructionLinkmanList[{{idx}}].name" value="{{row.name}}" class="form-control "/>
|
|
|
|
+
|
|
</td>
|
|
</td>
|
|
- <td style="text-align: center">
|
|
|
|
- {{row.linkPhone}}
|
|
|
|
|
|
+ <td>
|
|
|
|
+ <input style="text-align:center" readonly="true" id="workConstructionLinkmanList{{idx}}_linkPhone" name = "workConstructionLinkmanList[{{idx}}].linkPhone" value="{{row.linkPhone}}" class="form-control "/>
|
|
|
|
+
|
|
</td>
|
|
</td>
|
|
- <td style="text-align: center">
|
|
|
|
- {{row.linkMobile}}
|
|
|
|
|
|
+ <td>
|
|
|
|
+ <input style="text-align:center" readonly="true" id="workConstructionLinkmanList{{idx}}_linkMobile" name = "workConstructionLinkmanList[{{idx}}].linkMobile" value="{{row.linkMobile}}" class="form-control "/>
|
|
|
|
+
|
|
</td>
|
|
</td>
|
|
<td class="text-center" width="10">
|
|
<td class="text-center" width="10">
|
|
{{#delBtn}}<span class="op-btn op-btn-delete" onclick="delRow(this, '#workConstructionLinkmanList{{idx}}')" title="删除"><i class="fa fa-trash"></i> 删除</span>{{/delBtn}}
|
|
{{#delBtn}}<span class="op-btn op-btn-delete" onclick="delRow(this, '#workConstructionLinkmanList{{idx}}')" title="删除"><i class="fa fa-trash"></i> 删除</span>{{/delBtn}}
|
|
@@ -1097,7 +1492,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="layui-item nav-btns" style="float: left;">
|
|
<div class="layui-item nav-btns" style="float: left;">
|
|
<a href="javascript:void(0)"
|
|
<a href="javascript:void(0)"
|
|
- onclick="openBuild('新增监理方', '${ctx}/workclientinfo/workClientInfo/formType?param=4','95%','95%',false,'inputForm')"
|
|
|
|
|
|
+ onclick="openSuper('新增监理方', '${ctx}/workclientinfo/workClientInfo/formType?param=4','95%','95%',false,'inputForm')"
|
|
class="nav-btn nav-btn-add"><i class="fa fa-plus"></i> 新增监理方</a>
|
|
class="nav-btn nav-btn-add"><i class="fa fa-plus"></i> 新增监理方</a>
|
|
</div>
|
|
</div>
|
|
<div class="layui-item layui-col-xs12 form-table-container">
|
|
<div class="layui-item layui-col-xs12 form-table-container">
|
|
@@ -1122,21 +1517,25 @@
|
|
<input id="workSuperLinkmanList{{idx}}_id" name="workSuperLinkmanList[{{idx}}].id" type="hidden" value="{{row.id}}" class="linkmanId"/>
|
|
<input id="workSuperLinkmanList{{idx}}_id" name="workSuperLinkmanList[{{idx}}].id" type="hidden" value="{{row.id}}" class="linkmanId"/>
|
|
<input id="workSuperLinkmanList{{idx}}_delFlag" name="workSuperLinkmanList[{{idx}}].delFlag" type="hidden" value="0"/>
|
|
<input id="workSuperLinkmanList{{idx}}_delFlag" name="workSuperLinkmanList[{{idx}}].delFlag" type="hidden" value="0"/>
|
|
</td>
|
|
</td>
|
|
- <td style="text-align: center">
|
|
|
|
- <input id="workSuperLinkmanList{{idx}}_cid" name = "workSuperLinkmanList[{{idx}}].clientId.id" type="hidden" value="{{row.clientId.id}}"/>
|
|
|
|
- {{row.clientId.name}}
|
|
|
|
|
|
+ <td>
|
|
|
|
+ <input id="workSuperLinkmanList{{idx}}_cid" name = "workSuperLinkmanList[{{idx}}].clientId.id" type="hidden" value="{{row.clientId.id}}"/>
|
|
|
|
+ <input style="text-align:center" readonly="true" id="workSuperLinkmanList{{idx}}_cname" name = "workSuperLinkmanList[{{idx}}].clientId.name" value="{{row.clientId.name}}" class="form-control "/>
|
|
</td>
|
|
</td>
|
|
- <td style="text-align: center">
|
|
|
|
- {{row.clientId.uscCode}}
|
|
|
|
|
|
+ <td>
|
|
|
|
+ <input style="text-align:center" readonly="true" id="workSuperLinkmanList{{idx}}_cuscCode" name = "workSuperLinkmanList[{{idx}}].clientId.uscCode" value="{{row.clientId.uscCode}}" class="form-control "/>
|
|
|
|
+
|
|
</td>
|
|
</td>
|
|
- <td style="text-align: center">
|
|
|
|
- {{row.name }}
|
|
|
|
|
|
+ <td>
|
|
|
|
+ <input style="text-align:center" readonly="true" id="workSuperLinkmanList{{idx}}_name" name = "workSuperLinkmanList[{{idx}}].name" value="{{row.name}}" class="form-control "/>
|
|
|
|
+
|
|
</td>
|
|
</td>
|
|
- <td style="text-align: center">
|
|
|
|
- {{row.linkPhone}}
|
|
|
|
|
|
+ <td>
|
|
|
|
+ <input style="text-align:center" readonly="true" id="workSuperLinkmanList{{idx}}_linkPhone" name = "workSuperLinkmanList[{{idx}}].linkPhone" value="{{row.linkPhone}}" class="form-control "/>
|
|
|
|
+
|
|
</td>
|
|
</td>
|
|
- <td style="text-align: center">
|
|
|
|
- {{row.linkMobile}}
|
|
|
|
|
|
+ <td>
|
|
|
|
+ <input style="text-align:center" readonly="true" id="workSuperLinkmanList{{idx}}_linkMobile" name = "workSuperLinkmanList[{{idx}}].linkMobile" value="{{row.linkMobile}}" class="form-control "/>
|
|
|
|
+
|
|
</td>
|
|
</td>
|
|
<td class="text-center" width="10">
|
|
<td class="text-center" width="10">
|
|
{{#delBtn}}<span class="op-btn op-btn-delete" onclick="delRow(this, '#workSuperLinkmanList{{idx}}')" title="删除"><i class="fa fa-trash"></i> 删除</span>{{/delBtn}}
|
|
{{#delBtn}}<span class="op-btn op-btn-delete" onclick="delRow(this, '#workSuperLinkmanList{{idx}}')" title="删除"><i class="fa fa-trash"></i> 删除</span>{{/delBtn}}
|
|
@@ -1177,7 +1576,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="layui-item nav-btns" style="float: left;">
|
|
<div class="layui-item nav-btns" style="float: left;">
|
|
<a href="javascript:void(0)"
|
|
<a href="javascript:void(0)"
|
|
- onclick="openBuild('新增设计方', '${ctx}/workclientinfo/workClientInfo/formType?param=5','95%','95%',false,'inputForm')"
|
|
|
|
|
|
+ onclick="openDesign('新增设计方', '${ctx}/workclientinfo/workClientInfo/formType?param=5','95%','95%',false,'inputForm')"
|
|
class="nav-btn nav-btn-add"><i class="fa fa-plus"></i> 新增设计方</a>
|
|
class="nav-btn nav-btn-add"><i class="fa fa-plus"></i> 新增设计方</a>
|
|
</div>
|
|
</div>
|
|
<div class="layui-item layui-col-xs12 form-table-container">
|
|
<div class="layui-item layui-col-xs12 form-table-container">
|
|
@@ -1202,21 +1601,25 @@
|
|
<input id="workDesignLinkmanList{{idx}}_id" name="workDesignLinkmanList[{{idx}}].id" type="hidden" value="{{row.id}}" class="linkmanId"/>
|
|
<input id="workDesignLinkmanList{{idx}}_id" name="workDesignLinkmanList[{{idx}}].id" type="hidden" value="{{row.id}}" class="linkmanId"/>
|
|
<input id="workDesignLinkmanList{{idx}}_delFlag" name="workDesignLinkmanList[{{idx}}].delFlag" type="hidden" value="0"/>
|
|
<input id="workDesignLinkmanList{{idx}}_delFlag" name="workDesignLinkmanList[{{idx}}].delFlag" type="hidden" value="0"/>
|
|
</td>
|
|
</td>
|
|
- <td style="text-align: center">
|
|
|
|
- <input id="workDesignkmanList{{idx}}_cid" name = "workDesignLinkmanList[{{idx}}].clientId.id" type="hidden" value="{{row.clientId.id}}"/>
|
|
|
|
- {{row.clientId.name}}
|
|
|
|
|
|
+ <td >
|
|
|
|
+ <input id="workDesignLinLinkmanList{{idx}}_cid" name = "workDesignLinLinkmanList[{{idx}}].clientId.id" type="hidden" value="{{row.clientId.id}}"/>
|
|
|
|
+ <input style="text-align:center" readonly="true" id="workDesignLinkmanList{{idx}}_cname" name = "workDesignLinkmanList[{{idx}}].clientId.name" value="{{row.clientId.name}}" class="form-control "/>
|
|
</td>
|
|
</td>
|
|
- <td style="text-align: center">
|
|
|
|
- {{row.clientId.uscCode}}
|
|
|
|
|
|
+ <td >
|
|
|
|
+ <input style="text-align:center" readonly="true" id="workDesignLinkmanList{{idx}}_cuscCode" name = "workDesignLinkmanList[{{idx}}].clientId.uscCode" value="{{row.clientId.uscCode}}" class="form-control "/>
|
|
|
|
+
|
|
</td>
|
|
</td>
|
|
- <td style="text-align: center">
|
|
|
|
- {{row.name }}
|
|
|
|
|
|
+ <td >
|
|
|
|
+ <input style="text-align:center" readonly="true" id="workDesignLinkmanList{{idx}}_name" name = "workDesignLinkmanList[{{idx}}].name" value="{{row.name}}" class="form-control "/>
|
|
|
|
+
|
|
</td>
|
|
</td>
|
|
- <td style="text-align: center">
|
|
|
|
- {{row.linkPhone}}
|
|
|
|
|
|
+ <td >
|
|
|
|
+ <input style="text-align:center" readonly="true" id="workDesignLinkmanList{{idx}}_linkPhone" name = "workDesignLinkmanList[{{idx}}].linkPhone" value="{{row.linkPhone}}" class="form-control "/>
|
|
|
|
+
|
|
</td>
|
|
</td>
|
|
- <td style="text-align: center">
|
|
|
|
- {{row.linkMobile}}
|
|
|
|
|
|
+ <td >
|
|
|
|
+ <input style="text-align:center" readonly="true" id="workDesignLinkmanList{{idx}}_linkMobile" name = "workDesignLinkmanList[{{idx}}].linkMobile" value="{{row.linkMobile}}" class="form-control "/>
|
|
|
|
+
|
|
</td>
|
|
</td>
|
|
<td class="text-center" width="10">
|
|
<td class="text-center" width="10">
|
|
{{#delBtn}}<span class="op-btn op-btn-delete" onclick="delRow(this, '#workDesignLinkmanList{{idx}}')" title="删除"><i class="fa fa-trash"></i> 删除</span>{{/delBtn}}
|
|
{{#delBtn}}<span class="op-btn op-btn-delete" onclick="delRow(this, '#workDesignLinkmanList{{idx}}')" title="删除"><i class="fa fa-trash"></i> 删除</span>{{/delBtn}}
|