| | |
| | | <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"> |
| | | <div style="width: 65%; height: calc(95vh); float: left; background-color: rgb(255 255 255) "> |
| | | <div id="top" style="width:100%;height:calc(40vh);"> |
| | | <div style="width: 65%; height: calc(135vh); float: left; background-color: rgb(255 255 255) "> |
| | | <div id="top" style="width:100%;height:calc(60vh);"> |
| | | <div id="top-left" style="width: 30%; height: calc(40vh); float: left;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 30px;"><span style="font-weight:bolder">设å¤</span></label> |
| | |
| | | <div class="layui-row" style="margin-bottom: 15px;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 65px;">å·¥åº:</label> |
| | | <div class="layui-input-block" style="margin-left: 95px;"> |
| | | <input type="text" class="layui-input" name="HProcName" value="" lay-verify="HProcName" id="HProcName" style="width: 150px; background-color: #efefef4d; " readonly> |
| | | <input type="hidden" name="HProcID" id="HProcID" value="0"> |
| | | <div class="layui-input-block" style="margin-left: 9px;"> |
| | | <input type="text" class="layui-input" name="HProcName" value="" lay-verify="HProcName" id="HProcName" style="background-color: #efefef4d; width: 43%; display: inline-block;" readonly> |
| | | <input type="hidden" name="HProcID" id="HProcID" lay-verify="HProcID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHProcID" id="btnHProcID" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHEmpID" id="btnHEmpID" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 65px;">å·¥æ¶</label> |
| | | <div class="layui-input-block" style="margin-left: 95px;"> |
| | | <input type="text" class="layui-input" name="HWorkTimes" id="HWorkTimes" value="0" style="width: 150px;"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row" style="margin-bottom: 15px;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 65px;">ç©´å·</label> |
| | | <div class="layui-input-block" style="margin-left: 95px; width: 150px"> |
| | | <select name="HMouldNum" id="HMouldNum" lay-verify="required" lay-search class="layui-input"> |
| | | <option value="0#" selected>0#</option> |
| | | <option value="1#">1#</option> |
| | | <option value="2#">2#</option> |
| | | <option value="3#">3#</option> |
| | | <option value="4#">4#</option> |
| | | <option value="5#">5#</option> |
| | | <option value="6#">6#</option> |
| | | <option value="7#">7#</option> |
| | | <option value="8#">8#</option> |
| | | <option value="9#">9#</option> |
| | | <option value="10#">10#</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 65px;">ä¸è¯æ°é</label> |
| | | <div class="layui-input-block" style="margin-left: 95px;"> |
| | | <input type="text" class="layui-input" name="HBadCount" id="HBadCount" value="0" style="width: 150px;"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row" style="margin-bottom: 15px;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 65px;">é失æ°é</label> |
| | | <div class="layui-input-block" style="margin-left: 95px;"> |
| | | <input type="text" class="layui-input" name="HLossQty" id="HLossQty" value="0" style="width: 150px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 65px;">åæ ·æ°é</label> |
| | | <div class="layui-input-block" style="margin-left: 95px;"> |
| | | <input type="text" class="layui-input" name="HToCheckQty" id="HToCheckQty" value="0" style="width: 150px;"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row" style="margin-bottom: 15px;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 65px;">æ¥åºæ°é</label> |
| | | <div class="layui-input-block" style="margin-left: 95px;"> |
| | | <input type="text" class="layui-input" name="HWasterQty" id="HWasterQty" value="0" style="width: 150px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 65px;">è¿å·¥æ°é</label> |
| | | <div class="layui-input-block" style="margin-left: 95px;"> |
| | | <input type="text" class="layui-input" name="HBackWorkQty" id="HBackWorkQty" value="0" style="width: 150px;" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row" style="margin-bottom: 15px;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 65px;">å·¥åºæ°é</label> |
| | | <div class="layui-input-block" style="margin-left: 95px;"> |
| | | <input type="text" class="layui-input" name="HWasterQty_Work" id="HWasterQty_Work" value="0" style="width: 150px;" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 65px;">æåºæ°é</label> |
| | | <div class="layui-input-block" style="margin-left: 95px;"> |
| | | <input type="text" class="layui-input" name="HWasterQty_Mater" id="HWasterQty_Mater" value="0" style="width: 150px;" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row" style="margin-bottom: 15px;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 65px;">模å
·ç¼å·</label> |
| | | <div class="layui-input-block" style="margin-left: 95px;"> |
| | | <input type="text" class="layui-input" name="HMouldNo" id="HMouldNo" value="" style="width: 150px;" readonly> |
| | | <input type="hidden" class="layui-input" name="HMouldID" id="HMouldID" value="0"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 65px;">模å
·åç§°</label> |
| | | <div class="layui-input-block" style="margin-left: 95px;"> |
| | | <input type="text" class="layui-input" name="HMouldName" id="HMouldName" value="" style="width: 150px;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row" style="margin-bottom: 15px;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 65px;">模å
·åå·</label> |
| | | <div class="layui-input-block" style="margin-left: 95px;"> |
| | | <input type="text" class="layui-input" name="HModel" id="HModel" value="" style="width: 150px;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 65px;">设å¤å·¥æ¶</label> |
| | | <div class="layui-input-block" style="margin-left: 95px;"> |
| | | <input type="text" class="layui-input" name="HMachineWorkTimes" id="HMachineWorkTimes" value="0" style="width: 150px;"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row" style="margin-bottom: 15px;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 65px;">æå
¥æ°é</label> |
| | | <div class="layui-input-block" style="margin-left: 95px;"> |
| | | <input type="text" class="layui-input" name="HTRQty" id="HTRQty" value="" style="width: 150px;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 65px;">çäº§çæ¬¡:</label> |
| | | <div class="layui-input-block" style="margin-left: 9px;"> |
| | | <input type="text" class="layui-input" name="HShiftsName" value="" lay-verify="HShiftsName" id="HShiftsName" style="background-color: #efefef4d; width: 43%; display: inline-block;" readonly> |
| | | <input type="hidden" name="HShiftsID" id="HShiftsID" lay-verify="HShiftsID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="HWorkShiftLists" id="HWorkShiftLists" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div id="center" style="width: 100%; height: calc(40vh); margin-top: 1%;"> |
| | | <div id="center" style="width: 100%; height: calc(55vh); margin-top: 1%;"> |
| | | <div id="center-left" style="width: 30%; height: calc(40vh); float: left;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 30px;"><span style="font-weight:bolder">人å</span></label> |
| | |
| | | <div id="chart2" style="width: 75%; height: calc(40vh); left: 2%; float: left;"></div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div id="bottom" style="width: 100%; height: calc(10vh);float:left;"> |
| | | <div id="bottom" style="width: 100%; height: calc(10vh);"> |
| | | <div id="bottom-left" style="width: 100%; height: calc(10vh);"> |
| | | <div style="text-align: left; width: 100%; height: calc(10vh); "> |
| | | <button type="button" lay-submit="" lay-filter="tg" class="layui-btn layui-btn-radius " style="margin-left: 15%;" id="tg">åå·¥æèµ·</button> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div id="center-right-maintable" style="width: 34%; height: calc(95vh); float: left; margin-left: 0.2%; background-color: rgb(255 255 255) "> |
| | | <div id="center-right-maintable" style="width: 34%; height: calc(135vh); float: left; margin-left: 0.2%; background-color: rgb(255 255 255) "> |
| | | <div class="layui-tab" lay-filter="tab-POStockInBill"> |
| | | <ul class="layui-tab-title" lay-filter="tab-all"> |
| | | <li lay-id="1" style="padding:1px;" class="layui-this">æ«ç è®°å½</li> |
| | |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-tab-item layui-show"> |
| | | <div class="layui-form-item"> |
| | | <table class="" id="mainTable" style="width:100%;" lay-filter="mainTable"></table> |
| | | <table class="" id="mainTable" style="width:110%;" lay-filter="mainTable"></table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | </div> |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container"> |
| | |
| | | var HEmpName = ""; //æä½å |
| | | var HManagerName = ""; //è´è´£äºº |
| | | var HGroupName = ""; //çç» |
| | | var HSourceID = 0; //çäº§èµæºid |
| | | var HSourceName = ""; //çäº§èµæº |
| | | |
| | | var edit = function (data) { |
| | | HBillType = data[0].HBillType; |
| | |
| | | HICMOInterID = data[0].HICMOInterID;//ç产订å主å
ç |
| | | HICMOEntryID = data[0].HICMOEntryID;//ç产订ååå
ç |
| | | HSourceID = data[0].HSourceID;//çäº§èµæºid |
| | | HSourceName = data[0].HSourceName;//çäº§èµæº |
| | | HEmpName = data[0].HEmpName;//æä½å |
| | | HManagerName = data[0].HManagerName;//è´è´£äºº |
| | | HGroupName = data[0].HGroupName;//çç» |
| | |
| | | $("#HEmpName").text(HEmpName);//æä½å |
| | | $("#HManagerName").text(HManagerName);//è´è´£äºº |
| | | $("#HGroupName").text(HGroupName);//çç» |
| | | $("#HSourceID").val(HSourceID);//çäº§èµæºid |
| | | $("#HSourceName").val(HSourceName);//çäº§èµæº |
| | | //#endregion |
| | | |
| | | //#region ã仪表çã |
| | |
| | | }) |
| | | }); |
| | | |
| | | //å·¥åº |
| | | form.on('submit(btnHProcID)', function () { |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: "å·¥åºå表" //æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ["../../åºç¡èµæ/ç产åºç¡èµæ/Gy_Process.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HProcID").val(checkStatus.data[0].HItemID); |
| | | $("#HProcName").val(checkStatus.data[0].å·¥åºåç§°); |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | }); |
| | | |
| | | |
| | | //å·¥ä½ä¸å¿ |
| | | form.on('submit(btnHCenterID)', function () { |
| | | layer.open({ |
| | |
| | | }) |
| | | }); |
| | | |
| | | //表头信æ¯çæ¬¡å¼¹çª |
| | | form.on('submit(HWorkShiftList)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'çæ¬¡å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/ç产åºç¡èµæ/Gy_WorkShiftList.html?type=HWorkShifts&OperationType=2', '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('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HShiftsName").val(checkStatus.data[0].çæ¬¡åç§°); |
| | | $("#HShiftsID").val(checkStatus.data[0].HInterID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | |
| | | //ä¿å |
| | | form.on('submit(Saver)', function (data) {//æäº¤ |
| | | Saver(data); |
| | |
| | | Pub_Close(1); |
| | | }) |
| | | |
| | | |
| | | |
| | | //æ°å¢ |
| | | form.on('submit(Add)', function (data) { |
| | | layer.confirm('æ°å¢å页颿°æ®å°æ¶å¤±ï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | |
| | | MaxBillNO(); |
| | | //æ¥è¯¢ |
| | | get_FastQuery(); |
| | | //è·åå½åçæ¬¡ |
| | | get_HWorkShift(); |
| | | } |
| | | |
| | | //è·åæå¤§åæ®å· |
| | |
| | | , totalRow: true |
| | | //, cellMinWidth: 120 |
| | | , data: [] |
| | | , height: 700 |
| | | , height: 780 |
| | | , limit: Number.MAX_VALUE |
| | | , cols: [[ |
| | | { type: 'checkbox', fixed: 'left' } |
| | |
| | | |
| | | //#region å¿«éè¿æ»¤ |
| | | function get_FastQuery() { |
| | | //get_PanelDisplay(sWhere); |
| | | get_Display(sWhere); |
| | | sWhere = "";//è°ç¨æ¥å£åæ¸
空sWhereç¼å |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | function get_Display(sWhere) { |
| | | sWhere = " and HInterID='" + HSourceInterID + "' and æºååå
ç ='" + HSourceEntryID + "'"; |
| | | var ajaxLoad = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_CurrentTicket/list', |
| | | url: GetWEBURL() + '/CheckBill/GetICMOBillStatusList', |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HSourceID": HSourceID, "HICMOInterID": HICMOInterID, "HICMOEntryID": HICMOEntryID, "HSourceInterID": HSourceInterID, "user": sessionStorage["HUserName"] }, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | var data = result.data.h_p_JIT_GetCurrentTicketInfo[0]; |
| | | $("#HICMOBillNo").text(data.HSourceBillNo);//å·¥åå· |
| | | $("#HICMOBillStatus").text('');//å½åç¶æ |
| | | $("#HMaterNumber").text(data.HMaterNumber);//产å代ç |
| | | $("#HMaterName").text(data.HMaterName);//产ååç§° |
| | | $("#HMaterModel").text(data.HModel);//è§æ ¼åå· |
| | | $("#HPlanQty").text(data.HPlanQty);//è®¡åæ°é |
| | | $("#HReportQty").text(data.HRelationQty);//æ±æ¥æ»æ° |
| | | $("#HPickMtrlStatus").text('');//é¢æç¶æ |
| | | $("#HFCheckNum").text(data.馿£æ¬¡æ°);//馿£æ¬¡æ° |
| | | $("#HPrCheckNum").text(data.è¿ç¨æ£æ¬¡æ°);//è¿ç¨æ£æ¬¡æ° |
| | | $("#HPPCheckNum").text(data.å·¡æ£æ¬¡æ°);//å·¡æ£æ¬¡æ° |
| | | HFinishRate = data.宿ç;//宿ç |
| | | HQualifiedRate = data.åæ ¼ç;//åæ ¼ç |
| | | $("#HProcName").val(result.data[0]["å·¥åº"]); |
| | | $("#HProcID").val(result.data[0]["HProcID"]); |
| | | layer.close(ajaxLoad); |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Cj_SingleStation/Cj_CollectionOfSingleProductDefectsUserList', |
| | | type: "GET", |
| | | async: false, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | |
| | | $("#HDeptID").val(data1.data[0]["HDeptID"]); |
| | | $("#HDeptName").val(data1.data[0]["车é´"]); |
| | | $("#HProcName").val(data1.data[0]["å·¥åº"]); |
| | | $("#HProcID").val(data1.data[0]["HProcID"]); |
| | | $("#HSourceID").val(data1.data[0]["HSourceID"]); |
| | | $("#HSourceName").val(data1.data[0]["çäº§èµæº"]); |
| | | //$("#HProcName").val(data1.data[0]["å·¥åº"]); |
| | | //$("#HProcID").val(data1.data[0]["HProcID"]); |
| | | //$("#HSourceID").val(data1.data[0]["HSourceID"]); |
| | | //$("#HSourceName").val(data1.data[0]["çäº§èµæº"]); |
| | | $("#HEmpID").val(data1.data[0]["HEmpID"]); |
| | | $("#HEmpName").val(data1.data[0]["è´¨æ£å"]); |
| | | $("#HGroupID").val(data1.data[0]["HGroupID"]); |
| | |
| | | //$("#HGroupName").val(objdata.HGroupName); //çç»åç§° |
| | | //$("#HCenterID").val(objdata.HWorkCenterID); //å·¥ä½ä¸å¿ID |
| | | //$("#HCenterName").val(objdata.HWorkCenterName); //å·¥ä½ä¸å¿åç§° |
| | | |
| | | |
| | | } |
| | | //#endregion |
| | | |
| | |
| | | $("#HQty").val(data1.data[0]["æå°å
è£
æ°é"]); |
| | | $("#HICMOQty").val(data1.data[0]["ç产æ°é"]); |
| | | $("#HPlanQty").val(data1.data[0]["æµè½¬å¡æ°é"]); |
| | | $("#HCenterID").val(data1.data[0]["HCenterID"]); |
| | | $("#HCenterName").val(data1.data[0]["å·¥ä½ä¸å¿"]); |
| | | $("#HBarCode").val(HBarCode); |
| | | |
| | | getHModel(data1.data[0]["hmainid"], data1.data[0]["hsubid"], data1.data[0]["åæ®å·"]); |
| | | //è·åå½åçæ¬¡ |
| | | get_HWorkShift(); |
| | | } |
| | | else { |
| | | layer.close(indexs); |
| | |
| | | }); |
| | | } |
| | | |
| | | //æ ¹æ®æ¡å½¢ç çæ¥åºçæµè½¬å¡ä¸»åid+æµè½¬å¡ æ¾åºå¯¹åºç模å
· |
| | | function getHModel(HInterID, HEntryID, HBillNo) { |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Cj_StationOutBill_CurrentWork/getHModelList", |
| | | async: false, |
| | | data: { "HInterID": HInterID, "HEntryID": HEntryID, "HBillNo": HBillNo }, |
| | | dataType: "json", |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | $("#HMouldID").val(data1.data[0]["HMouldID"]); |
| | | $("#HMouldNo").val(data1.data[0]["模å
·ç¼ç "]); |
| | | $("#HMouldName").val(data1.data[0]["模å
·åç§°"]); |
| | | $("#HModel").val(data1.data[0]["模å
·åå·"]); |
| | | } |
| | | else { |
| | | layer.close(indexs); |
| | | layer.msg(data1.Message); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.close(indexs); |
| | | layer.msg("é误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //#region ææ¬æ¡çå¬ |
| | | $(document).ready(function () { |
| | | //#region è¿å·¥å¤±ç¦äºä»¶ |
| | | var oldHBackWorkQty = ""; //ä¿®æ¹åçå¼ |
| | | var newHBackWorkQty = ""; //ä¿®æ¹åçå¼ |
| | | $("#HBackWorkQty").on('focus', function (data) { |
| | | oldHBackWorkQty = $("#HBackWorkQty").val(); //è¿å·¥ææ¬æ¡è·åç¦ç¹æ¶è·åä¿®æ¹åçå¼ |
| | | }).on('blur', function (data) { |
| | | newHBackWorkQty = $("#HBackWorkQty").val(); //è¿å·¥ææ¬æ¡å¤±ç¦æ¶è·åä¿®æ¹åçå¼ |
| | | |
| | | //夿è¾å
¥çè¿å·¥æ¯å¦åæ³ |
| | | var ref = /^\d+(\.\d+)?$/; //éè´æ°æ£åè¡¨è¾¾å¼ |
| | | if (!ref.test(newHBackWorkQty)) { |
| | | layer.msg("è¿å·¥è¯·è¾å
¥ä¸å°äº0çæ°å!"); |
| | | $("#HBackWorkQty").val(oldHBackWorkQty); |
| | | return false; |
| | | } |
| | | var HBadCount = (parseFloat(newHBackWorkQty) || 0) + (parseFloat($("#HWasterQty_Work").val()) || 0) + (parseFloat($("#HWasterQty_Mater").val()) || 0); |
| | | $("#HBadCount").val(HBadCount); |
| | | |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region å·¥åºææ£å¤±ç¦äºä»¶ |
| | | var oldHWasterQty_Work = ""; //ä¿®æ¹åçå¼ |
| | | var newHWasterQty_Work = ""; //ä¿®æ¹åçå¼ |
| | | $("#HWasterQty_Work").on('focus', function (data) { |
| | | oldHWasterQty_Work = $("#HWasterQty_Work").val(); //å·¥åºææ¬æ¡è·åç¦ç¹æ¶è·åä¿®æ¹åçå¼ |
| | | }).on('blur', function (data) { |
| | | newHWasterQty_Work = $("#HWasterQty_Work").val(); //å·¥åºææ¬æ¡å¤±ç¦æ¶è·åä¿®æ¹åçå¼ |
| | | |
| | | //夿è¾å
¥çå·¥åºæ¯å¦åæ³ |
| | | var ref = /^\d+(\.\d+)?$/; //éè´æ°æ£åè¡¨è¾¾å¼ |
| | | if (!ref.test(newHWasterQty_Work)) { |
| | | layer.msg("å·¥åºè¯·è¾å
¥ä¸å°äº0çæ°å!"); |
| | | $("#HWasterQty_Work").val(oldHWasterQty_Work); |
| | | return false; |
| | | } |
| | | var HBadCount = (parseFloat(newHWasterQty_Work) || 0) + (parseFloat($("#HBackWorkQty").val()) || 0) + (parseFloat($("#HWasterQty_Mater").val()) || 0); |
| | | var HTRQty = (parseFloat(newHWasterQty_Work) || 0) + (parseFloat($("#HQty").val()) || 0) + (parseFloat($("#HWasterQty_Mater").val()) || 0); //æå
¥æ°é |
| | | $("#HBadCount").val(HBadCount); |
| | | $("#HTRQty").val(HTRQty); |
| | | |
| | | }); |
| | | //#region æåºææ£å¤±ç¦äºä»¶ |
| | | var oldHWasterQty_Mater = ""; //ä¿®æ¹åçå¼ |
| | | var newHWasterQty_Mater = ""; //ä¿®æ¹åçå¼ |
| | | $("#HWasterQty_Mater").on('focus', function (data) { |
| | | oldHWasterQty_Mater = $("#HWasterQty_Mater").val(); //æåºææ¬æ¡è·åç¦ç¹æ¶è·åä¿®æ¹åçå¼ |
| | | }).on('blur', function (data) { |
| | | newHWasterQty_Mater = $("#HWasterQty_Mater").val(); //æåºææ¬æ¡å¤±ç¦æ¶è·åä¿®æ¹åçå¼ |
| | | |
| | | //夿è¾å
¥çæåºæ¯å¦åæ³ |
| | | var ref = /^\d+(\.\d+)?$/; //éè´æ°æ£åè¡¨è¾¾å¼ |
| | | if (!ref.test(newHWasterQty_Mater)) { |
| | | layer.msg("æåºè¯·è¾å
¥ä¸å°äº0çæ°å!"); |
| | | $("#HWasterQty_Mater").val(oldHWasterQty_Mater); |
| | | return false; |
| | | } |
| | | |
| | | var HBadCount = (parseFloat(newHWasterQty_Mater) || 0) + (parseFloat($("#HBackWorkQty").val()) || 0) + (parseFloat($("#HWasterQty_Work").val()) || 0); //ä¸è¯æ°é |
| | | var HTRQty = (parseFloat(newHWasterQty_Mater) || 0) + (parseFloat($("#HQty").val()) || 0) + (parseFloat($("#HWasterQty_Work").val()) || 0); //æå
¥æ°é |
| | | $("#HBadCount").val(HBadCount); |
| | | $("#HTRQty").val(HTRQty); |
| | | |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region åæ ¼æ°ææ£å¤±ç¦äºä»¶ |
| | | var oldHQty = ""; //ä¿®æ¹åçå¼ |
| | | var newHQty = ""; //ä¿®æ¹åçå¼ |
| | | $("#HQty").on('focus', function (data) { |
| | | oldHQty = $("#HQty").val(); //æåºææ¬æ¡è·åç¦ç¹æ¶è·åä¿®æ¹åçå¼ |
| | | }).on('blur', function (data) { |
| | | newHQty = $("#HQty").val(); //æåºææ¬æ¡å¤±ç¦æ¶è·åä¿®æ¹åçå¼ |
| | | |
| | | //夿è¾å
¥çæåºæ¯å¦åæ³ |
| | | var ref = /^\d+(\.\d+)?$/; //éè´æ°æ£åè¡¨è¾¾å¼ |
| | | if (!ref.test(newHQty)) { |
| | | layer.msg("æåºè¯·è¾å
¥ä¸å°äº0çæ°å!"); |
| | | $("#HQty").val(oldHQty); |
| | | return false; |
| | | } |
| | | var HTRQty = (parseFloat(newHQty) || 0) + (parseFloat($("#HWasterQty_Mater").val()) || 0) + (parseFloat($("#HWasterQty_Work").val()) || 0); //æå
¥æ°é |
| | | $("#HTRQty").val(HTRQty); |
| | | |
| | | }); |
| | | //#endregion |
| | | }); |
| | | //#endregion |
| | | |
| | | //ä¿å |
| | | function Saver(data) { |
| | | if ($("#HProcExchBillNo").val() == "") { |
| | | layer.msg("è¯·æ«æµè½¬å¡ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | if ($("#HQty").val() == 0) { |
| | | layer.msg("æ°éä¸è½ä¸º0ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | if ($("#HSourceID").val() == "0") { |
| | | layer.msg("çäº§èµæºä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | if ($("#HQty").val() == 0 && $("#HBadCount").val() == 0) { |
| | | |
| | | layer.msg("ä¸è¯ååæ ¼æ°éä¸è½åæ¶ä¸º0ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | if ($("#HBackWorkQty").val() =="") { |
| | | |
| | | layer.msg("è¿å·¥æ°éä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | if ($("#HWasterQty_Work").val() == "") { |
| | | |
| | | layer.msg("å·¥åºæ°éä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | if ($("#HWasterQty_Mater").val() == "") { |
| | | |
| | | layer.msg("æåºæ°éä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | var oMain = JSON.stringify(data.field) + ";" + sessionStorage["HUserName"] + ";Add"; |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //ä¿ååºç«åå表 |
| | | function SaverSub(data) { |
| | | var oMain = data; |
| | |
| | | }); |
| | | } |
| | | |
| | | //è·åçæ¬¡ |
| | | function get_HWorkShift() { |
| | | var HDeptID = sessionStorage["HDeptID"]; |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Gy_ShiftsController/Get_HWorkShift", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { |
| | | "HDeptID": HDeptID, |
| | | "HCenterID": $("#HCenterID").val() |
| | | }, |
| | | success: function (data) { |
| | | if (data.count == 1)// 说æéªè¯æåäºï¼ |
| | | { |
| | | var LoadData = data.data; |
| | | $("#HShiftsID").val(LoadData[0].HInterID); //å½åå·¥åºID |
| | | $("#HShiftsName").val(LoadData[0].çæ¬¡); //å½åå·¥åº |
| | | } |
| | | else { |
| | | layer.alert(data.Message, { icon: 5 }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.alert(err, { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //以䏿¯layui模å |
| | | }); |
| | | |
| | | //çäº§çæ¬¡ |
| | | function GetHWorkShiftsValue(obj) { |
| | | $("#HShiftsID").val(obj[0].HInterID); //å½åå·¥åºID |
| | | $("#HShiftsName").val(obj[0].çæ¬¡åç§°); //å½åå·¥åº |
| | | } |
| | | |
| | | //çäº§èµæº |
| | | function GetGySource(obj) { |