| | |
| | | , {field: 'inQty', align: 'center', title: '入库数量', width: 110} |
| | | , {field: 'disQty', align: 'center', title: '通知单', width: 110} |
| | | , {field: 'outQty', align: 'center', title: '出库数量', width: 110} |
| | | |
| | | , {field: 'invoiceQty', align: 'center', title: '开票数量'} |
| | | , {field: 'unInvoiceQty', align: 'center', title: '未开票数量'} |
| | | , {field: 'deliveryDate', align: 'center', title: '交货日期'} |
| | | , {field: 'personName', align: 'center', title: '业务员'} |
| | | ); |
| | | return cols; |
| | | } |
| | |
| | | /* 表格数据重载 */ |
| | | function tableReload(child) { |
| | | var searchData = {}; |
| | | $.each($('#search-box [name]').serializeArray(), function () { |
| | | if (this.name == 'orderCode') { |
| | | searchData.orderCode = this.value; |
| | | } |
| | | $.each($('#search-box [name]').serializeArray(), function() { |
| | | searchData[this.name] = this.value; |
| | | if (this.name == 'orderTime') { |
| | | searchData.startTime = this.value.substring(0, 10); |
| | | searchData.endTime = this.value.substring(13, this.value.length); |
| | | } |
| | | }); |
| | | |
| | | console.log(searchData); |
| | | |
| | | (child ? parent.tableIns : tableIns).reload({ |
| | | where: searchData, |
| | | page: { |
| | |
| | | }, |
| | | done: function (res, curr, count) { |
| | | if (res.code === 403) { |
| | | top.location.href = baseUrl + "/"; |
| | | top.location.href = baseUrl+"/"; |
| | | } |
| | | pageCurr = curr; |
| | | pageCurr=curr; |
| | | if (res.data.length === 0 && count !== 0) { |
| | | tableIns.reload({ |
| | | where: searchData, |
| | | page: { |
| | | curr: pageCurr - 1 |
| | | curr: pageCurr-1 |
| | | } |
| | | }); |
| | | pageCurr -= 1; |
| | | } |
| | | limit(child); |
| | | // 当前分页数据存储 |
| | | locNormalList = res.data; |
| | | // limit(child); |
| | | } |
| | | }); |
| | | } |
| | | // function tableReload(child) { |
| | | // var searchData = {}; |
| | | // $.each($('#search-box [name]').serializeArray(), function () { |
| | | // if (this.name == 'orderCode') { |
| | | // searchData.orderCode = this.value; |
| | | // } |
| | | // if (this.name == 'orderTime') { |
| | | // searchData.startTime = this.value.substring(0, 10); |
| | | // searchData.endTime = this.value.substring(13, this.value.length); |
| | | // } |
| | | // }); |
| | | // |
| | | // console.log(searchData); |
| | | // |
| | | // (child ? parent.tableIns : tableIns).reload({ |
| | | // where: searchData, |
| | | // page: { |
| | | // curr: pageCurr |
| | | // }, |
| | | // done: function (res, curr, count) { |
| | | // if (res.code === 403) { |
| | | // top.location.href = baseUrl + "/"; |
| | | // } |
| | | // pageCurr = curr; |
| | | // if (res.data.length === 0 && count !== 0) { |
| | | // tableIns.reload({ |
| | | // where: searchData, |
| | | // page: { |
| | | // curr: pageCurr - 1 |
| | | // } |
| | | // }); |
| | | // pageCurr -= 1; |
| | | // } |
| | | // // limit(child); |
| | | // // 当前分页数据存储 |
| | | // locNormalList = res.data; |
| | | // } |
| | | // }); |
| | | // } |
| | | |
| | | /* 监听回车事件 */ |
| | | $('body').keydown(function () { |