| | |
| | | <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 type="text/css"> |
| | | .layui-form-label { |
| | | width: 85px; |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å
³èåå·:</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HRelationBillNo" lay-verify="HMainSourceBillNo" id="HMainSourceBillNo" disabled autocomplete="off"> |
| | | <input id="HMainSourceInterID" name="HRelationInterID" value="0" type="hidden" /> |
| | | <input id="HMainSourceEntryID" name="HRelationEntryID" value="0" type="hidden" /> |
| | | <input class="layui-input" name="HRelationBillNo" lay-verify="HRelationBillNo" id="HRelationBillNo" disabled autocomplete="off"> |
| | | <input id="HRelationInterID" name="HRelationInterID" value="0" type="hidden" /> |
| | | <input id="HRelationEntryID" name="HRelationEntryID" value="0" type="hidden" /> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å
³èç±»å:</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HRelationBillType" lay-verify="HMainSourceBillType" id="HMainSourceBillType" disabled autocomplete="off"> |
| | | <input class="layui-input" name="HRelationBillType" lay-verify="HMainSourceBillType" id="HRelationBillType" disabled autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | set_AddFNew(); |
| | | } |
| | | else if (OperationType == 2) { |
| | | //èååå§å |
| | | var HRelationInterID = params[params[1]]; |
| | | var HRelationEntryID = params[params[2]]; |
| | | var HRelationBillNo = params[params[3]]; |
| | | var HRelationBillType = params[params[4]]; |
| | | $("#HRelationInterID").val(HRelationInterID); //èç³»ååå·ï¼ææ¶åå¼è®¢åç¼å·ï¼ |
| | | $("#HRelationEntryID").val(HRelationEntryID); //èç³»å主å
ç (åå¼HInterID) |
| | | $("#HRelationBillNo").val(HRelationBillNo); //èç³»ååå
ç (æºåè¡å·) |
| | | $("#HRelationBillType").val(HRelationBillType); //èç³»åç±»å |
| | | //æºåæ°å¢ |
| | | var datajson; |
| | | var str = window.location.search; //è·å龿¥ä¸ä¼ éçåæ° |
| | | var arr = str.substring(str.lastIndexOf("=") + 1); |
| | | datajson = $.parseJSON(decodeURI(arr)); |
| | | $("#HRelationInterID").val(datajson.HRelationInterID); |
| | | $("#HRelationEntryID").val(datajson.HRelationEntryID); |
| | | $("#HRelationBillNo").val(datajson.HRelationBillNo); |
| | | $("#HRelationBillType").val(datajson.HRelationBillType); |
| | | |
| | | set_AddFNew(); |
| | | } |
| | | else if (OperationType == 3) {//ç¼è¾ |
| | |
| | | $("#HDeptName").val(sessionStorage["HDept"]); //é¨é¨ |
| | | } |
| | | |
| | | //#region ææºåæ°å¢æ ç¨ |
| | | |
| | | //function set_AddNew() { |
| | | // refSav = "Add"; |
| | | // //åå§åºæ¬ä¿¡æ¯èµå¼ |
| | | // $("#HDate").val(Format(new Date(), "yyyy-MM-dd hh:mm:ss")); //åæ®æ¥æ |
| | | // $("#HMakeDate").val(Format(new Date(), "yyyy-MM-dd hh:mm:ss")); //å¶åæ¥æ |
| | | // $("#HMaker").val(sessionStorage["HUserName"]); //å¶å人 |
| | | // $("#HSendMan").val(sessionStorage["HUserName"]); //åé人 |
| | | // $("#HDeptID").val(sessionStorage["HDeptID"]); //é¨é¨ID |
| | | // $("#HDeptName").val(sessionStorage["HDept"]); //é¨é¨ |
| | | |
| | | // $.ajax( |
| | | // { |
| | | // type: "GET", |
| | | // url: GetWEBURL() + "/Sc_MESBeginWorkBill/GetMESBeginWorkFrom", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | // async: true, |
| | | // data: { |
| | | // "HRelationInterID": HRelationInterID, |
| | | // "HSourceEntryID": HMainSourceEntryID, |
| | | // "HSourceBillNo": HMainSourceBillNo, |
| | | // "HSourceBillType": HBillType |
| | | // }, |
| | | // dataType: "json", |
| | | // success: function (data) { |
| | | // if (data.count == 1)// 说æéªè¯æåäºï¼ |
| | | // { |
| | | // var LoadData = data.data.h_p_JIT_GetInfoByICMOStatusInterID; |
| | | // $("#HMaterName").val(LoadData[0].HMaterName); //产ååç§° |
| | | // $("#HMaterModel").val(LoadData[0].HModel); //产åè§æ ¼ |
| | | // $("#HMainSourceBillNo").val(LoadData[0].HICMOBillNo); //æºååå·ï¼ææ¶åå¼è®¢åç¼å·ï¼ |
| | | // $("#HMainSourceInterID").val(LoadData[0].HSourceInterID); //æºå主å
ç (åå¼HInterID) |
| | | // $("#HMainSourceEntryID").val(LoadData[0].HSourceEntryID); //æºååå
ç (æºåè¡å·) |
| | | // $("#HMainSourceBillType").val(LoadData[0].HSourceBillType); //æºåç±»å |
| | | // $("#HQty").val(LoadData[0].HDatePlanQty); //è®¡åæ°é |
| | | // Qty = LoadData[0].HDatePlanQty; |
| | | // } |
| | | // else { |
| | | // layer.alert(data.Message, { icon: 5 }); |
| | | |
| | | // } |
| | | // }, |
| | | // error: function (err) { |
| | | // layer.alert(err, { icon: 5 }); |
| | | // } |
| | | // }); |
| | | //} |
| | | //#endregion |
| | | //ç¼è¾ |
| | | function set_EditFromGrid() |
| | | { |