| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538 |
- <!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;
- }
- </style>
- </head>
- <body layout:fragment="content">
- <article class="page-container">
- <form class="form form-horizontal" id="form-projectApplication-approve">
- <input type="hidden" th:name="id" th:id="id" th:value="${projectApply.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"/>
- <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">
- <span>[[${companyInfo.company_name}]]</span>
- <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">
- <span>[[${companyInfo.uscc}]]</span>
- </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">
- <span>[[${companyInfo.organization_code}]]</span>
- </div>
- <label class="form-label col-xs-4 col-sm-2"> 所属行业:</label>
- <div class="formControls col-xs-8 col-sm-4">
- <span>[[${companyInfo.industry_name}]]</span>
- </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">
- <span>[[${companyInfo.registration_address}]]</span>
- </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-2">
- <span class="select-box">
- <select class="select" disabled th:name="companyInfo.currency_unit" id="currency_unit">
- <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">
- <span>[[${companyInfo.registration_capital}]]</span>
- </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">
- <span>[[${companyInfo.legal_representative}]]</span>
- </div>
- <label class="form-label col-xs-4 col-sm-2"> 联系人姓名:</label>
- <div class="formControls col-xs-8 col-sm-4">
- <span>[[${companyInfo.contact}]]</span>
- </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">
- <span>[[${companyInfo.lr_position}]]</span>
- </div>
- <label class="form-label col-xs-4 col-sm-2"> 联系人职务:</label>
- <div class="formControls col-xs-8 col-sm-4">
- <span>[[${companyInfo.contact_position}]]</span>
- </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">
- <span>[[${companyInfo.lr_phone}]]</span>
- </div>
- <label class="form-label col-xs-4 col-sm-2"> 联系人手机:</label>
- <div class="formControls col-xs-8 col-sm-4">
- <span>[[${companyInfo.contact_phone}]]</span>
- </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-2">
- <input type="hidden" class="input-text" th:value="${companyInfo.currency_unit}"
- name="companyInfo.currency_unit" id="currency_unit"/>
- <span class="select-box">
- <select disabled class="select" th:name="total_assets_currency_unit">
- <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">
- <span>[[${companyInfo.total_assets}]]</span>
- </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-2">
- <span class="select-box">
- <select class="select" disabled th:name="companyInfo.fixed_assets_currency_unit">
- <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">
- <span>[[${companyInfo.fixed_assets}]]</span>
- </div>
- </div>
- </div>
- <div class="line">企业经营情况</div>
- <table class="table table-border table-bordered table-bg table-hover">
- <thead>
- <tr class="text-c">
- <th>年份</th>
- <th th:each="item,iterStat: ${operationsInfo}">
- [[${item.year}]] 年
- <input type="hidden" th:value="${item.year}"
- th:name="${'operationsInfo['+iterStat.index+'].year'}"/>
- </th>
- </tr>
- </thead>
- <tbody>
- <tr class="text-c">
- <td>营业收入</td>
- <td th:each="item,iterStat: ${operationsInfo}">
- <input type="hidden" th:value="${item.cid}" th:name="${'operationsInfo['+iterStat.index+'].cid'}"/>
- <span>[[${item.operation_income}]]</span>
- </td>
- </tr>
- <tr class="text-c">
- <td>其中:产品销售收入</td>
- <td th:each="item,iterStat: ${operationsInfo}">
- <span>[[${item.sales_income}]]</span>
- </td>
- </tr>
- <tr class="text-c">
- <td>加工收入</td>
- <td th:each="item,iterStat: ${operationsInfo}">
- <span>[[${item.processing_income}]]</span>
- </td>
- </tr>
- <tr class="text-c">
- <td>入库税金</td>
- <td th:each="item,iterStat: ${operationsInfo}">
- <span>[[${item.storage_tax}]]</span>
- </td>
- </tr>
- <tr class="text-c">
- <td>其中:增值税</td>
- <td th:each="item,iterStat: ${operationsInfo}">
- <span>[[${item.added_value_tax}]]</span>
- </td>
- </tr>
- <tr class="text-c" hidden>
- <td>营业税</td>
- <td th:each="item,iterStat: ${operationsInfo}">
- <span>[[${item.business_tax}]]</span>
- </td>
- </tr>
- <tr class="text-c">
- <td>企业所得税</td>
- <td th:each="item,iterStat: ${operationsInfo}">
- <span>[[${item.corporate_income_tax}]]</span>
- </td>
- </tr>
- </tbody>
- </table>
- <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">
- <span class="select-box">
- <select class="select" disabled th:name="project_type" id="project_type" onChange="changeType(this)">
- <option th:each="item : ${projectTypeList}" th:value="${item.id}"
- th:text="${item.type_name}" th:if="${projectApply.project_type}==${item.id}">
- </option>
- </select>
- </span>
- </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">
- <span>[[${projectApply.project_name}]]</span>
- <input type="hidden" th:id="project_id" th:name="project_id" th:value="${projectApply.project_id}"/>
- </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">
- <input type="text" class="input-text" th:name="customize_name" id="customize_name" th:value="${projectApply.customize_name}">
- </div>
- </div>
- <div class="line">申报材料</div>
- <div class="row cl" id="applyMaterials">
- <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
- <table class="table table-border table-bordered table-bg table-hover">
- <thead>
- <tr class="text-c">
- <th>编号</th>
- <th>附件</th>
- <th>申请材料</th>
- </tr>
- </thead>
- <tbody>
- <tr class="text-c" th:each="model,iterStat:${applyMaterials}" th:object="${model}">
- <td th:text="${iterStat.index+1}"></td>
- <td>
- <div th:if="*{templateFile.file_url}">
- <a th:href="${fileUrl} + *{templateFile.file_url}" target="_blank" style="color: #5b98dd;">[[*{templateFile.file_name}]]</a>
- </div>
- <div th:unless="*{templateFile.file_url}">
- <span>[[*{templateFile.file_name}]]</span>
- </div>
- </td>
- <td class="td_material">
- <div th:if="*{fileDown!=null && material_type != 1 && material_type != 2}">
- <a th:href="${fileUrl} + *{fileDown.file_url}" target="_blank"
- style="color: #5b98dd;">[[*{fileDown.file_name}]]</a>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <div th:if="${projectApply.approve_status == '6' || projectApply.approve_status == '5' || projectApply.approve_status == '4' || projectApply.approve_status == '11' || projectApply.approve_status == '12'||projectApply.approve_status == '13'}"
- class="line">补充材料
- </div>
- <div th:if="${projectApply.approve_status == '6' || projectApply.approve_status == '5' || projectApply.approve_status == '4' || projectApply.approve_status == '11' || projectApply.approve_status == '12'||projectApply.approve_status == '13'}"
- class="row cl"
- id="applyMaterials">
- <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
- <table class="table table-border table-bordered table-bg table-hover">
- <thead>
- <tr class="text-c">
- <th>类别</th>
- <th>附件</th>
- </tr>
- </thead>
- <tbody>
- <tr class="text-c">
- <td>专家审核意见</td>
- <td>
- <div th:if="${zxMaterials.file_url != null && zxMaterials.file_url != ''}">
- <a th:href="${fileUrl} + ${zxMaterials.file_url}" target="_blank"
- th:text="${zxMaterials.file_name}"
- style="color: #5b98dd;"></a>
- </div>
- </td>
- </tr>
- <tr class="text-c">
- <td>专家评审报告</td>
- <td>
- <div th:if="${csMaterials.file_url != null && csMaterials.file_url != ''}">
- <a th:href="${fileUrl} + ${csMaterials.file_url}" target="_blank"
- th:text="${csMaterials.file_name}"
- style="color: #5b98dd;"></a>
- </div>
- </td>
- </tr>
- <tr class="text-c">
- <td>专项审计报告</td>
- <td>
- <div th:if="${czMaterials.file_url != null && czMaterials.file_url != ''}">
- <a th:href="${fileUrl} + ${czMaterials.file_url}" target="_blank"
- th:text="${czMaterials.file_name}"
- style="color: #5b98dd;"></a>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <div th:if="${(projectApply.approve_status == '5' && step == '2') || (projectApply.approve_status == '11' && step == '2')}"
- class="line"><span class="c-red">*</span>上传专项审计报告
- </div>
- <div th:if="${(projectApply.approve_status == '5' && step == '2') || (projectApply.approve_status == '11' && step == '2')}"
- class="row cl">
- <!--<label class="form-label col-xs-4 col-sm-2"><span>上传专项审计报告:</span></label>-->
- <div class="formControls col-xs-8 col-sm-9">
- <div class="uploader-thum-container">
- <div id="fileListPre" class="uploader-list"></div>
- <div id="filePicker">选择文件</div>
- </div>
- </div>
- </div>
- <div th:if="${(projectApply.approve_status == '5' && step == '1') || (projectApply.approve_status == '12' && step == '1')}"
- class="line"><span class="c-red">*</span>上传专家评审报告
- </div>
- <div th:if="${(projectApply.approve_status == '5' && step == '1') || (projectApply.approve_status == '12' && step == '1')}"
- class="row cl">
- <!--<label class="form-label col-xs-4 col-sm-2"><span>上传专家验收报告:</span></label>-->
- <div class="formControls col-xs-8 col-sm-9">
- <div class="uploader-thum-container">
- <div id="fileListPre" class="uploader-list"></div>
- <div id="filePicker">选择文件</div>
- </div>
- </div>
- </div>
- <div th:if="${projectApply.approve_status == '13'}"
- class="line"><span class="c-red">*</span>专家审核意见
- </div>
- <div th:if="${projectApply.approve_status == '13'}"
- class="row cl">
- <!--<label class="form-label col-xs-4 col-sm-2"><span>上传专家验收报告:</span></label>-->
- <div class="formControls col-xs-8 col-sm-9">
- <div class="uploader-thum-container">
- <div id="fileListPre" class="uploader-list"></div>
- <div id="filePicker">选择文件</div>
- </div>
- </div>
- </div>
- <div th:if="${projectApply.approve_status != '6'}" class="line">审核意见</div>
- <div th:if="${projectApply.approve_status != '6'}" class="row cl">
- <div class="col-xs-8 col-sm-9 col-xs-offset-2 col-sm-offset-1">
- <textarea class="textarea" id="approval_comment" th:name="approval_comment"
- placeholder="请输入审核意见"></textarea>
- </div>
- </div>
- <div th:if="${projectApply.approve_status == '6'}" class="line"><span class="c-red">*</span>发放金额</div>
- <div th:if="${projectApply.approve_status == '6'}" class="row cl">
- <div class="col-xs-8 col-sm-9 col-xs-offset-2 col-sm-offset-1">
- <input id="project_payment" th:name="project_payment"/>(万元)
- </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 class="viewComment" th:data="*{approval_comment}" 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">
- <input id="status" type="hidden" name="status"/>
- <input id="apply_id" type="hidden" name="apply_id" th:value="${projectApply.id}"/>
- <input id="before_approveStatus" type="hidden" name="before_approveStatus"
- th:value="${projectApply.approve_status}"/>
- <a th:if="${projectApply.approve_status != '6' && projectApply.approve_status != '5' && projectApply.approve_status != '11' && projectApply.approve_status != '12'&& projectApply.approve_status != '13'}"
- class="btn btn-primary radius" type="submit"
- onclick="audit(2)"> 通过 </a>
- <a th:if="${projectApply.approve_status != '6' && projectApply.approve_status != '5' && projectApply.approve_status != '11' && projectApply.approve_status != '12'&& projectApply.approve_status != '13'}"
- class="btn btn-primary radius" type="submit"
- onclick="audit(1)"> 退回 </a>
- <a th:if="${projectApply.approve_status != '6' && projectApply.approve_status != '5' && projectApply.approve_status != '11' && projectApply.approve_status != '12'&& projectApply.approve_status != '13'}"
- class="btn btn-primary radius" type="submit"
- onclick="audit(3)"> 不通过 </a>
- <a th:if="${projectApply.approve_status == '6' && projectApply.apply_status != '3'}"
- class="btn btn-primary radius" type="submit"
- onclick="audit(4)"> 通知 </a>
- <a th:if="${(projectApply.approve_status == '5' && step == '1') || (projectApply.approve_status == '12' && step == '1')}"
- class="btn btn-primary radius"
- type="submit"
- onclick="audit(5)"> 提交 </a>
- <a th:if="${(projectApply.approve_status == '5' && step == '2') || (projectApply.approve_status == '11' && step == '2')}"
- class="btn btn-primary radius"
- type="submit"
- onclick="audit(6)"> 提交 </a>
- <a th:if="${projectApply.approve_status == '13' }" class="btn btn-primary radius"
- type="submit"
- onclick="audit(7)"> 提交 </a>
- <button onClick="removeIframe();" class="btn btn-default radius" type="button"> 返回 </button>
- </div>
- </div>
- </form>
- </article>
- <script th:inline="javascript">
- $(function () {
- // 初始化上传
- var options = {
- uploadBtnId: '#filePicker',
- picturePreId: 'fileListPre',
- hiddenPictureUrl: 'img',
- hiddenPictureName: 'imgName',
- width: 81,
- height: 81,
- fileSizeLimit: 100 * 1024 * 1024,
- fileSingleSizeLimit: 100 * 1024 * 1024
- };
- var webUploadDoc = new $WebUploadDoc(options);
- webUploadDoc.init();
- });
- //status 1退回,2通过,3不通过,4通知,5处室上传,6财政上传.7中心窗口上传
- function audit(status) {
- $("#status").val(status);
- if ($("#approval_comment").val() && $("#approval_comment").val().length > 5000) {
- errorMessage('审核意见最多支持5000个字符!');
- return false;
- }
- if (status == 1 || status == 3) {
- //退回、不通过审核意见必填
- if ($.trim($("#approval_comment").val()) == "") {
- errorMessage('请填写审核意见!');
- return false;
- }
- }
- var reg = /^\d{1,7}(?:\.\d{1,4})?$/;
- if (status == 4) {
- //退回、不通过审核意见必填
- var num = $.trim($("#project_payment").val());
- if (num == "") {
- errorMessage('请填写发放金额!');
- return false;
- } else if (!num.match(reg)) {
- errorMessage('发放金额,整数部分最大七位,小数部分最大四位。');
- return false;
- }
- }
- if (status == 5 || status == 6 || status == 7) {
- //验证上传文件
- var formJson = $("#form-projectApplication-approve").serializeJSON();
- if (!formJson['fileDown.file_id']) {
- if ($("#filePicker").val() == null || $("#filePicker").val() == '') {
- errorMessage('请上传材料');
- return false;
- }
- }
- }
- if (status === 1){
- layer.confirm('确认退回吗?', function (index) {
- $("#form-projectApplication-approve").submit();
- });
- }
- else if(status === 3){
- layer.confirm('确认不通过吗?', function (index) {
- $("#form-projectApplication-approve").submit();
- });
- }
- else {
- $("#form-projectApplication-approve").submit();
- }
- }
- $(function () {
- $("#form-projectApplication-approve").validate({
- rules: {},
- messages: {},
- onkeyup: false,
- focusCleanup: true,
- success: "valid",
- submitHandler: function (form) {
- $(form).ajaxSubmit({
- type: 'post',
- url: pagePath + "/projectDeclaration/approve",
- dataType: "json",
- success: function (data) {
- if (data.success) {
- succeedMessage(data.message);
- setTimeClose();
- } else {
- errorMessage(data.message);
- }
- },
- error: function () {
- errorMessage('系统错误!');
- }
- });
- return false; // 非常重要,如果是false,则表明是不跳转,在本页上处理,也就是ajax,如果是非false,则传统的form跳转。
- }
- });
- //查看完整意见
- $(".viewComment").on("click", function () {
- layer.alert(
- $(this).attr('data'),
- {area: ['800px', '500px']}
- )
- });
- });
- /**
- * 取消
- */
- function removeIframe() {
- var index = parent.layer.getFrameIndex(window.name);
- parent.layer.close(index);
- }
- </script>
- </body>
- </html>
|