| | |
| | | ,{field: 'price', align: 'center',title: '进项税', hide: true} |
| | | ,{field: 'units', align: 'center',title: '销项税', hide: true} |
| | | ,{field: 'memo', align: 'center',title: '备注', hide: true} |
| | | |
| | | ,{field: 'proddate$', align: 'center',title: '生产日期', hide:false} |
| | | ,{field: 'deadline$', align: 'center',title: '到期日期', hide:false} |
| | | ]; |
| | | |
| | | // cols.push.apply(cols, detlCols); |
| | |
| | | page: true, |
| | | limit: 20, |
| | | where:{ |
| | | unreason: false |
| | | unreason: false, |
| | | expired: false |
| | | }, |
| | | limits: [20, 30, 50, 100, 200, 500], |
| | | even: true, |
| | |
| | | }); |
| | | }); |
| | | |
| | | form.on('submit(expired)', function (data) { |
| | | pageCurr = 1; |
| | | |
| | | tableIns.reload({ |
| | | where: { |
| | | expired: true |
| | | }, |
| | | page: { |
| | | curr: pageCurr |
| | | }, |
| | | done: function (res, curr, count) { |
| | | |
| | | if (res.code === 403) { |
| | | top.location.href = baseUrl+"/"; |
| | | } |
| | | pageCurr=curr; |
| | | |
| | | limit(child); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | // 时间选择器 |
| | | layDate.render({ |
| | | elem: '#modiTime\\$', |
| | |
| | | |
| | | function tableReload(child) { |
| | | var searchData = { |
| | | unreason: false |
| | | unreason: false, |
| | | expired: false |
| | | }; |
| | | $.each($('#search-box [name]').serializeArray(), function() { |
| | | searchData[this.name] = this.value; |