|  |  | 
 |  |  |         cellMinWidth: 150, | 
 |  |  |         cols: [[ | 
 |  |  |             {type: 'checkbox', fixed: 'left'} | 
 |  |  |             ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80,hide : true} | 
 |  |  |             ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80,hide : true, sort:true} | 
 |  |  |             ,{ | 
 |  |  |                 field: 'templateName', | 
 |  |  |                 align: 'center', | 
 |  |  | 
 |  |  |                 style: 'color: #1890ff;cursor:pointer', | 
 |  |  |                 event: 'moreCstmr', | 
 |  |  |                 width: 350, | 
 |  |  |                 hide: false | 
 |  |  |                 hide: false, sort:true | 
 |  |  |             } | 
 |  |  |             ,{field: 'cstmrId$', align: 'center',title: '客户id',hide: true} | 
 |  |  |             ,{field: 'inOrderNum', align: 'center',title: '报价编号',hide: false} | 
 |  |  |             ,{field: 'inOrderNum', align: 'center',title: '报价编号',hide: false, sort:true} | 
 |  |  |             // ,{field: 'orderNum', align: 'center',title: '报价预算单号',hide: false} | 
 |  |  |             ,{ | 
 |  |  |                 field: 'planId$', | 
 |  |  | 
 |  |  |                 title: '规划单号', | 
 |  |  |                 style: 'color: #1890ff;cursor:pointer', | 
 |  |  |                 event: 'morePlan'} | 
 |  |  |             ,{field: 'itemId', align: 'center',title: '规划单号', hide: true} | 
 |  |  |             ,{field: 'itemId', align: 'center',title: '规划单ID', hide: true, sort:true} | 
 |  |  |             ,{field: 'planName$', align: 'center',title: '规划单名称',hide: false} | 
 |  |  |             ,{ | 
 |  |  |                 field: 'settle$', | 
 |  |  | 
 |  |  |         var tr = $(['<tr id="upload-">' | 
 |  |  |             ,'<td id="upload-filename-id-'+ file.lastModified + '">' + file.name +'</td>' | 
 |  |  |             ,'<td>'+ (file.size/1014).toFixed(1) +'kb</td>' | 
 |  |  |             ,'<td id="upload-file-id-' + file.lastModified + '">准备上传</td>' | 
 |  |  |             ,'<td id="upload-file-id-' + file.lastModified + '"><div class="layui-progress layui-progress-big" lay-showPercent="true" lay-filter="progress-demo-'+ file.lastModified +'"><div class="layui-progress-bar" lay-percent=""></div></div></td>' | 
 |  |  |             ,'<td>' | 
 |  |  |             ,'<button class="layui-btn layui-btn-xs demo-reload layui-hide">重传</button>' | 
 |  |  |             ,'<button class="layui-btn layui-btn-xs layui-btn-danger demo-delete">删除</button>' | 
 |  |  | 
 |  |  |         }); | 
 |  |  |  | 
 |  |  |         $('#data-btn-file3').append(tr) | 
 |  |  |  | 
 |  |  |         element.progress('progress-demo-'+ file.lastModified, '0%'); //执行进度条。 | 
 |  |  |         element.init(); | 
 |  |  |  | 
 |  |  |         _uploadFile = file | 
 |  |  |     }) | 
 |  |  | 
 |  |  |         }); | 
 |  |  |  | 
 |  |  |         var file = _uploadFile | 
 |  |  |         $("#upload-file-id-" + file.lastModified).html("上传中") | 
 |  |  |  | 
 |  |  |         putObject(file,(p) => { | 
 |  |  |             $("#upload-file-id-" + file.lastModified).html("上传中:" + (Math.round(p * 100)) + "%") | 
 |  |  |             element.progress('progress-demo-'+ file.lastModified, (Math.round(p * 100)) + "%"); //执行进度条。 | 
 |  |  |         }).then((result) => { | 
 |  |  |             var filename = result.name | 
 |  |  |             layer.msg('上传成功', {icon: 1}); |