Merge branch 'master' of http://101.37.171.70:10101/r/MESWMS-LayUI
| | |
| | | <dd> |
| | | <a>ç产计åå¹³å°</a> |
| | | <dl class="layui-nav-child"> |
| | | <dd><a lay-href="ç产管ç/ç产计åå¹³å°/JIT_DayPlanPlatForm.html">ç产计åå¹³å°</a></dd> |
| | | <dd><a lay-href="ç产管ç/ç产计åå¹³å°/JIT_DayPlanPlatFormImport.html">导å
¥</a></dd> |
| | | <dd><a lay-href="ç产管ç/ç产计åå¹³å°/JIT_DayPlanPlatForm.html" style="margin: 0 0 0 13px;">ç产计åå¹³å°</a></dd> |
| | | <dd><a lay-href="ç产管ç/ç产计åå¹³å°/JIT_DayPlanPlatFormImport.html" style="margin: 0 0 0 13px;">导å
¥</a></dd> |
| | | </dl> |
| | | </dd> |
| | | <dd> |
| | | <a>æ¥è®¡åå·¥å</a> |
| | | <dl class="layui-nav-child"> |
| | | <dd><a lay-href="ç产管ç/ç产æ¥è®¡åå·¥å/JIT_DayPlanBillList.html">æ¥è®¡åå·¥åå表</a></dd> |
| | | <dd><a lay-href="ç产管ç/ç产æ¥è®¡åå·¥å/JIT_DayPlanBillEdit.html">æ¥è®¡åå·¥å</a></dd> |
| | | <dd><a lay-href="ç产管ç/ç产æ¥è®¡åå·¥å/JIT_DayPlanBillList.html" style="margin: 0 0 0 13px;">æ¥è®¡åå·¥åå表</a></dd> |
| | | <dd><a lay-href="ç产管ç/ç产æ¥è®¡åå·¥å/JIT_DayPlanBillEdit.html" style="margin: 0 0 0 13px;">æ¥è®¡åå·¥å</a></dd> |
| | | </dl> |
| | | </dd> |
| | | <dd> |
| | | <a>è¦æè®¡å</a> |
| | | <dl class="layui-nav-child"> |
| | | <dd><a lay-href="ç产管ç/è¦æè®¡å/JIT_NeedMaterPlanBillList.html">è¦æè®¡ååå表</a></dd> |
| | | <dd><a lay-href="ç产管ç/è¦æè®¡å/JIT_NeedMaterPlanBillEdit.html">è¦æè®¡åå</a></dd> |
| | | <dd><a lay-href="ç产管ç/è¦æè®¡å/JIT_NeedMaterPlanBillList.html" style="margin: 0 0 0 13px;">è¦æè®¡ååå表</a></dd> |
| | | <dd><a lay-href="ç产管ç/è¦æè®¡å/JIT_NeedMaterPlanBillEdit.html" style="margin: 0 0 0 13px;">è¦æè®¡åå</a></dd> |
| | | </dl> |
| | | </dd> |
| | | <dd> |
| | | <a>ææè®¡å</a> |
| | | <dl class="layui-nav-child"> |
| | | <dd><a lay-href="ç产管ç/ææè®¡å/JIT_LiftMaterPlaBillnList.html">ææè®¡ååå表</a></dd> |
| | | <dd><a lay-href="ç产管ç/ææè®¡å/JIT_LiftMaterPlanBillEdit.html">ææè®¡åå</a></dd> |
| | | <dd><a lay-href="ç产管ç/ææè®¡å/JIT_LiftMaterPlaBillnList.html" style="margin: 0 0 0 13px;">ææè®¡ååå表</a></dd> |
| | | <dd><a lay-href="ç产管ç/ææè®¡å/JIT_LiftMaterPlanBillEdit.html" style="margin: 0 0 0 13px;">ææè®¡åå</a></dd> |
| | | </dl> |
| | | </dd> |
| | | <dd> |
| | | <a>åºç¡èµæ</a> |
| | | <dl class="layui-nav-child"> |
| | | <dd><a lay-href="ç产管ç/æ¥è®¡ååºç¡èµæ/Gy_WorkWarehouseBillList.html">车é´ä»åºå¯¹ç
§å表</a></dd> |
| | | <dd><a lay-href="ç产管ç/æ¥è®¡ååºç¡èµæ/Cg_PODemandPlanConfigBillList.html">ææè®¡åä¿¡æ¯å表</a></dd> |
| | | <dd><a lay-href="ç产管ç/æ¥è®¡ååºç¡èµæ/JIT_NeedMaterPlanConfigBillList.html">è¦æè®¡åä¿¡æ¯å表</a></dd> |
| | | <dd><a lay-href="ç产管ç/æ¥è®¡ååºç¡èµæ/Gy_WorkWarehouseBillList.html" style="margin: 0 0 0 13px;">车é´ä»åºå¯¹ç
§å表</a></dd> |
| | | <dd><a lay-href="ç产管ç/æ¥è®¡ååºç¡èµæ/Cg_PODemandPlanConfigBillList.html" style="margin: 0 0 0 13px;">ææè®¡åä¿¡æ¯å表</a></dd> |
| | | <dd><a lay-href="ç产管ç/æ¥è®¡ååºç¡èµæ/JIT_NeedMaterPlanConfigBillList.html" style="margin: 0 0 0 13px;">è¦æè®¡åä¿¡æ¯å表</a></dd> |
| | | </dl> |
| | | </dd> |
| | | <dd> |
| | | <a>峿¶åºå</a> |
| | | <dl class="layui-nav-child"> |
| | | <dd><a lay-href="ç产管ç/峿¶åºå/JIT_InventoryList.html">峿¶åºåå表</a></dd> |
| | | <dd><a lay-href="ç产管ç/峿¶åºå/JIT_InventoryList.html" style="margin: 0 0 0 13px;">峿¶åºåå表</a></dd> |
| | | </dl> |
| | | </dd> |
| | | </dl> |
| | |
| | | <label class="layui-form-label" style="width: 85px;">ç产订åå·</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" lay-verify="HICMOBillNo" name="HICMOBillNo" id="HICMOBillNo"> |
| | | <input type="text" class="layui-input" lay-verify="HMainSourceInterID" name="HMainSourceInterID" id="HMainSourceInterID" hidden> |
| | | <input type="text" class="layui-input" lay-verify="HMainSourceEntryID" name="HMainSourceEntryID" id="HMainSourceEntryID" hidden> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | , "HPlanBeginDate": Format(new Date(d.data[0].计åå¼å§æ¥æ), "yyyy-MM-dd") |
| | | , "HPlanEndDate":Format(new Date(d.data[0].计åç»ææ¥æ), "yyyy-MM-dd") |
| | | , "HICMOBillNo": d.data[0].ç产订åå· |
| | | , "HMainSourceInterID": d.data[0].æºå主å
ç |
| | | , "HMainSourceEntryID": d.data[0].æºååå
ç |
| | | , "HOwnerID": d.data[0].货主ç¼ç |
| | | , "HBatchNo": d.data[0].æ¹æ¬¡ |
| | | , "HYX": d.data[0].ä¼å
级 |
| | |
| | | <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_AddNew"><i class="layui-icon layui-icon-file-b"></i>æ°å¢</button> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="set_AddNew"><i class="layui-icon layui-icon-file-b"></i>æ°å¢</button>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_ShowBill"><i class="layui-icon layui-icon-form"></i>ç¼è¾</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_DeleteBill"><i class="layui-icon layui-icon-delete"></i>å é¤</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_CloseBill"><i class="layui-icon layui-icon-logout"></i>å
³é</button> |
| | |
| | | |
| | | //#region 触åäºä»¶ï¼å
æ¬form.on(){}æ ¼å¼çææç¹å»äºä»¶ãéæ©äºä»¶ç |
| | | |
| | | //è¡å
é¼ æ 离å¼äºä»¶ |
| | | table.on('edit(mainTable)', function (obj) { |
| | | var myDate = new Date(); |
| | | var yyyy = myDate.getFullYear(); |
| | | var MM = myDate.getMonth() + 1; |
| | | var dd = myDate.getDate(); |
| | | var SumMonth = 31; //卿䏤æä¹å·® new Date(yyyy, MM, 0).getDate() |
| | | var dateHQty = 0; |
| | | |
| | | for (var i = 0; i <= (SumMonth - dd); i++) { |
| | | if (obj.field == "çäº§èµæº") { |
| | | return; |
| | | } |
| | | if (obj.data[Format(yyyy + '/' + MM + '/' + (dd + i), 'yyyy-MM-dd')] != null) { |
| | | dateHQty += parseInt(obj.data[Format(yyyy + '/' + MM + '/' + (dd + i), 'yyyy-MM-dd')]); |
| | | } |
| | | } |
| | | for (var i = 1; i < dd; i++) { |
| | | if (obj.data[Format(yyyy + '/' + (MM + 1) + '/' + i, 'yyyy-MM-dd')] != null) { |
| | | dateHQty += parseInt(obj.data[Format(yyyy + '/' + (MM + 1) + '/' + i, 'yyyy-MM-dd')]); |
| | | } |
| | | } |
| | | console.log(dateHQty) |
| | | //ä¿®æ¹æ°æ® |
| | | obj.update({ |
| | | "æ¥è®¡åæ°éæ»é": dateHQty |
| | | }); |
| | | }) |
| | | |
| | | //头工å
·æ äºä»¶ |
| | | table.on('toolbar(mainTable)', function (obj) { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | |
| | | } |
| | | else { |
| | | data[0]["çäº§èµæº"] = ""; |
| | | data[0]["HSourceID"] = 0; |
| | | data[0]["HSourceID"] = ""; |
| | | data[0]["hmainid"] = ""; |
| | | data[0]["åæ®å·"] = ""; |
| | | var copydata = JSON.stringify(data); |
| | |
| | | set_ClearQuery(); |
| | | }); |
| | | |
| | | //è¡å
äºä»¶ |
| | | table.on('tool(mainTable)', function (obj) { |
| | | set_GridCellCheck(obj); //è¡å
å¿«æ·é®çé |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region æ¬é¡µé¢è¢«è°ç¨çæææ¹æ³ |
| | |
| | | //è·åç»ç» |
| | | function Organ() { |
| | | //è·åç»å½é¡µç»ç»å |
| | | var Organization = '<option style="color:blue;" value="0">ç»ç»</option>'; |
| | | $.ajax({ |
| | | type: "get", |
| | | url: GetWEBURL() + "/Web/GetOrganizations", |
| | | success: function (result) { |
| | | var Organization = ""; |
| | | 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>'; |
| | | } |
| | | $("#HProdORGID").append(Organization); |
| | | $("#HProdORGID").val(sessionStorage["OrganizationID"]) |
| | | form.render('select'); |
| | | } |
| | | layer.closeAll("loading"); |
| | |
| | | var SumMonth = 31; //卿䏤æä¹å·® new Date(yyyy, MM, 0).getDate() |
| | | |
| | | columns.push({ type: 'checkbox', fixed: 'left' }); |
| | | columns.push({ field: 'hmainid', title: 'hmainid', hide: true }); |
| | | columns.push({ field: 'åæ®å·', title: 'åæ®å·', hide: true }); |
| | | columns.push({ field: 'éå®è®¢åå·', title: 'éå®è®¢åå·', width:150 }); |
| | | columns.push({ field: 'ç产订åå·', title: 'ç产订åå·', width:150 }); |
| | |
| | | columns.push({ field: 'HUnitID', title: 'HUnitID', hide: true}); |
| | | columns.push({ field: '计éåä½', title: '计éåä½', width:150 }); |
| | | columns.push({ field: 'éå®è®¢åæ°é', title: 'éå®è®¢åæ°é', width:150 });//0 |
| | | columns.push({ field: '订åéæ±æ°é', title: 'çäº§è®¢åæ°é', width: 150 });//0 |
| | | columns.push({ field: 'è®¡åæ°é', title: 'çäº§è®¢åæ°é', width: 150 });//0 |
| | | columns.push({ field: '订å坿æ°é', title: '订å坿æ°é', width:150 }); |
| | | columns.push({ field: 'æªå
¥åºæ°é', title: 'æªå
¥åºæ°é', width: 150 });//0 |
| | | columns.push({ field: 'æåæ°é', title: 'æåæ°é', width: 150 });//0 |
| | |
| | | columns.push({ field: '仿¥ä¹åæ¥è®¡åæ°é', title: '仿¥ä¹åæ¥è®¡åæ°é', width: 150 });//0 |
| | | columns.push({ field: '计åå¼å§æ¥æ', title: 'é¢è®¡å¼å·¥æ¥æ', width:150 }); |
| | | columns.push({ field: 'HWorkShopID', title: 'HWorkShopID', hide: true }); |
| | | columns.push({ field: 'ç产车é´', title: 'ç产车é´', width:150 }); |
| | | columns.push({ field: 'ç产车é´', title: 'ç产车é´', width: 150}); |
| | | columns.push({ field: 'HSourceID', title: 'HSourceID', hide:true }); |
| | | columns.push({ field: 'çäº§èµæº', title: 'çäº§èµæº', width:150 }); |
| | | columns.push({ field: 'çäº§èµæº', title: 'çäº§èµæº', width: 150, edit: 'text', event: "HSourceID" }); |
| | | for (var i = 0; i <= (SumMonth - dd); i++) { |
| | | columns.push({ field: Format(yyyy + '/' + MM + '/' + (dd + i), 'yyyy-MM-dd'), title: Format(yyyy + '/' + MM + '/' + (dd + i), 'yyyy-MM-dd'), edit: 'text',width:120 })//0 |
| | | columns.push({ field: Format(yyyy + '/' + MM + '/' + (dd + i), 'yyyy-MM-dd'), title: Format(yyyy + '/' + MM + '/' + (dd + i), 'MM.dd'), edit: 'text', width: 70 })//0 |
| | | } |
| | | for (var i = 1; i < dd; i++) { |
| | | columns.push({ field: Format(yyyy + '/' + (MM + 1) + '/' + i, 'yyyy-MM-dd'), title: Format(yyyy + '/' + (MM + 1) + '/' + i, 'yyyy-MM-dd'), edit: 'text',width: 120 })//0 |
| | | columns.push({ field: Format(yyyy + '/' + (MM + 1) + '/' + i, 'yyyy-MM-dd'), title: Format(yyyy + '/' + (MM + 1) + '/' + i, 'MM.dd'), edit: 'text', width: 70 })//0 |
| | | } |
| | | columns.push({ field: 'T31', title: 'T31', width: 150 });//0 |
| | | columns.push({ field: 'T31', title: 'T31', width: 70 });//0 |
| | | columns.push({ field: '订åç±»å', title: '订åç±»å', width: 150 }); |
| | | columns.push({ field: 'ç产订ååæ®ç±»å', title: 'æºå订ååæ®ç±»å', width: 150 }); |
| | | columns.push({ field: 'ä¸å¡ç¶æ', title: 'ä¸å¡ç¶æ', width: 150 }); |
| | |
| | | columns.push({ field: 'äº¤è´§æ¥æ', title: 'äº¤è´§æ¥æ', width: 150 }); |
| | | columns.push({ field: 'æºå主å
ç ', title: 'æºå主å
ç ', width: 150 }); |
| | | columns.push({ field: 'æºååå
ç ', title: 'æºååå
ç ', width: 150 }); |
| | | columns.push({ field: 'æ¥è®¡åå·¥å主ç ', title: 'æ¥è®¡åå·¥å主ç ', width: 150 }); |
| | | columns.push({ field: 'hmainid', title: 'æ¥è®¡åå·¥å主ç ', width: 150 }); |
| | | |
| | | option = { |
| | | elem: '#mainTable' |
| | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //è¡å
å¿«æ·é® |
| | | function set_GridCellCheck(obj) { |
| | | $(document).off('keydown', ".layui-table-edit").on('keydown', '.layui-table-edit', function (e) { |
| | | if (event.key == "F7") { |
| | | //çäº§èµæº |
| | | if (obj.event == "HSourceID") { |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "çäº§èµæºå表" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["90%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ["../../åºç¡èµæ/ç产åºç¡èµæ/Gy_Source.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({ |
| | | "HSourceID": checkStatus.data[0].HItemID |
| | | , "çäº§èµæº": checkStatus.data[0].çäº§èµæºåç§° |
| | | }) |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | }) |
| | | } |
| | | obj.event = ""; |
| | | return false; |
| | | } |
| | | |
| | | }) |
| | | } |
| | | |
| | | //#endregion |
| | | //以䏿¯layui模å |
| | | }); |
| | |
| | | //è¡å
äºä»¶ |
| | | table.on('tool(mainTable)', function (obj) { |
| | | set_GridDelete(obj); //è¡å
å é¤ |
| | | set_GridCellCheck(obj);//è¡å
å¿«æ·é®çé |
| | | }); |
| | | |
| | | //æä»¶ä¸ä¼ |
| | |
| | | columns.push({ field: 'HWorkShopID', title: 'HWorkShopID', hide: true }); |
| | | columns.push({ field: 'ç产车é´ç¼ç *', title: 'ç产车é´' }); |
| | | columns.push({ field: 'HSourceID', title: 'HSourceID', hide: true }); |
| | | columns.push({ field: 'çäº§èµæºç¼ç *', title: 'çäº§èµæº' }); |
| | | columns.push({ field: 'çäº§èµæºç¼ç *', title: 'çäº§èµæº', edit: 'text', event: "HSourceID" }); |
| | | columns.push({ field: 'ä¼å
级', title: 'ä¼å
级' }); |
| | | columns.push({ field: 'HEmpID', title: 'HEmpID', hide: true }); |
| | | columns.push({ field: 'åå·¥', title: 'åå·¥' }); |
| | |
| | | columns.push({ field: 'éå®è®¢åæ°é', title: 'éå®è®¢åæ°é', width: 200 }); |
| | | columns.push({ field: 'çäº§è®¢åæ°é', title: 'çäº§è®¢åæ°é', width: 200 }); |
| | | columns.push({ field: 'æ»é½å¥æ°é', title: 'æ»é½å¥æ°é', width: 200 }); |
| | | columns.push({ field: 'ICMOBillHInterID', title: 'ICMOBillHInterID', hide: true}); |
| | | columns.push({ field: 'ICMOBillHEntryID', title: 'ICMOBillHEntryID', hide: true }); |
| | | for (var i = 0; i <= (SumMonth - dd); i++) { |
| | | columns.push({ field: Format(yyyy + '/' + MM + '/' + (dd + i), 'yyyy-MM-dd'), title: Format(yyyy + '/' + MM + '/' + (dd + i), 'yyyy-MM-dd'), edit: 'text' }) |
| | | columns.push({ field: Format(yyyy + '/' + MM + '/' + (dd + i), 'yyyy-MM-dd'), title: Format(yyyy + '/' + MM + '/' + (dd + i), 'MM.dd'), edit: 'text', width:60 }) |
| | | } |
| | | for (var i = 1; i < dd; i++) { |
| | | columns.push({ field: Format(yyyy + '/' + (MM + 1) + '/' + i, 'yyyy-MM-dd'), title: Format(yyyy + '/' + (MM + 1) + '/' + i, 'yyyy-MM-dd'), edit: 'text' }) |
| | | columns.push({ field: Format(yyyy + '/' + (MM + 1) + '/' + i, 'yyyy-MM-dd'), title: Format(yyyy + '/' + (MM + 1) + '/' + i, 'MM.dd'), edit: 'text', width: 60 }) |
| | | } |
| | | columns.push({ fixed: 'right', title: 'æä½', toolbar: '#barDemo' }); |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | //è¡å
å é¤å¿«æ·é® |
| | | function set_GridCellCheck(obj) { |
| | | $(document).off('keydown', ".layui-table-edit").on('keydown', '.layui-table-edit', function (e) { |
| | | if (event.key == "F7") { |
| | | //çäº§èµæº |
| | | if (obj.event == "HSourceID") { |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "çäº§èµæºå表" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["90%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ["../../åºç¡èµæ/ç产åºç¡èµæ/Gy_Source.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({ |
| | | "HSourceID": checkStatus.data[0].HItemID |
| | | , "çäº§èµæºç¼ç *": checkStatus.data[0].çäº§èµæºä»£ç |
| | | }) |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | }) |
| | | } |
| | | obj.event = ""; |
| | | return false; |
| | | } |
| | | |
| | | }) |
| | | } |
| | | |
| | | //è·ååæ° |
| | | function getUrlVars() { |
| | | var vars = [], hash; |
| | |
| | | //#endregion |
| | | |
| | | //#region æ¥è¯¢æé® |
| | | form.on('submit(btnSearch)', function (data) {//éæ©ä»ä½ |
| | | form.on('submit(btnSearch)', function (data) { |
| | | get_FastQuery(); |
| | | }); |
| | | //#endregion |