list_modal.ejs 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652
  1. <% if (rptMsg) { %>
  2. <!--绑定表单角色-->
  3. <div class="modal fade" id="set-bdjs" data-backdrop="static">
  4. <div class="modal-dialog" role="document">
  5. <div class="modal-content">
  6. <div class="modal-header">
  7. <h5 class="modal-title">绑定表单角色</h5>
  8. </div>
  9. <div class="modal-body">
  10. <table class="table table-bordered">
  11. <thead>
  12. <tr>
  13. <th>序号</th>
  14. <th>表单角色</th>
  15. <th>签署人</th>
  16. </tr>
  17. </thead>
  18. <tbody>
  19. <% if (rptMsg && rptMsg.signature_cells && rptMsg.signature_cells.length > 0) { %>
  20. <% for (const [index,audit] of rptMsg.signature_cells.entries()) { %>
  21. <tr>
  22. <td><%- index+1 %></td>
  23. <td><%- audit.signature_name %></td>
  24. <td>
  25. <div class="d-flex justify-content-between align-items-center mx-2" id="<%- index %>_user" <% if (!(trInfo.rpt_audit && trInfo.rpt_audit[index] && trInfo.rpt_audit[index].uid)) { %>style="display: none" <% } %>>
  26. <% if (trInfo.rpt_audit && trInfo.rpt_audit[index] && trInfo.rpt_audit[index].uid) { %><span><%- trInfo.rpt_audit[index].name %></span><i class="fa fa-close text-danger remove-audit stamp-img" data-code="<%- index %>"></i><% } %>
  27. </div>
  28. <div class="dropdown select-audit" data-code="<%- index %>" <% if (trInfo.rpt_audit && trInfo.rpt_audit[index] && trInfo.rpt_audit[index].uid) { %>style="display: none" <% } %>>
  29. <button class="btn btn-outline-primary btn-sm dropdown-toggle" type="button" id="<%- index %>_dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  30. 选择审批人
  31. </button>
  32. <div class="dropdown-menu dropdown-menu-right" id="<%- index %>_dropdownMenu" aria-labelledby="<%- index %>_dropdownMenuButton" style="width:220px">
  33. <div class="mb-2 p-2"><input class="form-control form-control-sm gr-search"
  34. placeholder="姓名/手机 检索" autocomplete="off" data-code="<%- index %>"></div>
  35. <dl class="list-unstyled book-list">
  36. <% accountGroup.forEach((group, idx) => { %>
  37. <dt><a href="javascript: void(0);" class="acc-btn" data-groupid="<%- idx %>" data-type="hide"><i class="fa fa-plus-square"></i></a> <%- group.groupName %></dt>
  38. <div class="dd-content" data-toggleid="<%- idx %>">
  39. <% group.groupList.forEach(item => { %>
  40. <dd class="border-bottom p-2 mb-0 " data-id="<%- item.id %>" >
  41. <p class="mb-0 d-flex"><span class="text-primary"><%- item.name %></span><span
  42. class="ml-auto"><%- item.mobile %></span></p>
  43. <span class="text-muted"><%- item.role %></span>
  44. </dd>
  45. <% });%>
  46. </div>
  47. <% }) %>
  48. </dl>
  49. </div>
  50. </div>
  51. </td>
  52. </tr>
  53. <% } %>
  54. <% } %>
  55. </tbody>
  56. </table>
  57. </div>
  58. <div class="modal-footer">
  59. <button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal">取消</button>
  60. <button type="button" class="btn btn-sm btn-primary" id="bind_rpt_audit_btn">确定</button>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. <!-- 弹窗新建目录 -->
  66. <div class="modal fade" id="add-tips" data-backdrop="static">
  67. <div class="modal-dialog" role="document">
  68. <div class="modal-content">
  69. <div class="modal-header">
  70. <h5 class="modal-title">新建审批</h5>
  71. </div>
  72. <div class="modal-body">
  73. <h5>第<%= trDetailList && trDetailList[0] ? trDetailList[0].order : 1 %>期存在人员报表未签署,新增期后将无法进行签署,请确认是否新增?</h5>
  74. </div>
  75. <div class="modal-footer">
  76. <button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal">取消</button>
  77. <a class="btn btn-sm btn-primary" data-dismiss="modal" href="#add-catalogue" data-toggle="modal" data-target="#add-catalogue">确定</a>
  78. </div>
  79. </div>
  80. </div>
  81. </div>
  82. <div class="modal fade" id="add-catalogue" data-backdrop="static">
  83. <div class="modal-dialog" role="document">
  84. <div class="modal-content">
  85. <div class="modal-header">
  86. <h5 class="modal-title">新建审批</h5>
  87. </div>
  88. <div class="modal-body">
  89. <form>
  90. <div class="form-group">
  91. <!--<a href="#" class="float-right"><i class="fa fa-cog"></i></a>-->
  92. <label for="add-detail-code">期数</label>
  93. <input type="text" class="form-control form-control-sm" value="第<%- (!trDetailList || trDetailList.length === 0 ? '1' : (trDetailList && trDetailList.length >= 1 ? trDetailList[0].order + 1 : '')) %>期" readonly>
  94. </div>
  95. <div class="form-group">
  96. <!--<a href="#" class="float-right"><i class="fa fa-cog"></i></a>-->
  97. <label for="add-detail-code">编号</label>
  98. <input type="text" class="form-control form-control-sm" name="add_code" id="add-detail-code" placeholder="请输入编号" value="">
  99. </div>
  100. <div class="form-group">
  101. <label for="add-detail-time">日期</label>
  102. <input type="date" class="form-control form-control-sm" name="add_time" id="add-detail-time" placeholder="" value="<%- ctx.helper.dateTran(new Date(), 'YYYY-MM-DD')%>">
  103. </div>
  104. </form>
  105. </div>
  106. <div class="modal-footer">
  107. <button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal">取消</button>
  108. <button type="button" class="btn btn-sm btn-primary" id="add-detail-btn">确定添加</button>
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113. <% } %>
  114. <% if (trInfo.type === paymentConst.modes_value_object.safe) {%>
  115. <!-- 弹窗新建目录 -->
  116. <div class="modal fade" id="add-tips" data-backdrop="static">
  117. <div class="modal-dialog" role="document">
  118. <div class="modal-content">
  119. <div class="modal-header">
  120. <h5 class="modal-title">新建审批</h5>
  121. </div>
  122. <div class="modal-body">
  123. <h5>第<%= trDetailList && trDetailList[0] ? trDetailList[0].order : 1 %>期存在人员报表未签署,新增期后将无法进行签署,请确认是否新增?</h5>
  124. </div>
  125. <div class="modal-footer">
  126. <button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal">取消</button>
  127. <a class="btn btn-sm btn-primary" data-dismiss="modal" href="#add-catalogue" data-toggle="modal" data-target="#add-catalogue">确定</a>
  128. </div>
  129. </div>
  130. </div>
  131. </div>
  132. <div class="modal fade" id="add-catalogue" data-backdrop="static">
  133. <div class="modal-dialog" role="document">
  134. <div class="modal-content">
  135. <div class="modal-header">
  136. <h5 class="modal-title">新建审批</h5>
  137. </div>
  138. <div class="modal-body">
  139. <form>
  140. <div class="form-group">
  141. <!--<a href="#" class="float-right"><i class="fa fa-cog"></i></a>-->
  142. <label for="add-detail-code">期数</label>
  143. <input type="text" class="form-control form-control-sm" value="第<%- (!trDetailList || trDetailList.length === 0 ? '1' : (trDetailList && trDetailList.length >= 1 ? trDetailList[0].order + 1 : '')) %>期" readonly>
  144. </div>
  145. <div class="form-group">
  146. <!--<a href="#" class="float-right"><i class="fa fa-cog"></i></a>-->
  147. <label for="add-detail-code">编号</label>
  148. <input type="text" class="form-control form-control-sm" name="add_code" id="add-detail-code" placeholder="请输入编号" value="">
  149. </div>
  150. <div class="form-group">
  151. <label for="add-detail-time">日期</label>
  152. <input type="date" class="form-control form-control-sm" name="add_time" id="add-detail-time" placeholder="" value="<%- ctx.helper.dateTran(new Date(), 'YYYY-MM-DD')%>">
  153. </div>
  154. </form>
  155. </div>
  156. <div class="modal-footer">
  157. <button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal">取消</button>
  158. <button type="button" class="btn btn-sm btn-primary" id="add-detail-btn">确定添加</button>
  159. </div>
  160. </div>
  161. </div>
  162. </div>
  163. <% } %>
  164. <% if (trDetailList && trDetailList.length >= 1) { %>
  165. <!--删除期-->
  166. <div class="modal fade" id="del-qi" data-backdrop="static">
  167. <div class="modal-dialog" role="document">
  168. <form class="modal-content" action="<%- preUrl + '/delete' %>" method="post">
  169. <div class="modal-header">
  170. <h5 class="modal-title">删除</h5>
  171. </div>
  172. <div class="modal-body">
  173. <h5>确认删除「<%= trDetailList[0].code %>」?</h5>
  174. <h5>删除后,数据无法恢复,请谨慎操作。</h5>
  175. </div>
  176. <div class="modal-footer">
  177. <input type="hidden" name="detail_id" value="<%= trDetailList[0].id %>">
  178. <input type="hidden" name="_csrf_j" value="<%= ctx.csrf %>" />
  179. <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">取消</button>
  180. <button type="submit" class="btn btn-danger btn-sm">确定删除</button>
  181. </div>
  182. </form>
  183. </div>
  184. </div>
  185. <% } %>
  186. <div class="modal fade" id="sp-list" data-backdrop="static">
  187. <div class="modal-dialog modal-lg" role="document">
  188. <div class="modal-content">
  189. <div class="modal-header">
  190. <h5 class="modal-title">审批流程</h5>
  191. </div>
  192. <div class="modal-body">
  193. <div class="row">
  194. <div class="col-4">
  195. <div class="card mt-3">
  196. <ul class="list-group list-group-flush" id="auditor-list">
  197. </ul>
  198. </div>
  199. </div>
  200. <div class="col-8 modal-height-500" style="overflow: auto" id="audit-list">
  201. </div>
  202. </div>
  203. </div>
  204. <div class="modal-footer">
  205. <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">关闭</button>
  206. </div>
  207. </div>
  208. </div>
  209. </div>
  210. // 标段属性
  211. <div class="modal fade" id="bd-attr" data-backdrop="static">
  212. <div class="modal-dialog" role="document">
  213. <div class="modal-content">
  214. <div class="modal-header">
  215. <h5 class="modal-title">标段属性</h5>
  216. </div>
  217. <div class="modal-height-500" style="overflow-y: auto">
  218. <div class="modal-body">
  219. <ul class="nav nav-tabs nav-justified mb-2">
  220. <li class="nav-item">
  221. <a class="nav-link active" data-toggle="tab" href="#htxx" role="tab" aria-selected="true">合同信息</a>
  222. </li>
  223. <li class="nav-item">
  224. <a class="nav-link" data-toggle="tab" href="#cjdw" role="tab" aria-selected="false">参建单位</a>
  225. </li>
  226. <li class="nav-item">
  227. <a class="nav-link" data-toggle="tab" href="#jscs" role="tab">技术参数</a>
  228. </li>
  229. </ul>
  230. <div class="tab-content">
  231. <div class="tab-pane active" id="htxx">
  232. <div class="form-group">
  233. <div class="row">
  234. <div class="col-12 mb-2">
  235. <div class="input-group input-group-sm">
  236. <div class="input-group-prepend">
  237. <span class="input-group-text">建设项目名称</span>
  238. </div>
  239. <input type="text" class="form-control" value="项目A" id="build-name" maxlength="100" oninput="limitReturn(this)">
  240. </div>
  241. </div>
  242. <div class="col-12 mb-2">
  243. <div class="input-group input-group-sm">
  244. <div class="input-group-prepend">
  245. <span class="input-group-text" style="width:90px">合同编号</span>
  246. </div>
  247. <input type="text" class="form-control" value="" id="deal-code" maxlength="100" oninput="limitReturn(this)">
  248. </div>
  249. </div>
  250. <div class="col-12 mb-2">
  251. <div class="input-group input-group-sm">
  252. <div class="input-group-prepend">
  253. <span class="input-group-text" style="width:90px">合同名称</span>
  254. </div>
  255. <input type="text" class="form-control" value="" id="deal-name" maxlength="100" oninput="limitReturn(this)">
  256. </div>
  257. </div>
  258. <div class="col-12 mb-2">
  259. <div class="input-group input-group-sm">
  260. <div class="input-group-prepend">
  261. <span class="input-group-text" style="width:90px">工程类别</span>
  262. </div>
  263. <select class="form-control" id="project-type">
  264. <option value="">请选择</option>
  265. <option value="设计">设计</option>
  266. <option value="监理">监理</option>
  267. <option value="施工">施工</option>
  268. <option value="检测">检测</option>
  269. <option value="其他">其他</option>
  270. </select>
  271. </div>
  272. </div>
  273. <div class="col-12 mb-2">
  274. <div class="input-group input-group-sm">
  275. <div class="input-group-prepend">
  276. <span class="input-group-text" style="width:90px">合同类别</span>
  277. </div>
  278. <input type="text" class="form-control" value="" id="deal-type">
  279. </div>
  280. </div>
  281. <div class="col-12">
  282. <div class="input-group input-group-sm">
  283. <div class="input-group-prepend">
  284. <span class="input-group-text" style="width:90px">结算书编号</span>
  285. </div>
  286. <input type="text" class="form-control" value="" id="final-code">
  287. </div>
  288. </div>
  289. </div>
  290. </div>
  291. </div>
  292. <div class="tab-pane" id="cjdw">
  293. <div class="form-group mb-4">
  294. <label>建设单位:</label>
  295. <div class="row">
  296. <div class="col-12 mb-2">
  297. <div class="input-group input-group-sm">
  298. <div class="input-group-prepend">
  299. <span class="input-group-text">单位名称</span>
  300. </div>
  301. <input type="text" class="form-control" value="" id="build-company" maxlength="100" oninput="limitReturn(this)">
  302. </div>
  303. </div>
  304. <div class="col-6 pr-0">
  305. <div class="input-group input-group-sm">
  306. <div class="input-group-prepend">
  307. <span class="input-group-text">法人代表</span>
  308. </div>
  309. <input type="text" class="form-control" value="" id="build-corporation" maxlength="100" oninput="limitReturn(this)">
  310. </div>
  311. </div>
  312. <div class="col-6">
  313. <div class="input-group input-group-sm">
  314. <div class="input-group-prepend">
  315. <span class="input-group-text">签订日期</span>
  316. </div>
  317. <input type="date" class="form-control" value="" id="build-date">
  318. </div>
  319. </div>
  320. </div>
  321. </div>
  322. <div class="form-group mb-4">
  323. <label>承包单位1:</label>
  324. <div class="row">
  325. <div class="col-12 mb-2">
  326. <div class="input-group input-group-sm">
  327. <div class="input-group-prepend">
  328. <span class="input-group-text">单位名称</span>
  329. </div>
  330. <input type="text" class="form-control" value="" id="contract1-company" maxlength="100" oninput="limitReturn(this)">
  331. </div>
  332. </div>
  333. <div class="col-6 pr-0">
  334. <div class="input-group input-group-sm">
  335. <div class="input-group-prepend">
  336. <span class="input-group-text">法人代表</span>
  337. </div>
  338. <input type="text" class="form-control" value="" id="contract1-corporation" maxlength="100" oninput="limitReturn(this)">
  339. </div>
  340. </div>
  341. <div class="col-6">
  342. <div class="input-group input-group-sm">
  343. <div class="input-group-prepend">
  344. <span class="input-group-text">签订日期</span>
  345. </div>
  346. <input type="date" class="form-control" value="" id="contract1-date">
  347. </div>
  348. </div>
  349. <div class="col-12 mt-2">
  350. <div class="input-group input-group-sm">
  351. <div class="input-group-prepend">
  352. <span class="input-group-text">项目经理部</span>
  353. </div>
  354. <input type="text" class="form-control" value="" id="contract1-management" maxlength="100" oninput="limitReturn(this)">
  355. </div>
  356. </div>
  357. </div>
  358. </div>
  359. <div class="form-group mb-4">
  360. <label>承包单位2:</label>
  361. <div class="row">
  362. <div class="col-12 mb-2">
  363. <div class="input-group input-group-sm">
  364. <div class="input-group-prepend">
  365. <span class="input-group-text">单位名称</span>
  366. </div>
  367. <input type="text" class="form-control" value="" id="contract2-company" maxlength="100" oninput="limitReturn(this)">
  368. </div>
  369. </div>
  370. <div class="col-6 pr-0">
  371. <div class="input-group input-group-sm">
  372. <div class="input-group-prepend">
  373. <span class="input-group-text">法人代表</span>
  374. </div>
  375. <input type="text" class="form-control" value="" id="contract2-corporation" maxlength="100" oninput="limitReturn(this)">
  376. </div>
  377. </div>
  378. <div class="col-6">
  379. <div class="input-group input-group-sm">
  380. <div class="input-group-prepend">
  381. <span class="input-group-text">签订日期</span>
  382. </div>
  383. <input type="date" class="form-control" value="" id="contract2-date">
  384. </div>
  385. </div>
  386. </div>
  387. </div>
  388. <div class="form-group mb-4">
  389. <label>监理单位1:</label>
  390. <div class="row">
  391. <div class="col-12 mb-2">
  392. <div class="input-group input-group-sm">
  393. <div class="input-group-prepend">
  394. <span class="input-group-text">单位名称</span>
  395. </div>
  396. <input type="text" class="form-control" value="" id="supervision1-company" maxlength="100" oninput="limitReturn(this)">
  397. </div>
  398. </div>
  399. <div class="col-6 pr-0">
  400. <div class="input-group input-group-sm">
  401. <div class="input-group-prepend">
  402. <span class="input-group-text">法人代表</span>
  403. </div>
  404. <input type="text" class="form-control" value="" id="supervision1-corporation" maxlength="100" oninput="limitReturn(this)">
  405. </div>
  406. </div>
  407. <div class="col-6">
  408. <div class="input-group input-group-sm">
  409. <div class="input-group-prepend">
  410. <span class="input-group-text">签订日期</span>
  411. </div>
  412. <input type="date" class="form-control" value="" id="supervision1-date">
  413. </div>
  414. </div>
  415. </div>
  416. </div>
  417. <div class="form-group">
  418. <label>监理单位2:</label>
  419. <div class="row">
  420. <div class="col-12 mb-2">
  421. <div class="input-group input-group-sm">
  422. <div class="input-group-prepend">
  423. <span class="input-group-text">单位名称</span>
  424. </div>
  425. <input type="text" class="form-control" value="" id="supervision2-company" maxlength="100" oninput="limitReturn(this)">
  426. </div>
  427. </div>
  428. <div class="col-6 pr-0">
  429. <div class="input-group input-group-sm">
  430. <div class="input-group-prepend">
  431. <span class="input-group-text">法人代表</span>
  432. </div>
  433. <input type="text" class="form-control" value="" id="supervision2-corporation" maxlength="100" oninput="limitReturn(this)">
  434. </div>
  435. </div>
  436. <div class="col-6">
  437. <div class="input-group input-group-sm">
  438. <div class="input-group-prepend">
  439. <span class="input-group-text">签订日期</span>
  440. </div>
  441. <input type="date" class="form-control" value="" id="supervision2-date">
  442. </div>
  443. </div>
  444. </div>
  445. </div>
  446. <div class="form-group">
  447. <label>检测单位:</label>
  448. <div class="row">
  449. <div class="col-12 mb-2">
  450. <div class="input-group input-group-sm">
  451. <div class="input-group-prepend">
  452. <span class="input-group-text">单位名称</span>
  453. </div>
  454. <input type="text" class="form-control" value="" id="detect-company" maxlength="100" oninput="limitReturn(this)">
  455. </div>
  456. </div>
  457. <div class="col-6 pr-0">
  458. <div class="input-group input-group-sm">
  459. <div class="input-group-prepend">
  460. <span class="input-group-text">法人代表</span>
  461. </div>
  462. <input type="text" class="form-control" value="" id="detect-corporation" maxlength="100" oninput="limitReturn(this)">
  463. </div>
  464. </div>
  465. <div class="col-6">
  466. <div class="input-group input-group-sm">
  467. <div class="input-group-prepend">
  468. <span class="input-group-text">签订日期</span>
  469. </div>
  470. <input type="date" class="form-control" value="" id="detect-date">
  471. </div>
  472. </div>
  473. </div>
  474. </div>
  475. </div>
  476. <div class="tab-pane" id="jscs">
  477. <div class="form-group">
  478. <div class="row">
  479. <div class="col-6 pr-0 mb-2">
  480. <div class="input-group input-group-sm">
  481. <div class="input-group-prepend">
  482. <span class="input-group-text">公路等级</span>
  483. </div>
  484. <select class="form-control" id="load-level">
  485. <option>高速公路</option>
  486. <option>一级公路</option>
  487. <option>二级公路</option>
  488. <option>三级公路</option>
  489. <option>四级公路</option>
  490. </select>
  491. </div>
  492. </div>
  493. <div class="col-6">
  494. <div class="input-group input-group-sm">
  495. <div class="input-group-prepend">
  496. <span class="input-group-text" style="width:90px">长度(KM)</span>
  497. </div>
  498. <input type="text" class="form-control" value="" id="length" min="0" max="10000"
  499. oninput="limitDealParamLength(this);limitReturn(this);" onchange="checkNumberValid(this)">
  500. </div>
  501. </div>
  502. <div class="col-6 pr-0 mb-2">
  503. <div class="input-group input-group-sm">
  504. <div class="input-group-prepend">
  505. <span class="input-group-text">起始桩号</span>
  506. </div>
  507. <input type="text" class="form-control" value="" id="start-peg" maxlength="100" oninput="limitReturn(this)">
  508. </div>
  509. </div>
  510. <div class="col-6">
  511. <div class="input-group input-group-sm">
  512. <div class="input-group-prepend">
  513. <span class="input-group-text" style="width:90px">终止桩号</span>
  514. </div>
  515. <input type="text" class="form-control" value="" id="end-peg" maxlength="100" oninput="limitReturn(this)">
  516. </div>
  517. </div>
  518. <div class="col-6 pr-0 mb-2">
  519. <div class="input-group input-group-sm">
  520. <div class="input-group-prepend">
  521. <span class="input-group-text" style="width:66px">车道数</span>
  522. </div>
  523. <input type="text" class="form-control" value="" id="lane-count" maxlength="100" oninput="limitReturn(this)">
  524. </div>
  525. </div>
  526. <div class="col-6">
  527. <div class="input-group input-group-sm">
  528. <div class="input-group-prepend">
  529. <span class="input-group-text" style="width:90px">合同工期</span>
  530. </div>
  531. <input type="text" class="form-control" value="" id="deal-period" maxlength="100" oninput="limitReturn(this)">
  532. </div>
  533. </div>
  534. <div class="col-6 pr-0 mb-2">
  535. <div class="input-group input-group-sm">
  536. <div class="input-group-prepend">
  537. <span class="input-group-text">开工日期</span>
  538. </div>
  539. <input type="date" class="form-control" value="" id="start-date">
  540. </div>
  541. </div>
  542. <div class="col-6">
  543. <div class="input-group input-group-sm">
  544. <div class="input-group-prepend">
  545. <span class="input-group-text">计划完工日期</span>
  546. </div>
  547. <input type="date" class="form-control" value="" id="plan-end-date">
  548. </div>
  549. </div>
  550. <div class="col-6 pr-0 mb-2">
  551. <div class="input-group input-group-sm">
  552. <div class="input-group-prepend">
  553. <span class="input-group-text">实际开工日期</span>
  554. </div>
  555. <input type="date" class="form-control" value="" id="real-start-date">
  556. </div>
  557. </div>
  558. <div class="col-6">
  559. <div class="input-group input-group-sm">
  560. <div class="input-group-prepend">
  561. <span class="input-group-text">实际完工日期</span>
  562. </div>
  563. <input type="date" class="form-control" value="" id="real-end-date">
  564. </div>
  565. </div>
  566. <div class="col-12">
  567. <div class="input-group input-group-sm">
  568. <div class="input-group-prepend">
  569. <span class="input-group-text">构造物规模</span>
  570. </div>
  571. <textarea class="form-control" id="structure-scale"></textarea>
  572. </div>
  573. </div>
  574. </div>
  575. </div>
  576. </div>
  577. </div>
  578. </div>
  579. </div>
  580. <div class="modal-footer">
  581. <button class="btn btn-sm btn-primary mr-auto" data-toggle="modal" data-target="#sync-attr">从计量标段同步</button>
  582. <button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal">取消</button>
  583. <button type="button" class="btn btn-sm btn-primary" onclick="postAttr();">确认修改</button>
  584. </div>
  585. </div>
  586. </div>
  587. </div>
  588. <div class="modal fade" id="sync-attr" data-backdrop="static">
  589. <div class="modal-dialog" role="document">
  590. <div class="modal-content">
  591. <div class="modal-header">
  592. <h5 class="modal-title">选择标段</h5>
  593. </div>
  594. <div class="modal-body">
  595. <h5>可选标段</h5>
  596. <div id="sr-spread" style="height: 300px"></div>
  597. </div>
  598. <div class="modal-footer">
  599. <button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal">取消</button>
  600. <button type="button" class="btn btn-sm btn-primary" id="sync-attr-ok">确定</button>
  601. </div>
  602. </div>
  603. </div>
  604. </div>
  605. <script>
  606. let property = JSON.parse(unescape('<%- escape(JSON.stringify(tenderInfo)) %>'));
  607. const category = JSON.parse('<%- JSON.stringify(categoryData) %>');
  608. // 根据Min Max限制Input输入
  609. function limitInputMinMax (obj) {
  610. if (_.toNumber(obj.value) > _.toNumber(obj.max)) {
  611. obj.value = obj.max;
  612. }
  613. if(_.toNumber(obj.value) < _.toNumber(obj.min)) {
  614. obj.value = obj.min;
  615. }
  616. }
  617. // 根据Maxlength限制input输入
  618. function limitMaxLength (obj) {
  619. if (obj.value.length > obj.maxLength) {
  620. obj.value = obj.value.substr(0, obj.maxLength);
  621. }
  622. }
  623. // 根据正则限制输入
  624. function limitReg(obj, reg) {
  625. obj.value = obj.value.replace(reg, '');
  626. }
  627. // 小数位数 input 输入限制
  628. function limitDecimal(obj) {
  629. limitReg(obj, /[^\d]/g);
  630. limitMaxLength(obj);
  631. limitInputMinMax(obj);
  632. }
  633. function limitDealParamLength(obj) {
  634. limitReg(obj, /[^\d\.]/g); // 过滤数字和.
  635. limitReg(obj, /\.{2,}/g); // 过滤第二个.
  636. limitInputMinMax(obj);
  637. }
  638. function limitReturn(obj) {
  639. limitReg(obj, /\s/g);
  640. }
  641. function checkNumberValid(obj) {
  642. const value = _.toNumber(obj.value);
  643. obj.value = value ? value : '';
  644. }
  645. </script>