| | |
| | | this.v = '1.4.0'; |
| | | }; |
| | | |
| | | //物料表格下拉搜索框使用案例 |
| | | //tableSelect.render({ |
| | | // elem: '#HMATERIALNAME', |
| | | // checkedKey: 'HItemID', |
| | | // searchKey: '物料代码,物料名称', |
| | | // sWhere: '',//table搜索sWhere条件 |
| | | // table: { |
| | | // url: GetWEBURL() + 'Gy_Material/page', |
| | | // where: { user: sessionStorage["HMaker"], "Organization": sessionStorage["Organization"] }, |
| | | // cols: [[ |
| | | // { type: 'checkbox', fixed: 'left' }, |
| | | // { field: 'HItemID', title: 'HItemID' }, |
| | | // { field: '物料代码', title: '物料代码' }, |
| | | // { field: '物料名称', title: '物料名称' }, |
| | | // ]], |
| | | // page: true, |
| | | // limit: 5, |
| | | // limits: [5] |
| | | // }, |
| | | // done: function (elem, data) { |
| | | // if (data != []) { |
| | | // //获取数据 |
| | | // /*$("#HMATERIALNAME").blur();//单元格失去焦点*/ |
| | | // $("#HMATERIALID").val(data.data[0].HItemID); |
| | | // $("#HMATERIALNAME").val(data.data[0].物料名称); |
| | | // get_FastQuery() |
| | | // } |
| | | |
| | | // } |
| | | //}) |
| | | //工序表格下拉搜索框 |
| | | //tableSelect.render({ |
| | | // elem: 'td[data-field="工序"] .layui-table-edit', |
| | | // searchKey: '工序代码,工序名称', |
| | | // sWhere: " and 明细标记 = 'Y' and 禁用标记 != 'Y'",//table搜索sWhere条件 |
| | | // ajaxSelect: function (sWhere) { |
| | | // var data = ''; |
| | | // $.ajax({ |
| | | // url: GetWEBURL() + '/Gy_Process/list', |
| | | // type: "GET", |
| | | // data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | // async: false, |
| | | // success: function (data1) { |
| | | // if (data1.count == 1) { |
| | | // data = data1.data |
| | | // } |
| | | // }, |
| | | // error: function () { |
| | | // layer.alert('获取列表失败!', { icon: 15, title: '通信错误' }); |
| | | // } |
| | | // }); |
| | | // return data; |
| | | // },//设置前端分页时可以设置的 |
| | | // table: { |
| | | // cols: [[ |
| | | // { type: 'radio', fixed: 'left' }, |
| | | // { field: 'HItemID', title: 'HItemID', hide: true }, |
| | | // { field: '工序代码', title: '工序代码' }, |
| | | // { field: '工序名称', title: '工序名称' }, |
| | | // { field: 'HProcMulID', title: 'HProcMulID', hide: true }, |
| | | // { field: '工段名称', title: '工段名称' } |
| | | // ]], |
| | | // page: true, |
| | | // limit: 5, |
| | | // //limits: [5] |
| | | // }, |
| | | // done: function (elem, data) { |
| | | // $(".layui-table-edit").blur();//单元格失去焦点 |
| | | // //setTableByHMater(obj, data); |
| | | // } |
| | | //}) |
| | | |
| | | /** |
| | | * 初始化表格选择器 |
| | | */ |