|
|
@@ -122,7 +122,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','jQuery.print'], funct
|
|
|
<td>${res.specifications}</td>
|
|
|
<td></td>
|
|
|
</tr>`;
|
|
|
-
|
|
|
+ //写入页面
|
|
|
+ $("#table").append(str);
|
|
|
// $("#print_gy").append(html);
|
|
|
//清空物料扫描后的值,下次直接重新扫描即可
|
|
|
$("#wuliao").val('');
|
|
|
@@ -133,14 +134,11 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','jQuery.print'], funct
|
|
|
title: ['信息'],
|
|
|
btn: ['确认', '取消'],
|
|
|
area: ['60%', '60%'],
|
|
|
- },function(index) { //点击确定正常执行
|
|
|
- //写入页面
|
|
|
- $("#table").append(str);
|
|
|
+ },function(index) { //点击确定写入打印页面
|
|
|
$("#print_gy").append(html);
|
|
|
layer.close(index);
|
|
|
- },function(indexx){ //点击取消删除添加的最后一个元素
|
|
|
- // $("#table tr:last").remove();
|
|
|
- layer.close(indexx);
|
|
|
+ },function(){ //点击取消删除添加的最后一个元素
|
|
|
+ $("#table tr:last").remove();
|
|
|
});
|
|
|
//语音播报
|
|
|
var synth = window.speechSynthesis;
|