|
@@ -21,9 +21,9 @@
|
|
|
<div class="layui-form-item" style="margin-top: 10px;">
|
|
|
<input name="id" value="${data.id}" hidden>
|
|
|
<div class="layui-inline">
|
|
|
- <label class="layui-form-label">工程名称</label>
|
|
|
+ <label class="layui-form-label">*单体工程名称</label>
|
|
|
<div class="layui-input-inline">
|
|
|
- <input type="text" name="projectName" autocomplete="off" class="layui-input" value="${data.projectName}">
|
|
|
+ <input type="text" id="projectName" name="projectName" autocomplete="off" class="layui-input" value="${data.projectName}">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="layui-inline">
|
|
@@ -33,6 +33,12 @@
|
|
|
class="layui-input" value="<fmt:formatDate value="${data.createDate}" pattern="yyyy/MM/dd "/>" style="background-color: whitesmoke">
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="layui-inline">
|
|
|
+ <label class="layui-form-label">*单体工程编号</label>
|
|
|
+ <div class="layui-input-inline">
|
|
|
+ <input type="text" id="projectNo" name="projectNo" autocomplete="off" class="layui-input" value="${data.projectNo}">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</form>
|
|
|
<div style="margin: 20px;">
|
|
@@ -96,13 +102,23 @@
|
|
|
<script>
|
|
|
//修改工程id
|
|
|
function updateProject(){
|
|
|
+ if ($("#projectName").val()==null||$("#projectName").val()==""){
|
|
|
+ layer.msg("请输入工程名称",{icon:3});
|
|
|
+ throw SyntaxError;
|
|
|
+ }
|
|
|
+ if($("#projectNo").val()==null||$("#projectNo").val()==""){
|
|
|
+ layer.msg("请输入工程编号",{icon:3});
|
|
|
+ throw SyntaxError;
|
|
|
+ }
|
|
|
$.ajax({
|
|
|
type:"post",
|
|
|
url:"${ctx}/project/save",
|
|
|
// data:JSON.stringify({id:newid2,type:xmmc2,fee:fyje2}),
|
|
|
data:$('#updateForm').serialize(),
|
|
|
success:function(result){
|
|
|
- parent.location.reload();
|
|
|
+ layer.msg(result.msg, {icon: 5,offset:['38%','38%']},function () {
|
|
|
+ parent.location.reload();
|
|
|
+ });
|
|
|
}
|
|
|
});
|
|
|
}
|