diff --git a/public/static/manager/js/mall/order.js b/public/static/manager/js/mall/order.js index a4035b0..8dd564c 100755 --- a/public/static/manager/js/mall/order.js +++ b/public/static/manager/js/mall/order.js @@ -371,7 +371,7 @@ layui.use(['laytpl', 'table', 'jquery', 'form', 'miniTab', 'xmSelect', 'laydate' // 渲染表格 let listUrl = $('#table-container').data('url'); - let insTb = table.render({ + var insTb = table.render({ elem: '#table-container', toolbar: '#toolbar-tpl-detail', defaultToolbar: [], @@ -433,6 +433,7 @@ layui.use(['laytpl', 'table', 'jquery', 'form', 'miniTab', 'xmSelect', 'laydate' Tools.setInsTb(insTb); } }); + Tools.setInsTb(insTb) //监听单元格编辑 table.on('edit(table-container)', function(obj){ let indexLoad = layer.load(2); @@ -443,8 +444,8 @@ layui.use(['laytpl', 'table', 'jquery', 'form', 'miniTab', 'xmSelect', 'laydate' layer.close(indexLoad); layer.msg(res.msg) if (res.code === 0) { - $("#order_original_price").text(res.data.original_price); - insTb.refresh(); + $("#order_original_price").val(res.data.original_price); + refreshTab(insTb); } });