123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- {extend name="common/base"/}
- <!-- 主体 -->
- {block name="body"}
- <form class="layui-form p-4">
- <h3 class="pb-3">编辑造价项目</h3>
- <table class="layui-table layui-table-form">
- <tr>
- <td class="layui-td-gray-2">项目编号</td>
- <td><input type="text" name="project_number" value="{$detail.project_number}" autocomplete="off"
- placeholder="请输入项目编号" class="layui-input" readonly></td>
- <td class="layui-td-gray-2">项目名称</td>
- <td><input type="text" name="project_name" value="{$detail.project_name}" autocomplete="off"
- placeholder="请输入项目名称" class="layui-input" readonly></td>
- <td class="layui-td-gray-2">送审单位</td>
- <td>
- <input type="text" name="commissioning_name" autocomplete="off" readonly value="{$institution}"
- lay-verify="required" lay-reqText="请输入送审单位" placeholder="请输入送审单位"
- class="layui-input customer-picker">
- <input type="hidden" name="commissioning_unit" value="{$detail.commissioning_unit}">
- </td>
- </tr>
- <tr>
- <td class="layui-td-gray-2">送审单位联系人</td>
- <td>
- <select name="commissioning_unit_contact" lay-verify="" lay-reqText="请选择送审单位联系人" >
- <option value="">请选择送审单位联系人</option>
- {volist name="person" id="v"}
- <option value="{$v.id}"{eq name="$detail.commissioning_unit_contact" value="$v.id" } selected="" {/eq}>{$v.nickname}</option>
- {/volist}
- </select>
- </td>
- <td class="layui-td-gray-2">送审单位联系人电话</td>
- <td><input type="text" name="commissioning_unit_contact_number"
- value="{$detail.commissioning_unit_contact_number}"
- autocomplete="off" placeholder="请输入送审单位联系人电话" class="layui-input"></td>
- <td class="layui-td-gray-2">送审单位作业人<font>*</font></td>
- <td>
- <select name="commissioning_unit_worker" lay-verify="required" lay-reqText="请选择审批人" >
- <option value="">请选择作业人</option>
- {volist name="person" id="v"}
- <option value="{$v.id}"{eq name="$detail.commissioning_unit_worker" value="$v.id" } selected="" {/eq}>{$v.nickname}</option>
- {/volist}
- </select>
- </td>
- </tr>
- <tr>
- <td class="layui-td-gray-2">送审单位作业人电话</td>
- <td><input type="text" name="commissioning_unit_contact_number"
- value="{$detail.commissioning_unit_contact_number}"
- autocomplete="off" placeholder="请输入送审单位作业人联系电话" class="layui-input"></td>
- <td class="layui-td-gray-2">计划时间<font>*</font></td>
- <td><input type="text" name="plan_time" lay-verify="required" lay-reqText="请完善计划时间"
- value="{$detail.plan_time|time_format=###,'Y-m-d'}" readonly readonly
- autocomplete="off" placeholder="请选择" class="layui-input"></td>
- <td class="layui-td-gray-2">截至时间<font>*</font></td>
- <td><input type="text" name="due_time" lay-verify="required" lay-reqText="请完善截至时间"
- value="{$detail.due_time|time_format=###,'Y-m-d'}" readonly readonly
- autocomplete="off" placeholder="请选择" class="layui-input"></td>
- <td colspan='4'></td>
- </tr>
- </table>
- <div class="py-3">
- <input type="hidden" name="id" value="{$detail.id}"/>
- {if $detail.status == 3}
- <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="edit">接收</button>
- {/if}
- {if $detail.status == 4}
- <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="edit">编辑</button>
- {/if}
- {if !($detail.status == 5)}
- <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="webform">下发项目</button>
- {/if}
- </div>
- </form>
- {/block}
- <!-- /主体 -->
- <!-- 脚本 -->
- {block name="script"}
- <script>
- var moduleInit = ['tool'];
- function gouguInit() {
- var form = layui.form, tool = layui.tool;
- //日期选择
- layui.laydate.render({
- elem: '#laydate_plan_time' //指定元素
- });//日期选择
- layui.laydate.render({
- elem: '#laydate_due_time' //指定元素
- });
- let a = 1;
- //监听提交
- form.on('submit(edit)', function (data) {
- if(a){
- let callback = function (e) {
- layer.msg(e.msg);
- if (e.code == 0) {
- tool.sideClose(1000);
- a = 1
- }
- }
- tool.post("/admin/project.audit_company/edit", data.field, callback);
- }
-
- a = 0
- return false;
- });
- form.on('submit(webform)', function (data) {
- if(a){
- let callback = function (e) {
- layer.msg(e.msg);
- if (e.code == 0) {
- tool.sideClose(1000);
- a = 1
- }
- }
- tool.post("/admin/project.audit_company/webform", data.field, callback);
- }
-
- a = 0
- return false;
- });
- }
- </script>
- {/block}
- <!-- /脚本 -->
|