123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238 |
- {extend name="common/base"/}
- {block name="style"}
- <style>
- .footer{
- display: none;
- }
- .form-title {
- background-color: rgb(241, 241, 241);
- color: rgb(95, 95, 95);
- border-color: rgb(241, 241, 241);
- font-weight: 600;
- }
- #tabniubi {
- width: 100%;
- margin: 10px 0;
- background-color: #fff;
- color: #5f5f5f;
- }
- #tabniubi th {
- padding: 9px 15px;
- min-height: 20px;
- height: 40px;
- line-height: 40px;
- text-align: center;
- /* font-size: 14px; */
- border-width: 1px;
- border-style: solid;
- border-color: #e2e2e2;
- font: 14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial, sans-serif;
- }
- #tabniubi tr:first-child {
- padding: 0;
- min-height: 0;
- line-height: 0;
- border-width: 0;
- border-style: none;
- border-color: #fff;
- font-size: 0;
- }
- #tabniubi tr:first-child th {
- padding: 0;
- min-height: 0;
- line-height: 0;
- border-width: 0;
- border-style: none;
- border-color: #fff;
- font-size: 0;
- }
- </style>
- {/block}
- <!-- 主体 -->
- {block name="body"}
- <form class="layui-form p-4">
- <div class="layui-form-bar">
- <h3 class="pb-3">编辑信息</h3>
- </div>
- <table id="tabniubi" cellpadding="1" cellspacing="1">
- <tr>
- <th style="width: 10%;height: 0;"></th>
- <th style="width: 10%;height: 0;"></th>
- <th style="width: 10%;height: 0;"></th>
- <th style="width: 10%;height: 0;"></th>
- <th style="width: 10%;height: 0;"></th>
- <th style="width: 10%;height: 0;"></th>
- <th style="width: 10%;height: 0;"></th>
- <th style="width: 10%;height: 0;"></th>
- <th style="width: 10%;height: 0;"></th>
- </tr>
-
- <tr border="1">
- <th class="form-title">投资项目统一代码 </th>
- <th colspan="2">
- <input type="hidden" name="id" value="{$project.id}">
- <input type="text" name="project_code" lay-verify="" autocomplete="off" placeholder="请输入投资项目统一代码" lay-reqText="请输入投资项目统一代码" class="layui-input" value="{$project.project_code}">
- </th>
- <th class="form-title">项目名称</th>
- <th colspan="2">
- <input type="text" disabled name="project_name" lay-verify="" autocomplete="off" placeholder="" lay-reqText="" autocomplete="off" class="layui-input" value="{$project.project_name}">
- </th>
- <th class="form-title">工程类型</th>
- <th colspan="2">
- <input type="text" disabled name="engineering_category" lay-verify="" autocomplete="off" placeholder="" lay-reqText="" class="layui-input" value="{$project.engineering_category}">
- </th>
- </tr>
-
- <tr>
- <th class="form-title">评审类型</th>
- <th colspan="2">
- <input type="text" disabled name="engineering_type" lay-verify="" autocomplete="off" placeholder="" lay-reqText="" autocomplete="off" class="layui-input" value="{$project.engineering_type}">
- </th>
- <th class="form-title">送审时间 </th>
- <th id="date" colspan="2">
- <div class="layui-input-inline" style="width: 100%;">
- <input type="text" name="sent_review_time" lay-verify="" id="sent_review_time"
- placeholder="请选择日期"
- class="layui-input"
- value="{$project.sent_review_time}">
- </div>
- </th>
- <th class="form-title">送审造价(元)</th>
- <th colspan="2">
- <input type="text" disabled name="sent_review_amount" lay-verify="" autocomplete="off" placeholder="" lay-reqText="" class="layui-input" value="{$project.sent_review_amount}">
- </th>
- </tr>
- <tr>
- <th class="form-title">审定造价(元)</th>
- <th colspan="2">
- <input type="text" disabled name="authorize_amount" lay-verify="" autocomplete="off" placeholder="" lay-reqText="" class="layui-input" value="{$project.authorize_amount}">
- </th>
- <th class="form-title">评审员</th>
- <th colspan="2">
- <input type="text" disabled name="judge" lay-verify="" autocomplete="off" placeholder="" lay-reqText="" class="layui-input" value="{$project.judge}">
- </th>
- <th class="form-title">稽核员</th>
- <th colspan="2">
- <input type="text" disabled name="examiner" lay-verify="" autocomplete="off" placeholder="" lay-reqText="" class="layui-input" value="{$project.examiner}">
- </th>
- </tr>
-
- <tr>
- <th class="form-title">项目单位</th>
- <th colspan="2">
- <input type="text" disabled name="review_unit_name" lay-verify="" autocomplete="off" placeholder="" lay-reqText="" class="layui-input" value="{$project.review_unit_name}">
- </th>
- <th class="form-title">施工单位</th>
- <th colspan="2">
- <input type="text" disabled name="construction_unit" lay-verify="" autocomplete="off" placeholder="" lay-reqText="" class="layui-input" value="{$project.construction_unit}">
- </th>
- <th class="form-title">送审人</th>
- <th colspan="2">
- <input type="text" disabled name="sent_review_head_name" lay-verify="" autocomplete="off" placeholder="" lay-reqText="" class="layui-input" value="{$project.sent_review_head_name}">
- </th>
- </tr>
- <tr>
- <th class="form-title">科室 </th>
- <th colspan="2">
- <input type="text" name="division" lay-verify="" autocomplete="off" placeholder="请输入科室" lay-reqText="请输入科室" class="layui-input" value="{$project.division}">
- </th>
- <th class="form-title">合同外送审金额(元)</th>
- <th colspan="2">
- <input type="text" name="contract_out_sent_review_amount" lay-verify="" autocomplete="off" placeholder="请输入合同外送审金额(元)" lay-reqText="请输入合同外送审金额(元)" class="layui-input" value="{$project.contract_out_sent_review_amount}">
- </th>
- <th class="form-title">合同外审定金额(元)</th>
- <th colspan="2">
- <input type="text" name="contract_out_authorize_amount" lay-verify="" autocomplete="off" placeholder="请输入合同外审定金额(元)" lay-reqText="请输入合同外审定金额(元)" class="layui-input" value="{$project.contract_out_authorize_amount}">
- </th>
- </tr>
- <tr>
- <th class="form-title" colspan="2">合同内送审金额(元)</th>
- <th colspan="2">
- <input type="text" disabled name="sent_review_amount" lay-verify="" autocomplete="off" placeholder="" lay-reqText="" class="layui-input" value="{$project.sent_review_amount}">
- </th>
- <th class="form-title" colspan="2">合同内审定金额(元)</th>
- <th colspan="3">
- <input type="text" disabled name="authorize_amount" lay-verify="" autocomplete="off" placeholder="" lay-reqText="" class="layui-input" value="{$project.authorize_amount}">
- </th>
- </tr>
- <tr>
- <th class="form-title" colspan="2">合同金额(元)</th>
- <th colspan="2">
- <input type="text" name="contract_amount" lay-verify="" autocomplete="off" placeholder="请输入合同金额(元)" lay-reqText="请输入合同金额(元)" class="layui-input" value="{$project.contract_amount}">
- </th>
- <th class="form-title" colspan="2">基本预备费(元)</th>
- <th colspan="3">
- <input type="text" name="basic_reserve_funds" lay-verify="" autocomplete="off" placeholder="请输入基本预备费(元)" lay-reqText="请输入基本预备费(元)" class="layui-input" value="{$project.basic_reserve_funds}">
- </th>
- </tr>
-
- </table>
- <div class="py-3">
- <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="webform">立即提交</button>
- <button type="reset" class="layui-btn layui-btn-primary">重置</button>
- </div>
- </form>
- {/block}
- <!-- /主体 -->
- <!-- 脚本 -->
- {block name="script"}
- <script>
- const moduleInit = ['tool'];
- function gouguInit() {
- var form = layui.form, tool=layui.tool, oaTool = layui.oaTool;
-
- //日期选择
- layui.laydate.render({
- elem: '#sent_review_time',
- // range: ['#sent_review_time'],
- // rangeLinked: false,
- });
- let a = 1;
- //监听提交
- form.on('submit(webform)', function (data) {
- if(a){
- let callback = function (e) {
- layer.msg(e.msg);
- if (e.code == 0) {
- parent.layui.tool.close(1000);
- a = 1
- }
- }
- tool.post("/admin/datastat.datastat/edit", data.field, callback);
- }
- a = 0
- return false;
- });
- }
- </script>
- {/block}
- <!-- /脚本 -->
|