|
@@ -202,47 +202,10 @@
|
|
var flag=$(this).prop("checked")
|
|
var flag=$(this).prop("checked")
|
|
$("#createReportFlag").val(flag);
|
|
$("#createReportFlag").val(flag);
|
|
})
|
|
})
|
|
- //是否紧急项目判断项
|
|
|
|
- layui.form.on('radio(submitMoney)', function(data){
|
|
|
|
- var span=data.value;
|
|
|
|
- if(span==2){
|
|
|
|
- // $("#emergencyProject").parent().parent().parent().hide();
|
|
|
|
- //A级均为非紧急项目
|
|
|
|
- $("#emergencyProjectFlag").val("0");
|
|
|
|
- // $("#emergencyProject").prop("checked",false);
|
|
|
|
- layui.form.render();
|
|
|
|
- }else if(span==1){
|
|
|
|
- // $("#emergencyProject").parent().parent().parent().show();
|
|
|
|
- //B级默认紧急项目
|
|
|
|
- $("#emergencyProjectFlag").val("1");
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- // form.on('switch(emergencyProject)',function(data){
|
|
|
|
- // var flag=$(this).prop("checked")
|
|
|
|
- // if (flag){
|
|
|
|
- // //是紧急项目
|
|
|
|
- // $("#emergencyProjectFlag").val("1");
|
|
|
|
- // }else{
|
|
|
|
- // //不是紧急项目
|
|
|
|
- // $("#emergencyProjectFlag").val("0");
|
|
|
|
- // }
|
|
|
|
- // })
|
|
|
|
|
|
+
|
|
|
|
+
|
|
});
|
|
});
|
|
- //默认打开判断是否时紧急项目
|
|
|
|
- var submitMoney="${ruralProjectRecords.submitMoney}"
|
|
|
|
- if(submitMoney==1){
|
|
|
|
- // $("#emergencyProject").parent().parent().parent().show();
|
|
|
|
- var emergencyProject="${ruralProjectRecords.emergencyProject}"
|
|
|
|
- if (emergencyProject=="1"){
|
|
|
|
- $("#emergencyProjectFlag").val("1");
|
|
|
|
- // $("#emergencyProject").prop("checked",true);
|
|
|
|
- layui.form.render();
|
|
|
|
- }else{
|
|
|
|
- $("#emergencyProjectFlag").val("0");
|
|
|
|
- // $("#emergencyProject").prop("checked",false);
|
|
|
|
- layui.form.render();
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
|
|
var radioVal ;
|
|
var radioVal ;
|
|
validateForm = $("#inputForm").validate({
|
|
validateForm = $("#inputForm").validate({
|
|
@@ -373,45 +336,7 @@
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
- function setContractValue(obj){
|
|
|
|
- var clientId = $("#contractClientId").val();
|
|
|
|
- $.ajax({
|
|
|
|
- type:'post',
|
|
|
|
- url:'${ctx}/ruralProject/ruralCostProjectRecords/getContractInfo',
|
|
|
|
- data:{
|
|
|
|
- "id":obj
|
|
|
|
- },
|
|
|
|
- success:function(data){
|
|
|
|
- if(data.contractInformation == "1"){
|
|
|
|
- $("#c2").show();
|
|
|
|
- $("#c1").hide();
|
|
|
|
- }else{
|
|
|
|
- $("#c2").hide();
|
|
|
|
- $("#c1").show();
|
|
|
|
- }
|
|
|
|
- $("#contractName").val(data.name);
|
|
|
|
- $("#otherDetails").val(data.otherDetails);
|
|
|
|
- $("#contractPrice").val(data.contractPrice);
|
|
|
|
- formatNum($("#contractPrice"));
|
|
|
|
- $("#contractClientName").val(data.client.name);
|
|
|
|
- $("#contractClientId").val(data.client.id);
|
|
|
|
- $("#constructionProjectType").val(data.contractType);
|
|
|
|
- $("#linkmanId").val(data.workClinetInfoIds);
|
|
|
|
- //清理之前的联系人
|
|
|
|
- var newClientId = data.client.id;
|
|
|
|
- if(clientId != newClientId){
|
|
|
|
- $("#workClientLinkmanList tr").remove();
|
|
|
|
- //if(isMasterClient){
|
|
|
|
- clientCount++;
|
|
|
|
- setLinkMan(newClientId);
|
|
|
|
- isMasterClient = false;
|
|
|
|
- //}
|
|
|
|
- }
|
|
|
|
- // console.log("clientId------newClientId");
|
|
|
|
- // console.log(clientId+"------"+newClientId);
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
|
|
function getFee() {
|
|
function getFee() {
|
|
$("#unitFees").val('');
|
|
$("#unitFees").val('');
|
|
@@ -478,96 +403,6 @@
|
|
$("#installUnitFees").val(pp);
|
|
$("#installUnitFees").val(pp);
|
|
}
|
|
}
|
|
|
|
|
|
- function setLinkMan(newClientId) {
|
|
|
|
- $.ajax({
|
|
|
|
- url:"${ctx}/ruralProject/ruralCostProjectRecords/getLinkManByClientId",
|
|
|
|
- data:{"clientId":newClientId},
|
|
|
|
- type:"post",
|
|
|
|
- dataType:"json",
|
|
|
|
- success:function (d) {
|
|
|
|
- // console.log(d);
|
|
|
|
- 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+"_name").val(d.linkName);
|
|
|
|
- $("#workClientLinkmanList"+row+"_linkMobile").val(d.linkMobile);
|
|
|
|
- $("#workClientLinkmanList"+row+"_linkPhone").val(d.linkPhone);
|
|
|
|
- $("#workClientLinkmanList"+row+"_clientName").prop("readonly","readonly");
|
|
|
|
- $("#workClientLinkmanList"+row+"_name").prop("readonly","readonly");
|
|
|
|
- $("#workClientLinkmanList"+row+"_linkMobile").prop("readonly","readonly");
|
|
|
|
- $("#workClientLinkmanList"+row+"_linkPhone").prop("readonly","readonly");
|
|
|
|
-
|
|
|
|
- //按钮禁用
|
|
|
|
- $("#addUserButton").removeClass("disables");
|
|
|
|
- $("#addUserButton").removeClass("notDisables");
|
|
|
|
- $("#addUserButton").addClass("disables");
|
|
|
|
- //a标签置灰
|
|
|
|
- $("#aButton").removeClass("forbidden");
|
|
|
|
- $("#aButton").removeClass("notForbidden");
|
|
|
|
- $("#aButton").addClass("forbidden");
|
|
|
|
-
|
|
|
|
- $("#linkmanDiv").removeClass("disables");
|
|
|
|
- $("#linkmanDiv").removeClass("notDisables");
|
|
|
|
- $("#linkmanDiv").addClass("disables");
|
|
|
|
-
|
|
|
|
- $("#linkmanButton").removeClass("forbidden");
|
|
|
|
- $("#linkmanButton").removeClass("notForbidden");
|
|
|
|
- $("#linkmanButton").addClass("forbidden");
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- function setValuee(obj){
|
|
|
|
- var successRows = 0;
|
|
|
|
- ss = $("#workClientLinkmanList tr").length;
|
|
|
|
- for (var i = 0; i < obj.length; i++) {
|
|
|
|
- //没有重复的客户id,就可以插入
|
|
|
|
- var canInsert = true;
|
|
|
|
- for (var j = 0; j < ss; j++) {
|
|
|
|
- var cid = $("#workClientLinkmanList" + j + "_id").val();
|
|
|
|
- if(cid == obj[i].id){
|
|
|
|
- canInsert = false;
|
|
|
|
- // console.log("重复!!");
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- if(canInsert==true){
|
|
|
|
- var idArr = $("#workClientLinkmanList tr:visible .clientId");
|
|
|
|
- if (obj[i].id != '' && !hasInArr(obj[i].id, idArr)) {
|
|
|
|
- addRow("#workClientLinkmanList", workClientLinkmanRowIdx, workClientLinkmanTpl, obj[i]);
|
|
|
|
- workClientLinkmanRowIdx = workClientLinkmanRowIdx + 1;
|
|
|
|
- successRows++;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- clientCount=successRows+clientCount;
|
|
|
|
-
|
|
|
|
- //如果委托方还没有设置,则将第一个客户设置为委托方
|
|
|
|
- if(obj[0].name != null){
|
|
|
|
- if(isMasterClient){
|
|
|
|
- $("#contractClientName").val(obj[0].clientId.name);
|
|
|
|
- isMasterClient = false;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- //按钮禁用
|
|
|
|
- $("#addUserButton").removeClass("disables");
|
|
|
|
- $("#addUserButton").removeClass("notDisables");
|
|
|
|
- $("#addUserButton").addClass("disables");
|
|
|
|
- //a标签置灰
|
|
|
|
- $("#aButton").removeClass("forbidden");
|
|
|
|
- $("#aButton").removeClass("notForbidden");
|
|
|
|
- $("#aButton").addClass("forbidden");
|
|
|
|
-
|
|
|
|
- $("#linkmanDiv").removeClass("disables");
|
|
|
|
- $("#linkmanDiv").removeClass("notDisables");
|
|
|
|
- $("#linkmanDiv").addClass("disables");
|
|
|
|
-
|
|
|
|
- $("#linkmanButton").removeClass("forbidden");
|
|
|
|
- $("#linkmanButton").removeClass("notForbidden");
|
|
|
|
- $("#linkmanButton").addClass("forbidden");
|
|
|
|
- }
|
|
|
|
function hasInArr(id,idArr) {
|
|
function hasInArr(id,idArr) {
|
|
for(var i=0;i<idArr.length;i++){
|
|
for(var i=0;i<idArr.length;i++){
|
|
if(id==$(idArr[i]).find("td").eq(0).find("input").eq(0).val()){
|
|
if(id==$(idArr[i]).find("td").eq(0).find("input").eq(0).val()){
|
|
@@ -606,25 +441,9 @@
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
- function insertTitle(tValue){
|
|
|
|
- $("#flagFile").val(false);
|
|
|
|
- var files = $("#attachment_file")[0].files; for(var i = 0;i<files.length;i++) { var file = files[i];
|
|
|
|
- var attachmentId = $("#id").val();
|
|
|
|
- var attachmentFlag = "82";
|
|
|
|
- /*console.log(file);*/
|
|
|
|
- var timestamp=new Date().getTime();
|
|
|
|
|
|
|
|
- var storeAs = "projectRecords";
|
|
|
|
- var uploadPath="http://gangwan-app.oss-cn-hangzhou.aliyuncs.com/"+storeAs;/*将这段字符串存到数据库即可*/
|
|
|
|
- var divId = "_attachment";
|
|
|
|
- $("#addFile"+divId).show();
|
|
|
|
- multipartUploadWithSts(storeAs, file,attachmentId,attachmentFlag,uploadPath,divId,0);}
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
|
|
- function addFile() {
|
|
|
|
- $("#attachment_file").click();
|
|
|
|
- }
|
|
|
|
|
|
|
|
function addRow(list, idx, tpl, row){
|
|
function addRow(list, idx, tpl, row){
|
|
// var idx1 = $("#workClientLinkmanList tr").length;
|
|
// var idx1 = $("#workClientLinkmanList tr").length;
|
|
@@ -649,20 +468,7 @@
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
- function delEntrustRow(obj, prefix){
|
|
|
|
- var id = $(prefix+"_id");
|
|
|
|
- var delFlag = $(prefix+"_delFlag");
|
|
|
|
- $(obj).parent().parent().remove();
|
|
|
|
- if($("#workClientLinkmanList tr").length==0){
|
|
|
|
- //按钮禁用
|
|
|
|
- $("#addUserButton").addClass("notDisables");
|
|
|
|
- //a标签置灰
|
|
|
|
- $("#aButton").addClass("notForbidden");
|
|
|
|
|
|
|
|
- $("#linkmanDiv").addClass("notDisables");
|
|
|
|
- $("#linkmanButton").addClass("notForbidden");
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
function delRow(obj, prefix){
|
|
function delRow(obj, prefix){
|
|
var id = $(prefix+"_id");
|
|
var id = $(prefix+"_id");
|
|
var delFlag = $(prefix+"_delFlag");
|
|
var delFlag = $(prefix+"_delFlag");
|
|
@@ -681,58 +487,7 @@
|
|
}
|
|
}
|
|
$(obj).val(t.split("").reverse().join("") + "." + r);
|
|
$(obj).val(t.split("").reverse().join("") + "." + r);
|
|
}
|
|
}
|
|
- function openBill2(title,url,width,height,target,formId){
|
|
|
|
- if($("#workClientLinkmanList tr").length>0){
|
|
|
|
- top.layer.msg('仅可添加一名委托方联系人!', {icon: 0});
|
|
|
|
- return false;
|
|
|
|
- }
|
|
|
|
- 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}/ruralProject/ruralCostProjectRecords/linkManSave");//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
|
- var $document = iframeWin.contentWindow.document;
|
|
|
|
-
|
|
|
|
- formSubmit2($document,formId,index);
|
|
|
|
- //新增人员之后
|
|
|
|
- //按钮禁用
|
|
|
|
- $("#addUserButton").addClass("disables");
|
|
|
|
- //a标签置灰
|
|
|
|
- $("#aButton").addClass("forbidden");
|
|
|
|
-
|
|
|
|
- $("#linkmanDiv").addClass("disables");
|
|
|
|
- $("#linkmanButton").addClass("forbidden");
|
|
|
|
-
|
|
|
|
- },
|
|
|
|
- cancel: function(index){
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
function formSubmit2($document,inputForm,index){
|
|
function formSubmit2($document,inputForm,index){
|
|
var validateForm = $($document.getElementById(inputForm)).validate({
|
|
var validateForm = $($document.getElementById(inputForm)).validate({
|
|
@@ -779,17 +534,6 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- function getApprovalFee() {
|
|
|
|
- //总价
|
|
|
|
- var af = $("#estimateTotalFees").val();
|
|
|
|
- if(af !=''){
|
|
|
|
- $("#estimateTotalFees").val(af)
|
|
|
|
- }
|
|
|
|
- $("#buildingFees").val("");
|
|
|
|
- $("#installFees").val("");
|
|
|
|
- $("#buildingPercent").val("");
|
|
|
|
- $("#installPercent").val("");
|
|
|
|
- }
|
|
|
|
|
|
|
|
function getInstallFee() {
|
|
function getInstallFee() {
|
|
var af = $("#estimateTotalFees").val();
|
|
var af = $("#estimateTotalFees").val();
|
|
@@ -809,117 +553,29 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- function getBuildingFee() {
|
|
|
|
- var af = $("#estimateTotalFees").val();
|
|
|
|
- //土建
|
|
|
|
- var bf = $("#buildingFees").val();
|
|
|
|
- if(bf != ''&& af !=''){
|
|
|
|
- var hf = parseInt(af)-parseInt(bf);
|
|
|
|
- var rate = (Math.round(parseInt(bf) / parseInt(af) * 100) / 100 * 100).toFixed(2);
|
|
|
|
- $("#buildingPercent").val(rate);
|
|
|
|
- $("#installFees").val(hf);
|
|
|
|
- inf = hf;
|
|
|
|
- var inRate = (Math.round(parseInt(hf) / parseInt(af) * 100) / 100 * 100).toFixed(2);
|
|
|
|
- $("#installPercent").val(inRate);
|
|
|
|
- }
|
|
|
|
- if(bf == ''|| af ==''){
|
|
|
|
- $("#buildingPercent").val("");
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- function reProjectName(obj) {
|
|
|
|
- var name=$(obj).val()
|
|
|
|
- var proName='${ruralProjectRecords.projectName}'
|
|
|
|
- $.ajax({
|
|
|
|
- type : "POST",
|
|
|
|
- url : "${ctx}/ruralProject/ruralProjectRecords/reProjectName",
|
|
|
|
- data : {'projectName':name},
|
|
|
|
- //请求成功
|
|
|
|
- success : function(result) {
|
|
|
|
- if (result>0){
|
|
|
|
- if(proName!=name){
|
|
|
|
- $(obj).val(proName);
|
|
|
|
- parent.layer.msg("项目名称已存在!",{icon:2});
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
</script>
|
|
</script>
|
|
</head>
|
|
</head>
|
|
<body>
|
|
<body>
|
|
<div class="single-form">
|
|
<div class="single-form">
|
|
<div class="container">
|
|
<div class="container">
|
|
<sys:message content="${message}"/>
|
|
<sys:message content="${message}"/>
|
|
- <form:form id="inputForm" modelAttribute="auditTemplateType" action="${ctx}/fauditTemplate/auditTemplateType/save" method="post" class="form-horizontal layui-form ">
|
|
|
|
-<%-- <input type="hidden" id="flagFile" value="">--%>
|
|
|
|
-<%-- <input type="hidden" id="createReportFlag" name="createReportFlag" value="${ruralProjectRecords.createReportFlag}">--%>
|
|
|
|
-<%-- <input type="hidden" id="emergencyProjectFlag" name="emergencyProject" value="${ruralProjectRecords.emergencyProject}">--%>
|
|
|
|
-
|
|
|
|
-<%-- <input type="hidden" id="workClientLinkmanInfo" value="${ruralProjectRecords.workClientLinkmanList}">--%>
|
|
|
|
-<%-- <div class="form-group layui-row first">--%>
|
|
|
|
-<%-- <div class="form-group layui-row">--%>
|
|
|
|
-<%-- <div class="form-group-label"><h2>项目合同信息</h2></div>--%>
|
|
|
|
-<%-- <div class="layui-item layui-col-sm6 lw7">--%>
|
|
|
|
-<%-- <label class="layui-form-label">合同情况:</label>--%>
|
|
|
|
-<%-- <div class="layui-input-block">--%>
|
|
|
|
-<%-- <input type="radio" title="有合同" lay-filter="ext" name="ext" checked id="ext" value="0">--%>
|
|
|
|
-<%-- <%– <label for="ext">有合同</label>–%>--%>
|
|
|
|
-<%-- <input type="radio" title="无合同" lay-filter="ext" name="ext" id="ext1" value="1">--%>
|
|
|
|
-<%-- <%– <label for="ext1">无合同</label>–%>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%--<%– <div class="form-group layui-row">–%>--%>
|
|
|
|
-<%--<%– <div id="divv">–%>--%>
|
|
|
|
-<%--<%– <div class="layui-item layui-col-sm12 lw7" id="d1">–%>--%>
|
|
|
|
-<%--<%– <label class="layui-form-label"><span class="require-item">*</span>选择合同:</label>–%>--%>
|
|
|
|
-<%--<%– <div class="layui-input-block with-icon">–%>--%>
|
|
|
|
-<%--<%– <sys:gridselectContract url="${ctx}/ruralProject/ruralCostProjectRecords/selectcontract" type="" isTotal="" id="contractId" name="workContractInfo.id" value="${ruralProjectRecords.workContractInfo.id}" title="选择合同" labelName="workContractInfo.name"–%>--%>
|
|
|
|
-<%--<%– cssStyle="background-color: #fff" labelValue="${ruralProjectRecords.workContractInfo.contractNum}" cssClass="form-control required layui-input" fieldLabels="合同名称" fieldKeys="name" searchLabel="合同名称" searchKey="name" ></sys:gridselectContract>–%>--%>
|
|
|
|
-<%--<%– </div>–%>--%>
|
|
|
|
-<%--<%– </div>–%>--%>
|
|
|
|
-<%--<%– <div class="layui-item layui-col-sm6 lw7">–%>--%>
|
|
|
|
-<%--<%– <label class="layui-form-label">合同名称:</label>–%>--%>
|
|
|
|
-<%--<%– <div class="layui-input-block">–%>--%>
|
|
|
|
-<%--<%– <input htmlEscape="false" readonly="true" id="contractName" class="form-control layui-input" value="${ruralProjectRecords.workContractInfo.name}"/>–%>--%>
|
|
|
|
-<%--<%– </div>–%>--%>
|
|
|
|
-<%--<%– </div>–%>--%>
|
|
|
|
-<%--<%– <div class="layui-item layui-col-sm6 lw7" id="c1">–%>--%>
|
|
|
|
-<%--<%– <label class="layui-form-label">合同金额(元):</label>–%>--%>
|
|
|
|
-<%--<%– <div class="layui-input-block">–%>--%>
|
|
|
|
-<%--<%– <input htmlEscape="false" readonly="true" id="contractPrice" class="form-control layui-input" value="${ruralProjectRecords.workContractInfo.contractPrice}" onchange="formatNum(this);"/>–%>--%>
|
|
|
|
-<%--<%– </div>–%>--%>
|
|
|
|
-<%--<%– </div>–%>--%>
|
|
|
|
-<%--<%– <div class="layui-item layui-col-sm6 lw7" id="c2" style="display: none">–%>--%>
|
|
|
|
-<%--<%– <label class="layui-form-label">费率描述:</label>–%>--%>
|
|
|
|
-<%--<%– <div class="layui-input-block">–%>--%>
|
|
|
|
-<%--<%– <input htmlEscape="false" readonly="true" id="otherDetails" class="form-control layui-input" value="${ruralProjectRecords.workContractInfo.otherDetails}"/>–%>--%>
|
|
|
|
-<%--<%– </div>–%>--%>
|
|
|
|
-<%--<%– </div>–%>--%>
|
|
|
|
-<%--<%– <div class="layui-item layui-col-sm6 lw7">–%>--%>
|
|
|
|
-<%--<%– <label class="layui-form-label">委托方:</label>–%>--%>
|
|
|
|
-<%--<%– <div class="layui-input-block">–%>--%>
|
|
|
|
-<%--<%– <input htmlEscape="false" readonly="true" id="contractClientName" name="workContractInfo.client.name" class="form-control layui-input" value="${ruralProjectRecords.workContractInfo.client.name}"/>–%>--%>
|
|
|
|
-<%--<%– </div>–%>--%>
|
|
|
|
-<%--<%– </div>–%>--%>
|
|
|
|
-<%--<%– </div>–%>--%>
|
|
|
|
-
|
|
|
|
-<%--<%– <div id="divv3">–%>--%>
|
|
|
|
-<%--<%– <div class="layui-item layui-col-sm6 lw7">–%>--%>
|
|
|
|
-<%--<%– <label class="layui-form-label">合同类型:</label>–%>--%>
|
|
|
|
-<%--<%– <div class="layui-input-block">–%>--%>
|
|
|
|
-<%--<%– <input htmlEscape="false" readonly="true" id="constructionProjectType" class="form-control layui-input" value="${fns:getMainDictLabel(ruralProjectRecords.workContractInfo.contractTypeDoc, 'contract_info_type', '')}"/>–%>--%>
|
|
|
|
-<%--<%– </div>–%>--%>
|
|
|
|
-<%--<%– </div>–%>--%>
|
|
|
|
-<%--<%– </div>–%>--%>
|
|
|
|
-
|
|
|
|
-<%--<%– </div>–%>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-
|
|
|
|
|
|
+ <form:form id="inputForm" modelAttribute="auditTemplateType" action="${ctx}/auditTemplate/auditTemplateType/save" method="post" class="form-horizontal layui-form ">
|
|
<div class="form-group layui-row">
|
|
<div class="form-group layui-row">
|
|
- <div class="form-group-label"><h2>项目基础信息</h2></div>
|
|
|
|
|
|
+ <div class="form-group-label"><h2>审核意见信息</h2></div>
|
|
<input id="id" name="id" value="${auditTemplateType.id}" type="hidden"/>
|
|
<input id="id" name="id" value="${auditTemplateType.id}" type="hidden"/>
|
|
<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>
|
|
|
|
+ <div class="layui-input-block readOnlyFFF">
|
|
|
|
+ <select class="form-control simple-select required" name="identification">
|
|
|
|
+ <option value="" label="--请选择审核类型--">--请选择审核类型--</option>
|
|
|
|
+ <c:forEach items="${mainDictList}" var="info" varStatus="status" >
|
|
|
|
+ <option value="${info.value}" <c:if test="${info.value == auditTemplateType.identification}">selected</c:if> >${info.label}</option>
|
|
|
|
+ </c:forEach>
|
|
|
|
+ </select>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <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">
|
|
<div class="layui-input-block">
|
|
<input id="module" name="module" onchange="reProjectName(this)" maxlength="255" htmlEscape="false" placeholder="请输入模块" class="form-control layui-input required" value="${auditTemplateType.module}"/>
|
|
<input id="module" name="module" onchange="reProjectName(this)" maxlength="255" htmlEscape="false" placeholder="请输入模块" class="form-control layui-input required" value="${auditTemplateType.module}"/>
|
|
@@ -936,195 +592,8 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
- <div class="layui-item layui-col-sm6 lw7">
|
|
|
|
- <label class="layui-form-label"><span class="require-item">*</span>审核类型:</label>
|
|
|
|
- <div class="layui-input-block readOnlyFFF">
|
|
|
|
- <form:select class="form-control simple-select required" path="identification">
|
|
|
|
- <form:option value="" label="--请选择审核类型--"/>
|
|
|
|
- <form:options items="${fns:getMainDictList('audit_opinion')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
|
|
|
- </form:select>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-<%-- <div class="layui-item layui-col-sm6 lw7">--%>
|
|
|
|
-<%-- <label class="layui-form-label"><span class="require-item">*</span>项目所在地:</label>--%>
|
|
|
|
-<%-- <div class="layui-input-block with-icon">--%>
|
|
|
|
-<%-- <sys:treeselectProject id="area" name="area.id" value="${ruralProjectRecords.area.id}" labelName="area.name" labelValue="${ruralProjectRecords.area.name}"--%>
|
|
|
|
-<%-- cssStyle="background-color: #fff" title="区域" url="/sys/area/treeData" cssClass="form-control judgment layui-input" allowClear="true" notAllowSelectParent="false"/>--%>
|
|
|
|
-<%-- <span id="areaShow" style="color: red"><c:if test="${ruralProjectRecords.area.id!=null}">${ruralProjectRecords.province}-${ruralProjectRecords.city}-${ruralProjectRecords.county}</c:if></span>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- <div class="layui-item layui-col-sm6 lw7">--%>
|
|
|
|
-<%-- <label class="layui-form-label"><span class="require-item">*</span>投资性质:</label>--%>
|
|
|
|
-<%-- <div class="layui-input-block readOnlyFFF">--%>
|
|
|
|
-<%-- <form:select placeholder="请选择" path="projectProperties" class="form-control required editable-select layui-input" id="projectProperties" value="${ruralProjectRecords.projectProperties}">--%>
|
|
|
|
-<%-- <form:option value=""/>--%>
|
|
|
|
-<%-- <form:options items="${fns:getMainDictList('project_properties')}" itemLabel="label" itemValue="value" htmlEscape="false"/>--%>
|
|
|
|
-<%-- </form:select>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
-<%-- <div class="layui-item layui-col-sm6 lw7" style="display: none">--%>
|
|
|
|
-<%-- <label class="layui-form-label">所在省份:</label>--%>
|
|
|
|
-<%-- <div class="layui-input-block">--%>
|
|
|
|
-<%-- <input path="province" htmlEscape="false" id="province" class="form-control layui-input" readonly="true"/>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- <div class="layui-item layui-col-sm6 lw7" style="display: none">--%>
|
|
|
|
-<%-- <label class="layui-form-label">所在地级市:</label>--%>
|
|
|
|
-<%-- <div class="layui-input-block">--%>
|
|
|
|
-<%-- <input path="city" htmlEscape="false" id="city" class="form-control layui-input" readonly="true"/>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- <div class="layui-item layui-col-sm6 lw7" style="display: none">--%>
|
|
|
|
-<%-- <label class="layui-form-label">所在区县:</label>--%>
|
|
|
|
-<%-- <div class="layui-input-block">--%>
|
|
|
|
-<%-- <input path="county" htmlEscape="false" id="county" class="form-control layui-input" readonly="true"/>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-
|
|
|
|
-<%-- <div class="layui-item layui-col-sm6 lw7">--%>
|
|
|
|
-<%-- <label class="layui-form-label">创建人:</label>--%>
|
|
|
|
-<%-- <div class="layui-input-block">--%>
|
|
|
|
-<%-- <input path="createBy.name" htmlEscape="false" readonly="true" class="form-control layui-input"/>--%>
|
|
|
|
-<%-- <form:hidden path="createBy.id" htmlEscape="false" readonly="true" class="form-control layui-input"/>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- <div class="layui-item layui-col-sm6 lw7">--%>
|
|
|
|
-<%-- <label class="layui-form-label"><span class="require-item">*</span>项目责任人:</label>--%>
|
|
|
|
-<%-- <div class="layui-input-block with-icon">--%>
|
|
|
|
-<%-- <sys:treeselect id="master" name="projectLeaders" value="${ruralProjectRecords.leaderIds}" labelName="leaderNameStr" labelValue="${ruralProjectRecords.leaderNameStr}"--%>
|
|
|
|
-<%-- cssStyle="background-color: #fff" title="用户" url="/sys/office/treeDataAll?type=3" cssClass="form-control judgment layui-input" allowClear="true" notAllowSelectParent="true"/>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- <div class="layui-item layui-col-sm6 lw7">--%>
|
|
|
|
-<%-- <label class="layui-form-label">所属部门:</label>--%>
|
|
|
|
-<%-- <div class="layui-input-block">--%>
|
|
|
|
-<%-- <input path="createBy.office.name" htmlEscape="false" id="officeName" class="form-control layui-input" readonly="true"/>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- <div class="layui-item layui-col-sm6 lw7">--%>
|
|
|
|
-<%-- <label class="layui-form-label">项目负责人:</label>--%>
|
|
|
|
-<%-- <div class="layui-input-block with-icon">--%>
|
|
|
|
-<%-- <sys:reportedtreeselectUser id="projectMaster" name="projectMasterId" value="${ruralProjectRecords.projectMasterId}" labelName="projectMasterName" labelValue="${ruralProjectRecords.projectMasterName}"--%>
|
|
|
|
-<%-- cssStyle="background-color:#fff" title="项目负责人" url="/sys/office/treeDataAll?type=4" cssClass="form-control layui-input" allowClear="true" notAllowSelectParent="true"/>--%>
|
|
|
|
-<%-- <span class="spanzj">必须拥有一级造价师证书</span>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- <div class="layui-item layui-col-sm6 lw7">--%>
|
|
|
|
-<%-- <label class="layui-form-label"><span class="require-item">*</span>工程类型:</label>--%>
|
|
|
|
-<%-- <div class="layui-input-block">--%>
|
|
|
|
-<%-- <%– <select name="engineeringType">–%>--%>
|
|
|
|
-<%-- <%– <option value=""></option>–%>--%>
|
|
|
|
-<%-- <%– <c:forEach items="${engineeringInfo}" varStatus="index" var="info">–%>--%>
|
|
|
|
-<%-- <%– <option value="${info.id}" <c:if test="${info.id == ruralProjectRecords.engineeringType}"> selected</c:if>>${info.engineeringName}</option>–%>--%>
|
|
|
|
-<%-- <%– </c:forEach>–%>--%>
|
|
|
|
-<%-- <%– </select>–%>--%>
|
|
|
|
-<%-- <button type="button" class="layui-btn layui-btn-primary" style="width: 100%;text-align: left" id="demo100">--%>
|
|
|
|
-<%-- <span>${engineeringInfo.engineeringName}</span>--%>
|
|
|
|
-<%-- <input type="hidden" name="engineeringType" id="engineeringType" class="judgment" value="${engineeringInfo.id}"/>--%>
|
|
|
|
-<%-- <i class="layui-icon layui-icon-down layui-font-12" style="float: right"></i>--%>
|
|
|
|
-<%-- </button>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-
|
|
|
|
-<%-- <div class="layui-item layui-col-sm6 lw7">--%>
|
|
|
|
-<%-- <label class="layui-form-label"><span class="require-item">*</span>项目等级:</label>--%>
|
|
|
|
-<%-- <div class="layui-input-block">--%>
|
|
|
|
-<%-- <c:forEach items="${fns:getMainDictListOnProjectAdvent('attachment_project_grade')}" var="v">--%>
|
|
|
|
-<%-- <input type="radio" name="submitMoney" lay-filter="submitMoney" id="submitMoney" value="${v.value}" title="${v.label}" <c:if test="${ruralProjectRecords.submitMoney==v.value}">checked</c:if>>--%>
|
|
|
|
-<%-- </c:forEach>--%>
|
|
|
|
-<%-- <p style="color: red;font-size: 12px;">200万以上部队或政府项目及500万以上其它项目为A级,其余为B级</p>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-
|
|
|
|
-<%-- <c:if test="${ruralProjectRecords.createReportFlag}">--%>
|
|
|
|
-<%-- <div class="layui-item layui-col-sm6 lw7">--%>
|
|
|
|
-<%-- <label class="layui-form-label double-line"><span class="require-item">*</span>是否生成报告号:</label>--%>
|
|
|
|
-<%-- <div class="layui-input-block">--%>
|
|
|
|
-<%-- <div style="margin-right: 30px;">--%>
|
|
|
|
-<%-- <input type="checkbox" id="reportSwitch" <c:if test="${ruralProjectRecords.createReportFlag}">checked</c:if> lay-filter="reportSwitch" lay-skin="switch" lay-text="是|否">--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- </c:if>--%>
|
|
|
|
-
|
|
|
|
-<%-- <div class="layui-item layui-col-sm6 lw7">--%>
|
|
|
|
-<%-- <label class="layui-form-label double-line"><span class="require-item">*</span>送审规模(万元):</label>--%>
|
|
|
|
-<%-- <div class="layui-input-block">--%>
|
|
|
|
-<%-- <input path="submitScale" id="submitScale" maxlength="12" htmlEscape="false" onkeyup="wirteNum(this)" placeholder="请输入送审规模" class="form-control layui-input judgment number"/>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- <div class="layui-item layui-col-sm6 lw7">--%>
|
|
|
|
-<%-- <label class="layui-form-label double-line">工作开始日期:</label>--%>
|
|
|
|
-<%-- <div class="layui-input-block">--%>
|
|
|
|
-<%-- <input class="laydate-icondate form-control layui-input layer-date laydate-icon" style="background-color: #fff" readonly="readonly" id="startDate" name="startDate" placeholder="请选择开始日期" value="<fmt:formatDate value="${ruralProjectRecords.startDate}" pattern="yyyy-MM-dd"/>">--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- <div class="layui-item layui-col-sm6 lw7">--%>
|
|
|
|
-<%-- <label class="layui-form-label double-line">工作结束日期:</label>--%>
|
|
|
|
-<%-- <div class="layui-input-block">--%>
|
|
|
|
-<%-- <input class="laydate-icondate form-control layui-input layer-date laydate-icon" style="background-color: #fff" readonly="readonly" id="endingDate" name="endingDate" placeholder="请选择结束日期" value="<fmt:formatDate value="${ruralProjectRecords.endingDate}" pattern="yyyy-MM-dd"/>">--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- <div class="layui-item layui-col-sm6 lw7">--%>
|
|
|
|
-<%-- <label class="layui-form-label">创建日期:</label>--%>
|
|
|
|
-<%-- <div class="layui-input-block">--%>
|
|
|
|
-<%-- <input id="createDate" name="createDate" htmlEscape="false" value="<fmt:formatDate value="${edocEntity.createDate}" pattern="yyyy-MM-dd"/>" readonly="readonly" class="form-control judgment layui-input"/>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- <div class="layui-item layui-col-sm6 lw7">--%>
|
|
|
|
-<%-- <label class="layui-form-label"><span class="require-item">*</span>项目类别:</label>--%>
|
|
|
|
-<%-- <div class="layui-input-block readOnlyFFF">--%>
|
|
|
|
-<%--<%– <form:select placeholder="请选择" path="attachmentProjectSort" class="form-control judgment editable-select layui-input" id="attachmentProjectSort" value="${attachmentProjectSort}">–%>--%>
|
|
|
|
-<%--<%– <form:option value=""/>–%>--%>
|
|
|
|
-<%--<%– <form:options items="${fns:getMainDictList('attachment_project_sort_cost')}" itemLabel="label" itemValue="value" htmlEscape="false"/>–%>--%>
|
|
|
|
-<%--<%– </form:select>–%>--%>
|
|
|
|
-<%-- <span class="spanzj">与归档资料关联,请仔细选择</span>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- <div class="layui-item layui-col-sm6 lw7 with-textarea">--%>
|
|
|
|
-<%-- <label class="layui-form-label">工程概况:</label>--%>
|
|
|
|
-<%-- <div class="layui-input-block">--%>
|
|
|
|
-<%-- <input:textarea placeholder="请输入工程概况" path="projectDesc" htmlEscape="false" rows="4" maxlength="255" class="form-control "/>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- <div class="layui-item layui-col-sm6 lw7 with-textarea">--%>
|
|
|
|
-<%-- <label class="layui-form-label ">备注:</label>--%>
|
|
|
|
-<%-- <div class="layui-input-block">--%>
|
|
|
|
-<%-- <form:textarea placeholder="请输入备注" path="remarks" htmlEscape="false" rows="4" maxlength="255" class="form-control "/>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
-
|
|
|
|
-<%-- <div>--%>
|
|
|
|
-<%-- <div class="form-group-label"><h2><span class="require-item">*</span>委托方联系人信息</h2></div>--%>
|
|
|
|
-<%-- <div id="linkmanDiv" class="layui-item nav-btns" style="float: left;width: 155px">--%>
|
|
|
|
-<%-- <sys:gridselect1 id="linkman" url="${ctx}/workclientinfo/workClientInfo/linkmanList"--%>
|
|
|
|
-<%-- name="linkman.id" title="选择客户"--%>
|
|
|
|
-<%-- value="${ruralProjectRecords.workContractInfo.workClinetInfoIds}"--%>
|
|
|
|
-<%-- cssClass="form-control judgment" fieldLabels="联系人" fieldKeys="name"--%>
|
|
|
|
-<%-- searchLabel="联系人" searchKey="name"></sys:gridselect1>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-
|
|
|
|
-<%-- <div class="layui-item layui-col-xs12 form-table-container" style="padding:0px">--%>
|
|
|
|
-<%-- <table id="contentTable1" class="table table-bordered table-condensed details">--%>
|
|
|
|
-<%-- <thead>--%>
|
|
|
|
-<%-- <tr>--%>
|
|
|
|
-<%-- <th class="hide"></th>--%>
|
|
|
|
-<%-- <th width="20%"><font color="red">*</font>委托方</th>--%>
|
|
|
|
-<%-- <th width="20%">联系人姓名</th>--%>
|
|
|
|
-<%-- <th width="20%">联系方式1</th>--%>
|
|
|
|
-<%-- <th width="20%">联系方式2</th>--%>
|
|
|
|
-<%-- <th width="20%">操作</th>--%>
|
|
|
|
-<%-- </tr>--%>
|
|
|
|
-<%-- </thead>--%>
|
|
|
|
-<%-- <tbody id="workClientLinkmanList">--%>
|
|
|
|
-<%-- </tbody>--%>
|
|
|
|
-<%-- </table>--%>
|
|
|
|
<script type="text/template" id="workClientLinkmanTpl">//<!--
|
|
<script type="text/template" id="workClientLinkmanTpl">//<!--
|
|
|
|
|
|
</script>
|
|
</script>
|
|
@@ -1144,25 +613,6 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
-<%-- <div class="form-group layui-row">--%>
|
|
|
|
-<%-- <div class="form-group-label"><h2>施工方信息</h2></div>--%>
|
|
|
|
-<%-- <div class="layui-item nav-btns" style="float: left;width: 155px">--%>
|
|
|
|
-<%-- <sys:gridselectConstruction url="${ctx}/workclientinfo/workClientInfo/clientInfolist" id="constructionOrgList" title="选择施工单位"--%>
|
|
|
|
-<%-- cssClass="form-control required" fieldLabels="${fns:urlEncode('客户编号')}" fieldKeys="name" searchLabel="${fns:urlEncode('客户名称')}" searchKey="name"></sys:gridselectConstruction>--%>
|
|
|
|
-<%-- </div>--%>
|
|
|
|
-
|
|
|
|
-<%-- <div class="layui-item layui-col-xs12 form-table-container">--%>
|
|
|
|
-<%-- <table id="contentTable2" class="table table-bordered table-condensed details">--%>
|
|
|
|
-<%-- <thead>--%>
|
|
|
|
-<%-- <tr>--%>
|
|
|
|
-<%-- <th class="hide"></th>--%>
|
|
|
|
-<%-- <th style="text-align: center" width="20%">施工方单位名称</th>--%>
|
|
|
|
-<%-- <th style="text-align: center" width="20%">联系人姓名</th>--%>
|
|
|
|
-<%-- <th style="text-align: center" width="20%">联系方式1</th>--%>
|
|
|
|
-<%-- <th style="text-align: center" width="20%">联系方式2</th>--%>
|
|
|
|
-<%-- <th width="20%">操作</th>--%>
|
|
|
|
-<%-- </tr>--%>
|
|
|
|
-<%-- </thead>--%>
|
|
|
|
<tbody id="workConstructionLinkmanList">
|
|
<tbody id="workConstructionLinkmanList">
|
|
</tbody>
|
|
</tbody>
|
|
</table>
|
|
</table>
|