| | |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container"> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-normal">普通条码</button>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-box">内外箱条码</button> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-box">内外箱条码</button>--> |
| | | |
| | | </div> |
| | | </script> |
| | |
| | | var linterid = params[params[0]]; |
| | | var lentryid = params[params[1]]; |
| | | var type = params[params[2]]; |
| | | //原生成条码方法 |
| | | //原生成条码方法(送货单默认) |
| | | var mainUrl = "GetHBarCodeShowBillMain"; //表头数据加载ajax |
| | | var subUrl = "GetHBarCodeShowBillSub";//表体数据加载ajax |
| | | var saveBarCode = "GetBarcodeSaveBillBox";//条码生成保存方法ajax |
| | | var openTmpListType = "SRM_POInStockBillList"; //条码打印按钮 弹出界面 |
| | | //采购订单条码生成规则 |
| | | if (type == 'SRM_POOrderBillList') { |
| | | mainUrl = 'GetHBarCodeShowBillMainBycg'; |
| | | subUrl = "GetHBarCodeShowBillSubBycg"; |
| | | saveBarCode = "GetBarcodeSaveBillBoxBycg"; |
| | | openTmpListType = 'SRM_POOrderBillList'; |
| | | |
| | | } |
| | | //委外订单 |
| | | else if (type == 'SRM_EntrustOrderBill') { |
| | | mainUrl = 'GetHBarCodeShowBillMainBywy'; |
| | | subUrl = "GetHBarCodeShowBillSubBywy"; |
| | | saveBarCode = "GetBarcodeSaveBillBoxBycg";//调用采购数据 |
| | | openTmpListType = 'SRM_POOrderBillList'; |
| | | } |
| | | // debugger; |
| | | $.ajax({ |
| | |
| | | , shade: 0.6 //遮罩透明度 |
| | | , maxmin: false //允许全屏最小化 |
| | | , anim: 0 //0-6的动画形式,-1不开启 |
| | | , content: ['../../views/BaseSet/SRM_OpenTmpList.html?linterid=' + rows.toString() + '&HBarcode=' + rows2.toString() + '&Type=HBarCodePrint', 'yes'] |
| | | , content: ['../../views/BaseSet/SRM_OpenTmpList.html?linterid=' + rows.toString() + '&HBarcode=' + rows2.toString() + '&Type=' + openTmpListType, 'yes'] |
| | | , resize: false |
| | | //, cancel: function () { |
| | | // $(".layui-btn").removeClass("layui-btn-disabled"); |