| | |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label">å·¥ä½ä¸å¿*</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HCenter" id="HCenter" class="layui-input" value="" style="float:left;width:150px; background-color:#efefef4d;" readonly> |
| | | <input type="text" name="HCenter" id="HCenter" class="layui-input" value="" style="float:left;width:150px; background-color:#efefef4d;"> |
| | | <input type="hidden" name="HCenterID" id="HCenterID" value="0"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HWorkingProcedure-BT" 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', 'laydate', 'table', 'element'], function () { |
| | | }).use(['index', 'form', 'laydate', 'table', 'element', 'tableSelect'], function () { |
| | | |
| | | //#region å
¬ç¨åé |
| | | var $ = layui.$ |
| | |
| | | , layer = layui.layer |
| | | , table = layui.table |
| | | , form = layui.form |
| | | , element = layui.element; |
| | | , element = layui.element |
| | | , tableSelect = layui.tableSelect; |
| | | var date = new Date(); |
| | | var day = date.getDate(); |
| | | var month = date.getMonth() + 1; |
| | |
| | | get_checkWorkCenter(); |
| | | }); |
| | | |
| | | //å·¥ä½ä¸å¿è¾å
¥æ¡ |
| | | tableSelect.render({ |
| | | elem: '#HCenter',//è¾å
¥æ¡doméæ© |
| | | searchKey: 'å·¥ä½ä¸å¿åç§°,å·¥ä½ä¸å¿ä»£ç ',//æ¥è¯¢çåå |
| | | sWhere: " and ç¦ç¨æ è®° != 'Y' and HUSEORGID = '100038' ",//tableæç´¢sWhereæ¡ä»¶ //é»è®¤çé项 |
| | | ajaxSelect: function (sWhere) { |
| | | var data = ''; |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Gy_WorkCenter/list', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere, "user": 'ç¿æ¶æ¶' }, |
| | | 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 != []) { |
| | | $("#HCenter").val(data.data[0]['å·¥ä½ä¸å¿åç§°']); |
| | | $("#HCenterID").val(data.data[0]['HItemID']); |
| | | } |
| | | |
| | | } |
| | | }) |
| | | |
| | | //éæ©çç»æé® |
| | | form.on('submit(ProductionTeam-BT)', function () { |
| | | get_checkGroup(); |