| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306 | 
							- <!DOCTYPE html>
 
- <html>
 
- <head>
 
-     <meta charset="utf-8"/>
 
-     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
 
-     <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
 
-     <title>企业管理</title>
 
-     <link rel="stylesheet" href="../../../assets/libs/layui/css/layui.css"/>
 
-     <link rel="stylesheet" href="../../../assets/module/formSelects/formSelects-v4.css"/>
 
-     <link rel="stylesheet" href="../../../assets/module/city-picker/city-picker.css"/>
 
-     <link rel="stylesheet" href="../../../assets/module/zTree/css/metroStyle/metroStyle.css"/>
 
-     <link rel="stylesheet" href="../../../assets/module/admin.css?v=312"/>
 
-     <link rel="stylesheet" href="../../../assets/module/uParas.css?v=312"/>
 
-     <script src="../../../assets/module/city-picker/city-picker.data.js"></script>
 
-     <style>
 
-         .layui-form-item{
 
-             margin-bottom: 0px!important;
 
-         }
 
-         .layui-form-label{
 
-             width     : 230px!important;
 
-             margin-top: 2px!important;
 
-         }
 
-         .layui-input-inline {
 
-             min-height: 36px;
 
-             margin-top: 2px!important;
 
-         }
 
-         .layui-input-block {
 
-             margin-left: 260px!important;
 
-             min-height : 36px;
 
-             margin-top : 2px!important;
 
-         }
 
-         /* 城市选择器自适应宽度 */
 
-         .city-picker-span {
 
-             width: auto!important;
 
-             padding-right: 20px !important;;
 
-             min-width: 163px !important;;
 
-         }
 
-         /* 日期组件不显示秒 */
 
-         .laydate-time-list li:last-child {
 
-             display: none;
 
-         }
 
-         .laydate-time-list li {
 
-             width: 50% !important;
 
-         }
 
-         .laydate-time-list ol li {
 
-             padding-left: 55px !important;
 
-             width: 100% !important;
 
-         }
 
-         .menuContent {
 
-             width: 368px;
 
-             /*max-width: 678px;*/
 
-             /*min-width: 264px;*/
 
-             display:none;
 
-             position: absolute;
 
-             top:32px;
 
-             left:0px;
 
-             background-color: #fff;
 
-             z-index: 10;
 
-             border: 1px solid #ccc;
 
-         }
 
-         .ztree * {
 
-             font-size: 13px;
 
-         }
 
-     </style>
 
- </head>
 
- <body>
 
- <!-- 页面加载loading -->
 
- <div class="page-loading">
 
-     <div class="ball-loader">
 
-         <span></span><span></span><span></span><span></span>
 
-     </div>
 
- </div>
 
- <!-- 正文开始 -->
 
-     <div class="layui-fluid">
 
-         <div class="layui-card" style="padding-bottom :75px;">
 
-             <div class="layui-card-header">
 
-                 项目部信息
 
-                 <div class="layui-inline pull-right">
 
-                     <button onclick="history.back()" class="layui-btn layui-btn-sm layui-btn-radius layui-btn-normal"><i class="layui-icon"></i>返回</button>
 
-                 </div>
 
-             </div>
 
-             <div class="layui-card-body">
 
-                 <!--项目部名称-->
 
-                 <form class="layui-form" id="thisform" lay-filter="thisform" style="width:1200px;margin-left:6%;">
 
-                     <input type="hidden" name="cId" id="cId"/>
 
-                     <input type="hidden" name="id" id="id"/>
 
-                     <div class="layui-form-item">
 
-                         <label class="layui-form-label">项目部名称:</label>
 
-                         <div class="layui-input-block">
 
-                             <input type="text" class="layui-input" readonly id="name"  name="name"
 
-                                    maxlength="180" style="width:663px;"/>
 
-                         </div>
 
-                     </div>
 
-                     <div class="layui-form-item">
 
-                         <label class="layui-form-label"> </label>
 
-                         <div class="layui-input-block" style="padding-left: 200px;padding-top: 30px;font-size: 17px;">五牌一图</div>
 
-                     </div>
 
-                     <div class="layui-form-item">
 
-                         <label class="layui-form-label">工程概况牌:</label>
 
-                         <div class="layui-input-block text-left">
 
-                             <div id="fileDiv0" style="padding-top: 10px;"></div>
 
-                         </div>
 
-                     </div>
 
-                     <div class="layui-form-item">
 
-                         <label class="layui-form-label">管理人员名单及监督电话牌:</label>
 
-                         <div class="layui-input-block text-left">
 
-                             <div id="fileDiv1" style="padding-top: 10px;"></div>
 
-                         </div>
 
-                     </div>
 
-                     <div class="layui-form-item">
 
-                         <label class="layui-form-label">消防保卫牌:</label>
 
-                         <div class="layui-input-block text-left">
 
-                             <div id="fileDiv2" style="padding-top: 10px;"></div>
 
-                         </div>
 
-                     </div>
 
-                     <div class="layui-form-item">
 
-                         <label class="layui-form-label">安全生产牌:</label>
 
-                         <div class="layui-input-block text-left">
 
-                             <div id="fileDiv3" style="padding-top: 10px;"></div>
 
-                         </div>
 
-                     </div>
 
-                     <div class="layui-form-item">
 
-                         <label class="layui-form-label">文明施工牌:</label>
 
-                         <div class="layui-input-block text-left">
 
-                             <div id="fileDiv4" style="padding-top: 10px;"></div>
 
-                         </div>
 
-                     </div>
 
-                     <div class="layui-form-item">
 
-                         <label class="layui-form-label">施工现场平面图:</label>
 
-                         <div class="layui-input-block text-left">
 
-                             <div id="fileDiv5" style="padding-top: 10px;"></div>
 
-                         </div>
 
-                     </div>
 
-                 </form>
 
-             </div>
 
-         </div>
 
-     </div>
 
- </form>
 
- <!-- js部分 -->
 
- <script type="text/javascript" src="../../../assets/libs/layui/layui.js"></script>
 
- <script type="text/javascript" src="../../../assets/js/common.js?v=312"></script>
 
- <script>
 
-     var uploadIndex = 0;
 
-     var $;
 
-     layui.use(['layer' ,'form' ,'admin' ,'zTree' ,'uParas' ,'laydate' ,'citypicker','upload'] ,function(){
 
-         $ = layui.jquery;
 
-         var layer  = layui.layer;
 
-         var form   = layui.form;
 
-         var admin  = layui.admin;
 
-         var uParas = layui.uParas;
 
-         var laydate= layui.laydate;
 
-         var cityPicker = layui.citypicker;
 
-         var upload = layui.upload;
 
-         var cId = uParas.getUrlParam('cId');
 
-         var url1 = uParas.baseUrl + '/gent/company/getProjDept/'+ cId;
 
-         admin.req(url1 ,{} ,function(resp) {
 
-             if (resp.code == 1) {
 
-                 form.val('thisform',resp.data );  // 回显数据
 
-                 var data = resp.data;
 
-                 // $('#id').val(data.id);
 
-                 // $('#name').val(data.name);
 
-                 renderUploadFile(0, data.attachOne, data.attachNameOne);
 
-                 renderUploadFile(1, data.attachTwo, data.attachNameTwo);
 
-                 renderUploadFile(2, data.attachThree, data.attachNameThree);
 
-                 renderUploadFile(3, data.attachFour, data.attachNameFour);
 
-                 renderUploadFile(4, data.attachFive, data.attachNameFive);
 
-                 renderUploadFile(5, data.attachSix, data.attachNameSix);
 
-             } else {
 
-                 layer.msg(resp.msg)
 
-             }
 
-         },'GET');
 
-         form.verify({
 
-             qymc: function(value) {
 
-                 if (value.length < 4) {
 
-                     return '公司名称至少4个字符!'
 
-                 }
 
-             },
 
-             // phone: [/^1\d{10}$/,'手机必须11位,只能是数字!'],
 
-             // email: [/^[a-z0-9._%-]+@([a-z0-9-]+\.)+[a-z]{2,4}$|^1[3|4|5|7|8]\d{9}$/, '邮箱格式不对'],
 
-         });
 
-         //上传实例
 
-         // upload.render({
 
-         //     // elem: '#test1', //绑定元素
 
-         //     elem: 'button[name="uploadBtn"]',
 
-         //     url: uParas.baseUrl+'/admin/uploadFile', //上传接口
 
-         //     accept:'image',
 
-         //     size:30720,//设置文件最大可允许上传的大小,单位 KB。不支持ie8/9
 
-         //     done: function(response){
 
-         //         $("#img_" + uploadIndex).remove();
 
-         //
 
-         //         //debugger
 
-         //         //上传完毕回调
 
-         //         //var response = eval('(' + responseObject.response + ')');
 
-         //         var ext = response.data.ext;
 
-         //         //文件图标
 
-         //         var icon = '';
 
-         //         if(ext === 'bmp' || ext === 'jpg' || ext === 'jpeg' || ext === 'png' || ext === 'gif'){
 
-         //             icon = '<img style="width: 30px;height: 30px;" src="/assets/module/img/uploader/img.png" alt="">';
 
-         //         }
 
-         //         //文件信息置入隐藏域
 
-         //         var html = '';
 
-         //         html+='<div id="img_'+ uploadIndex +'" style="height: 30px;padding-top: 6px;padding-right: 10px;" class="note note-danger note-bordered">';
 
-         //         // html+='<input type="hidden" name="attachTitle" value="' + response.data.oriFileName + '"/>';
 
-         //         var attachName = '';
 
-         //         var attachFileName = '';
 
-         //         switch (uploadIndex) {
 
-         //             case 0: attachName = 'attachOne'; attachFileName = 'attachNameOne'; break;
 
-         //             case 1: attachName = 'attachTwo'; attachFileName = 'attachNameTwo'; break;
 
-         //             case 2: attachName = 'attachThree'; attachFileName = 'attachNameThree'; break;
 
-         //             case 3: attachName = 'attachFour'; attachFileName = 'attachNameFour'; break;
 
-         //             case 4: attachName = 'attachFive'; attachFileName = 'attachNameFive'; break;
 
-         //             default : attachName = 'attachSix'; attachFileName = 'attachNameSix';;
 
-         //         }
 
-         //         html+='<input type="hidden" name="'+ attachName +'" value="' + response.data.path + '"/>';
 
-         //         html+='<input type="hidden" name="'+ attachFileName +'" value="' + response.data.oriFileName + '"/>';
 
-         //         // html+='<input type="hidden" name="attachExt" value="' + response.data.ext + '"/>';
 
-         //         html+=icon;
 
-         //         html+='<a style="color: blueviolet;margin-left: 19px;" target="_blank" href="' + response.data.path + '">' + response.data.oriFileName + '</a>';
 
-         //         // html+='<a style="margin-left: 37px;color: indianred;float: right;margin-top: 5px;" class="delete-upImg" onclick="deleteFile(this)">删除</a>';
 
-         //         html+='<a onclick="deleteFile(this)">删除</a>';
 
-         //         html+='</div>';
 
-         //         $("#fileDiv" + uploadIndex).append(html);
 
-         //
 
-         //         renderUploadFile(uploadIndex);
 
-         //     }
 
-         //     ,error: function() {
 
-         //         //请求异常回调
 
-         //     }
 
-         // });
 
-         function renderUploadFile(index, path, fileName) {
 
-             if (fileName && fileName.length > 0 && path && path.length > 0) {
 
-                 //文件信息置入隐藏域
 
-                 // var icon = '<img style="width: 30px;height: 30px;" src="/assets/module/img/uploader/img.png" alt="">';
 
-                 var html = '';
 
-                 html+='<div id="img_'+ index +'" style="height: 30px;padding-top: 6px;padding-right: 10px;" class="note note-danger note-bordered">';
 
-                 // html+='<input type="hidden" name="attachTitle" value="' + response.data.oriFileName + '"/>';
 
-                 var attachName = '';
 
-                 switch (index) {
 
-                     case 0: attachName = 'attachOne'; break;
 
-                     case 1: attachName = 'attachTwo'; break;
 
-                     case 2: attachName = 'attachThree'; break;
 
-                     case 3: attachName = 'attachFour'; break;
 
-                     case 4: attachName = 'attachFive'; break;
 
-                     default : attachName = 'attachSix';
 
-                 }
 
-                 // html+='<input type="hidden" name="'+ attachName +'" value="' + path + '"/>';
 
-                 // html+='<input type="hidden" name="attachExt" value="' + response.data.ext + '"/>';
 
-                 // html+=icon;
 
-                 html+='<a style="color: blueviolet;margin-left: 19px;" target="_blank" href="' + path + '">' + fileName + '</a>';
 
-                 // html+='<a style="margin-left: 37px;color: indianred;float: right;margin-top: 5px;" class="delete-upImg" onclick="deleteFile(this)">删除</a>';
 
-                 // html+='<a onclick="deleteFile(this)">删除</a>';
 
-                 html+='</div>';
 
-                 $("#fileDiv" + index).append(html);
 
-             }
 
-         }
 
-         // 更新
 
-         // form.on('submit(formSubmit)' ,function(data) {
 
-         //     layer.load();
 
-         //
 
-         //     var url = uParas.baseUrl + '/gent/company/updateProjDept';
 
-         //     admin.req(url ,data.field ,function(resp){
 
-         //         layer.closeAll('loading');
 
-         //         if (resp.code == 1) {
 
-         //             layer.msg(resp.msg);
 
-         //             location.href ='./index.html';
 
-         //         } else {
 
-         //             layer.msg(resp.msg);
 
-         //         }
 
-         //     }, 'POST');
 
-         //
 
-         //     return false;
 
-         // });
 
-     });
 
-     //删除附件
 
-     // function deleteFile(obj) {
 
-     //     var pDiv = $(obj).parent();
 
-     //     pDiv.remove();
 
-     // }
 
- </script>
 
- </body>
 
- </html>
 
 
  |