|  |  | 
 |  |  |         insTb.reload({where: data.field, page: {curr: 1}}); | 
 |  |  |     }); | 
 |  |  |  | 
 |  |  |     // 重置 | 
 |  |  |     form.on('submit(reset)', function (data) { | 
 |  |  |         pageCurr = 1; | 
 |  |  |         clearFormVal($('#search-box')); | 
 |  |  |         tableReload(false); | 
 |  |  |     }); | 
 |  |  |  | 
 |  |  |     // 添加 | 
 |  |  |     $("#orderAddBtn").click(function () { | 
 |  |  |         showEditModel(); | 
 |  |  | 
 |  |  |             layer.open({ | 
 |  |  |                 type: 1, | 
 |  |  |                 title: false, | 
 |  |  |                 area: '820px', | 
 |  |  |                 area: '970px', | 
 |  |  |                 offset: [top + 'px', (left - 530 + $a.outerWidth()) + 'px'], | 
 |  |  |                 shade: .01, | 
 |  |  |                 shadeClose: true, | 
 |  |  | 
 |  |  |                             {field: 'matnr', title: '商品编码', width: 160}, | 
 |  |  |                             {field: 'maktx', title: '商品名称', width: 160}, | 
 |  |  |                             {field: 'batch', title: '批号'}, | 
 |  |  |                             {field: 'weight', title: '辅数量'}, | 
 |  |  |                             {field: 'anfme', title: '数量'}, | 
 |  |  |                             {field: 'workQty', title: '作业数量'}, | 
 |  |  |                             {field: 'qty', title: '完成数量', style: 'font-weight: bold'}, | 
 |  |  | 
 |  |  |                             orderId: Number(data.field.id), | 
 |  |  |                             docType: Number(data.field.docType), | 
 |  |  |                             orderNo: data.field.orderNo, | 
 |  |  |                             itemId: Number(data.field.itemId), | 
 |  |  |                             itemName: data.field.itemName, | 
 |  |  |                             orderDetlPakinList: nList | 
 |  |  |                         }), | 
 |  |  |                         contentType:'application/json;charset=UTF-8', | 
 |  |  | 
 |  |  |         ,range: true | 
 |  |  |     }); | 
 |  |  | }); | 
 |  |  |  | 
 |  |  | function tableReload(child) { | 
 |  |  |     var searchData = {}; | 
 |  |  |     $.each($('#search-box [name]').serializeArray(), function() { | 
 |  |  |         searchData[this.name] = this.value; | 
 |  |  |     }); | 
 |  |  |     insTb.reload({ | 
 |  |  |         where: searchData, | 
 |  |  |         page: {curr: pageCurr} | 
 |  |  |     }); | 
 |  |  | } |