| | |
| | | |
| | | <!DOCTYPE html> |
| | | <html> |
| | | |
| | | <head> |
| | | <meta charset="UTF-8" /> |
| | | <meta name="viewport" content="user-scalable=0,width=device-width,initial-scale=1.0" /> |
| | |
| | | .layout-bill-info { |
| | | height: 255px; |
| | | } |
| | | |
| | | .layout-tbl-submit { |
| | | margin-top: 10px; |
| | | } |
| | | </style> |
| | | </head> |
| | | |
| | | <body> |
| | | <div id="" class="main-content"> |
| | | <div id="" class="layout-title"> |
| | |
| | | </ul> |
| | | </div> |
| | | <div> |
| | | <button id="click" class="layout-btn" type="button" style="background-color: #999; width: 100%;text-align: center; margin-top: 2px;">连接蓝牙</button> |
| | | <button id="click" class="layout-btn" type="button" |
| | | style="background-color: #999; width: 100%;text-align: center; margin-top: 2px;">连接蓝牙</button> |
| | | </div> |
| | | <div id="zongDiv2" class="layout-bill-info" style="height: 255px;"> |
| | | <form class="layui-form" id="form2" action=""> |
| | |
| | | <div class="layui-form-item layout-input" style="margin-top: 10px;"> |
| | | <label class="layui-form-label">物料名称:</label> |
| | | <div class="layui-input-block"> |
| | | <input id="skuName" type="text" placeholder="" |
| | | autocomplete="off" class="layui-input" > |
| | | <input id="skuName" type="text" placeholder="" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item layout-input" style="margin-top: 10px;"> |
| | | <label class="layui-form-label">批次号:</label> |
| | | <div class="layui-input-block"> |
| | | <input id="lotNo" type="text" placeholder="" |
| | | autocomplete="off" class="layui-input" > |
| | | <input id="lotNo" type="text" placeholder="" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item layout-input" style="margin-top: 10px;"> |
| | | <label class="layui-form-label">生产日期:</label> |
| | | <div class="layui-input-block"> |
| | | <input id="timeFrom" type="date" placeholder="请选择日期" |
| | | autocomplete="off" class="measureDate" style="padding-left: 0px;"> |
| | | <input id="timeFrom" type="date" placeholder="请选择日期" autocomplete="off" class="measureDate" |
| | | style="padding-left: 0px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item layout-input" style="margin-top: 10px;"> |
| | | <label class="layui-form-label">有效期:</label> |
| | | <div class="layui-input-block"> |
| | | <input id="timeEnd" type="date" placeholder="请选择日期" |
| | | autocomplete="off" class="measureDate" style="padding-left: 0px;"> |
| | | <input id="timeEnd" type="date" placeholder="请选择日期" autocomplete="off" class="measureDate" |
| | | style="padding-left: 0px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item layout-input" style="margin-top: 10px;"> |
| | | <label class="layui-form-label">箱内数量:</label> |
| | | <div class="layui-input-block"> |
| | | <input id="skuNum" type="text" placeholder="" |
| | | autocomplete="off" class="layui-input" > |
| | | <input id="skuNum" type="text" placeholder="" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | if (res.code == 0 && res.data != null) { //成功 |
| | | console.log(res.data); |
| | | dataLists = res.data; |
| | | }else{ |
| | | layer.msg(res.msg, { |
| | | icon: 2, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | | }); |
| | | return; |
| | | } |
| | | |
| | | }); |
| | | |
| | | let data = { |
| | | type: "print", |
| | |
| | | uni.postMessage({ |
| | | data: data, |
| | | }); |
| | | } else { |
| | | layer.msg(res.msg, { |
| | | icon: 2, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | | }); |
| | | return; |
| | | } |
| | | |
| | | }); |
| | | |
| | | |
| | | }); |
| | | }); |
| | | |
| | |
| | | |
| | | </script> |
| | | </body> |
| | | |
| | | </html> |
| | | |
| | | |