| | |
| | | ,{field: 'docId', align: 'center',title: '单据类型', hide: true} |
| | | ,{field: 'docNum', align: 'center',title: '单据编号', hide: true} |
| | | ,{field: 'oriQty', align: 'center',title: '账面数量 (原)', style: 'font-weight: bolder'} |
| | | ,{field: 'cekQty', align: 'center',title: '实盘数量 (现)', style: 'font-weight: bolder; color: blue'} |
| | | ,{field: 'cekQty', align: 'center',title: '实盘数量 (现)', style: 'font-weight: bolder'} |
| | | ,{field: 'diffQty', align: 'center',title: '差值', style: 'font-weight: bolder;', templet: '#diffQtyTpl',} |
| | | ,{field: 'settle$', align: 'center',title: '盈亏', templet: '#checkTpl', width: 100} |
| | | ,{field: 'status$', align: 'center',title: '状态', hide: true} |
| | | ,{field: 'createTime$', align: 'center',title: '盘点时间'} |
| | | ,{field: 'createBy$', align: 'center',title: '盘点人员'} |
| | | ,{field: 'status$', align: 'center',title: '状态', templet: '#statusTpl', width: 110} |
| | | ,{field: 'updateBy$', align: 'center',title: '修改人员', hide: true} |
| | | ,{field: 'updateTime$', align: 'center',title: '修改时间', hide: true} |
| | | ,{field: 'memo', align: 'center',title: '备注', hide: true} |
| | | |
| | | ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:100} |
| | | ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:120} |
| | | ]], |
| | | request: { |
| | | pageName: 'curr', |
| | |
| | | } |
| | | }); |
| | | break; |
| | | // 编辑 |
| | | case 'edit': |
| | | layer.open({ |
| | | type: 2, |
| | | title: '修改', |
| | | maxmin: true, |
| | | area: [top.detailWidth, top.detailHeight], |
| | | content: 'check_detail.html', |
| | | success: function(layero, index){ |
| | | layer.getChildFrame('#data-detail-submit-save', index).hide(); |
| | | setFormVal(layer.getChildFrame('#detail', index), data, false); |
| | | top.convertDisabled(layer.getChildFrame('#data-detail :input', index), false); |
| | | top.convertDisabled(layer.getChildFrame('#id', index), true); |
| | | layer.iframeAuto(index);layer.style(index, {top: (($(window).height()-layer.getChildFrame('#data-detail', index).height())/3)+"px"}); |
| | | layero.find('iframe')[0].contentWindow.layui.form.render('select'); |
| | | layero.find('iframe')[0].contentWindow.layui.form.render('checkbox'); |
| | | } |
| | | // 审核 |
| | | case 'auditing': |
| | | layer.confirm(data.nodeUuid +'货位 盘点审核 '+ data.matnr + ' ?', function(){ |
| | | var index = layer.load(1, {shade: [0.1,'#000']}); |
| | | $.ajax({ |
| | | url: baseUrl+"/work/stock/check/auditing", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: { |
| | | checkId: data.id |
| | | }, |
| | | dataType:'json', |
| | | method: 'POST', |
| | | success: function (res) { |
| | | if (res.code === 200) { |
| | | layer.msg(res.msg, {icon: 1}) |
| | | $(".layui-laypage-btn")[0].click(); |
| | | } else if (res.code === 403) { |
| | | top.location.href = baseUrl+"/"; |
| | | } else { |
| | | layer.msg(res.msg, {icon: 2}) |
| | | } |
| | | layer.close(index); |
| | | } |
| | | }); |
| | | }); |
| | | break; |
| | | |
| | | } |
| | | }); |
| | | |
| | |
| | | elem: '#updateTime\\$', |
| | | type: 'datetime' |
| | | }); |
| | | |
| | | layDate.render({ |
| | | elem: '.layui-laydate-range' |
| | | ,type: 'datetime' |
| | | ,range: true |
| | | }); |
| | | |
| | | }); |
| | | |