| | |
| | | ]; |
| | | cols.push.apply(cols, matCols); |
| | | cols.push( |
| | | |
| | | {fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:150} |
| | | ) |
| | | return cols; |
| | |
| | | {field: 'parentName', align: 'center',title: '库区', hide: false}, |
| | | {field: 'createBy$', align: 'center',title: '创建人', hide: false}, |
| | | {field: 'createTime$', align: 'center',title: '创建时间', hide: false}, |
| | | // {field: 'status', align: 'center',title: '库位冻结', templet: '#stockFreezeTpl'}, |
| | | {field: 'type$', align: 'center',title: '类型', templet: '#tagTpl', hide: false} |
| | | ]], |
| | | request: { |
| | |
| | | if (res.code === 403) { |
| | | top.location.href = baseUrl+"/"; |
| | | } |
| | | tableData = table.cache.mat; |
| | | pageCurr=curr; |
| | | limit(); |
| | | form.on('checkbox(tableCheckbox)', function (data) { |
| | |
| | | elem: '#updateTime\\$', |
| | | type: 'datetime' |
| | | }); |
| | | //库位冻结 |
| | | form.on('switch(stockFreezeSwitch)', function (obj) { |
| | | let index = obj.othis.parents('tr').attr("data-index"); |
| | | console.log(index); |
| | | let data = tableData[index]; |
| | | data[this.stockFreeze] = obj.elem.checked?1:0; |
| | | http.post(baseUrl + "/node/updateStatus", { |
| | | name: data.name, |
| | | status: data[this.stockFreeze] |
| | | }, function (res) { |
| | | layer.msg(res.msg, {icon: 1}); |
| | | tableIns.reload(); |
| | | }); |
| | | }) |
| | | |
| | | |
| | | }); |