| | |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | <script src="../../../layuiadmin/PageTitle.js"></script> |
| | | <style> |
| | | .main-btn { /*头é¨ä¸»æé®*/ |
| | | padding: 0 2px; /*è°æ´æé®å·¦å³ç©ºé大å°*/ |
| | |
| | | <button type="button" id="btnSave" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="btnSave">ä¿å</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Cancel">éåº</button> |
| | | <button type="button" id="btn_print" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="btn_print">æå°</button> |
| | | <button type="button" id="btn_print" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="set_CheckBill">å®¡æ ¸</button> |
| | | <button type="button" id="btn_print" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="set_AbandonCheck">åå®¡æ ¸</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="HideColumn" id="HideColumn">éèå设置</button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab" lay-filter="tab-POStockInBill"> |
| | | <h1 style="text-align:center;"><b>å·¥åºè¿å·¥è®°å½</b></h1> |
| | | <ul class="layui-tab-title" lay-filter="tab-all"> |
| | | <li lay-id="1" style="padding:1px;" class="layui-this">åºæ¬ä¿¡æ¯</li> |
| | | <li lay-id="2" style="padding:1px;">å
¶ä»ä¿¡æ¯</li> |
| | |
| | | </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="HEmpName" id="HEmpName" onmouseover="this.title=this.value" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> |
| | | <input type="hidden" name="HEmpID" id="HEmpID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHEmpID" id="btnHEmpID" style="width: 40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </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="HProcExchBillNo" id="HProcExchBillNo" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HProcExchInterID" id="HProcExchInterID" value="0"> |
| | | <input type="hidden" name="HProcExchEntryID" id="HProcExchEntryID" value="0"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <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="HWorkShopName" id="HWorkShopName" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HWorkShopID" id="HWorkShopID" value="0"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | |
| | | <input type="hidden" name="HMaterID" id="HMaterID" value="0"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <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="HModel" id="HModel" onmouseover="this.title=this.value" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">计éåä½</label> |
| | | <div class="layui-input-inline"> |
| | |
| | | <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="HPlanQty" id="HPlanQty" style="background-color:#efefef4d;" readonly> |
| | | </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="HQty" id="HQty" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="HPlanQty" id="HPlanQty" value="0" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <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="HQty" id="HQty" value="0" style="background-color:#efefef4d;" readonly> |
| | | </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="HProcExchBegNO" id="HProcExchBegNO" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <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="HProcExchEndNO" id="HProcExchEndNO" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <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" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HPRDORGID" id="HPRDORGID" lay-verify="HPRDORGID"><!--HSTOCKORGID--> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">ç产订å</label> |
| | | <div class="layui-input-inline"> |
| | |
| | | <input type="hidden" name="HICMOEntryID" id="HICMOEntryID" lay-verify="HICMOEntryID"> |
| | | </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="HOrderProcNO" id="HOrderProcNO" style="background-color:#efefef4d;" readonly> |
| | | </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="HInnerBillNo" id="HInnerBillNo"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <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="HRemark" id="HRemark" placeholder="请è¾å
¥å
容" onmouseover="this.title=this.value" style="width:610px;"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <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" style="background-color: #efefef4d; width: 610px; " readonly> |
| | | <input type="hidden" name="HPRDORGID" id="HPRDORGID" lay-verify="HPRDORGID"><!--HSTOCKORGID--> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <input type="text" class="layui-input" name="HDeleteMan" id="HDeleteMan" style="background-color:#efefef4d;" readonly> |
| | | </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;"> |
| | |
| | | <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="HDeleteDate" id="HDeleteDate" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">è´è´£äºº</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HEmpName" id="HEmpName" onmouseover="this.title=this.value" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> |
| | | <input type="hidden" name="HEmpID" id="HEmpID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHEmpID" id="btnHEmpID" style="width: 40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 83px;">ç产车é´</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HWorkShopName" id="HWorkShopName" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HWorkShopID" id="HWorkShopID" value="0"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 78px;">订åè·è¸ªå·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HOrderProcNO" id="HOrderProcNO" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 78px;">å
é¨åæ®å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HInnerBillNo" id="HInnerBillNo"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | |
| | | //#region è¿å
¥é¡µé¢å³å è½½ |
| | | |
| | | //#region ã卿è·å模ååç§°ã |
| | | var HModuleType = "3797"; |
| | | //éè¿åæ®ç±»åï¼ä»æ°æ®åºå¨æè·ååæ®æ¨¡åå½å,å¼ç¨jsæä»¶ PageTitle.js |
| | | var HPageTitle = get_PageTitle(HModuleType) == "" ? $("h1").html() : get_PageTitle(HModuleType); |
| | | $("h1").html('<b>' + HPageTitle + '</b>'); |
| | | //#endregion |
| | | |
| | | |
| | | var params = get_UrlVars(); |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/ç产åºç¡èµæ/Gy_Process.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index]; |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable'); |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | if (checkStatus.data.length == 0) { |
| | | return layer.msg("请è³å°éæ©ä¸æ¡æ°æ®!"); |
| | | } |
| | | obj.update({ |
| | | HProcName: checkStatus.data[0].å·¥åº |
| | | , HProcID: checkStatus.data[0].HItemID |
| | | , HProcNumber: checkStatus.data[0].å·¥åºä»£ç |
| | | |
| | | //è·åå·¥åºä»£ç |
| | | var ProcessNumber = []; |
| | | for (var i = 0; i < checkStatus.data.length; i++) { |
| | | ProcessNumber.push("'" + checkStatus.data[i]["å·¥åºä»£ç "] + "'"); |
| | | } |
| | | |
| | | //è·åå½åä½ç½®æå¨è¡æ° |
| | | var NowNum = 0; |
| | | for (var i = 0; i < option.data.length; i++) { |
| | | if (obj.data["HProcNo"] == option.data[i]["HProcNo"]) { |
| | | NowNum = i + 1; |
| | | } |
| | | } |
| | | |
| | | //æ¥è¯¢å·¥ä½ä¸å¿çæ°æ® |
| | | var WorkCente = []; |
| | | var sWhere = "select isnull(a.HItemID,'') HCenterID, isnull(a.HNumber,'') å·¥ä½ä¸å¿ä»£ç , isnull(a.HName,'') å·¥ä½ä¸å¿åç§° ,p.HItemID HProcID,p.HName å·¥åºåç§°,p.HNumber å·¥åºä»£ç from Gy_Process p left join Gy_WorkCenter a on p.HWorkCenterID=a.HItemID where p.HNumber in (" + ProcessNumber.toString() + ") order by p.HNumber "; |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Gy_SOPBillList/WindowPrintList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | async: false, |
| | | data: { "sWhere": sWhere }, |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | WorkCente = data.data; |
| | | } |
| | | else { |
| | | layer.msg(data.Message, { icon: 5 }); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | layer.msg("é误:" + err, { icon: 5 }); |
| | | } |
| | | }); |
| | | |
| | | |
| | | //å¤æéæ©çæ°æ®æ»æ° æ¯å¦å¤§äºè¡¨æ ¼ç°æçæ°æ® |
| | | if (ProcessNumber.length > option.data.length - (NowNum - 1)) { |
| | | //è·åè¡¨æ ¼å©ä½è¡æ°é |
| | | var num = ProcessNumber.length - option.data.length + (NowNum - 1); |
| | | //循ç¯èµå¼ å¨å·²æçè¡¨æ ¼èµå¼ |
| | | var j = 0; |
| | | for (var i = (NowNum - 1); i < option.data.length; i++) { |
| | | option.data[i]["HProcName"] = WorkCente[j]["å·¥åºåç§°"]; |
| | | option.data[i]["HProcNumber"] = WorkCente[j]["å·¥åºä»£ç "]; |
| | | option.data[i]["HProcID"] = WorkCente[j]["HProcID"]; |
| | | option.data[i]["HCenterName"] = WorkCente[j]["å·¥ä½ä¸å¿åç§°"]; |
| | | option.data[i]["HCenterID"] = WorkCente[j]["HCenterID"]; |
| | | option.data[i]["HCenterNumber"] = WorkCente[j]["å·¥ä½ä¸å¿ä»£ç "]; |
| | | j++; |
| | | } |
| | | |
| | | //å¨ä¸æ¹æ·»å æ°çè¡¨æ ¼æ°æ® |
| | | for (var i = 0; i < num; i++) { |
| | | option.data.push({ |
| | | "HProcNo": parseInt($("#HProcExchBegNO").val()) + table.cache["mainTable"].length + 1 + i, "HProcID": WorkCente[j]["HProcID"], "HProcNumber": WorkCente[j]["å·¥åºä»£ç "], "HProcName": WorkCente[j]["å·¥åºåç§°"], "HWorkRemark": "", |
| | | "HCenterID": WorkCente[j]["HCenterID"], "HCenterNumber": WorkCente[j]["å·¥ä½ä¸å¿ä»£ç "], "HCenterName": WorkCente[j]["å·¥ä½ä¸å¿åç§°"], |
| | | "HDeptID": 0, "HDeptNumber": "", "HDeptName": "", |
| | | "HSupID": 0, "HSupNumber": "", "HSupName": "", "HSupFlag": "false", |
| | | "HQty": $("#HQty").val(), "HRemark": "" |
| | | }) |
| | | j++; |
| | | } |
| | | } else { |
| | | //循ç¯èµå¼ å¨å·²æçè¡¨æ ¼èµå¼ |
| | | var j = 0; |
| | | for (var i = (NowNum - 1); i < (NowNum - 1) + ProcessNumber.length; i++) { |
| | | option.data[i]["HProcName"] = WorkCente[j]["å·¥åºåç§°"]; |
| | | option.data[i]["HProcNumber"] = WorkCente[j]["å·¥åºä»£ç "]; |
| | | option.data[i]["HProcID"] = WorkCente[j]["HProcID"]; |
| | | option.data[i]["HCenterName"] = WorkCente[j]["å·¥ä½ä¸å¿åç§°"]; |
| | | option.data[i]["HCenterID"] = WorkCente[j]["HCenterID"]; |
| | | option.data[i]["HCenterNumber"] = WorkCente[j]["å·¥ä½ä¸å¿ä»£ç "]; |
| | | j++; |
| | | } |
| | | } |
| | | |
| | | table.render(option); |
| | | //obj.update({ |
| | | // HProcName: checkStatus.data[0].å·¥åº |
| | | // , HProcID: checkStatus.data[0].HItemID |
| | | // , HProcNumber: checkStatus.data[0].å·¥åºä»£ç |
| | | //}); |
| | | |
| | | layer.close(layer.index); |
| | | } |
| | |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'å å·¥ä¸å¿å表', |
| | | title: 'å·¥ä¸å¿å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../../views/Baseset/åºç¡èµæ/Gy_WorkCenterList.html', 'yes'], |
| | | content: ['../../../views/åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_WorkCenter.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | obj.update({ |
| | | HCenterName: checkStatus.data[0].å·¥ä½ä¸å¿ |
| | | HCenterName: checkStatus.data[0].å·¥ä½ä¸å¿åç§° |
| | | , HCenterID: checkStatus.data[0].HItemID |
| | | , HCenterNumber: checkStatus.data[0].å·¥ä½ä¸å¿ä»£ç |
| | | }); |
| | |
| | | }); |
| | | |
| | | |
| | | //å®¡æ ¸ |
| | | form.on('submit(set_CheckBill)', function (data) { |
| | | set_CheckBill(); |
| | | }); |
| | | |
| | | |
| | | //åå®¡æ ¸ |
| | | form.on('submit(set_AbandonCheck)', function (data) { |
| | | set_AbandonCheck(); |
| | | }); |
| | | |
| | | |
| | | //#endregion |
| | | |
| | | //#region æ¤é¡µé¢ææçæ¹æ³ |
| | |
| | | , { field: 'HProcID', title: 'å·¥åºID', hide: true } |
| | | , { field: 'HProcNumber', title: 'å·¥åºä»£ç ', edit: 'text', event: "HProcCheck" } |
| | | , { field: 'HProcName', title: 'å·¥åºåç§°' } |
| | | , { field: 'HWorkRemark', title: 'å 工说æ', edit: 'text' } |
| | | , { field: 'HCenterID', title: 'å·¥ä½ä¸å¿ID', hide: true } |
| | | , { field: 'HCenterNumber', title: 'å·¥ä½ä¸å¿ä»£ç ', edit: 'text', event: "HWorkCenterCheck" } |
| | | , { field: 'HCenterName', title: 'å·¥ä½ä¸å¿åç§°' } |
| | | , { field: 'HQty', title: 'è¿å·¥æ°é', edit: 'text' } |
| | | , { field: 'HDeptID', title: 'é¨é¨ID', hide: true } |
| | | , { field: 'HDeptNumber', title: 'é¨é¨ä»£ç ', edit: 'text', event: "HDeptCheck" } |
| | | , { field: 'HDeptName', title: 'é¨é¨' } |
| | | , { field: 'HWorkRemark', title: 'å·¥èºåæ°', edit: 'text' } |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text', width: "300" } |
| | | , { field: 'HSupID', title: 'ä¾åºåID', hide: true } |
| | | , { field: 'HSupNumber', title: 'ä¾åºå代ç ', edit: 'text', event: "HSupCheck" } |
| | | , { field: 'HSupName', title: 'ä¾åºå' } |
| | | , { field: 'HSupFlag', title: 'æ¯å¦å§å¤', templet: '#HSupFlag' } |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text',width:"300" } |
| | | |
| | | //, { field: 'HDeptID', title: 'é¨é¨ID', hide: true } |
| | | //, { field: 'HDeptNumber', title: 'é¨é¨ä»£ç ', edit: 'text', event: "HDeptCheck" } |
| | | //, { field: 'HDeptName', title: 'é¨é¨' } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo' } |
| | | ]; |
| | | option = { |
| | |
| | | |
| | | } |
| | | |
| | | //å®¡æ ¸ |
| | | function set_CheckBill() { |
| | | |
| | | var hmainid = $("#HInterID").val(); |
| | | layer.confirm("确认è¦å®¡æ ¸åï¼å®¡æ ¸åä¸è½æ¢å¤", { title: "å®¡æ ¸ç¡®è®¤" }, function (index) { |
| | | var wait = layer.load(); |
| | | //é»è¾å 餿¹æ³ |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_ProcExchRecordBackBill/set_CheckBill', |
| | | type: "GET", |
| | | data: { "HInterID": hmainid, "num": 1, "CurUserName": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | //å
³éå½åframe |
| | | layer.close(wait); |
| | | layer.msg(result.Message); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | get_FastQuery(); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | layer.close(wait); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | layer.close(wait); |
| | | } |
| | | }); |
| | | }) |
| | | } |
| | | |
| | | //åå®¡æ ¸ |
| | | function set_AbandonCheck() { |
| | | var hmainid = $("#HInterID").val(); |
| | | layer.confirm("确认è¦åå®¡æ ¸å?", { title: "åå®¡æ ¸ç¡®è®¤" }, function (index) { |
| | | var wait = layer.load(); |
| | | //é»è¾å 餿¹æ³ |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_ProcExchRecordBackBill/set_CheckBill', |
| | | type: "GET", |
| | | data: { "HInterID": hmainid, "num": 2, "CurUserName": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | //å
³éå½åframe |
| | | layer.close(wait); |
| | | layer.msg(result.Message); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | get_FastQuery(); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | layer.close(wait); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | layer.close(wait); |
| | | } |
| | | }); |
| | | }) |
| | | } |
| | | |
| | | //é空éªè¯ |
| | | function AllowLoadData(data) { |
| | | |
| | | if ($("#HEmpID").val()=="0") { |
| | | layer.msg("è¯·éæ©è´è´£äºº!"); |
| | | if ($("#HBillNo").val() == "") { |
| | | layer.msg("åæ®å·ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | |
| | | if ($("#HProcExchBillNo").val() == "") { |
| | | layer.msg("æµè½¬å¡ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | |
| | | if ($("#HMaterNumber").val() == "") { |
| | | layer.msg("ç©æä»£ç ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | |
| | | if ($("#HMaterName").val() == "") { |
| | | layer.msg("ç©æåç§°ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | |
| | | if ($("#HModel").val() == "") { |
| | | layer.msg("è§æ ¼åå·ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | |
| | | if ($("#HUnitName").val() == "") { |
| | | layer.msg("计éåä½ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | |
| | | if ($("#HPlanQty").val() == "0") { |
| | | layer.msg("è®¢åæ°éä¸è½ä¸º0!"); |
| | | return false; |
| | | } |
| | | |
| | | if ($("#HQty").val() == "0") { |
| | | layer.msg("è¿å·¥æ°éä¸è½ä¸º0!"); |
| | | return false; |
| | | } |
| | | |
| | | if ($("#HProcBegName").val() == "") { |
| | | layer.msg("å¼å§å·¥åºä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | |
| | | if ($("#HProcEndName").val() == "") { |
| | | layer.msg("ç»æå·¥åºä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | |
| | | if ($("#HProcExchBegNO").val() == "") { |
| | | layer.msg("å¼å§æµæ°´å·ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | |
| | | if ($("#HProcExchEndNO").val() == "") { |
| | | layer.msg("ç»ææµæ°´å·ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | |
| | | if ($("#HPRDORGName").val() == "") { |
| | | layer.msg("ç产ç»ç»ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | |
| | | if ($("#HICMOBillNo").val() == "") { |
| | | layer.msg("ç产订åä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | |
| | | //if ($("#HEmpID").val()=="0") { |
| | | // layer.msg("è¯·éæ©è´è´£äºº!"); |
| | | // return false; |
| | | //} |
| | | |
| | | var num = []; |
| | | var num_2 = []; |
| | |
| | | layer.msg("第" + (i + 1) + "è¡:ä¾åºåä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | } else { |
| | | if (option.data[i]["HCenterID"] == "0") { |
| | | layer.msg("第" + (i + 1) + "è¡:å·¥ä½ä¸å¿ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | } |
| | | //else { |
| | | // if (option.data[i]["HCenterID"] == "0") { |
| | | // layer.msg("第" + (i + 1) + "è¡:å·¥ä½ä¸å¿ä¸è½ä¸ºç©º!"); |
| | | // return false; |
| | | // } |
| | | //} |
| | | |
| | | if (parseInt(option.data[i].HQty) > parseInt($("#HQty").val())) { |
| | | var indexRow = i + 1; |