| | |
| | | <handlers> |
| | | <remove name="StaticFile" /> |
| | | <add name="StaticFile" path="*" verb="*" modules="StaticFileModule,DefaultDocumentModule" resourceType="Either" requireAccess="Read" /> |
| | | </handlers> |
| | | </handlers> |
| | | <security> |
| | | <requestFiltering> |
| | | <requestLimits maxAllowedContentLength="10485760" maxQueryString="10485760" /> <!--è®¾ç½®åæ°å
容çæå¤§é¿åº¦ä¸º10MBï¼é»è®¤æ¯4MB,æå¤§æ¯æ2GB--> |
| | | </requestFiltering> |
| | | </security> |
| | | </system.webServer> |
| | | </configuration> |
| | |
| | | <Content Include="layuiadmin\PubCustom.js" /> |
| | | <Content Include="layuiadmin\PubJs\PubCheck.js" /> |
| | | <Content Include="views\Baseset\HBarPlanPrint.html" /> |
| | | <Content Include="views\Baseset\SRM_OpenTmpList _GXPG.html" /> |
| | | <Content Include="views\Baseset\SRM_OpenTmpList_GXPG.html" /> |
| | | <Content Include="views\Baseset\åºç¡èµæ\Gy_BadCountDevelopWHList.html" /> |
| | | <Content Include="views\Baseset\åºç¡èµæ\Gy_BadWHList.html" /> |
| | | <Content Include="views\Baseset\åºç¡èµæ\Gy_ClassTimePrjGroupEdit.html" /> |
File was renamed from WebTM/views/Baseset/SRM_OpenTmpList _GXPG.html |
| | |
| | | var linterid = params[params[0]]; |
| | | var MyMsg = params[params[1]]; |
| | | var Type = params[params[2]]; |
| | | var entryid = params[params[3]]; |
| | | var ieid = params[params[3]]; |
| | | |
| | | //var lentryid = params[params[1]]; |
| | | ///å è½½æ¾ç¤ºæ°æ® |
| | |
| | | var OpenTmp = data[0].模æ¿åç§°; |
| | | console.log(linterid.toString()); |
| | | //æå¼æå°æ¨¡æ¿ |
| | | window.open("../åºç¡èµæ/å
¬ç¨åºç¡èµæ/HBarPlanPrint_GXPG.html?linterid=" + linterid.toString() + "&Type=" + Type.toString() + "&OpenTmp=" + OpenTmp.toString() + "&entryid=" + entryid); |
| | | window.open("../åºç¡èµæ/å
¬ç¨åºç¡èµæ/HBarPlanPrint_GXPG.html?linterid=" + linterid.toString() + "&Type=" + Type.toString() + "&OpenTmp=" + OpenTmp.toString() + "&ieid=" + ieid); |
| | | //æ ¹æ®æ¨¡åè·åWEBAPI龿¥ |
| | | var url = ""; |
| | | switch (Type) { |
| | |
| | | <div carousel-item=""> |
| | | <ul class="layui-row layui-col-space10 layui-this"> |
| | | <li class="layui-col-xs3"> |
| | | <a href="../éªæ¶å
¥åº/å¤è´å
¥åº/Kf_POStockInBill_Fast.html" target="main_self_frame"> |
| | | <a lay-href="ç产管ç/ç产任å¡å/Sc_ICMOBillList.html"> |
| | | <i class="layui-icon layui-icon-add-circle"></i> |
| | | <cite>å¤è´å
¥åº</cite> |
| | | <cite>ç产订åç»´æ¤</cite> |
| | | </a> |
| | | </li> |
| | | <li class="layui-col-xs3"> |
| | | <a href="../éªæ¶å
¥åº/å§å¤å
¥åº/Kf_EntrustInBill_Fast.html" target="main_self_frame"> |
| | | <a lay-href="车é´ç®¡ç/å·¥åºæµè½¬å¡/Sc_ProcessExchangeIssueBillList.html"> |
| | | <i class="layui-icon layui-icon-mike"></i> |
| | | <cite>å§å¤å
¥åº</cite> |
| | | <cite>å·¥åºæµè½¬å¡ï¼ä¸è¾¾ï¼</cite> |
| | | </a> |
| | | </li> |
| | | <li class="layui-col-xs3"> |
| | | <a href="../éªæ¶å
¥åº/产åå
¥åº/Kf_ProductInBill_Fast.html" target="main_self_frame"> |
| | | <a lay-href="车é´ç®¡ç/å·¥åºæµè½¬å¡/Sc_ProcessSendWorkList.html"> |
| | | <i class="layui-icon layui-icon-android"></i> |
| | | <cite>产åå
¥åº</cite> |
| | | <cite>派工åç»´æ¤</cite> |
| | | </a> |
| | | </li> |
| | | <li class="layui-col-xs3"> |
| | | <a href="../颿åè´§/颿åºåº/Kf_MateOutBill_Fast.html" target="main_self_frame"> |
| | | <a lay-href="车é´ç®¡ç/å·¥åºåºç«æ±æ¥å/Cj_StationOutBillList.html"> |
| | | <i class="layui-icon layui-icon-chart"></i> |
| | | <cite>颿åºåº</cite> |
| | | <cite>å·¥åºåºç«æ±æ¥åç»´æ¤</cite> |
| | | </a> |
| | | </li> |
| | | <li class="layui-col-xs3"> |
| | | <a href="../颿åè´§/å§å¤åºåº/Kf_EntrustOutBill_Fast.html" target="main_self_frame"> |
| | | <i class="layui-icon layui-icon-theme"></i> |
| | | <cite>å§å¤åºåº</cite> |
| | | </a> |
| | | </li> |
| | | <li class="layui-col-xs3"> |
| | | <a href="../颿åè´§/éå®åºåº/Kf_SellOutBill_Fast.html" target="main_self_frame"> |
| | | <i class="layui-icon layui-icon-addition"></i> |
| | | <cite>éå®åºåº</cite> |
| | | </a> |
| | | </li> |
| | | <li class="layui-col-xs3"> |
| | | <a href="../ä»å管ç/ä»åºè°æ¨/Kf_MoveStockBill_Fast.html" target="main_self_frame"> |
| | | <i class="layui-icon layui-icon-release"></i> |
| | | <cite>è°æ¨å</cite> |
| | | </a> |
| | | </li> |
| | | <li class="layui-col-xs3"> |
| | | <a href="../ä»å管ç/æ¡ç çæ/Gy_BarCodeBill.html" target="main_self_frame"> |
| | | <a lay-href="ä»å管ç/æ¡ç çæ/Gy_BarCodeBill.html"> |
| | | <i class="layui-icon layui-icon-app"></i> |
| | | <cite>æ¡ç çæ</cite> |
| | | </a> |
| | | </li> |
| | | <li class="layui-col-xs3"> |
| | | <a lay-href="åºç¡èµæ/ç产åºç¡èµæ/Gy_Process.html"> |
| | | <i class="layui-icon layui-icon-theme"></i> |
| | | <cite>å·¥åºå表</cite> |
| | | </a> |
| | | </li> |
| | | <li class="layui-col-xs3"> |
| | | <a lay-href="åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_WorkCenter.html"> |
| | | <i class="layui-icon layui-icon-addition"></i> |
| | | <cite>å·¥ä½ä¸å¿å表</cite> |
| | | </a> |
| | | </li> |
| | | <li class="layui-col-xs3"> |
| | | <a lay-href="åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Material.html"> |
| | | <i class="layui-icon layui-icon-release"></i> |
| | | <cite>ç©æå表</cite> |
| | | </a> |
| | | </li> |
| | | </ul> |
| | | <ul class="layui-row layui-col-space10"> |
| | | <li class="layui-col-xs3"> |
| | |
| | | <cite>åºç«æ±æ¥</cite> |
| | | </a> |
| | | </li> |
| | | <li class="layui-col-xs3"> |
| | | <!--<li class="layui-col-xs3"> |
| | | <a href="../éªæ¶å
¥åº/å¤è´å
¥åº/Kf_POStockInBill_Fast.html" target="main_self_frame"> |
| | | <i class="layui-icon layui-icon-align-center"></i> |
| | | <cite>éè´å
¥åº</cite> |
| | | </a> |
| | | </li> |
| | | </li>--> |
| | | |
| | | |
| | | <!--<li class="layui-col-xs3"> |
| | |
| | | <cite>éå®åºåºæ ¡éª</cite> |
| | | </a> |
| | | </li> |
| | | <!--<li class="layui-col-xs3"> |
| | | <li class="layui-col-xs3"> |
| | | <a href="../颿åè´§/ç产补æ/Kf_MateReplenishOutBill_Check_New.html" target="main_self_frame"> |
| | | <i class="layui-icon layui-icon-addition"></i> |
| | | <cite>ç产补æ</cite> |
| | | </a> |
| | | </li>--> |
| | | </li> |
| | | <li class="layui-col-xs3"> |
| | | <a href="../ç产管ç/çäº§æ±æ¥å/Sc_ICMOReportBill_FastNew.html" target="main_self_frame"> |
| | | <i class="layui-icon layui-icon-align-center"></i> |
| | |
| | | } |
| | | }); |
| | | playSound1(); |
| | | //æ¸
空æ°é |
| | | $("#HQty").val(""); |
| | | } |
| | | else { |
| | | playSound(); |
| | |
| | | } |
| | | }); |
| | | playSound1(); |
| | | //æ¸
空æ°é |
| | | $("#HQty").val(""); |
| | | } |
| | | else { |
| | | playSound(); |
| | |
| | | layer.alert("æªç¥æä½ç±»åï¼", { icon: 5 }); |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | var rowdata = [{ |
| | | "HMaterID": 0, "HMaterCode": "", "HMaterNumber": "", "HMaterName": "", "HMaterModel": "", "HMaterSpec": "", "HBatchNo": "", "HUnitID": 0, "HUnitNumber": "", "HUnitName": "", "HDesignLife": 0, "HLeaveLife": 0, "HUseLife": 0, "HQtyMust": 0, "HQty": 0, "HPrice": 0, "HMoney": 0, "HWHID": 0, "HWHCode": "", "HWHName": "", "HSPID": 0, "HSPCode": "", "HSPName": "", "HStockOrgID": sessionStorage["OrganizationID"], "HRemark": "", "HCoilNO": "", "HFurnaceNO": "", "HFactory": "", |
| | | "HMaterID": 0, "HMaterCode": "", "HMaterNumber": "", "HMaterName": "", "HMaterModel": "", "HMaterSpec": "", "HBatchNo": "", "HUnitID": 0, "HUnitNumber": "", "HUnitName": "", "HDesignLife": 0, "HLeaveLife": 0, "HUseLife": 0, "HQtyMust": 0, "HQty": 0, "HBQty": 0, "HMinQty": 0,"HPackQty":0, "HPrice": 0, "HMoney": 0, "HWHID": 0, "HWHCode": "", "HWHName": "", "HSPID": 0, "HSPCode": "", "HSPName": "", "HStockOrgID": sessionStorage["OrganizationID"], "HRemark": "", "HCoilNO": "", "HFurnaceNO": "", "HFactory": "", |
| | | "HAuxQty": 0, "HheatNO": "", "HProduceDate": Format(new Date(), "yyyy-MM-dd"), "HExpiryDate": Format(new Date(), "yyyy-MM-dd"), "HExpirationDateFlag": 0 |
| | | }]; |
| | | |
| | |
| | | var AddRow = table.cache['mainTable']; |
| | | |
| | | var NewRow = { |
| | | "HMaterID": 0, "HMaterCode": "", "HMaterNumber": "", "HMaterName": "", "HMaterModel": "", "HMaterSpec": "", "HBatchNo": "", "HUnitID": 0, "HUnitNumber": "", "HUnitName": "", "HDesignLife": 0, "HLeaveLife": 0, "HUseLife": 0, "HQtyMust": 0, "HQty": 0, "HPrice": 0, "HMoney": 0, "HWHID": 0, "HWHCode": "", "HWHName": "", "HSPID": 0, "HSPCode": "", "HSPName": "", "HStockOrgID": sessionStorage["OrganizationID"], "HRemark": "", "HCoilNO": "", "HFurnaceNO": "", "HFactory": "", |
| | | "HMaterID": 0, "HMaterCode": "", "HMaterNumber": "", "HMaterName": "", "HMaterModel": "", "HMaterSpec": "", "HBatchNo": "", "HUnitID": 0, "HUnitNumber": "", "HUnitName": "", "HDesignLife": 0, "HLeaveLife": 0, "HUseLife": 0, "HQtyMust": 0, "HQty": 0, "HBQty": 0, "HMinQty": 0, "HPackQty": 0, "HPrice": 0, "HMoney": 0, "HWHID": 0, "HWHCode": "", "HWHName": "", "HSPID": 0, "HSPCode": "", "HSPName": "", "HStockOrgID": sessionStorage["OrganizationID"], "HRemark": "", "HCoilNO": "", "HFurnaceNO": "", "HFactory": "", |
| | | "HAuxQty": 0, "HheatNO": "", "HProduceDate": Format(new Date(), "yyyy-MM-dd"), "HExpiryDate": Format(new Date(), "yyyy-MM-dd"), "HExpirationDateFlag": 0 |
| | | }; |
| | | //console.log(NewRow); |
| | |
| | | var value = params[params[0]]; |
| | | var Type = params[params[1]]; |
| | | var OpenTmp = params[params[2]]; |
| | | var entryid = params[params[3]]; |
| | | var ieid = params[params[3]]; |
| | | |
| | | |
| | | switch (Type) { |
| | |
| | | CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Sc_ProcExchRecordBackBillList.aspx?linterid=" + value, true, ""); |
| | | break; |
| | | case "HProcSendWork"://å·¥åºæ´¾å·¥å |
| | | CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Sc_ProcExchSendWorkBillList.aspx?linterid=" + value + "&&entryid=" + entryid, true, ""); |
| | | CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Sc_ProcExchSendWorkBillList.aspx?linterid=" + value + "&&ieid=" + ieid, true, ""); |
| | | break; |
| | | case "HEmployee"://èåå表 |
| | | CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Gy_EmployeeList.aspx?linterid=" + value, true, ""); |
| | |
| | | //OledbXMLReportDataéåäºAccessçæ¬å°æ°æ®åºï¼ä¸ºäºæ¼ç¤ºæ¹ä¾¿ï¼è¿éä»Grid++ReportçAccessä¾åæ°æ®åºä¸è·åæ¥è¡¨æ°æ® |
| | | |
| | | //OledbXMLReportData.GenOneRecordset(this, "select * from Customers order by CustomerID"); |
| | | SqlXMLReportData.GenEntireData(this, "select * from h_v_Sc_ProcExchSendWorkBillList where hmainid in("+Request.Params["linterid"] + ")" + "and hentryid in("+Request.Params["entryid"] + ")" ,"select 1"); |
| | | SqlXMLReportData.GenEntireData(this, "select * from h_v_Sc_ProcessExchangeIssueBillQuery where hmainid in("+Request.Params["linterid"] + ")" + "and ieid in("+Request.Params["ieid"] + ")" ,"select 1"); |
| | | } |
| | | </script> |
| | | </head> |
| | |
| | | , height: 'full-50' |
| | | , page: true |
| | | , cellMinWidth: 90 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , limits: [50, 500, 5000, 20000,50000] |
| | | , limit: 50 |
| | | , cols: [[ |
| | | { type: 'checkbox', fixed: 'left' } |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <!--<div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">å·¥åº</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" lay-verify="HMainProcIDName" name="HMainProcIDName" id="HMainProcIDName" value="" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div>--> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æåç¼å·</label> |
| | | <div class="layui-input-block" style="margin-left: 115px;"> |
| | | <input type="text" class="layui-input" name="HProductNum" lay-verify="HProductNum" id="HProductNum" value="" onmouseover="this.title=this.value"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å å·¥æ°é</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HMainWorkQty" lay-verify="HMainWorkQty" id="HMainWorkQty" value="0" onmouseover="this.title=this.value"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">è¿è¡æ¶é´</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HMainUnitTime" lay-verify="HMainUnitTime" id="HMainUnitTime" value="0"> |
| | | <!--<input type="hidden" value="å°æ¶" name="HMainTimeUnit" id="HMainTimeUnit">--> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">工价</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HMainPrice" id="HMainPrice" lay-verify="HMainPrice" value="0"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">çæ¬</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HVerNum" lay-verify="HVerNum" id="HVerNum" value="" onmouseover="this.title=this.value"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æ åèµæºæ°</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HStdSourceQty" id="HStdSourceQty" lay-verify="HStdSourceQty" value="0"> <!--style="background-color:#efefef4d;"--> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å èµæºå¢é</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HAddSourceRate" id="HAddSourceRate" lay-verify="HAddSourceRate" value="0"> <!--style="background-color:#efefef4d;"--> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">åèµæºåé</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" lay-verify="HDelSourceRate" name="HDelSourceRate" id="HDelSourceRate" value="0"> <!--style="background-color:#efefef4d;"--> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <!--<div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å å·¥æ°é</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HMainWorkQty" lay-verify="HMainWorkQty" id="HMainWorkQty" value="0" onmouseover="this.title=this.value"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">è¿è¡æ¶é´</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HMainUnitTime" lay-verify="HMainUnitTime" id="HMainUnitTime" value="0">--> |
| | | <!--<input type="hidden" value="å°æ¶" name="HMainTimeUnit" id="HMainTimeUnit">--> |
| | | <!--</div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">工价</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HMainPrice" id="HMainPrice" lay-verify="HMainPrice" value="0"> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <!--<div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æ åèµæºæ°</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HStdSourceQty" id="HStdSourceQty" lay-verify="HStdSourceQty" value="0">--> <!--style="background-color:#efefef4d;"--> |
| | | <!--</div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å èµæºå¢é</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HAddSourceRate" id="HAddSourceRate" lay-verify="HAddSourceRate" value="0">--> <!--style="background-color:#efefef4d;"--> |
| | | <!--</div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">åèµæºåé</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" lay-verify="HDelSourceRate" name="HDelSourceRate" id="HDelSourceRate" value="0">--> <!--style="background-color:#efefef4d;"--> |
| | | <!--</div> |
| | | </div>--> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | |
| | | , { type: 'numbers', title: 'åºå·', totalRow: true } |
| | | , { field: 'HProcNo', title: 'æµæ°´å·', edit: 'text' } |
| | | , { field: 'HProcID_S', title: '工段', edit: 'text' } |
| | | , { field: 'HProcType', title: 'å·¥åºç±»å', templet: '#HProcType' }//éæ© |
| | | , { field: 'HCenterID_SName', title: '产线ä¸å¿', edit: 'text', event: "CheckHCenterID_S" }//f7 |
| | | //, { field: 'HCenterID_S', title: '产线ä¸å¿id', hide: true }//hide: true |
| | | , { field: 'HWorkQty_S', title: '产线产è½', edit: 'text' } |
| | | , { field: 'HSubStdEmpQty_S', title: '产线人æ°', edit: 'text' } |
| | | , { field: 'HMouldNo', title: '模å
·ç¼å·', edit: 'text' } |
| | |
| | | , { field: 'HMyWorkDays', title: 'çäº§å¨æ', edit: 'text' } |
| | | , { field: 'HMyFixWorkDays', title: 'åºå®ç产天æ°', edit: 'text' } |
| | | , { field: 'å·¥åº', title: 'å·¥åº', edit: 'text', event: "CheckHProcID" }//f7 |
| | | , { field: 'HProcType', title: 'å·¥åºç±»å', templet: '#HProcType' }//éæ© |
| | | // , { field: 'HProcID', title: 'å·¥åºID', hide: true }//, hide: true |
| | | , { field: 'å·¥ä½ä¸å¿ä»£ç ', title: 'å·¥ä½ä¸å¿ä»£ç ' }//ä¸å¡« |
| | | // , { field: 'HCenterID', title: 'å·¥ä½ä¸å¿id', hide: true }//, hide: true |
| | | , { field: 'å·¥ä½ä¸å¿', title: 'å·¥ä½ä¸å¿', edit: 'text', event: "CheckHCenterID" }//f7 |
| | | // , { field: 'HSupID', title: 'ä¾åºåID', hide: true } |
| | | , { field: 'ä¾åºå代ç ', title: 'ä¾åºå代ç ' } |
| | | , { field: 'ä¾åºå', title: 'ä¾åºå', edit: 'text', width: 110, event: "CheckHSupID" }//f7 |
| | | , { field: 'HSupFlag', title: 'å¤åæ è®°', templet: "#HSupFlag" }//checkbox |
| | | , { field: 'å·¥ä½ä¸å¿ä»£ç ', title: 'å·¥ä½ä¸å¿ä»£ç ', edit: 'text', event: "CheckHCenterID" }//ä¸å¡« |
| | | // , { field: 'HCenterID', title: 'å·¥ä½ä¸å¿id', hide: true }//, hide: true |
| | | , { field: 'å·¥ä½ä¸å¿', title: 'å·¥ä½ä¸å¿' }//f7 |
| | | //, { field: 'HBadWHID', title: 'HBadWHID', hide: true }//, hide: true |
| | | , { field: 'HBadWHName', title: 'ä¸è¯åä»', edit: 'text', event: "HBadWHID" }//f7 |
| | | // , { field: 'HWasterWHID', title: 'HWasterWHID', hide: true }//, hide: true |
| | | , { field: 'HWasterWHName', title: 'æ¥åºåä»', edit: 'text', event: "HWasterWHID" }//f7 |
| | | // , { field: 'HWHID', title: 'HWHID', hide: true }//, hide: true |
| | | , { field: 'HWHName', title: 'è¯åä»', edit: 'text', event: "HWHID" }//f7 |
| | | , { field: 'HTechnologyParameter', title: 'å·¥èºåæ°', edit: 'text' } |
| | | , { field: 'HPicNum', title: 'å¾çº¸ç¼å·', edit: 'text' } |
| | | //, { field: 'HCenterID_S', title: '产线ä¸å¿id', hide: true }//hide: true |
| | | // , { field: 'HSupID', title: 'ä¾åºåID', hide: true } |
| | | , { field: 'ä¾åºå代ç ', title: 'ä¾åºå代ç ', edit: 'text', width: 110, event: "CheckHSupID" } |
| | | , { field: 'ä¾åºå', title: 'ä¾åºå' }//f7 |
| | | , { field: 'HTimeUnit', title: 'æ¶é´åä½', edit: 'text' } |
| | | , { field: 'HUnitTime', title: 'è¿è¡æ¶é´', edit: 'text' } |
| | | , { field: 'HWorkQty', title: 'å å·¥æ°é', edit: 'text' }//é»è®¤ |
| | |
| | | , { field: 'HReadyTimes', title: 'æ¬éå夿¶é´', edit: 'text' } |
| | | , { field: 'HICMOReadyTimes', title: 'æ¢åå夿¶é´', edit: 'text' } |
| | | , { field: 'HAutoTrunFlag', title: 'èªå¨ç§»è½¬', templet: "#HAutoTrunFlag" }//chenbox |
| | | , { field: 'HTechnologyParameter', title: 'å·¥èºåæ°', edit: 'text' } |
| | | , { field: 'HPicNum', title: 'å¾çº¸ç¼å·', edit: 'text' } |
| | | , { field: 'HProcCheckNote', title: 'æ¬å·¥åºç¡®è®¤è®°å½', edit: 'text' } |
| | | , { field: 'HProcWorkNum', title: 'ç¨åºå·', edit: 'text' } |
| | | //, { field: 'HBadWHID', title: 'HBadWHID', hide: true }//, hide: true |
| | | , { field: 'HBadWHName', title: 'ä¸è¯åä»', edit: 'text', event: "HBadWHID" }//f7 |
| | | // , { field: 'HWasterWHID', title: 'HWasterWHID', hide: true }//, hide: true |
| | | , { field: 'HWasterWHName', title: 'æ¥åºåä»', edit: 'text', event: "HWasterWHID" }//f7 |
| | | // , { field: 'HWHID', title: 'HWHID', hide: true }//, hide: true |
| | | , { field: 'HWHName', title: 'è¯åä»', edit: 'text', event: "HWHID" }//f7 |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo' } |
| | | ]] |
| | | //, done: function (res, curr, count) { |
| | |
| | | , toolbar: '#toolbarDemo' |
| | | , cols: [col] |
| | | , data: data1.data |
| | | , height: 550 |
| | | , height: 'full-50' |
| | | , page: true |
| | | , totalRow: true |
| | | , cellMinWidth: 90 |
| | |
| | | |
| | | th { |
| | | width: 70px; |
| | | text-align: center; |
| | | text-align: left; |
| | | } |
| | | </style> |
| | | </head> |
| | |
| | | <span style="color: white;"><i class="layui-icon layui-icon-form"></i>å·¥åºåºç«æ±æ¥å</span> |
| | | </div> |
| | | <div class="layui-form-item" style="margin: 1% 2%;text-align: right;"> |
| | | <button type="button" lay-submit="" lay-filter="Add" class="layui-btn layui-btn-radius">æ°å¢</button> |
| | | <button type="button" lay-submit="" lay-filter="Add" class="layui-btn layui-btn-radius" id="Add">æ°å¢</button> |
| | | <button type="button" lay-submit="" lay-filter="Detail" class="layui-btn layui-btn-radius" id="Detail">æç»</button> |
| | | <button type="button" lay-submit="" lay-filter="Saver" class="layui-btn layui-btn-radius">ä¿å</button> |
| | | <button type="button" lay-submit="" lay-filter="Saver" class="layui-btn layui-btn-radius" id="Saver">ä¿å</button> |
| | | <button type="button" lay-submit="" lay-filter="Cancel" class="layui-btn layui-btn-radius layui-btn-danger">éåº</button> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>æµæ°´å·</th> |
| | | <th>æä½å</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HProcNo" class="layui-input" id="HProcNo" placeholder="è¯·éæ©æµæ°´å·åå车" style="border-radius: 50px;"> |
| | | <input type="text" name="HEmpName_second" class="layui-input" id="HEmpName_second" placeholder="æä½åå§å" style="background-color:#efefef4d;border-radius: 50px;height:55px" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>è§æ ¼åå·</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HMaterModel" class="layui-input" id="HMaterModel" placeholder="è§æ ¼åå·" style="border-radius: 50px;background-color:#efefef4d;height:55px" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>产ååç§°</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HMaterName" class="layui-input" id="HMaterName" placeholder="产ååç§°" style="border-radius: 50px;background-color:#efefef4d;height:55px" readonly> |
| | | <input type="hidden" name="HMaterID" id="HMaterID" value="0" autocomplete="off" class="layui-input"> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>å½åå·¥åº</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HProcName" class="layui-input" id="HProcName" placeholder="å½åå·¥åº" style="border-radius: 50px;background-color:#efefef4d;height:55px" readonly> |
| | | <input type="hidden" name="HProcID" id="HProcID" value="0" autocomplete="off" class="layui-input"> |
| | | <button type="button" lay-submit="" class="layui-btn layui-col-xs2 bz_btu" lay-filter="SerialNum-BT" id="SerialNum-BT" style="font-weight:bolder">...</button> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>åæ ¼æ°é</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HQty" class="layui-input" id="HQty" value="0" placeholder="请è¾å
¥åæ ¼æ°é" style="border-radius: 50px;"> |
| | | <input type="text" name="HQty" class="layui-input" id="HQty" value="0" placeholder="请è¾å
¥åæ ¼æ°é" style="border-radius: 50px;height:55px"> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>æ¥åºæ°é</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HWasterQty" class="layui-input" id="HWasterQty" value="0" placeholder="请è¾å
¥æ¥åºæ°é" style="border-radius: 50px;"> |
| | | <input type="text" name="HWasterQty" class="layui-input" id="HWasterQty" value="0" placeholder="请è¾å
¥æ¥åºæ°é" style="border-radius: 50px;height:55px"> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>æµæ°´å·</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HProcNo" class="layui-input" id="HProcNo" placeholder="è¯·éæ©æµæ°´å·åå车" style="border-radius: 50px;"> |
| | | <input type="hidden" name="HProcID" id="HProcID" value="0" autocomplete="off" class="layui-input"> |
| | | <button type="button" lay-submit="" class="layui-btn layui-col-xs2 bz_btu" lay-filter="SerialNum-BT" id="SerialNum-BT" style="font-weight:bolder">...</button> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | |
| | | <tr> |
| | | <th>æä½å</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HEmpNumber" id="HEmpNumber" value="" placeholder="æä½å代ç " autocomplete="off" class="layui-input" style="border-radius: 50px;" > |
| | | <input type="text" name="HEmpNumber" id="HEmpNumber" value="" placeholder="æä½å代ç " autocomplete="off" class="layui-input" style="border-radius: 50px;"> |
| | | </td> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HEmpName" class="layui-input" id="HEmpName" placeholder="éæ©æä½å" style="background-color:#efefef4d;border-radius: 50px;" readonly> |
| | |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>åæ®æ¥æ</th> |
| | | <td class="t1_input"> |
| | | <input type="text" name="HDate" class="layui-input" id="HDate" style="border-radius: 50px;" placeholder="è¯·éæ©æ¥æ"> |
| | | <th>æµè½¬å¡å·</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HProcExchBillNo" class="layui-input" id="HProcExchBillNo" placeholder="æµè½¬å¡å·" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HProcExchHinteID" id="HProcExchHinteID" autocomplete="off" class="layui-input"> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>åæ®å·</th> |
| | | <th>æµè½¬å¡æ°é</th> |
| | | <td class="bz_td" readonly> |
| | | <input type="text" name="HPlanQty" class="layui-input" id="HPlanQty" value="0" placeholder="æµè½¬å¡æ°é" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>æªåºç«æ°é</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HBillNo" class="layui-input" id="HBillNo" placeholder="åæ®å·" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HInterID" id="HInterID" value="0" autocomplete="off" class="layui-input"> |
| | | <input type="text" name="NoOutboundHqty" class="layui-input" id="NoOutboundHqty" value="0" placeholder="æªåºç«æ°é" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>è®¢åæ°é</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HICMOQty" class="layui-input" id="HICMOQty" value="0" placeholder="è®¢åæ°é" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>产ååç§°</th> |
| | | <th>åæ®å·</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HMaterName" class="layui-input" id="HMaterName" placeholder="产ååç§°" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HMaterID" id="HMaterID" value="0" autocomplete="off" class="layui-input"> |
| | | <input type="text" name="HBillNo" class="layui-input" id="HBillNo" placeholder="åæ®å·" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HInterID" id="HInterID" value="0" autocomplete="off" class="layui-input"> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>è§æ ¼åå·</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HMaterModel" class="layui-input" id="HMaterModel" placeholder="è§æ ¼åå·" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>æµè½¬å¡å·</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HProcExchBillNo" class="layui-input" id="HProcExchBillNo" placeholder="æµè½¬å¡å·" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HProcExchHinteID" id="HProcExchHinteID" autocomplete="off" class="layui-input"> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>æµè½¬å¡æ°é</th> |
| | | <td class="bz_td" readonly> |
| | | <input type="text" name="HPlanQty" class="layui-input" id="HPlanQty" value="0" placeholder="æµè½¬å¡æ°é" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>æªåºç«æ°é</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="NoOutboundHqty" class="layui-input" id="NoOutboundHqty" value="0" placeholder="æªåºç«æ°é" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>è®¢åæ°é</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HICMOQty" class="layui-input" id="HICMOQty" value="0" placeholder="è®¢åæ°é" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th>å½åå·¥åº</th> |
| | | <td class="bz_td"> |
| | | <input type="text" name="HProcName" class="layui-input" id="HProcName" placeholder="å½åå·¥åº" style="border-radius: 50px;background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HProcID" id="HProcID" value="0" autocomplete="off" class="layui-input"> |
| | | <th>åæ®æ¥æ</th> |
| | | <td class="t1_input"> |
| | | <input type="text" name="HDate" class="layui-input" id="HDate" style="border-radius: 50px;" placeholder="è¯·éæ©æ¥æ"> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | |
| | | var FirstEndHProcNo = 0; // é»è®¤0 é¦éå·¥åº1 æ«éå·¥åº2 |
| | | |
| | | $('#Detail').addClass("layui-btn-disabled").attr("disabled", true);//ç¦ç¨æç»æé® |
| | | |
| | | $("#Add").attr("style", "display:none;");//éèæ°å¢æé® |
| | | /*åºå®ä»£ç ï¼æ¯å¼ åæ®é½è¦begin*/ |
| | | /* 1.æ æºåæ°å¢ |
| | | * 2.ææºåæ°å¢ |
| | |
| | | "HQCCheckName": data.HQCCheckName, |
| | | "HEmpID": data.HEmpID, |
| | | "HEmpName": data.HEmpName, |
| | | "HEmpName_second": data.HEmpName, |
| | | "HEmpID2": data.HEmpID2, |
| | | "HEmpName2": data.HEmpName2, |
| | | "HEmpID3": data.HEmpID3, |
| | |
| | | "HCenterName": data.å·¥ä½ä¸å¿åç§°, |
| | | "HEmpID": data.HEmpID, |
| | | "HEmpNumber": data.æä½å代ç , |
| | | "HEmpName": data.æä½ååç§° |
| | | "HEmpName": data.æä½ååç§°, |
| | | "HEmpName_second": data.æä½ååç§° |
| | | }); |
| | | layer.close(index); |
| | | } |
| | |
| | | "HCenterID": data.HCenterID, |
| | | "NoOutboundHqty": (data.æµè½¬å¡æ°é - data.åºç«æ¥åºå
³èæ°é - data.åºç«å
³èæ°é) |
| | | }); |
| | | $("#HProcNo").attr('disabled', 'disabled'); |
| | | HProcExchBillNoFlag = true; |
| | | break; |
| | | case "GXLX": |
| | |
| | | "HPRDOrgID": data.ç»ç», |
| | | "HPRDOrg": data.ç»ç»åç§°, |
| | | "HCenterName": data.å·¥ä½ä¸å¿, |
| | | "HCenterID": data.HCenterID |
| | | "HCenterID": data.HCenterID, |
| | | "lngBillSubKey": data.hsubid, |
| | | "HProcName": data.å·¥åº, |
| | | "HProcID": data.HProcID, |
| | | "HProcNo": data.å·¥åºå·, |
| | | "NoOutboundHqty": (data.æµè½¬å¡æ°é - data.åºç«æ¥åºå
³èæ°é - data.åºç«å
³èæ°é) |
| | | }); |
| | | //$("#HBarCode").attr("readonly", "readonly");//æ¡å½¢ç åªè¯» |
| | | //$("#HBarCode").css("background-color", "#efefef4d"); |
| | | $("#HProcNo").attr('disabled', 'disabled'); |
| | | HProcExchBillNoFlag = true; |
| | | |
| | | var HProcExchHinteID = $('#HProcExchHinteID').val(); |
| | |
| | | "HEmpID": data.HItemID, |
| | | "HEmpNumber": data.èå代ç , |
| | | "HEmpName": data.èååç§°, |
| | | "HEmpName_second": data.èååç§°, |
| | | "HGroupID": data.çç»ID, |
| | | "HGroupName": data.çç»åç§° |
| | | }); |
| | |
| | | //æµæ°´å·ï¼å·¥åºå·ï¼åè½¦æ¹æ³ |
| | | $('#HProcNo').on('keydown', function (event) { |
| | | var sProcNo = $('#HProcNo').val(); |
| | | var sBillNo = $('#HBarCode').val(); |
| | | var sBillNo = $('#HProcExchBillNo').val(); |
| | | if (event.keyCode == 13) { |
| | | if (!HProcExchBillNoFlag) { |
| | | layer.msg("æµè½¬å¡æ²¡ææ«æï¼æè
没ææå车é®ï¼è¯·æ«ææµè½¬å¡æè
卿µè½¬å¡ææ¬æ¡ä¸æå车é®ï¼"); |
| | |
| | | if (data.count == 1) { |
| | | layer.close(index); |
| | | layer.msg("æäº¤æå"); |
| | | $("#Add").attr("style", "display:inline;");//æ¾ç¤ºæ°å¢æé® |
| | | $('#Saver').addClass("layui-btn-disabled").attr("disabled", true);//ç¦ç¨ä¿åæé® |
| | | if (sessionStorage["OrganizationID"] == 100038) { |
| | | if (FirstEndHProcNo == 1) { |
| | | //æ±æ¥ |
| | |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HEmpName").val(checkStatus.data[0].HName); |
| | | $("#HEmpName_second").val(checkStatus.data[0].HName); |
| | | $("#HEmpID").val(checkStatus.data[0].HItemID); |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | |
| | | //è¿åæä½å |
| | | function GetHWorkerValue(obj) { |
| | | $("#HEmpName").val(obj[0].HName); |
| | | $("#HEmpName_second").val(obj[0].HName); |
| | | $("#HEmpID").val(obj[0].HItemID); |
| | | } |
| | | //è¿åæä½å2 |
| | |
| | | switch (field) { |
| | | case 'HQty': |
| | | obj.update({ |
| | | HMoney: HProcPrice * HQty //å·¥èµ=工价 * æ°é |
| | | HMoney: obj.data.HProcPrice * obj.data.HQty //å·¥èµ=工价 * æ°é |
| | | }); |
| | | break; |
| | | } |
| | |
| | | //#endregion |
| | | |
| | | function set_GridCellCheck(obj) { |
| | | var data = obj.data; |
| | | var employeeBar; |
| | | var employeeName; |
| | | table.on('edit(mainTable)', function (obj) { |
| | | employeeBar = obj.value; |
| | | obj.update({ |
| | | "HMoney": obj.data.HProcPrice * obj.data.HQty |
| | | }) |
| | | $("#HPlanQty").focus(); |
| | | $(document).on('keydown', '.layui-table-edit', function (event) { |
| | | if (event.keyCode == 13) { |
| | | var data = obj.data; |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Cj_StationBill/txtHBarCode_KeyDown2", |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HBarCode": employeeBar, "HInterID": HProcExchHinteID, "UserID": sessionStorage["Czybm"], "HBillType": "Out" }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | $("#HPlanQty").focus(); |
| | | obj.update({ |
| | | "HWorkEmpID": result.data[0].HItemID, |
| | | "HWorkName": result.data[0].èååç§°, |
| | | "HRate": result.data[0].èåç³»æ° |
| | | }) |
| | | layer.close(index); |
| | | return; |
| | | } |
| | | else { |
| | | layer.close(index); |
| | | layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | if (obj.event === 'HWorkName') { |
| | | $(obj.tr).find(".layui-table-edit").keyup(function () { |
| | | var $input = $(this), val = $input.val(); |
| | | /*if (!val) val = "0";*/ |
| | | //$input.val(val.replace(/[^\d]/g, '')); |
| | | employeeBar = val;//åå
宿¶æ ¼æ°æ® |
| | | }); |
| | | } |
| | | //å车/æ«ç è·åèååç§° |
| | | $(document).on('keydown', '.layui-table-edit', function (event) { |
| | | if (event.keyCode == 13) { |
| | | var data = obj.data; |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Cj_StationBill/txtHBarCode_KeyDown2", |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HBarCode": employeeBar, "HInterID": HProcExchHinteID, "UserID": sessionStorage["Czybm"], "HBillType": "Out" }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | $("#HPlanQty").focus(); |
| | | obj.update({ |
| | | "HWorkEmpID": result.data[0].HItemID, |
| | | "HWorkName": result.data[0].èååç§°, |
| | | "HRate": result.data[0].èåç³»æ° |
| | | }) |
| | | layer.close(index); |
| | | layer.msg("æ¥å£è¯·æ±å¤±è´¥ï¼" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | }); |
| | | |
| | | setTimeout(function () { |
| | | |
| | | }, 1000); |
| | | else { |
| | | layer.close(index); |
| | | layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.close(index); |
| | | layer.msg("æ¥å£è¯·æ±å¤±è´¥ï¼" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | |
| | | obj.event = ""; |
| | | return false; |
| | | } |
| | | }) |
| | | }); |
| | | setTimeout(function () { |
| | | |
| | | }, 1000); |
| | | |
| | | obj.event = ""; |
| | | return false; |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //以ä¸ä¸ºlayui模å |
| | |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_SendWork"><i class="layui-icon layui-icon-file-b"></i>å·¥åºæ´¾å·¥</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_PlanDate"><i class="layui-icon layui-icon-file-b"></i>ææ´¾æ¥æ</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_ShowBill"><i class="layui-icon layui-icon-file-b"></i>ç¼è¾</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn_print"><i class="layui-icon layui-icon-print"></i>æå°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="set_StationOut"><i class="layui-icon layui-icon-form"></i>å·¥åºåºç«æ±æ¥å</button>--> |
| | |
| | | } else { |
| | | layer.msg('è¯·éæ©æ°æ®ç¼è¾ï¼'); |
| | | } |
| | | } |
| | | } |
| | | |
| | | //#region ææ´¾æ¥æ |
| | | function set_PlanDate() { |
| | |
| | | function get_print() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | if (checkStatus.data.length >= 1) { |
| | | var rows = []; |
| | | var arr = []; |
| | | var ieid = []; |
| | | for (var i = 0; i < data.length; i++) { |
| | | rows.push(data[i].hmainid.toString()); |
| | | arr.push(data[i].HEntryID.toString()); |
| | | ieid.push(data[i].hmainid.toString() + data[i].HEntryID.toString()) |
| | | } |
| | | |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['50%', '50%'] |
| | |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: false //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + data[0].hmainid.toString() + '&MyMsg=' + data[0].hmainid.toString() + '&Type=HProcessExchange', 'yes'] |
| | | , content: ['../../BaseSet/SRM_OpenTmpList_GXPG.html?linterid=' + rows.toString() + '&MyMsg=' + rows.toString() + '&Type=HProcSendWork' + '&ieid=' + ieid.toString(), 'yes'] |
| | | , resize: false |
| | | }) |
| | | } |
| | |
| | | <!--å¨ææ¸²æç»ç»--> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <!--<div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">ç产ç»ç»</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HPRDORGName" id="HPRDORGName" onmouseover="this.title=this.value" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> |
| | | <input type="hidden" name="HPRDORGID" id="HPRDORGID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchORG" id="btnSearchORG" style="width: 40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">æ¥æ</label> |
| | | <label class="layui-form-label">æ´¾å·¥æ¥æ</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="date" class="layui-input" name="HDate" id="HDate"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">æè¦</label> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs6 layui-inline"> |
| | | <label class="layui-form-label" style="width:12.5%">æè¦</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HExplanation" id="HExplanation" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HExplanation" id="HExplanation" style="background-color:#efefef4d;width:600px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">夿³¨</label> |
| | | <div class="layui-col-xs6 layui-inline"> |
| | | <label class="layui-form-label" style="width:12.5%">夿³¨</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HRemark" id="HRemark" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HRemark" id="HRemark" style="background-color:#efefef4d;width:600px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline" style="display:none"> |
| | |
| | | , data = checkStatus.data; |
| | | //æ°å¢è¡è¡¨æ ¼æ°æ® |
| | | var NewRow = { |
| | | "HSourceInterID": 0, "HSourceEntryID": 0, "HSourceBillNo": "", "HSourceBillType": "", |
| | | "HProcNo": 0, "HProcName": "", "HMaterID": 0, "HMaterNumber": "", "HMaterName": "", "HMaterModel": "", "HUnitID": 0, "HUnitNumber": "", "HUnitName": "", |
| | | "HSourceID": 0, "HSourceNumber": "", "HSourceName": "", "HWorkerID": 0, "HWorkerNumber": "", "HWorkerName": "", |
| | | "HGroupID": 0, "HGroupNumber": "", "HGroupName": "", "HPlanQty": 0, "HQty": 0, "HBatchNo": "", "HPlanBeginDate": new Date(), "HPlanEndDate": new Date(), |
| | |
| | | } |
| | | }); |
| | | |
| | | //æå° |
| | | form.on('submit(btn_print)', function (data) { |
| | | get_print(data); |
| | | }); |
| | | |
| | | //éæ©ç产车é´å¼¹çª |
| | | form.on('submit(btnSearchWorkShop)', function () { |
| | | layer.open({ |
| | |
| | | columns = [ //表头 |
| | | { type: 'checkbox', totalRowText: 'å计è¡' } |
| | | , { type: 'numbers', title: 'åºå·', totalRow: true } |
| | | , { field: 'HMainID', title: '派工å主ID', hide: true }// ç¨äºæå°æ¶è·åæ°æ® |
| | | , { field: 'HEntryID', title: '派工ååID', hide: true }// ç¨äºæå°æ¶è·åæ°æ® |
| | | , { field: 'HSourceInterID', title: 'æµè½¬å¡ID', hide: true } |
| | | , { field: 'HSourceEntryID', title: 'æµè½¬å¡åID', hide: true } |
| | | , { field: 'HSourceBillNo', title: 'æµè½¬å¡å·', width: 165 } |
| | | , { field: 'HSourceBillType', title: 'åæ®ç±»å', hide: true } |
| | | , { field: 'HProcNo', title: 'æµæ°´å·' } |
| | | , { field: 'HProcName', title: 'å·¥åºåç§°' } |
| | | , { field: 'HPlanQty', title: 'æµè½¬å¡æ°é' } |
| | | , { field: 'HQty', title: '派工æ°é', edit: 'text'} |
| | | , { field: 'HPlanBeginDate', title: 'è¦æ±å¼å·¥æ¥æ', width: 120, templet: "<div>{{d.HPlanBeginDate ==null ?'':layui.util.toDateString(d.HPlanBeginDate, 'yyyy-MM-dd')}}</div>", event: 'HPlanBeginDate' } |
| | | , { field: 'HPlanEndDate', title: 'è¦æ±å®å·¥æ¥æ', width: 120, templet: "<div>{{d.HPlanEndDate ==null ?'':layui.util.toDateString(d.HPlanEndDate, 'yyyy-MM-dd')}}</div>", event: 'HPlanEndDate' } |
| | | , { field: 'HMaterID', title: '产åID', hide: true } |
| | | , { field: 'HMaterNumber', title: '产å代ç ', edit: 'text', event: "HMaterCheck" } |
| | | , { field: 'HMaterName', title: '产ååç§°' } |
| | |
| | | , { field: 'HSourceNumber', title: 'çäº§èµæºä»£ç ', edit: 'text', event: "HSourceCheck" } |
| | | , { field: 'HSourceName', title: 'çäº§èµæºåç§°' } |
| | | , { field: 'HWorkerID', title: 'æä½å·¥ID', hide: true } |
| | | , { field: 'HWorkerNumber', title: 'æä½å·¥ä»£ç ', edit: 'text', event: "HWorkerCheck" } |
| | | , { field: 'HWorkerName', title: 'æä½å·¥åç§°' } |
| | | , { field: 'HWorkerNumber', title: 'æä½å·¥ä»£ç ', edit: 'text', event: "HWorkerCheck", hide: true } |
| | | , { field: 'HWorkerName', title: 'æä½å·¥åç§°', hide: true } |
| | | , { field: 'HGroupID', title: 'çç»ID', hide: true } |
| | | , { field: 'HGroupNumber', title: 'çç»ä»£ç ', edit: 'text', event: "HGroupCheck" } |
| | | , { field: 'HGroupName', title: 'çç»åç§°' } |
| | | , { field: 'HPlanQty', title: 'æµè½¬å¡æ°é' } |
| | | , { field: 'HQty', title: '派工æ°é', edit: 'text'} |
| | | , { field: 'HGroupNumber', title: 'çç»ä»£ç ', edit: 'text', event: "HGroupCheck", hide: true} |
| | | , { field: 'HGroupName', title: 'çç»åç§°', hide: true} |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', edit: 'text' } |
| | | , { field: 'HPlanBeginDate', title: 'è¦æ±å¼å·¥æ¥æ', width: 120, templet: "<div>{{d.HPlanBeginDate ==null ?'':layui.util.toDateString(d.HPlanBeginDate, 'yyyy-MM-dd')}}</div>", event: 'HPlanBeginDate' } |
| | | , { field: 'HPlanEndDate', title: 'è¦æ±å®å·¥æ¥æ', width: 120, templet: "<div>{{d.HPlanEndDate ==null ?'':layui.util.toDateString(d.HPlanEndDate, 'yyyy-MM-dd')}}</div>", event: 'HPlanEndDate' } |
| | | , { field: 'HICMOBillNo', title: 'ä»»å¡åå·', hide: true } |
| | | , { field: 'HICMOInterID', title: 'ä»»å¡åID', hide: true } |
| | | , { field: 'HICMOEntryID', title: 'ä»»å¡ååå
ç ', hide: true } |
| | |
| | | } |
| | | }; |
| | | option.data = [{ |
| | | "HSourceInterID": 0, "HSourceEntryID": 0, "HSourceBillNo": "", "HSourceBillType": "", |
| | | "HProcNo": 0, "HProcName": "", "HMaterID": 0, "HMaterNumber": "", "HMaterName": "", "HMaterModel": "", "HUnitID": 0, "HUnitNumber": "", "HUnitName": "", |
| | | "HSourceID": 0, "HSourceNumber": "", "HSourceName": "", "HWorkerID": 0, "HWorkerNumber": "", "HWorkerName": "", |
| | | "HGroupID": 0, "HGroupNumber": "", "HGroupName": "", "HPlanQty": 0, "HQty": 0, "HBatchNo": "", "HPlanBeginDate": new Date(), "HPlanEndDate": new Date(), |
| | |
| | | for (var i = 0; i < result.data.length; i++) { |
| | | rowdata.push( |
| | | { |
| | | "HSourceInterID": result.data[i]["hmainid"], "HSourceEntryID": result.data[i]["HEntryID"], "HSourceBillNo": result.data[i]["åæ®å·"], "HSourceBillType": result.data[i]["HBillType"], |
| | | "HProcNo": result.data[i]["æµæ°´å·"], "HProcName": result.data[i]["å·¥åºåç§°"], "HMaterID": result.data[i]["HMaterID"], "HMaterNumber": result.data[i]["产å代ç "], "HMaterName": result.data[i]["产ååç§°"], "HMaterModel": result.data[i]["è§æ ¼åå·"], "HUnitID": result.data[i]["HUnitID"], "HUnitNumber": result.data[i]["åä½ä»£ç "], "HUnitName": result.data[i]["åä½"], |
| | | "HSourceID": result.data[i]["HSourceID"], "HSourceNumber": result.data[i]["çäº§èµæºä»£ç "], "HSourceName": result.data[i]["çäº§èµæº"], "HWorkerID": result.data[i]["HWorkerID"], "HWorkerNumber": result.data[i]["æä½å·¥ä»£ç "], "HWorkerName": result.data[i]["æä½å·¥"], |
| | | "HGroupID": result.data[i]["HGroupID"], "HGroupNumber": result.data[i]["çç»ä»£ç "], "HGroupName": result.data[i]["çç»"], "HPlanQty": result.data[i]["æµè½¬å¡æ°é"], "HQty": 0, "HBatchNo": result.data[i][""], "HPlanBeginDate": new Date(), |
| | |
| | | |
| | | //ä¿åHMaker |
| | | function set_AddNew(data) { |
| | | |
| | | var num_1 = []; |
| | | for (var i = 0; i < table.cache["mainTable"].length; i++) { |
| | | if (table.cache["mainTable"][i] != "") { |
| | |
| | | num_1.push(table.cache["mainTable"][i]) |
| | | } |
| | | } |
| | | |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = JSON.stringify(num_1); |
| | | var sMainSub = sMainStr + ';' + sSubStr + ';' + OperationType + ";" + sessionStorage["HUserName"]; |
| | | |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | |
| | | }) |
| | | } |
| | | |
| | | //æå° |
| | | function get_print(data) { |
| | | |
| | | } |
| | | |
| | | function get_UrlVars() { |
| | | var vars = [], hash; |
| | | var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); |
| | |
| | | option = { |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , height: 800 |
| | | , height: 'full-50' |
| | | , page: true //å¼å¯å页 |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | |
| | | if (checkStatus.data.length >= 1) { |
| | | var rows = []; |
| | | var arr = []; |
| | | var ieid = []; |
| | | for (var i = 0; i < data.length; i++) { |
| | | rows.push(data[i].hmainid.toString()); |
| | | arr.push(data[i].hentryid.toString()); |
| | | ieid.push(data[i].hmainid.toString() + data[i].hentryid.toString()) |
| | | } |
| | | |
| | | layer.open({ |
| | |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: false //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../BaseSet/SRM_OpenTmpList _GXPG.html?linterid=' + rows.toString() + '&MyMsg=' + rows.toString() + '&Type=HProcSendWork' + '&entryid=' + arr.toString(), 'yes'] |
| | | , content: ['../../BaseSet/SRM_OpenTmpList_GXPG.html?linterid=' + rows.toString() + '&MyMsg=' + rows.toString() + '&Type=HProcSendWork' + '&ieid=' + ieid.toString(), 'yes'] |
| | | , resize: false |
| | | }) |
| | | } |
| | |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäº |
| | | playSound1(); |
| | | //æ¸
空æ°é |
| | | $("#HQty").val(""); |
| | | table.reload('wl-table', { |
| | | where: { HBillID: sInterID, HBillType: '1206', sWhere: '' } |
| | | }); |
| | |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäº |
| | | layer.msg(data.Message, { icon: 1, btn: ['确认'], time: 100000, title: "温馨æç¤º" }); |
| | | //æ¸
空æ°é |
| | | $("#HQty").val(""); |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | , url: GetWEBURL() + '/SellOut/DisBillEntryList_Webs_Json' |
| | |
| | | } |
| | | }); |
| | | playSound1(); |
| | | //æ¸
空æ°é |
| | | $("#HQty").val(""); |
| | | } |
| | | else { |
| | | playSound(); |
| | |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="QueDin">ç¡®å®</button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:40px;padding-left:0px;">æ°é</label> |
| | | </div> |
| | | <div class="layui-col-xs8"> |
| | | <input type="text" name="HQty" id="HQty" lay-verify="HQty" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab layui-col-xs12" lay-filter="tab-EntrustOutBill"> |
| | | <ul class="layui-tab-title" lay-filter="tab-all"> |
| | |
| | | <!--ç©ææ¸
å--> |
| | | <div class="layui-tab-item"> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <!--<div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:40px;padding-left:0px;">æ°é</label> |
| | | </div> |
| | | <div class="layui-col-xs8"> |
| | | <input type="text" name="HQty" id="HQty" lay-verify="HQty" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | <table class="layui-hide" id="wl-table" lay-filter="wl-table"></table> |
| | | </div> |
| | |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | //æ¸
空æ°é |
| | | $("#HQty").val(""); |
| | | } |
| | | else { |
| | | playSound(); |
| | |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäº |
| | | playSound1(); |
| | | //æ¸
空æ°é |
| | | $("#HQty").val(""); |
| | | table.reload('wl-table', { |
| | | where: { HBillID: sInterID, HBillType: '1205', sWhere: '' } |
| | | }); |
| | |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäº |
| | | layer.msg(data.Message, { icon: 1, btn: ['确认'], time: 100000, title: "温馨æç¤º" }); |
| | | //æ¸
空æ°é |
| | | $("#HQty").val(""); |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | , url: GetWEBURL() + '/SellOut/DisBillEntryList_Webs_Json' |
| | |
| | | //$("#HSumQtys").val(count); |
| | | //$("#HBarCodeQtys").val(count1); |
| | | playSound1(); |
| | | //æ¸
空æ°é |
| | | $("#HQty").val(""); |
| | | } |
| | | else { |
| | | // $("#verifycode").click(); |
| | |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | //æ¸
空æ°é |
| | | $("#HQty").val(""); |
| | | } |
| | | else { |
| | | playSound(); |
| | |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | //æ¸
空æ°é |
| | | $("#HQty").val(""); |
| | | } |
| | | else { |
| | | playSound(); |
| | |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | //æ¸
空æ°é |
| | | $("#HQty").val(""); |
| | | } |
| | | else { |
| | | playSound(); |
| | |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:40px;padding-left:0px;">æ°é</label> |
| | | </div> |
| | | <div class="layui-col-xs8"> |
| | | <div class="layui-col-xs5"> |
| | | <input type="text" name="HQty" id="HQty" lay-verify="HQty" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | //æ¸
空æ°é |
| | | $("#HQty").val(""); |
| | | } |
| | | else { |
| | | // $("#verifycode").click(); |
| | |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:40px;padding-left:0px;">æ¡ç </label> |
| | | </div> |
| | | <div class="layui-col-xs5"> |
| | | <div class="layui-col-xs8"> |
| | | <input type="text" name="HBarCode" id="HBarCode" lay-verify="HBarCode" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="QueDin">ç¡®å®</button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:40px;padding-left:0px;">æ°é</label> |
| | | </div> |
| | | <div class="layui-col-xs8"> |
| | | <input type="text" name="HQty" id="HQty" lay-verify="HQty" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs12"> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <!--<div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:40px;padding-left:0px;">æ°é</label> |
| | | </div> |
| | | <div class="layui-col-xs8"> |
| | | <input type="text" name="HQty" id="HQty" lay-verify="HQty" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | <table class="layui-hide" id="wl-table" lay-filter="wl-table"></table> |
| | | </div> |
| | |
| | | // layer.msg($('#HSourceBillNo').val(), { icon: 1 }); |
| | | } |
| | | }); |
| | | |
| | | //æ«ä»åº |
| | | $('#HWHNAME').on('keydown', function (event) { |
| | | var HBarCode = $('#HWHNAME').val() |
| | | if (event.keyCode == 13) { |
| | | if (!HBarCode) { |
| | | layer.msg('æ ä»åºæ¡ç ä¿¡æ¯ï¼'); |
| | | return; |
| | | } |
| | | //å¤æææ¬æ¡æ¯å¦ææ°æ® new |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/LookingFor/getWHName_Json", |
| | | type: "GET", |
| | | data: { "HBarCode": HBarCode }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | //$("#HStockPlaceName").val(result.data[0].HName); |
| | | //$("#HStockPlaceID").val(result.data[0].HItemID); |
| | | $("#HWHID").val(result.data[0].HItemID); |
| | | $("#HWHNAME").val(result.data[0].HName); |
| | | element.tabChange('tab-POStockInBill', '2'); |
| | | } |
| | | else { |
| | | // $("#verifycode").click(); |
| | | //layer.msg(result.Message, { icon: 5 }); |
| | | layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | // layer.msg($('#HSourceBillNo').val(), { icon: 1 }); |
| | | } |
| | | }); |
| | | |
| | | //å·æ°æç»é¡µç¾ |
| | | table.render({ |
| | | elem: '#mx-table' |
| | |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | |
| | | //æ¸
空æ°é |
| | | $("#HQty").val(""); |
| | | } |
| | | else { |
| | | playSound(); |
| | |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="QueDin">ç¡®å®</button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:40px;padding-left:0px;">æ°é</label> |
| | | </div> |
| | | <div class="layui-col-xs8"> |
| | | <input type="text" name="HQty" id="HQty" lay-verify="HQty" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab layui-col-xs12" lay-filter="tab-Kf_EntrustInBill"> |
| | | <ul class="layui-tab-title" lay-filter="tab-all"> |
| | |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs12"> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <!--<div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:40px;padding-left:0px;">æ°é</label> |
| | | </div> |
| | | <div class="layui-col-xs8"> |
| | | <input type="text" name="HQty" id="HQty" lay-verify="HQty" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | <table class="layui-hide" id="wl-table" lay-filter="wl-table"></table> |
| | | </div> |
| | |
| | | // sQty = 0; |
| | | //} |
| | | if (event.keyCode == 13) { |
| | | GetMeesageByBarCode |
| | | GetMeesageByBarCode(); |
| | | } |
| | | }); |
| | | //ç¡®å® |
| | |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | //æ¸
空æ°é |
| | | $("#HQty").val(""); |
| | | } |
| | | else { |
| | | // $("#verifycode").click(); |