apply_approve.html 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538
  1. <!DOCTYPE HTML>
  2. <html xmlns:th="http://www.thymeleaf.org"
  3. xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
  4. layout:decorate="~{admin/common/common}">
  5. <head>
  6. <title>申报项目</title>
  7. <style>
  8. .line {
  9. display: block;
  10. text-align: left;
  11. background-color: #fff;
  12. color: #333;
  13. border-bottom: 1px solid #0a6999;
  14. border-color: #fff;
  15. border-bottom: 1px solid #0a6999;
  16. margin-top: 10px;
  17. vertical-align: middle;
  18. padding: 4px 12px;
  19. height: 31px;
  20. line-height: 31px;
  21. font-size: 14px;
  22. font-weight: bold;
  23. }
  24. </style>
  25. </head>
  26. <body layout:fragment="content">
  27. <article class="page-container">
  28. <form class="form form-horizontal" id="form-projectApplication-approve">
  29. <input type="hidden" th:name="id" th:id="id" th:value="${projectApply.id}"/>
  30. <input type="hidden" th:name="companyInfo.company_id" th:id="companyId" th:value="${projectApply.company_id}"/>
  31. <input type="hidden" th:name="isDraft" th:id="isDraft" th:value="0"/>
  32. <div class="line">企业基本情况</div>
  33. <div id="companyInfo">
  34. <div class="row cl">
  35. <label class="form-label col-xs-4 col-sm-2"> 企业名称:</label>
  36. <div class="formControls col-xs-8 col-sm-4">
  37. <span>[[${companyInfo.company_name}]]</span>
  38. <input type="hidden" th:value="${companyInfo.id}" th:name="companyInfo.id"/>
  39. </div>
  40. <label class="form-label col-xs-4 col-sm-2"> 统一社会信用代码:</label>
  41. <div class="formControls col-xs-8 col-sm-4">
  42. <span>[[${companyInfo.uscc}]]</span>
  43. </div>
  44. </div>
  45. <div class="row cl">
  46. <label class="form-label col-xs-4 col-sm-2"> 组织机构代码:</label>
  47. <div class="formControls col-xs-8 col-sm-4">
  48. <span>[[${companyInfo.organization_code}]]</span>
  49. </div>
  50. <label class="form-label col-xs-4 col-sm-2"> 所属行业:</label>
  51. <div class="formControls col-xs-8 col-sm-4">
  52. <span>[[${companyInfo.industry_name}]]</span>
  53. </div>
  54. </div>
  55. <div class="row cl">
  56. <label class="form-label col-xs-4 col-sm-2"> 注册地点:</label>
  57. <div class="formControls col-xs-8 col-sm-4">
  58. <span>[[${companyInfo.registration_address}]]</span>
  59. </div>
  60. <label class="form-label col-xs-4 col-sm-2"><span class="c-red"></span>注册资金:</label>
  61. <div class="formControls col-xs-4 col-sm-2">
  62. <span class="select-box">
  63. <select class="select" disabled th:name="companyInfo.currency_unit" id="currency_unit">
  64. <option th:selected="${companyInfo.currency_unit==item.id}" th:each="item : ${currencyList}"
  65. th:value="${item.id}" th:text="${item.name}"/>
  66. </select>
  67. </span>
  68. </div>
  69. <div class="formControls col-xs-6 col-sm-2">
  70. <span>[[${companyInfo.registration_capital}]]</span>
  71. </div>
  72. </div>
  73. <div class="row cl">
  74. <label class="form-label col-xs-4 col-sm-2"> 法人代表姓名:</label>
  75. <div class="formControls col-xs-8 col-sm-4">
  76. <span>[[${companyInfo.legal_representative}]]</span>
  77. </div>
  78. <label class="form-label col-xs-4 col-sm-2"> 联系人姓名:</label>
  79. <div class="formControls col-xs-8 col-sm-4">
  80. <span>[[${companyInfo.contact}]]</span>
  81. </div>
  82. </div>
  83. <div class="row cl">
  84. <label class="form-label col-xs-4 col-sm-2"> 法人代表职务:</label>
  85. <div class="formControls col-xs-8 col-sm-4">
  86. <span>[[${companyInfo.lr_position}]]</span>
  87. </div>
  88. <label class="form-label col-xs-4 col-sm-2"> 联系人职务:</label>
  89. <div class="formControls col-xs-8 col-sm-4">
  90. <span>[[${companyInfo.contact_position}]]</span>
  91. </div>
  92. </div>
  93. <div class="row cl">
  94. <label class="form-label col-xs-4 col-sm-2"> 法人代表手机:</label>
  95. <div class="formControls col-xs-8 col-sm-4">
  96. <span>[[${companyInfo.lr_phone}]]</span>
  97. </div>
  98. <label class="form-label col-xs-4 col-sm-2"> 联系人手机:</label>
  99. <div class="formControls col-xs-8 col-sm-4">
  100. <span>[[${companyInfo.contact_phone}]]</span>
  101. </div>
  102. </div>
  103. <div class="row cl">
  104. <label class="form-label col-xs-4 col-sm-2"> 总资产:</label>
  105. <div class="formControls col-xs-4 col-sm-2">
  106. <input type="hidden" class="input-text" th:value="${companyInfo.currency_unit}"
  107. name="companyInfo.currency_unit" id="currency_unit"/>
  108. <span class="select-box">
  109. <select disabled class="select" th:name="total_assets_currency_unit">
  110. <option th:selected="${companyInfo.total_assets_currency_unit==item.id}"
  111. th:each="item : ${currencyList}"
  112. th:value="${item.id}" th:text="${item.name}"/>
  113. </select>
  114. </span>
  115. </div>
  116. <div class="formControls col-xs-6 col-sm-2">
  117. <span>[[${companyInfo.total_assets}]]</span>
  118. </div>
  119. <label class="form-label col-xs-4 col-sm-2"><span class="c-red"></span>固定资产净值:</label>
  120. <div class="formControls col-xs-4 col-sm-2">
  121. <span class="select-box">
  122. <select class="select" disabled th:name="companyInfo.fixed_assets_currency_unit">
  123. <option th:selected="${companyInfo.fixed_assets_currency_unit==item.id}"
  124. th:each="item : ${currencyList}" th:value="${item.id}" th:text="${item.name}"/>
  125. </select>
  126. </span>
  127. </div>
  128. <div class="formControls col-xs-6 col-sm-2">
  129. <span>[[${companyInfo.fixed_assets}]]</span>
  130. </div>
  131. </div>
  132. </div>
  133. <div class="line">企业经营情况</div>
  134. <table class="table table-border table-bordered table-bg table-hover">
  135. <thead>
  136. <tr class="text-c">
  137. <th>年份</th>
  138. <th th:each="item,iterStat: ${operationsInfo}">
  139. [[${item.year}]] 年
  140. <input type="hidden" th:value="${item.year}"
  141. th:name="${'operationsInfo['+iterStat.index+'].year'}"/>
  142. </th>
  143. </tr>
  144. </thead>
  145. <tbody>
  146. <tr class="text-c">
  147. <td>营业收入</td>
  148. <td th:each="item,iterStat: ${operationsInfo}">
  149. <input type="hidden" th:value="${item.cid}" th:name="${'operationsInfo['+iterStat.index+'].cid'}"/>
  150. <span>[[${item.operation_income}]]</span>
  151. </td>
  152. </tr>
  153. <tr class="text-c">
  154. <td>其中:产品销售收入</td>
  155. <td th:each="item,iterStat: ${operationsInfo}">
  156. <span>[[${item.sales_income}]]</span>
  157. </td>
  158. </tr>
  159. <tr class="text-c">
  160. <td>加工收入</td>
  161. <td th:each="item,iterStat: ${operationsInfo}">
  162. <span>[[${item.processing_income}]]</span>
  163. </td>
  164. </tr>
  165. <tr class="text-c">
  166. <td>入库税金</td>
  167. <td th:each="item,iterStat: ${operationsInfo}">
  168. <span>[[${item.storage_tax}]]</span>
  169. </td>
  170. </tr>
  171. <tr class="text-c">
  172. <td>其中:增值税</td>
  173. <td th:each="item,iterStat: ${operationsInfo}">
  174. <span>[[${item.added_value_tax}]]</span>
  175. </td>
  176. </tr>
  177. <tr class="text-c" hidden>
  178. <td>营业税</td>
  179. <td th:each="item,iterStat: ${operationsInfo}">
  180. <span>[[${item.business_tax}]]</span>
  181. </td>
  182. </tr>
  183. <tr class="text-c">
  184. <td>企业所得税</td>
  185. <td th:each="item,iterStat: ${operationsInfo}">
  186. <span>[[${item.corporate_income_tax}]]</span>
  187. </td>
  188. </tr>
  189. </tbody>
  190. </table>
  191. <div class="line">项目申报种类</div>
  192. <div class="row cl">
  193. <label class="form-label col-xs-4 col-sm-2"><span class="c-red"></span>项目大类:</label>
  194. <div class="formControls col-xs-8 col-sm-4">
  195. <span class="select-box">
  196. <select class="select" disabled th:name="project_type" id="project_type" onChange="changeType(this)">
  197. <option th:each="item : ${projectTypeList}" th:value="${item.id}"
  198. th:text="${item.type_name}" th:if="${projectApply.project_type}==${item.id}">
  199. </option>
  200. </select>
  201. </span>
  202. </div>
  203. <label class="form-label col-xs-4 col-sm-2"><span class="c-red"></span>项目小类:</label>
  204. <div class="formControls col-xs-8 col-sm-4">
  205. <span>[[${projectApply.project_name}]]</span>
  206. <input type="hidden" th:id="project_id" th:name="project_id" th:value="${projectApply.project_id}"/>
  207. </div>
  208. </div>
  209. <div class="row cl">
  210. <label class="form-label col-xs-4 col-sm-2"><span class="c-red"></span>项目名称:</label>
  211. <div class="formControls col-xs-8 col-sm-4">
  212. <input type="text" class="input-text" th:name="customize_name" id="customize_name" th:value="${projectApply.customize_name}">
  213. </div>
  214. </div>
  215. <div class="line">申报材料</div>
  216. <div class="row cl" id="applyMaterials">
  217. <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
  218. <table class="table table-border table-bordered table-bg table-hover">
  219. <thead>
  220. <tr class="text-c">
  221. <th>编号</th>
  222. <th>附件</th>
  223. <th>申请材料</th>
  224. </tr>
  225. </thead>
  226. <tbody>
  227. <tr class="text-c" th:each="model,iterStat:${applyMaterials}" th:object="${model}">
  228. <td th:text="${iterStat.index+1}"></td>
  229. <td>
  230. <div th:if="*{templateFile.file_url}">
  231. <a th:href="${fileUrl} + *{templateFile.file_url}" target="_blank" style="color: #5b98dd;">[[*{templateFile.file_name}]]</a>
  232. </div>
  233. <div th:unless="*{templateFile.file_url}">
  234. <span>[[*{templateFile.file_name}]]</span>
  235. </div>
  236. </td>
  237. <td class="td_material">
  238. <div th:if="*{fileDown!=null && material_type != 1 && material_type != 2}">
  239. <a th:href="${fileUrl} + *{fileDown.file_url}" target="_blank"
  240. style="color: #5b98dd;">[[*{fileDown.file_name}]]</a>
  241. </div>
  242. </td>
  243. </tr>
  244. </tbody>
  245. </table>
  246. </div>
  247. </div>
  248. <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'}"
  249. class="line">补充材料
  250. </div>
  251. <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'}"
  252. class="row cl"
  253. id="applyMaterials">
  254. <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
  255. <table class="table table-border table-bordered table-bg table-hover">
  256. <thead>
  257. <tr class="text-c">
  258. <th>类别</th>
  259. <th>附件</th>
  260. </tr>
  261. </thead>
  262. <tbody>
  263. <tr class="text-c">
  264. <td>专家审核意见</td>
  265. <td>
  266. <div th:if="${zxMaterials.file_url != null && zxMaterials.file_url != ''}">
  267. <a th:href="${fileUrl} + ${zxMaterials.file_url}" target="_blank"
  268. th:text="${zxMaterials.file_name}"
  269. style="color: #5b98dd;"></a>
  270. </div>
  271. </td>
  272. </tr>
  273. <tr class="text-c">
  274. <td>专家评审报告</td>
  275. <td>
  276. <div th:if="${csMaterials.file_url != null && csMaterials.file_url != ''}">
  277. <a th:href="${fileUrl} + ${csMaterials.file_url}" target="_blank"
  278. th:text="${csMaterials.file_name}"
  279. style="color: #5b98dd;"></a>
  280. </div>
  281. </td>
  282. </tr>
  283. <tr class="text-c">
  284. <td>专项审计报告</td>
  285. <td>
  286. <div th:if="${czMaterials.file_url != null && czMaterials.file_url != ''}">
  287. <a th:href="${fileUrl} + ${czMaterials.file_url}" target="_blank"
  288. th:text="${czMaterials.file_name}"
  289. style="color: #5b98dd;"></a>
  290. </div>
  291. </td>
  292. </tr>
  293. </tbody>
  294. </table>
  295. </div>
  296. </div>
  297. <div th:if="${(projectApply.approve_status == '5' && step == '2') || (projectApply.approve_status == '11' && step == '2')}"
  298. class="line"><span class="c-red">*</span>上传专项审计报告
  299. </div>
  300. <div th:if="${(projectApply.approve_status == '5' && step == '2') || (projectApply.approve_status == '11' && step == '2')}"
  301. class="row cl">
  302. <!--<label class="form-label col-xs-4 col-sm-2"><span>上传专项审计报告:</span></label>-->
  303. <div class="formControls col-xs-8 col-sm-9">
  304. <div class="uploader-thum-container">
  305. <div id="fileListPre" class="uploader-list"></div>
  306. <div id="filePicker">选择文件</div>
  307. </div>
  308. </div>
  309. </div>
  310. <div th:if="${(projectApply.approve_status == '5' && step == '1') || (projectApply.approve_status == '12' && step == '1')}"
  311. class="line"><span class="c-red">*</span>上传专家评审报告
  312. </div>
  313. <div th:if="${(projectApply.approve_status == '5' && step == '1') || (projectApply.approve_status == '12' && step == '1')}"
  314. class="row cl">
  315. <!--<label class="form-label col-xs-4 col-sm-2"><span>上传专家验收报告:</span></label>-->
  316. <div class="formControls col-xs-8 col-sm-9">
  317. <div class="uploader-thum-container">
  318. <div id="fileListPre" class="uploader-list"></div>
  319. <div id="filePicker">选择文件</div>
  320. </div>
  321. </div>
  322. </div>
  323. <div th:if="${projectApply.approve_status == '13'}"
  324. class="line"><span class="c-red">*</span>专家审核意见
  325. </div>
  326. <div th:if="${projectApply.approve_status == '13'}"
  327. class="row cl">
  328. <!--<label class="form-label col-xs-4 col-sm-2"><span>上传专家验收报告:</span></label>-->
  329. <div class="formControls col-xs-8 col-sm-9">
  330. <div class="uploader-thum-container">
  331. <div id="fileListPre" class="uploader-list"></div>
  332. <div id="filePicker">选择文件</div>
  333. </div>
  334. </div>
  335. </div>
  336. <div th:if="${projectApply.approve_status != '6'}" class="line">审核意见</div>
  337. <div th:if="${projectApply.approve_status != '6'}" class="row cl">
  338. <div class="col-xs-8 col-sm-9 col-xs-offset-2 col-sm-offset-1">
  339. <textarea class="textarea" id="approval_comment" th:name="approval_comment"
  340. placeholder="请输入审核意见"></textarea>
  341. </div>
  342. </div>
  343. <div th:if="${projectApply.approve_status == '6'}" class="line"><span class="c-red">*</span>发放金额</div>
  344. <div th:if="${projectApply.approve_status == '6'}" class="row cl">
  345. <div class="col-xs-8 col-sm-9 col-xs-offset-2 col-sm-offset-1">
  346. <input id="project_payment" th:name="project_payment"/>(万元)
  347. </div>
  348. </div>
  349. <div class="line">流程信息</div>
  350. <div class="row cl">
  351. <div class="col-xs-8 col-sm-9 col-xs-offset-2 col-sm-offset-1">
  352. <table class="table table-border table-bordered table-bg table-hover processTb">
  353. <thead>
  354. <tr class="text-c">
  355. <th>时间</th>
  356. <!-- <th>审核状态</th> -->
  357. <th>单位</th>
  358. <th>操作人</th>
  359. <th>操作</th>
  360. <th>审核意见</th>
  361. </tr>
  362. </thead>
  363. <tbody>
  364. <tr class="text-c" th:each="model,iterStat:${approvalList}" th:object="${model}">
  365. <td th:text="*{create_time}"></td>
  366. <!-- <td th:text="*{before_approvalstatus_str}"></td> -->
  367. <td th:text="*{department}"></td>
  368. <td th:text="*{create_name}"></td>
  369. <td th:text="*{oper_type}"></td>
  370. <td class="viewComment" th:data="*{approval_comment}" th:text="*{approval_comment}"></td>
  371. </tr>
  372. </tbody>
  373. </table>
  374. </div>
  375. </div>
  376. <div class="row cl">
  377. <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
  378. <input id="status" type="hidden" name="status"/>
  379. <input id="apply_id" type="hidden" name="apply_id" th:value="${projectApply.id}"/>
  380. <input id="before_approveStatus" type="hidden" name="before_approveStatus"
  381. th:value="${projectApply.approve_status}"/>
  382. <a th:if="${projectApply.approve_status != '6' && projectApply.approve_status != '5' && projectApply.approve_status != '11' && projectApply.approve_status != '12'&& projectApply.approve_status != '13'}"
  383. class="btn btn-primary radius" type="submit"
  384. onclick="audit(2)">&nbsp;&nbsp;通过&nbsp;&nbsp;</a>
  385. <a th:if="${projectApply.approve_status != '6' && projectApply.approve_status != '5' && projectApply.approve_status != '11' && projectApply.approve_status != '12'&& projectApply.approve_status != '13'}"
  386. class="btn btn-primary radius" type="submit"
  387. onclick="audit(1)">&nbsp;&nbsp;退回&nbsp;&nbsp;</a>
  388. <a th:if="${projectApply.approve_status != '6' && projectApply.approve_status != '5' && projectApply.approve_status != '11' && projectApply.approve_status != '12'&& projectApply.approve_status != '13'}"
  389. class="btn btn-primary radius" type="submit"
  390. onclick="audit(3)">&nbsp;&nbsp;不通过&nbsp;&nbsp;</a>
  391. <a th:if="${projectApply.approve_status == '6' && projectApply.apply_status != '3'}"
  392. class="btn btn-primary radius" type="submit"
  393. onclick="audit(4)">&nbsp;&nbsp;通知&nbsp;&nbsp;</a>
  394. <a th:if="${(projectApply.approve_status == '5' && step == '1') || (projectApply.approve_status == '12' && step == '1')}"
  395. class="btn btn-primary radius"
  396. type="submit"
  397. onclick="audit(5)">&nbsp;&nbsp;提交&nbsp;&nbsp;</a>
  398. <a th:if="${(projectApply.approve_status == '5' && step == '2') || (projectApply.approve_status == '11' && step == '2')}"
  399. class="btn btn-primary radius"
  400. type="submit"
  401. onclick="audit(6)">&nbsp;&nbsp;提交&nbsp;&nbsp;</a>
  402. <a th:if="${projectApply.approve_status == '13' }" class="btn btn-primary radius"
  403. type="submit"
  404. onclick="audit(7)">&nbsp;&nbsp;提交&nbsp;&nbsp;</a>
  405. <button onClick="removeIframe();" class="btn btn-default radius" type="button">&nbsp;&nbsp;返回&nbsp;&nbsp;</button>
  406. </div>
  407. </div>
  408. </form>
  409. </article>
  410. <script th:inline="javascript">
  411. $(function () {
  412. // 初始化上传
  413. var options = {
  414. uploadBtnId: '#filePicker',
  415. picturePreId: 'fileListPre',
  416. hiddenPictureUrl: 'img',
  417. hiddenPictureName: 'imgName',
  418. width: 81,
  419. height: 81,
  420. fileSizeLimit: 100 * 1024 * 1024,
  421. fileSingleSizeLimit: 100 * 1024 * 1024
  422. };
  423. var webUploadDoc = new $WebUploadDoc(options);
  424. webUploadDoc.init();
  425. });
  426. //status 1退回,2通过,3不通过,4通知,5处室上传,6财政上传.7中心窗口上传
  427. function audit(status) {
  428. $("#status").val(status);
  429. if ($("#approval_comment").val() && $("#approval_comment").val().length > 5000) {
  430. errorMessage('审核意见最多支持5000个字符!');
  431. return false;
  432. }
  433. if (status == 1 || status == 3) {
  434. //退回、不通过审核意见必填
  435. if ($.trim($("#approval_comment").val()) == "") {
  436. errorMessage('请填写审核意见!');
  437. return false;
  438. }
  439. }
  440. var reg = /^\d{1,7}(?:\.\d{1,4})?$/;
  441. if (status == 4) {
  442. //退回、不通过审核意见必填
  443. var num = $.trim($("#project_payment").val());
  444. if (num == "") {
  445. errorMessage('请填写发放金额!');
  446. return false;
  447. } else if (!num.match(reg)) {
  448. errorMessage('发放金额,整数部分最大七位,小数部分最大四位。');
  449. return false;
  450. }
  451. }
  452. if (status == 5 || status == 6 || status == 7) {
  453. //验证上传文件
  454. var formJson = $("#form-projectApplication-approve").serializeJSON();
  455. if (!formJson['fileDown.file_id']) {
  456. if ($("#filePicker").val() == null || $("#filePicker").val() == '') {
  457. errorMessage('请上传材料');
  458. return false;
  459. }
  460. }
  461. }
  462. if (status === 1){
  463. layer.confirm('确认退回吗?', function (index) {
  464. $("#form-projectApplication-approve").submit();
  465. });
  466. }
  467. else if(status === 3){
  468. layer.confirm('确认不通过吗?', function (index) {
  469. $("#form-projectApplication-approve").submit();
  470. });
  471. }
  472. else {
  473. $("#form-projectApplication-approve").submit();
  474. }
  475. }
  476. $(function () {
  477. $("#form-projectApplication-approve").validate({
  478. rules: {},
  479. messages: {},
  480. onkeyup: false,
  481. focusCleanup: true,
  482. success: "valid",
  483. submitHandler: function (form) {
  484. $(form).ajaxSubmit({
  485. type: 'post',
  486. url: pagePath + "/projectDeclaration/approve",
  487. dataType: "json",
  488. success: function (data) {
  489. if (data.success) {
  490. succeedMessage(data.message);
  491. setTimeClose();
  492. } else {
  493. errorMessage(data.message);
  494. }
  495. },
  496. error: function () {
  497. errorMessage('系统错误!');
  498. }
  499. });
  500. return false; // 非常重要,如果是false,则表明是不跳转,在本页上处理,也就是ajax,如果是非false,则传统的form跳转。
  501. }
  502. });
  503. //查看完整意见
  504. $(".viewComment").on("click", function () {
  505. layer.alert(
  506. $(this).attr('data'),
  507. {area: ['800px', '500px']}
  508. )
  509. });
  510. });
  511. /**
  512. * 取消
  513. */
  514. function removeIframe() {
  515. var index = parent.layer.getFrameIndex(window.name);
  516. parent.layer.close(index);
  517. }
  518. </script>
  519. </body>
  520. </html>