| | |
| | | <!-- 打印操作弹窗 --> |
| | | <div id="printDataDiv" style="display: none;padding: 20px"> |
| | | <div class="layui-form" style="text-align: center"> |
| | | <hr> |
| | | <!--单选框--> |
| | | <div class="layui-form-item" style="display: inline-block; margin-bottom: 10px"> |
| | | <input type="radio" name="sex" value="男" title="模板一" checked=""> |
| | | <input type="radio" name="sex" value="女" title="模板二"> |
| | | <input type="radio" name="sex" value="禁" title="模板三"> |
| | | <input type="radio" name="selectTemplate" value="1" title="模板一" lay-filter="selectTemplateRadio" checked=""> |
| | | <input type="radio" name="selectTemplate" value="2" title="模板二" lay-filter="selectTemplateRadio"> |
| | | <input type="radio" name="selectTemplate" value="3" title="模板三" lay-filter="selectTemplateRadio"> |
| | | </div> |
| | | <fieldset class="layui-elem-field site-demo-button" style="margin-top: 30px;text-align: left"> |
| | | <fieldset class="layui-elem-field site-demo-button" style="margin-top: 30px;text-align: left;"> |
| | | <legend>打印预览</legend> |
| | | <div id="template-container" style="margin: 20px;text-align: center"> |
| | | <!-- 预览图 1 --> |
| | | <div id="template-preview-1" class="template-preview"> |
| | | <table class="contain" height="317" width="317" style="overflow: hidden"> |
| | | <div id="template-preview-1" class="template-preview" style="display: none"> |
| | | <!-- <table class="contain" height="317" width="317" style="overflow: hidden">--> |
| | | <!-- <tr>--> |
| | | <!-- <td width="20%" align="right" scope="col">客户</td>--> |
| | | <!-- <td class="customer" width="30%" align="left" scope="col">{{this.customer}}</td>--> |
| | | <!-- <td width="80%" align="right" scope="col">颜色</td>--> |
| | | <!-- <td class="color" width="30%" align="left" scope="col">1</td>--> |
| | | <!-- </tr>--> |
| | | <!-- <tr>--> |
| | | <!-- <td align="right">生产日期</td>--> |
| | | <!-- <td class="createTime" align="left">{{this.createTime$}}</td>--> |
| | | <!-- <td align="right">数量</td>--> |
| | | <!-- <td class="amount" align="left">{{this.amount}}</td>--> |
| | | <!-- </tr>--> |
| | | <!-- <tr>--> |
| | | <!-- <td align="right">型号打字</td>--> |
| | | <!-- <td class="modelType" align="left" colspan="3">{{this.modelType}}</td>--> |
| | | <!-- </tr>--> |
| | | <!-- <tr>--> |
| | | <!-- <td align="right">产品批号</td>--> |
| | | <!-- <td class="seq" align="left">{{this.seq}}</td>--> |
| | | <!-- <td colspan="2" rowspan="3" align="right"><img class="qrcode" src="" style="width: 80%"></td>--> |
| | | <!-- </tr>--> |
| | | <!-- <tr>--> |
| | | <!-- <td align="right">装检验号</td>--> |
| | | <!-- <td class="boxCheck" align="left">{{this.boxCheck}}</td>--> |
| | | <!-- </tr>--> |
| | | <!-- <tr>--> |
| | | <!-- <td align="right">箱号</td>--> |
| | | <!-- <td class="boxNumber" align="left">{{this.boxNumber}}</td>--> |
| | | <!-- </tr>--> |
| | | <!-- </table>--> |
| | | <table class="contain" height="217" width="317" style="overflow: hidden;font-size: xx-small"> |
| | | <tr> |
| | | <td width="20%" align="right" scope="col">客户</td> |
| | | <td class="customer" width="30%" align="left" scope="col">{{this.customer}}</td> |
| | | <td width="20%" align="right" scope="col">颜色</td> |
| | | <td class="color" width="30%" align="left" scope="col">1</td> |
| | | <td colspan="1" align="right" scope="col">条码</td> |
| | | <td class="barcode" colspan="3" align="left" scope="col"> |
| | | <img class="template-qrcode" src="" width="80%"> |
| | | <div style="letter-spacing: 2px;margin-top: 3px">xxxxxx</div> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td align="right">生产日期</td> |
| | | <td class="createTime" align="left">{{this.createTime$}}</td> |
| | | <td align="right">数量</td> |
| | | <td class="amount" align="left">{{this.amount}}</td> |
| | | <td align="right" width="25%">物料编码</td> |
| | | <td align="right" width="25%">xxxxxx-xx/xx</td> |
| | | <td align="right" width="25%">物料名称</td> |
| | | <td align="right" width="25%">xxxxxxx</td> |
| | | </tr> |
| | | <tr> |
| | | <td align="right">型号打字</td> |
| | | <td class="modelType" align="left" colspan="3">{{this.modelType}}</td> |
| | | </tr> |
| | | <tr> |
| | | <td align="right">产品批号</td> |
| | | <td class="seq" align="left">{{this.seq}}</td> |
| | | <td colspan="2" rowspan="3" align="right"><img class="qrcode" src="" style="width: 80%"></td> |
| | | </tr> |
| | | <tr> |
| | | <td align="right">装检验号</td> |
| | | <td class="boxCheck" align="left">{{this.boxCheck}}</td> |
| | | </tr> |
| | | <tr> |
| | | <td align="right">箱号</td> |
| | | <td class="boxNumber" align="left">{{this.boxNumber}}</td> |
| | | <td align="right" width="25%">物料单位</td> |
| | | <td align="right" width="25%">xxxxxxxx</td> |
| | | <td align="right" width="25%">物料规格</td> |
| | | <td align="right" width="25%">xxxxxxx</td> |
| | | </tr> |
| | | </table> |
| | | </div> |
| | | |
| | | <!-- 预览图 2 --> |
| | | <div class="template-preview"></div> |
| | | <div id="template-preview-2" class="template-preview" style="display: inline-block"> |
| | | <table class="contain" height="217" width="317" style="overflow: hidden;font-size: xx-small"> |
| | | <tr> |
| | | <td colspan="1" align="right" scope="col">条码</td> |
| | | <td class="barcode" colspan="3" align="left" scope="col"> |
| | | <img class="template-qrcode" src="" width="80%"> |
| | | <div style="letter-spacing: 2px;margin-top: 3px">xxxxxx</div> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td align="right" width="25%">物料编码</td> |
| | | <td align="right" width="25%">xxxxxx-xx/xx</td> |
| | | <td align="right" width="25%">物料名称</td> |
| | | <td align="right" width="25%">xxxxxxx</td> |
| | | </tr> |
| | | <tr> |
| | | <td align="right" width="25%">物料单位</td> |
| | | <td align="right" width="25%">xxxxxxxx</td> |
| | | <td align="right" width="25%">物料规格</td> |
| | | <td align="right" width="25%">xxxxxxx</td> |
| | | </tr> |
| | | </table> |
| | | </div> |
| | | |
| | | <!-- 预览图 3 --> |
| | | <div class="template-preview"></div> |
| | | <div id="template-preview-3" class="template-preview"></div> |
| | | </div> |
| | | </fieldset> |
| | | |
| | |
| | | </div> |
| | | </div> |
| | | |
| | | <div id="box" style="display: block"></div> |
| | | |
| | | <!-- 初始化打印模板的条形码 --> |
| | | <script type="text/javascript"> |
| | | $('.template-qrcode').attr("src", baseUrl+"/macCode/barcode/auth?param=123"); |
| | | </script> |
| | | |
| | | <!-- 模板引擎 --> |
| | | <!-- 模板1 --> |
| | | <script type="text/template" id="templatePreview1"> |
| | | {{#each data}} |
| | | <table class="contain" height="217" width="317" style="overflow: hidden;font-size: xx-small"> |
| | | <tr> |
| | | <td colspan="1" align="right" scope="col">条码</td> |
| | | <td class="barcode" colspan="3" align="left" scope="col"> |
| | | <img class="qrcode" src="{{this.barcodeUrl}}" width="80%"> |
| | | <div style="letter-spacing: 2px;margin-top: 3px">{{this.barcode}}</div> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td align="right" width="25%">物料编码</td> |
| | | <td align="right" width="25%">{{this.matNo}}</td> |
| | | <td align="right" width="25%">物料名称</td> |
| | | <td align="right" width="25%">{{this.matName}}</td> |
| | | </tr> |
| | | <tr> |
| | | <td align="right" width="25%">物料单位</td> |
| | | <td align="right" width="25%">{{this.str1}}</td> |
| | | <td align="right" width="25%">物料规格</td> |
| | | <td align="right" width="25%">{{this.str2}}</td> |
| | | </tr> |
| | | </table> |
| | | {{/each}} |
| | | </script> |
| | | <!-- 模板2 --> |
| | | <script type="text/template" id="templatePreview2"> |