| | |
| | | //public const string SqlConnStr = "Data Source=10.0.2.9;Initial Catalog=HX_LimsSys;Persist Security Info=True;User ID=HX_USER;Password=lc@841022;"; |
| | | //public const string SqlConnStr = "Data Source=.;Initial Catalog=HX_LMESsys;Persist Security Info=True;User ID=HX_USER;Password=lc@841022;"; |
| | | //public const string SqlConnStr = "Data Source=.;Initial Catalog=HX_LimsSys;Persist Security Info=True;User ID=HX_USER;Password=lc@841022;";//chæµè¯ |
| | | //public const string SqlConnStr = "Data Source=47.96.97.237,15127;Initial Catalog=HX_LMESsys;Persist Security Info=True;User ID=HX_USER;Password=lc@841022;";//YLæµè¯ |
| | | public const string SqlConnStr = "Data Source=47.96.97.237,15127;Initial Catalog=HX_LMESsys;Persist Security Info=True;User ID=HX_USER;Password=lc@841022;";//YLæµè¯ |
| | | //public const string SqlConnStr = "Data Source=47.96.97.237,15127;Initial Catalog=HX_LMESsys;Persist Security Info=True;User ID=HX_USER;Password=lc@841022;";//ä¸¸äº |
| | | public const string SqlConnStr = "Data Source=192.168.0.200;Initial Catalog=HX_LimsSys;Persist Security Info=True;User ID=HX_USER;Password=lc@841022;";//丸äºå°å |
| | | //public const string SqlConnStr = "Data Source=192.168.0.200;Initial Catalog=HX_LimsSys;Persist Security Info=True;User ID=HX_USER;Password=lc@841022;";//丸äºå°å |
| | | |
| | | //public string sServer; |
| | | //public string sDataBase; |
| | |
| | | <Content Include="views\ç产管ç\æ¥å·¥å°å·¥åº\é²é\Sc_MaterToSourceStepBillList.html" /> |
| | | <Content Include="views\ç产管ç\æ¥å·¥å¹³å°åè½é¡µ\LineBindStep.html" /> |
| | | <Content Include="views\ç产管ç\æ¥å·¥å¹³å°åè½é¡µ\LineBind.html" /> |
| | | <Content Include="views\ç产管ç\æ£æé
éå\JIT_ComplementGoodsBill.html" /> |
| | | <Content Include="views\ç产管ç\æ£æé
éå\JIT_ComplementGoodsList.html" /> |
| | | <Content Include="views\ç产管ç\çäº§ä¸æå\Sc_MaterToSourceBillList - å¤å¶.html" /> |
| | | <Content Include="views\ç产管ç\çäº§ä¸æå\Sc_MaterToSourceBillList.html" /> |
| | | <Content Include="views\ç产管ç\ç产åå·¥å\Sc_Add_MESStopWorkBillList - å¤å¶.html" /> |
| | |
| | | <Content Include="views\ç产管ç\ç产åå·¥å\Sc_MESStopWorkBillList.html" /> |
| | | <Content Include="views\ç产管ç\ç产å
è£
å\Sc_PackUnionBill.html" /> |
| | | <Content Include="views\ç产管ç\ç产å
è£
å\Sc_PackUnionBillEdit.html" /> |
| | | <Content Include="views\ç产管ç\çäº§å«æå¹³å°\JIT_ComplementGoodBillMain.html" /> |
| | | <Content Include="views\ç产管ç\çäº§å«æå¹³å°\JIT_HlpBillList.html" /> |
| | | <Content Include="views\ç产管ç\ç产å®å·¥å\Sc_Add_MESEndWorkBillList - å¤å¶.html" /> |
| | | <Content Include="views\ç产管ç\ç产å®å·¥å\Sc_Add_MESEndWorkBillList.html" /> |
| | | <Content Include="views\ç产管ç\ç产å®å·¥å\Sc_MESEndWorkBillList.html" /> |
| | |
| | | <Content Include="views\ç产管ç\ç»è£
å\Sc_GroupOrderBillList.html" /> |
| | | <Content Include="views\ç产管ç\è´¨éæ±æ¥å\Sc_QualityReportBill.html" /> |
| | | <Content Include="views\ç产管ç\è´¨éæ±æ¥å\Sc_QualityReportBillList.html" /> |
| | | <Content Include="views\ç产管ç\éæç³è¯·å\JIT_CallGoodsBackRequestBillList.html" /> |
| | | <Content Include="views\ç³»ç»ç®¡ç\ä¼è®¡æé´\Xt_AccountPeriodList.html" /> |
| | | <Content Include="views\ç³»ç»ç®¡ç\ä¼è®¡æé´\Xt_AccountPeriod_Edit.html" /> |
| | | <Content Include="views\ç³»ç»ç®¡ç\å
Œ\GG_NoticeBillList.html" /> |
| | |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | var OpenTmp = data[0].模æ¿åç§°; |
| | | |
| | | console.log(linterid.toString()); |
| | | //æå¼æå°æ¨¡æ¿ |
| | | window.open("../åºç¡èµæ/å
¬ç¨åºç¡èµæ/HBarPlanPrint.html?linterid=" + linterid.toString() + "&Type=" + Type.toString() + "&OpenTmp=" + OpenTmp.toString()); |
| | | //æ ¹æ®æ¨¡åè·åWEBAPI龿¥ |
| | | var url = ""; |
| | | switch (Type) { |
| | | case "HBarCodePrint": |
| | | url = "UpdateBarcodePrintQty" |
| | | case "HGy_BarCodeBill": //HBarCodePrint |
| | | url = "/Sc_BarCode/UpdateBarcodePrintQty" |
| | | break; |
| | | case "HPOInStockBill": |
| | | url = "UpdatePOInStockBillPrintQty" |
| | | break; |
| | | } |
| | | //æ´æ°æå°æ°é |
| | | $.ajax( |
| | | { |
| | | type: "POST", |
| | | url: GetWEBURL() + url, //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | async: true, |
| | | data: { "msg": MyMsg }, |
| | | dataType: "json", |
| | | contentType: 'application/json', |
| | | success: function (data) { |
| | | //if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | // layer.msg(data.Message, { icon: 1 }); |
| | | //} |
| | | //else { |
| | | // layer.msg(data.Message, { icon: 5 }); |
| | | //} |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | parent.f_alert("é误:" + err); |
| | | } |
| | | }); |
| | | //$.ajax( |
| | | // { |
| | | // type: "POST", |
| | | // url: GetWEBURL() + url, //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | // async: true, |
| | | // data: { "msg": MyMsg }, |
| | | // dataType: "json", |
| | | // contentType: 'application/json', |
| | | // success: function (data) { |
| | | // layer.closeAll("loading"); |
| | | // }, |
| | | // error: function (err) { |
| | | // parent.f_alert("é误:" + err); |
| | | // } |
| | | // }); |
| | | |
| | | //å
³éå½åçªå£ |
| | | var index = parent.layer.getFrameIndex(window.name); |
| New file |
| | |
| | | Object Report |
| | | Version='6.8.2.5' |
| | | Title='ç产任å¡å' |
| | | PrintAsDesignPaper=F |
| | | Object Font |
| | | Name='å®ä½' |
| | | Size=135000,0 |
| | | Weight=400 |
| | | Charset=134 |
| | | End |
| | | Object Printer |
| | | Size=256 |
| | | Width=9.75 |
| | | Height=6 |
| | | LeftMargin=0 |
| | | TopMargin=0 |
| | | RightMargin=0 |
| | | BottomMargin=0 |
| | | End |
| | | Object DetailGrid |
| | | CenterView=T |
| | | ShowColLine=F |
| | | ShowRowLine=F |
| | | Object Border |
| | | Styles=[] |
| | | End |
| | | Object Recordset |
| | | Items Field |
| | | Item |
| | | Name='ç产工åå·' |
| | | DBFieldName='æºååå·' |
| | | End |
| | | Item |
| | | Name='ç©æä»£ç ' |
| | | End |
| | | Item |
| | | Name='ç©æåç§°' |
| | | End |
| | | Item |
| | | Name='è§æ ¼åå·' |
| | | End |
| | | Item |
| | | Name='æ°é' |
| | | End |
| | | Item |
| | | Name='æ¡ç ç¼å·' |
| | | End |
| | | Item |
| | | Name='éå®è®¢åå·' |
| | | End |
| | | Item |
| | | Name='æ¹å·' |
| | | End |
| | | Item |
| | | Name='æ¥æ' |
| | | Type=DateTime |
| | | Format='yyyy/MM/dd' |
| | | End |
| | | Item |
| | | Name='å¶ä½äºº' |
| | | End |
| | | Item |
| | | Name='客æ·åå·' |
| | | End |
| | | Item |
| | | Name='计éåä½' |
| | | End |
| | | Item |
| | | Name='æºååå·' |
| | | End |
| | | Item |
| | | Name='ä¾åºå' |
| | | End |
| | | End |
| | | End |
| | | Items Column |
| | | Item |
| | | Name='Column3' |
| | | Width=9.60438 |
| | | End |
| | | End |
| | | Object ColumnContent |
| | | Height=6.00604 |
| | | RowsPerPage=1 |
| | | Items ColumnContentCell |
| | | Item |
| | | Column='Column3' |
| | | FreeCell=T |
| | | CanGrow=T |
| | | Items Control |
| | | Item |
| | | Type=MemoBox |
| | | Name='å¯è´å¥ç¹' |
| | | Left=0.79375 |
| | | Top=0.211667 |
| | | Width=5.3975 |
| | | Height=1.37583 |
| | | Object Font |
| | | Name='å®ä½' |
| | | Size=142500,0 |
| | | Weight=400 |
| | | Charset=134 |
| | | End |
| | | ShrinkFontToFit=T |
| | | TextAlign=MiddleCenter |
| | | CharSpacing=4 |
| | | Text='æ¡ç ä¿¡æ¯' |
| | | End |
| | | Item |
| | | Type=Barcode |
| | | Name='Barcode1' |
| | | Left=6.79979 |
| | | Top=0.211667 |
| | | Width=1.79917 |
| | | Height=1.37583 |
| | | BarcodeType=QRCode |
| | | CaptionPosition=None |
| | | Text='[#æ¡ç ç¼å·#]' |
| | | Object Font |
| | | Name='å®ä½' |
| | | Size=105000,0 |
| | | Weight=400 |
| | | Charset=134 |
| | | End |
| | | End |
| | | Item |
| | | Type=FreeGrid |
| | | Name='FreeGrid1' |
| | | Left=0.132292 |
| | | Top=1.69333 |
| | | Object Border |
| | | Styles=[DrawLeft|DrawTop|DrawRight|DrawBottom] |
| | | End |
| | | ColumnCount=6 |
| | | Items FreeGridColumn |
| | | Item[1] |
| | | Width=1.56104 |
| | | End |
| | | Item[2] |
| | | Width=1.85208 |
| | | End |
| | | Item[3] |
| | | Width=1.16417 |
| | | End |
| | | Item[4] |
| | | Width=1.69333 |
| | | End |
| | | Item[5] |
| | | Width=1.00542 |
| | | End |
| | | Item[6] |
| | | Width=2.11667 |
| | | End |
| | | End |
| | | Items FreeGridRow |
| | | Item[1] |
| | | Height=0.820208 |
| | | End |
| | | Item[2] |
| | | Height=0.79375 |
| | | End |
| | | Item[3] |
| | | Height=0.79375 |
| | | End |
| | | Item[4] |
| | | Height=0.820208 |
| | | End |
| | | Item[5] |
| | | Height=0.740833 |
| | | End |
| | | End |
| | | Items FreeGridCell |
| | | Item[1,1] |
| | | Object Font |
| | | Name='å®ä½' |
| | | Weight=400 |
| | | Charset=134 |
| | | End |
| | | Text='å·¥åå·' |
| | | End |
| | | Item[1,2] |
| | | Object Font |
| | | Name='å®ä½' |
| | | Size=105000,0 |
| | | Weight=400 |
| | | Charset=134 |
| | | End |
| | | ShrinkFontToFit=T |
| | | Text='[#ç产工åå·#]' |
| | | ColSpan=2 |
| | | End |
| | | Item[1,4] |
| | | Object Font |
| | | Name='å®ä½' |
| | | Size=105000,0 |
| | | Weight=400 |
| | | Charset=134 |
| | | End |
| | | Text='ä¾åºå' |
| | | End |
| | | Item[1,5] |
| | | Object Font |
| | | Name='å®ä½' |
| | | Size=105000,0 |
| | | Weight=400 |
| | | Charset=134 |
| | | End |
| | | Text='[#ä¾åºå#]' |
| | | ColSpan=2 |
| | | End |
| | | Item[2,1] |
| | | Object Font |
| | | Name='å®ä½' |
| | | Size=105000,0 |
| | | Weight=400 |
| | | Charset=134 |
| | | End |
| | | Text='ç©æç¼ç ' |
| | | End |
| | | Item[2,2] |
| | | Object Font |
| | | Name='å®ä½' |
| | | Size=105000,0 |
| | | Weight=400 |
| | | Charset=134 |
| | | End |
| | | Text='[#ç©æä»£ç #]' |
| | | ColSpan=5 |
| | | End |
| | | Item[3,1] |
| | | Object Font |
| | | Name='å®ä½' |
| | | Size=105000,0 |
| | | Weight=400 |
| | | Charset=134 |
| | | End |
| | | Text='ç©æåç§°' |
| | | End |
| | | Item[3,2] |
| | | Object Font |
| | | Name='å®ä½' |
| | | Size=105000,0 |
| | | Weight=400 |
| | | Charset=134 |
| | | End |
| | | Text='[#ç©æåç§°#]' |
| | | ColSpan=5 |
| | | End |
| | | Item[4,1] |
| | | Object Font |
| | | Name='å®ä½' |
| | | Size=105000,0 |
| | | Weight=400 |
| | | Charset=134 |
| | | End |
| | | Text='æ°é' |
| | | DataName='æ°é' |
| | | End |
| | | Item[4,2] |
| | | Object Font |
| | | Name='å®ä½' |
| | | Size=105000,0 |
| | | Weight=400 |
| | | Charset=134 |
| | | End |
| | | Text='[#æ°é#]' |
| | | End |
| | | Item[4,3] |
| | | Object Font |
| | | Name='å®ä½' |
| | | Size=105000,0 |
| | | Weight=400 |
| | | Charset=134 |
| | | End |
| | | Text='åä½' |
| | | DataName='åä½' |
| | | End |
| | | Item[4,4] |
| | | Object Font |
| | | Name='å®ä½' |
| | | Size=105000,0 |
| | | Weight=400 |
| | | Charset=134 |
| | | End |
| | | Text='[#计éåä½#]' |
| | | End |
| | | Item[4,5] |
| | | Object Font |
| | | Name='å®ä½' |
| | | Size=105000,0 |
| | | Weight=400 |
| | | Charset=134 |
| | | End |
| | | Text='æ¹å·' |
| | | End |
| | | Item[4,6] |
| | | Object Font |
| | | Name='å®ä½' |
| | | Size=105000,0 |
| | | Weight=400 |
| | | Charset=134 |
| | | End |
| | | Text='[#æ¹å·#]' |
| | | End |
| | | Item[5,1] |
| | | Object Font |
| | | Name='å®ä½' |
| | | Size=105000,0 |
| | | Weight=400 |
| | | Charset=134 |
| | | End |
| | | Text='æå°äººå' |
| | | DataName='æå°äººå' |
| | | End |
| | | Item[5,2] |
| | | Object Font |
| | | Name='å®ä½' |
| | | Size=105000,0 |
| | | Weight=400 |
| | | Charset=134 |
| | | End |
| | | Text='[#å¶ä½äºº#]' |
| | | ColSpan=2 |
| | | End |
| | | Item[5,4] |
| | | Object Font |
| | | Name='å®ä½' |
| | | Size=105000,0 |
| | | Weight=400 |
| | | Charset=134 |
| | | End |
| | | Text='æå°æ¥æ' |
| | | DataName='æå°æ¥æ' |
| | | End |
| | | Item[5,5] |
| | | Object Font |
| | | Name='å®ä½' |
| | | Size=105000,0 |
| | | Weight=400 |
| | | Charset=134 |
| | | End |
| | | Text='[#æ¥æ#]' |
| | | ColSpan=2 |
| | | End |
| | | End |
| | | End |
| | | End |
| | | End |
| | | End |
| | | End |
| | | Object ColumnTitle |
| | | Height=0 |
| | | Items ColumnTitleCell |
| | | Item |
| | | GroupTitle=F |
| | | Column='Column3' |
| | | Text='Column1' |
| | | End |
| | | End |
| | | End |
| | | End |
| | | Items ReportHeader |
| | | Item |
| | | Name='ReportHeader1' |
| | | Height=0 |
| | | RepeatOnPage=T |
| | | End |
| | | End |
| | | Items ReportFooter |
| | | Item |
| | | Name='ReportFooter1' |
| | | Height=0 |
| | | End |
| | | End |
| | | End |
| | |
| | | <a><i class="layui-icon layui-icon-set"></i><cite>ç产管ç</cite></a> |
| | | <dl class="layui-nav-child"> |
| | | <dd> |
| | | <a>çäº§å«æå¹³å°</a> |
| | | <dl class="layui-nav-child"> |
| | | <dd><a lay-href="ç产管ç/çäº§å«æå¹³å°/JIT_ComplementGoodBillMain.html">çäº§å«æå¹³å°</a></dd> |
| | | <dd><a lay-href="ç产管ç/æ£æé
éå/JIT_ComplementGoodsList.html">æ£æé
éåå表</a></dd> |
| | | <dd><a lay-href="ç产管ç/éæç³è¯·å/JIT_CallGoodsBackRequestBillList.html">éæç³è¯·åå表</a></dd> |
| | | </dl> |
| | | </dd> |
| | | <dd> |
| | | <a>ç产订å</a> |
| | | <dl class="layui-nav-child"> |
| | | <dd><a lay-href="ç产管ç/ç产任å¡å/Sc_ICMOBillList.html">ç产订åç»´æ¤</a></dd> |
| | |
| | | <form id="form0" class="layui-form" lay-filter="component-form-group" action=""> |
| | | <div class="layui-card-header"> |
| | | <div class="layui-input-block"> |
| | | <button type="button" class="layui-btn" id="ToolPrint" lay-submit="" lay-filter="ToolPrint">æå°</button> |
| | | <button type="button" class="layui-btn" id="ToolPreView" lay-submit="" lay-filter="ToolPreView">é¢è§</button> |
| | | <button type="button" class="layui-btn" id="ToolTryPrint" lay-submit="" lay-filter="ToolTryPrint">è¯æå°</button> |
| | | <button type="button" class="layui-btn" id="ToolPrint" lay-submit="" lay-filter="ToolPrint">é¢è§æå°</button> |
| | | <button type="button" class="layui-btn" id="ToolCreate" lay-submit="" lay-filter="ToolCreate">çæ</button> |
| | | <button type="button" class="layui-btn" id="ToolReset" lay-submit="" lay-filter="ToolReset">éç½®</button> |
| | | <button type="button" class="layui-btn" id="ToolStock" lay-submit="" lay-filter="ToolStock">åºå</button> |
| | |
| | | return true; |
| | | } |
| | | } |
| | | |
| | | //æå° |
| | | form.on('submit(ToolPrint)', function (data) { |
| | | get_PrintReport(); |
| | | }) |
| | | |
| | | //æ¡ç çæ |
| | | form.on('submit(ToolCreate)', function (data) { |
| | |
| | | }); |
| | | } |
| | | |
| | | //æ¡ç æå° |
| | | function get_PrintReport() { |
| | | var checkStatus = table.checkStatus('mainTable2') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length>0) { |
| | | var rows = ''; |
| | | for (var i = 0; i < data.length; i++) { |
| | | rows += data[i].HItemID.toString() + ','; |
| | | } |
| | | rows = rows.substring(rows.length - 1, 0); |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['50%', '50%'] |
| | | , title: 'æå°æ¨¡çéæ©' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: false //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + rows + '&MyMsg=' + rows + '&Type=HGy_BarCodeBill', 'yes'] |
| | | , resize: false |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©è¦æå°çæ¡ç æ°æ®ï¼'); |
| | | } |
| | | } |
| | | |
| | | //é空éªè¯ |
| | | function AllowLoadData(sSubStr) { |
| | | var Result = true; |
| | |
| | | layer.msg("没æç©ææç»è®°å½", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | //if (typeof (sSubStr) != "undefined" && typeof (sSubStr) != "") { |
| | | // sSubStr = JSON.parse(sSubStr); |
| | | // for (var i = 0; i < sSubStr.length; i++) { |
| | | // if (sSubStr[i].HMaterID == "") { |
| | | // layer.msg("æç»è®°å½ç¬¬" + (i + 1) + "è¡,å¨å
·ä¿¡æ¯ä¸ºç©º!", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return Result = false; |
| | | // } |
| | | // if (sSubStr[i].HUnitID == "") { |
| | | // layer.msg("æç»è®°å½ç¬¬" + (i + 1) + "è¡,计éåä½ä¸ºç©º!", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return Result = false; |
| | | // } |
| | | // if (sSubStr[i].HWHID == "") { |
| | | // layer.msg("æç»è®°å½ç¬¬" + (i + 1) + "è¡,æ¶æä»åºä¸ºç©º!", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return Result = false; |
| | | // } |
| | | // } |
| | | //} |
| | | if (typeof (sSubStr) != "undefined" && typeof (sSubStr) != "") { |
| | | sSubStr = JSON.parse(sSubStr); |
| | | for (var i = 0; i < sSubStr.length; i++) { |
| | | if (sSubStr[i].HMainID == "") { |
| | | layer.msg("æç»è®°å½ç¬¬" + (i + 1) + "è¡,æºåä¿¡æ¯ä¸ºç©º!", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | if (sSubStr[i].HMaterID == "") { |
| | | layer.msg("æç»è®°å½ç¬¬" + (i + 1) + "è¡,ç©æä¿¡æ¯ä¸ºç©º!", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | if (sSubStr[i].HQty == "") { |
| | | layer.msg("æç»è®°å½ç¬¬" + (i + 1) + "è¡,æ°é为空!", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | } |
| | | } |
| | | else { |
| | | return Result = true; |
| | | } |
| | |
| | | |
| | | //OledbXMLReportData.GenOneRecordset(this, "select * from Customers order by CustomerID"); |
| | | //SqlXMLReportData.GenOneRecordset(this, "select * from h_v_Kf_POStockInBillList_K3 where hmainid=1781"); |
| | | SqlXMLReportData.GenOneRecordset(this, "select * from h_v_IF_BarCodeBillList where hmainid=" + Request.Params["linterid"]+ "order by hmainid desc"); |
| | | SqlXMLReportData.GenOneRecordset(this, "select * from h_v_IF_BarCodeBillList where hmainid in(" + Request.Params["linterid"]+ ") order by hmainid desc"); |
| | | } |
| | | </script> |
| | | </head> |
| | |
| | | case 'btn-view': |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | if (checkStatus.data.length>0) { |
| | | var rows = ''; |
| | | for (var i = 0; i < data.length; i++) { |
| | | rows += data[i].HItemID.toString() + ','; |
| | | } |
| | | rows = rows.substring(rows.length - 1, 0); |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['50%', '50%'] |
| | |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: false //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + data[0].hmainid.toString() + '&MyMsg=' + data[0].hmainid.toString() + '&Type=HGy_BarCodeBill', 'yes'] |
| | | , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + rows + '&MyMsg=' + rows + '&Type=HGy_BarCodeBill', 'yes'] |
| | | , resize: false |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®æå°ï¼'); |
| | | layer.msg('è¯·éæ©æ°æ®æå°ï¼'); |
| | | } |
| | | break; |
| | | case 'btn-print': |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | if (checkStatus.data.length>0) { |
| | | var rows = ''; |
| | | for (var i = 0; i < data.length; i++) { |
| | | rows += data[i].HItemID.toString() + ','; |
| | | } |
| | | rows = rows.substring(rows.length - 1, 0); |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['50%', '50%'] |
| | |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: false //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + data[0].hmainid.toString() + '&MyMsg=' + data[0].hmainid.toString() + '&Type=HGy_BarCodeBill', 'yes'] |
| | | , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + rows + '&MyMsg=' + rows + '&Type=HGy_BarCodeBill', 'yes'] |
| | | , resize: false |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®æå°ï¼'); |
| | | layer.msg('è¯·éæ©æ°æ®æå°ï¼'); |
| | | } |
| | | break; |
| | | //å·æ° |
| New file |
| | |
| | | <!DOCTYPE html> |
| | | <html> |
| | | <head> |
| | | <meta charset="utf-8" /> |
| | | <title>é
æåå表</title> |
| | | <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> |
| | | .layui-row .layui-btn layui-btn-normal { |
| | | margin: 0px 10px; |
| | | } |
| | | |
| | | .layui-inline { |
| | | margin: 0px 80px; |
| | | } |
| | | </style> |
| | | </head> |
| | | <body> |
| | | <div class="layui-fluid" style="padding: 0;"> |
| | | <div class="layui-card" style="padding: 2px;background-color: #efefef;"> |
| | | <div class="layui-card-body" style="padding: 1px;"> |
| | | <form class="layui-form" action="" lay-filter="formData" style="background-color:white;"> |
| | | <div style="padding: 10px; "> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Edit" id="Edit">éåº</button> |
| | | <!--<button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Yce" id="Yce">å¼åºExcel</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Sc" id="Sc">䏿¥</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Xc" id="Xc">䏿¥</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Ylan" id="Ylan">é¢è§</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Dyin" id="Dyin">æå°</button>--> |
| | | </div> |
| | | <div class="layui-tab" lay-filter="tab-POStockInBill"> |
| | | <div class="layui-tab-content"> |
| | | <!--åºæ¬ä¿¡æ¯--> |
| | | <div class="layui-tab-item layui-show"> |
| | | <div class="layui-form-item" style="padding-top: 10px;"> |
| | | <div class="layui-row" style="text-align:center;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 80px;font-size:25px;">é
æå</label> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 80px;">æ£æé
éåå·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" lay-verify="HRemark" name="HRemark" id="HRemark" style="display: inline-block;"> |
| | | </div> |
| | | <label class="layui-form-label"></label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HInterID" lay-verify="HInterID" id="HInterID" style="display: inline-block;"> |
| | | </div> |
| | | </div> |
| | | <button class="layui-btn layui-btn-normal" type="button" lay-submit="" lay-filter="Ppkc" id="Ppkc">å¹é
åºå</button> |
| | | <button class="layui-btn layui-btn-normal" type="button" lay-submit="" lay-filter="Ckfl" id="Ckfl">ä»åºåæ</button> |
| | | </div> |
| | | <div class="layui-tab" lay-filter=""> |
| | | <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> |
| | | </ul> |
| | | <div class="layui-tab-content"> |
| | | <!--æ£æä¿¡æ¯--> |
| | | <div class="layui-tab-item layui-show"> |
| | | <div class="layui-form-item"> |
| | | <table class="" id="mainTable" lay-filter="mainTable"></table> |
| | | </div> |
| | | </div> |
| | | <!--æ£ææç»--> |
| | | <div class="layui-tab-item"> |
| | | <div class="layui-form-item"> |
| | | <table class="" id="mainTable1" lay-filter="mainTable1"></table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </body> |
| | | </html> |
| | | <script> |
| | | |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index' //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'laydate', 'table', 'element'], function () { |
| | | //#region å
Œ
±åé |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | | , layer = layui.layer |
| | | , table = layui.table |
| | | , form = layui.form |
| | | , element = layui.element; |
| | | //æ¥è¯¢æ¡ä»¶ |
| | | var sWhere = ""; |
| | | var option = []; |
| | | //#endregion |
| | | |
| | | //#region è¿å
¥é¡µé¢å³å è½½ |
| | | |
| | | //è·å页é¢è·³è½¬åæ° |
| | | var params = get_UrlVars(); |
| | | if (typeof (params[params[0]]) != "undefined") { |
| | | sWhere = params[params[0]]; |
| | | } |
| | | |
| | | //åå§åçé¢ |
| | | set_ClearBill(); |
| | | |
| | | //#endregion |
| | | |
| | | //#region 触åäºä»¶ï¼å
æ¬form.on(){}æ ¼å¼çææç¹å»äºä»¶ãéæ©äºä»¶ç |
| | | |
| | | //è¿æ»¤æ¥è¯¢ |
| | | form.on('submit(Cx)', function () { |
| | | get_FastQuery(); |
| | | }) |
| | | |
| | | //è¡å
äºä»¶ |
| | | table.on('tool(mainTable)', function (obj) { |
| | | set_GridCellCheck(obj); //è¡å
å¿«æ·é®çé |
| | | }) |
| | | |
| | | //#endregion |
| | | |
| | | //#region æ¤é¡µé¢ææçæ¹æ³ |
| | | |
| | | //åå§åçé¢ |
| | | function set_ClearBill() |
| | | { |
| | | set_InitGrid(); |
| | | get_Display(sWhere); |
| | | |
| | | //set_InitGrid1(); |
| | | //get_Display1(sWhere); |
| | | } |
| | | //#region æ£æä¿¡æ¯ |
| | | function set_InitGrid() { |
| | | option = { |
| | | elem: '#mainTable' |
| | | //, toolbar: '#toolbarDemo' |
| | | , height: 350 |
| | | , page: true |
| | | , cellMinWidth: 90 |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , cols: [[ |
| | | //{ type: 'checkbox', fixed: 'left' } |
| | | { field: 'éå®è®¢åå·', title: 'éå®è®¢åå·',width: 150 } |
| | | , { field: 'ç产订åå·', title: 'ç产订åå·', width: 170} |
| | | , { field: '产å代ç ', title: '产å代ç ', width: 170 } |
| | | , { field: '产ååç§°', title: '产ååç§°', width: 260, } |
| | | , { field: '产åè§æ ¼åå·', title: '产åè§æ ¼åå·', width: 160 } |
| | | , { field: 'ç产车é´', title: 'ç产车é´', width: 160 } |
| | | , { field: '计åå¼å·¥æ¥æ', title: '计åå¼å·¥æ¥æ', width: 160, templet: "<div>{{d.计åå¼å·¥æ¥æ ==null ?'':layui.util.toDateString(d.计åå¼å·¥æ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 160 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 160 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 160 } |
| | | , { field: 'å项åä½', title: 'å项åä½', width: 160 } |
| | | , { field: 'åä½ç¨é', title: 'åä½ç¨é', width: 160} |
| | | , { field: '计ååææ°é', title: '计ååææ°é', width: 160 } |
| | | , { field: '嫿æ°é', title: '嫿æ°é', width: 160, edit: 'text'} |
| | | , { field: 'éææ°é', title: 'éææ°é', width: 160, edit: 'text'} |
| | | , { field: 'éæåå ', title: 'éæåå ', width: 160, edit: 'text'} |
| | | , { field: '已嫿æ°é', title: '已嫿æ°é', width: 160} |
| | | , { field: 'å·²é
éæ°é', title: 'å·²é
éæ°é', width: 160 } |
| | | , { field: 'è°åºä»åº', title: 'è°åºä»åº', width: 160, edit: 'text', event: 'Warehouse' } |
| | | , { field: 'è°åºä»åºid', title: 'è°åºä»åºid', width: 160, hide: true } |
| | | , { field: 'åºåæ°é', title: 'åºåæ°é', width: 160 } |
| | | , { field: 'è°åºä»åºåºåæ°é', title: 'è°åºä»åºåºåæ°é', width: 160 } |
| | | , { field: 'è°åºä»åºå¯ç¨åºåæ°é', title: 'è°åºä»åºå¯ç¨åºåæ°é', width: 160 } |
| | | , { field: 'å¯ç¨åºå', title: 'å¯ç¨åºå', width: 160 } |
| | | , { field: 'åºåç»ç»', title: 'åºåç»ç»', width: 160} |
| | | , { field: 'HICMOBillNo', title: 'HICMOBillNo', width: 160 } |
| | | , { field: 'æºå主å
ç ', title: 'æºå主å
ç ', width: 160 } |
| | | , { field: 'æºååå
ç ', title: 'æºååå
ç ', width: 160 } |
| | | , { field: 'HDeptID', title: 'HDeptID', hide: true } |
| | | , { field: 'HDeptNumber', title: 'HDeptNumber', hide: true } |
| | | , { field: 'HMaterialID', title: 'HMaterialID', hide: true } |
| | | , { field: 'HWHID', title: 'HWHID', hide: true } |
| | | , { field: 'HOutOrgID', title: 'HOutOrgID', hide: true } |
| | | , { field: 'HSouceInterID', title: 'HSouceInterID', hide: true } |
| | | , { field: 'HSourceEntryID', title: 'HSourceEntryID', hide: true } |
| | | , { field: 'HSourceBillNo', title: 'HSourceBillNo', hide: true } |
| | | , { field: 'HICMOInterID', title: 'HICMOInterID', hide: true } |
| | | , { field: 'HICMOEntryID', title: 'HICMOEntryID', hide: true } |
| | | , { field: 'HSTOCKID', title: 'HSTOCKID', hide: true } |
| | | ]] |
| | | }; |
| | | } |
| | | |
| | | //æ¥è¯¢å è½½æ°æ® |
| | | function get_Display(sWhere) { |
| | | |
| | | var ajaxLoad = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_ComplementGoods/ComplementGoodsBill', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option.data = data1.data; |
| | | table.render(option); |
| | | layer.close(ajaxLoad); |
| | | //layer.alert("æ¥è¯¢æå", { icon: 1 }); |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(ajaxLoad); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | //#region æç»ä¿¡æ¯ |
| | | function get_Display1(sWhere) { |
| | | |
| | | var ajaxLoad = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_ComplementGoodBill/ComplementGoodBillList', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option1.data = data1.data; |
| | | table.render(option1); |
| | | layer.close(ajaxLoad); |
| | | //layer.alert("æ¥è¯¢æå", { icon: 1 }); |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(ajaxLoad); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | function set_InitGrid1() { |
| | | option1 = { |
| | | elem: '#mainTable1' |
| | | //, toolbar: '#toolbarDemo' |
| | | , height: 350 |
| | | , page: true |
| | | , cellMinWidth: 90 |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , cols: [[ |
| | | //{ type: 'checkbox', fixed: 'left' } |
| | | { field: 'éå®è®¢åå·', title: 'éå®è®¢åå·', width: 150 } |
| | | //, { field: 'ç产订åå·', title: 'ç产订åå·', width: 170 } |
| | | //, { field: '产å代ç ', title: '产å代ç ', width: 170 } |
| | | , { field: '产ååç§°', title: '产ååç§°', width: 260, } |
| | | , { field: '产åè§æ ¼åå·', title: '产åè§æ ¼åå·', width: 160 } |
| | | , { field: 'ç产车é´', title: 'ç产车é´', width: 160 } |
| | | , { field: '计åå¼å·¥æ¥æ', title: '计åå¼å·¥æ¥æ', width: 160, templet: "<div>{{d.计åå¼å·¥æ¥æ ==null ?'':layui.util.toDateString(d.计åå¼å·¥æ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 160 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 160 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 160 } |
| | | , { field: 'å项åä½', title: 'å项åä½', width: 160 } |
| | | , { field: 'åä½ç¨é', title: 'åä½ç¨é', width: 160 } |
| | | , { field: '计ååææ°é', title: '计ååææ°é', width: 160 } |
| | | , { field: '嫿æ°é', title: '嫿æ°é', width: 160, edit: 'text' } |
| | | , { field: 'éææ°é', title: 'éææ°é', width: 160, edit: 'text' } |
| | | , { field: 'éæåå ', title: 'éæåå ', width: 160, edit: 'text' } |
| | | , { field: '已嫿æ°é', title: '已嫿æ°é', width: 160 } |
| | | , { field: 'å·²é
éæ°é', title: 'å·²é
éæ°é', width: 160 } |
| | | , { field: 'è°åºä»åº', title: 'è°åºä»åº', width: 160, edit: 'text', event: 'Warehouse' } |
| | | , { field: 'è°åºä»åºid', title: 'è°åºä»åºid', width: 160, hide: true } |
| | | , { field: 'åºåæ°é', title: 'åºåæ°é', width: 160 } |
| | | , { field: 'è°åºä»åºåºåæ°é', title: 'è°åºä»åºåºåæ°é', width: 160 } |
| | | , { field: 'è°åºä»åºå¯ç¨åºåæ°é', title: 'è°åºä»åºå¯ç¨åºåæ°é', width: 160 } |
| | | , { field: 'å¯ç¨åºå', title: 'å¯ç¨åºå', width: 160 } |
| | | , { field: 'åºåç»ç»', title: 'åºåç»ç»', width: 160 } |
| | | , { field: 'HICMOBillNo', title: 'HICMOBillNo', width: 160 } |
| | | , { field: 'æºå主å
ç ', title: 'æºå主å
ç ', width: 160 } |
| | | , { field: 'æºååå
ç ', title: 'æºååå
ç ', width: 160 } |
| | | , { field: 'HDeptID', title: 'HDeptID', hide: true } |
| | | , { field: 'HDeptNumber', title: 'HDeptNumber', hide: true } |
| | | , { field: 'HMaterialID', title: 'HMaterialID', hide: true } |
| | | , { field: 'HWHID', title: 'HWHID', hide: true } |
| | | , { field: 'HOutOrgID', title: 'HOutOrgID', hide: true } |
| | | , { field: 'HSouceInterID', title: 'HSouceInterID', hide: true } |
| | | , { field: 'HSourceEntryID', title: 'HSourceEntryID', hide: true } |
| | | , { field: 'HSourceBillNo', title: 'HSourceBillNo', hide: true } |
| | | , { field: 'HICMOInterID', title: 'HICMOInterID', hide: true } |
| | | , { field: 'HICMOEntryID', title: 'HICMOEntryID', hide: true } |
| | | , { field: 'HSTOCKID', title: 'HSTOCKID', hide: true } |
| | | ]] |
| | | }; |
| | | } |
| | | //#endregion |
| | | |
| | | //å¿«éè¿æ»¤ |
| | | function get_FastQuery() { |
| | | var MaterialNumber = $("#MaterialNumber").val(); //ç©æä»£ç |
| | | var MaterialName = $("#MaterialName").val(); //ç©æåç§° |
| | | var MaterialModel = $("#MaterialModel").val(); //ç©æè§æ ¼åå· |
| | | var HGD = $("#HGD").val(); //工段 |
| | | var HWHName = $("#HWHName").val(); //ä»åº |
| | | var Organization = $("#Organization").val(); //ç»ç» |
| | | var HBeginDate = $("#HBeginDate").val(); //æ£ææ¥æ |
| | | var HEndDate = $("#HEndDate").val(); //ç»ææ¥æ |
| | | var HDeptName = $("#HDeptName").val(); //é¨é¨ |
| | | var HJLStatus = $("#HJLStatus").val(); //æ£æç¶æ |
| | | var user = sessionStorage["HUserName"]; //å¶å人 |
| | | sWhere = { |
| | | |
| | | MaterialNumber: MaterialNumber, |
| | | MaterialName: MaterialName, |
| | | MaterialModel: MaterialModel, |
| | | HGD: HGD, |
| | | HWHName: HWHName, |
| | | Organization: Organization, |
| | | HBeginDate: HBeginDate, |
| | | HEndDate: HEndDate, |
| | | HDeptName: HDeptName, |
| | | HJLStatus: HJLStatus, |
| | | user: user |
| | | }; |
| | | get_Display(JSON.stringify(sWhere)); |
| | | sWhere = ""; |
| | | } |
| | | |
| | | //è¡å
å¿«æ·é® |
| | | function set_GridCellCheck(obj) { |
| | | $(document).off('keydown', ".layui-table-edit").on('keydown', '.layui-table-edit', function (e) { |
| | | if (event.key == "F7") { |
| | | if (obj.event == "Warehouse") { |
| | | //æå¼ç»´ä¿®é¡¹ç®å°çªä½ |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "ä»åºå表" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["90%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ["../../Baseset/åºç¡èµæ/Gy_WarehouseList.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 |
| | | , "è°åºä»åºid": checkStatus.data[0].HItemID |
| | | }) |
| | | console.log(checkStatus.data[0].HItemID) |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //è·åä¼ éæ°æ® |
| | | function get_UrlVars() { |
| | | 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; |
| | | } |
| | | |
| | | //#endregion |
| | | |
| | | }); |
| | | |
| | | |
| | | </script> |
| New file |
| | |
| | | <!DOCTYPE html> |
| | | <html> |
| | | <head> |
| | | <meta charset="utf-8" /> |
| | | <title>æ£æé
éåå表</title> |
| | | <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> |
| | | .layui-row .layui-btn layui-btn-normal { |
| | | margin: 0px 10px; |
| | | } |
| | | |
| | | .layui-inline { |
| | | margin: 0px 80px; |
| | | } |
| | | </style> |
| | | </head> |
| | | <body> |
| | | <div class="layui-fluid" style="padding: 0;"> |
| | | <div class="layui-card" style="padding: 2px;background-color: #efefef;"> |
| | | <div class="layui-card-body" style="padding: 1px;"> |
| | | <form class="layui-form" action="" lay-filter="formData" style="background-color:white;"> |
| | | <div style="padding: 10px; "> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Edit" id="Edit">éåº</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Yce" id="Yce">å¼åºExcel</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Sc" id="Sc">䏿¥</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Xc" id="Xc">䏿¥</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Ylan" id="Ylan">é¢è§</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Dyin" id="Dyin">æå°</button> |
| | | </div> |
| | | <div class="layui-tab" lay-filter="tab-POStockInBill"> |
| | | <ul class="layui-tab-title" lay-filter="tab-all"> |
| | | <li lay-id="1" style="padding:1px;" class="layui-this">åºæ¬ä¿¡æ¯</li> |
| | | </ul> |
| | | <div class="layui-tab-content"> |
| | | <!--åºæ¬ä¿¡æ¯--> |
| | | <div class="layui-tab-item layui-show"> |
| | | <div class="layui-form-item" style="padding-top: 10px;"> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">ç©æä»£ç </label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" lay-verify="MaterialNumber" name="MaterialNumber" id="MaterialNumber" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnMaterial" id="btnMaterial" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </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="MaterialName" lay-verify="MaterialName" id="MaterialName" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="MaterialID" id="MaterialID" lay-verify="MaterialID" 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="MaterialModel" id="MaterialModel" onmouseover="this.title=this.value" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">工段</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HGD" lay-verify="HGD" id="HGD" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHGD" id="btnHGD" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">ä»åº</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HWHName" lay-verify="HWHName" id="HWHName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHWHName" id="btnHWHName" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å½åç»ç»</label> |
| | | <div class="layui-input-block" style="margin-left: 120px; width: 185px;"> |
| | | <select name="Organization" id="Organization" lay-verify="Organization"> |
| | | <!--å¨ææ¸²æç»ç»--> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æ£ææ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="date" class="layui-input" lay-verify="HBeginDate" name="HBeginDate" id="HBeginDate" style="padding-left: 48px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;text-align:center;">â</label> |
| | | <div class="layui-input-block" style="margin-left: 118px;"> |
| | | <input type="date" class="layui-input" lay-verify="HEndDate" name="HEndDate" id="HEndDate" style="padding-left: 48px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">é¨é¨</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HDeptName" lay-verify="HDeptName" id="HDeptName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHDeptName" id="btnHDeptName" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æ£æç¶æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;width: 184px;"> |
| | | <select name="HJLStatus" lay-verify="HJLStatus" id="HJLStatus"> |
| | | <option value="å
¨é¨">å
¨é¨</option> |
| | | <option value="å·²æ£æ">å·²æ£æ</option> |
| | | <option value="æªæ£æ">æªæ£æ</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <!--<div class="layui-inline"> |
| | | <div class="layui-input-block" style="margin-left: 90px;"> |
| | | <input type="checkbox" name="ps" id="ps" lay-skin="primary" lay-filter="ps" title="ä»
æ¾ç¤ºæªå®å
¨é
é"> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | <div class="layui-row" style="text-align: center; margin-bottom: 20px;"> |
| | | <button class="layui-btn layui-btn-normal" type="button" lay-submit="" lay-filter="Cx" id="Cx">æ¥è¯¢</button> |
| | | <button class="layui-btn layui-btn-normal" type="button" lay-submit="" lay-filter="Jlps" id="Jlps">æ£æé
é</button> |
| | | </div> |
| | | <table class="" id="mainTable" lay-filter="mainTable"></table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </body> |
| | | </html> |
| | | <script> |
| | | |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index' //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'laydate', 'table', 'element'], function () { |
| | | //#region å
Œ
±åé |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | | , layer = layui.layer |
| | | , table = layui.table |
| | | , form = layui.form |
| | | , element = layui.element; |
| | | //æ¥è¯¢æ¡ä»¶ |
| | | var sWhere = ""; |
| | | var option = []; |
| | | //#endregion |
| | | |
| | | //#region è¿å
¥é¡µé¢å³å è½½ |
| | | |
| | | //åå§åçé¢ |
| | | set_ClearBill(); |
| | | |
| | | //#endregion |
| | | |
| | | //#region 触åäºä»¶ï¼å
æ¬form.on(){}æ ¼å¼çææç¹å»äºä»¶ãéæ©äºä»¶ç |
| | | |
| | | //è¿æ»¤æ¥è¯¢ |
| | | form.on('submit(Cx)', function () { |
| | | get_FastQuery(); |
| | | }) |
| | | |
| | | //ç©æ |
| | | form.on('submit(btnMaterial)', function () { |
| | | btnMaterial(); |
| | | }) |
| | | |
| | | //工段 |
| | | form.on('submit(btnHGD)', function () { |
| | | btnHGD(); |
| | | }) |
| | | |
| | | //ä»åº |
| | | form.on('submit(btnHWHName)', function () { |
| | | btnHWHName(); |
| | | }) |
| | | |
| | | //é¨é¨ |
| | | form.on('submit(btnHDeptName)', function () { |
| | | btnHDeptName(); |
| | | }) |
| | | |
| | | //é
éåå表 |
| | | form.on('submit(Jlps)', function () { |
| | | btnJlps(); |
| | | }) |
| | | |
| | | //è¡å
äºä»¶ |
| | | table.on('tool(mainTable)', function (obj) { |
| | | set_GridCellCheck(obj); //è¡å
å¿«æ·é®çé |
| | | }) |
| | | |
| | | //#endregion |
| | | |
| | | //#region æ¤é¡µé¢ææçæ¹æ³ |
| | | |
| | | //åå§åçé¢ |
| | | function set_ClearBill() |
| | | { |
| | | set_InitGrid(); |
| | | get_Display(sWhere); |
| | | Organ(); |
| | | //æ¶é´åå§å |
| | | $("#HBeginDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd")); |
| | | $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | } |
| | | //è·åç»ç» |
| | | function Organ() { |
| | | //è·åç»å½é¡µç»ç»å |
| | | var Organization = ''; |
| | | $.ajax({ |
| | | type: "get", |
| | | url: GetWEBURL() + "/Web/GetOrganizations", |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | var data = result.data; |
| | | for (var i = 0; i < data.length; i++) { |
| | | Organization += '<option style="color:blue;" value="' + data[i].ID + '">' + data[i].Name + '</option>'; |
| | | } |
| | | $("#Organization").append(Organization); |
| | | form.render('select'); |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | } |
| | | |
| | | function set_InitGrid() { |
| | | option = { |
| | | elem: '#mainTable' |
| | | //, toolbar: '#toolbarDemo' |
| | | , height: 350 |
| | | , page: true |
| | | , cellMinWidth: 90 |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , cols: [[ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { field: 'æ£æåæ¥æ', title: 'æ£æåæ¥æ', width: 150, templet: "<div>{{d.æ£æåæ¥æ ==null ?'':layui.util.toDateString(d.æ£æåæ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'æ£æé
éåå·', title: 'ç产订åå·', width: 170 } |
| | | , { field: 'é
é人', title: 'é
é人', width: 170 } |
| | | , { field: 'å¶å人', title: 'å¶å人', width: 260, } |
| | | , { field: 'å¶åæ¥æ', title: 'å¶åæ¥æ', width: 160, templet: "<div>{{d.å¶åæ¥æ ==null ?'':layui.util.toDateString(d.å¶åæ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 160 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 160 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 160 } |
| | | , { field: 'æ£ææ°é', title: 'æ£ææ°é', width: 160 } |
| | | , { field: 'å·²è°æ¨æ°é', title: 'å·²è°æ¨æ°é', width: 160 } |
| | | , { field: '计éåä½', title: '计éåä½', width: 160 } |
| | | , { field: '车é´', title: '车é´', width: 160 } |
| | | , { field: '工段', title: '工段', width: 160 } |
| | | , { field: '夿³¨', title: '夿³¨', width: 160 } |
| | | , { field: 'è°åºä»åº', title: 'è°åºä»åº', width: 160 } |
| | | , { field: 'è°åºä»ä½', title: 'è°åºä»ä½', width: 160 } |
| | | ]] |
| | | }; |
| | | } |
| | | |
| | | //æ¥è¯¢å è½½æ°æ® |
| | | function get_Display(sWhere) { |
| | | |
| | | var ajaxLoad = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_ComplementGoods/ComplementGoodsList', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option.data = data1.data; |
| | | table.render(option); |
| | | layer.close(ajaxLoad); |
| | | //layer.alert("æ¥è¯¢æå", { icon: 1 }); |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(ajaxLoad); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //ç©æ |
| | | function btnMaterial() { |
| | | layer.open({ |
| | | type: 2 //ç±»å |
| | | , skin: 'layui-layer-rim'//å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'ç©æå表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_MaterialList.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#MaterialID").val(checkStatus.data[0].HItemID);//ç©æid |
| | | $("#MaterialName").val(checkStatus.data[0].HName);//ç©æåç§° |
| | | $("#MaterialModel").val(checkStatus.data[0].HModel);//ç©æè§æ ¼åå· |
| | | $("#MaterialNumber").val(checkStatus.data[0].HNumber);//ç©æä»£ç |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | |
| | | //工段 --æ 表 |
| | | function btnHGD() { |
| | | layer.open({ |
| | | type: 2 //ç±»å |
| | | , skin: 'layui-layer-rim'//å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: '产åå表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_MaterialList.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#CPID").val(checkStatus.data[0].HItemID);//产åid |
| | | $("#CPName").val(checkStatus.data[0].HName);//产ååç§° |
| | | $("#CPModel").val(checkStatus.data[0].HModel);//产åè§æ ¼åå· |
| | | $("#CPNumber").val(checkStatus.data[0].HNumber);//产å代ç |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | |
| | | //ä»åº |
| | | function btnHWHName() { |
| | | layer.open({ |
| | | type: 2 //ç±»å |
| | | , skin: 'layui-layer-rim'//å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'ä»åºå表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ["../../Baseset/åºç¡èµæ/Gy_WarehouseList.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HWHName").val(checkStatus.data[0].HName);//ä»åºåç§° |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | |
| | | //é¨é¨ |
| | | function btnHDeptName() { |
| | | layer.open({ |
| | | type: 2 //ç±»å |
| | | , skin: 'layui-layer-rim'//å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'é¨é¨å表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ["../../Baseset/åºç¡èµæ/Gy_DepartmentList.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HDeptName").val(checkStatus.data[0].HName);//é¨é¨åç§° |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | |
| | | //é
éåå表 |
| | | function btnJlps() { |
| | | var CheckStatus = table.checkStatus("mainTable"); |
| | | if (CheckStatus.data.length != 1) { |
| | | return layer.msg("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } |
| | | else { |
| | | var HBillNo = CheckStatus.data[0].æ£æé
éåå·; |
| | | |
| | | layer.open({ |
| | | type: 2 //ç±»å |
| | | , skin: 'layui-layer-rim'//å ä¸è¾¹æ¡ |
| | | , area: ['100%', '100%']//å¤§å° |
| | | , title: 'é
éåå表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , maxmin: true |
| | | , content: "../../ç产管ç/æ£æé
éå/JIT_ComplementGoodsBill.html?HBillNo=" + HBillNo |
| | | }) |
| | | } |
| | | } |
| | | |
| | | //å¿«éè¿æ»¤ |
| | | function get_FastQuery() { |
| | | var MaterialNumber = $("#MaterialNumber").val(); //ç©æä»£ç |
| | | var MaterialName = $("#MaterialName").val(); //ç©æåç§° |
| | | var MaterialModel = $("#MaterialModel").val(); //ç©æè§æ ¼åå· |
| | | var HGD = $("#HGD").val(); //工段 |
| | | var HWHName = $("#HWHName").val(); //ä»åº |
| | | var Organization = $("#Organization").val(); //ç»ç» |
| | | var HBeginDate = $("#HBeginDate").val(); //æ£ææ¥æ |
| | | var HEndDate = $("#HEndDate").val(); //ç»ææ¥æ |
| | | var HDeptName = $("#HDeptName").val(); //é¨é¨ |
| | | var HJLStatus = $("#HJLStatus").val(); //æ£æç¶æ |
| | | var user = sessionStorage["HUserName"]; //å¶å人 |
| | | sWhere = { |
| | | MaterialNumber: MaterialNumber, |
| | | MaterialName: MaterialName, |
| | | MaterialModel: MaterialModel, |
| | | HGD: HGD, |
| | | HWHName: HWHName, |
| | | Organization: Organization, |
| | | HBeginDate: HBeginDate, |
| | | HEndDate: HEndDate, |
| | | HDeptName: HDeptName, |
| | | HJLStatus: HJLStatus, |
| | | user: user |
| | | }; |
| | | get_Display(JSON.stringify(sWhere)); |
| | | sWhere = ""; |
| | | } |
| | | |
| | | //è¡å
å¿«æ·é® |
| | | function set_GridCellCheck(obj) { |
| | | $(document).off('keydown', ".layui-table-edit").on('keydown', '.layui-table-edit', function (e) { |
| | | if (event.key == "F7") { |
| | | if (obj.event == "Warehouse") { |
| | | //æå¼ç»´ä¿®é¡¹ç®å°çªä½ |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "ä»åºå表" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["90%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ["../../Baseset/åºç¡èµæ/Gy_WarehouseList.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 |
| | | , "è°åºä»åºid": checkStatus.data[0].HItemID |
| | | }) |
| | | console.log(checkStatus.data[0].HItemID) |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //#endregion |
| | | |
| | | }); |
| | | |
| | | |
| | | </script> |
| | |
| | | , limits: [50, 500, 5000, 20000] |
| | | , cols: [[ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | //{ field: 'hmainid', title: 'hmainid', sort: true, width: 165 } |
| | | , { field: 'hmainid', title: 'hmainid', sort: true, width: 165, hide: true } |
| | | , { field: 'HEntryID', title: 'HEntryID', sort: true, width: 165, hide: true } |
| | | , { field: 'æ¥æ', title: 'æ¥æ', sort: true, width: 120 } |
| | | , { field: 'åæ®å·', title: 'åæ®å·', sort: true, width: 170 } |
| | | , { field: '订åè·è¸ªå·', title: '订åè·è¸ªå·', width: 105 } |
| | | //, { field: 'HDeptID', title: 'HDeptID' } |
| | | , { field: 'HDeptID', title: 'HDeptID', hide: true} |
| | | , { field: 'ç产车é´ä»£ç ', title: 'ç产车é´ä»£ç ', width: 115 } |
| | | , { field: 'ç产车é´', title: 'ç产车é´', width: 115 } |
| | | //, { field: 'HMaterID', title: 'HMaterID' } |
| | | , { field: 'HMaterID', title: 'HMaterID' , hide: true} |
| | | , { field: '产å代ç ', title: '产å代ç ', width: 160 } |
| | | , { field: '产ååç§°', title: '产ååç§°', width: 160 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 215 } |
| | | //, { field: 'hunitid', title: 'hunitid' } |
| | | , { field: 'hunitid', title: 'hunitid' , hide: true} |
| | | , { field: '计éåä½ä»£ç ', title: '计éåä½ä»£ç ', width: 115 } |
| | | , { field: '计éåä½', title: '计éåä½' } |
| | | //, { field: 'hempid', title: 'hempid' } |
| | | , { field: 'hempid', title: 'hempid' , hide: true} |
| | | , { field: 'ä¸å¡å代ç ', title: 'ä¸å¡å代ç ', width: 100 } |
| | | , { field: 'ä¸å¡å', title: 'ä¸å¡å' } |
| | | , { field: 'hcusid', title: 'hcusid' } |
| | | , { field: '客æ·ä»£ç ', title: '客æ·ä»£ç ' } |
| | | , { field: '客æ·', title: '客æ·' } |
| | | //, { field: 'HCenterID', title: 'HCenterID' } |
| | | , { field: 'HCenterID', title: 'HCenterID' , hide: true} |
| | | , { field: 'å·¥ä½ä¸å¿ä»£ç ', title: 'å·¥ä½ä¸å¿ä»£ç ' } |
| | | , { field: 'å·¥ä½ä¸å¿', title: 'å·¥ä½ä¸å¿' } |
| | | //, { field: 'hbomid', title: 'hbomid' } |
| | | , { field: 'hbomid', title: 'hbomid' , hide: true} |
| | | , { field: 'BOMåç¼ç ', title: 'BOMåç¼ç ' } |
| | | //, { field: 'HRoutingInterID', title: 'HRoutingInterID' } |
| | | , { field: 'HRoutingInterID', title: 'HRoutingInterID' , hide: true} |
| | | , { field: 'å·¥èºè·¯çº¿ä»£ç ', title: 'å·¥èºè·¯çº¿ä»£ç ' } |
| | | , { field: 'å·¥èºè·¯çº¿', title: 'å·¥èºè·¯çº¿' } |
| | | , { field: '计åå¼å·¥æ¥æ', title: '计åå¼å·¥æ¥æ' } |
| | |
| | | , { field: 'å
³èæ°é', title: 'å
³èæ°é' } |
| | | , { field: 'æªå
³èæ°é', title: 'æªå
³èæ°é' } |
| | | , { field: 'è¡¨å¤´å¤æ³¨', title: 'è¡¨å¤´å¤æ³¨' } |
| | | //, { field: 'hsubid', title: 'hsubid' } |
| | | , { field: 'hsubid', title: 'hsubid' , hide: true} |
| | | , { field: 'æºååå·', title: 'æºååå·' } |
| | | , { field: 'æºå主å
ç ', title: 'æºå主å
ç ' } |
| | | , { field: 'æºååå
ç ', title: 'æºååå
ç ' } |
| | |
| | | , data = checkStatus.data; |
| | | if (data.length === 1) { |
| | | var linterid = data[0].hmainid.toString(); |
| | | var HEntryID = data[0].HEntryID.toString(); |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'å·¥åºæµè½¬å¡-ç¼è¾' |
| | | , shift: 0//å¼¹åºå¨ç» |
| | | , content: '../../车é´ç®¡ç/å·¥åºæµè½¬å¡/Sc_ProcessExchangeBill.html?OperationType=2&linterid=' + linterid + '&HSouceBillType=3772' |
| | | , content: '../../车é´ç®¡ç/å·¥åºæµè½¬å¡/Sc_ProcessExchangeBill.html?OperationType=2&linterid=' + linterid + '&HEntryID=' + HEntryID+'&HSouceBillType=3772' |
| | | }) |
| | | } else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®ä¸æ¨ï¼'); |
| New file |
| | |
| | | <!DOCTYPE html> |
| | | <html> |
| | | <head> |
| | | <meta charset="utf-8" /> |
| | | <title>çäº§å«æå¹³å°å表</title> |
| | | <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> |
| | | .layui-row .layui-btn layui-btn-normal { |
| | | margin: 0px 10px; |
| | | } |
| | | /* .layui-inline { |
| | | margin: 0px 80px; |
| | | }*/ |
| | | </style> |
| | | </head> |
| | | <body> |
| | | <div class="layui-fluid" style="padding: 0;"> |
| | | <div class="layui-card" style="padding: 2px;background-color: #efefef;"> |
| | | <div class="layui-card-body" style="padding: 1px;"> |
| | | <form class="layui-form" action="" lay-filter="formData" style="background-color:white;"> |
| | | <div style="padding: 10px; "> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Bzjjl" id="Bzjjl">æ å件嫿</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Ptjl" id="Ptjl">é
å¥å«æ</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Zxbzjl" id="Zxbzjl">æå°å
è£
嫿</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Yce" id="Yce">å¼åºExcel</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Xc" id="Xc">䏿¥</button> |
| | | </div> |
| | | <div class="layui-collapse"> |
| | | <div class="layui-colla-item"> |
| | | <div class="layui-colla-title layui-inline"> |
| | | <div class="layui-inline"> |
| | | <span>æ´å¤</span> |
| | | </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="HSeOrderBillNo" lay-verify="HSeOrderBillNo" id="HSeOrderBillNo"> |
| | | </div> |
| | | </div> |
| | | <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="DepartmentID" name="DepartmentID" id="DepartmentID" value="0" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="text" class="layui-input" lay-verify="DepartmentName" name="DepartmentName" id="DepartmentName" value="" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnDepartment" id="btnDepartment" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ç»ç»</label> |
| | | <div class="layui-input-block" style="margin-left: 120px; width: 185px;"> |
| | | <select name="Organization" id="Organization" lay-verify="Organization"> |
| | | <!--å¨ææ¸²æç»ç»--> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-colla-content" style="padding: 0px; margin-left: 6%;"> |
| | | <div class="layui-row" style="margin-top:10px;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">ç©æä»£ç </label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" lay-verify="MaterialNumber" name="MaterialNumber" id="MaterialNumber" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnMaterial" id="btnMaterial" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </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="MaterialName" lay-verify="MaterialName" id="MaterialName" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="MaterialID" id="MaterialID" lay-verify="MaterialID" 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="MaterialModel" id="MaterialModel" onmouseover="this.title=this.value" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row" style="margin-top:10px;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">产å代ç </label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="CPNumber" lay-verify="CPNumber" id="CPNumber" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="CPID" id="CPID" lay-verify="CPID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnCP" id="btnCP" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </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="CPName" lay-verify="CPName" id="CPName" style="background-color:#efefef4d;" readonly> |
| | | </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="CPModel" lay-verify="CPModel" id="CPModel" value="" readonly onmouseover="this.title=this.value"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row" style="margin-top:10px;"> |
| | | <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="HICMOBillNo" lay-verify="HICMOBillNo" id="HICMOBillNo" value="" onmouseover="this.title=this.value"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å¼å§æ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="date" class="layui-input" lay-verify="HBeginDate" name="HBeginDate" id="HBeginDate" style="padding-left: 48px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;text-align:center;">â</label> |
| | | <div class="layui-input-block" style="margin-left: 118px;"> |
| | | <input type="date" class="layui-input" lay-verify="HEndDate" name="HEndDate" id="HEndDate" style="padding-left: 48px;"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row" style="margin-top:10px;"> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-block" style="margin-left: 90px;"> |
| | | <input type="checkbox" name="ps" id="ps" lay-skin="primary" lay-filter="ps" title="ä»
æ¾ç¤ºæªå®å
¨é
é"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-collapse"> |
| | | <div class="layui-colla-item"> |
| | | |
| | | <div class="layui-form-item" style="padding-top: 10px;"> |
| | | |
| | | |
| | | |
| | | <div class="layui-row" style="text-align: center; margin-bottom: 20px;"> |
| | | <button class="layui-btn layui-btn-normal" type="button" lay-submit="" lay-filter="Cx" id="Cx">æ¥è¯¢</button> |
| | | <button class="layui-btn layui-btn-normal" type="button" lay-submit="" lay-filter="Kcxd" id="Kcxd">åºåæ ¡å¯¹</button> |
| | | <button class="layui-btn layui-btn-normal" type="button" lay-submit="" lay-filter="Jl" id="Jl">嫿</button> |
| | | <button class="layui-btn layui-btn-normal" type="button" lay-submit="" lay-filter="Scjld" id="Scjld">çææ£æå</button> |
| | | <button class="layui-btn layui-btn-normal" type="button" lay-submit="" lay-filter="Blptl" id="Blptl">ä¸è¯åéç³è¯·æ</button> |
| | | <button class="layui-btn layui-btn-normal" type="button" lay-submit="" lay-filter="Yltl" id="Yltl">ä½ééæç³è¯·å</button> |
| | | <button class="layui-btn layui-btn-normal" type="button" lay-submit="" lay-filter="Bftl" id="Bftl">æ¥åºéæç³è¯·å</button> |
| | | <button class="layui-btn layui-btn-normal" type="button" lay-submit="" lay-filter="Sctld" id="Sctld">çæéæå</button> |
| | | <button class="layui-btn layui-btn-normal" type="button" lay-submit="" lay-filter="Hbtl" id="Hbtl">åå¹¶éæ</button> |
| | | </div> |
| | | <table class="" id="mainTable" lay-filter="mainTable"></table> |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </body> |
| | | </html> |
| | | <script> |
| | | |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index' //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'laydate', 'table', 'element'], function () { |
| | | //#region å
Œ
±åé |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | | , layer = layui.layer |
| | | , table = layui.table |
| | | , form = layui.form |
| | | , element = layui.element; |
| | | //æ¥è¯¢æ¡ä»¶ |
| | | var sWhere = ""; |
| | | var option = []; |
| | | //#endregion |
| | | |
| | | //#region è¿å
¥é¡µé¢å³å è½½ |
| | | |
| | | //åå§åçé¢ |
| | | set_ClearBill(); |
| | | |
| | | //#endregion |
| | | |
| | | //#region 触åäºä»¶ï¼å
æ¬form.on(){}æ ¼å¼çææç¹å»äºä»¶ãéæ©äºä»¶ç |
| | | |
| | | //è¿æ»¤æ¥è¯¢ |
| | | form.on('submit(Cx)', function () { |
| | | get_FastQuery(); |
| | | }) |
| | | |
| | | //éæ©çäº§è½¦é´ |
| | | form.on('submit(btnDepartment)', function () { |
| | | btnDepartment(); |
| | | }) |
| | | |
| | | //éæ©ç©æ |
| | | form.on('submit(btnMaterial)', function () { |
| | | btnMaterial(); |
| | | }) |
| | | |
| | | //éæ©äº§å |
| | | form.on('submit(btnCP)', function () { |
| | | btnCP(); |
| | | }) |
| | | |
| | | //è¡å
äºä»¶ |
| | | table.on('tool(mainTable)', function (obj) { |
| | | set_GridCellCheck(obj); //è¡å
å¿«æ·é®çé |
| | | }) |
| | | |
| | | //æ°å¢å«æå |
| | | form.on('submit(Jl)', function () { |
| | | set_AddNew_Jl(); |
| | | }) |
| | | |
| | | //æ°å¢ä¸è¯åéæç³è¯·å |
| | | form.on('submit(Blptl)', function () { |
| | | set_AddNew_Blptl(); |
| | | }) |
| | | |
| | | //æ°å¢ä½ééæç³è¯·å |
| | | form.on('submit(Yltl)', function () { |
| | | set_AddNew_Yltl(); |
| | | }) |
| | | |
| | | //æ°å¢æ¥åºéæç³è¯·å |
| | | form.on('submit(Bftl)', function () { |
| | | set_AddNew_Bftl(); |
| | | }) |
| | | |
| | | //æ°å¢æ£æå |
| | | form.on('submit(Scjld)', function () { |
| | | set_AddNew_Scjld(); |
| | | }) |
| | | |
| | | //䏿¥ |
| | | form.on('submit(Xc)', function () { |
| | | getXc(); |
| | | }) |
| | | |
| | | //#endregion |
| | | |
| | | //#region æ¤é¡µé¢ææçæ¹æ³ |
| | | |
| | | //åå§åçé¢ |
| | | function set_ClearBill() |
| | | { |
| | | set_InitGrid(); |
| | | get_Display(sWhere); |
| | | Organ(); |
| | | //æ¶é´åå§å |
| | | $("#HBeginDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd")); |
| | | $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | } |
| | | //è·åç»ç» |
| | | function Organ() { |
| | | //è·åç»å½é¡µç»ç»å |
| | | var Organization = ''; |
| | | $.ajax({ |
| | | type: "get", |
| | | url: GetWEBURL() + "/Web/GetOrganizations", |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | var data = result.data; |
| | | for (var i = 0; i < data.length; i++) { |
| | | Organization += '<option style="color:blue;" value="' + data[i].ID + '">' + data[i].Name + '</option>'; |
| | | } |
| | | $("#Organization").append(Organization); |
| | | form.render('select'); |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //è¡¨æ ¼æ°æ® |
| | | function set_InitGrid() { |
| | | option = { |
| | | elem: '#mainTable' |
| | | //, toolbar: '#toolbarDemo' |
| | | , height: 500 |
| | | , page: true |
| | | , cellMinWidth: 90 |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , cols: [[ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { field: 'éå®è®¢åå·', title: 'éå®è®¢åå·',width: 150 } |
| | | , { field: 'ç产订åå·', title: 'ç产订åå·', width: 170} |
| | | , { field: '产å代ç ', title: '产å代ç ', width: 170 } |
| | | , { field: '产ååç§°', title: '产ååç§°', width: 260, } |
| | | , { field: '产åè§æ ¼åå·', title: '产åè§æ ¼åå·', width: 160 } |
| | | , { field: 'ç产车é´', title: 'ç产车é´', width: 160 } |
| | | , { field: '计åå¼å·¥æ¥æ', title: '计åå¼å·¥æ¥æ', width: 160, templet: "<div>{{d.计åå¼å·¥æ¥æ ==null ?'':layui.util.toDateString(d.计åå¼å·¥æ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 160 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 160 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 160 } |
| | | , { field: 'å项åä½', title: 'å项åä½', width: 160 } |
| | | , { field: 'åä½ç¨é', title: 'åä½ç¨é', width: 160} |
| | | , { field: '计ååææ°é', title: '计ååææ°é', width: 160 } |
| | | , { field: '嫿æ°é', title: '嫿æ°é', width: 160, edit: 'text'} |
| | | , { field: 'éææ°é', title: 'éææ°é', width: 160, edit: 'text'} |
| | | , { field: 'éæåå ', title: 'éæåå ', width: 160, edit: 'text'} |
| | | , { field: '已嫿æ°é', title: '已嫿æ°é', width: 160} |
| | | , { field: 'å·²é
éæ°é', title: 'å·²é
éæ°é', width: 160 } |
| | | , { field: 'è°åºä»åº', title: 'è°åºä»åº', width: 160, edit: 'text', event: 'Warehouse' } |
| | | , { field: 'è°åºä»åºid', title: 'è°åºä»åºid', width: 160, hide: true } |
| | | , { field: 'åºåæ°é', title: 'åºåæ°é', width: 160 } |
| | | , { field: 'è°åºä»åºåºåæ°é', title: 'è°åºä»åºåºåæ°é', width: 160 } |
| | | , { field: 'è°åºä»åºå¯ç¨åºåæ°é', title: 'è°åºä»åºå¯ç¨åºåæ°é', width: 160 } |
| | | , { field: 'å¯ç¨åºå', title: 'å¯ç¨åºå', width: 160 } |
| | | , { field: 'åºåç»ç»', title: 'åºåç»ç»', width: 160} |
| | | , { field: 'HICMOBillNo', title: 'HICMOBillNo', width: 160 } |
| | | , { field: 'æºå主å
ç ', title: 'æºå主å
ç ', width: 160 } |
| | | , { field: 'æºååå
ç ', title: 'æºååå
ç ', width: 160 } |
| | | , { field: 'HDeptID', title: 'HDeptID', hide: true } |
| | | , { field: 'HDeptNumber', title: 'HDeptNumber', hide: true } |
| | | , { field: 'HMaterialID', title: 'HMaterialID', hide: true } |
| | | , { field: 'HWHID', title: 'HWHID', hide: true } |
| | | , { field: 'HOutOrgID', title: 'HOutOrgID', hide: true } |
| | | , { field: 'HSouceInterID', title: 'HSouceInterID', hide: true } |
| | | , { field: 'HSourceEntryID', title: 'HSourceEntryID', hide: true } |
| | | , { field: 'HSourceBillNo', title: 'HSourceBillNo', hide: true } |
| | | , { field: 'HICMOInterID', title: 'HICMOInterID', hide: true } |
| | | , { field: 'HICMOEntryID', title: 'HICMOEntryID', hide: true } |
| | | , { field: 'HSTOCKID', title: 'HSTOCKID', hide: true } |
| | | ]] |
| | | }; |
| | | } |
| | | |
| | | //æ¥è¯¢å è½½æ°æ® |
| | | function get_Display(sWhere) { |
| | | var ajaxLoad = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_ComplementGoodBill/ComplementGoodBillList', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option.data = data1.data; |
| | | table.render(option); |
| | | layer.close(ajaxLoad); |
| | | //layer.alert("æ¥è¯¢æå", { icon: 1 }); |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(ajaxLoad); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //çäº§è½¦é´ |
| | | function btnDepartment() { |
| | | layer.open({ |
| | | type: 2 //ç±»å |
| | | , skin: 'layui-layer-rim'//å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'ç产车é´å表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_DepartmentList.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#DepartmentID").val(checkStatus.data[0].HItemID);//é¨é¨id |
| | | $("#DepartmentName").val(checkStatus.data[0].HName);//é¨é¨åç§° |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | |
| | | //ç©æ |
| | | function btnMaterial() { |
| | | layer.open({ |
| | | type: 2 //ç±»å |
| | | , skin: 'layui-layer-rim'//å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'ç©æå表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_MaterialList.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#MaterialID").val(checkStatus.data[0].HItemID);//ç©æid |
| | | $("#MaterialName").val(checkStatus.data[0].HName);//ç©æåç§° |
| | | $("#MaterialModel").val(checkStatus.data[0].HModel);//ç©æè§æ ¼åå· |
| | | $("#MaterialNumber").val(checkStatus.data[0].HNumber);//ç©æä»£ç |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | |
| | | //产å |
| | | function btnCP() { |
| | | layer.open({ |
| | | type: 2 //ç±»å |
| | | , skin: 'layui-layer-rim'//å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: '产åå表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_MaterialList.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#CPID").val(checkStatus.data[0].HItemID);//产åid |
| | | $("#CPName").val(checkStatus.data[0].HName);//产ååç§° |
| | | $("#CPModel").val(checkStatus.data[0].HModel);//产åè§æ ¼åå· |
| | | $("#CPNumber").val(checkStatus.data[0].HNumber);//产å代ç |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | |
| | | //å¿«éè¿æ»¤ |
| | | function get_FastQuery() { |
| | | var HSeOrderBillNo = $("#HSeOrderBillNo").val(); //éå®è®¢åå· |
| | | var DepartmentName = $("#DepartmentName").val(); //çäº§è½¦é´ |
| | | var Organization = $("#Organization").val(); //ç»ç» |
| | | var MaterialNumber = $("#MaterialNumber").val(); //ç©æä»£ç |
| | | var MaterialName = $("#MaterialName").val(); //ç©æåç§° |
| | | var MaterialModel = $("#MaterialModel").val(); //ç©æè§æ ¼åå· |
| | | var CPNumber = $("#CPNumber").val(); //产å代ç |
| | | var CPName = $("#CPName").val(); //产ååç§° |
| | | var CPModel = $("#CPModel").val(); //产åè§æ ¼åå· |
| | | var HICMOBillNo = $("#HICMOBillNo").val(); //ç产订åå· |
| | | var HBeginDate = $("#HBeginDate").val(); //å¼å§æ¥æ |
| | | var HEndDate = $("#HEndDate").val(); //ç»ææ¥æ |
| | | var ps = $("#ps").prop("checked"); //ä»
æ¾ç¤ºæªå®å
¨é
é |
| | | if (ps) { |
| | | ps = 1; //ä»
æ¾ç¤ºæªå®å
¨é
é |
| | | } |
| | | else { |
| | | ps = 0; //å
¨é¨ |
| | | } |
| | | var user = sessionStorage["HUserName"]; //å¶å人 |
| | | sWhere = { |
| | | HSeOrderBillNo: HSeOrderBillNo, |
| | | DepartmentName: DepartmentName, |
| | | Organization: Organization, |
| | | MaterialNumber: MaterialNumber, |
| | | MaterialName: MaterialName, |
| | | MaterialModel: MaterialModel, |
| | | CPNumber: CPNumber, |
| | | CPName: CPName, |
| | | CPModel: CPModel, |
| | | HICMOBillNo: HICMOBillNo, |
| | | HBeginDate: HBeginDate, |
| | | HEndDate: HEndDate, |
| | | ps: ps, |
| | | user: user |
| | | }; |
| | | get_Display(JSON.stringify(sWhere)); |
| | | sWhere = ""; |
| | | } |
| | | |
| | | //è¡å
å¿«æ·é® |
| | | function set_GridCellCheck(obj) { |
| | | $(document).off('keydown', ".layui-table-edit").on('keydown', '.layui-table-edit', function (e) { |
| | | if (event.key == "F7") { |
| | | if (obj.event == "Warehouse") { |
| | | //æå¼ç»´ä¿®é¡¹ç®å°çªä½ |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "ä»åºå表" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["90%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ["../../Baseset/åºç¡èµæ/Gy_WarehouseList.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 |
| | | , "è°åºä»åºid": checkStatus.data[0].HItemID |
| | | }) |
| | | console.log(checkStatus.data[0].HItemID) |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //æ°å¢å«æå |
| | | function set_AddNew_Jl() { |
| | | |
| | | if (table.cache['mainTable'].length == 0) { |
| | | return layer.msg("æ æ°æ®,æ æ³å«æ!"); |
| | | } |
| | | else { |
| | | var sMainStr = JSON.stringify(table.cache['mainTable']) + ";" + sessionStorage["HUserName"] + ";" + sessionStorage["OrganizationID"];//sessionStorage["HUserName"] |
| | | |
| | | $.ajax( |
| | | { |
| | | type: "POST", |
| | | url: GetWEBURL() + "Sc_ComplementGoodBill/InsertCallGoodsBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | async: true, |
| | | data: { "msg": sMainStr }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | $('#add-btn').addClass("layui-btn-disabled").attr("disabled", true); |
| | | } |
| | | else { |
| | | layer.alert(data.Message, { icon: 5 }); |
| | | console.log("Reason" + sMainStr + "sub:" + JSON.stringify(layui.table.cache.mainTable)); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | layer.alert("é误:" + err, { icon: 5 }); |
| | | console.log("Reason" + sMainStr); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | |
| | | //æ°å¢ä¸è¯åéæç³è¯·å |
| | | function set_AddNew_Blptl() { |
| | | var CheckStatus = table.checkStatus("mainTable"); |
| | | if (CheckStatus.data.length != 1) { |
| | | return layer.msg("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } |
| | | else { |
| | | if (CheckStatus.data[0].éææ°é == "") { |
| | | return layer.msg("éææ°éä¸è½ä¸ºç©º!"); |
| | | } |
| | | |
| | | var sMainStr = JSON.stringify(table.checkStatus("mainTable").data) + ";" + sessionStorage["HUserName"] + ";" + sessionStorage["OrganizationID"];//sessionStorage["HUserName"] |
| | | |
| | | $.ajax( |
| | | { |
| | | type: "POST", |
| | | url: GetWEBURL() + "Sc_ComplementGoodBill/Insert_BLP_ICStockTuiBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | async: true, |
| | | data: { "msg": sMainStr }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | $('#add-btn').addClass("layui-btn-disabled").attr("disabled", true); |
| | | } |
| | | else { |
| | | layer.alert(data.Message, { icon: 5 }); |
| | | console.log("Reason" + sMainStr + "sub:" + JSON.stringify(layui.table.cache.mainTable)); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | layer.alert("é误:" + err, { icon: 5 }); |
| | | console.log("Reason" + sMainStr); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | |
| | | //æ°å¢ä½ééæç³è¯·å |
| | | function set_AddNew_Yltl() { |
| | | var CheckStatus = table.checkStatus("mainTable"); |
| | | if (CheckStatus.data.length != 1) { |
| | | return layer.msg("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } |
| | | else { |
| | | if (CheckStatus.data[0].éææ°é == "") { |
| | | return layer.msg("éææ°éä¸è½ä¸ºç©º!"); |
| | | } |
| | | var sMainStr = JSON.stringify(table.checkStatus("mainTable").data) + ";" + sessionStorage["HUserName"] + ";" + sessionStorage["OrganizationID"];//sessionStorage["HUserName"] |
| | | |
| | | $.ajax( |
| | | { |
| | | type: "POST", |
| | | url: GetWEBURL() + "Sc_ComplementGoodBill/Insert_YL_ICStockTuiBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | async: true, |
| | | data: { "msg": sMainStr }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | $('#add-btn').addClass("layui-btn-disabled").attr("disabled", true); |
| | | } |
| | | else { |
| | | layer.alert(data.Message, { icon: 5 }); |
| | | console.log("Reason" + sMainStr + "sub:" + JSON.stringify(layui.table.cache.mainTable)); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | layer.alert("é误:" + err, { icon: 5 }); |
| | | console.log("Reason" + sMainStr); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | |
| | | //æ°å¢æ¥åºéæç³è¯·å |
| | | function set_AddNew_Bftl() { |
| | | var CheckStatus = table.checkStatus("mainTable"); |
| | | if (CheckStatus.data.length != 1) { |
| | | return layer.msg("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } |
| | | else { |
| | | if (CheckStatus.data[0].éææ°é == "") { |
| | | return layer.msg("éææ°éä¸è½ä¸ºç©º!"); |
| | | } |
| | | var sMainStr = JSON.stringify(table.checkStatus("mainTable").data) + ";" + sessionStorage["HUserName"] + ";" + sessionStorage["OrganizationID"];//sessionStorage["HUserName"] |
| | | |
| | | $.ajax( |
| | | { |
| | | type: "POST", |
| | | url: GetWEBURL() + "Sc_ComplementGoodBill/Insert_BF_ICStockTuiBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | async: true, |
| | | data: { "msg": sMainStr }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | $('#add-btn').addClass("layui-btn-disabled").attr("disabled", true); |
| | | } |
| | | else { |
| | | layer.alert(data.Message, { icon: 5 }); |
| | | console.log("Reason" + sMainStr + "sub:" + JSON.stringify(layui.table.cache.mainTable)); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | layer.alert("é误:" + err, { icon: 5 }); |
| | | console.log("Reason" + sMainStr); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | |
| | | //æ°å¢æ£æå |
| | | function set_AddNew_Scjld() { |
| | | if (table.cache['mainTable'].length == 0) { |
| | | return layer.msg("æ æ°æ®,æ æ³æ£æ!"); |
| | | } |
| | | else { |
| | | layer.confirm('ç¡®å®è¦çææ£æåï¼', { |
| | | btn: ['ç¡®å®', 'åæ¶'] //æé® |
| | | , btn1: function () { |
| | | var sMainStr = JSON.stringify(table.cache['mainTable']) + ";" + sessionStorage["HUserName"] + ";" + sessionStorage["OrganizationID"];//sessionStorage["HUserName"] |
| | | |
| | | $.ajax( |
| | | { |
| | | type: "POST", |
| | | url: GetWEBURL() + "Sc_ComplementGoodBill/Insert_JL_ICStockTuiBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | async: true, |
| | | data: { "msg": sMainStr }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | $('#add-btn').addClass("layui-btn-disabled").attr("disabled", true); |
| | | } |
| | | else { |
| | | layer.alert(data.Message, { icon: 5 }); |
| | | console.log("Reason" + sMainStr + "sub:" + JSON.stringify(layui.table.cache.mainTable)); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | layer.alert("é误:" + err, { icon: 5 }); |
| | | console.log("Reason" + sMainStr); |
| | | } |
| | | }); |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | |
| | | //䏿¥ |
| | | function getXc() { |
| | | var CheckStatus = table.checkStatus("mainTable"); |
| | | if (CheckStatus.data.length != 1) { |
| | | return layer.msg("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } |
| | | else { |
| | | var HSouceInterID = CheckStatus.data[0].HSouceInterID; |
| | | var HSourceEntryID = CheckStatus.data[0].HSourceEntryID; |
| | | |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'å«ææ£æä¿¡æ¯æ¥è¯¢' |
| | | , shift: 0//å¼¹åºå¨ç» |
| | | , content: '../çäº§å«æå¹³å°/JIT_HlpBillList.html?HSourceInterID=' + HSouceInterID + '&HSourceEntryID=' + HSourceEntryID |
| | | }) |
| | | } |
| | | } |
| | | //#endregion |
| | | |
| | | }); |
| | | |
| | | |
| | | </script> |
| New file |
| | |
| | | <!DOCTYPE html> |
| | | <html> |
| | | <head> |
| | | <meta charset="utf-8" /> |
| | | <title>å«ææ£æä¿¡æ¯æ¥è¯¢</title> |
| | | <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> |
| | | </head> |
| | | <body> |
| | | <div class="layui-fluid" style="padding: 0;"> |
| | | <div class="layui-card" style="padding: 2px;background-color: #efefef;"> |
| | | <div class="layui-card-body" style="padding: 1px;"> |
| | | <form class="layui-form" action="" lay-filter="formData" style="background-color:white;"> |
| | | <div style="padding: 10px; "> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Cancel" id="Cancel">éåº</button> |
| | | </div> |
| | | <table class="" id="mainTable" lay-filter="mainTable"></table> |
| | | <!--<div class="layui-tab" lay-filter="tab-POStockInBill"> |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-tab-item layui-show"> |
| | | <div class="layui-form-item" style="padding-top: 10px;"> |
| | | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div>--> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </body> |
| | | </html> |
| | | <script> |
| | | |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index' //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'laydate', 'table', 'element'], function () { |
| | | //#region å
Œ
±åé |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | | , layer = layui.layer |
| | | , table = layui.table |
| | | , form = layui.form |
| | | , element = layui.element; |
| | | //æ¥è¯¢æ¡ä»¶ |
| | | var sWhere = ""; |
| | | var option = []; |
| | | HSouceInterID = 0; |
| | | HSourceEntryID = 0; |
| | | var HMaker = sessionStorage["HUserName"]; |
| | | //#endregion |
| | | |
| | | //#region è¿å
¥é¡µé¢å³å è½½ |
| | | |
| | | //è·å页é¢è·³è½¬åæ° |
| | | var params = get_UrlVars(); |
| | | if (typeof (params[params[0]]) != "undefined") { |
| | | sWhere = { |
| | | HSouceInterID: params[params[0]], |
| | | HSourceEntryID: params[params[1]], |
| | | user: HMaker |
| | | } |
| | | sWhere = JSON.stringify(sWhere); |
| | | } |
| | | |
| | | //åå§åçé¢ |
| | | set_ClearBill(); |
| | | |
| | | //#endregion |
| | | |
| | | //#region 触åäºä»¶ï¼å
æ¬form.on(){}æ ¼å¼çææç¹å»äºä»¶ãéæ©äºä»¶ç |
| | | |
| | | //éåº |
| | | form.on('submit(Cancel)', function () { |
| | | Pub_Close(1); |
| | | }) |
| | | |
| | | //è¡å
äºä»¶ |
| | | table.on('tool(mainTable)', function (obj) { |
| | | set_GridCellCheck(obj); //è¡å
å¿«æ·é®çé |
| | | }) |
| | | |
| | | //æ°å¢å«æå |
| | | form.on('submit(Jl)', function () { |
| | | set_AddNew_Jl(); |
| | | }) |
| | | //#endregion |
| | | |
| | | //#region æ¤é¡µé¢ææçæ¹æ³ |
| | | |
| | | //åå§åçé¢ |
| | | function set_ClearBill() |
| | | { |
| | | set_InitGrid(); |
| | | get_Display(sWhere); |
| | | } |
| | | |
| | | function set_InitGrid() { |
| | | option = { |
| | | elem: '#mainTable' |
| | | //, toolbar: '#toolbarDemo' |
| | | , height: 550 |
| | | , page: true |
| | | , cellMinWidth: 90 |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , cols: [[ |
| | | /* { type: 'checkbox', fixed: 'left' }*/ |
| | | { field: 'HBillType', title: 'HBillType',width: 150 } |
| | | , { field: 'æ¯å¦æ£æ', title: 'æ¯å¦æ£æ', width: 170} |
| | | , { field: '嫿ååå·', title: '嫿ååå·', width: 170 } |
| | | , { field: 'ç»ç»', title: 'ç»ç»', width: 260, } |
| | | , { field: 'è°åºç»ç»', title: 'è°åºç»ç»', width: 160 } |
| | | , { field: 'æ¥æ', title: 'æ¥æ', width: 160, templet: "<div>{{d.æ¥æ ==null ?'':layui.util.toDateString(d.æ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'éå®è®¢å', title: 'éå®è®¢å', width: 160 } |
| | | , { field: 'ç产订å', title: 'ç产订å', width: 160} |
| | | , { field: 'ç¨ææ¸
åå·', title: 'ç¨ææ¸
åå·', width: 160 } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 160 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 160 } |
| | | , { field: '嫿æ°é', title: '嫿æ°é', width: 160 } |
| | | , { field: 'å«æäºº', title: 'å«æäºº', width: 160} |
| | | , { field: 'å«ææ¥æ', title: 'å«ææ¥æ', width: 160, templet: "<div>{{d.å«ææ¥æ ==null ?'':layui.util.toDateString(d.å«ææ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'é¨é¨', title: 'é¨é¨', width: 160} |
| | | , { field: 'ä»åº', title: 'ä»åº', width: 160 } |
| | | , { field: '工段', title: '工段', width: 160} |
| | | ]] |
| | | }; |
| | | } |
| | | |
| | | //æ¥è¯¢å è½½æ°æ® |
| | | function get_Display(sWhere) { |
| | | var ajaxLoad = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_ComplementGoodBill/HlpBillList', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere}, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option.data = data1.data; |
| | | table.render(option); |
| | | layer.close(ajaxLoad); |
| | | //layer.alert("æ¥è¯¢æå", { icon: 1 }); |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(ajaxLoad); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //è¡å
å¿«æ·é® |
| | | function set_GridCellCheck(obj) { |
| | | $(document).off('keydown', ".layui-table-edit").on('keydown', '.layui-table-edit', function (e) { |
| | | if (event.key == "F7") { |
| | | if (obj.event == "Warehouse") { |
| | | //æå¼ç»´ä¿®é¡¹ç®å°çªä½ |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "ä»åºå表" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["90%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ["../../Baseset/åºç¡èµæ/Gy_WarehouseList.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 |
| | | , "è°åºä»åºid": checkStatus.data[0].HItemID |
| | | }) |
| | | console.log(checkStatus.data[0].HItemID) |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //è·åä¼ éæ°æ® |
| | | function get_UrlVars() { |
| | | 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; |
| | | } |
| | | |
| | | //#endregion |
| | | |
| | | }); |
| | | |
| | | |
| | | </script> |
| | |
| | | <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="HDeptName" id="HDeptName" lay-verify="HDeptName" autocomplete="off" class="layui-input"> |
| | | <input type="hidden" name="HDeptID" id="HDeptID" lay-verify="HDeptID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs3"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HDeptID-BT">...</button> |
| | | </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"> |
| | |
| | | $("#HBillNo").val(""); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | //url: GetWEBURL() + "/Web/UpdatePOInStockBillPrintQty", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | type: "GET", |
| | | data: { "HBillType": '1201' }, |
| | | data: { "HBillType": '3711' }, |
| | | success: function (d) { |
| | | //console.log(d.data); |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | |
| | | , 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(HSupID-BT)', function () {//éæ©ä¾åºå |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'ä¾åºåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_SupplierList.html', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | |
| | | //} |
| | | //if (AllowLoadData(sSubStr, 'HBarCode') != false) {//é空éªè¯ |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/POStockInBill/get_CheckTypeByBarCode_Json", |
| | | url: GetWEBURL() + "/ICMOReportBill/get_CheckTypeByBarCode_Json1", |
| | | type: "GET", |
| | | data: { "sCode": sBarCode, "sInterID": sInterID, "sBillNo": sBillNo, "sBillType": sBillType, "sMaker": sessionStorage["HUserName"], "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": sessionStorage["SourceFlag"], "sSourceBillNo": sSourceBillNo, "sSourceType": '3710', "HOWNERID": sessionStorage["OrganizationID"] }, |
| | | data: { "sCode": sBarCode, "sInterID": sInterID, "sBillType": sBillType, "sBillNo": sBillNo, "sMaker": sessionStorage["HUserName"], "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": sessionStorage["SourceFlag"], "sSourceBillNo": sSourceBillNo, "sSourceType": '3710', "HOWNERID": sessionStorage["OrganizationID"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | if (result.data.HBarType == 'ä»åºæ¡ç ') { |
| | |
| | | $("#HSourceBillNo").val(result.data.HSourceBillNo); |
| | | sessionStorage["SourceFlag"] = true; |
| | | //è·åæºåç±»åãæºååå· |
| | | if (result.data.HSourceBillType == "1102") { |
| | | $("#HBillType").val("1102"); |
| | | if (result.data.HSourceBillType == "3710") { |
| | | $("#HBillType").val("3710"); |
| | | |
| | | } |
| | | else if (result.data.HSourceBillType == "1103") { |
| | | $("#HBillType").val("1103"); |
| | | } |
| | | else { |
| | | $("#HBillType").val("æå·¥å½å
¥"); |
| | |
| | | } |
| | | else |
| | | { |
| | | $("#HSupName").val(result.data.hSupNameField); |
| | | $("#HSupID").val(result.data.hSupIDField); |
| | | //$("#HSupName").val(result.data.hSupNameField); |
| | | //$("#HSupID").val(result.data.hSupIDField); |
| | | //$("#HDeptName").val(result.data.HDept); |
| | | //$("#HDeptID").val(result.data.HDeptID); |
| | | $("#HSourceBillNo").val(result.data.hSourceBillNoField); |
| | | sessionStorage["SourceFlag"] = true; |
| | | //è·åæºåç±»åãæºååå· |
| | | if (result.data.hSourceBillTypeField == "1102") { |
| | | $("#HBillType").val("1102"); |
| | | if (result.data.hSourceBillTypeField == "3710") { |
| | | $("#HBillType").val("3710"); |
| | | |
| | | } |
| | | else if (result.data.hSourceBillTypeField == "1103") { |
| | | $("#HBillType").val("1103"); |
| | | } |
| | | else { |
| | | $("#HBillType").val("æå·¥å½å
¥"); |
| | |
| | | layer.load(3) |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | , url: GetWEBURL() + '/POStockInBill/DisBillEntryList_Webs_Json' |
| | | , url: GetWEBURL() + '/ICMOReportBill/DisBillEntryList_Webs_Json' |
| | | , where: { HBillID: sInterID, HBillType: '3711', sWhere: '' } |
| | | , cellMinWidth : 115 |
| | | , cols: [[ |
| | |
| | | } |
| | | // |
| | | $.ajax({ |
| | | //url: "http://61.130.49.162:9090/WMSAPI///POStockInBill/set_SavePonderationBillMain_Temp_Source_Fast_Json", |
| | | url: GetWEBURL() + "/ICMOReportBill/set_SaveICMOReportBill", |
| | | url: GetWEBURL() + "/ICMOReportBill/set_SavePonderationBillMain_Temp_Source_Fast_Json_New", |
| | | type: "GET", |
| | | data: { "HSourceBillType": HSourceBillType, "HSourceBillNo": HSourceBillNo, "sInterID": sInterID, "sBillNo": sBillNo }, |
| | | success: function (result) { |
| | |
| | | //, url: 'http://61.130.49.162:9090/WMSAPI///POStockInBill/DisBillEntryList_Webs_Json' |
| | | , url: GetWEBURL() + '/ICMOReportBill/DisBillEntryList_Webs_Json' |
| | | //, toolbar: '#toolbarDemo' |
| | | , where: { HBillID: sInterID, HBillType: '1201', sWhere: '' } |
| | | , where: { HBillID: sInterID, HBillType: '3711', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HQty', title: 'æ°é', sort: true } |
| New file |
| | |
| | | <!DOCTYPE html> |
| | | <html> |
| | | <head> |
| | | <meta charset="utf-8" /> |
| | | <title>éæç³è¯·åå表</title> |
| | | <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all"> |
| | | <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> |
| | | <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | </head> |
| | | <body> |
| | | <div class="layui-fluid"> |
| | | <div class="layui-col-md12"> |
| | | <div class="layui-card" style="padding: 1px"> |
| | | <div class="layui-card-body" style="padding: 1px;"> |
| | | <form class="layui-form" action="" lay-filter="component-form-group"> |
| | | <div class="layui-collapse"> |
| | | <div class="layui-colla-item"> |
| | | <div class="layui-colla-title layui-inline"> |
| | | <div class="layui-inline"> |
| | | <span>æ´å¤</span> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¼å§æ¥æ</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input" id="HBeginDate" 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="HEndDate" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æ¥åºåå·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HBillNo" id="HBillNo" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">éç½®</button> |
| | | <div class="layui-colla-content" style="margin-left: 4%;"> |
| | | <div class="layui-row" style="margin-top:10px;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">ç©æä»£ç </label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" lay-verify="MaterialNumber" name="MaterialNumber" id="MaterialNumber" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnMaterial" id="btnMaterial" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </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="MaterialName" lay-verify="MaterialName" id="MaterialName" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="MaterialID" id="MaterialID" lay-verify="MaterialID" 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="MaterialModel" id="MaterialModel" onmouseover="this.title=this.value" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row" style="margin-top:10px;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">ç产车é´</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HDeptName" lay-verify="HDeptName" id="HDeptName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHDept" id="btnHDept" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">工段</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="ProcMul" lay-verify="ProcMul" id="ProcMul" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnProcMul" id="btnProcMul" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <table class="" id="mainTable" lay-filter="mainTable"></table> |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_DeleteBill"><i class="layui-icon layui-icon-delete"></i>å é¤</button> |
| | | </div> |
| | | </script> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <script> |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index', //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate'], function () { |
| | | |
| | | //#region å
Œ
±åé |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | | , layer = layui.layer |
| | | , table = layui.table |
| | | , form = layui.form |
| | | , element = layui.element |
| | | , laypage = layui.laypage |
| | | , laydate = layui.laydate |
| | | |
| | | var sWhere = ""; |
| | | var option = []; |
| | | //#endregion |
| | | |
| | | //#region è¿å
¥é¡µé¢å³å è½½ |
| | | |
| | | //åå§åçé¢ |
| | | set_ClearBill(); |
| | | |
| | | //#endregion |
| | | |
| | | //#region 触åäºä»¶ï¼å
æ¬form.on(){}æ ¼å¼çææç¹å»äºä»¶ãéæ©äºä»¶ç |
| | | |
| | | //#region 头工å
·æ äºä»¶ |
| | | table.on("toolbar(mainTable)", function (obj) { |
| | | switch (obj.event) { |
| | | //å é¤ |
| | | case 'set_DeleteBill': set_DeleteBill(); |
| | | break; |
| | | }; |
| | | }); |
| | | |
| | | //#endregion |
| | | |
| | | //#region æ¥è¯¢æé® |
| | | form.on('submit(btnSearch)', function (data) { |
| | | get_FastQuery(); |
| | | }); |
| | | //#endregion |
| | | |
| | | //éæ©ç©æ |
| | | form.on('submit(btnMaterial)', function (data) { |
| | | btnMaterial(); |
| | | }) |
| | | |
| | | //éæ©çäº§è½¦é´ |
| | | form.on('submit(btnHDept)', function (data) { |
| | | btnHDept(); |
| | | }) |
| | | |
| | | //éæ©å·¥æ®µ |
| | | form.on('submit(btnProcMul)', function (data) { |
| | | btnProcMul(); |
| | | }) |
| | | |
| | | //éç½®æé® |
| | | form.on('submit(btnReSearch)', function (data) { |
| | | set_ClearQuery(); |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region æ¤é¡µé¢ææçæ¹æ³ |
| | | |
| | | //#region åå§åçé¢ |
| | | function set_ClearBill() { |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | | //æ¥è¯¢ |
| | | get_Display(sWhere); |
| | | //æ¥æåå§å |
| | | $("#HBeginDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd")); |
| | | $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | } |
| | | //#endregion |
| | | |
| | | function set_InitGrid() { |
| | | option = { |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , height: 570 |
| | | , page: true |
| | | , cellMinWidth: 90 |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , cols: [[ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | /* { field: 'hmainid', title: 'hmainid', width: 110 }*/ |
| | | , { field: 'åæ®å·', title: 'åæ®å·', sort: true, width: 165 } |
| | | , { field: 'æ¥æ', title: 'æ¥æ', width: 200, templet: "<div>{{d.æ¥æ ==null ?'':layui.util.toDateString(d.æ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'åæ®ç±»å', title: 'åæ®ç±»å' } |
| | | , { field: 'è¡¨å¤´å¤æ³¨', title: 'è¡¨å¤´å¤æ³¨', width: 170 } |
| | | , { field: 'éå人', title: 'éå人', width: 170 } |
| | | , { field: 'é忥æ', title: 'é忥æ', width: 200, templet: "<div>{{d.é忥æ ==null ?'':layui.util.toDateString(d.é忥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'éååå ', title: 'éååå ', width: 170 } |
| | | , { field: 'å®¡æ ¸äºº', title: 'å®¡æ ¸äºº' } |
| | | , { field: 'å®¡æ ¸æ¥æ', title: 'å®¡æ ¸æ¥æ', width: 200, templet: "<div>{{d.å®¡æ ¸æ¥æ ==null ?'':layui.util.toDateString(d.å®¡æ ¸æ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'å¶å人', title: 'å¶å人' } |
| | | , { field: 'å¶åæ¥æ', title: 'å¶åæ¥æ', width: 200, templet: "<div>{{d.å¶åæ¥æ ==null ?'':layui.util.toDateString(d.å¶åæ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'ä¿®æ¹äºº', title: 'ä¿®æ¹äºº' } |
| | | , { field: 'ä¿®æ¹æ¥æ', title: 'ä¿®æ¹æ¥æ', width: 200, templet: "<div>{{d.ä¿®æ¹æ¥æ ==null ?'':layui.util.toDateString(d.ä¿®æ¹æ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'å
³é人', title: 'å
³é人', width: 170 } |
| | | , { field: 'å
³éæ¥æ', title: 'å
³éæ¥æ', width: 200, templet: "<div>{{d.å
³éæ¥æ ==null ?'':layui.util.toDateString(d.å
³éæ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'å
³éç±»å', title: 'å
³éç±»å', width: 170 } |
| | | , { field: 'ä½åºäºº', title: 'ä½åºäºº' } |
| | | , { field: 'ä½åºæ¥æ', title: 'ä½åºæ¥æ', width: 200, templet: "<div>{{d.ä½åºæ¥æ ==null ?'':layui.util.toDateString(d.ä½åºæ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'éæäºº', title: 'éæäºº', width: 160 } |
| | | , { field: 'æ¬è¿äºº', title: 'æ¬è¿äºº', width: 160 } |
| | | , { field: 'éªæ¶äºº', title: 'éªæ¶äºº', width: 160 } |
| | | , { field: 'è°åºç»ç»', title: 'è°åºç»ç»', width: 160 } |
| | | , { field: 'è°å
¥ç»ç»', title: 'è°å
¥ç»ç»', width: 160 } |
| | | , { field: 'éææ¨¡å¼', title: 'éææ¨¡å¼', width: 160 } |
| | | , { field: 'æºååå·', title: 'æºååå·', width: 160 } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 160 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 160 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 160 } |
| | | , { field: 'éåæ°é', title: 'éåæ°é', width: 160 } |
| | | , { field: 'ä»åºä»£ç ', title: 'ä»åºä»£ç ', width: 160 } |
| | | , { field: 'è°å
¥ä»åº', title: 'è°å
¥ä»åº', width: 160 } |
| | | , { field: 'è°å
¥ä»ä½', title: 'è°å
¥ä»ä½', width: 160 } |
| | | , { field: 'è°åºä»åº', title: 'è°åºä»åº', width: 160 } |
| | | , { field: 'è°åºä»ä½', title: 'è°åºä»ä½', width: 160 } |
| | | , { field: '责任é¨é¨ä»£ç ', title: '责任é¨é¨ä»£ç ', width: 160 } |
| | | , { field: '责任é¨é¨åç§°', title: '责任é¨é¨åç§°', width: 160 } |
| | | ]] |
| | | }; |
| | | } |
| | | |
| | | //éæ©ç©æ |
| | | function btnMaterial() { |
| | | layer.open({ |
| | | type: 2 //ç±»å |
| | | , skin: 'layui-layer-rim'//å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'ç©æå表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_MaterialList.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#MaterialName").val(checkStatus.data[0].HName);//ç©æåç§° |
| | | $("#MaterialModel").val(checkStatus.data[0].HModel);//ç©æè§æ ¼åå· |
| | | $("#MaterialNumber").val(checkStatus.data[0].HNumber);//ç©æä»£ç |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | |
| | | //éæ©çäº§è½¦é´ |
| | | function btnHDept() { |
| | | layer.open({ |
| | | type: 2 //ç±»å |
| | | , skin: 'layui-layer-rim'//å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'ç产车é´å表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_DepartmentList.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HDeptName").val(checkStatus.data[0].HName);//é¨é¨åç§° |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | |
| | | //éæ©å·¥æ®µ ææ |
| | | function btnProcMul() { |
| | | layer.open({ |
| | | type: 2 //ç±»å |
| | | , skin: 'layui-layer-rim'//å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: '工段å表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | //, content: ['../../Baseset/åºç¡èµæ/Gy_DepartmentList.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#ProcMul").val(checkStatus.data[0].HName);//工段åç§° |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | |
| | | //#region éç½®è¿æ»¤æ¡ä»¶æ¹æ³ |
| | | function set_ClearQuery() { |
| | | $("#HBeginDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd"));//å¼å§æ¥æ |
| | | $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd"));//ç»ææ¥æ |
| | | $("#HBillNo").val("");//æ¥åºæ®å· |
| | | $("#MaterialCode").val("");//ç©æä»£ç |
| | | $("#MaterialName").val("");//ç©æåç§° |
| | | $("#MaterialModel").val("");//è§æ ¼åå· |
| | | $("#HDeptName").val("");//çäº§è½¦é´ |
| | | $("#ProcMul").val("");//工段 |
| | | |
| | | $("#btnSearch").click();//å·æ° |
| | | sWhere = ""; |
| | | } |
| | | //#endregion |
| | | |
| | | //#region æ¥è¯¢ |
| | | function get_Display(sWhere) { |
| | | var ajaxLoad = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_CallGoodsBackRequestBill/JIT_CallGoodsBackRequestBillList', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option.data = data1.data; |
| | | table.render(option); |
| | | layer.close(ajaxLoad); |
| | | //layer.alert("æ¥è¯¢æå", { icon: 1 }); |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(ajaxLoad); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | //#region å¿«éè¿æ»¤ |
| | | function get_FastQuery() { |
| | | var HBeginDate = $("#HBeginDate").val();//å¼å§æ¶é´ |
| | | var HEndDate = $("#HEndDate").val();//ç»ææ¶é´ |
| | | var HBillNo = $("#HBillNo").val();//éå®è®¢åå· |
| | | var MaterialNumber = $("#MaterialNumber").val();//ç©æä»£ç |
| | | var MaterialName = $("#MaterialName").val();//ç©æåç§° |
| | | var MaterialModel = $("#MaterialModel").val();//è§æ ¼åå· |
| | | var HDeptName = $("#HDeptName").val();//çäº§è½¦é´ |
| | | var ProcMul = $("#ProcMul").val();//工段 |
| | | var Hmaker = sessionStorage["HUserName"] ;//å½åç¨æ· |
| | | var HOrgID = sessionStorage["OrganizationID"];//ç»ç» |
| | | |
| | | sWhere = { |
| | | HBeginDate: HBeginDate, |
| | | HEndDate: HEndDate, |
| | | HBillNo: HBillNo, |
| | | MaterialNumber: MaterialNumber, |
| | | MaterialName: MaterialName, |
| | | MaterialModel: MaterialModel, |
| | | HDeptName: HDeptName, |
| | | ProcMul: ProcMul, |
| | | Hmaker: Hmaker, |
| | | HOrgID: HOrgID |
| | | } |
| | | |
| | | get_Display(JSON.stringify(sWhere)); |
| | | sWhere = "";//è°ç¨æ¥å£åæ¸
空sWhereç¼å |
| | | } |
| | | //#endregion |
| | | |
| | | //å é¤ |
| | | function set_DeleteBill() { |
| | | var CheckStatus = table.checkStatus("mainTable"); |
| | | |
| | | if (CheckStatus.data.length != 1) { |
| | | return layer.msg("è¯·éæ©ä¸æ¡æ°æ®!") |
| | | } else { |
| | | layer.confirm('æ¨ç¡®å®è¦å é¤åï¼', { |
| | | btn: ['ç¡®å®', 'åæ¶'] //æé® |
| | | , btn1: function () { |
| | | var HInterID = CheckStatus.data[0].hmainid; //è·åç¼å· |
| | | var HEntryID = CheckStatus.data[0].hsubid; //è·åç¬¬å æ¡åæ°æ® |
| | | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_CallGoodsBackRequestBill/DelCallGoodsBackRequestBill' |
| | | , type: "GET" |
| | | , data: { "HInterID": HInterID, "HEntryID": HEntryID, "User": 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); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | ////éè½½tree |
| | | //tree.reload('treeDepartment', {}); |
| | | }); |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | |
| | | //#endregion |
| | | |
| | | //以䏿¯layui模å |
| | | }); |
| | | </script> |
| | | </body> |
| | | </html> |
| | |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 20000 |
| | |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit"><i class="layui-icon layui-icon-logout"></i>éåº</button>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_DeleteBill"><i class="layui-icon layui-icon-delete"></i>å é¤</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-view"><i class="layui-icon layui-icon-tips"></i>é¢è§</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-print"><i class="layui-icon layui-icon-print"></i>æå°</button> |
| | | |
| | | </div> |
| | | </script> |
| | |
| | | , element = layui.element |
| | | , laypage = layui.laypage |
| | | , laydate = layui.laydate |
| | | |
| | | |
| | | var sWhere = ""; |
| | | var option = []; |
| | | //#endregion |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | ////#region å·æ° |
| | | //function get_Refresh() { |
| | | // set_ClearQuery(); |
| | | // get_Display(sWhere); |
| | | //} |
| | | ////#endregion |
| | | //å é¤ |
| | | function set_DeleteBill() { |
| | | var CheckStatus = table.checkStatus("mainTable"); |
| | | |
| | | if (CheckStatus.data.length != 1) { |
| | | return layer.msg("è¯·éæ©ä¸æ¡æ°æ®!") |
| | | } else { |
| | | layer.confirm('æ¨ç¡®å®è¦å é¤åï¼', { |
| | | btn: ['ç¡®å®', 'åæ¶'] //æé® |
| | | , btn1: function () { |
| | | var HInterID = CheckStatus.data[0].hmainid; //è·åç¼å· |
| | | var HEntryID = CheckStatus.data[0].hsubid; //è·åç¬¬å æ¡åæ°æ® |
| | | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Cj_CallGoodsBillMain/DelCallGoodsBill' |
| | | , type: "GET" |
| | | , data: { "HInterID": HInterID, "HEntryID": HEntryID, "User": 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); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | ////éè½½tree |
| | | //tree.reload('treeDepartment', {}); |
| | | }); |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | |
| | | //#endregion |
| | | |
| | |
| | | .layui-form-label { |
| | | width: 25%; |
| | | } |
| | | |
| | | </style> |
| | | </head> |
| | | <body> |
| | |
| | | <div class="layui-tab-item layui-show"> |
| | | <div class="layui-form-item" style="padding-top: 10px;"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HBillNo" id="HBillNo" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HInterID" id="HInterID" value="0"> |
| | | <input type="hidden" name="HSTOCKORGID" id="HSTOCKORGID" lay-verify="HSTOCKORGID"> |
| | | <input type="hidden" name="HPRDORGID" id="HPRDORGID" lay-verify="HPRDORGID"><!--HSTOCKORGID--> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">æ¥æ</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="date" class="layui-input" name="HDate" id="HDate"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">订åè·è¸ªå·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HOrderProcNO" id="HOrderProcNO" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">å¾å·çæ¬</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HPicNumVer" id="HPicNumVer" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">产ååç§°</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HMaterName2" id="HMaterName2" onmouseover="this.title=this.value" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> |
| | | <input type="hidden" name="HMaterID2" id="HMaterID2" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchMater" id="btnSearchMater" style="width: 40px;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchMater2" id="btnSearchMater2" style="width: 40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">产å代ç </label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HMaterNumber2" id="HMaterNumber2" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">产åè§æ ¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HMaterModel2" id="HMaterModel2" onmouseover="this.title=this.value" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">æ»è£
å¾å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HPicNumAssemble" id="HPicNumAssemble" onmouseover="this.title=this.value" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">ç产订åå·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HICMOBillNo" id="HICMOBillNo" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HICMOInterID" id="HICMOInterID" value="0"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">æµè½¬å¡æ°é</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HQty" id="HQty"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">åä½</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HUnitName" id="HUnitName" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HUnitID" id="HUnitID" value="0"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">æè´¨</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HMaterTexture" id="HMaterTexture"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">计åå¼å·¥æ¥æ</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="date" class="layui-input" name="HPlanBeginDate" id="HPlanBeginDate" style="padding-left: 32px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">计åå®å·¥æ¥æ</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="date" class="layui-input" name="HPlanEndDate" id="HPlanEndDate" style="padding-left: 32px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">模å
·è®¾å¤</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HEquipMentName" id="HEquipMentName" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> |
| | | <input type="hidden" name="HEquipMentID" id="HEquipMentID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="" id="" style="width: 40px;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHEquipMent" id="btnHEquipMent" style="width: 40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">æåç¼å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HProductNum" id="HProductNum" onmouseover="this.title=this.value"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">è¡¥æåå </label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HExplanation" id="HExplanation" placeholder="请è¾å
¥å
容" onmouseover="this.title=this.value"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">è¡¥ææ è®°</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="checkbox" name="checkboxHBLFlag" id="checkboxHBLFlag" lay-skin="primary" lay-filter="checkboxHBLFlag" value="true" title="æ¯å¦è¡¥æ"> |
| | | <input type="hidden" value="false" name="HBLFlag" id="HBLFlag"> |
| | | <div class="layui-input-block"> |
| | | <input type="checkbox" name="HBLFlag" id="HBLFlag" lay-skin="primary" title="" checked=""> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">项ç®ç¼å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HProjectNum" id="HProjectNum" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label">夿³¨</label> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">çæ¬</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HRemark" id="HRemark" placeholder="请è¾å
¥å
容" onmouseover="this.title=this.value"> |
| | | <input type="text" class="layui-input" name="HVerNum" id="HVerNum" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs6 layui-inline"> |
| | | <label class="layui-form-label" style="width:12.5%">夿³¨</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HRemark" id="HRemark" placeholder="请è¾å
¥å
容" onmouseover="this.title=this.value" style="width:610px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">åææ¹æ¬¡</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HMateOutBatchNo" id="HMateOutBatchNo" style="background-color:#efefef4d;" readonly> |
| | |
| | | <div class="layui-tab-item"> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">ç产车é´</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HWorkShopName" id="HWorkShopName" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> |
| | | <input type="hidden" name="HWorkShopID" id="HWorkShopID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="" id="" style="width: 40px; background-color: gainsboro;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;color:black;"></i> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="HWorkShopList" id="HWorkShopList" style="width: 40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">éåå·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="textBox2" id="textBox2" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> |
| | |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">å§å¤å å·¥åä½</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HSupName" id="HSupName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchMater" id="btnSearchMater" 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> |
| | | </button> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">å§å¤å å·¥åä½</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HSupName" id="HSupName" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> |
| | | <input type="hidden" name="HSupID" id="HSupID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchHSup" id="btnSearchHSup" style="width: 40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">åä»¶åç§°</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HMaterName" id="HMaterName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchMater" id="btnSearchMater" 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> |
| | | </button> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">åä»¶åç§°</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HMaterName" id="HMaterName" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> |
| | | <input type="hidden" name="HMaterID" id="HMaterID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchMater" id="btnSearchMater" style="width: 40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å件代ç </label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">å件代ç </label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HMaterNumber" id="HMaterNumber" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">åä»¶è§æ ¼</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">åä»¶è§æ ¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HMaterModel" id="HMaterModel" onmouseover="this.title=this.value" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">åä½ä»£ç </label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">åä½ä»£ç </label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HUnitNumber" id="HUnitNumber" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ä¸»è¦ææ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">ä¸»è¦ææ</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HMainMaterID" id="HMainMaterID" value="0" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ç产æ°é</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">ç产æ°é</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HPlanQty" id="HPlanQty" value="0" style=" background-color: #efefef4d; width: 90px; float: left; margin-right: 4px;" readonly> |
| | | <input type="text" class="layui-input" name="HprocExQty" id="HprocExQty" style="background-color:#efefef4d; width: 90px;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å
³é®ææ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">å
³é®ææ</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HKeyMaterID" id="HKeyMaterID" value="0" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">HICMOEntryID</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">HICMOEntryID</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HICMOEntryID" id="HICMOEntryID" value="0" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">æµè½¬å¡ç±»å</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HWorkTypeName" id="HWorkTypeName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchMater" id="btnSearchMater" 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> |
| | | </button> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">æµè½¬å¡ç±»å</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HWorkTypeName" id="HWorkTypeName" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> |
| | | <input type="hidden" name="HWorkTypeID" id="HWorkTypeID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchHWorkType" id="btnSearchHWorkType" style="width: 40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </script> |
| | | <input id="HItemID" name="HItemID" type="hidden" /> |
| | | <input id="HEntryID" name="HEntryID" type="hidden" /> |
| | | </form> |
| | | </div> |
| | | </div> |
| | |
| | | } else { |
| | | var OperationType = params[params[0]];//æä½ç±»å |
| | | var linterid = params[params[1]];//æºåid |
| | | var HSouceBillType = params[params[2]];//æºåç±»å |
| | | var HEntryID=params[params[2]];//æºååid |
| | | var HSouceBillType = params[params[3]];//æºåç±»å |
| | | } |
| | | //夿æä½ç±»å |
| | | if (OperationType == 1) {//æ æºåæ°å¢ |
| | |
| | | } |
| | | else if (OperationType == 2) {//ææºåæ°å¢ |
| | | $("#HItemID").val(linterid);//ä¿®æ¹æ¶ä¸»è¡¨ID |
| | | $("#HEntryID").val(HEntryID);//ä¿®æ¹æ¶å表ID |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | type: "GET", |
| | |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | } |
| | | }); |
| | | GetICMOBillValue(linterid) |
| | | GetICMOBillValue(linterid, HEntryID) |
| | | } |
| | | else if (OperationType == 3) {//ç¼è¾ |
| | | $("#HItemID").val(linterid);//ä¿®æ¹æ¶ä¸»è¡¨ID |
| | | $("#HEntryID").val(HEntryID);//ä¿®æ¹æ¶ä¸»è¡¨ID |
| | | //ç¼è¾ç¶ææ¶ï¼æ ¹æ®å
ç ï¼è·åä¿¡æ¯å¹¶åå
¥çé¢ |
| | | layer.alert("æªç¥æä½ç±»åï¼", { icon: 5 }); |
| | | } |
| | | else if (OperationType == 4) {//æµè§ |
| | | $("#HItemID").val(linterid);// |
| | | $("#HEntryID").val(HEntryID);// |
| | | //ç¼è¾ç¶ææ¶ï¼æ ¹æ®å
ç ï¼è·åä¿¡æ¯å¹¶åå
¥çé¢ |
| | | RoadBillMain(linterid); |
| | | $('#set_SaveBill').addClass("layui-btn-disabled").attr("disabled", true);//ä¿ååå è½½æ°æ®æ¶ä¿åæé®ç¦ç¨ |
| | |
| | | table.render(option); |
| | | |
| | | //æ¯å¦é»è®¤å·¥èº |
| | | form.on('checkbox(checkboxHBLFlag)', function (data) { |
| | | $("#HBLFlag").val(data.elem.checked); |
| | | }); |
| | | //form.on('checkbox(HBLFlag)', function (data) { |
| | | // $("#HBLFlag").val(data.elem.checked); |
| | | //}); |
| | | //æ¯å¦å¯ç¨ |
| | | form.on('checkbox(checkboxHUseFlag)', function (data) { |
| | | $("#HUseFlag").val(data.elem.checked); |
| | |
| | | } |
| | | } |
| | | } |
| | | data.field.HSTOCKORGID = sessionStorage["OrganizationID"];//ç»ç» |
| | | data.field.HPRDORGID = sessionStorage["OrganizationID"];//ç»ç» |
| | | var HBLFlag = document.getElementById("HBLFlag").checked; |
| | | HBLFlag == "on" ? data.field.HBLFlag = 'true' : data.field.HBLFlag = 'false';//å°æ°ç»åå¹¶æå符串 |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = JSON.stringify(table.cache['mainTable']); |
| | | var sMainSub = sMainStr + ';' + sSubStr + ";" + sessionStorage["HUserName"]; |
| | |
| | | |
| | | |
| | | //éæ©äº§åå¼¹çª |
| | | form.on('submit(btnSearchMater)', function () {//产å |
| | | form.on('submit(btnSearchMater2)', function () {//产å |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | |
| | | , cancel: function (index, layero) { |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | //éæ©åä»¶å¼¹çªPartInformation.html |
| | | form.on('submit(btnSearchMater)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'åä»¶å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/PartInformation.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HMaterModel").val(checkStatus.data[0].HModel); |
| | | $("#HMaterNumber").val(checkStatus.data[0].HNumber); |
| | | $("#HMaterName").val(checkStatus.data[0].HName); |
| | | $("#HMaterID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //模å
·è®¾å¤å¼¹çª |
| | | form.on('submit(btnHEquipMent)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: '设å¤å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/EqpInformation.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HEquipMentName").val(checkStatus.data[0].HName); |
| | | $("#HEquipMentID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //车é´å¼¹çª |
| | | form.on('submit(HWorkShopList)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: '车é´å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/DeptInformation.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HWorkShopName").val(checkStatus.data[0].HName); |
| | | $("#HWorkShopID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //å§å¤å å·¥åä½å¼¹çª |
| | | form.on('submit(btnSearchHSup)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'ä¾åºåå表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/SupplierInformation.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HSupName").val(checkStatus.data[0].HName); |
| | | $("#HSupID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //éæ©ä¸è¯åå |
| | |
| | | |
| | | |
| | | //è¿åç产任å¡å |
| | | function GetICMOBillValue(hmainid) { |
| | | function GetICMOBillValue(hmainid, HEntryID) { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Sc_ProcessExchangeBill/GetICMOBillDetail", |
| | | type: "GET", |
| | | data: { "hmainid": hmainid, "OrganizationID": sessionStorage["OrganizationID"] }, |
| | | data: { "hmainid": hmainid, "HEntryID": HEntryID, "OrganizationID": sessionStorage["OrganizationID"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | var data = result.data[result.data.length - 1]; |
| | |
| | | $("#HCusName").val(data.客æ·åç§°); |
| | | $("#HWorkRemark").val(data.çäº§å¤æ³¨); |
| | | $("#HImportNote").val(data.éè¦æç¤º); |
| | | $("#HPicNumVer").val(data.å¾å·çæ¬); |
| | | $("#HPicNumAssemble").val(data.æ»è£
å¾å·); |
| | | $("#HMaterTexture").val(data.æè´¨); |
| | | $("#HProductNum").val(data.æåç¼å·); |
| | | $("#HVerNum").val(data.çæ¬); |
| | | $("input[name='HBLFlag']").prop("checked", result.data[0].HBLFlag == 0 ? false : true);//true:éä¸ false:ä¸éä¸ |
| | | } |
| | | else { |
| | | layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | |
| | | } |
| | | }) |
| | | //txtHBillNo.Text = sBillNo; |
| | | GetICMOBillDetail(hmainid); |
| | | GetICMOBillDetail(hmainid, HEntryID); |
| | | } |
| | | |
| | | function GetICMOBillDetail(hmainid) { |
| | | function GetICMOBillDetail(hmainid, HEntryID) { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Sc_ProcessExchangeBill/GetICMOBillList", |
| | | type: "GET", |
| | | data: { "hmainid": hmainid, "OrganizationID": sessionStorage["OrganizationID"] }, |
| | | data: { "hmainid": hmainid, "HEntryID":HEntryID, "OrganizationID": sessionStorage["OrganizationID"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | option.data = result.data; |
| | |
| | | , limits: [50, 500, 5000, 20000] |
| | | , cols: [[ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | //{ field: 'hmainid', title: 'hmainid', width: 90 } |
| | | , { field: 'hmainid', title: 'hmainid', width: 90, hide: true} |
| | | , { field: 'æå°æ¬¡æ°', title: 'æå°æ¬¡æ°' } |
| | | , { field: 'ç±»å', title: 'ç±»å' } |
| | | , { |
| | |
| | | } |
| | | , { field: '订åè·è¸ªå·', title: '订åè·è¸ªå·', width: 120 } |
| | | , { field: 'åæ®å·', title: 'åæ®å·', width: 190 } |
| | | //, { field: 'hicmointerid', title: 'hicmointerid', width: 80 } |
| | | , { field: 'hicmointerid', title: 'hicmointerid', width: 80, hide: true} |
| | | , { field: 'ä»»å¡åå·', title: 'ä»»å¡åå·', width: 140 } |
| | | //, { field: 'HWorkShopID', title: 'HWorkShopID', width: 80 } |
| | | //, { field: 'HDeptID', title: 'HDeptID', width: 80 } |
| | | , { field: 'HWorkShopID', title: 'HWorkShopID', width: 80, hide: true} |
| | | , { field: 'HDeptID', title: 'HDeptID', width: 80, hide: true} |
| | | , { field: 'ç产车é´ä»£ç ', title: 'ç产车é´ä»£ç ', width: 115 } |
| | | , { field: 'ç产车é´', title: 'ç产车é´' } |
| | | , { field: 'å§å¤æ è®°', title: 'å§å¤æ è®°' } |
| | | //, { field: 'HMaterID', title: 'HMaterID', width: 80 } |
| | | , { field: 'HMaterID', title: 'HMaterID', width: 80, hide: true} |
| | | , { field: 'å件代ç ', title: 'å件代ç ' } |
| | | , { field: 'åä»¶åç§°', title: 'åä»¶åç§°' } |
| | | , { field: 'åä»¶è§æ ¼', title: 'åä»¶è§æ ¼' } |
| | | , { field: 'æ¹å·', title: 'æ¹å·' } |
| | | , { field: 'åææ¹æ¬¡å·', title: 'åææ¹æ¬¡å·' } |
| | | //, { field: 'HMaterID2', title: 'HMaterID2', width: 80 } |
| | | , { field: 'HMaterID2', title: 'HMaterID2', width: 80, hide: true} |
| | | , { field: '产å代ç ', title: '产å代ç ' } |
| | | , { field: '产ååç§°', title: '产ååç§°' } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·' } |
| | | //, { field: 'HUnitID', title: 'HUnitID', width: 80 } |
| | | , { field: 'HUnitID', title: 'HUnitID', width: 80, hide: true} |
| | | , { field: 'åä½ä»£ç ', title: 'åä½ä»£ç ' } |
| | | , { field: 'åä½', title: 'åä½' } |
| | | , { field: 'è®¾å¤æ¨¡å
·ä»£ç ', title: 'è®¾å¤æ¨¡å
·ä»£ç ' } |
| | |
| | | , { field: 'å
³éæ¥æ', title: 'å
³éæ¥æ' } |
| | | , { field: 'ä½åºäºº', title: 'ä½åºäºº' } |
| | | , { field: 'ä½åºæ¥æ', title: 'ä½åºæ¥æ' } |
| | | //, { field: 'HBillType', title: 'HBillType', width: 80 } |
| | | //, { field: 'hsubid', title: 'hsubid', width: 80 } |
| | | , { field: 'HBillType', title: 'HBillType', width: 80, hide: true} |
| | | , { field: 'hsubid', title: 'hsubid', width: 80, hide: true} |
| | | , { field: 'æåæ°é', title: 'æåæ°é' } |
| | | ]] |
| | | }; |
| | |
| | | , limits: [50, 500, 5000, 20000] |
| | | , cols: [[ |
| | | |
| | | //{ field: 'hsubid', title: 'hsubid' } |
| | | { field: 'æµæ°´å·', title: 'æµæ°´å·' } |
| | | //, { field: 'HProcID', title: 'HProcID' } |
| | | { field: 'hsubid', title: 'hsubid', hide: true} |
| | | ,{ field: 'æµæ°´å·', title: 'æµæ°´å·' } |
| | | , { field: 'HProcID', title: 'HProcID', hide: true} |
| | | , { field: 'å·¥åºä»£ç ', title: 'å·¥åºä»£ç ' } |
| | | , { field: 'å·¥åºåç§°', title: 'å·¥åºåç§°' } |
| | | , { field: 'è¿å·¥æ è®°', title: 'è¿å·¥æ è®°' } |
| | |
| | | , { field: 'å·¥ä½ä¸å¿ä»£ç ', title: 'å·¥ä½ä¸å¿ä»£ç ', width: 115 } |
| | | , { field: 'å·¥ä½ä¸å¿', title: 'å·¥ä½ä¸å¿' } |
| | | , { field: 'è®¡åæ°é', title: 'è®¡åæ°é' } |
| | | //, { field: 'hmainid', title: 'hmainid' } |
| | | , { field: 'hmainid', title: 'hmainid', hide: true} |
| | | , { field: 'æ¥æ', title: 'æ¥æ', sort: true } |
| | | , { field: 'åæ®å·', title: 'åæ®å·' } |
| | | //, { field: 'hicmointerid', title: 'hicmointerid' } |
| | | , { field: 'hicmointerid', title: 'hicmointerid', hide: true} |
| | | , { field: 'ä»»å¡åå·', title: 'ä»»å¡åå·' } |
| | | //, { field: 'HWorkShopID', title: 'HWorkShopID' } |
| | | , { field: 'HWorkShopID', title: 'HWorkShopID', hide: true} |
| | | , { field: 'ç产车é´ä»£ç ', title: 'ç产车é´ä»£ç ', width: 115 } |
| | | , { field: 'ç产车é´', title: 'ç产车é´' } |
| | | //, { field: 'HMaterID', title: 'HMaterID' } |
| | | , { field: 'HMaterID', title: 'HMaterID', hide: true} |
| | | , { field: '产å代ç ', title: '产å代ç ' } |
| | | , { field: '产ååç§°', title: '产ååç§°' } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·' } |
| | | , { field: 'æ¹å·', title: 'æ¹å·' } |
| | | //, { field: 'HUnitID', title: 'HUnitID' } |
| | | , { field: 'HUnitID', title: 'HUnitID', hide: true} |
| | | , { field: 'åä½ä»£ç ', title: 'åä½ä»£ç ' } |
| | | , { field: 'åä½', title: 'åä½' } |
| | | , { field: 'ç产æ°é', title: 'ç产æ°é' } |
| | |
| | | , { field: '计åå®å·¥æ¥æ', title: '计åå®å·¥æ¥æ' } |
| | | , { field: 'æè¦', title: 'æè¦' } |
| | | , { field: 'å
é¨åæ®å·', title: 'å
é¨åæ®å·' } |
| | | //, { field: 'HSupID', title: 'HSupID' } |
| | | , { field: 'HSupID', title: 'HSupID', hide: true} |
| | | , { field: 'å§å¤å å·¥åä½ä»£ç ', title: 'å§å¤å å·¥åä½ä»£ç ' } |
| | | , { field: 'å§å¤å å·¥åä½', title: 'å§å¤å å·¥åä½' } |
| | | , { field: 'è¡¨å¤´å¤æ³¨', title: 'è¡¨å¤´å¤æ³¨' } |
| | | //, { field: 'HBillType', title: 'HBillType' } |
| | | , { field: 'HBillType', title: 'HBillType', hide: true} |
| | | , { field: 'æµè½¬å¡æ°é', title: 'æµè½¬å¡æ°é' } |
| | | , { field: 'è¿ç«å
³èæ°é', title: 'è¿ç«å
³èæ°é' } |
| | | , { field: 'åºç«å
³èæ°é', title: 'åºç«å
³èæ°é' } |
| | |
| | | , area: ['100%', '100%'] |
| | | , title: 'çäº§èµæº-æ°å¢' |
| | | , shift: 0//å¼¹åºå¨ç» |
| | | , content: '../å·¥åºæµè½¬å¡/Sc_ProcessExchangeBill.html?OperationType=1&linterid=&HSouceBillType=' |
| | | , content: '../å·¥åºæµè½¬å¡/Sc_ProcessExchangeBill.html?OperationType=1&linterid=&HEntryID=&HSouceBillType=' |
| | | }) |
| | | } |
| | | //#endregion |
| | |
| | | , area: ['100%', '100%'] |
| | | , title: 'å·¥åºå表-ç¼è¾' |
| | | , shift: 0//å¼¹åºå¨ç» |
| | | , content: '../å·¥åºæµè½¬å¡/Sc_ProcessExchangeBill.html?OperationType=3&linterid=' + linterid + '&HSouceBillType=' |
| | | , content: '../å·¥åºæµè½¬å¡/Sc_ProcessExchangeBill.html?OperationType=3&linterid=' + linterid + '&HEntryID=' + hsubid+'&HSouceBillType=' |
| | | }) |
| | | } else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®ç¼è¾ï¼'); |
| | |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">éç½®</button> |
| | | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HBillno2" id="HBillno2" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnResCnz" id="btnReSearch" style="padding:0 5px">鿰忥</button> |
| | | |
| | | |
| | | <div class="layui-colla-content"> |
| | | <!--<div class="layui-inline"> |
| | | <div class="layui-inline"> |
| | | <span>å
¶ä»æ¡ä»¶></span> |
| | | </div> |
| | | </div>--> |
| | | <div class="layui-inline"> |
| | | <span>å
¶ä»æ¡ä»¶></span> |
| | | </div> |
| | | </div>--> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HBillno" id="HBillno" style="width:190px;"> |
| | | <input type="text" class="layui-input" name="HBillNo" id="HBillNo" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-details"><i class="layui-icon layui-icon-form"></i>详æ
</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-generate"><i class="layui-icon layui-icon-file"></i>çæéè´§å</button>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit"><i class="layui-icon layui-icon-return"></i>éåº</button> |
| | | <!--<button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnResCnz" id="btnReSearch" style="padding:0 5px">鿰忥</button>--> |
| | | |
| | | </div> |
| | | </script> |
| | |
| | | }; |
| | | }); |
| | | |
| | | //鿰忥æé® |
| | | form.on('submit(btnResCnz)', function (data) { |
| | | set_ResCnz(); |
| | | }); |
| | | |
| | | //éç½®æé® |
| | | form.on('submit(btnReSearch)', function (data) { |
| | |
| | | , { field: 'ç©æç¼ç ', title: 'ç©æç¼ç ', width: 100 } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 100 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 100 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 100 } |
| | | , { field: 'æ¹å·', title: 'æ¹å·', width: 100 } |
| | | , { field: 'æ°é', title: 'æ°é', width: 100 } |
| | | , { field: 'æ°é', title: 'è®¢åæ°é', width: 100} |
| | | , { field: 'æå°æ¡ç æ°é', title: 'æå°æ¡ç æ°é', width: 120} |
| | | , { field: 'å
³èæ°é', title: 'å·²åè´§æ°é', width: 120 } |
| | | , { field: 'æªå
³èæ°é', title: 'æªå·²åè´§æ°é', width: 120 } |
| | | , { field: 'HUnitID', title: 'HUnitID', hide: true } |
| | | , { field: '计éåä½ä»£ç ', title: '计éåä½ä»£ç ', width: 120 } |
| | | , { field: '计éåä½', title: '计éåä½', width: 100 } |
| | | , { field: 'æºååå·', title: 'æºååå·', width: 100 } |
| | | , { field: 'ä¾åºå代ç ', title: 'ä¾åºå代ç ', width: 120 } |
| | | , { field: 'ä¾åºå', title: 'ä¾åºå', width: 100 } |
| | | , { field: 'ä¸å¡å代ç ', title: 'ä¸å¡å代ç ', width: 100 } |
| | | , { field: 'ä¸å¡å', title: 'ä¸å¡å', width: 100 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 100 } |
| | | , { field: 'æ¹å·', title: 'æ¹å·', width: 100 } |
| | | , { field: 'æºååå·', title: 'æºååå·', width: 100 } |
| | | , { field: 'ä¾åºå代ç ', title: 'ä¾åºå代ç ', width: 120, hide: true} |
| | | , { field: 'ä¸å¡å代ç ', title: 'ä¸å¡å代ç ', width: 100, hide: true } |
| | | , { field: 'HPriority', title: 'HPriority', width: 100, hide: true } |
| | | , { field: 'ä¼å
级', title: 'ä¼å
级', width: 100 } |
| | | , { field: '交货å°ç¹', title: '交货å°ç¹', width: 100 } |
| | |
| | | sWhere = ""; |
| | | get_Display(sWhere); |
| | | } |
| | | |
| | | //鿰忥æé® |
| | | function set_ResCnz() { |
| | | var HBillno2 = $('#HBillno2').val(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Cg_POOrderBill/Resynchronize', |
| | | type: "GET", |
| | | data: { "HBillNo": HBillno2, "HBillType": 1601 }, |
| | | 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); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(wait); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //#endregion |
| | | //å·æ° |
| | | function set_Refresh() { |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HBillno" id="HBillno" style="width:190px;"> |
| | | <input type="text" class="layui-input" name="HBillNo" id="HBillNo" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | , { field: 'ç©æç¼ç ', title: 'ç©æç¼ç ', width: 100 } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 100 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 100 } |
| | | , { field: 'æ°é', title: 'è®¢åæ°é', width: 100 } |
| | | , { field: 'æå°æ¡ç æ°é', title: 'æå°æ¡ç æ°é', width: 120 } |
| | | , { field: 'å
³èæ°é', title: 'å·²åè´§æ°é', width: 120 } |
| | | , { field: 'æªå
³èæ°é', title: 'æªå·²åè´§æ°é', width: 120 } |
| | | , { field: 'HUnitID', title: 'HUnitID', hide: true } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 100 } |
| | | , { field: 'æ¹å·', title: 'æ¹å·', width: 100 } |
| | | , { field: 'æ°é', title: 'æ°é', width: 100 } |
| | | , { field: 'HUnitID', title: 'HUnitID', hide: true } |
| | | , { field: '计éåä½ä»£ç ', title: '计éåä½ä»£ç ', width: 120 } |
| | | , { field: '计éåä½', title: '计éåä½', width: 100 } |
| | | , { field: 'æºååå·', title: 'æºååå·', width: 100 } |
| | | , { field: 'ä¾åºå代ç ', title: 'ä¾åºå代ç ', width: 120} |
| | | , { field: 'ä¾åºå', title: 'ä¾åºå', width: 100 } |
| | | , { field: 'ä¸å¡å代ç ', title: 'ä¸å¡å代ç ', width: 100 } |
| | | , { field: 'ä¸å¡å', title: 'ä¸å¡å', width: 100 } |
| | | , { field: 'æ¹å·', title: 'æ¹å·', width: 100 } |
| | | , { field: 'æ°é', title: 'æ°é', width: 100 } |
| | | , { field: 'æºååå·', title: 'æºååå·', width: 100 } |
| | | , { field: 'ä¾åºå代ç ', title: 'ä¾åºå代ç ', width: 120, hide: true} |
| | | , { field: 'ä¸å¡å代ç ', title: 'ä¸å¡å代ç ', width: 100, hide: true} |
| | | , { field: 'HPriority', title: 'HPriority', width: 100, hide: true } |
| | | , { field: 'ä¼å
级', title: 'ä¼å
级', width: 100 } |
| | | , { field: '交货å°ç¹', title: '交货å°ç¹', width: 100} |
| | |
| | | var sHWHID = $("#HWHID").val() |
| | | var sHSPID = $("#HStockPlaceID").val() |
| | | var sSourceBillNo = $("#HSourceBillNo").val() |
| | | var sMouldManagerCtl = "N"; //æ¯å¦å¯ç¨å¨å
·ç®¡ç |
| | | var sFIFOCtl = "N"; //æ¯å¦å¯ç¨å
è¿å
åºç®¡ç |
| | | |
| | | if (sQty == "") { |
| | | sQty = 0; |
| | | } |
| | | |
| | | //夿æ¡ç æ¯å¦ä¸ºç©º new |
| | | if (sBarCode == '') { |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/MateOutBill/DisBillEntryList_Webs_New_Json1', |
| | | type: "GET", |
| | | data: { HBillID: sInterID, HBillType: '1201', sWhere: '' }, |
| | | data: { HBillID: sInterID, HBillNo: sBillNo, HBillType: '1201', sMouldManagerCtl: sMouldManagerCtl, sFIFOCtl: sFIFOCtl }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | listOption.data = result.data.list; |