|  |  |  | 
|---|
|  |  |  | ,{field: 'packageNo', align: 'center',title: '包装号',edit:true, sort:true} | 
|---|
|  |  |  | ,{field: 'proDate', align: 'center',title: '生产日期',edit:true, width: 100} | 
|---|
|  |  |  | ,{field: 'weight', align: 'center',title: '重量KG',edit:true,totalRow:true} | 
|---|
|  |  |  | ,{field: 'packageType', align: 'center',title: '包装类型',edit:true} | 
|---|
|  |  |  | ,{field: 'zpalletType', align: 'center',title: '托盘类型',edit:true} | 
|---|
|  |  |  | ,{field: 'filmWrap', align: 'center',title: '缠膜',edit:true,hide:true} | 
|---|
|  |  |  | ,{field: 'fingerMelting', align: 'center',title: '熔指,g/10min',edit:true} | 
|---|
|  |  |  | ,{field: 'water', align: 'center',title: '水分,ppm', hide:true,edit:true} | 
|---|
|  |  |  | 
|---|
|  |  |  | ,{field: 'str4', align: 'center',title: '维卡,℃',hide:true,edit:true} | 
|---|
|  |  |  | ,{field: 'str5', align: 'center',title: '半结晶时间,min',hide:true,edit:true} | 
|---|
|  |  |  | ,{field: 'str6', align: 'center',title: '结晶度,%',hide:true,edit:true} | 
|---|
|  |  |  | ,{field: 'packageType', align: 'center',title: '包装类型',edit:true} | 
|---|
|  |  |  | ,{field: 'zpalletType', align: 'center',title: '托盘类型',edit:true} | 
|---|
|  |  |  | ,{field: 'massState', align: 'center',title: '质量状态',edit:true} | 
|---|
|  |  |  | ,{field: 'problem', align: 'center',title: '备注',edit:true,hide:true} | 
|---|
|  |  |  | ,{field: 'direction', align: 'center',title: '应用方向',edit:true,hide:true} | 
|---|
|  |  |  | 
|---|
|  |  |  | ,{field: 'stockFreezeDate$', align: 'center',title: '操作日期',hide:true} | 
|---|
|  |  |  | ,{align: 'center', title: '流转明细', toolbar: '#tbLook'} | 
|---|
|  |  |  | ,{field: 'createTime$', title: '创建时间', align: 'center' , sort:true} | 
|---|
|  |  |  | ,{field: 'newBrand', align: 'center',title: '关联牌号',edit:true} | 
|---|
|  |  |  | ,{field: 'newBatch', align: 'center',title: '关联批号',edit:true, width: 150, sort:true} | 
|---|
|  |  |  | ,{field: 'newPackageNo', align: 'center',title: '关联包装号',edit:true, sort:true} | 
|---|
|  |  |  | // ,{field: 'orderNo', align: 'center',title: '单号', hide:true} | 
|---|
|  |  |  | // ,{field: 'pakoutTime', align: 'center',title: '出库时间', hide:true} | 
|---|
|  |  |  | // ,{field: 'orderWeight', align: 'center',title: '重量', hide:true} | 
|---|
|  |  |  | 
|---|
|  |  |  | layui.config({ | 
|---|
|  |  |  | base: baseUrl + "/static/layui/lay/modules/" | 
|---|
|  |  |  | }).use(['table','laydate', 'form', 'admin', 'dropdown'], function() { | 
|---|
|  |  |  | var dropdown = layui.dropdown; | 
|---|
|  |  |  | var table = layui.table; | 
|---|
|  |  |  | var $ = layui.jquery; | 
|---|
|  |  |  | var layer = layui.layer; | 
|---|
|  |  |  | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | return arr; | 
|---|
|  |  |  | }() ], | 
|---|
|  |  |  | where:{ | 
|---|
|  |  |  | type: function() { | 
|---|
|  |  |  | const tabPosition = JSON.parse(sessionStorage.getItem('easyweb-iframe_tempData')).tabPosition | 
|---|
|  |  |  | return tabPosition.match(/\d+$/)[0] === '90646' ? '改性树脂' : | 
|---|
|  |  |  | (tabPosition.match(/\d+$/)[0] === '90657' ? '纯树脂' : '') | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | request: { | 
|---|
|  |  |  | pageName: 'curr', | 
|---|
|  |  |  | pageSize: 'limit' | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | parseData: function (res) { | 
|---|
|  |  |  | console.log(res) | 
|---|
|  |  |  | return { | 
|---|
|  |  |  | 'code': res.code, | 
|---|
|  |  |  | 'msg': res.msg, | 
|---|
|  |  |  | 
|---|
|  |  |  | tableReload(false); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 用来标识搜索重置时,改性树脂和纯树脂从点击事件传过来名称,进行物质类别限定 | 
|---|
|  |  |  | let customValue = undefined | 
|---|
|  |  |  | // 重置事件 | 
|---|
|  |  |  | form.on('submit(reset)', function (data) { | 
|---|
|  |  |  | customValue = $(this).attr('data-value'); | 
|---|
|  |  |  | reset(); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | clearFormVal($('#search-box')); | 
|---|
|  |  |  | matCodeData = []; | 
|---|
|  |  |  | tableReload(); | 
|---|
|  |  |  | locTips(false); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // locTips(false); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 重载表格 | 
|---|
|  |  |  | 
|---|
|  |  |  | $.each($('#search-box [name]').serializeArray(), function() { | 
|---|
|  |  |  | searchData[this.name] = this.value; | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | if(customValue !== undefined){ | 
|---|
|  |  |  | searchData['type'] = customValue | 
|---|
|  |  |  | } | 
|---|
|  |  |  | (child ? parent.tableIns : tableIns).reload({ | 
|---|
|  |  |  | where: searchData, | 
|---|
|  |  |  | page: { | 
|---|