| | |
| | | .showCls { |
| | | display: block; |
| | | } |
| | | .font-size12{ |
| | | font-size: 12px; |
| | | } |
| | | .font-size10{ |
| | | font-size: 10px; |
| | | } |
| | | </style> |
| | | </head> |
| | | |
| | | <body> |
| | | <div style="width:100%;"> |
| | | <div class="layui-form hideCls" lay-filter="layuiadmin-app-form-list" id="print" |
| | | style="width: 100%;height:100%; text-align: right;padding-top: 5px;margin-left: 0%;"> |
| | | <div> |
| | | <table border="1" id="table" style="width: 90%; height:480px; margin: 0 auto; text-align: center;border-collapse: collapse;table-layout: fixed;"> |
| | | |
| | | <div class="layui-form hideCls" lay-filter="layuiadmin-app-form-list" id="print" style="width: 100%;height:100%;"> |
| | | <div style="display: flex;align-items: center;justify-content: center; height: 260px;"> |
| | | <table border="1" id="table" style="width: 90%; height:240px; text-align: center;border-collapse: collapse;table-layout: fixed;"> |
| | | <tr> |
| | | <td colspan="2"> |
| | | <img src="../../img/LiNuo.jpg" style="width: 90%; height: 30px;" /> |
| | | <img src="../../img/LiNuo.jpg" style="width: 80%; height: 15px;" /> |
| | | </td> |
| | | <td colspan="2" style="padding: 1px 0px;">SMP-ST002-R08-01</td> |
| | | <td colspan="2" style="padding: 1px 0px;" class="font-size12">SMP-ST002-R08-01</td> |
| | | </tr> |
| | | <tr> |
| | | <td colspan="4">物料标签</td> |
| | | <td colspan="4" class="font-size12">物料标签</td> |
| | | </tr> |
| | | <tr> |
| | | <td>品名</td> |
| | | <td colspan="3" id="SkuName"></td> |
| | | <td class="font-size12">品名</td> |
| | | <td colspan="3" id="SkuName" class="font-size10"></td> |
| | | </tr> |
| | | <tr> |
| | | <td>规格/型号</td> |
| | | <td id="Standard"></td> |
| | | <td>包装规格</td> |
| | | <td id="PackageStandard"></td> |
| | | <td class="font-size12">规格/型号</td> |
| | | <td id="Standard" class="font-size10"></td> |
| | | <td class="font-size12">包装规格</td> |
| | | <td id="PackageStandard" class="font-size10"></td> |
| | | </tr> |
| | | <tr> |
| | | <td>进厂编号</td> |
| | | <td id="LotNo"></td> |
| | | <td>物料代码</td> |
| | | <td id="SkuNo"></td> |
| | | <td class="font-size12">进厂编号</td> |
| | | <td id="LotNo" class="font-size10"></td> |
| | | <td class="font-size12">物料代码</td> |
| | | <td id="SkuNo" class="font-size10"></td> |
| | | </tr> |
| | | <tr> |
| | | <td>原厂批号</td> |
| | | <td id="SupplierLot"></td> |
| | | <td>数 量</td> |
| | | <td id="Qty"></td> |
| | | <td class="font-size12">原厂批号</td> |
| | | <td id="SupplierLot" class="font-size10"></td> |
| | | <td class="font-size12">数 量</td> |
| | | <td id="Qty" class="font-size10"></td> |
| | | </tr> |
| | | <tr> |
| | | <td>有效期至</td> |
| | | <td id="ExpirationTime"></td> |
| | | <td>储存期至</td> |
| | | <td id="StoreTime"></td> |
| | | <td class="font-size12">有效期至</td> |
| | | <td id="ExpirationTime" class="font-size10"></td> |
| | | <td class="font-size12">储存期至</td> |
| | | <td id="StoreTime" class="font-size10"></td> |
| | | </tr> |
| | | <tr> |
| | | <td colspan="4" style="padding: 5px 0px;"> |
| | | <img id="imgBar" style="width: 100%; height: auto;" /> |
| | | <img id="imgBar" style="width: 90%; height: 25px;" /> |
| | | </td> |
| | | </tr> |
| | | |
| | |
| | | <div style="page-break-after: always;"></div> |
| | | </div> |
| | | <div class="layui-form hideCls" lay-filter="layuiadmin-app-form-list" id="print2" |
| | | style="width: 100%;height:100%; text-align: right;padding-top: 15px;margin-left: 0%;"></div> |
| | | style="width: 100%;height:100%;"></div> |
| | | |
| | | <div class="layui-form" style="padding: 30px 15px 0px; " id="button"> |
| | | <div class="layui-form-item" style="margin-bottom:0px;"> |
| | |
| | | GetImportId(); |
| | | }); |
| | | form.on('select(Type)', function (data) { |
| | | console.log(data.value); //得到被选中的值 |
| | | // console.log(data.value); //得到被选中的值 |
| | | if (data.value == "1") { |
| | | $("#LabelStream").removeAttr("readonly") |
| | | $("#EndBoxCode").removeAttr("readonly") |
| | |
| | | synData(IP + "/BllAsn/GetBuDaLabelList", param1, 'post', function (res) { |
| | | if (res.code == 0) { //成功 |
| | | var labels = ""; |
| | | console.log(res.data); |
| | | // console.log(res.data); |
| | | for (var z = 0; z < res.data.length; z++) { |
| | | var idd = ""; |
| | | if (z - 1 >= 0) { |
| | | idd = (z - 1).toString(); |
| | | } |
| | | console.log(res.data[z]); |
| | | console.log(z); |
| | | // console.log(res.data[z]); |
| | | // console.log(z); |
| | | $("#SkuNo").attr("id", "SkuNo" + z.toString()); |
| | | $("#SkuNo" + z.toString()).html(res.data[z].SkuNo); |
| | | |
| | |
| | | $("#imgBar" + z.toString()).attr("id", "imgBar"); |
| | | $("#imgBar").attr("src", ""); |
| | | } |
| | | console.log(labels); |
| | | // console.log(labels); |
| | | document.getElementById('print2').innerHTML = ""; |
| | | document.getElementById('print2').innerHTML = labels; |
| | | $("#print2").removeClass("hideCls"); |
| | |
| | | //$("#button").show(); |
| | | $("#print2").addClass("hideCls"); |
| | | |
| | | $("#LabelStream").val(""); |
| | | $("#EndBoxCode").val(""); |
| | | $("#LabelStream2").val(""); |
| | | $("#EndBoxCode2").val(""); |
| | | // $("#LabelStream").val(""); |
| | | // $("#EndBoxCode").val(""); |
| | | // $("#LabelStream2").val(""); |
| | | // $("#EndBoxCode2").val(""); |
| | | |
| | | } else { //不成功 |
| | | layer.msg(res.msg, { |