| | |
| | | content: $('#editDialog').html(), |
| | | area: '1600px', |
| | | success: function (layero, dIndex) { |
| | | console.log(expTpe) |
| | | $(layero).children('.layui-layer-content').css('overflow', 'visible'); |
| | | var isExpAdd = !expTpe; |
| | | // 回显数据 |
| | |
| | | {field: 'deadTime', title: '销售订单行号(修改)', style: 'color: blue;font-weight: bold', edit: true, minWidth: 110, width: 110}, |
| | | {field: 'processSts', title: '工序', templet: function (d) { |
| | | console.log(d) |
| | | var select = `<select class="layui-select" name="processSts" lay-filter="processStsSelect" data-value=${d.processSts} id=${d.id}> |
| | | var select = `<select class="layui-select" name="processSts" data-state=${d.processSts} lay-filter="processStsSelect" data-value=${d.processSts} id=${d.id}> |
| | | <option value="">选择状态</option> |
| | | <option value="1">待加工</option> |
| | | <option value="2">已加工</option> |
| | |
| | | var tableElem = this.elem.next('.layui-table-view'); |
| | | count || tableElem.find('.layui-table-header').css('overflow', 'auto'); |
| | | layui.each(tableElem.find('select[name="processSts"]'), function (index, item) { |
| | | console.log(item) |
| | | var elem = $(item); |
| | | elem.val(elem.data('state')).parents('div.layui-table-cell').css('overflow', 'visible'); |
| | | }); |
| | | |
| | | form.render();//刷新表单 |
| | | }, |
| | | size: '' |