|  |  |  | 
|---|
|  |  |  | var pageCurr; | 
|---|
|  |  |  | function getCol() { | 
|---|
|  |  |  | var cols = [ | 
|---|
|  |  |  | {field: 'locNo', align: 'center',title: '库位号'}, | 
|---|
|  |  |  | {field: 'locNo', align: 'center',title: '库位号', hide: false}, | 
|---|
|  |  |  | {field: 'matnr', align: 'center',title: '商品编号', sort:true} | 
|---|
|  |  |  | ,{field: 'maktx', align: 'center',title: '商品名称', sort:true} | 
|---|
|  |  |  | ,{field: 'orderNo', align: 'center',title: '单据编号', hide: true} | 
|---|
|  |  |  | ,{field: 'specs', align: 'center',title: '规格'} | 
|---|
|  |  |  | ,{field: 'weight', align: 'center',title: '单箱净重', hide: false} | 
|---|
|  |  |  | ,{field: 'specs', align: 'center',title: '规格', hide: false} | 
|---|
|  |  |  | ,{field: 'weight', align: 'center',title: '库位总重量', hide: true} | 
|---|
|  |  |  |  | 
|---|
|  |  |  | ,{field: 'batch', align: 'center',title: '批号', width: 300, sort:true, hide: true} | 
|---|
|  |  |  | ,{field: 'anfme', align: 'center',title: '数量'} | 
|---|
|  |  |  | //,{field: 'zpallet', align: 'center',title: '托盘条码'} | 
|---|
|  |  |  | ,{field: 'batch', align: 'center',title: '批号', sort:true, hide: false} | 
|---|
|  |  |  | ,{field: 'anfme', align: 'center',title: '重量(kg)', sort:true, hide: false} | 
|---|
|  |  |  | ,{field: 'zpallet', align: 'center',title: '托盘条码', sort:true, hide: true} | 
|---|
|  |  |  | ,{field: 'model', align: 'center',title: '代码', hide: true} | 
|---|
|  |  |  | ,{field: 'color', align: 'center',title: '颜色', hide: true} | 
|---|
|  |  |  | ,{field: 'brand', align: 'center',title: '品牌', hide: true} | 
|---|
|  |  |  | 
|---|
|  |  |  | ,{field: 'source$', align: 'center',title: '制购', hide: true} | 
|---|
|  |  |  | ,{field: 'check$', align: 'center',title: '要求检验', hide: true} | 
|---|
|  |  |  | ,{field: 'danger$', align: 'center',title: '危险品', hide: true} | 
|---|
|  |  |  | ,{field: 'status$', align: 'center',title: '明细锁', hide: true} | 
|---|
|  |  |  | ,{field: 'owner$', align: 'center',title: '货主', hide: false} | 
|---|
|  |  |  |  | 
|---|
|  |  |  | ]; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // cols.push.apply(cols, detlCols); | 
|---|
|  |  |  | cols.push({field: 'modiUser$', align: 'center',title: '修改人员',hide: true} | 
|---|
|  |  |  | // ,{field: 'stockFreeze', align: 'center',title: '库存冻结', templet: '#stockFreezeTpl'} | 
|---|
|  |  |  | ,{field: 'modiTime$', align: 'center',title: '修改时间'} | 
|---|
|  |  |  | ) | 
|---|
|  |  |  | return cols; | 
|---|
|  |  |  | 
|---|
|  |  |  | if (res.code === 403) { | 
|---|
|  |  |  | top.location.href = baseUrl+"/"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | tableData = table.cache.locDetl; | 
|---|
|  |  |  | console.log(tableData); | 
|---|
|  |  |  | pageCurr=curr; | 
|---|
|  |  |  | limit(); | 
|---|
|  |  |  | form.on('checkbox(tableCheckbox)', function (data) { | 
|---|
|  |  |  | 
|---|
|  |  |  | elem: '#appeTime\\$', | 
|---|
|  |  |  | type: 'datetime' | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | //库存冻结监听 | 
|---|
|  |  |  | form.on('switch(stockFreezeSwitch)', function (obj) { | 
|---|
|  |  |  | let index  = obj.othis.parents('tr').attr("data-index"); | 
|---|
|  |  |  | let data = tableData[index]; | 
|---|
|  |  |  | data[this.stockFreeze] = obj.elem.checked?1:0; | 
|---|
|  |  |  | http.post(baseUrl + "/manlocDetl/updateStockFreeze/auth", { | 
|---|
|  |  |  | locNo: data.locNo, | 
|---|
|  |  |  | matnr: data.matnr, | 
|---|
|  |  |  | stockFreeze: data[this.stockFreeze] | 
|---|
|  |  |  | }, function (res) { | 
|---|
|  |  |  | layer.msg(res.msg, {icon: 1}); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }) | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | }); | 
|---|