| | |
| | | <div class="layui-col-md12"> |
| | | <div class="layui-card" style="padding: 1px"> |
| | | <div class="layui-card-body" style="padding: 1px;"> |
| | | <form class="layui-form" action="" lay-filter="component-form-group"> |
| | | <form class="layui-form" action="" lay-filter="component-form-group" autocomplete="off"> |
| | | <div class="layui-collapse"> |
| | | <div class="layui-colla-item"> |
| | | <div class="layui-colla-title layui-inline"> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">çç»<label style="color:red"></label></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HGroupName" id="HGroupName" readonly class="layui-input" value="" style="background-color: #efefef4d; float: left; width: 150px;"> |
| | | <input type="text" name="HGroupName" id="HGroupName" class="layui-input" value="" style="background-color: #efefef4d; float: left; width: 150px;"> |
| | | <input type="hidden" name="HGroupID" id="HGroupID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HGroupList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">èå</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HEmpName" id="HEmpName" style="float:left;width:150px;" readonly> |
| | | <input type="text" class="layui-input" name="HEmpName" id="HEmpName" style="float:left;width:150px;" > |
| | | <input type="hidden" class="layui-input" name="HEmpID" id="HEmpID" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HEmpList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index', //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate', 'soulTable'], function () { |
| | | }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate', 'soulTable','tableSelect'], function () { |
| | | |
| | | //#region å
Œ
±åé |
| | | var $ = layui.$ |
| | |
| | | , laypage = layui.laypage |
| | | , laydate = layui.laydate |
| | | , soulTable = layui.soulTable |
| | | , tableSelect = layui.tableSelect; |
| | | var ins; |
| | | var sWhere = ""; |
| | | var option = []; |
| | |
| | | //æ¥è¯¢ |
| | | get_FastQuery(1); |
| | | get_FastQuery(2); |
| | | |
| | | //é¨é¨è¾å
¥æ¡ |
| | | tableSelect.render({ |
| | | elem: '#HGroupName',//è¾å
¥æ¡doméæ© |
| | | searchKey: 'çç»åç§°,çç»ä»£ç ',//æ¥è¯¢çåå |
| | | sWhere: ` and HUSEORGID = ${sessionStorage["OrganizationID"]}`,//tableæç´¢sWhereæ¡ä»¶ //é»è®¤çé项 |
| | | ajaxSelect: function (sWhere) { |
| | | var data = ''; |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Gy_Group/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: { |
| | | //url: GetWEBURL() + 'Gy_Supplier/page', |
| | | //where: { user: 'ç¿æ¶æ¶', Organization: 'æµæ±æºäºè¿æ' }, |
| | | cols: [[ |
| | | { type: 'radio', fixed: 'left' },//éè¦å è¿ä¸ªfixed屿§ä¸ç¶ç¹å»checkboxä¼è§¦åè¡ç¹å»å¯¼è´æ æ³æ£ç¡®ç¹å» |
| | | { field: 'HItemID', title: 'HItemID' }, |
| | | { field: 'çç»åç§°', title: 'çç»åç§°' }, |
| | | { field: 'çç»ä»£ç ', title: 'çç»ä»£ç ' }, |
| | | ]], |
| | | page: true, |
| | | limit: 5, |
| | | limits: [5] |
| | | }, |
| | | done: function (elem, data) { |
| | | if (data != []) { |
| | | $("#HGroupName").val(data.data[0]['çç»åç§°']); |
| | | $("#HGroupID").val(data.data[0]['HItemID']); |
| | | } |
| | | |
| | | } |
| | | }) |
| | | //èå |
| | | tableSelect.render({ |
| | | elem: '#HEmpName',//è¾å
¥æ¡doméæ© |
| | | searchKey: 'èååç§°,èå代ç ',//æ¥è¯¢çåå |
| | | sWhere: ` and ç»ç»åç§° = '${sessionStorage["Organization"]}'`,//tableæç´¢sWhereæ¡ä»¶ //é»è®¤çé项 |
| | | ajaxSelect: function (sWhere) { |
| | | var data = ''; |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Gy_Employee/list', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"],"Organization":'' }, |
| | | async: false, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | data = data1.data |
| | | } |
| | | }, |
| | | error: function () { |
| | | layer.alert('è·åå表失败ï¼', { icon: 15, title: 'éä¿¡é误' }); |
| | | } |
| | | }); |
| | | return data; |
| | | },//设置å端å页æ¶å¯ä»¥è®¾ç½®ç |
| | | table: { |
| | | //url: GetWEBURL() + 'Gy_Supplier/page', |
| | | //where: { user: 'ç¿æ¶æ¶', Organization: 'æµæ±æºäºè¿æ' }, |
| | | cols: [[ |
| | | { type: 'radio', fixed: 'left' },//éè¦å è¿ä¸ªfixed屿§ä¸ç¶ç¹å»checkboxä¼è§¦åè¡ç¹å»å¯¼è´æ æ³æ£ç¡®ç¹å» |
| | | { field: 'HItemID', title: 'HItemID' }, |
| | | { field: 'èååç§°', title: 'èååç§°' }, |
| | | { field: 'èå代ç ', title: 'èå代ç ' }, |
| | | ]], |
| | | page: true, |
| | | limit: 5, |
| | | limits: [5] |
| | | }, |
| | | done: function (elem, data) { |
| | | if (data != []) { |
| | | $("#HEmpName").val(data.data[0]['èååç§°']); |
| | | $("#HEmpID").val(data.data[0]['HItemID']); |
| | | } |
| | | |
| | | } |
| | | }) |
| | | |
| | | |
| | | } |
| | | //#endregion |
| | | |