| | |
| | | </div> |
| | | </div> |
| | | <!--<div class="layui-inline"> |
| | | <label class="layui-form-label">主计éåä½ï¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" type="text" name="HUnitName" id="HUnitName" value="0" readonly> |
| | | <input class="layui-input" type="hidden" name="HUnitID" id="HUnitID" value="0" readonly> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="Department" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div>--> |
| | | <label class="layui-form-label">主计éåä½ï¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" type="text" name="HUnitName" id="HUnitName" value="0" readonly> |
| | | <input class="layui-input" type="hidden" name="HUnitID" id="HUnitID" value="0" readonly> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="Department" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å
é</label> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">é¦ä»¶æ£éªæ¹æ¡</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HQCSchemeName_Fst" id="HQCSchemeName_Fst" class="layui-input" value="" style="float: left; width: 100px; background-color: #efefef4d;" readonly> |
| | | <input type="hidden" name="HQCSchemeID_Fst" id="HQCSchemeID_Fst" value="0"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HQCSchemeID_Fst-BT" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">è½¬åºæ£éªæ¹æ¡</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HQCSchemeName_Proc" id="HQCSchemeName_Proc" class="layui-input" value="" style="float: left; width: 100px; background-color: #efefef4d;" readonly> |
| | | <input type="hidden" name="HQCSchemeID_Proc" id="HQCSchemeID_Proc" value="0"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HQCSchemeID_Proc-BT" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å·¡æ£æ£éªæ¹æ¡</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HQCSchemeName_Patrol" id="HQCSchemeName_Patrol" class="layui-input" value="" style="float: left; width: 100px; background-color: #efefef4d;" readonly> |
| | | <input type="hidden" name="HQCSchemeID_Patrol" id="HQCSchemeID_Patrol" value="0"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HQCSchemeID_Patrol-BT" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label"> ç©æå
¬å¼ï¼</label> |
| | | <div class="layui-input-inline"> |
| | | <div class="layui-form"> |
| | | <div class="layui-form-item"> |
| | | <select name="HMaterRuleType" id="HMaterRuleType" lay-verify="HMaterRuleType"> |
| | | <option value="å
¶ä»" selected>å
¶ä»</option> |
| | | <option value="ææ">ææ</option> |
| | | <option value="å©å">å©å</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label"> é¢è²è²å·ï¼</label> |
| | | <div class="layui-input-inline" style="width: 151px;"> |
| | | <input type="text" value="" placeholder="è¯·éæ©é¢è²" class="layui-input" id="HColorNo" name="HColorNo" style="width: 101px; float: left;background-color: #efefef4d;" readonly> |
| | | <div id="HColorNoName" name="HColorNoName" style="width: 50px; "></div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label"> ç½å¯è¦æ±ï¼</label> |
| | | <div class="layui-input-inline "> |
| | |
| | | <label class="layui-form-label"> æå¤§è®¢è´§éï¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HQtyMax" lay-verify="HQtyMax" id="HQtyMax" autocomplete="off" value="0"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" > åä»¶æå¤§ä¸éï¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HPieceMaxQty" lay-verify="HPieceMaxQty" id="HPieceMaxQty" autocomplete="off" value="0"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index', //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate'], function () { |
| | | }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate','colorpicker'], function () { |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | | , layer = layui.layer |
| | |
| | | , element = layui.element |
| | | , laypage = layui.laypage |
| | | , laydate = layui.laydate |
| | | , colorpicker = layui.colorpicker |
| | | |
| | | //åå§åçé¢ |
| | | |
| | |
| | | $("#HStopwagesFlag").val(data.elem.checked); |
| | | }); |
| | | |
| | | //éæ©é¦ä»¶æ£éªæ¹æ¡æé® |
| | | form.on('submit(HQCSchemeID_Fst-BT)', function () { |
| | | get_checkQCSchemeID_Fst(); |
| | | }); |
| | | |
| | | //éæ©è½¬åºæ£éªæ¹æ¡æé® |
| | | form.on('submit(HQCSchemeID_Proc-BT)', function () { |
| | | get_checkQCSchemeID_Proc(); |
| | | }); |
| | | |
| | | //éæ©å·¡æ£æ£éªæ¹æ¡æé® |
| | | form.on('submit(HQCSchemeID_Patrol-BT)', function () { |
| | | get_checkHQCSchemeID_Patrol(); |
| | | }); |
| | | |
| | | //éæ©é¢è² |
| | | colorpicker.render({ |
| | | elem: '#HColorNoName' |
| | | , color: '#1c97f5' |
| | | , done: function (color) { |
| | | console.log(color); |
| | | $('#HColorNo').val(color); |
| | | } |
| | | }); |
| | | |
| | | //读åé
ç½®æä»¶ |
| | | function get_ReadConfigFile() { |
| | |
| | | , "HWidth": data.HWidth |
| | | , "HWeight": data.HWeight |
| | | , "HColorRemark": data.æè²è¦æ± |
| | | , "HPieceMaxQty": data.åä»¶æå¤§ä¸é == null ? "0" : data.åä»¶æå¤§ä¸é |
| | | , "HQCSchemeID_Fst": data.HQCSchemeID_Fst |
| | | , "HQCSchemeName_Fst": data.é¦ä»¶æ£éªæ¹æ¡ |
| | | , "HQCSchemeID_Proc": data.HQCSchemeID_Proc |
| | | , "HQCSchemeName_Proc": data.è½¬åºæ£éªæ¹æ¡ |
| | | , "HQCSchemeID_Patrol": data.HQCSchemeID_Patrol |
| | | , "HQCSchemeName_Patrol": data.å·¡æ£æ£éªæ¹æ¡ |
| | | , "HMaterRuleType": data.ç©æå
¬å¼ |
| | | , "HColorNo": data.é¢è²è²å· |
| | | }); |
| | | |
| | | colorpicker.render({ |
| | | elem: '#HColorNoName' |
| | | , color: data.é¢è²è²å· |
| | | }); |
| | | |
| | | console.log($('#HUnitGroupID').val()); |
| | | } else { |
| | | layer.alert(result.msg, { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | |
| | | } |
| | | if ($("#HName").val() == 0) { |
| | | layer.msg("请è¾å
¥ç©æåç§°ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | if ($("#HWhID").val() == 0) { |
| | | layer.msg("è¯·éæ©é»è®¤ä»åºï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | //if ($("#HModel").val() == 0) { |
| | |
| | | } |
| | | } |
| | | |
| | | var HPieceMaxQty = $('#HPieceMaxQty').val(); |
| | | if (HPieceMaxQty.substring(HPieceMaxQty.length - 1, HPieceMaxQty.length) == ".") { |
| | | layer.msg("åä»¶æå¤§ä¸éçç»å°¾ä¸è½æ¯.ï¼"); |
| | | return; |
| | | } else { |
| | | var ref = /^[0-9]+\.?[0-9]*$/; |
| | | if (!ref.test(HPieceMaxQty)) { |
| | | layer.msg("åä»¶æå¤§ä¸éè¯·è¾æ£ç¡®å
¥æ°åï¼"); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | var HKeepDays = $('#HKeepDays').val(); |
| | | if (HKeepDays.substring(HKeepDays.length - 1, HKeepDays.length) == ".") { |
| | | layer.msg("ä¿è´¨æçç»å°¾ä¸è½æ¯.ï¼"); |
| | |
| | | parent.layer.close(index); //åæ§è¡å
³é |
| | | }); |
| | | |
| | | //#region éæ©é¦ä»¶æ£éªæ¹æ¡æ¹æ³ |
| | | function get_checkQCSchemeID_Fst() { |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'æ£éªæ¹æ¡å表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_QCCheckProjectListView.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HQCSchemeName_Fst").val(checkStatus.data[0].æ¹æ¡åç§°); |
| | | $("#HQCSchemeID_Fst").val(checkStatus.data[0].HItemID); |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | //#region éæ©è½¬åºæ£éªæ¹æ¡æ¹æ³ |
| | | function get_checkQCSchemeID_Proc() { |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'æ£éªæ¹æ¡å表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_QCCheckProjectListView.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HQCSchemeName_Proc").val(checkStatus.data[0].æ¹æ¡åç§°); |
| | | $("#HQCSchemeID_Proc").val(checkStatus.data[0].HItemID); |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | //#region éæ©å·¡æ£æ£éªæ¹æ¡æ¹æ³ |
| | | function get_checkHQCSchemeID_Patrol() { |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'æ£éªæ¹æ¡å表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_QCCheckProjectListView.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HQCSchemeName_Patrol").val(checkStatus.data[0].æ¹æ¡åç§°); |
| | | $("#HQCSchemeID_Patrol").val(checkStatus.data[0].HItemID); |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | //éæ©è®¡éåä½ |
| | | form.on('submit(HUnitList)', function () {//éæ©èå¡ |