| | |
| | | <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/PageTitle.js"></script> |
| | | <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | <style type="text/css"> |
| | | /*begin æ¤æ ·å¼ç¨äºæ¶é¤è¡å
ç´ ä¸å¸å±å®½åº¦ä¸å¤çé®é¢*/ |
| | | .layui-form-item .layui-inline { |
| | |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="set_CheckBill" id="set_CheckBill">å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="set_AbandonCheck" id="set_AbandonCheck">åå®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="set_DeleteBill" id="set_DeleteBill">å é¤</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="get_PrintReport" id="get_PrintReport">é¢è§</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="get_PrintReport" id="get_PrintReport">æå°</button> |
| | | <button type="button" id="add-btn" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Saver">ä¿å</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Exit">éåº</button> |
| | | </div> |
| | | </div> |
| | | |
| | | <h1 style="text-align:center;"><b>çäº§æ±æ¥å</b></h1> |
| | | <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> |
| | |
| | | <label class="layui-form-label">çç»</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HGroupName" id="HGroupName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HGroupID" id="HGroupID" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HGroupID" id="HGroupID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HGroupList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | |
| | | <label class="layui-form-label">ç»è®¡å</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HEmpName" id="HEmpName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HEmpID" id="HEmpID" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HEmpID" id="HEmpID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HEmpList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | |
| | | <table class="layui-hide" id="mainTable_prodReport" lay-filter="mainTable_prodReport"></table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-AddLine" id="btn-AddLine"><i class="layui-icon layui-icon-form"></i>å¢å ä¸è¡</button> |
| | |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">å é¤</a> |
| | | </script> |
| | | <script> |
| | | var OptionData = []; |
| | | //#region æå 注é |
| | | //#endregion |
| | | layui.config({ |
| | |
| | | //}; |
| | | var Sctag = "0"; |
| | | var columns = ""; |
| | | var HIsCheck = false; |
| | | //#endregion |
| | | |
| | | |
| | | //#region è¿å
¥é¡µé¢å³å è½½ |
| | | |
| | | //#region ã卿è·å模ååç§°ã |
| | | var HModuleType = "3711"; |
| | | //éè¿åæ®ç±»åï¼ä»æ°æ®åºå¨æè·ååæ®æ¨¡åå½å,å¼ç¨jsæä»¶ PageTitle.js |
| | | var HPageTitle = get_PageTitle(HModuleType) == "" ? $("h1").html() : get_PageTitle(HModuleType); |
| | | $("h1").html('<b>' + HPageTitle + '</b>'); |
| | | //#endregion |
| | | |
| | | //夿æ¯å¦ç»å½ æªç»å½åè·³å°ç»å½é¡µ |
| | | get_LoginIs(); |
| | |
| | | set_EditFromGrid(); |
| | | //get_file(); |
| | | } |
| | | else if (OperationType == 4) {//䏿¨ |
| | | setInit_PushBill(); |
| | | } |
| | | else { |
| | | layer.alert("æªç¥æä½ç±»åï¼", { icon: 5 }); |
| | | } |
| | |
| | | "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", |
| | | "HSourceID": 0, "HSourceCode": "", "HSourceName": "", "HWorkerid": 0, "HWorkerCode": "", "HWorkerName": "", "HQty": 0, "HBadQty": 0, |
| | | "HICMOBillNo": "", "HICMOInterID": "0", "HICMOEntryID": "0", "HRemark": "", "HSourceInterID": 0, "HSourceEntryID": 0, "HSourceBillNo": "", |
| | | "HSourceBillType":0 |
| | | "HSourceBillType": 0 |
| | | }; |
| | | |
| | | |
| | | switch (obj.event) { |
| | | //æ°å¢ä¸è¡ |
| | | case 'btn-AddLine': btnAddLine(NewRow); |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/GroupInformation.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/å·¥èµåºç¡èµæ/Gy_Group.html?type=HGroup', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HGroupName").val(checkStatus.data[0].HName); |
| | | $("#HGroupName").val(checkStatus.data[0].çç»åç§°); |
| | | $("#HGroupID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | |
| | | "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", |
| | | "HSourceID": 0, "HSourceCode": "", "HSourceName": "", "HWorkerid": 0, "HWorkerCode": "", "HWorkerName": "", "HQty": 0, "HBadQty": 0, |
| | | "HICMOBillNo": "", "HICMOInterID": "0", "HICMOEntryID": "0", "HRemark": "", "HSourceInterID": 0, "HSourceEntryID": 0, "HSourceBillNo": "", |
| | | "HSourceBillType": 0 |
| | | "HSourceBillType": 0, "HICMOTempID": 0 |
| | | }]; |
| | | table.render(option); |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | table.cache["mainTable"].push({ |
| | | "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", |
| | | "HSourceID": 0, "HSourceCode": "", "HSourceName": "", "HWorkerid": 0, "HWorkerCode": "", "HWorkerName": "", "HQty": 0, "HBadQty": 0, "HICMOBillNo": "", "HICMOInterID": "0", "HICMOEntryID": "0", "HRemark": "", "HSourceInterID": 0, "HSourceEntryID": 0, "HSourceBillNo": "", |
| | | "HSourceBillType": 0 |
| | | "HSourceBillType": 0, "HICMOTempID": 0 |
| | | }); |
| | | option.data = table.cache["mainTable"]; |
| | | table.render(option); |
| | |
| | | //#region æäº¤ä¿å |
| | | form.on('submit(Saver)', function (data) {//ä¿å |
| | | var refSav = ""; |
| | | if (OperationType == 1 || OperationType == 2) { |
| | | if (OperationType == 1 || OperationType == 2 || OperationType == 4) { |
| | | refSav = "Add"; |
| | | } |
| | | if (OperationType == 3) { |
| | |
| | | //#region å é¤ |
| | | form.on('submit(set_DeleteBill)', function (data) { |
| | | |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region æå° |
| | | form.on('submit(get_PrintReport)', function (data) { |
| | | if (HIsCheck == true) { |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['50%', '50%'] |
| | | , title: 'æå°æ¨¡çéæ©' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: false //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + $("#HInterID").val().toString() + '&MyMsg=' + $("#HInterID").val().toString() + '&Type=HICMOReport2', 'yes'] |
| | | , resize: false |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg('è¯·å®¡æ ¸åæ®æååæå°ï¼'); |
| | | } |
| | | }); |
| | | //#endregion |
| | | |
| | |
| | | data: { "HInterID": InterID, "IsAudit": 0, "CurUserName": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | HIsCheck = true; |
| | | layer.msg(result.Message, { time: 1 * 10000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/PartInformation.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Material.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HMaterID: checkStatus.data[0].HItemID, |
| | | HMaterCode: checkStatus.data[0].HNumber, |
| | | HMaterName: checkStatus.data[0].HName, |
| | | HMaterSpec: checkStatus.data[0].HModel, |
| | | HMaterCode: checkStatus.data[0].ç©æä»£ç , |
| | | HMaterName: checkStatus.data[0].ç©æåç§°, |
| | | HMaterSpec: checkStatus.data[0].è§æ ¼åå·, |
| | | }); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | }, end: function () { |
| | | if (OptionData.length > 0) { |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | HMaterID: OptionData[0].HItemID, |
| | | HMaterCode: OptionData[0].ç©æä»£ç , |
| | | HMaterName: OptionData[0].ç©æåç§°, |
| | | HMaterSpec: OptionData[0].è§æ ¼åå·, |
| | | }); |
| | | OptionData = []; |
| | | } |
| | | } |
| | | }); |
| | | } |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/UnitInformation.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Unit.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HUnitID: checkStatus.data[0].HItemID, |
| | | HUnitCode: checkStatus.data[0].HNumber, |
| | | HUnitName: checkStatus.data[0].HName |
| | | HUnitCode: checkStatus.data[0].计éåä½ä»£ç , |
| | | HUnitName: checkStatus.data[0].计éåä½åç§° |
| | | }); |
| | | |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, end: function () { |
| | | if (OptionData.length > 0) { |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | HUnitID: OptionData[0].HItemID, |
| | | HUnitCode: OptionData[0].计éåä½ä»£ç , |
| | | HUnitName: OptionData[0].计éåä½åç§° |
| | | }); |
| | | OptionData = []; |
| | | } |
| | | } |
| | | }); |
| | | } |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/SourceInformation.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/ç产åºç¡èµæ/Gy_Source.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HSourceID: checkStatus.data[0].HItemID, |
| | | HSourceCode: checkStatus.data[0].HNumber, |
| | | HSourceName: checkStatus.data[0].HName |
| | | HSourceCode: checkStatus.data[0].çäº§èµæºä»£ç , |
| | | HSourceName: checkStatus.data[0].çäº§èµæºåç§° |
| | | }); |
| | | |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, end: function () { |
| | | if (OptionData.length > 0) { |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | HSourceID: OptionData[0].HItemID, |
| | | HSourceCode: OptionData[0].çäº§èµæºä»£ç , |
| | | HSourceName: OptionData[0].çäº§èµæºåç§° |
| | | }); |
| | | OptionData = []; |
| | | } |
| | | } |
| | | }); |
| | | } |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/UserInformation.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_EmployeeList.html?type=HManager', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HWorkerid: checkStatus.data[0].HItemID, |
| | | HWorkerCode: checkStatus.data[0].HNumber, |
| | | HWorkerName: checkStatus.data[0].HName |
| | | HWorkerCode: checkStatus.data[0].èå代ç , |
| | | HWorkerName: checkStatus.data[0].èååç§° |
| | | }); |
| | | |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, end: function () { |
| | | if (OptionData.length > 0) { |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | HWorkerid: OptionData[0].HItemID, |
| | | HWorkerCode: OptionData[0].èå代ç , |
| | | HWorkerName: OptionData[0].èååç§° |
| | | }); |
| | | OptionData = []; |
| | | } |
| | | } |
| | | }); |
| | | } |
| | |
| | | , { field: 'HWorkerid', title: 'HWorkerid', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HWorkerCode', title: 'æä½å代ç ', edit: 'text', event: 'HWorkerCode', width: 100 } |
| | | , { field: 'HWorkerName', title: 'æä½ååç§°', edit: 'text', width: 100 } |
| | | , { field: 'HQty', title: 'ç产æ°é', edit: 'text', width: 100 } |
| | | , { field: 'HBadQty', title: 'ä¸è¯æ°é', edit: 'text', width: 100 } |
| | | , { field: 'HQty', title: 'ç产æ°é', edit: 'text', width: 100, totalRow: true } |
| | | , { field: 'HBadQty', title: 'ä¸è¯æ°é', edit: 'text', width: 100, totalRow: true } |
| | | , { field: 'HICMOBillNo', title: 'ç产订å', edit: 'text', width: 100 } |
| | | , { field: 'HICMOInterID', title: 'ç产订åå
ç ', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HICMOEntryID', title: 'ç产订ååå
ç ', edit: 'text', width: 100, hide: true } |
| | | |
| | | , { field: 'HSourceInterID', title: 'æºåå
ç ', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HSourceInterID', title: 'æºåå
ç ', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HICMOTempID', title: 'HICMOTempID', edit: 'text', width: 100, hide: true } |
| | | |
| | | , { field: 'HRemark', title: '表ä½å¤æ³¨', edit: 'text', width: 100 } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo', width: 150 } |
| | |
| | | , toolbar: '#toolbarDemo' |
| | | , page: false |
| | | , cellMinWidth: 120 |
| | | , totalRow: true |
| | | , height: 500 |
| | | , cols: [columns] |
| | | , done: function (res, curr, count) { |
| | |
| | | , { field: 'HWorkerid', title: 'HWorkerid', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HWorkerCode', title: 'æä½å代ç ', edit: 'text', event: 'HWorkerCode', width: 100 } |
| | | , { field: 'HWorkerName', title: 'æä½ååç§°', edit: 'text', width: 100 } |
| | | , { field: 'HQty', title: 'ç产æ°é', edit: 'text', width: 100 } |
| | | , { field: 'HBadQty', title: 'ä¸è¯æ°é', edit: 'text', width: 100 } |
| | | , { field: 'HQty', title: 'ç产æ°é', edit: 'text', width: 100, totalRow: true } |
| | | , { field: 'HBadQty', title: 'ä¸è¯æ°é', edit: 'text', width: 100, totalRow: true } |
| | | , { field: 'HICMOBillNo', title: 'ç产订å', edit: 'text', width: 100 } |
| | | , { field: 'HRemark', title: '表ä½å¤æ³¨', edit: 'text', width: 100 } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo', width: 150 } |
| | |
| | | id: 'mainTable_prodReport' |
| | | , elem: '#mainTable_prodReport' |
| | | , page: true |
| | | , totalRow: true |
| | | , limit: 1000 |
| | | , limits: [500, 1000, 1500, 2000, 3000] |
| | | , cellMinWidth: 120 |
| | |
| | | "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", |
| | | "HSourceID": 0, "HSourceCode": "", "HSourceName": "", "HWorkerid": 0, "HWorkerCode": "", "HWorkerName": "", "HQty": 0, "HBadQty": 0, |
| | | "HICMOBillNo": "", "HICMOInterID": "0", "HICMOEntryID": "0", "HRemark": "", "HSourceInterID": 0, "HSourceEntryID": 0, "HSourceBillNo": "", |
| | | "HSourceBillType": 0 |
| | | "HSourceBillType": 0, "HICMOTempID": 0 |
| | | }]; |
| | | table.render(option); |
| | | } |
| | |
| | | "HSourceName": data[i].çäº§èµæºåç§°, "HWorkerid": data[i].æä½åID, "HWorkerCode": data[i].æä½å代ç , |
| | | "HWorkerName": data[i].æä½ååç§°, "HQty": data[i].产é, "HBadQty": data[i].ä¸è¯æ°é == '' ? 0 : data[i].ä¸è¯æ°é, "HICMOBillNo": data[i].ç产订åå·, |
| | | "HICMOInterID": data[i].HICMOInterID, "HICMOEntryID": data[i].HICMOEntryID, "HRemark": "", "HSourceInterID": data[i].HICMOInterID, "HSourceEntryID": data[i].HICMOEntryID, "HSourceBillNo": data[i].ç产订åå·, |
| | | "HSourceBillType": 3710 |
| | | "HSourceBillType": 3710, "HICMOTempID": data[i].HICMOTempID |
| | | }); |
| | | } |
| | | |
| | |
| | | "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", |
| | | "HSourceID": 0, "HSourceCode": "", "HSourceName": "", "HWorkerid": 0, "HWorkerCode": "", "HWorkerName": "", "HQty": 0, "HBadQty": 0, |
| | | "HICMOBillNo": "", "HICMOInterID": "0", "HICMOEntryID": "0", "HRemark": "", "HSourceInterID": 0, "HSourceEntryID": 0, "HSourceBillNo": "", |
| | | "HSourceBillType": 0 |
| | | "HSourceBillType": 0, "HICMOTempID": 0 |
| | | }]; |
| | | table.render(option); |
| | | } |
| | |
| | | "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", |
| | | "HSourceID": 0, "HSourceCode": "", "HSourceName": "", "HWorkerid": 0, "HWorkerCode": "", "HWorkerName": "", "HQty": 0, "HBadQty": 0, |
| | | "HICMOBillNo": "", "HICMOInterID": "0", "HICMOEntryID": "0", "HRemark": "", "HSourceInterID": 0, "HSourceEntryID": 0, "HSourceBillNo": "", |
| | | "HSourceBillType": 0 |
| | | "HSourceBillType": 0, "HICMOTempID": 0 |
| | | }]; |
| | | table.render(option); |
| | | } |
| | |
| | | //#region é空éªè¯ |
| | | function AllowLoadData(sSubStr) { //é空éªè¯ |
| | | var Result = true; |
| | | if ($("#HDeptID").val() == '' || $("#HDeptID").val() == null) { |
| | | if ($("#HDeptID").val() == '' || $("#HDeptID").val() == null || $("#HDeptID").val() == "undefined" || $("#HDeptID").val() == 0) { |
| | | layer.msg("车é´ä¸è½ä¸ºç©º!", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | if ($("#HGroupID").val() == '' || $("#HGroupID").val() == null) { |
| | | if ($("#HGroupID").val() == '' || $("#HGroupID").val() == null || $("#HGroupID").val() == "undefined" | $("#HGroupID").val() == 0) { |
| | | layer.msg("çç»ä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | if ($("#HEmpID").val() == '' || $("#HEmpID").val() == null) { |
| | | if ($("#HEmpID").val() == '' || $("#HEmpID").val() == null || $("#HGroupID").val() == "undefined" || $("#HEmpID").val() == 0) { |
| | | layer.msg("ç»è®¡åä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'èåå表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../PublicPage/UserInformation.html', 'yes'] |
| | | , content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_EmployeeList.html?type=HEmp', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HEmpName").val(checkStatus.data[0].HName); |
| | | $("#HEmpName").val(checkStatus.data[0].èååç§°); |
| | | $("#HEmpID").val(checkStatus.data[0].HItemID); |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'é¨é¨å表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../PublicPage/DeptInformation.html', 'yes'] |
| | | , content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_DepartmentList.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HDeptName").val(checkStatus.data[0].HName); |
| | | $("#HDeptName").val(checkStatus.data[0].é¨é¨åç§°); |
| | | $("#HDeptID").val(checkStatus.data[0].HItemID); |
| | | $("#HDeptNumber").val(checkStatus.data[0].HNumber); |
| | | $("#HDeptNumber").val(checkStatus.data[0].é¨é¨ä»£ç ); |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | |
| | | } |
| | | } |
| | | |
| | | //#region 䏿¨é¡µé¢åå§å |
| | | function setInit_PushBill() { |
| | | //çæåæ®å·åå
ç |
| | | get_MAXNum(); |
| | | |
| | | //åå§åæ¥æãå¶å人ãå¶åæ¥æ |
| | | $("#HDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | $("#HMakeDate").val(Format(new Date(), "yyyy-MM-dd hh:mm:ss")); |
| | | $("#HGroupID").val(sessionStorage["HGroupID"]); //æ ¹æ®ç»å½ç¨æ·å¸¦åºçç»ID |
| | | $("#HGroupName").val(sessionStorage["HGroup"]); //æ ¹æ®ç»å½ç¨æ·å¸¦åºçç» |
| | | $("#HEmpID").val(sessionStorage["HEmpID"]); //æ ¹æ®ç»å½ç¨æ·å¸¦åºæä½åID |
| | | $("#HEmpName").val(sessionStorage["HEmpName"]); //æ ¹æ®ç»å½ç¨æ·å¸¦åºæä½å |
| | | |
| | | var temp = HSouceBillType; |
| | | |
| | | if (temp == "3710") { |
| | | //è·å |
| | | var data = getUrlVars_JSON().data; |
| | | var dataArray = []; |
| | | for (var i = 0; i < data.length; i++) { |
| | | var temp = getPushSource_ICMOBillInit(data[i].hmainid, data[i].hsubid); |
| | | if (temp != "none") { |
| | | dataArray.push(temp); |
| | | } else { |
| | | return; |
| | | } |
| | | } |
| | | |
| | | form.val("component-form-group", { //formTest å³ class="layui-form" æå¨å
ç´ å±æ§ lay-filter="" 对åºçå¼ |
| | | "HMainSourceInterID": "0" |
| | | , "HMainSourceEntryID": "0" |
| | | , "HMainSourceBillNo": "" |
| | | , "HMainSourceBillType": temp |
| | | , "HDeptID": dataArray[0].HDeptID |
| | | , "HDeptName": dataArray[0].çäº§è½¦é´ |
| | | , "HMainSourceBillType": 2 |
| | | }); |
| | | $('#XDHList').addClass("layui-btn-disabled").attr("disabled", true); |
| | | $('#HMainSourceBillNo').addClass("layui-btn-disabled").attr("disabled", true); |
| | | document.getElementById('HMainSourceBillNo').style.backgroundColor = '#efefef4d' |
| | | |
| | | //å表 èµå¼ |
| | | var rowdata = []; |
| | | for (var i = 0; i < dataArray.length; i++) { |
| | | rowdata.push( |
| | | { |
| | | "HMaterID": dataArray[i].HMaterID |
| | | , "HMaterCode": dataArray[i].产å代ç |
| | | , "HMaterName": dataArray[i].产ååç§° |
| | | , "HMaterSpec": dataArray[i].è§æ ¼åå· |
| | | , "HUnitID": dataArray[i].HUnitID |
| | | , "HUnitCode": dataArray[i].计éåä½ä»£ç |
| | | , "HUnitName": dataArray[i].计éåä½ |
| | | , "HSourceID": sessionStorage["HSourceID"] == "" ? 0 : sessionStorage["HSourceID"] |
| | | , "HSourceCode": "" |
| | | , "HSourceName": sessionStorage["HSource"] |
| | | , "HWorkerid": sessionStorage["HEmpID"] == "" ? 0 : sessionStorage["HEmpID"] |
| | | , "HWorkerCode": sessionStorage["HEmpNumber"] |
| | | , "HWorkerName": sessionStorage["HEmpName"] |
| | | , "HQty": dataArray[i].æªå
³èæ°é |
| | | , "HBadQty": 0 |
| | | , "HICMOBillNo": dataArray[i].åæ®å· |
| | | , "HICMOInterID": dataArray[i].hmainid |
| | | , "HICMOEntryID": dataArray[i].HEntryID |
| | | , "HSourceInterID": dataArray[i].hmainid |
| | | , "HSourceEntryID": dataArray[i].HEntryID |
| | | , "HSourceBillNo": dataArray[i].åæ®å· |
| | | , "HSourceBillType": dataArray[i].åæ®ç±»å |
| | | , 'HICMOTempID': "0" |
| | | , 'HRemark': "" |
| | | } |
| | | ); |
| | | } |
| | | option.data = rowdata; |
| | | table.render(option); |
| | | } |
| | | else { |
| | | return layer.msg('å½å䏿¯æè¯¥æºå䏿¨ï¼ï¼'); |
| | | } |
| | | } |
| | | //#endregion |
| | | |
| | | //#region æ ¹æ®ä¸»å
ç ä¸åå
ç è·åæºåçäº§è®¢åæ°æ® |
| | | function getPushSource_ICMOBillInit(HSourceInterID, HSourceEntryID) { |
| | | var res = "none"; |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Sc_ICMOBill/loadSc_ICMOBill_Push", |
| | | async: false, |
| | | type: "GET", |
| | | data: { |
| | | "HInterID": HSourceInterID |
| | | , "HSubID": HSourceEntryID |
| | | }, |
| | | success: function (result) { |
| | | if (result.code == 1) { // 说æéªè¯æåäºï¼ |
| | | res = result.data[0]; |
| | | } else { |
| | | res = result.data; |
| | | //layer.alert(result.msg, { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | } |
| | | }, error: function () { |
| | | res = "none"; |
| | | layer.alert("åçé误!", { icon: 5 }); |
| | | } |
| | | }); |
| | | return res; |
| | | } |
| | | //#endregion |
| | | |
| | | //#region è·ååæ°_ä¼ éçJSONæ ¼å¼åæ° |
| | | function getUrlVars_JSON() { |
| | | var datajson; |
| | | var str = window.location.search; //è·å龿¥ä¸ä¼ éçåæ° |
| | | var arr = str.substring(str.lastIndexOf("=") + 1); |
| | | datajson = $.parseJSON(decodeURI(arr)); |
| | | return datajson; |
| | | } |
| | | //#endregion |
| | | |
| | | //#endregion |
| | | |
| | |
| | | /*window.location.href = url;*/ |
| | | window.open(url) |
| | | } |
| | | |
| | | //çäº§è½¦é´ |
| | | function GetHDeptNameValue(obj) { |
| | | $("#HDeptName").val(obj[0].é¨é¨åç§°); |
| | | $("#HDeptID").val(obj[0].HItemID); |
| | | $("#HDeptNumber").val(obj[0].é¨é¨ä»£ç ); |
| | | } |
| | | //ç产çç» |
| | | function GetHGroupValue(obj) { |
| | | $("#HGroupName").val(obj[0].çç»åç§°); |
| | | $("#HGroupID").val(obj[0].HItemID); |
| | | } |
| | | //ç»è®¡å |
| | | function GetHEmpValue(obj) { |
| | | $("#HEmpName").val(obj[0].èååç§°); |
| | | $("#HEmpID").val(obj[0].HItemID); |
| | | } |
| | | //ç©æ |
| | | function GetMaterValue(obj) { |
| | | OptionData = obj; |
| | | } |
| | | //åä½ |
| | | function GetUnitValue(obj) { |
| | | OptionData = obj; |
| | | } |
| | | //çäº§èµæº |
| | | function GetGySource(obj) { |
| | | OptionData[0] = obj; |
| | | } |
| | | //æä½å |
| | | function GetHManagerValue(obj) { |
| | | OptionData = obj; |
| | | } |
| | | </script> |
| | | </body> |
| | | </html> |