| | |
| | | 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-filename-userName-'+ '">' +'</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>' |
| | |
| | | layer.msg('上传成功', {icon: 1}); |
| | | $("#upload-file-id-" + file.lastModified).html("上传成功") |
| | | $("#upload-filename-id-" + file.lastModified).html(filename) |
| | | |
| | | let token = localStorage.getItem("token"); |
| | | $.ajax({ |
| | | url: baseUrl+"/plan/insert/file/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: { |
| | | 'planId': $('.layui-layer-title').text(), |
| | | 'filename': filename, |
| | | 'filesize': file.size |
| | | 'filesize': file.size, |
| | | 'token': token |
| | | }, |
| | | method: 'POST', |
| | | success: function (res) { |
| | |
| | | tr.id = "upload-"+index; |
| | | tr.innerHTML = '<td>' + file.name + '</td>' |
| | | + '<td>' + (file.size / 1024).toFixed(1) + 'kb</td>' |
| | | + '<td>' + file.userName + '</td>' |
| | | // + '<td><div class="layui-progress" lay-filter="progress-demo-' + index ,100 + '%'+ '"><div class="layui-progress-bar" lay-percent=""></div></div></td>' |
| | | + '<td>'+'已完成'+'</td>' |
| | | + '<td>' |