| | |
| | | #formAdvForm { |
| | | background-color: #f3f3f3; |
| | | } |
| | | |
| | | #formAdvForm .layui-form-item { |
| | | margin-top: 20px; |
| | | margin-bottom: 0; |
| | |
| | | <div class="layui-card-header" style="padding-top: 5px; padding-bottom: 5px"> |
| | | <div> |
| | | <i class="layui-icon" style="font-size: 20px;color: #1890ff;font-weight: bold"></i> |
| | | <span id="form-name" style="margin: 0 6px;font-size: 18px;font-weight: bold;letter-spacing: 1px"></span> |
| | | <span id="form-name" |
| | | style="margin: 0 6px;font-size: 18px;font-weight: bold;letter-spacing: 1px"></span> |
| | | <span style="opacity: .5;font-size: small;margin-left: 5px">核价单</span> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | |
| | | <div class="form-group-bottom text-right"> |
| | | <button class="layui-btn" lay-filter="refresh" lay-submit><i class="layui-icon"></i> 刷新 </button> |
| | | <button class="layui-btn" lay-filter="refresh" lay-submit><i class="layui-icon"></i> 刷新  |
| | | </button> |
| | | </div> |
| | | |
| | | </form> |
| | |
| | | form.render('select'); |
| | | |
| | | init(); |
| | | function init(){ |
| | | |
| | | function init() { |
| | | notice.msg('正在载入数据......', {icon: 4, position: "topRight"}); |
| | | $.ajax({ |
| | | url: baseUrl + "/priOnline2/" + priOnlineId + "/auth", |
| | |
| | | success: function (res) { |
| | | notice.destroy(); |
| | | if (res.code === 200) { |
| | | let priOnlineId = res.data; |
| | | top.priOnlineIdByMore = null; |
| | | $("#form-name").html(priOnlineId.name); |
| | | let priOnline = res.data; |
| | | top.priOnlineByMore = null; |
| | | $("#form-name").html(priOnline.name); |
| | | // 进度步骤图 |
| | | let template0 = Handlebars.compile($('#stepTpl').html()); |
| | | $('#stepBox').html(template0({list: JSON.parse(priOnlineId.settleMsg)})); |
| | | $('#step-' + Number(priOnlineId.step)).addClass("layui-this"); |
| | | $('#stepBox').html(template0({list: JSON.parse(priOnline.settleMsg)})); |
| | | $('#step-' + Number(priOnline.step)).addClass("layui-this"); |
| | | |
| | | let template1 = Handlebars.compile($('#timelineTpl').html()); |
| | | $('#timelineBox').html(template1({list: JSON.parse(priOnlineId.settleMsg)})); |
| | | $('#timelineBox').html(template1({list: JSON.parse(priOnline.settleMsg)})); |
| | | // 补充html |
| | | $('#customizeBox').html(priOnlineId.formHtml); |
| | | $('#customizeBox').html(priOnline.formHtml); |
| | | // 设备明细 |
| | | // form.val('formAdvForm', priOnlineId); |
| | | // form.val('formAdvForm', priOnline); |
| | | // top.convertDisabled($('#formAdvForm :input'), true); |
| | | // 跟进人 |
| | | // initFollowers(priOnlineId.id); |
| | | // initFollowers(priOnline.id); |
| | | layDateRender(); |
| | | } else if (res.code === 403) { |
| | | top.location.href = baseUrl + "/"; |
| | |
| | | type: 'datetime' |
| | | }); |
| | | } |
| | | |
| | | layDateRender(); |
| | | |
| | | /* 监听表单提交 */ |