| | |
| | | }); |
| | | function TSLoad() { |
| | | $("#topleft").html(""); |
| | | var HUserName = "Admin" //sessionStorage["HUserName"]; //é»è®¤å½åç»å½äººå |
| | | var HUserName = sessionStorage["HUserName"]; //é»è®¤å½åç»å½äººå |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/ReportPlatForm/SearchGetLineBindBillList", |
| | | type: "GET", |
| | |
| | | html1 += '<div class="layui-col-sm12 layui-col-md12">'; |
| | | html1 += '<dl class="topright">;' |
| | | html1 += '<dt>'; |
| | | html1 += '<img src="../layuiadmin/layui/images/device.png" onError="this.src="../ layuiadmin/layui/images/erro.png";">'; |
| | | html1 += '<img src="../layuiadmin/layui/images/device.png" onError="this.src="../layuiadmin/layui/images/erro.png";">' |
| | | html1 += '</dt>'; |
| | | html1 += '<dd>'; |
| | | html1 += '<h1><span>å½å设å¤ï¼</span><span>' + LoadData2[i].HSourceName + '</span></h1>'; |
| | |
| | | layer.alert("è¯·éæ©å·¥åå表", { icon: 5 }); |
| | | return false; |
| | | } |
| | | if (WorkStaus(HSourceID1, workcode, HSourceInterID, "æ±æ¥")) { |
| | | layer.alert("åæ®ç¶æä¸æ»¡è¶³å®å·¥æ¡ä»¶!", { icon: 5 }); |
| | | return false; |
| | | } |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | |
| | | sWhere = " where HSourceID='" + HSourceID1 + "' and HICMOBillNo='" + workcode + "' and HInterID='" + HSourceInterID +"' and hicmostatus not in('1')"; //åå·¥æèµ·ç¶æ |
| | | break; |
| | | case "æ±æ¥": |
| | | html1 = ''; |
| | | sWhere = " where HSourceID='" + HSourceID1 + "' and HICMOBillNo='" + workcode + "' and HInterID='" + HSourceInterID + "' and hicmostatus not in('1')"; //æ±æ¥ç¶æ |
| | | break; |
| | | case "æ¥æ£ç³è¯·": |
| | | |
| | |
| | | flag = false; |
| | | } |
| | | }); |
| | | console.log(flag); |
| | | |
| | | return flag; |
| | | } |
| | | </script> |
| | |
| | | </ul> |
| | | <div class="layui-tab-content content3"> |
| | | <div class="layui-tab-item layui-show"> |
| | | <div class="layui-row layui-col-space10" id="btomleft"> |
| | | <div class="layui-row layui-col-space10" id="btomleft" style="height:600px;display:block;overflow-y:auto;"> |
| | | |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row layui-col-space10" onclick="OpenInSpection(event,this)"> |
| | | <div class="layui-col-sm12 layui-col-md4"> |
| | | <div class="layui-row layui-col-space10"> |
| | | <div class="layui-col-sm12 layui-col-md4" onclick="OpenInSpection(event,this)"> |
| | | <div class="cnt bottomright"> |
| | | <span class="layui-icon layui-icon-release imgicon"></span> |
| | | <span class="imgtitle">æ¥æ£ç³è¯·</span> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row layui-col-space10" onclick="OpenStop(event,this)"> |
| | | <div class="layui-col-sm12 layui-col-md4"> |
| | | <div class="layui-row layui-col-space10"> |
| | | <div class="layui-col-sm12 layui-col-md4" onclick="OpenStop(event,this)"> |
| | | <div class="cnt bottomright"> |
| | | <span class="layui-icon layui-icon-play imgicon"></span> |
| | | <span class="imgtitle">åå·¥</span> |
| | |
| | | <dd> |
| | | <a>æ¥å·¥ç®¡ç</a> |
| | | <dl class="layui-nav-child"> |
| | | <dd><a lay-href="">æ¥å·¥å¹³å°n</a></dd> |
| | | <dd><a lay-href="IpadIndex.html">æ¥å·¥å¹³å°</a></dd> |
| | | <dd><a lay-href="">æ¥æ£ç³è¯·n</a></dd> |
| | | </dl> |
| | | </dd> |
| | |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HBillNo" lay-verify="HBillNo" id="HBillNo" disabled autocomplete="off"> |
| | | <input id="HInterID" name="HInterID" type="hidden" /> |
| | | <input id="HMaker" name="HMaker" type="hidden" /><!--å¶å人--> |
| | | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | <input class="layui-input" name="HProcExchBillNo" lay-verify="HProcExchBillNo" id="HProcExchBillNo" autocomplete="off"> |
| | | <input id="HSourceInterID" name="HSourceInterID" type="hidden" /> |
| | | <input id="HSourceEntryID" name="HSourceEntryID" type="hidden" /> |
| | | <input type="hidden" name="HSourceBillNo" id="HSourceBillNo"> |
| | | <input type="hidden" name="HSourceBillType" id="HSourceBillType"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | </button> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç产çç»:</label> |
| | | <div class="layui-input-inline"> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æä½å:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HEmpName" id="HEmpName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HEmpID" id="HEmpID" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="text" name="HWorkManName" id="HWorkManName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HWorkManID" id="HWorkManID" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HEmpList" id="HEmpList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | |
| | | |
| | | |
| | | //ææºåæ°å¢ |
| | | if (Type == 2) { |
| | | if (Type == 2) |
| | | { |
| | | |
| | | //å æºåç±»ååºå(å¯ä»¥åä¸åçæ¹æ³) |
| | | $('#HICMOBillNo').attr("disabled", true); |
| | |
| | | success: function (data) { |
| | | if (data.count == 1)// 说æéªè¯æåäºï¼ |
| | | { |
| | | var LoadData = data.data.h_p_JIT_GetSourceInfoByUser; |
| | | var LoadData = data.data.h_p_JIT_GetInfoByICMOStatusInterID; |
| | | console.log(LoadData); |
| | | $("#HProcID").val(LoadData[0].HProcID); //å½åå·¥åºID |
| | | $("#HProcName").val(LoadData[0].HProcName); //å½åå·¥åº |
| | | $("#HMaterID").val(LoadData[0].HMaterID); //产åID |
| | |
| | | $("#HMaterSpec").val(LoadData[0].HModel); //产åè§æ ¼ |
| | | $("#HSourceID").val(LoadData[0].HSourceID); //çäº§èµæºID |
| | | $("#HSourceName").val(LoadData[0].HSourceName); //çäº§èµæº |
| | | $("#HMainSourceBillNo").val(LoadData[0].HSourceBillNo); //æºååå· |
| | | $("#HMainSourceInterID").val(LoadData[0].HSourceInterID); //æºå主å
ç |
| | | $("#HMainSourceEntryID").val(LoadData[0].HSourceEntryID); //æºååå
ç (æºåè¡å·) |
| | | $("#HMainSourceBillType").val(HSourceBillType); //æºåç±»å |
| | | $("#HSourceBillNo").val(LoadData[0].HICMOBillNo); //æºååå·ï¼ææ¶åå¼è®¢åç¼å·ï¼ |
| | | $("#HSourceInterID").val(LoadData[0].HSourceInterID); //æºå主å
ç (åå¼HInterID) |
| | | $("#HSourceEntryID").val(LoadData[0].HSourceEntryID); //æºååå
ç (æºåè¡å·) |
| | | $("#HSourceBillType").val(HSourceBillType); //æºåç±»å |
| | | $("#HDeptID").val(LoadData[0].HDeptID); //车é´ID |
| | | $("#HDeptName").val(LoadData[0].HDeptName); //è½¦é´ |
| | | $("#HICMOInterID").val(LoadData[0].HICMOInterID); //ç产订åID |
| | |
| | | $("#HICMOBillNo").val(LoadData[0].HICMOBillNo); //ç产订å |
| | | $("#HWorkBeginDate").val(LoadData[0].HBeginDate); //å¼å·¥æ¶é´ |
| | | $("#HPlanQty").val(LoadData[0].HDatePlanQty); //è®¡åæ°é |
| | | |
| | | } |
| | | else { |
| | | layer.alert(data.Message, { icon: 5 }); |
| | |
| | | layer.alert(err, { icon: 5 }); |
| | | } |
| | | }); |
| | | console.log($("#HSourceInterID").val()); |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: GetWEBURL() + "/Sc_ICMOReportBill/SaveGetMESProductReportFrom", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | url: GetWEBURL() + "/Sc_MESBeginWorkBill/SaveGetMESProductReportFrom", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | async: true, |
| | | data: { "msg": sMainStr }, |
| | | dataType: "json", |
| | |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HEmpName").val(checkStatus.data[0].HName); |
| | | $("#HEmpID").val(checkStatus.data[0].HItemID); |
| | | $("#HWorkManName").val(checkStatus.data[0].HName); |
| | | $("#HWorkManID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | |
| | | layer.msg("产åç¼ç ä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | if ($("#HWorkBeginDate").val() == '' || $("#HBeginDate").val() == null) { |
| | | if ($("#HWorkBeginDate").val() == '' || $("#HWorkBeginDate").val() == null) { |
| | | layer.msg("å¼å·¥æ¶é´ä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | if ($("#HWorkReportDate").val() == '' || $("#HBeginDate").val() == null) { |
| | | if ($("#HWorkReportDate").val() == '' || $("#HWorkReportDate").val() == null) { |
| | | layer.msg("å¼å·¥æ¶é´ä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | |
| | | layer.msg("çäº§èµæºä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | if ($("#HEmpID").val() == '' || $("#HEmpID").val() == null) { |
| | | if ($("#HWorkManID").val() == '' || $("#HWorkManID").val() == null) { |
| | | layer.msg("æä½åä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | |
| | | , cols: [[ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { field: 'hmainid', title: 'hmainid', sort: true, hide: true, width: 200} |
| | | , { field: 'HDate', title: 'æ¥æ', width: 160,templet: "<div>{{d.æ¥æ ==null ?'':layui.util.toDateString(d.æ¥æ, 'yyyy-MM-dd')}}</div>"} |
| | | , { field: 'HDate', title: 'æ¥æ', width: 200, templet: "<div>{{d.HDate ==null ?'':layui.util.toDateString(d.HDate, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | , { field: 'HBillNo', title: 'åæ®å·', width: 200} |
| | | , { field: 'HBillType', title: 'åæ®ç±»å', width: 200 } |
| | | , { field: 'HICMOBillNo', title: 'ç产订åå·', width: 200 } |
| | |
| | | , { field: 'HWorkManID', title: 'æä½åID', width: 200, hide: true} |
| | | , { field: 'HWorkManName', title: 'æä½å', width: 200 } |
| | | , { field: 'HMaker', title: 'å¶å人', width: 200 } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 160, templet: "<div>{{d.æ¥æ ==null ?'':layui.util.toDateString(d.æ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 160, templet: "<div>{{d.HMakeDate ==null ?'':layui.util.toDateString(d.HMakeDate, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | , { field: 'HReportType', title: 'æ±æ¥ç±»å', width: 200 } |
| | | ]] |
| | | }; |
| | |
| | | if (data.count == 1)// 说æéªè¯æåäºï¼ |
| | | { |
| | | var LoadData = data.data.h_p_JIT_GetInfoByICMOStatusInterID; |
| | | |
| | | $("#HProcID").val(LoadData[0].HProcID); //å½åå·¥åºID |
| | | $("#HProcName").val(LoadData[0].HProcName); //å½åå·¥åº |
| | | $("#HMaterID").val(LoadData[0].HMaterID); //产åID |
| | |
| | | layer.msg("ç产订åä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | if ($("#HStopReason").val() == '' || $("#HStopReason").val() == null) { |
| | | layer.msg("åå·¥åå ä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | return Result; |
| | | } |
| | | </script> |
| | |
| | | |
| | | //ä¿åæäº¤ |
| | | form.on('submit(Saver)', function (data) { |
| | | alert("aa"); |
| | | |
| | | var sMainStr = JSON.stringify(data.field); |
| | | if (!AllowLoadData())//æ°æ®éªè¯ |
| | | { |
| | |
| | | , laydate = layui.laydate |
| | | , element = layui.element; |
| | | |
| | | var fn1 = function (field) { |
| | | return function (data) { |
| | | var value = data[field]; |
| | | return [ |
| | | '<select name="type" lay-filter="type" lay-search="true" value="' + value + '">', |
| | | '<option value="" >è¯·éæ©ç¶æ</option>', |
| | | '<option value="0"' + (value === 0 ? 'selected' : '') + '>å½äº§</option>', |
| | | '<option value="1"' + (value === 1 ? 'selected' : '') + '>è¿å£</option>', |
| | | '</select>' |
| | | ].join(''); |
| | | }; |
| | | }; |
| | | |
| | | //常è§ç¨æ³ |
| | | laydate.render({ |
| | | elem: '#HDate' |
| | |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, fixed: 'left', event: "qwe", width: 100 } |
| | | , { field: 'HMaterID', title: 'HMaterID', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HMaterCode', title: 'ç©æä»£ç ', edit: 'text', event: 'HMaterCode', width: 100 } |
| | | , { field: 'HMaterCode', title: 'ç©æä»£ç ', edit: 'text', event: 'HMaterCode', width: 100, templet: fn1('HMaterCode') } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', edit: 'text', width: 100 } |
| | | , { field: 'HMaterSpec', title: 'è§æ ¼åå·', edit: 'text', width: 100 } |
| | | , { field: 'HUnitID', title: 'HUnitID', edit: 'text', width: 100, hide: true } |
| | |
| | | ]] |
| | | , limit: 500 //æ¯é¡µé»è®¤æ¾ç¤ºçæ°é |
| | | }; |
| | | |
| | | |
| | | //夿æ¯å¦æ°å¢ |
| | | if (hID == null || hID == 0) { |
| | | //åå§å è½½è¡¨æ ¼{ "ID": 0, "HWasterReasonName": " ","HBadReasonID":0,"HEmpName": " ", "HSQProcName": " ","HProcID":0, "HZRProcName": " ", "HMRBChecker": " ", "HRemark": " ", "HPSProcName": " ", "HCloseMan": " " } |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/OtherOutBill/get_CheckTypeByBarCode_Out_Json", |
| | | type: "GET", |
| | | data: { "sCode": sBarCode, "sInterID": sInterID, "sBillNo": sBillNo, "sMaker": sessionStorage["HUserName"], "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": sessionStorage["SourceFlag"], "sSourceBillNo": sSourceBillNo, "sSourceType": sHBillType, "HOWNERID": 0 }, |
| | | data: { "sCode": sBarCode, "sInterID": sInterID, "sBillNo": sBillNo, "sMaker": sessionStorage["HUserName"], "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": sessionStorage["SourceFlag"], "sSourceBillNo": sSourceBillNo, "sSourceType": sHBillType, "HOWNERID": sessionStorage["OrganizationID"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | if (result.data.HBarType == 'ä»åºæ¡ç ') { |
| | |
| | | $.ajax( |
| | | { |
| | | type: "POST", |
| | | //url: "http://61.130.49.162:9090/WMSAPI///OtherInStockBill/set_SaveOtherInStockBill_Json", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | url: GetWEBURL() + "/OtherInStockBill/set_SaveOtherInStockBill_Json", |
| | | //url: "http://localhost:12761/OtherInStockBill/set_SaveOtherInStockBill_Json", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | async: true, |
| | | data: { "oMain": sMain }, |
| | | dataType: "json", |
| | |
| | | } |
| | | //if (AllowLoadData(sSubStr, 'HBarCode') != false) {//é空éªè¯ |
| | | $.ajax({ |
| | | //url: "http://61.130.49.162:9090/WMSAPI///OtherInStockBill/get_InfoByBarCode_Source_Json", |
| | | //url: "http://localhost:12761/OtherInStockBill/get_InfoByBarCode_Source_Json", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | url: GetWEBURL() + "/OtherInStockBill/get_InfoByBarCode_Source_Json", |
| | | type: "GET", |
| | | data: { "sCode": sBarCode, "sInterID": sInterID, "sBillNo": sBillNo, "sMaker": sessionStorage["HUserName"], "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": sessionStorage["SourceFlag"], "sSourceBillNo": sSourceBillNo, "sSourceType": sHBillType, "HOWNERID": 0}, |
| | | data: { "sCode": sBarCode, "sInterID": sInterID, "sBillNo": sBillNo, "sMaker": sessionStorage["HUserName"], "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": sessionStorage["SourceFlag"], "sSourceBillNo": sSourceBillNo, "sSourceType": sHBillType, "HOWNERID": sessionStorage["OrganizationID"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | if (result.data.HBarType == 'ä»åºæ¡ç ') { |
| | |
| | | $.ajax( |
| | | { |
| | | type: "POST", |
| | | url: "http://localhost:12761/Kf_EntrustInBill/set_SaveEntrustInBill_New_Json", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | //url: "http://localhost:12761/Kf_EntrustInBill/set_SaveEntrustInBill_New_Json", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | //url: GetWEBURL() + "/Kf_EntrustInBill/set_SaveEntrustInBill_Json", |
| | | //url: GetWEBURL() + "/Kf_EntrustInBill/set_SaveEntrustInBill_New_Json", |
| | | url: GetWEBURL() + "/Kf_EntrustInBill/set_SaveEntrustInBill_New_Json", |
| | | async: true, |
| | | data: { "oMain": sMainStr }, |
| | | dataType: "json", |