| | |
| | | </div> |
| | | <div class="layui-col-xs8 layui-inline"> |
| | | <label class="layui-form-label" style="width: 6.5%;">夿³¨</label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="HRemark" id="HRemark" autocomplete="off" style=" width: 75%;"> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HRemark" id="HRemark" autocomplete="off" style=" width: 75%;"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | else if (OperationType == 4) {//䏿¨ |
| | | setInit_PushBill(); |
| | | } |
| | | else if (OperationType == 5) {//å¤å¶ |
| | | set_EditFromGrid(); |
| | | //è·åæå¤§åæ®å· |
| | | get_MAXNum(); |
| | | //åå§åå¶å人åå¶åæ¶é´ |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | $("#HMakeDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HUpDater").val(); |
| | | $("#HUpDateDate").val(); |
| | | $("#HChecker").val(); |
| | | $("#HCheckDate").val(); |
| | | $("#HCloseMan").val(); |
| | | $("#HCloseDate").val(); |
| | | $("#HDeleteMan").val(); |
| | | $("#HDeleteDate").val(); |
| | | //get_file(); |
| | | } |
| | | else { |
| | | layer.alert("æªç¥æä½ç±»åï¼", { icon: 5 }); |
| | | } |
| | |
| | | table.on('tool(mainTable)', function (obj) { |
| | | set_GridDelete(obj); //è¡å
å é¤ |
| | | set_GridCellCheck(obj); //è¡å
å¿«æ·é®çé |
| | | |
| | | //#region ä¿®æ¹è¡ æ¶é´ |
| | | var data = obj.data; |
| | | //çäº§æ¥æ |
| | | if (obj.event == 'HProduceDate') { |
| | | var field = $(this).data('field'); |
| | | laydate.render({ |
| | | elem: this.firstChild |
| | | , show: true //ç´æ¥æ¾ç¤º |
| | | , closeStop: this |
| | | , done: function (nowDate) { |
| | | //æ¶é´éæ©å®æï¼è¡æ°æ®æ´æ° |
| | | data[field] = nowDate; |
| | | obj.update(data); |
| | | //å·æ°å¤éæ¡ |
| | | //checkRefresh(); |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | }); |
| | | //#endregion |
| | | |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å·¥èµåºç¡èµæ/Gy_Group.html?type=HGroup', 'yes'], |
| | | content: ['../../åºç¡èµæ/å·¥èµåºç¡èµæ/Gy_Group.html?type=HGroup&openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | content: ['../../PublicPage/ProductionOrder.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | option.data = [{ |
| | | "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, "HICMOTempID": 0 |
| | | }]; |
| | | table.render(option); |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | |
| | | if (isAllEqual(list)) //ç¸ååå· |
| | | { |
| | | //console.log(checkStatus.data); |
| | | if (checkStatus.data.length > 1) { |
| | | for (var i = 0; i < checkStatus.data.length - 1; i++) //è¡¥è¡ |
| | | { |
| | | //var NewRow = { "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HUnitID": 0, "HUnitCode": "", "HUnitName": "", "HSourceID": 0, "HSourceCode": "", "HSourceName": "", "HWorkerid": 0, "HWorkerCode": "", "HWorkerName": "", "HQty": 0, "HRemark": "" }; |
| | | 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, "HICMOTempID": 0 |
| | | }); |
| | | option.data = table.cache["mainTable"]; |
| | | table.render(option); |
| | | } |
| | | var optionData = []; |
| | | for (var i = 0; i < checkStatus.data.length; i++) //è¡¥è¡ |
| | | { |
| | | var NewRow = { |
| | | "HMaterID": checkStatus.data[0].HMaterID, "HMaterCode": checkStatus.data[0].HMaterCode, "HMaterName": checkStatus.data[0].HMaterName, "HMaterSpec": checkStatus.data[0].HMaterSpec, "HUnitID": checkStatus.data[0].HUnitID, "HUnitCode": checkStatus.data[0].HUnitCode, "HUnitName": checkStatus.data[0].HUnitName, |
| | | "HSourceID": 0, "HSourceCode": "", "HSourceName": "", "HWorkerid": 0, "HWorkerCode": "", "HWorkerName": "", "HQty": 0, "HBadQty": 0, |
| | | "HICMOBillNo": checkStatus.data[0].åæ®å·, "HICMOInterID": checkStatus.data[0].hmainid, "HICMOEntryID": checkStatus.data[0].HEntryID, "HRemark": "", "HSourceInterID": checkStatus.data[0].hmainid, "HSourceEntryID": checkStatus.data[0].HEntryID, "HSourceBillNo": checkStatus.data[0].åæ®å·, |
| | | "HSourceBillType": 3710 |
| | | }; |
| | | optionData.push(NewRow); |
| | | } |
| | | option.data = checkStatus.data; |
| | | table.render(option); |
| | | //for (var i = 0; i < checkStatus.data.length; i++) { |
| | | // $('.layui-table-view[lay-id="mainTable"]').children('.layui-table-box').children('.layui-table-body').find('table tbody tr[data-index="' + i + '"]').find('td[data-field="HMaterID"] .layui-table-cell').text(checkStatus.data[i].HMaterID); |
| | | // $('.layui-table-view[lay-id="mainTable"]').children('.layui-table-box').children('.layui-table-body').find('table tbody tr[data-index="' + i + '"]').find('td[data-field="HMaterCode"] .layui-table-cell').text(checkStatus.data[i].HMaterCode); |
| | | // $('.layui-table-view[lay-id="mainTable"]').children('.layui-table-box').children('.layui-table-body').find('table tbody tr[data-index="' + i + '"]').find('td[data-field="HMaterName"] .layui-table-cell').text(checkStatus.data[i].HMaterName); |
| | | // $('.layui-table-view[lay-id="mainTable"]').children('.layui-table-box').children('.layui-table-body').find('table tbody tr[data-index="' + i + '"]').find('td[data-field="HMaterSpec"] .layui-table-cell').text(checkStatus.data[i].HMaterSpec); |
| | | // $('.layui-table-view[lay-id="mainTable"]').children('.layui-table-box').children('.layui-table-body').find('table tbody tr[data-index="' + i + '"]').find('td[data-field="HUnitID"] .layui-table-cell').text(checkStatus.data[i].HUnitID); |
| | | // $('.layui-table-view[lay-id="mainTable"]').children('.layui-table-box').children('.layui-table-body').find('table tbody tr[data-index="' + i + '"]').find('td[data-field="HUnitCode"] .layui-table-cell').text(checkStatus.data[i].HUnitCode); |
| | | // $('.layui-table-view[lay-id="mainTable"]').children('.layui-table-box').children('.layui-table-body').find('table tbody tr[data-index="' + i + '"]').find('td[data-field="HUnitName"] .layui-table-cell').text(checkStatus.data[i].HUnitName); |
| | | //} |
| | | |
| | | table.reload("mainTable", { |
| | | data: optionData //å°æ°æ®éæ°è½½å
¥è¡¨æ ¼ |
| | | }) |
| | | |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | else { |
| | |
| | | //#region æäº¤ä¿å |
| | | form.on('submit(Saver)', function (data) {//ä¿å |
| | | var refSav = ""; |
| | | if (OperationType == 1 || OperationType == 2 || OperationType == 4) { |
| | | if (OperationType == 1 || OperationType == 2 || OperationType == 4 || OperationType == 5) { |
| | | refSav = "Add"; |
| | | } |
| | | if (OperationType == 3) { |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Material.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Material.html?openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HMaterID: checkStatus.data[0].HItemID, |
| | | HMaterCode: checkStatus.data[0].ç©æä»£ç , |
| | | HMaterName: checkStatus.data[0].ç©æåç§°, |
| | | HMaterSpec: checkStatus.data[0].è§æ ¼åå·, |
| | | }); |
| | | |
| | | //éä¸å¤è¡æ¶ |
| | | if (checkStatus.data.length > 1) { |
| | | var rowIndex = $(obj.tr).attr("data-index") * 1; //attr("data-index")ç¨äºè·å该trå
ç´ ä¸data-index屿§çå¼*1转æ¢ç±»åç¶åèµå¼ç»rowIndex |
| | | for (var i = 0; i < checkStatus.data.length; i++) { //夿éä¸çæ°æ®çé¿åº¦ ç¨äºéåcheckStatus.dataæ°ç»ä¸çæ¯ä¸ªå
ç´ |
| | | if (rowIndex + i >= option.data.length) { //夿rowIndex + içç´¢å¼è¶
åºäºoption.dataæ°ç»çé¿åº¦ï¼è¯´æoption.dataæ°ç»éè¦æ©å±ä»¥å
嫿´å¤è¡ |
| | | var NewRow = { |
| | | "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 |
| | | }; |
| | | |
| | | table.cache["mainTable"].push(NewRow); //å建æ°çå
嫿°ç» ä¼ å
¥table.cache["mainTable"]æ°ç» |
| | | option.data = table.cache["mainTable"]; //æä¼ å
¥ table.cache["mainTable"]æ°ç»çå¼èµå¼ç»option.data ç屿§ |
| | | |
| | | table.render(option);//渲æçé¢ |
| | | } |
| | | option.data[rowIndex + i].HMaterID = checkStatus.data[i].HItemID; //å°option.dataæ°ç»ä¸å¯¹åºè¡çHMaterID屿§æ´æ°ä¸ºä»resultData对象ä¸è·åçç©æID |
| | | option.data[rowIndex + i].HMaterCode = checkStatus.data[i].ç©æä»£ç ; //å°option.dataæ°ç»ä¸å¯¹åºè¡ç ç©æä»£ç 屿§æ´æ°ä¸ºä»resultData对象ä¸è·åçç©æID |
| | | option.data[rowIndex + i].HMaterName = checkStatus.data[i].ç©æåç§°; //å°option.dataæ°ç»ä¸å¯¹åºè¡ç ç©æåç§° 屿§æ´æ°ä¸ºä»resultData对象ä¸è·åçç©æID |
| | | option.data[rowIndex + i].HMaterSpec = checkStatus.data[i].è§æ ¼åå·; //å°option.dataæ°ç»ä¸å¯¹åºè¡ç è§æ ¼åå· å±æ§æ´æ°ä¸ºä»resultData对象ä¸è·åçç©æID |
| | | option.data[rowIndex + i].HUnitID = checkStatus.data[i].HUnitID; //å°option.dataæ°ç»ä¸å¯¹åºè¡ç HUnitID 屿§æ´æ°ä¸ºä»resultData对象ä¸è·åçç©æID |
| | | option.data[rowIndex + i].HUnitCode = checkStatus.data[i].计éåä½ä»£ç ; |
| | | option.data[rowIndex + i].HUnitName = checkStatus.data[i].计éåä½åç§°; //å°option.dataæ°ç»ä¸å¯¹åºè¡ç 计éåä½ å±æ§æ´æ°ä¸ºä»resultData对象ä¸è·åçç©æID æ´æ°è®¡éåä½å±æ§ |
| | | } |
| | | table.render(option); //éæ°æ¸²æè¡¨æ ¼ä»¥æ¾ç¤ºæ´æ°åçæ°æ® |
| | | } else { |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HMaterID: checkStatus.data[0].HItemID, |
| | | HMaterCode: checkStatus.data[0].ç©æä»£ç , |
| | | HMaterName: checkStatus.data[0].ç©æåç§°, |
| | | HMaterSpec: checkStatus.data[0].è§æ ¼åå·, |
| | | HUnitID: checkStatus.data[0].HUnitID, |
| | | HUnitCode: checkStatus.data[0].计éåä½ä»£ç , |
| | | HUnitName: checkStatus.data[0].计éåä½åç§°, |
| | | }); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, end: function () { |
| | | if (OptionData.length > 0) { |
| | | if (OptionData != "" && OptionData != []) { |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | HMaterID: OptionData[0].HItemID, |
| | | HMaterCode: OptionData[0].ç©æä»£ç , |
| | | HMaterName: OptionData[0].ç©æåç§°, |
| | | HMaterSpec: OptionData[0].è§æ ¼åå·, |
| | | HMaterID: OptionData.HItemID, |
| | | HMaterCode: OptionData.ç©æä»£ç , |
| | | HMaterName: OptionData.ç©æåç§°, |
| | | HMaterSpec: OptionData.è§æ ¼åå·, |
| | | HUnitID: OptionData.HUnitID, |
| | | HUnitCode: OptionData.计éåä½ä»£ç , |
| | | HUnitName: OptionData.计éåä½åç§°, |
| | | }); |
| | | OptionData = []; |
| | | } |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Unit.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Unit.html?Type=HUnitList', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, end: function () { |
| | | if (OptionData.length > 0) { |
| | | if (OptionData != "" && OptionData != []) { |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | HUnitID: OptionData[0].HItemID, |
| | | HUnitCode: OptionData[0].计éåä½ä»£ç , |
| | | HUnitName: OptionData[0].计éåä½åç§° |
| | | HUnitID: OptionData.HItemID, |
| | | HUnitCode: OptionData.计éåä½ä»£ç , |
| | | HUnitName: OptionData.计éåä½åç§° |
| | | }); |
| | | OptionData = []; |
| | | } |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/ç产åºç¡èµæ/Gy_Source.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/ç产åºç¡èµæ/Gy_Source.html?Htype=&openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | if (OptionData.length > 0) { |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | HSourceID: OptionData[0].HItemID, |
| | | HSourceCode: OptionData[0].çäº§èµæºä»£ç , |
| | | HSourceName: OptionData[0].çäº§èµæºåç§° |
| | | HSourceID: OptionData[0][0].HItemID, |
| | | HSourceCode: OptionData[0][0].çäº§èµæºä»£ç , |
| | | HSourceName: OptionData[0][0].çäº§èµæºåç§° |
| | | }); |
| | | OptionData = []; |
| | | } |
| | |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, fixed: 'left', event: "qwe", width: 100 } |
| | | , { field: 'HMaterID', title: 'HMaterID', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HMaterCode', title: 'ç©æä»£ç ', edit: 'text', event: 'HMaterCode', width: 100 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', edit: 'text', width: 100 } |
| | | , { field: 'HMaterSpec', title: 'è§æ ¼åå·', edit: 'text', width: 100 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', style: 'background-color:#efefef4d;', width: 100 } |
| | | , { field: 'HMaterSpec', title: 'è§æ ¼åå·', style: 'background-color:#efefef4d;', width: 100 } |
| | | , { field: 'HUnitID', title: 'HUnitID', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HUnitCode', title: 'åä½ä»£ç ', edit: 'text', event: 'HUnitCode', width: 100 } |
| | | , { field: 'HUnitName', title: 'åä½åç§°', edit: 'text', width: 100 } |
| | | , { field: 'HUnitName', title: 'åä½åç§°', style: 'background-color:#efefef4d;', width: 100 } |
| | | , { field: 'HSourceID', title: 'HSourceID', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HSourceCode', title: 'èµæºä»£ç ', edit: 'text', event: 'HSourceCode', width: 100 } |
| | | , { field: 'HSourceName', title: 'èµæºåç§°', edit: 'text', width: 100 } |
| | | , { field: 'HSourceName', title: 'èµæºåç§°', style: 'background-color:#efefef4d;', width: 100 } |
| | | , { 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: 'HWorkerName', title: 'æä½ååç§°', style: 'background-color:#efefef4d;', 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: 'HICMOBillNo', title: 'ç产订å', style: 'background-color:#efefef4d;', width: 100 } |
| | | , { field: 'HICMOInterID', title: 'ç产订åå
ç ', style: 'background-color:#efefef4d;', width: 100, hide: true } |
| | | , { field: 'HICMOEntryID', title: 'ç产订ååå
ç ', style: 'background-color:#efefef4d;', width: 100, hide: true } |
| | | , { field: 'HPRODUCEDATE', title: 'çäº§æ¥æ', event: 'HProduceDate', width: 100 } |
| | | |
| | | , { 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 } |
| | |
| | | "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, "HICMOTempID": data[i].HICMOTempID |
| | | "HSourceBillType": 3710, "HICMOTempID": data[i].HICMOTempID,"HPRODUCEDATE": data[i].çäº§æ¥æ |
| | | }); |
| | | } |
| | | |
| | |
| | | function set_EditFromGrid() { |
| | | set_EditForm(linterid); //ç¼è¾è·å表头 |
| | | set_EditGrid(linterid); //ç¼è¾è·åè¡¨ä½ |
| | | option.data = [{ |
| | | "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, "HICMOTempID": 0 |
| | | }]; |
| | | //option.data = [{ |
| | | // "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, "HICMOTempID": 0 |
| | | //}]; |
| | | table.render(option); |
| | | } |
| | | //#endregion |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + "Sc_ICMOReportBill/Sc_GetICMOReportBillListCheckDetai", |
| | | type: "GET", |
| | | async: false, |
| | | data: { |
| | | "HID": linterid |
| | | }, |
| | |
| | | $("#HEmpID").val(data.HEmpID); |
| | | $("#HEmpName").val(data.ç»è®¡å); |
| | | $("#HMainSourceBillNo").val(data.HMainSourceBillNo); |
| | | $("#HMainSourceInterID").val(data.HMainSourceInterID); |
| | | $("#HMainSourceEntryID").val(data.HMainSourceEntryID); |
| | | $("#HMainSourceInterID").val(data.HMainSourceInterID == null ? 0 : data.HMainSourceInterID); |
| | | $("#HMainSourceEntryID").val(data.HMainSourceEntryID == null ? 0 : data.HMainSourceEntryID); |
| | | $("#HExplanation").val(""); |
| | | $("#HRemark").val(data.è¡¨å¤´å¤æ³¨); |
| | | PicUpload(); |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + 'Sc_ICMOReportBill/Sc_ICMOReportBillListProjectDetai', |
| | | type: "GET", |
| | | async: false, |
| | | data: { "sqlWhere": "and hmainid=" + linterid }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | |
| | | layer.msg("æç»è®°å½ç¬¬" + (i + 1) + "è¡,ç产æ°éä¸è½ä¸ºç©ºæ0æè
å°äº0!", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | //if (sSubStr[i].HPRODUCEDATE == "" || sSubStr[i].HPRODUCEDATE == null || sSubStr[i].HPRODUCEDATE == "undefined") { |
| | | // layer.msg("æç»è®°å½ç¬¬" + (i + 1) + "è¡,çäº§æ¥æä¸å
许为空!", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return Result = false; |
| | | //} |
| | | } |
| | | } |
| | | else { |
| | |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'é¨é¨å表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_DepartmentList.html', 'yes'] |
| | | , content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_DepartmentList.html?openType=2&HOrgName=' + sessionStorage["Organization"], 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | |
| | | , "HSourceBillType": dataArray[i].åæ®ç±»å |
| | | , 'HICMOTempID': "0" |
| | | , 'HRemark': "" |
| | | , 'HPRODUCEDATE': dataArray[i].çäº§æ¥æ |
| | | } |
| | | ); |
| | | } |
| | |
| | | $("#HEmpID").val(obj[0].HItemID); |
| | | } |
| | | //ç©æ |
| | | function GetMaterValue(obj) { |
| | | function GetGyMaterial(obj) { |
| | | OptionData = obj; |
| | | } |
| | | //åä½ |
| | | function GetUnitValue(obj) { |
| | | function GetHUnitListValue(obj) { |
| | | OptionData = obj; |
| | | } |
| | | //çäº§èµæº |