|  |  | 
 |  |  |         cellMinWidth: 150, | 
 |  |  |         cols: [[ | 
 |  |  |             {type: 'checkbox', fixed: 'left'} | 
 |  |  |             ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80} | 
 |  |  |             ,{field: 'templateName', align: 'center',title: '模板名', width: 220, style: 'color: #1890ff;cursor:pointer', event: 'more',hide: false} | 
 |  |  |             ,{field: 'orderNum', align: 'center',title: '报价预算单号',hide: false} | 
 |  |  |             ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80,hide : true} | 
 |  |  |             ,{field: 'templateName', align: 'center',title: '客户名称', style: 'color: #1890ff;cursor:pointer', event: 'moreCstmr', width: 350,hide: false} | 
 |  |  |             ,{field: 'cstmrId$', align: 'center',title: '客户id',hide: true} | 
 |  |  |             ,{field: 'inOrderNum', align: 'center',title: '报价编号',hide: false} | 
 |  |  |             ,{field: 'planId$', align: 'center',title: '规划单号',hide: false} | 
 |  |  |             ,{field: 'orderNum', align: 'center',title: '报价预算单号',hide: false} | 
 |  |  |             ,{field: 'planId$', align: 'center',title: '规划单号', style: 'color: #1890ff;cursor:pointer', event: 'morePlan'} | 
 |  |  |             ,{field: 'itemId', align: 'center',title: '规划单号', hide: true} | 
 |  |  |             ,{field: 'planName$', align: 'center',title: '规划单名称',hide: false} | 
 |  |  |             ,{field: 'settle$', align: 'center',title: '进度', width: 150,hide: false} | 
 |  |  |             ,{field: 'settle$', align: 'center',title: '进度', style: 'color: #1890ff;cursor:pointer', event: 'more', width: 150,hide: false} | 
 |  |  |             ,{field: 'createTime$', align: 'center',title: '创建时间',hide: false} | 
 |  |  |             ,{field: 'updateTime$', align: 'center',title: '更新时间',hide: false} | 
 |  |  |             ,{field: 'memberId$', align: 'center',title: '业务员',hide: false} | 
 |  |  | 
 |  |  |     table.on('tool(priQuote)', function(obj){ | 
 |  |  |         var data = obj.data; | 
 |  |  |         switch (obj.event) { | 
 |  |  |             case 'moreCstmr': | 
 |  |  |                 top.cstmrByMore = data.cstmrId$; | 
 |  |  |                 admin.popupRight({ | 
 |  |  |                     type: 1, | 
 |  |  |                     window: "top", | 
 |  |  |                     area: "1250px", | 
 |  |  |                     url: "../cstmr/cstmr_more.html", | 
 |  |  |                     end: function () { | 
 |  |  |                         // $(".layui-laypage-btn")[0].click(); | 
 |  |  |                     } | 
 |  |  |                 }) | 
 |  |  |                 break; | 
 |  |  |             case 'morePlan': | 
 |  |  |                 top.planByMore = data.itemId; | 
 |  |  |                 admin.popupRight({ | 
 |  |  |                     type: 1, | 
 |  |  |                     window: "top", | 
 |  |  |                     area: "1250px", | 
 |  |  |                     url: "../plan/plan_more_other.html", | 
 |  |  |                     end: function () { | 
 |  |  |                         // $(".layui-laypage-btn")[0].click(); | 
 |  |  |                     } | 
 |  |  |                 }) | 
 |  |  |                 break; | 
 |  |  |             case 'approval': | 
 |  |  |                 layer.confirm('审批通过?', { | 
 |  |  |                     skin: 'layui-layer-admin', | 
 |  |  | 
 |  |  |                 }) | 
 |  |  |                 break; | 
 |  |  |             case "quote": | 
 |  |  |                 console.log(data) | 
 |  |  |                 layer.open({ | 
 |  |  |                     type: 2, | 
 |  |  |                     title: '报价单编辑', | 
 |  |  |                     maxmin: true, | 
 |  |  |                     area: [top.detailWidth, top.detailHeight], | 
 |  |  |                     shadeClose: false, | 
 |  |  |                     content: 'priQuote_detail.html?id=' + data.id, | 
 |  |  |                     content: 'priQuote_detail.html?id=' + data.id + "&template=" + data.template, | 
 |  |  |                     success: function(layero, index){ | 
 |  |  |                         // layer.iframeAuto(index);layer.style(index, {top: (($(window).height()-layer.getChildFrame('#data-detail', index).height())/3)+"px"}); | 
 |  |  |                     } | 
 |  |  | 
 |  |  |                         maxmin: true, | 
 |  |  |                         area: [top.detailWidth, top.detailHeight], | 
 |  |  |                         shadeClose: false, | 
 |  |  |                         content: 'priQuote_detail.html?priQuoteBudgetId=' + data.field.id, | 
 |  |  |                         content: 'priQuote_detail.html?priQuoteBudgetId=' + data.field.id + "&template=" + data.field.template, | 
 |  |  |                         success: function(layero, index){ | 
 |  |  |                             clearFormVal(layer.getChildFrame('#detail', index)); | 
 |  |  |                             // layer.iframeAuto(index);layer.style(index, {top: (($(window).height()-layer.getChildFrame('#data-detail', index).height())/3)+"px"}); |