| | |
| | | <Content Include="layuiadmin\PubCustom.js" /> |
| | | <Content Include="layuiadmin\PubJs\PubCheck.js" /> |
| | | <Content Include="views\Baseset\HBarPlanPrint.html" /> |
| | | <Content Include="views\Baseset\åºç¡èµæ\Gy_LineCenter.html" /> |
| | | <Content Include="views\Baseset\åºç¡èµæ\Gy_QCCheckProjectListView.html" /> |
| | | <Content Include="views\Baseset\åºç¡èµæ\Gy_RoutingGroup.html" /> |
| | | <Content Include="views\Baseset\åºç¡èµæ\Sc_ICMOBillListView2.html" /> |
| | |
| | | <Content Include="views\éªæ¶å
¥åº\å§å¤å
¥åº\Kf_EntrustInBackBill.html" /> |
| | | <Content Include="views\éªæ¶å
¥åº\å§å¤å
¥åº\Kf_EntrustInBill_FastList.html" /> |
| | | <Content Include="views\éªæ¶å
¥åº\å§å¤å
¥åº\Kf_EntrustInBillList.html" /> |
| | | <Content Include="views\éªæ¶å
¥åº\å§å¤å
¥åº\Kf_EntrustOutBackBill.html" /> |
| | | <Content Include="Web.config" /> |
| | | <None Include="Properties\PublishProfiles\Web.pubxml" /> |
| | | </ItemGroup> |
| | |
| | | <ItemGroup> |
| | | <Folder Include="views\ä»å管ç\è°æ¨åæ ¸å¯¹\" /> |
| | | <Folder Include="views\ä»å管ç\è°æ¨åç¨½æ ¸\" /> |
| | | <Folder Include="views\ç产管ç\ç产æç®±å\" /> |
| | | </ItemGroup> |
| | | <PropertyGroup> |
| | | <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion> |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| | | <PropertyGroup> |
| | | <NameOfLastUsedPublishProfile>D:\æºäºMES\Lay-Ui\MESWMS-LayUI\WebTM\Properties\PublishProfiles\JFTM.pubxml</NameOfLastUsedPublishProfile> |
| | | <NameOfLastUsedPublishProfile>JFTM</NameOfLastUsedPublishProfile> |
| | | <ProjectView>ShowAllFiles</ProjectView> |
| | | <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig> |
| | | <UseIISExpress>true</UseIISExpress> |
| New file |
| | |
| | | <!DOCTYPE html> |
| | | <html xmlns="http://www.w3.org/1999/xhtml"> |
| | | <head> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| | | <title>产线ä¸å¿å表</title> |
| | | <meta name="renderer" content="webkit"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all"> |
| | | </head> |
| | | <body> |
| | | <div class="layui-fluid"> |
| | | <div class="layui-card"> |
| | | <!--<div class="layui-card-header"></div>--> |
| | | <div class="layui-card-body" style="padding: 15px;"> |
| | | <form class="layui-form" action="" lay-filter="component-form-group"> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">è¿æ»¤å</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="Value" id="Value" lay-verify="Value" autocomplete="off" placeholder="请è¾å
¥è¿æ»¤å" class="layui-input"> |
| | | </div> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HQuery">å¿«éæ¥è¯¢</button> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="FH">è¿å</button> |
| | | </div> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <table class="layui-hide" id="mainTable"></table> |
| | | <script src="../../../layuiadmin/layui/layui.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/json2.js" type="text/javascript"></script> |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js" type="text/javascript"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script> |
| | | layui.use(['table', 'form', 'layer'], function () { |
| | | var table = layui.table |
| | | , form = layui.form |
| | | , layer = layui.layer; |
| | | |
| | | form.on('submit(HQuery)', function () {//éæ©åä½ |
| | | //var sMainStr = JSON.stringify(table.cache['mainTable']); |
| | | RoadQuery($('#Value').val()); |
| | | }); |
| | | form.on('submit(FH)', function () {//éæ©åä½ |
| | | //var sMainStr = JSON.stringify(table.cache['mainTable']); |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | parent.GetHReasonValue(data); |
| | | var index = parent.layer.getFrameIndex(window.name); |
| | | parent.layer.close(index); |
| | | }); |
| | | RoadQuery($('#Value').val()); |
| | | table.render({ |
| | | elem: '#mainTable' |
| | | // , url: '/demo/table/user/' |
| | | , data: [] |
| | | , cellMinWidth: 80 //å
¨å±å®ä¹å¸¸è§åå
æ ¼çæå°å®½åº¦ï¼layui 2.2.1 æ°å¢ |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HItemID', width: 150, title: '产线ä¸å¿ID', hide: true } |
| | | , { field: 'HNumber', width: 150, title: '产线ä¸å¿ä»£ç ' } |
| | | , { field: 'HName', width: 150, title: '产线ä¸å¿åç§°', sort: true } |
| | | ]] |
| | | , page: true |
| | | }); |
| | | ///å è½½æ¾ç¤ºæ°æ® |
| | | function RoadQuery(Where) { |
| | | var Value = Where; |
| | | if (Value == null) { |
| | | Value = ''; |
| | | } |
| | | $.ajax({ |
| | | type: "get", |
| | | url: GetWEBURL() + "/Web/Gy_LineCenter_Json", |
| | | async: true, |
| | | data: { "BadReason": Value }, |
| | | //data: { "Value": Value }, |
| | | success: function (result) { |
| | | ajaxReturnData = JSON.parse(JSON.stringify(result)).data; |
| | | table.reload('mainTable', { |
| | | data: ajaxReturnData |
| | | , height: 'full-10' |
| | | , loading: false |
| | | , done: function (index, res) { |
| | | |
| | | } |
| | | }); |
| | | }, |
| | | error: function (result) { |
| | | console.log(result); |
| | | //layer.msg('è·åéè´è®¢ååºç°å¼å¸¸', { icon: 2, time: 2000 }); |
| | | } |
| | | }); |
| | | }; |
| | | }); |
| | | </script> |
| | | |
| | | </body> |
| | | </html> |
| | |
| | | case "HSCWHID": //è¿åè°åºä»åº |
| | | parent.GetHSCWHNAMEValue(data); |
| | | break; |
| | | case "HFIFOWHID": //è¿åå
è¿å
åºä»åº |
| | | parent.GetHFIFOWHNAMEValue(data); |
| | | break; |
| | | } |
| | | var index = parent.layer.getFrameIndex(window.name); |
| | | parent.layer.close(index); |
| | |
| | | "HMaker": sessionStorage["HUserName"], //sessionStorage["HUserName"] |
| | | "Czybm": sessionStorage["Czybm"], |
| | | //"HEmpID": "0", //sessionStorage["HEmpID"] |
| | | "HSourceBillType": HSourceBillType |
| | | "HSourceBillType": HSourceBillType, |
| | | "HProcID": HProcID |
| | | }); |
| | | |
| | | //éè¿ç´¢å¼è·åå°å½åiframeå¼¹åºå± |
| | |
| | | // cols_arr[0][i + 1] = { field: data[i].id, title: data[i].name, align: 'center', totalRow: true, sort: true }; |
| | | // break; |
| | | default: |
| | | cols_arr[0][i + 1] = { field: data[i].id, title: data[i].name, align: 'center', sort: true }; |
| | | cols_arr[0][i + 1] = { field: data[i].id, title: data[i].name, align: 'center', sort: true, width:200 }; |
| | | } |
| | | } |
| | | } |
| | |
| | | , cols: [[ //表头 |
| | | { type: 'checkbox', totalRowText: 'å计è¡' } |
| | | , { type: 'numbers', title: 'åºå·', totalRow: true } |
| | | , { field: 'å维修项ç®', title: '维修项ç®', edit: 'text', event: "HRepairID"} |
| | | , { field: 'HRepairID', title: '维修项ç®id', hide: true} |
| | | , { field: 'å维修项ç®', title: '维修项ç®', edit: 'text', event: "HRepairID" } |
| | | , { field: 'HRepairID', title: '维修项ç®id', hide: true } |
| | | , { field: 'å维修项ç®ä»£ç ', title: '维修项ç®ä»£ç ' } |
| | | , { field: 'HRepairExplanation', title: 'ç»´ä¿®è¦æ±', edit: 'text' } |
| | | , { field: 'åè´è´£äººä»£ç ', title: 'è´è´£äººä»£ç ', edit: 'text', event: "HManagerID"}//, hide: true |
| | | , { field: 'HManagerID', title: 'id', width: 115, hide: true}//, hide: true |
| | | , { field: 'åè´è´£äººä»£ç ', title: 'è´è´£äººä»£ç ', edit: 'text', event: "HManagerID" }//, hide: true |
| | | , { field: 'HManagerID', title: 'id', width: 115, hide: true }//, hide: true |
| | | , { field: 'åè´è´£äºº', title: 'è´è´£äºº', width: 115 } |
| | | , { field: 'HMoney', title: '维修费ç¨', edit: 'text' } |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text' } |
| | |
| | | ]] |
| | | }; |
| | | //åå§è¡¨æ ¼æ°æ® |
| | | var rowdata = [{ "å维修项ç®":"","HRepairID": 0, "å维修项ç®ä»£ç ": "", "HRepairExplanation": "", "åè´è´£äººä»£ç ": "", "HManagerID": 0, "åè´è´£äºº": "", "HMoney": 0, "HRemark": "" }]; |
| | | var rowdata = [{ "å维修项ç®": "", "HRepairID": 0, "å维修项ç®ä»£ç ": "", "HRepairExplanation": "", "åè´è´£äººä»£ç ": "", "HManagerID": 0, "åè´è´£äºº": "", "HMoney": 0, "HRemark": "" }]; |
| | | option.data = rowdata; |
| | | table.render(option); |
| | | |
| | |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | //æ°å¢è¡è¡¨æ ¼æ°æ® |
| | | var NewRow = { "å维修项ç®": "","HRepairID": 0, "å维修项ç®ä»£ç ": "", "HRepairExplanation": "", "åè´è´£äººä»£ç ": "", "HManagerID": 0, "åè´è´£äºº": "", "HMoney": 0, "HRemark": "" }; |
| | | var NewRow = { "å维修项ç®": "", "HRepairID": 0, "å维修项ç®ä»£ç ": "", "HRepairExplanation": "", "åè´è´£äººä»£ç ": "", "HManagerID": 0, "åè´è´£äºº": "", "HMoney": 0, "HRemark": "" }; |
| | | switch (obj.event) { |
| | | case 'btn-AddLine': |
| | | table.cache["mainTable"].push(NewRow); |
| | |
| | | obj.event = ""; |
| | | return false; |
| | | } |
| | | |
| | | |
| | | }) |
| | | } |
| | | //ä¿åæ°æ® |
| | |
| | | |
| | | //#endregion |
| | | |
| | | //å¤æç¨æ·æ¯å¦ææ¥è¯¢æé |
| | | //$.ajax({ |
| | | // url: GetWEBURL() + "/Sc_MouldProdOutBill/QueryUserRight", |
| | | // type: "GET", |
| | | // data: { "UserName": sessionStorage["HUserName"] }, |
| | | // success: function (result) { |
| | | // if (result.code == 1) { // 说æéªè¯æåäºï¼ |
| | | |
| | | // }); |
| | | |
| | | // } else { |
| | | // layer.alert(result.msg, { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | // } |
| | | // }, error: function () { |
| | | // layer.alert("åçé误!", { icon: 5 }); |
| | | // } |
| | | //}); |
| | | // |
| | | |
| | | //#region è¿å
¥é¡µé¢æ¢å è½½ |
| | | //åå§å表åæä»¶ |
| | | set_InitFrom(); |
| | |
| | | var HICMOInterID = ""; //ç产订å主ID |
| | | var HICMOEntryID = ""; //ç产订ååID |
| | | var HSourceBillType = ""; //æºåç±»å |
| | | var HProcID = ""; //å·¥åºID |
| | | var SchWhere = ""; //æé®æ¥è¯¢åæ° |
| | | var edit = function (data) { |
| | | workcode = data[0].workcode; |
| | |
| | | HMaker = data[0].HMaker; |
| | | Czybm = data[0].Czybm; |
| | | HSourceBillType = data[0].HSourceBillType; |
| | | HProcID = data[0].HProcID; |
| | | } |
| | | //è·å页é¢è·³è½¬åæ° //åæ®ç¼è¾ç¶æï¼ 1.æ æºåæ°å¢Â  2.ææºåæ°å¢Â  3.ç¼è¾Â 4.æµè§Â 5.åæ´ |
| | | var params = get_UrlVars(); |
| | |
| | | , { field: 'HICMOBillNo', title: 'ç产订åå·', width: 200 } |
| | | , { field: 'HICMOInterID', title: 'ç产订å主ID', width: 200, hide: true } |
| | | , { field: 'HICMOEntryID', title: 'ç产订ååID', width: 200, hide: true } |
| | | , { field: 'HProcID', title: 'å·¥åºID', width: 200, hide: true } |
| | | , { field: 'HProcNumber', title: 'å·¥åºç¼ç ', width: 200 } |
| | | , { field: 'HProcName', title: 'å·¥åºåç§°', width: 200 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 200 } |
| | |
| | | type: "Get", |
| | | url: GetWEBURL() + "/Sc_MESBeginStepWorkBill/SaveGetMESProductReportBillList", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | async: true, |
| | | data: { "ScMaxWork": ScMaxWork(), "HSourceBillType": HSourceBillType, "workcode": workcode, "HSourceID": HSourceID, "HICMOInterID": (HICMOInterID == "null" ? 0 : HICMOInterID), "HICMOEntryID": (HICMOEntryID == "null" ? 0 : HICMOEntryID), "HMaker": HMaker, "Czybm": Czybm }, |
| | | data: { "ScMaxWork": ScMaxWork(), "HSourceBillType": HSourceBillType, "workcode": workcode, "HSourceID": HSourceID, "HICMOInterID": (HICMOInterID == "null" ? 0 : HICMOInterID), "HICMOEntryID": (HICMOEntryID == "null" ? 0 : HICMOEntryID), "HMaker": HMaker, "Czybm": Czybm, "HProcID": HProcID }, |
| | | dataType: "json", |
| | | beforeSend: function () { |
| | | $('#AskReport').addClass("layui-btn-disabled").attr("disabled", true); |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æ¥æ</label> |
| | | <label class="layui-form-label">å¼å§æ¥æ</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input" id="HDate" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç»ææ¥æ</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input" id="HDate1" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | <script src="../../../layuiadmin/Scripts/json2.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | <script> |
| | | var cols_arr = []; //åå¨è¡¨æ ¼å¤´çæ°ç» |
| | | var table = null; |
| | |
| | | var pageIndex = 1;//å½å页ç å¼ |
| | | |
| | | //#region è¿å
¥é¡µé¢æ¢å è½½ |
| | | //åå§å表åæä»¶ |
| | | set_InitFrom(); |
| | | //åå§åçé¢ |
| | | set_ClearBill(sWhere); |
| | | //#endregion |
| | | |
| | | //#region åå§å表å |
| | | function set_InitFrom() { |
| | | laydate.render({ |
| | | elem: '#HDate' |
| | | }); |
| | | laydate.render({ |
| | | elem: '#HDate1' |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | //头工å
·æ äºä»¶ |
| | | table.on('toolbar(mainTable)', function (obj) { |
| | |
| | | get_FastQuery(); |
| | | }); |
| | | |
| | | //åå§å表å |
| | | function set_InitFrom() { |
| | | laydate.render({ |
| | | elem: '#HDate' |
| | | }); |
| | | } |
| | | //åå§åçé¢ |
| | | function set_ClearBill(sWhere) { |
| | | resultTableHead = []; //æ¸
空表头åï¼é²æ¢é夿¸²æ |
| | | //åå§æ¥è¯¢ |
| | | get_Display(sWhere); |
| | | //get_Display(sWhere); |
| | | $("#HDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HDate1").val(Format(new Date(), "yyyy-MM-dd")); |
| | | get_FastQuery(); |
| | | |
| | | } |
| | | //å è½½ç½æ ¼ |
| | | function get_Display(sWhere) { |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_PackUnionBill/Get_PackUnionBillList', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere, "page": 1, "limit": 10 }, |
| | | data: { "page": 1, "limit": 10, "sWhere": sWhere }, |
| | | datatype: "json", |
| | | success: function (data1) { |
| | | console.log(data1); |
| | |
| | | } |
| | | //åå§åè¡¨æ ¼ |
| | | function set_InitGrid(sWhere) { |
| | | |
| | | //å¡«å
è¡¨æ ¼å¤´æ°ç» |
| | | var data = resultTableHead; |
| | | cols_arr[0] = []; |
| | |
| | | switch (data[i].Type) { |
| | | //int |
| | | case 'Int32': |
| | | cols_arr[0][i + 1] = { field: data[i].id, title: data[i].name, align: 'center', totalRow: true, sort: true }; |
| | | cols_arr[0][i + 1] = { field: data[i].id, title: data[i].name, align: 'center', totalRow: true, sort: true, width: 100 }; |
| | | break; |
| | | //Decimal |
| | | case 'Decimal': |
| | | cols_arr[0][i + 1] = { field: data[i].id, title: data[i].name, align: 'center', totalRow: true, sort: true }; |
| | | cols_arr[0][i + 1] = { field: data[i].id, title: data[i].name, align: 'center', totalRow: true, sort: true, width: 200 }; |
| | | break; |
| | | default: |
| | | cols_arr[0][i + 1] = { field: data[i].id, title: data[i].name, align: 'center', sort: true }; |
| | | cols_arr[0][i + 1] = { field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200 }; |
| | | } |
| | | } |
| | | } |
| | | //å¡«å
è¡¨æ ¼æ°æ® |
| | | table.render({ |
| | | elem: '#mainTable', |
| | | url: GetWEBURL() + '/Sc_PackUnionBill/Get_PackUnionBillList', |
| | | toolbar: '#toolbarDemo', |
| | | url: GetWEBURL() + '/Sc_PackUnionBill/Get_PackUnionBillList', |
| | | title: 'ç»æåå表', |
| | | cols: cols_arr, //å¡«å
è¡¨æ ¼å¤´æ°æ®, |
| | | id: 'mainTable', //è¡¨æ ¼id |
| | |
| | | //å¿«éè¿æ»¤ |
| | | function get_FastQuery() { |
| | | var HDate = $("#HDate").val();//å¼å§æ¥æ |
| | | var HDate1 = $("#HDate1").val();//ç»ææ¥æ |
| | | var HBillNo = $("#HBillNo").val(); //åæ®å· |
| | | var HDepartName = $("#HDepartName").val(); |
| | | var HMaterNumber = $("#HMaterNumber").val(); |
| | |
| | | var HMakerMan = $("#HMakerMan").val(); |
| | | if (HDate) { |
| | | sWhere += " and CONVERT(varchar(100),æ¥æ, 23) >= '" + HDate + "'"; |
| | | } |
| | | if (HDate1) { |
| | | sWhere += " and CONVERT(varchar(100),æ¥æ, 23) <= '" + HDate1 + "'"; |
| | | } |
| | | if (HBillNo) { |
| | | sWhere += " and åæ®å· like '%" + HBillNo + "%'"; |
| | |
| | | if (HMakerMan) { |
| | | sWhere += " and å¶å人 like '%" + HMakerMan + "%'"; |
| | | } |
| | | set_ClearBill(sWhere); |
| | | get_Display(sWhere); |
| | | sWhere = ""; |
| | | } |
| | | //éç½®è¿æ»¤æ¡ä»¶ |
| | | function set_ClearQuery() { |
| | | $("#HDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd")); |
| | | $("#HDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HDate1").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HBillNo").val(""); |
| | | $("#HDepartName").val(""); |
| | | $("#HMaterNumber").val(""); |
| | | $("#HMaterName").val(""); |
| | | $("#HMakerMan").val(""); |
| | | sWhere = ""; |
| | | get_Display(sWhere); |
| | | sWhere = " "; |
| | | get_FastQuery(); |
| | | } |
| | | //å·æ° |
| | | function set_Refresh() { |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | <script> |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | |
| | | var option = []; |
| | | //#endregion |
| | | |
| | | //#region åå§åçé¢ |
| | | //#region åå§åçé¢ |
| | | set_ClearBill(); |
| | | //#endregion |
| | | //#endregion |
| | | |
| | | //#region 触åäºä»¶ï¼å
æ¬form.on(){}æ ¼å¼çææç¹å»äºä»¶ãéæ©äºä»¶ç |
| | | //#region 触åäºä»¶ï¼å
æ¬form.on(){}æ ¼å¼çææç¹å»äºä»¶ãéæ©äºä»¶ç |
| | | |
| | | //æ¥è¯¢æé® |
| | | form.on('submit(btnSearch)', function (data) { |
| | |
| | | set_ClearQuery(); |
| | | }); |
| | | |
| | | //头工å
·æ äºä»¶ |
| | | table.on("toolbar(mainTable)", function (obj) { |
| | | var checkStatus = table.checkStatus(obj.config.id);//è·åéä¸è¡ æ°æ® |
| | | switch (obj.event) { |
| | | //å®¡æ ¸ |
| | | case "btn-Audit": set_AuditBill(); |
| | | break; |
| | | //åå®¡æ ¸ |
| | | case "btn-DeAudit": set_DeAuditBill(); |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | | }) |
| | | //#endregion |
| | | |
| | | //#region æ¤é¡µé¢ææçæ¹æ³ |
| | |
| | | $("#HBeginDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd")); |
| | | $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | } |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | | function set_InitGrid() { |
| | | option = { |
| | | elem: '#mainTable' |
| | |
| | | , page: true |
| | | , cellMinWidth: 90 |
| | | , cols: [[ |
| | | { field: 'hmainid', title: 'hmainid', sort: true, hide: true } |
| | | { type:"checkbox",fixed:"left" } |
| | | ,{ field: 'hmainid', title: 'hmainid', sort: true, hide: true } |
| | | , { field: 'æ¥æ', title: 'æ¥æ', width: 150, templet: "<div>{{d.æ¥æ ==null ?'':layui.util.toDateString(d.æ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'åæ®å·', title: 'åæ®å·', width: 150 } |
| | | , { field: 'HDeptID', title: 'HDeptID', hide: true } |
| | |
| | | , { field: 'å¶å人', title: 'å¶å人' } |
| | | , { field: 'å¶åæ¥æ', title: 'å¶åæ¥æ', width: 150, templet: "<div>{{d.å¶åæ¥æ ==null ?'':layui.util.toDateString(d.å¶åæ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'å®¡æ ¸äºº', title: 'å®¡æ ¸äºº' } |
| | | , { field: 'å®¡æ ¸æ¥æ', title: 'å®¡æ ¸æ¥æ', width: 150, templet: "<div>{{d.å®¡æ ¸æ¥æ ==null ?'':layui.util.toDateString(d.å®¡æ ¸æ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'å®¡æ ¸æ¥æ', title: 'å®¡æ ¸æ¥æ', width: 150, templet: "<div>{{d.å®¡æ ¸æ¥æ ==null ?'':layui.util.toDateString(d.å®¡æ ¸æ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: '计åè·è¸ªå·', title: '计åè·è¸ªå·' } |
| | | , { field: 'è®¡åæ¨¡å¼', title: 'è®¡åæ¨¡å¼' } |
| | | ]] |
| | | }; |
| | | } |
| | | |
| | | |
| | | //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | | function get_Display(sWhere) { |
| | |
| | | sWhere = ""; |
| | | } |
| | | |
| | | //#endregion |
| | | //å®¡æ ¸ |
| | | function set_AuditBill() { |
| | | var CheckStatus = table.checkStatus("mainTable"); |
| | | if (CheckStatus.data.length != 1) { |
| | | return layer.msg("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } |
| | | else { |
| | | if (CheckStatus.data[0].HBillStatus != 1) { |
| | | return layer.msg("å½ååæ®å¤äºä¸è½å®¡æ ¸ç¶æ"); |
| | | } |
| | | else { |
| | | var HInterID = CheckStatus.data[0].hmainid; |
| | | $.ajax({ |
| | | url: GetWEBURL() + "Sc_PPBomBill/DeOrAuditBill" |
| | | , type: "GET" |
| | | , data: { "HInterID": HInterID, "IsAudit": 0, "CurUserName": sessionStorage["HUserName"] } |
| | | , success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | set_ClearBill(); |
| | | }); |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | |
| | | //åå®¡æ ¸ |
| | | function set_DeAuditBill() { |
| | | var CheckStatus = table.checkStatus("mainTable"); |
| | | if (CheckStatus.data.length != 1) { |
| | | return layer.msg("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } |
| | | else { |
| | | if (CheckStatus.data[0].HBillStatus == 1) { |
| | | return layer.msg("å½ååæ®å¤äºæªå®¡æ ¸ç¶æ!"); |
| | | } |
| | | else { |
| | | var HInterID = CheckStatus.data[0].hmainid; |
| | | $.ajax({ |
| | | url: GetWEBURL() + "Sc_PPBomBill/DeOrAuditBill" |
| | | , type: "GET" |
| | | , data: { "HInterID": HInterID, "IsAudit": 1, "CurUserName": sessionStorage["HUserName"] } |
| | | , success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | set_ClearBill(); |
| | | }); |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | //#endregion |
| | | //以䏿¯layui模å |
| | | }); |
| | | |
| New file |
| | |
| | | <!DOCTYPE html> |
| | | <html xmlns="http://www.w3.org/1999/xhtml"> |
| | | <head> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
| | | <title>ç产æç®±å</title> |
| | | <meta name="renderer" content="webkit"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all"> |
| | | </head> |
| | | |
| | | <body> |
| | | <div class="layui-fluid" style="padding:0"> |
| | | <div class="layui-card"> |
| | | <div class="layui-card-body" style="padding: 5px; height:800px;"> |
| | | <form class="layui-form" action="" lay-filter="component-form-group"> |
| | | <div style="background-color:#0085E8;"> |
| | | <span style="color: white;"><i class="layui-icon layui-icon-form"></i>ç产æç®±å</span> |
| | | </div> |
| | | <div class="layui-form-item" style="padding:15px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">åæ¡ç </label> |
| | | </div> |
| | | <div class="layui-col-xs8"> |
| | | <input type="text" name="HBarCode" id="HBarCode" lay-verify="HBarCode" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab layui-col-xs12" lay-filter="tab-ProductlnBill"> |
| | | <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> |
| | | <li lay-id="3" style="padding:1px;">å计信æ¯</li> |
| | | <!--<li lay-id="5">æ¥å¿</li>--> |
| | | </ul> |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-tab-item"> |
| | | <div class="layui-form-item" style="padding:15px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">ææ¡ç </label> |
| | | </div> |
| | | <div class="layui-col-xs8"> |
| | | <input type="text" name="HTBarCode" id="HTBarCode" lay-verify="HTBarCode" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:45px;padding-left:0px;">åæ®å·</label> |
| | | </div> |
| | | <div class="layui-col-xs6"> |
| | | <input type="text" name="HBillNo" id="HBillNo" lay-verify="HBillNo" disabled="disabled" autocomplete="off" class="layui-input mobile"> |
| | | </div> |
| | | <div class="layui-col-xs3"> |
| | | <input type="text" name="HInterID" id="HInterID" lay-verify="HInterID" disabled="disabled" autocomplete="off" class="layui-input mobile"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab-item"> |
| | | <!--<div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs4"> |
| | | <label class="layui-form-label" style="width:40px;padding-left:0px;">æ¡ç </label> |
| | | </div> |
| | | <div class="layui-col-xs8"> |
| | | <input type="text" name="HBarCode" id="HBarCode" lay-verify="HBarCode" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div>--> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <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" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <table class="layui-hide" id="wl-table" lay-filter="wl-table"></table> |
| | | </div> |
| | | <div class="layui-tab-item"> |
| | | <table class="layui-hide" id="mx-table" lay-filter="mx-table"></table> |
| | | </div> |
| | | <div class="layui-tab-item"> |
| | | <table class="layui-hide" id="fj-table-qd" lay-filter="fj-table-qd"></table> |
| | | </div> |
| | | </div> |
| | | <!--<div class="layui-form-item" style="margin-bottom: 20px;"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="Saver">æäº¤</button> |
| | | </div> |
| | | <div class="layui-col-xs3"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdModify">ç¼è¾</button> |
| | | </div> |
| | | <div class="layui-col-xs3"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdDelete">å é¤</button> |
| | | </div> |
| | | <div class="layui-col-xs3"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="Cancel">éåº</button> |
| | | </div> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | <div class="layer-footer" style="z-index: 10; position: fixed; text-align: center; bottom: 0; width:100%; height:50px"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="Saver">æäº¤</button> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdModify">ç¼è¾</button> |
| | | <!-- <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdDelete">å é¤</button>--> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="Cancel">éåº</button> |
| | | </div> |
| | | <div id="" style="display:none;"> |
| | | <audio id="cs" hidden controls> |
| | | <source src="../../video/jingbao.wav" type="audio/ogg"> |
| | | </audio> |
| | | </div> |
| | | <div id="" style="display:none;"> |
| | | <audio id="cs2" hidden controls> |
| | | <source src="../../video/success.wav" type="audio/ogg"> |
| | | </audio> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <script src="../../../layuiadmin/layui/layui.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/json2.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script> |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index' //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'laydate', 'table', 'element'], function () { |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | | , layer = layui.layer |
| | | , table = layui.table |
| | | , form = layui.form |
| | | , element = layui.element; |
| | | |
| | | |
| | | var option = []; |
| | | |
| | | |
| | | //æ¸
空çé¢ new |
| | | |
| | | //表头åå§åèµå¼ï¼æ ¹æ®ç»å½ç¨æ·è·å é»è®¤ä»åºãé¨é¨ãéªæ¶ãä¿ç®¡ãéè¶ç¨æ·ï¼ new |
| | | $("#HWHID").val(sessionStorage["HWHID"]); |
| | | $("#HWHNAME").val(sessionStorage["HWHName"]); |
| | | $("#HStockPlaceID").val(sessionStorage["HSPID"]); |
| | | $("#HStockPlaceName").val(sessionStorage["HSPName"]); |
| | | //$("#HSupID").val(sessionStorage["HSupID"]); |
| | | //$("#HSupName").val(sessionStorage["HSupName"]); |
| | | $("#HDeptID").val(sessionStorage["HDeptID"]); |
| | | $("#HDeptName").val(sessionStorage["HDept"]); |
| | | $("#HSecManagerID").val(sessionStorage["HSecManagerID"]); |
| | | $("#HSecManager").val(sessionStorage["HSecManager"]); |
| | | $("#HKeeperID").val(sessionStorage["HKeeperID"]); |
| | | $("#HKeeper").val(sessionStorage["HKeeper"]); |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | $("#HMaker").hide(); |
| | | $("#HMakerID").hide(); |
| | | $("#HBillerID").val(sessionStorage["HBillerID"]); |
| | | $("#HBillerID").hide(); |
| | | var HSourceFlag = sessionStorage["SourceFlag"]; |
| | | //é»è®¤å¸¦å
¥çä»åºï¼å¦æå¯ç¨ä»ä½åä»ä½ææï¼å¦ææ²¡æå¯ç¨åä»ä½ç°åº¦ new |
| | | |
| | | $("#HBarCode").focus(); |
| | | |
| | | |
| | | |
| | | //åå§åæç»è¡¨æ ¼ |
| | | function set_InitGrid() { |
| | | columns = [ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, fixed: 'left', event: "qwe", width: 100 } |
| | | , { field: 'HQty', title: 'æ°é', width: 150 } |
| | | , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 150 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | , { field: 'HInterID', title: '忮ID', width: 150, hide: true } |
| | | , { field: 'HBilltype', title: 'åæ®ç±»å', width: 150, hide: true } |
| | | , { field: 'Hbarcode', title: 'æ¡ç ç¼å·', width: 150, hide: true } |
| | | , { field: 'HSCWHID', title: 'è°åºä»åºID', width: 150, hide: true } |
| | | , { field: 'HSCSPID', title: 'è°åºä»ä½ID', width: 150, hide: true } |
| | | , { field: 'HAuxPropID', title: 'è¾
å©å±æ§ID', width: 150, hide: true } |
| | | , { field: 'HMTONo', title: 'MTOå·', width: 150, hide: true } |
| | | , { field: 'HMaterID', title: 'ç©æID', width: 150, hide: true } |
| | | ]; |
| | | option = { |
| | | id: 'wl-table' |
| | | , elem: '#wl-table' |
| | | , toolbar: '#toolbarDemo' |
| | | , page: false |
| | | , cellMinWidth: 120 |
| | | , height: 500 |
| | | , cols: [columns] |
| | | , limit: 500 //æ¯é¡µé»è®¤æ¾ç¤ºçæ°é |
| | | , done: function (res, curr, count) { |
| | | } |
| | | }; |
| | | } |
| | | |
| | | //è·ååæ° |
| | | function getUrlVars() { |
| | | var vars = [], hash; |
| | | var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); |
| | | for (var i = 0; i < hashes.length; i++) { |
| | | hash = hashes[i].split('='); |
| | | vars.push(hash[0]); |
| | | vars[hash[0]] = hash[1]; |
| | | } |
| | | return vars; |
| | | } |
| | | |
| | | //夿æ¯å¦ç»å½ æªç»å½åè·³å°ç»å½é¡µ |
| | | if (sessionStorage.login != "login") { |
| | | layer.confirm("ç»å½å¤±æï¼è¯·éæ°ç»å½ï¼", { |
| | | icon: 4, skin: 'layui-layer-lan', title: "温馨æç¤º", closeBtn: 0, btn: ['éæ°ç»å½'] |
| | | }, function () { window.location.href = "../../user/login.html"; }); |
| | | } |
| | | |
| | | var params = getUrlVars(); |
| | | var linterid = params[params[0]]; //ä»åæ°ä¸è·å åæ®å
ç |
| | | var lSourceBillType = params[params[2]]; //ä»åæ®è·å æºåç±»å |
| | | |
| | | function RoadBillMain(linterid)//å 载表头 |
| | | { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetPonderationBill", |
| | | type: "GET", |
| | | data: { "HInterID": linterid }, |
| | | success: function (d) { |
| | | // console.log(d.data); |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | $("#HBillType").val(d.data[0].HSourceBillType); |
| | | $("#HSourceBillNo").val(d.data[0].HSourceBillNo); |
| | | //$("#HWHID").val(d.data[0].HWhID); |
| | | //$("#HStockPlaceID").val(d.data[0].HSPID); |
| | | //$("#HKeeperID").val(d.data[0].HKeeperID); |
| | | //$("#HSecManagerID").val(d.data[0].HSecManagerID); |
| | | HSourceFlag = true; |
| | | } |
| | | }) |
| | | } |
| | | |
| | | |
| | | function RoadBillSub(linterid)//å è½½è¡¨ä½ |
| | | { |
| | | $("#HInterID").val(linterid);//ä¿®æ¹æ¶ä¸»è¡¨ID |
| | | //ç¼è¾å è½½æ°æ® |
| | | var sInterID = $("#HInterID").val(); |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | //, url: 'http://61.130.49.162:9090/WMSAPI///ProductIn/DisBillEntryList_Webs_Json' |
| | | , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , defaultToolbar: [] |
| | | , where: { HBillID: sInterID, HBillType: '1202', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HQty', title: 'æ°é', width: 150 } |
| | | , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 150 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | ]] |
| | | // , data: [linterid] |
| | | // , page: true |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //卿å è½½æºåç±»åå表 new |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | //夿æ¯å¦æ°å¢ |
| | | if (linterid == null || linterid == 0) { |
| | | //è·åæå¤§åæ®å· new |
| | | $("#HInterID").val(""); |
| | | $("#HBillNo").val(""); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | type: "GET", |
| | | data: { "HBillType": '3784' }, |
| | | success: function (d) { |
| | | //console.log(d.data); |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | set_InitGrid(); |
| | | } |
| | | }); |
| | | } |
| | | else {//å¦æä¿®æ¹åèµ°ä¸é¢ new |
| | | RoadBillMain(linterid); |
| | | RoadBillSub(linterid); |
| | | } |
| | | |
| | | |
| | | //è¿å
¥ç©ææç»é¡µç¾ãæ¡ç æ¡ å
æ ç¦ç¹ new |
| | | //if (1 == 2) |
| | | //{ |
| | | // element.tabChange('tab-ProductlnBill', '3'); |
| | | // var pFocus = $("#HBarCode"); |
| | | // pFocus.focus(); |
| | | // pFocus.select(); |
| | | //} |
| | | //else |
| | | //{ |
| | | // element.tabChange('tab-ProductlnBill', '1'); |
| | | // var pFocus = $("#HSourceBillNo"); |
| | | // pFocus.focus(); |
| | | // pFocus.select(); |
| | | //} |
| | | // |
| | | // |
| | | |
| | | //éæ©ä»åº |
| | | form.on('submit(HWHID-BT)', function () {//éæ©ä»åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'ä»åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_WarehouseList.html?Type=HWHID', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | //éæ©ä»ä½ |
| | | form.on('submit(HSpID-BT)', function () {//éæ©ä»ä½ |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'ä»ä½å表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_StockPlaceList.html?HWhID=' + sessionStorage["HWHID"] + '&Type=HSpID', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | //éæ©ä¿ç®¡ |
| | | //form.on('submit(HKeeperID-BT)', function () {//éæ©ä¿ç®¡ |
| | | // layer.open({ |
| | | // type: 2 |
| | | // , area: ['100%', '100%'] |
| | | // , title: 'ä¿ç®¡å表' |
| | | // , shade: 0.6 //é®ç½©éæåº¦ |
| | | // , maxmin: true //å
许å
¨å±æå°å |
| | | // , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | // , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HKeeper', 'yes'] |
| | | // , resize: false |
| | | // , cancel: function () { |
| | | // //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | // } |
| | | // }) |
| | | //}); |
| | | form.on('submit(HKeeperID-BT)', function () {//éæ©ä¿ç®¡ |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'èåå表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../PublicPage/UserInformation.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HKeeper").val(checkStatus.data[0].HName); |
| | | $("#HKeeperID").val(checkStatus.data[0].HItemID); |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | }); |
| | | |
| | | |
| | | //éæ©éªæ¶ |
| | | //form.on('submit(HSecManagerID-BT)', function (data) {//éæ©éªæ¶ |
| | | // var sMainStr = JSON.stringify(data.field); |
| | | // layer.open({ |
| | | // type: 2 |
| | | // , area: ['100%', '100%'] |
| | | // , title: 'éªæ¶å表' |
| | | // , shade: 0.6 //é®ç½©éæåº¦ |
| | | // , maxmin: true //å
许å
¨å±æå°å |
| | | // , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | // , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HSecManager', 'yes'] |
| | | // , resize: false |
| | | // , cancel: function () { |
| | | // //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | // } |
| | | // }) |
| | | //}); |
| | | |
| | | form.on('submit(HSecManagerID-BT)', function (data) {//éæ©éªæ¶ |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'èåå表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../PublicPage/UserInformation.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HSecManager").val(checkStatus.data[0].HName); |
| | | $("#HSecManagerID").val(checkStatus.data[0].HItemID); |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | }); |
| | | |
| | | //éæ©é¨é¨ |
| | | form.on('submit(HDeptID-BT)', function () {//éæ©é¨é¨ |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'é¨é¨å表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_DepartmentList.html', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | //ç¼è¾ |
| | | form.on('submit(cmdModify)', function () {//ç¼è¾ |
| | | var sSubStr = table.cache['wl-table']; |
| | | //if (AllowLoadData(sSubStr) != false) {//é空éªè¯ |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'æç»å表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/å
Œ
±é¡µé¢/Kf_BarCodeEditDlg.html?table=' + JSON.stringify(sSubStr), 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | }) |
| | | // } |
| | | }); |
| | | |
| | | form.on('submit(Cancel)', function () { |
| | | //sessionStorage["SourceFlag"] = false; |
| | | parent.location.href = "../../../views/index.html" |
| | | //window.close();//å
³éå½å页 |
| | | }) |
| | | |
| | | //å é¤ |
| | | form.on('submit(cmdDelete)', function () {//å é¤ |
| | | var checkStatus = table.checkStatus('wl-table') |
| | | , data = checkStatus.data; |
| | | var sInterID = $('#HInterID').val() |
| | | var sMaterID = data[0].HMaterID |
| | | var sBillType = '1202' |
| | | var sAuxPropID = data[0].HAuxPropID |
| | | //var sMTONo = data[0].HMTONo |
| | | var sMTONo = '' |
| | | var sSourceInterID = data[0].HSourceInterID |
| | | var sSourceEntryID = data[0].HSourceEntryID |
| | | var HBillNo = $("#HBillNo").val() |
| | | var sMouldManagerCtl = 'N' |
| | | var sFIFOCtl = 'N' |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | //url: "http://61.130.49.162:9090/WMSAPI///ProductIn/Delete_Json", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | url: GetWEBURL() + "/ProductIn/Delete_Json_AN", |
| | | async: true, |
| | | data: { "HInterID": sInterID, "HMaterID": sMaterID, "HAuxPropID": sAuxPropID, "HMTONo": sMTONo, "HSourceInterID": sSourceInterID, "HSourceEntryID": sSourceEntryID, "sHBillType": sBillType, }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäº |
| | | // table.render({ |
| | | // elem: '#wl-table' |
| | | // //, url: 'http://61.130.49.162:9090/WMSAPI///ProductIn/DisBillEntryList_Mate_Webs_Json' |
| | | // , url: GetWEBURL() + '/ProductIn/DisPlayBarCodeList_Json' |
| | | //, cellMinWidth: 80 |
| | | //, toolbar: '#toolbarDemo' |
| | | // , where: { HBillID: sInterID, HBillNo: HBillNo, HBillType: '1202', sMouldManagerCtl: sMouldManagerCtl, sFIFOCtl: sFIFOCtl} |
| | | //, cols: [[ |
| | | // { type: 'radio' } |
| | | // , { field: 'HQty', title: 'æ°é', width: 80 } |
| | | // , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 80 } |
| | | // , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 100 } |
| | | // , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | // , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 100 } |
| | | // , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 100 } |
| | | // , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 100 } |
| | | // , { field: 'HSourceBillNo', title: 'æºååå·', width: 100 } |
| | | // , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 100 } |
| | | // , { field: 'HAuxPropID', title: 'è¾
å©å±æ§', width: 100 } |
| | | // , { field: 'HMTONo', title: '计åè·è¸ªå·', width: 100 } |
| | | // , { field: 'HMaterID', title: 'ç©æID', width: 100 } |
| | | //]] |
| | | //, height: 500 |
| | | // }) |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | //, url: 'http://61.130.49.162:9090/WMSAPI///ProductIn/DisBillEntryList_Webs_Json' |
| | | , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , defaultToolbar: [] |
| | | , where: { HBillID: sInterID, HBillType: '1202', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HQty', title: 'æ°é', width: 150 } |
| | | , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 150 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | ]] |
| | | // , data: [linterid] |
| | | // , page: true |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //æäº¤ |
| | | form.on('submit(Saver)', function (data) {//æäº¤ |
| | | //debugger; |
| | | if ($("#HExplanation").val() == "") { |
| | | if ($("#HWHNAME").val() == "宽å¹
æåä»NEW" || $("#HWHNAME").val() == "æ ·æ¬ä»NEW") { |
| | | $("#HWHNAME").val(""); |
| | | $("#HWHID").val(""); |
| | | layer.msg("请æ«MESåºä½ç ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | else |
| | | { |
| | | $("#HExplanation").val($("#HWHNAME").val()); |
| | | } |
| | | } |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = table.cache['wl-table']; |
| | | //var sSourceType = $("#HBillType").val(); |
| | | var sSourceType = "3711"; |
| | | if (AllowLoadData(sSubStr) != false)//é空éªè¯ |
| | | { |
| | | layer.load(3); |
| | | $.ajax( |
| | | { |
| | | type: "POST", |
| | | //url: "http://61.130.49.162:9090/WMSAPI///ProductIn/set_SaveProductInBill_Json", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | url: GetWEBURL() + "/ProductIn/set_SaveProductInBill_Json", |
| | | async: true, |
| | | data: { "oMain": sMainStr }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäº |
| | | layer.confirm("çæäº§åå
¥åºå" + data.Message + $("#HBillNo").val(), { |
| | | icon: 1, skin: 'layui-layer-lan', title: "温馨æç¤º", closeBtn: 0, btn: ['æ°å¢'], |
| | | btn2: function () { |
| | | //parent.layui.admin.events.closeThisTabs();å
³éé¡µç¾ |
| | | //window.close();//å
³é页é¢ï¼æµè§å¨ææï¼PDAæ æ |
| | | parent.location.href = "../../../views/index.html" |
| | | }//å
³é |
| | | }, function () { window.location.reload(); });//æ°å¢ |
| | | } |
| | | else { |
| | | layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | layer.msg("é误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | return false; |
| | | } |
| | | }); |
| | | |
| | | //çå¬æäº¤ |
| | | form.verify({ |
| | | numberOrEmpty: function (value, item) { |
| | | // if (value != '') { |
| | | if (!/^\d+$/.test(value)) { |
| | | return 'ä¸è½ä¸ºç©ºææ°åæè
0'; |
| | | } |
| | | //} |
| | | } |
| | | }); |
| | | |
| | | //æ«æ¡ç |
| | | $('#HBarCode').on('keydown', function (event) { //æ«æ¡ç |
| | | var sOldBarCode = $('#HBarCode').val() |
| | | var HDeleteFlag = sOldBarCode.substring(0, 1); |
| | | var sBarCode = sOldBarCode.slice(1); |
| | | var sSubStr = table.cache['wl-table']; |
| | | var sInterID = $("#HInterID").val() |
| | | var sBillNo = $("#HBillNo").val() |
| | | var sQty = $("#HQty").val() |
| | | var sHBillType = $("#HBillType").val() //æºåç±»å |
| | | var sBillType = '1202' |
| | | var sHWHID = $("#HWHID").val() |
| | | var sHSPID = $("#HStockPlaceID").val() |
| | | var sSourceBillNo = $("#HSourceBillNo").val() |
| | | if (event.keyCode == 13) { |
| | | if (HDeleteFlag == "*") |
| | | { |
| | | if (sBarCode != "") { |
| | | $('#HBarCode').val(""); |
| | | } |
| | | var sBarCode = sOldBarCode.slice(1); |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/ProductIn/Delete_Json", |
| | | async: true, |
| | | data: { "HInterID": sInterID, "HBillNo": sBillNo, "HBillType": sBillType, "HBarCode": sBarCode}, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäº |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | //, url: 'http://61.130.49.162:9090/WMSAPI///ProductIn/DisBillEntryList_Webs_Json' |
| | | , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , defaultToolbar: [] |
| | | , where: { HBillID: sInterID, HBillType: '1202', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HQty', title: 'æ°é', width: 150 } |
| | | , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 150 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | ]] |
| | | // , data: [linterid] |
| | | // , page: true |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | } |
| | | else { |
| | | var sBarCode = $('#HBarCode').val() |
| | | //var Flag = sessionStorage["SourceFlag"]; |
| | | if (sQty == "") { |
| | | sQty = 0; |
| | | } |
| | | //夿æ¡ç æ¯å¦ä¸ºç©º new |
| | | if (sBarCode == '') { |
| | | playSound(); |
| | | layer.msg("æ¡ç 为空ï¼ä¸è½æ«æï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | if (sBarCode != "") { |
| | | $('#HBarCode').val(""); |
| | | } |
| | | if (sQty != "") { |
| | | $('#HQty').val(""); |
| | | } |
| | | if (sHWHID == "184154") { |
| | | if (sHSPID == "0") { |
| | | layer.msg("ä»ä½ä¸ºç©ºï¼è¯·éæ©ä»ä½ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | } |
| | | //if (AllowLoadData(sSubStr, 'HBarCode') != false) {//é空éªè¯ |
| | | $.ajax({ |
| | | //url: "http://61.130.49.162:9090/WMSAPI///ProductIn/get_CheckTypeByBarCode_Json", |
| | | url: GetWEBURL() + "/ProductIn/get_CheckTypeByBarCode_Json", |
| | | type: "GET", |
| | | data: { "sCode": sBarCode, "sInterID": sInterID, "sBillNo": sBillNo, "sBillType": sBillType, "sMaker": sessionStorage["HUserName"], "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": HSourceFlag, "sSourceBillNo": sSourceBillNo, "sSourceType": sHBillType, "HOWNERID": sessionStorage["OrganizationID"] }, |
| | | success: function (result) { |
| | | //debugger; |
| | | playSound1(); |
| | | if (result.count == 1) { |
| | | if (result.data.HBarType == 'ä»åºæ¡ç ') { |
| | | $("#HWHNAME").val(result.data.HWhName); |
| | | $("#HWHID").val(result.data.HWhID); |
| | | $("#HStockPlaceName").val(""); |
| | | $("#HNote").val(";ä¸é®æ«ç ä»åºæ¡ç "); |
| | | element.tabChange('tab-ProductlnBill', '2'); //è·³è½¬é¡µç¾ |
| | | } |
| | | else if (result.data.HBarType == 'ä»ä½æ¡ç ') { |
| | | $("#HStockPlaceName").val(result.data.HSPName); |
| | | $("#HStockPlaceID").val(result.data.HSPID); |
| | | $("#HWHNAME").val(result.data.HWhName); |
| | | $("#HWHID").val(result.data.HWhID); |
| | | $("#HNote").val(";ä¸é®æ«ç ä»ä½æ¡ç "); |
| | | element.tabChange('tab-ProductlnBill', '2');//è·³è½¬é¡µç¾ |
| | | } |
| | | else if (result.data.HBarType == 'é¨é¨æ¡ç ') { |
| | | $("#HDeptName").val(result.data.HDeptName); |
| | | $("#HDeptID").val(result.data.HDeptID); |
| | | $("#HNote").val(";ä¸é®æ«ç é¨é¨æ¡ç "); |
| | | element.tabChange('tab-ProductlnBill', '2');//è·³è½¬é¡µç¾ |
| | | } |
| | | else if (result.data.HBarType == 'æºåæ¡ç ') { |
| | | $("#HSupName").val(result.data.HSupName); |
| | | $("#HSupID").val(result.data.HSupID); |
| | | $("#HDeptName").val(result.data.HDeptName); |
| | | $("#HDeptID").val(result.data.HDeptID); |
| | | $("#HSourceBillNo").val(result.data.HSourceBillNo); |
| | | HSourceFlag = true; |
| | | //è·åæºåç±»åãæºååå· |
| | | //if (result.data.HSourceBillType == "3711") { |
| | | // $("#HBillType").val("3711"); |
| | | //} |
| | | //else { |
| | | // $("#HBillType").val("-1"); |
| | | //} |
| | | $("#HNote").val(";ä¸é®æ«ç æºåæ¡ç "); |
| | | element.tabChange('tab-ProductlnBill', '3'); |
| | | } |
| | | else { |
| | | if (HSourceFlag == "true") { |
| | | element.tabChange('tab-ProductlnBill', '3'); |
| | | } |
| | | else { |
| | | $("#HSupName").val(result.data.HSupName); |
| | | $("#HSupID").val(result.data.HSupID); |
| | | //$("#HDeptName").val(result.data.HDept); |
| | | //$("#HDeptID").val(result.data.HDeptID); |
| | | $("#HSourceBillNo").val(result.data.HSourceBillNo); |
| | | HSourceFlag = true; |
| | | //è·åæºåç±»åãæºååå· |
| | | //if (result.data.HSourceBillType == "3711") { |
| | | // $("#HBillType").val("3711"); |
| | | |
| | | //} |
| | | |
| | | //else { |
| | | // $("#HBillType").val("-1"); |
| | | //} |
| | | $("#HNote").val(";ç©ææ¡ç "); |
| | | element.tabChange('tab-ProductlnBill', '3'); |
| | | } |
| | | } |
| | | //$("#HSupID").val(result.data.HSupID); |
| | | //$("#HSupName").val(result.data.HSupName); |
| | | //$("#HDeptID").val(result.data.HDeptID); |
| | | //$("#HDeptName").val(result.data.HDeptName); |
| | | layer.load(3) |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | //, url: 'http://61.130.49.162:9090/WMSAPI///ProductIn/DisBillEntryList_Webs_Json' |
| | | , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , defaultToolbar: [] |
| | | , where: { HBillID: sInterID, HBillType: '1202', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HQty', title: 'æ°é', width: 150 } |
| | | , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 150 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | ]] |
| | | // , data: [linterid] |
| | | // , page: true |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | } |
| | | else { |
| | | playSound(); |
| | | layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | playSound(); |
| | | layer.msg("æ¥å£è¯·æ±å¼å¸¸:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | console.log(err); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | |
| | | |
| | | function playSound() { |
| | | console.log("playSound"); |
| | | //var audio = document.getElementById("cs"); |
| | | //$("appendAut").html(""); |
| | | //if (audio == null) |
| | | //$("appendAut").append('<audio id="cs" hidden controls> <source src = "../../video/jingbao.wav" type = "audio/ogg"> </audio >'); |
| | | //$("appendAut").attr("src","../../video/jingbao.wav") |
| | | var audio = document.getElementById("cs"); |
| | | audio.play(); |
| | | } |
| | | |
| | | function playSound1() { |
| | | console.log("playSound1"); |
| | | //var audio = document.getElementById("cs"); |
| | | //$("appendAut").html(""); |
| | | //if (audio == null) |
| | | //$("appendAut").append('<audio id="cs" hidden controls> <source src = "../../video/success.wav" type = "audio/ogg"> </audio >'); |
| | | //$("appendAut").attr("src", "../../video/success.wav") |
| | | var audio = document.getElementById("cs2"); |
| | | audio.play(); |
| | | } |
| | | |
| | | //æ«æºå |
| | | $('#HTBarCode').on('keydown', function (event) { //æ«æºå |
| | | var HTBarCode = $('#HTBarCode').val() |
| | | var sInterID = $("#HInterID").val() |
| | | var sBillNo = $("#HBillNo").val() |
| | | var HOrgID = sessionStorage["OrganizationID"] |
| | | var sMaker = sessionStorage["HUserName"] |
| | | if (event.keyCode == 13) { |
| | | //å¤æææ¬æ¡æ¯å¦ææ°æ® new |
| | | if (HTBarCode == '') { |
| | | playSound(); |
| | | layer.msg("ææ¡ç 为空ï¼ä¸è½æ«æï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | if (HTBarCode != "") { |
| | | $('#HTBarCode').val(""); |
| | | } |
| | | // |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/PackSplitBill/SetPackBarCode_Webs", |
| | | type: "GET", |
| | | data: { "sInterID": sInterID, "sBillNo": sBillNo, "sBillType": '3784', "HTBarCode": HTBarCode, "sMaker": sMaker, "HOrgID": HOrgID }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | $('#HTBarCode').val(result.data.HSourceBillNo); |
| | | $("#HTBarCode").attr("disabled", "true"); |
| | | |
| | | layer.load(3) |
| | | element.tabChange('tab-ProductlnBill', '2'); |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | //, url: 'http://61.130.49.162:9090/WMSAPI///ProductIn/DisBillEntryList_Webs_Json' |
| | | , url: GetWEBURL() + '/PackSplitBill/GetBillEntry_TmpList_Pack' |
| | | , toolbar: '#toolbarDemo' |
| | | , defaultToolbar: [] |
| | | , where: { HBillID: sInterID, HBillType: '3784', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HQty', title: 'æ°é', width: 150 } |
| | | , { field: 'HBarCode', title: 'åæ¡ç ç¼å·', width: 150 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | , { field: 'HMaterID', title: 'ç©æID', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HBarCodeQty', title: 'æ¡ç æ°é', width: 150 } |
| | | ]] |
| | | // , data: [linterid] |
| | | // , page: true |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | //æ«ä»ä½ |
| | | $('#HStockPlaceName').on('keydown', function (event) { //æ«ä»ä½ |
| | | var HBarCode = $('#HStockPlaceName').val() |
| | | if (event.keyCode == 13) { |
| | | //å¤æææ¬æ¡æ¯å¦ææ°æ® new |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/LookingFor/getSpName_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].HWHID); |
| | | $("#HWHNAME").val(result.data[0].HWhName); |
| | | element.tabChange('tab-ProductlnBill', '2'); |
| | | } |
| | | else { |
| | | // $("#verifycode").click(); |
| | | //layer.msg(result.Message, { icon: 5 }); |
| | | layer.msg(result.Message, { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | //æ«MESä»ä½ |
| | | $('#HMESSPName').on('keydown', function (event) { //æ«ä»ä½ |
| | | var HBarCode = $('#HMESSPName').val(); |
| | | if (event.keyCode == 13) { |
| | | //å¤æææ¬æ¡æ¯å¦ææ°æ® new |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/LookingFor/getSpName_Json", |
| | | type: "GET", |
| | | data: { "HBarCode": HBarCode }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | $("#HMESSPID").val(result.data[0].HWHID); |
| | | $("#HMESSPName").val(result.data[0].HWhName + "-" + result.data[0].HName); |
| | | $("#HExplanation").val(result.data[0].HName + "-" + result.data[0].HWhName); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/LookingFor/GetSpNameMES_Json", |
| | | type: "GET", |
| | | data: { "HERPWHID": result.data[0].HWHID }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | $("#HWHID").val(result.data[0].HMESWHID); |
| | | $("#HWHNAME").val(result.data[0].HMESWHNAME); |
| | | $("#HMESSPName").attr("readonly", "readonly");//MESä»ä½åªè¯»HExplanation |
| | | $("#HMESSPName").css("background-color", "#efefef4d"); |
| | | } |
| | | else { |
| | | layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | //å·æ°æç»é¡µç¾ |
| | | table.render({ |
| | | elem: '#mx-table' |
| | | // , url: 'http://61.130.49.162:9090/WMSAPI///Web/GetHBarCodeShowBillSub' |
| | | //, toolbar: '#toolbarDemo' |
| | | // , where: { sMsg: linterid, sMsg2: lentryid } |
| | | , cols: [[ |
| | | , { field: 'HMaterID', title: 'ç©æID', width: 100, hide: true } |
| | | ]] |
| | | , page: true |
| | | , height: 500 |
| | | , done: function () { |
| | | } |
| | | }); |
| | | }); |
| | | function GetHWHValue(obj) //è¿åè°å
¥ä»åº |
| | | { |
| | | $("#HWHNAME").val(obj[0].HName); |
| | | //sessionStorage["HWHID"] = obj[0].HItemID; |
| | | $("#HWHID").val(obj[0].HItemID); |
| | | } |
| | | function GetHSpValue(obj) { //è¿åè°å
¥ä»ä½ |
| | | $("#HStockPlaceName").val(obj[0].HName); |
| | | $("#HStockPlaceID").val(obj[0].HItemID); |
| | | } |
| | | function GetHKeeperValue(obj) { //è¿åä¿ç®¡ |
| | | $("#HKeeper").val(obj[0].HName); |
| | | $("#HKeeperID").val(obj[0].HItemID); |
| | | } |
| | | function GetHSecManagerValue(obj) { //è¿åéªæ¶ |
| | | $("#HSecManager").val(obj[0].HName); |
| | | $("#HSecManagerID").val(obj[0].HItemID); |
| | | } |
| | | function GetHDeptNameValue(obj) { //è¿åé¨é¨ |
| | | $("#HDeptName").val(obj[0].HName); |
| | | $("#HDeptID").val(obj[0].HItemID); |
| | | } |
| | | function AllowLoadData(sSubStr) { //é空éªè¯ |
| | | //if ($("#HSourceBillNo").val() == '') { |
| | | // layer.msg("请å
æ«æºå!", { icon: 5 }); |
| | | // return false; |
| | | //} |
| | | if($("#HDeptName").val()=='') |
| | | { |
| | | layer.msg("é¨é¨æ²¡æéæ©", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | if ($("#HSecManager").val() == '') { |
| | | layer.msg("éªæ¶äººæ²¡æéæ©", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | if ($("#HKeeper").val() == '') { |
| | | layer.msg("ä¿ç®¡äººæ²¡æéæ©", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | //if ($("#HWHNAME").val() == '') { |
| | | // layer.msg("ä»åºæ²¡æéæ©!", { icon: 5 }); |
| | | // return false; |
| | | //} |
| | | if ($("#HBillNo").val() == '') { |
| | | layer.msg("é误çåæ®å·", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | if ($("#HInterID").val() == '') { |
| | | layer.msg("é误çå
ç ", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | if (typeof (sSubStr) == "undefined") |
| | | { |
| | | layer.msg("没æç©ææç»è®°å½", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | if (!typeof (sSubStr) == "undefined") { |
| | | //for (var i = 0; i <= sSubStr.length - 1; i++) { //夿æ«ç æ°éä¸è½å¤§äºåºæ¶æ°é |
| | | // if (parseFloat(sSubStr[i].HQtyMust) > 0) { |
| | | // if (parseFloat(sSubStr[i].HQty) > parseFloat(sSubStr[i].HQtyMust)) |
| | | // { |
| | | // layer.msg("æ°éä¸è½å¤§äºåºæ¶æ°é", { icon: 5, btn: ['ç¡®å®'], time: 100000, offset: 't' }); |
| | | // return false; |
| | | // } |
| | | // } |
| | | //} |
| | | for (var i = 0; i <= sSubStr.length - 1; i++) { //夿æ«ç æ°éä¸è½ä¸º0 |
| | | if (parseFloat(sSubStr[i].HQty) > 0) { |
| | | s = 1; |
| | | } |
| | | } |
| | | if (s == 0) { |
| | | layer.msg("产åå
¥åºè®°å½æªæ«ç ", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | return true; |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | </body> |
| | | </html> |
| | |
| | | <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all"> |
| | | <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | <script src="../../../layuiadmin/layui/layui.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/json2.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | <style> |
| | | .main-btn { /*头é¨ä¸»æé®*/ |
| | | padding: 0 2px; /*è°æ´æé®å·¦å³ç©ºé大å°*/ |
| | |
| | | .btn-title { |
| | | font-size: 16px; |
| | | } |
| | | /*.table-select { |
| | | /* 鲿¢ä¸ææ¡ç䏿å表被éè---å¿
须设置--- */ |
| | | .layui-table-cell { |
| | | overflow: visible !important; |
| | | } |
| | | /* 使å¾ä¸ææ¡ä¸åå
æ ¼å好åé */ |
| | | td .layui-form-select { |
| | | margin-top: -10px; |
| | | margin-left: -15px; |
| | | margin-right: -15px; |
| | | }*/ |
| | | } |
| | | |
| | | .layui-form-item .layui-inline { |
| | | margin-top: 5px; |
| | | margin-bottom: 5px; |
| | | margin-right: 0px; |
| | | } |
| | | |
| | | .layui-form-label { |
| | | width: 25%; |
| | | } |
| | | </style> |
| | | |
| | | </head> |
| | | <body> |
| | | <div class="layui-fluid" style="padding: 0;"> |
| | |
| | | <input type="text" class="layui-input" lay-verify="HName" name="HName" id="HName"> |
| | | </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="HPicNumVer" name="HPicNumVer" id="HPicNumVer"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">产ååç§°</label> |
| | | <label class="layui-form-label" style="width: 75px;">产ååç§°</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HMaterName" lay-verify="HMaterName" id="HMaterName" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="HMaterName" lay-verify="HMaterName" id="HMaterName" style="background-color:#efefef4d;width:90%" readonly> |
| | | <input type="hidden" name="HMaterID" id="HMaterID" lay-verify="HMaterID" 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="HMaterModel" id="HMaterModel" onmouseover="this.title=this.value" style="background-color:#efefef4d;" readonly> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 65px;">è§æ ¼åå·</label> |
| | | <div class="layui-input-block" style="margin-left: 105px;"> |
| | | <input type="text" class="layui-input" name="HMaterModel" id="HMaterModel" onmouseover="this.title=this.value" readonly> |
| | | </div> |
| | | </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="HPicNumAssemble" id="HPicNumAssemble" onmouseover="this.title=this.value"> |
| | | </div> |
| | | </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="hidden" class="layui-input" lay-verify="HRoutingGroupID" name="HRoutingGroupID" id="HRoutingGroupID" value="" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" lay-verify="HRoutingGroupID" name="HRoutingGroupID" id="HRoutingGroupID" value="0" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="text" class="layui-input" lay-verify="HRoutingGroupIDName" name="HRoutingGroupIDName" id="HRoutingGroupIDName" value="" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnRoutingGroup" id="btnRoutingGroup" style="padding: 0 10px;float: left;margin-right: 3px;background-color:gainsboro;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i> |
| | |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æ¶é´åä½</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;width: 182px;"> |
| | | <div class="layui-input-block" style="margin-left: 120px;width: 172px;"> |
| | | <select name="HMainTimeUnit" lay-verify="HMainTimeUnit" id="HMainTimeUnit"> |
| | | <option value="å°æ¶">å°æ¶</option> |
| | | <option value="天">天</option> |
| | | </select> |
| | | </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="HMaterTexture" lay-verify="HMaterTexture" id="HMaterTexture" value="" onmouseover="this.title=this.value"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 65px;">æåç¼å·</label> |
| | | <div class="layui-input-block" style="margin-left: 100px;"> |
| | | <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="HMainPrice" id="HMainPrice" lay-verify="HMainPrice" value="0"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 65px;">çæ¬</label> |
| | | <div class="layui-input-block" style="margin-left: 105px;"> |
| | | <input type="text" class="layui-input" name="HVerNum" lay-verify="HVerNum" id="HVerNum" value="" onmouseover="this.title=this.value"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table> |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container"> |
| | |
| | | <!--<a class="layui-btn layui-btn-xs" lay-event="edit">ç¼è¾</a>--> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">å é¤</a> |
| | | </script> |
| | | <script type="text/html" id="HSupColor"> |
| | | {{# if(d.HSupFlag === "true"){ }} |
| | | <span style="color: white;background-color:#5FB878;">{{ d.HSupFlag }}</span> |
| | | {{# } else { }} |
| | | <span style="color: white;background-color:red;">{{ d.HSupFlag }}</span> |
| | | {{# } }} |
| | | |
| | | <!--è¡ä¸æéæ©(å·¥åºç±»å)--> |
| | | <script type="text/html" id="HProcType"> |
| | | <select name="HProcType" lay-filter="HProcType" id="HProcType{{d.LAY_TABLE_INDEX+1}}"> |
| | | <option value="主工åº">主工åº</option> |
| | | <option value="è¾
å©å·¥åº">è¾
å©å·¥åº</option> |
| | | </select> |
| | | </script> |
| | | <script src="../../../layuiadmin/layui/layui.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/json2.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | |
| | | <!--å¤éæ¡ å§å¤åå©--> |
| | | <script type="text/html" id="HSupFlag"> |
| | | <div class="layui-input-block" style="margin-left: 20px;"> |
| | | <input type="checkbox" name="HSupFlag" lay-filter="HSupFlag" id="HSupFlag{{d.LAY_TABLE_INDEX+1}}" lay-skin="primary"> |
| | | </div> |
| | | </script> |
| | | |
| | | <!--å¤éæ¡ ä¸éæµè½¬å·¥åº--> |
| | | <script type="text/html" id="HNextProcFlag"> |
| | | <div class="layui-input-block" style="margin-left: 20px;"> |
| | | <input type="checkbox" name="HNextProcFlag" lay-filter="HNextProcFlag" id="HNextProcFlag{{d.LAY_TABLE_INDEX+1}}" lay-skin="primary"> |
| | | </div> |
| | | </script> |
| | | |
| | | <!--å¤éæ¡ æµè½¬å·¥åº--> |
| | | <script type="text/html" id="HFlowProc"> |
| | | <div class="layui-input-block" style="margin-left: 20px;"> |
| | | <input type="checkbox" name="HFlowProc" lay-filter="HFlowProc" id="HFlowProc{{d.LAY_TABLE_INDEX+1}}" lay-skin="primary"> |
| | | </div> |
| | | </script> |
| | | |
| | | <!--å¤éæ¡ æ åå®é¢--> |
| | | <script type="text/html" id="HStdFlag"> |
| | | <div class="layui-input-block" style="margin-left: 20px;"> |
| | | <input type="checkbox" name="HStdFlag" lay-filter="HStdFlag" id="HStdFlag{{d.LAY_TABLE_INDEX+1}}" lay-skin="primary"> |
| | | </div> |
| | | </script> |
| | | |
| | | <!--å¤éæ¡ èªå¨ç§»è½¬--> |
| | | <script type="text/html" id="HAutoTrunFlag"> |
| | | <div class="layui-input-block" style="margin-left: 20px;"> |
| | | <input type="checkbox" name="HAutoTrunFlag" lay-filter="HAutoTrunFlag" id="HAutoTrunFlag{{d.LAY_TABLE_INDEX+1}}" lay-skin="primary"> |
| | | </div> |
| | | </script> |
| | | |
| | | <script> |
| | | |
| | | layui.config({ |
| | |
| | | |
| | | //åå§è¡¨æ ¼æ°æ® |
| | | var rowdata = [{ |
| | | "HProcNo": "", "HProcID": "0", "HSupID": "0", "HSupFlag": "false", "HWorkQty": 0, "HPassRate": 0, "HRemark": "" |
| | | "HProcNo": "", "HProcID_S": 0, "HProcType": "主工åº", "HCenterID_S": 0, "HCenterID_SName": "" |
| | | , "HWorkQty_S": 0, "HSubStdEmpQty_S": 0, "HMouldNo": "", "HChangeMould": 0, "HPackStd": "" |
| | | , "HPack": "", "HPutArea": "", "HMyWorkDays": 0, "HMyFixWorkDays": 0, "å·¥åº": "" |
| | | , "HProcID": 0, "å·¥ä½ä¸å¿ä»£ç ": "", "HCenterID": 0, "å·¥ä½ä¸å¿": "", "HSupID": 0 |
| | | , "ä¾åºå代ç ": "", "ä¾åºå": "", "HSupFlag": false, "HTimeUnit": "", "HUnitTime": 0 |
| | | , "HWorkQty": 0, "HPassRate": 0, "HOverRate": 0, "HReadyTime": 0, "HQueueTime": 0 |
| | | , "HMoveTime": 0, "HNextProcFlag": false, "HFlowProc": false, "HSubStdEmpQty": 0, "HSubCanUseSourceQty": 0 |
| | | , "HFixPrice": 0, "HProcPrice": 0, "HBadPrice": 0, "HWasterPrice": 0, "HStdFlag": false |
| | | , "HBeginDayQty": 0, "HBeginFixQty": 0, "HFixWorkDays": 0, "HTrunWorkDays": 0, "HReadyTimes": 0 |
| | | , "HICMOReadyTimes": 0, "HAutoTrunFlag": false, "HTechnologyParameter": "", "HPicNum": "", "HProcCheckNote": "" |
| | | , "HProcWorkNum": "" |
| | | }]; |
| | | |
| | | //#endregion |
| | |
| | | |
| | | //夿æ¯å¦æ°å¢ |
| | | if (linterid == null || linterid == 0) { |
| | | linteridSub = -1; |
| | | OperationType = 1; |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | type: "GET", |
| | |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , limit: 500 //æ¯é¡µé»è®¤æ¾ç¤ºçæ°é |
| | | , cellMinWidth: 90 |
| | | , cellMinWidth: 120 |
| | | , height: 400 |
| | | , cols: [[ //表头 |
| | | { type: 'checkbox', totalRowText: 'å计è¡' } |
| | | , { type: 'numbers', title: 'åºå·', totalRow: true } |
| | | , { field: 'HProcNo', title: 'æµæ°´å·', edit: 'text' } |
| | | , { field: 'å·¥åº', title: 'å·¥åº', edit: 'text' } |
| | | , { field: 'HProcID', title: 'å·¥åºID' }//, hide: true |
| | | , { field: 'å·¥ä½ä¸å¿ä»£ç ', title: 'å·¥ä½ä¸å¿ä»£ç ', edit: 'text', width: 115 } |
| | | , { field: 'å·¥ä½ä¸å¿', title: 'å·¥ä½ä¸å¿', edit: 'text' } |
| | | , { field: 'HSupID', title: 'ä¾åºåID' } |
| | | , { field: 'ä¾åºå代ç ', title: 'ä¾åºå代ç ', edit: 'text', width: 110 } |
| | | , { field: 'ä¾åºå', title: 'ä¾åºå', edit: 'text' } |
| | | , { field: 'HSupFlag', title: 'å¤åæ è®°', templet: '#HSupColor', event: "HSupFlagEvent" } |
| | | , { field: 'HWorkQty', title: 'å å·¥æ°é', edit: 'text' } |
| | | , { field: 'HPassRate', title: 'è¯ç', edit: 'text' } |
| | | , { field: 'HRemark', 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: 'HChangeMould', title: 'æ¢æ¨¡æ¶é´', edit: 'text' } |
| | | , { field: 'HPackStd', title: 'å¨è½¬ç®±æ å', edit: 'text' } |
| | | , { field: 'HPack', title: 'å¨è½¬ç®±', edit: 'text' } |
| | | , { field: 'HPutArea', title: 'ææ¾åº', edit: 'text' } |
| | | , { field: 'HMyWorkDays', title: 'çäº§å¨æ', edit: 'text' } |
| | | , { field: 'HMyFixWorkDays', title: 'åºå®ç产天æ°', edit: 'text' } |
| | | , { field: 'å·¥åº', title: 'å·¥åº', edit: 'text', event: "CheckHProcID" }//f7 |
| | | , { 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: 'HTimeUnit', title: 'æ¶é´åä½', edit: 'text' } |
| | | , { field: 'HUnitTime', title: 'è¿è¡æ¶é´', edit: 'text' } |
| | | , { field: 'HWorkQty', title: 'å å·¥æ°é', edit: 'text' }//é»è®¤ |
| | | , { field: 'HPassRate', title: 'è¯ç', edit: 'text' }//é»è®¤ |
| | | , { field: 'HOverRate', title: 'è¶
颿¯ä¾', edit: 'text' } |
| | | , { field: 'HReadyTime', title: 'å夿¶é´', edit: 'text' } |
| | | , { field: 'HQueueTime', title: 'æéæ¶é´', edit: 'text' } |
| | | , { field: 'HMoveTime', title: '转移æ¶é´', edit: 'text' } |
| | | , { field: 'HNextProcFlag', title: 'ä¸éæµè½¬å·¥åº', templet: "#HNextProcFlag" }//chenbox |
| | | , { field: 'HFlowProc', title: 'æµè½¬å·¥åº', templet: "#HFlowProc" }//chenbox |
| | | , { field: 'HSubStdEmpQty', title: 'æ å人æ°', edit: 'text' } |
| | | , { field: 'HSubCanUseSourceQty', title: '坿ä½è®¾å¤æ°', edit: 'text' } |
| | | , { field: 'HFixPrice', title: 'ç产å®é¢', edit: 'text' }//é»è®¤ |
| | | , { field: 'HProcPrice', title: 'å·¥åºå·¥ä»·', edit: 'text' }//é»è®¤ |
| | | , { field: 'HBadPrice', title: 'ä¸åæ ¼åä»·', edit: 'text' }//é»è®¤ |
| | | , { field: 'HWasterPrice', title: 'æ¥åºåä»·', edit: 'text' }//é»è®¤ |
| | | , { field: 'HStdFlag', title: 'æ åå®é¢', templet: "#HStdFlag" }//chenbox |
| | | , { field: 'HBeginDayQty', title: 'å¼å·¥ä½éï¼å¤©æ°ï¼', edit: 'text' } |
| | | , { field: 'HBeginFixQty', title: 'å¼å·¥ä½éï¼åºæ°ï¼', edit: 'text' } |
| | | , { field: 'HFixWorkDays', title: 'ä¸éåºå®å¤©æ°', edit: 'text' } |
| | | , { field: 'HTrunWorkDays', 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' } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo' } |
| | | ]] |
| | | //, done: function (res, curr, count) { |
| | | // $(".layui-table-body, .layui-table-box, .layui-table-cell").css('overflow', 'visible'); |
| | | // option.data = res.data; |
| | | // //廿䏿æ¡å¤±ç¦äºä»¶å¦åå¨ä¸ææ¡éè¾å
¥å¼ |
| | | // $('.layui-form-select').find('input').unbind("blur"); |
| | | // //è¡¨æ ¼éè½½åæ¾ä¸ææ¡éçæ°æ® |
| | | // $('tr').each(function (e) { |
| | | |
| | | // var $cr = $(this); |
| | | // var dataIndex = $cr.attr("data-index"); |
| | | // $.each(option.data, function (index, value) { |
| | | // //alert(value) |
| | | // if (value.LAY_TNDEX == dataIndex) { |
| | | // $cr.find('input').val(value.HProcType); |
| | | // } |
| | | // }); |
| | | // }); |
| | | //} |
| | | }; |
| | | } |
| | | |
| | | //åå§å è½½è¡¨æ ¼ |
| | | option.data = rowdata; |
| | | table.render(option); |
| | |
| | | get_checkRoutingGroup(); |
| | | }); |
| | | |
| | | |
| | | |
| | | //æ¯å¦é»è®¤å·¥èº |
| | | form.on('checkbox(checkboxHStandard)', function (data) { |
| | | $("#HStandard").val(data.elem.checked); |
| | | }); |
| | | //æ¯å¦å¯ç¨ |
| | | //form.on('checkbox(checkboxHUseFlag)', function (data) { |
| | | // $("#HUseFlag").val(data.elem.checked); |
| | | //}); |
| | | |
| | | //#region å¤éæ¡ |
| | | //å§å¤åå© |
| | | form.on('checkbox(HSupFlag)', function (data) { |
| | | //è·å䏿æ¡éä¸çå¼ |
| | | var elem = data.othis.parents('tr'); |
| | | var dataindex = elem.attr("data-index"); |
| | | $.each(option.data, function (index, value) { |
| | | if (value.LAY_TABLE_INDEX == dataindex) { |
| | | value.HSupFlag = data.elem.checked;//æéä¸ä¸ææ¡idå¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //ä¸éæµè½¬å·¥åº |
| | | form.on('checkbox(HNextProcFlag)', function (data) { |
| | | //è·å䏿æ¡éä¸çå¼ |
| | | var elem = data.othis.parents('tr'); |
| | | var dataindex = elem.attr("data-index"); |
| | | $.each(option.data, function (index, value) { |
| | | if (value.LAY_TABLE_INDEX == dataindex) { |
| | | value.HNextProcFlag = data.elem.checked;//æéä¸ä¸ææ¡idå¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //æµè½¬å·¥åº |
| | | form.on('checkbox(HFlowProc)', function (data) { |
| | | //è·å䏿æ¡éä¸çå¼ |
| | | var elem = data.othis.parents('tr'); |
| | | var dataindex = elem.attr("data-index"); |
| | | $.each(option.data, function (index, value) { |
| | | if (value.LAY_TABLE_INDEX == dataindex) { |
| | | value.HFlowProc = data.elem.checked;//æéä¸ä¸ææ¡idå¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //æ åå®é¢ |
| | | form.on('checkbox(HStdFlag)', function (data) { |
| | | //è·å䏿æ¡éä¸çå¼ |
| | | var elem = data.othis.parents('tr'); |
| | | var dataindex = elem.attr("data-index"); |
| | | $.each(option.data, function (index, value) { |
| | | if (value.LAY_TABLE_INDEX == dataindex) { |
| | | value.HStdFlag = data.elem.checked;//æéä¸ä¸ææ¡idå¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //èªå¨ç§»è½¬ |
| | | form.on('checkbox(HAutoTrunFlag)', function (data) { |
| | | //è·å䏿æ¡éä¸çå¼ |
| | | var elem = data.othis.parents('tr'); |
| | | var dataindex = elem.attr("data-index"); |
| | | $.each(option.data, function (index, value) { |
| | | if (value.LAY_TABLE_INDEX == dataindex) { |
| | | value.HAutoTrunFlag = data.elem.checked;//æéä¸ä¸ææ¡idå¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | } |
| | | }); |
| | | }); |
| | | //#endregion |
| | | |
| | | //è¡éæ©å¤çï¼å·¥åºç±»åï¼ |
| | | form.on('select(HProcType)', function (data) { |
| | | //è·å䏿æ¡éä¸çå¼ |
| | | var elem = data.othis.parents('tr'); |
| | | var dataindex = elem.attr("data-index"); |
| | | $.each(option.data, function (index, value) { |
| | | if (value.LAY_TABLE_INDEX == dataindex) { |
| | | value.HProcType = data.value;//æéä¸ä¸ææ¡idå¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | |
| | | //头工å
·æ äºä»¶ |
| | | table.on('toolbar(mainTable)', function (obj) { |
| | |
| | | , data = checkStatus.data; |
| | | //æ°å¢è¡è¡¨æ ¼æ°æ® |
| | | var NewRow = { |
| | | //"HProcNo": "", "å·¥åº": "", "HProcID": "0", "å·¥ä½ä¸å¿ä»£ç ": "", "å·¥ä½ä¸å¿": "", "HSupID": "0", "ä¾åºå代ç ": "" |
| | | //, "ä¾åºå": "", "HSupFlag": "false", "HWorkQty": "", "HPassRate": "", "HRemark": "" |
| | | "HProcNo": "", "HProcID": "0", "HSupID": "0", "HSupFlag": "false", "HWorkQty": 0, "HPassRate": 0, "HRemark": "" |
| | | "HProcNo": "", "HProcID_S": 0, "HProcType": "主工åº", "HCenterID_S": 0, "HCenterID_SName": "" |
| | | , "HWorkQty_S": 0, "HSubStdEmpQty_S": 0, "HMouldNo": "", "HChangeMould": 0, "HPackStd": "" |
| | | , "HPack": "", "HPutArea": "", "HMyWorkDays": 0, "HMyFixWorkDays": 0, "å·¥åº": "" |
| | | , "HProcID": 0, "å·¥ä½ä¸å¿ä»£ç ": "", "HCenterID": 0, "å·¥ä½ä¸å¿": "", "HSupID": 0 |
| | | , "ä¾åºå代ç ": "", "ä¾åºå": "", "HSupFlag": false, "HTimeUnit": "", "HUnitTime": 0 |
| | | , "HWorkQty": 0, "HPassRate": 0, "HOverRate": 0, "HReadyTime": 0, "HQueueTime": 0 |
| | | , "HMoveTime": 0, "HNextProcFlag": false, "HFlowProc": false, "HSubStdEmpQty": 0, "HSubCanUseSourceQty": 0 |
| | | , "HFixPrice": 0, "HProcPrice": 0, "HBadPrice": 0, "HWasterPrice": 0, "HStdFlag": false |
| | | , "HBeginDayQty": 0, "HBeginFixQty": 0, "HFixWorkDays": 0, "HTrunWorkDays": 0, "HReadyTimes": 0 |
| | | , "HICMOReadyTimes": 0, "HAutoTrunFlag": false, "HTechnologyParameter": "", "HPicNum": "", "HProcCheckNote": "" |
| | | , "HProcWorkNum": "" |
| | | }; |
| | | switch (obj.event) { |
| | | case 'btn-AddLine': |
| | | table.cache["mainTable"].push(NewRow); |
| | | option.data = table.cache["mainTable"]; |
| | | |
| | | table.render(option); |
| | | |
| | | for (var i = 1; i <= option.data.length; i++) { |
| | | console.log(option.data[i - 1].HSupFlag) |
| | | $('#HProcType' + i + '').find("option[value='" + option.data[i - 1].HProcType + "']").attr("selected", true); |
| | | //å§å¤åå© |
| | | if (option.data[i - 1].HSupFlag) { |
| | | $('#HSupFlag' + i + '').attr("checked", true); |
| | | } |
| | | //ä¸éæµè½¬å·¥åº |
| | | if (option.data[i - 1].HNextProcFlag) { |
| | | $('#HNextProcFlag' + i + '').attr("checked", true); |
| | | } |
| | | //æµè½¬å·¥åº |
| | | if (option.data[i - 1].HFlowProc) { |
| | | $('#HFlowProc' + i + '').attr("checked", true); |
| | | } |
| | | //æ åå®é¢ |
| | | if (option.data[i - 1].HStdFlag) { |
| | | $('#HStdFlag' + i + '').attr("checked", true); |
| | | } |
| | | //èªå¨ç§»è½¬ |
| | | if (option.data[i - 1].HAutoTrunFlag) { |
| | | $('#HAutoTrunFlag' + i + '').attr("checked", true); |
| | | } |
| | | } |
| | | form.render('select'); |
| | | form.render('checkbox'); |
| | | break; |
| | | case 'btn-CopyLine': |
| | | var copydata = JSON.stringify(data); |
| | |
| | | table.cache["mainTable"].push(JSON.parse(copyrow));//å°å¤å¶çè¡å¼ºè½¬æjson追å å°è¡¨æ ¼ä¸ |
| | | option.data = table.cache["mainTable"];//å°æ°æ®ç»å®å°dataä¸ |
| | | table.render(option);//å°æ°æ®æ¸²æå°è¡¨æ ¼ä¸ |
| | | //layer.alert(copyrow); |
| | | for (var i = 1; i <= option.data.length; i++) { |
| | | $('#HProcType' + i + '').find("option[value='" + option.data[i - 1].HProcType + "']").attr("selected", true); |
| | | //å§å¤åå© |
| | | if (option.data[i - 1].HSupFlag) { |
| | | $('#HSupFlag' + i + '').attr("checked", true); |
| | | } |
| | | //ä¸éæµè½¬å·¥åº |
| | | if (option.data[i - 1].HNextProcFlag) { |
| | | $('#HNextProcFlag' + i + '').attr("checked", true); |
| | | } |
| | | //æµè½¬å·¥åº |
| | | if (option.data[i - 1].HFlowProc) { |
| | | $('#HFlowProc' + i + '').attr("checked", true); |
| | | } |
| | | //æ åå®é¢ |
| | | if (option.data[i - 1].HStdFlag) { |
| | | $('#HStdFlag' + i + '').attr("checked", true); |
| | | } |
| | | //èªå¨ç§»è½¬ |
| | | if (option.data[i - 1].HAutoTrunFlag) { |
| | | $('#HAutoTrunFlag' + i + '').attr("checked", true); |
| | | } |
| | | } |
| | | form.render('select'); |
| | | form.render('checkbox'); |
| | | } |
| | | break; |
| | | } |
| | |
| | | |
| | | //è¡å
äºä»¶ |
| | | table.on('tool(mainTable)', function (obj) { |
| | | var data = obj.data; |
| | | var rowIndex = $(obj.tr).attr("data-index"); |
| | | if (obj.event === 'del') { |
| | | layer.confirm('ççå é¤è¡åï¼', function (index) { |
| | | console.log("ç´¢å¼ä¸º:" + rowIndex); |
| | | if (rowIndex === '0') { |
| | | layer.msg('é¦è¡æ æ³å é¤ï¼ï¼ï¼'); |
| | | } else { |
| | | obj.del(); |
| | | option.data = table.cache["mainTable"];//å°æ°æ®ç»å®å°dataä¸ |
| | | table.reload(option); |
| | | layer.close(index); |
| | | } |
| | | }); |
| | | } |
| | | //å廿¹åå¤åæ è®°å¼ |
| | | if (obj.event === 'HSupFlagEvent') { |
| | | var flag = obj.data.HSupFlag; |
| | | if (flag === "false") { |
| | | flag = "true"; |
| | | } |
| | | else if (flag === "true") { |
| | | flag = "false"; |
| | | } |
| | | else { |
| | | flag = "true"; |
| | | } |
| | | obj.update({ |
| | | HSupFlag: flag |
| | | }); |
| | | } |
| | | set_GridDelete(obj); //è¡å
å é¤ |
| | | set_GridCellCheck(obj); //è¡å
å¿«æ·é®çé |
| | | |
| | | }); |
| | | |
| | | $('#HName').on('keydown', function (event) {//å·¥èºè·¯çº¿åç§° |
| | |
| | | |
| | | //ä¿åæäº¤ |
| | | form.on('submit(btnSave)', function (data) {//æäº¤ |
| | | if (AllowLoadData(data)) { |
| | | set_AddNew(data); |
| | | } |
| | | //if (AllowLoadData(data)) { |
| | | set_AddNew(data); |
| | | //} |
| | | }); |
| | | |
| | | //éæ©ä¸è¯åå |
| | |
| | | //window.close();//å
³éå½å页 |
| | | }) |
| | | |
| | | form.on('submit(Saver)', function (data) {//ä¿å |
| | | |
| | | form.on('submit(Saver)', function (data) { //ä¿å |
| | | //debugger; |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = JSON.stringify(table.cache['mainTable']); |
| | |
| | | }); |
| | | |
| | | |
| | | |
| | | |
| | | //#endregion |
| | | |
| | | //#region æ¤é¡µé¢ææçæ¹æ³ |
| | |
| | | $("#HMaterID").val(checkStatus.data[0].HItemID);//ç©æid |
| | | $("#HMaterName").val(checkStatus.data[0].HName);//ç©æåç§° |
| | | $("#HMaterNumber").val(checkStatus.data[0].HNumber);//ç©æä»£ç |
| | | $("#HMaterModel").val(checkStatus.data[0].HModel);//è§æ ¼åå· |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | |
| | | |
| | | //å·¥èºè·¯çº¿å¤§ç±»éæ©é¡µé¢ |
| | | function get_checkRoutingGroup() { |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'å·¥ä½ä¸å¿è¡¨'//æ é¢ |
| | | , title: 'å·¥èºè·¯çº¿å¤§ç±»å表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_RoutingGroup.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | |
| | | vars[hash[0]] = hash[1]; |
| | | } |
| | | return vars; |
| | | } |
| | | |
| | | //è¡å
å é¤ |
| | | function set_GridDelete(obj) { |
| | | var data = obj.data; |
| | | var rowIndex = $(obj.tr).attr("data-index"); |
| | | if (obj.event === 'del') { |
| | | layer.confirm('ççå é¤è¡åï¼', function (index) { |
| | | console.log("ç´¢å¼ä¸º:" + rowIndex); |
| | | if (rowIndex === '0') { |
| | | layer.msg('é¦è¡æ æ³å é¤ï¼ï¼ï¼'); |
| | | } else { |
| | | obj.del(); |
| | | option.data = table.cache["mainTable"];//å°æ°æ®ç»å®å°dataä¸ |
| | | table.reload(option); |
| | | layer.close(index); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | |
| | | //è¡å
å é¤å¿«æ·é® |
| | | function set_GridCellCheck(obj) { |
| | | $(document).off('keydown', ".layui-table-edit").on('keydown', '.layui-table-edit', function (e) { |
| | | if (event.key == "F7") { |
| | | //产线ä¸å¿ |
| | | if (obj.event == "CheckHCenterID_S") { |
| | | //æå¼ç»´ä¿®é¡¹ç®å°çªä½ |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "产线ä¸å¿å表" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["90%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ["../../Baseset/åºç¡èµæ/Gy_LineCenter.html", "yes"] |
| | | , btn: ["ç¡®å®", "åæ¶"] |
| | | , btn1: function (index, laero) { |
| | | //æé®ä¸ çåè° |
| | | var iframeWindow = window["layui-layer-iframe" + index];//è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus("mainTable");//è·åéä¸çæ°æ® |
| | | |
| | | if (checkStatus.data.length != 1) { |
| | | return layer.msg("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "HCenterID_SName": checkStatus.data[0].HName |
| | | , "HCenterID_S": checkStatus.data[0].HItemID |
| | | }) |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | }) |
| | | } |
| | | //å·¥åº |
| | | if (obj.event == "CheckHProcID") { |
| | | //æå¼äººå表 å°çªä½ |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "å·¥åºå表" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["90%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ["../../Baseset/åºç¡èµæ/Gy_ProcList.html", "yes"] |
| | | , btn: ["ç¡®å®", "åæ¶"] |
| | | , btn1: function (index, laero) { |
| | | //æé®ä¸ çåè° |
| | | var iframeWindow = window["layui-layer-iframe" + index];//è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus("mainTable");//è·åéä¸çæ°æ® |
| | | |
| | | if (checkStatus.data.length != 1) { |
| | | return layer.msg("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "å·¥åº": checkStatus.data[0].å·¥åº |
| | | , "HProcID": checkStatus.data[0].HItemID |
| | | }) |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | }) |
| | | } |
| | | //å·¥ä½ä¸å¿ |
| | | if (obj.event == "CheckHCenterID") { |
| | | //æå¼äººå表 å°çªä½ |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "人åå表" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["90%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ["../../Baseset/åºç¡èµæ/Gy_WorkCenterList.html", "yes"] |
| | | , btn: ["ç¡®å®", "åæ¶"] |
| | | , btn1: function (index, laero) { |
| | | //æé®ä¸ çåè° |
| | | var iframeWindow = window["layui-layer-iframe" + index];//è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus("mainTable");//è·åéä¸çæ°æ® |
| | | |
| | | if (checkStatus.data.length != 1) { |
| | | return layer.msg("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "å·¥ä½ä¸å¿": checkStatus.data[0].å·¥ä½ä¸å¿ |
| | | , "HCenterID": checkStatus.data[0].HItemID |
| | | , "å·¥ä½ä¸å¿ä»£ç ": checkStatus.data[0].å·¥ä½ä¸å¿ä»£ç |
| | | }) |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | }) |
| | | } |
| | | //ä¾åºå |
| | | if (obj.event == "CheckHSupID") { |
| | | //æå¼äººå表 å°çªä½ |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "ä¾åºåå表" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["90%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ["../../Baseset/åºç¡èµæ/Gy_SupplierList.html", "yes"] |
| | | , btn: ["ç¡®å®", "åæ¶"] |
| | | , btn1: function (index, laero) { |
| | | //æé®ä¸ çåè° |
| | | var iframeWindow = window["layui-layer-iframe" + index];//è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus("mainTable");//è·åéä¸çæ°æ® |
| | | |
| | | if (checkStatus.data.length != 1) { |
| | | return layer.msg("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "ä¾åºå": checkStatus.data[0].HName |
| | | , "HSupID": checkStatus.data[0].HItemID |
| | | , "ä¾åºå代ç ": checkStatus.data[0].HNumber |
| | | }) |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | }) |
| | | } |
| | | obj.event = ""; |
| | | return false; |
| | | } |
| | | |
| | | }) |
| | | } |
| | | |
| | | //ç¼è¾ 页é¢èµå¼ |
| | |
| | | , "HUnitName": d.data[0].计éåä½ |
| | | , "HUnitID": d.data[0].hunitid |
| | | , "HMainTimeUnit": d.data[0].è¿è¡æ¶é´åä½ |
| | | , "HMainProcIDName": d.data[0].å·¥åº |
| | | , "HMainProcID": d.data[0].hprocid |
| | | , "HMainProcIDName": d.data[0].å·¥åºåç§° |
| | | , "HMainProcID": d.data[0].HMainProcID |
| | | , "HMainCenterIDName": d.data[0].å·¥ä½ |
| | | , "HMainCenterID": d.data[0].HMainCenterID |
| | | , "HGroupIDName": d.data[0].çç» |
| | |
| | | , "HDelSourceRate": d.data[0].åèµæºåé |
| | | , "HRemark": d.data[0].è¡¨å¤´å¤æ³¨ |
| | | , "HStandard": d.data[0].é»è®¤å·¥èº == 1 ? true : false |
| | | , "HMaterModel": d.data[0].è§æ ¼åå· |
| | | , "HPicNumVer": d.data[0].å¾å·çæ¬ |
| | | , "HPicNumAssemble": d.data[0].æ»è£
å¾å· |
| | | , "HMaterTexture": d.data[0].æè´¨ |
| | | , "HProductNum": d.data[0].æåç¼å· |
| | | , "HVerNum": d.data[0].çæ¬ |
| | | }); |
| | | |
| | | //å表 èµå¼ |
| | | var rowdata = [{ |
| | | "HProcNo": d.data[0].å·¥åºå·, "HProcID": d.data[0].hprocid, "HSupID": d.data[0].HSupID, "HSupFlag": d.data[0].å§å¤æ è®° == 1 ? true : false, "HWorkQty": d.data[0].å å·¥æ°é, "HPassRate": d.data[0].è¯ç, "HRemark": d.data[0].表ä½å¤æ³¨ |
| | | "HProcNo": d.data[0].å·¥åºå·, "HProcID_S": d.data[0].工段, "HProcType": d.data[0].å·¥åºç±»å, "HCenterID_S": d.data[0].HCenterID_S, "HCenterID_SName": d.data[0].产线ä¸å¿ |
| | | , "HWorkQty_S": d.data[0].产线产è½, "HSubStdEmpQty_S": d.data[0].产线人æ°, "HMouldNo": d.data[0].模å
·ç¼å·, "HChangeMould": d.data[0].æ¢æ¨¡æ¶é´, "HPackStd": d.data[0].å¨è½¬ç®±æ å |
| | | , "HPack": d.data[0].å¨è½¬ç®±, "HPutArea": d.data[0].ææ¾åº, "HMyWorkDays": d.data[0].çäº§å¨æ, "HMyFixWorkDays": d.data[0].åºå®ç产天æ°, "å·¥åº": d.data[0].å·¥åº |
| | | , "HProcID": d.data[0].hprocid, "å·¥ä½ä¸å¿ä»£ç ": d.data[0].å·¥ä½ä¸å¿ä»£ç , "HCenterID": d.data[0].HCenterID, "å·¥ä½ä¸å¿": d.data[0].å·¥ä½ä¸å¿åç§°, "HSupID": d.data[0].HSupID |
| | | , "ä¾åºå代ç ": d.data[0].ä¾åºå代ç , "ä¾åºå": d.data[0].ä¾åºå, "HSupFlag": d.data[0].å§å¤æ è®° == 0 ? false : true, "HTimeUnit": d.data[0].æ¶é´åä½, "HUnitTime": d.data[0].è¿è¡æ¶é´ |
| | | , "HWorkQty": d.data[0].å å·¥æ°é, "HPassRate": d.data[0].è¯ç, "HOverRate": d.data[0].è¶
颿¯ä¾, "HReadyTime": d.data[0].å夿¶é´, "HQueueTime": d.data[0].æéæ¶é´ |
| | | , "HMoveTime": d.data[0].转移æ¶é´, "HNextProcFlag": d.data[0].HNextProcFlag == 0 ? false : true, "HFlowProc": d.data[0].æµè½¬å·¥åº == 0 ? false : true, "HSubStdEmpQty": d.data[0].æ å人æ°, "HSubCanUseSourceQty": d.data[0].坿ä½è®¾å¤æ° |
| | | , "HFixPrice": d.data[0].ç产å®é¢, "HProcPrice": d.data[0].å å·¥åä»·, "HBadPrice": d.data[0].ä¸åæ ¼åä»·, "HWasterPrice": d.data[0].æ¥åºåä»·, "HStdFlag": d.data[0].æ åå®é¢ |
| | | , "HBeginDayQty": d.data[0].å¼å·¥ä½é天æ°, "HBeginFixQty": d.data[0].å¼å·¥ä½éåºæ°, "HFixWorkDays": d.data[0].ä¸éåºå®å¤©æ°, "HTrunWorkDays": d.data[0].ä¸é循ç¯å¨æ, "HReadyTimes": d.data[0].æ¬éå夿¶é´ |
| | | , "HICMOReadyTimes": d.data[0].æ¢åå夿¶é´, "HAutoTrunFlag": d.data[0].èªå¨ç§»è½¬, "HTechnologyParameter": d.data[0].å·¥èºåæ°, "HPicNum": d.data[0].å¾çº¸ç¼å·, "HProcCheckNote": d.data[0].æ¬å·¥åºç¡®è®¤è®°å½ |
| | | , "HProcWorkNum": d.data[0].ç¨åºå· |
| | | }]; |
| | | option.data = rowdata; |
| | | table.render(option); |
| | | |
| | | if (d.data[0].å§å¤æ è®°) { |
| | | $('#HSupFlag1').attr("checked", true); |
| | | } |
| | | if (d.data[0].HNextProcFlag) { |
| | | $('#HNextProcFlag1').attr("checked", true); |
| | | } |
| | | if (d.data[0].æµè½¬å·¥åº) { |
| | | $('#HFlowProc1').attr("checked", true); |
| | | } |
| | | if (d.data[0].æ åå®é¢) { |
| | | $('#HStdFlag1').attr("checked", true); |
| | | } |
| | | if (d.data[0].èªå¨ç§»è½¬) { |
| | | $('#HAutoTrunFlag1').attr("checked", true); |
| | | } |
| | | form.render('checkbox'); |
| | | $('#HProcType1').find("option[value='" + d.data[0].å·¥åºç±»å+ "']").attr("selected", true); |
| | | form.render('select'); |
| | | } |
| | | }) |
| | | } |
| | | //ä¿åHMaker |
| | | function set_AddNew(data) { |
| | | |
| | | var num = []; |
| | | for (var i = 0; i < table.cache["mainTable"].length; i++) { |
| | | if (table.cache["mainTable"][i] != "") { |
| | | table.cache["mainTable"][i].LAY_TABLE_INDEX = i; |
| | | num.push(table.cache["mainTable"][i]) |
| | | } |
| | | } |
| | | |
| | | data.field.HPRDORGID = sessionStorage["OrganizationID"];//ç»ç» |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = JSON.stringify(table.cache['mainTable']); |
| | | var sSubStr = JSON.stringify(num); |
| | | var hentryid = linteridSub;//å表 æåºid |
| | | var sMainSub = sMainStr + ';' + sSubStr + ';' + hentryid + ';' + OperationType; |
| | | |
| | | var index = layer.load(); |
| | | |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: GetWEBURL() + "/Gy_RoutingBill/AddBill", |
| | |
| | | } |
| | | //é空éªè¯ |
| | | function AllowLoadData(data) { |
| | | |
| | | |
| | | if ($("#HMaterNumber").val() == "") { |
| | | layer.msg("产åä»£ç æ²¡æéæ©"); |
| | | return false; |
| | | } |
| | | if ($("#HUnitName").val() == "") { |
| | | layer.msg("计éå使²¡æéæ©"); |
| | | return false; |
| | |
| | | layer.msg("请å¾éé»è®¤å·¥èº"); |
| | | return false; |
| | | } |
| | | |
| | | |
| | | return true; |
| | | //if ($("#HBillNo").val() == '') { |
| | | // layer.msg("é误çåæ®å·", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | |
| | | |
| | | //#region æ¥è¯¢ |
| | | function get_Display(sWhere) { |
| | | sWhere += " and HPRDORGID=" + sessionStorage["OrganizationID"] + " "; |
| | | //sWhere += " and HPRDORGID=" + sessionStorage["OrganizationID"] + " "; |
| | | var ajaxLoad = layer.load(); |
| | | $.ajax({ |
| | | //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum", |
| | |
| | | , title: 'å·¥èºè·¯çº¿-æ°å¢' |
| | | , shift: 0//å¼¹åºå¨ç» |
| | | , content: '../å·¥èºè·¯çº¿/Gy_RoutingBill.html?OperationType=1&linterid=&HSouceBillType=&linteridSub=-1' |
| | | , end: function () { |
| | | //å·æ°é¡µé¢, |
| | | location.reload(); |
| | | } |
| | | }) |
| | | } |
| | | //#endregion |
| | |
| | | , title: 'å·¥èºè·¯çº¿-ç¼è¾' |
| | | , shift: 0//å¼¹åºå¨ç» |
| | | , content: '../å·¥èºè·¯çº¿/Gy_RoutingBill.html?OperationType=3&linterid=' + linterid + '&HSouceBillType=&linteridSub=' + linteridSub |
| | | , end: function () { |
| | | //å·æ°é¡µé¢, |
| | | location.reload(); |
| | | } |
| | | }) |
| | | } else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®ç¼è¾ï¼'); |
| | |
| | | <div class="layui-form-item"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">è®¡åæ¨¡å¼</label> |
| | | </div> |
| | | <div class="layui-col-xs8"> |
| | | <select name=" HPlanMode" id="HPlanMode"> |
| | | <option value="0">å
¨é¨</option> |
| | | <option value="14035">MTO</option> |
| | | <option value="14036">MTS</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <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="HPPQty" id="HPPQty" lay-verify="HPPQty" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:30px;padding-left:0px;">å
è¿å
åºä»åº</label> |
| | | </div> |
| | | <div class="layui-col-xs6"> |
| | | <input type="text" name="HFIFOWHNAME" id="HFIFOWHNAME" lay-verify="HFIFOWHNAME" autocomplete="off" class="layui-input"> |
| | | <input type="hidden" name="HFIFOWHID" id="HFIFOWHID" lay-verify="HFIFOWHID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs3"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HFIFOWHID-BT">...</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">æºåå·</label> |
| | | </div> |
| | | <div class="layui-col-xs8"> |
| | |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_WarehouseList.html?Type=HWHID', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | }) |
| | | }); |
| | | form.on('submit(HFIFOWHID-BT)', function () {//éæ©ä»åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'ä»åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_WarehouseList.html?Type=HFIFOWHID', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | |
| | | }); |
| | | |
| | | |
| | | |
| | | |
| | | function playSound() { |
| | | var audio = document.getElementById("cs"); |
| | | if (audio == null) |
| | |
| | | audio.play(); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | //æ«æºå |
| | | $('#HSourceBillNo').on('keydown', function (event) { |
| | | var HSourceBillNo = $('#HSourceBillNo').val() |
| | | var sInterID = $("#HInterID").val() |
| | | var sBillNo = $("#HBillNo").val() |
| | | var HSourceBillType = $("#HBillType").val() |
| | | if (event.keyCode == 13) { |
| | | var HPPQty = $("#HPPQty").val() |
| | | var HFIFOWHID = $("#HFIFOWHID").val() |
| | | var HPlanMode = $("#HPlanMode").val() |
| | | |
| | | |
| | | |
| | | if (HPPQty == "") |
| | | { |
| | | HPPQty = 0; |
| | | } |
| | | |
| | | |
| | | |
| | | if (event.keyCode == 13) { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/MateOut/set_SavePonderationBillMain_Temp_Mate_Source_Fast_Json", |
| | | type: "GET", |
| | | data: { "HSourceBillType": HSourceBillType, "HSourceBillNo": HSourceBillNo, "sInterID": sInterID, "sBillNo": sBillNo }, |
| | | data: { "sInterID": sInterID, "sBillNo": sBillNo, "HBillType": '1204', "HSourceBillNo": HSourceBillNo, "HSourceBillType": HSourceBillType, "sMaker": sessionStorage["HUserName"], "sPPQty": HPPQty, "sPlanMode": HPlanMode, "sFIFOWHID": HFIFOWHID, "HOWNERID": sessionStorage["OrganizationID"]}, |
| | | success: function (result) { |
| | | sessionStorage["SourceFlag"] = true; |
| | | $("#HPlanMode").attr("disabled", "true"); |
| | | $("#HBillType").attr("disabled", "true"); |
| | | element.tabChange('tab-MateOutBill', '2'); |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.load(3) |
| | |
| | | //sessionStorage["HWHID"] = obj[0].HItemID; |
| | | $("#HWHID").val(obj[0].HItemID); |
| | | } |
| | | function GetHFIFOWHNAMEValue(obj) //è¿åå
è¿å
åºä»åº |
| | | { |
| | | $("#HFIFOWHNAME").val(obj[0].HName); |
| | | //sessionStorage["HWHID"] = obj[0].HItemID; |
| | | $("#HFIFOWHID").val(obj[0].HItemID); |
| | | } |
| | | function GetHSpValue(obj) { //è¿åè°å
¥ä»ä½ |
| | | $("#HStockPlaceName").val(obj[0].HName); |
| | | $("#HStockPlaceID").val(obj[0].HItemID); |