| | |
| | | <script src="../../../../Scripts/webConfig.js"></script> |
| | | <script> |
| | | var _cur_page = 1; |
| | | var sql = " and 1=1"; |
| | | var sql = ""; |
| | | var options = document.getElementById('HStatus').children; |
| | | function getUrlVars() { |
| | | var vars = [], hash; |
| | |
| | | // , where: { msg: "", NowPage: 1, OnePage: 10 } |
| | | , cellMinWidth: 100 |
| | | , cols: [[ |
| | | { checkbox: true, fixed: true } |
| | | { checkbox: true, fixed: true, totalRowText: '合计' } |
| | | , { field: '状态', title: '状态', width: 100, sort: true, fixed: true } |
| | | , { field: '单据号', title: '单据号', width: 200, sort: true, fixed: true } |
| | | , { field: '源单单号', title: '源单单号', width: 150 } |
| | |
| | | , { field: '物料', title: '物料名称', width: 200 } |
| | | , { field: '规格型号', title: '规格型号', width: 200 } |
| | | , { field: '计量单位', title: '计量单位', width: 80, sort: true } |
| | | , { field: '数量', title: '数量', width: 130 } |
| | | , { field: '合格数量', title: '合格数量', width: 130 } |
| | | , { field: '不合格数量', title: '不合格数量', width: 130 } |
| | | , { field: '数量', title: '数量', width: 130, totalRow: true} |
| | | , { field: '合格数量', title: '合格数量', width: 130, totalRow: true} |
| | | , { field: '不合格数量', title: '不合格数量', width: 130, totalRow: true} |
| | | , { field: '日期', title: '日期', width: 150 } |
| | | ]] |
| | | , page: true //是否显示分页 |
| | | , totalRow: true |
| | | , limits: [10, 20, 50, 100] |
| | | , limit: 50 //每页默认显示的数量 |
| | | //, height: 500 |
| | |
| | | }); |
| | | }; |
| | | form.on('submit(f_Query)', function (data) {//查询 |
| | | var sqlWhere = " and 1=1 "; |
| | | var sqlWhere = " "; |
| | | if ($("#HStatus").val() != "") |
| | | sqlWhere += " and 状态 like ^^%" + $("#HStatus").val() + "%^^"; |
| | | if ($("#HBillNo").val() != "") |
| | |
| | | }); |
| | | }, |
| | | f_Query: function () { //查询 |
| | | //var sqlWhere = " and 1=1 "; |
| | | //if ($("#HBillNo").val() != "") |
| | | // sqlWhere += " and 单据号 like ''%" + $("#HBillNo").val() + "%''"; |
| | | //RoadHBillNo(sqlWhere); |
| | | }, |
| | | }; |
| | | $('.test-table-reload-btn .layui-btn').on('click', function () { |