| | |
| | | {type: 'checkbox'} |
| | | // ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80} |
| | | ,{field: 'number', align: 'center',title: '销售单号'} |
| | | ,{field: 'billDate', align: 'center',title: '单据日期'} |
| | | ,{field: 'bTypeId', align: 'center',title: '客户编号'} |
| | | ,{field: 'eTypeId', align: 'center',title: '经手人编号'} |
| | | |
| | | ,{field: 'btypeId', align: 'center',title: '客户编号'} |
| | | ,{field: 'etypeId', align: 'center',title: '经手人编号', hide: true} |
| | | ,{field: 'userCode', align: 'center',title: '商品编号'} |
| | | ,{field: 'qty', align: 'center',title: '商品数量'} |
| | | ,{field: 'price', align: 'center',title: '商品单价'} |
| | | ,{field: 'comment', align: 'center',title: '商品备注'} |
| | | ,{field: 'status$', align: 'center',title: '状态'} |
| | | ,{field: 'price', align: 'center',title: '商品单价', hide: true} |
| | | ,{field: 'comment', align: 'center',title: '商品备注', hide: true} |
| | | ,{field: 'status$', align: 'center',title: '状态', templet: '#statusTpl', width: 100} |
| | | ,{field: 'billDate', align: 'center',title: '单据日期'} |
| | | // ,{field: 'createTime$', align: 'center',title: '添加时间'} |
| | | ,{field: 'updateTime$', align: 'center',title: '修改时间'} |
| | | ,{field: 'updateTime$', align: 'center',title: '修改时间', hide: true} |
| | | // ,{field: 'memo', align: 'center',title: '备注'} |
| | | |
| | | ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width: 120} |
| | |
| | | success: function (res) { |
| | | if (res.code === 200){ |
| | | layer.closeAll(); |
| | | tableReload(false); |
| | | $(".layui-laypage-btn")[0].click(); |
| | | } else if (res.code === 403){ |
| | | top.location.href = baseUrl+"/"; |
| | | } else { |
| | |
| | | } else if (res.code === 20001) { |
| | | layer.confirm(res.msg, { |
| | | shadeClose: true |
| | | , btn: ['库存调拨', '打印'] |
| | | , btn: ['库存调拨', '取消'] |
| | | }, function() { |
| | | // todo 库存调拨 |
| | | layer.closeAll(); |
| | | }, function() { |
| | | printPakouts(data.number); |
| | | // printPakouts(data.number); |
| | | layer.closeAll(); |
| | | } |
| | | ) |