| | |
| | | <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" /> |
| 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_ComplementGoodBill/ComplementGoodBillList', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere, "user": "Admin" }, |
| | | 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": "Admin" }, |
| | | 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 } |
| | | , { 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/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> |
| 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(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 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(){}æ ¼å¼çææç¹å»äºä»¶ãéæ©äºä»¶ç |
| | | |
| | | //è¡å
äºä»¶ |
| | | 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: 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_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> |
| 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: 170 } |
| | | , { field: 'æºååå
ç ', title: 'æºååå
ç ', width: 170 } |
| | | , { field: 'æºåå·', title: 'æºåå·', width: 170 } |
| | | , { field: 'æå°æ¬¡æ°', title: 'æå°æ¬¡æ°', width: 170 } |
| | | , { field: 'éæäººä»£ç ', title: 'éæäººä»£ç ', width: 170 } |
| | | , { field: 'éæäºº', title: 'éæäºº', width: 170 } |
| | | , { field: 'æ¬è¿äººä»£ç ', title: 'æ¬è¿äººä»£ç ', width: 170 } |
| | | , { field: 'æ¬è¿äºº', title: 'æ¬è¿äºº', width: 170 } |
| | | , { field: 'éªæ¶äººä»£ç ', title: 'éªæ¶äººä»£ç ', width: 170 } |
| | | , { field: 'éªæ¶äºº', title: 'éªæ¶äºº', width: 170 } |
| | | , { field: 'éææ¨¡å¼', title: 'å«ææ¨¡å¼', width: 170 } |
| | | , { field: '表ä½å¤æ³¨', title: '表ä½å¤æ³¨', width: 170 } |
| | | , { field: 'æºååå·', title: 'æºååå·', width: 170 } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 170 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 170 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 170 } |
| | | , { field: '责任é¨é¨ä»£ç ', title: '责任é¨é¨ä»£ç ', width: 170 } |
| | | , { field: '责任é¨é¨åç§°', title: '责任é¨é¨åç§°', width: 170 } |
| | | , { field: 'è°å
¥ä»åº', title: 'è°å
¥ä»åº', width: 170 } |
| | | , { field: 'è°å
¥ä»ä½', title: 'è°å
¥ä»ä½', width: 215 } |
| | | , { field: 'è°åºä»åº', title: 'è°åºä»åº', width: 215 } |
| | | , { field: 'è°åºä»ä½', title: 'è°åºä»ä½', width: 215 } |
| | | , { field: 'éåæ°é', title: 'éåæ°é', width: 170 } |
| | | , { field: 'å·¥åºä»£ç ', title: 'å·¥åºä»£ç ', width: 170 } |
| | | , { field: 'å·¥åºåç§°', title: 'å·¥åºåç§°', width: 170 } |
| | | , { field: 'éæåå ', title: 'éæåå ', width: 170 } |
| | | , { field: 'ä¾åºå代ç ', title: 'ä¾åºå代ç ', width: 170 } |
| | | , { field: 'ä¾åºååç§°', title: 'ä¾åºååç§°', width: 170 } |
| | | ]] |
| | | }; |
| | | } |
| | | |
| | | //éæ©ç©æ |
| | | 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> |