| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297 |
- <!DOCTYPE HTML>
- <html xmlns:th="http://www.thymeleaf.org"
- xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
- layout:decorate="~{admin/common/common}">
- <head>
- <title>项目填报</title>
- <style>
- .line {
- display: block;
- text-align: left;
- background-color: #fff;
- color: #333;
- border-bottom: 1px solid #0a6999;
- border-color: #fff;
- border-bottom: 1px solid #0a6999;
- margin-top: 10px;
- vertical-align: middle;
- padding: 4px 12px;
- height: 31px;
- line-height: 31px;
- font-size: 14px;
- font-weight: bold;
- }
- .industry_name_show {
- display: block;
- }
- .industry_name_hide {
- display: none;
- }
- </style>
- </head>
- <body layout:fragment="content">
- <article class="page-container">
- <form class="form form-horizontal" id="form-projectFilling-edit">
- <input type="hidden" th:name="id" th:id="id" th:value="${projectApply.id}"/>
- <input type="hidden" th:name="apply_no" th:id="apply_no" th:value="${projectApply.apply_no}"/>
- <input type="hidden" th:name="apply_date" th:id="apply_date" th:value="${projectApply.apply_date}"/>
- <input type="hidden" th:name="declaration_id" th:id="declaration_id" th:value="${projectApply.declaration_id}"/>
- <input type="hidden" th:name="companyInfo.company_id" th:id="companyId" th:value="${projectApply.company_id}"/>
- <input type="hidden" th:name="isDraft" th:id="isDraft" th:value="0"/>
- <input type="hidden" th:name="fistTime" th:id="fistTime" th:value="0"/>
- <div class="line">企业基本情况</div>
- <div id="companyInfo">
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"> 企业名称:</label>
- <div class="formControls col-xs-8 col-sm-4">
- <input type="text" class="input-text" th:value="${companyInfo.company_name}" th:name="companyInfo.company_name" />
- <input type="hidden" th:value="${companyInfo.id}" th:name="companyInfo.id" />
- </div>
- <label class="form-label col-xs-4 col-sm-2"> 统一社会信用代码:</label>
- <div class="formControls col-xs-8 col-sm-4">
- <input type="text" class="input-text" th:name="companyInfo.uscc" th:value="${companyInfo.uscc}" hidden/>
- <span>[[${companyInfo.uscc}]]</span>
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"><span class="c-red"></span>所属行业:</label>
- <div class="formControls col-xs-8 col-sm-4">
- <span class="select-box">
- <select class="select" th:name="companyInfo.industry_code" id="industryTypeList">
- <option value="">--请选择--</option>
- <option value="" th:each="item : ${industryTypeList}" th:value="${item.value}"
- th:selected="${companyInfo.industry_code==item.value}"
- th:text="${item.name}">
- </option>
- </select>
- </span>
- </div>
- <label class="form-label col-xs-4 col-sm-2"> 组织机构代码:</label>
- <div class="formControls col-xs-8 col-sm-4">
- <input type="hidden" th:name="companyInfo.organization_code" th:value="${companyInfo.organization_code}" />
- <span th:value="${companyInfo.organization_code}" >[[${companyInfo.organization_code}]]</span>
- </div>
- </div>
- <div class="row cl" id="industry"
- th:class="${companyInfo.industry_name!=null&&companyInfo.industry_name!=''&&companyInfo.industry_code=='Empty'}?'industry_name_show row cl':'industry_name_hide row cl'">
- <label class="form-label col-xs-4 col-sm-2"><span class="c-red"></span>其它行业:</label>
- <div class="formControls col-xs-8 col-sm-3">
- <input type="text" class="input-text" value="" th:id="industry_name" th:name="companyInfo.industry_name"
- th:value="${companyInfo.industry_name}"
- placeholder="请输入所属行业"/>
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"> 注册地点:</label>
- <div class="formControls col-xs-8 col-sm-4">
- <input type="text" class="input-text"th:value="${companyInfo.registration_address}" th:name="companyInfo.registration_address" />
- </div>
- <label class="form-label col-xs-4 col-sm-2"><span class="c-red"></span>注册资金:</label>
- <div class="formControls col-xs-4 col-sm-1">
- <span class="select-box">
- <select class="select" th:name="companyInfo.currency_unit" id="currency_unit" >
- <!-- <option value="">--请选择货币单位--</option> -->
- <option th:selected="${companyInfo.currency_unit==item.id}" th:each="item : ${currencyList}"
- th:value="${item.id}" th:text="${item.name}"/>
- </select>
- </span>
- </div>
- <div class="formControls col-xs-6 col-sm-2" >
- <input type="text" class="input-text" th:id="registration_capital" th:name="companyInfo.registration_capital" th:value="${companyInfo.registration_capital}"/>
- </div>
- <div class="col-xs-4 col-sm-1">(万元)</div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"> 法人代表姓名:</label>
- <div class="formControls col-xs-8 col-sm-4">
- <input type="text" class="input-text" th:value="${companyInfo.legal_representative}" th:name="companyInfo.legal_representative" />
- </div>
- <label class="form-label col-xs-4 col-sm-2"> 联系人姓名:</label>
- <div class="formControls col-xs-8 col-sm-4">
- <input type="text" class="input-text" th:value="${companyInfo.contact}" th:name="companyInfo.contact"/>
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"> 法人代表职务:</label>
- <div class="formControls col-xs-8 col-sm-4">
- <input type="text" class="input-text" th:value="${companyInfo.lr_position}" th:name="companyInfo.lr_position" />
- </div>
- <label class="form-label col-xs-4 col-sm-2"> 联系人职务:</label>
- <div class="formControls col-xs-8 col-sm-4">
- <input type="text" class="input-text" th:value="${companyInfo.contact_position}" th:name="companyInfo.contact_position" />
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"> 法人代表手机:</label>
- <div class="formControls col-xs-8 col-sm-4">
- <input type="text" class="input-text" th:value="${companyInfo.lr_phone}" th:name="companyInfo.lr_phone" />
- </div>
- <label class="form-label col-xs-4 col-sm-2"> 联系人手机:</label>
- <div class="formControls col-xs-8 col-sm-4">
- <input type="text" class="input-text" th:value="${companyInfo.contact_phone}" th:name="companyInfo.contact_phone" />
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"> 总资产:</label>
- <div class="formControls col-xs-4 col-sm-1" >
- <!--<input type="hidden" class="input-text" th:value="${companyInfo.total_assets_currency_unit}" name="companyInfo.total_assets_currency_unit" id="total_assets_currency_unit"/>-->
- <span class="select-box">
- <select class="select" th:name="total_assets_currency_unit" >
- <!-- <option value="">--请选择货币单位--</option> -->
- <option th:selected="${companyInfo.total_assets_currency_unit==item.id}" th:each="item : ${currencyList}"
- th:value="${item.id}" th:text="${item.name}"/>
- </select>
- </span>
- </div>
- <div class="formControls col-xs-6 col-sm-2" >
- <input type="text" class="input-text" th:id="total_assets" th:value="${companyInfo.total_assets}" th:name="companyInfo.total_assets" />
- </div>
- <div class="col-xs-4 col-sm-1">(万元)</div>
- <label class="form-label col-xs-4 col-sm-2"><span class="c-red"></span>固定资产净值:</label>
- <div class="formControls col-xs-4 col-sm-1" >
- <span class="select-box">
- <select class="select" th:name="companyInfo.fixed_assets_currency_unit" >
- <!-- <option value="">--请选择货币单位--</option> -->
- <option th:selected="${companyInfo.fixed_assets_currency_unit==item.id}" th:each="item : ${currencyList}" th:value="${item.id}" th:text="${item.name}"/>
- </select>
- </span>
- </div>
- <div class="formControls col-xs-6 col-sm-2" >
- <input type="text" class="input-text" th:id="fixed_assets" th:value="${companyInfo.fixed_assets}" th:name="companyInfo.fixed_assets" />
- </div>
- <div class="col-xs-4 col-sm-1">(万元)</div>
- </div>
- </div>
- <!--<div class="line">项目申报种类</div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"><span class="c-red"></span>项目大类:</label>
- <div class="formControls col-xs-8 col-sm-4">
- <input type="hidden" th:name="super_type_name" th:id="super_type_name" th:value="${projectApply.super_type_name}"/>
- [[${projectApply.super_type_name}]]
- </div>
- <label class="form-label col-xs-4 col-sm-2"><span class="c-red"></span>服务事项:</label>
- <div class="formControls col-xs-8 col-sm-4">
- <input type="hidden" th:name="service_type_name" th:id="service_type_name" th:value="${projectApply.service_type_name}"/>
- [[${projectApply.service_type_name}]]
- </div>
- </div>-->
-
- <div class="line">申报材料</div>
- <div class="row cl" id="applyMaterials">
- <label class="form-label col-xs-4 col-sm-2">上传材料:</label>
- <div class="formControls col-xs-8 col-sm-9">
- <div class="uploader-thum-container">
- <div id="fileListPre" class="uploader-list">
- <!--<input th:type="hidden" th:value="${projectApply.fileDown.file_id}" name="fileId">-->
- <!--<input th:type="hidden" th:value="${projectApply.fileDown.file_name}" name="fileName">-->
- <th:block th:unless="${projectApply.fileDown.file_url} == null">
- <a th:href="${fileUrl} + ${projectApply.fileDown.file_url}" id="fileName" target="_blank">[[${projectApply.fileDown.file_name}]]</a>
- </th:block>
- </div>
- <div id="filePicker">选择文件</div>
- </div>
- </div>
- </div>
- <!--<div class="line">流程信息</div>
- <div class="row cl">
- <div class="col-xs-8 col-sm-9 col-xs-offset-2 col-sm-offset-1">
- <table class="table table-border table-bordered table-bg table-hover processTb">
- <thead>
- <tr class="text-c">
- <th>时间</th>
- <!– <th>审核状态</th> –>
- <th>单位</th>
- <th>操作人</th>
- <th>操作</th>
- <th>审核意见</th>
- </tr>
- </thead>
- <tbody>
- <tr class="text-c" th:each="model,iterStat:${approvalList}" th:object="${model}">
- <td th:text="*{create_time}"></td>
- <!– <td th:text="*{before_approvalstatus_str}"></td> –>
- <td th:text="*{department}"></td>
- <td th:text="*{create_name}"></td>
- <td th:text="*{oper_type}"></td>
- <td th:text="*{approval_comment}"></td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>-->
- <div class="row cl">
- <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
- <a class="btn btn-primary radius" onclick="saveDraft(1);" > 保存草稿 </a>
- <a class="btn btn-primary radius" onclick="saveDraft(0)" > 提交 </a>
- <button onClick="removeIframe();" class="btn btn-default radius" type="button"> 取消 </button>
- </div>
- </div>
- </form>
- </article>
- <script type="text/javascript" th:src="@{/js/company/project_filling/apply_edit.js}"></script>
- <script th:inline="javascript">
- /**
- * 初始化上传控件
- */
- var options = {
- uploadBtnId: '#filePicker',
- picturePreId: 'fileListPre',
- hiddenPictureUrl: 'img',
- hiddenPictureName: 'imgName',
- // accept : {
- // title : 'Images',
- // extensions : 'gif,jpg,jpeg,bmp,png',
- // mimeTypes : 'image/gif,image/jpg,image/jpeg,image/bmp,image/png'
- // },
- width: 81,
- height: 81,
- fileSizeLimit: 100 * 1024 * 1024,
- fileSingleSizeLimit: 100 * 1024 * 1024,
- // fileNumLimit: 1,
- append : false
- };
- var webUploadDoc = new $WebUploadDoc(options);
- webUploadDoc.init();
- var fileUrl = [[${fileUrl}]];
- $(function(){
- });
- $("#industryTypeList").change(function () {
- if ($('#industryTypeList option:selected').val() == "Empty") {
- $("#industry").show()
- } else {
- $("#industry").hide()
- }
- });
-
- function saveDraft(isDraft){
- $("#isDraft").val(isDraft);
- submit();
- }
-
- /**
- * 取消
- */
- function removeIframe(){
- var index = parent.layer.getFrameIndex(window.name);
- parent.layer.close(index);
- }
- //判断是否是第一次进入编辑页面且没有上传文件
- $("#filePicker").onclick=function () {
- $("#fistTime").val(1);
- console.log($("#fistTime").val());
- }
- </script>
- </body>
- </html>
|