| | |
| | | cols: [[ |
| | | {type: 'checkbox'} |
| | | // ,{field: 'uuid', align: 'center',title: '编号'} |
| | | ,{field: 'orderNo', align: 'center',title: '订单编号'} |
| | | ,{field: 'orderNo', align: 'center',title: '单据编号', minWidth: 200} |
| | | ,{field: 'orderTime', align: 'center',title: '单据日期'} |
| | | ,{field: 'docType$', align: 'center',title: '单据类型'} |
| | | ,{field: 'docType$', align: 'center',title: '单据类型', templet: '#docTypeTpl', width: 100} |
| | | ,{field: 'itemName', align: 'center',title: '项目'} |
| | | ,{field: 'allotItemId$', align: 'center',title: '调拨项目编号', hide: true} |
| | | ,{field: 'defNumber', align: 'center',title: '初始票据号', hide: true} |
| | | ,{field: 'number', align: 'center',title: '票据号'} |
| | | ,{field: 'cstmrName', align: 'center',title: '客户', hide: true} |
| | | ,{field: 'number', align: 'center',title: '票据号', hide: true} |
| | | ,{field: 'cstmrName', align: 'center',title: '客户'} |
| | | ,{field: 'tel', align: 'center',title: '联系方式', hide: true} |
| | | ,{field: 'operMemb', align: 'center',title: '操作人员'} |
| | | ,{field: 'totalFee', align: 'center',title: '合计金额'} |
| | | ,{field: 'totalFee', align: 'center',title: '合计金额', hide: true} |
| | | ,{field: 'discount', align: 'center',title: '优惠率', hide: true} |
| | | ,{field: 'discountFee', align: 'center',title: '优惠金额', hide: true} |
| | | ,{field: 'otherFee', align: 'center',title: '销售或采购费用合计', hide: true} |
| | |
| | | }); |
| | | /* 表格2重置 */ |
| | | form.on('submit(orderTbReset)', function (data) { |
| | | insTb2.reload({page: {curr: 1}}); |
| | | insTb2.reload({where: null,page: {curr: 1}}); |
| | | return false; |
| | | }); |
| | | |
| | |
| | | |
| | | // 生成拣货单 |
| | | function stockOut(orderNo) { |
| | | // layer.confirm(number + ' 订单开始拣货?', {shadeClose: true}, function(){ |
| | | layer.closeAll(); |
| | | $.ajax({ |
| | | url: baseUrl+"/work/stock/out/create", |
| | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | // // 搜索栏搜索事件 |
| | | // form.on('submit(search)', function (data) { |
| | |
| | | </div> |
| | | </div> |
| | | |
| | | <script type="text/html" id="docTypeTpl"> |
| | | <span name="docType" class="layui-badge layui-badge-gray">{{d.docType$}}</span> |
| | | </script> |
| | | |
| | | <script type="text/html" id="operate"> |
| | | {{#if (d.settle == 1){ }} |
| | | <a class="layui-btn layui-btn-sm layui-btn-danger" lay-event="stockOut" style="font-size: 16px">拣货单</a> |