寿命调整单 日期显示
寿命调整单 单据 新寿命 未保存进去
| | |
| | | , { 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: 'å¨å
·åç§°', width: 100 } |
| | | , { field: 'HMaterSpec', title: 'è§æ ¼åå·', width: 100 } |
| | | , { field: 'HPropertyID', title: 'HPropertyID', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HPropertyCode', title: 'è¾
å©å±æ§ä»£ç ', edit: 'text', event: 'HPropertyCode', width: 100 } |
| | | , { field: 'HPropertyName', title: 'è¾
å©å±æ§', edit: 'text', width: 100 } |
| | | , { field: 'HPropertyName', title: 'è¾
å©å±æ§', width: 100 } |
| | | , { field: 'HSecUnitID', title: 'HSecUnitID', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HSecUnitCode', title: 'è¾
å©è®¡éåä½ä»£ç ', edit: 'text', event: 'HSecUnitCode', width: 100 } |
| | | , { field: 'HSecUnitName', title: 'è¾
å©è®¡éåä½', edit: 'text', width: 100 } |
| | | , { field: 'HSecUnitName', title: 'è¾
å©è®¡éåä½', width: 100 } |
| | | , { field: 'HSecUnitRate', title: 'æ¢ç®ç', edit: 'text', 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: '计éåä½', width: 100 } |
| | | , { field: 'HDesignLife', title: '设计寿å½', edit: 'text', width: 100 } |
| | | , { field: 'HLeaveLife', title: 'åå©ä½å¯¿å½', edit: 'text', width: 100 } |
| | | , { field: 'HNewLife', title: 'æ°å©ä½å¯¿å½', edit: 'text', width: 100 } |
| | | , { field: 'HNewLeaveLife', title: 'æ°å©ä½å¯¿å½', edit: 'text', width: 100 } |
| | | , { field: 'HRemark', title: '表ä½å¤æ³¨', edit: 'text', width: 100 } |
| | | ]] |
| | | , limit: 500 //æ¯é¡µé»è®¤æ¾ç¤ºçæ°é |
| | |
| | | //夿æ¯å¦æ°å¢ |
| | | if (hID == null || hID == 0) { |
| | | //åå§å è½½è¡¨æ ¼{ "ID": 0, "HWasterReasonName": " ","HBadReasonID":0,"HEmpName": " ", "HSQProcName": " ","HProcID":0, "HZRProcName": " ", "HMRBChecker": " ", "HRemark": " ", "HPSProcName": " ", "HCloseMan": " " } |
| | | option.data = [{ "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HPropertyID": 0, "HPropertyCode": "", "HPropertyName": "", "HSecUnitID": 0, "HSecUnitCode": "", "HSecUnitName": "", "HSecUnitRate": 0, "HUnitID": 0, "HUnitCode": "", "HUnitName": "", "HDesignLife": 0, "HLeaveLife": 0, "HNewLife": 0, "HRemark": "" }]; |
| | | option.data = [{ "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HPropertyID": 0, "HPropertyCode": "", "HPropertyName": "", "HSecUnitID": 0, "HSecUnitCode": "", "HSecUnitName": "", "HSecUnitRate": 0, "HUnitID": 0, "HUnitCode": "", "HUnitName": "", "HDesignLife": 0, "HLeaveLife": 0, "HNewLeaveLife": 0, "HRemark": "" }]; |
| | | table.render(option); |
| | | } |
| | | else { |
| | |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data;; |
| | | var AddRow = table.cache['mainTable']; |
| | | var NewRow = { "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HPropertyID": 0, "HPropertyCode": "", "HPropertyName": "", "HSecUnitID": 0, "HSecUnitCode": "", "HSecUnitName": "", "HSecUnitRate": 0, "HUnitID": 0, "HUnitCode": "", "HUnitName": "", "HDesignLife": 0, "HLeaveLife": 0, "HNewLife": 0, "HRemark": "" }; |
| | | var NewRow = { "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HPropertyID": 0, "HPropertyCode": "", "HPropertyName": "", "HSecUnitID": 0, "HSecUnitCode": "", "HSecUnitName": "", "HSecUnitRate": 0, "HUnitID": 0, "HUnitCode": "", "HUnitName": "", "HDesignLife": 0, "HLeaveLife": 0, "HNewLeaveLife": 0, "HRemark": "" }; |
| | | switch (obj.event) { |
| | | case 'btn-AddLine': |
| | | //table.cache["mainTable"].push(AddRow[rows]); |
| | |
| | | HMaterName: checkStatus.data[0].HName, |
| | | HMaterSpec: checkStatus.data[0].HModel, |
| | | HLeaveLife: checkStatus.data[0].HLeaveLife, |
| | | HNewLife: checkStatus.data[0].HNewLife, |
| | | HNewLeaveLife: checkStatus.data[0].HNewLife, |
| | | HDesignLife: checkStatus.data[0].HDesignLife, //è®¾è®¡å¯¿å½ |
| | | |
| | | }); |
| | |
| | | <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> |
| | | <script> |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | |
| | | , util = layui.util |
| | | //æ¥è¯¢æ¡ä»¶ |
| | | var sWhere = ""; |
| | | var option = []; |
| | | //var option = { |
| | | // elem: '#mainTable' |
| | | // , toolbar: '#toolbarDemo' |
| | | // , height: 550 |
| | | // , page: true |
| | | // , cellMinWidth: 90 |
| | | // , limits: [50, 500, 5000, 20000] |
| | | // , limit: 50 |
| | | // , cols: [[ |
| | | // { type: 'checkbox', fixed: 'left' } |
| | | // ,{ field: 'hmainid', title: '忮ID', hide: true } |
| | | // , { 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: 'HEmID', title: 'HEmID', width: 200, hide: true } |
| | | // , { field: 'è°æ´äººä»£ç ', title: 'è°æ´äººä»£ç ', width: 200 } |
| | | // , { field: 'è°æ´äºº', title: 'è°æ´äºº', width: 200 } |
| | | // , { field: 'HMangerID', title: 'HEmID', width: 200, hide: true } |
| | | // , { field: 'è´è´£äººä»£ç ', title: 'è´è´£äººä»£ç ', width: 200 } |
| | | // , { field: 'è´è´£äºº', title: 'è´è´£äºº', width: 200 } |
| | | // , { field: 'HDeptID', title: 'HDeptID', width: 200, hide: true } |
| | | // , { field: 'é¨é¨ä»£ç ', title: 'é¨é¨ä»£ç ', width: 115 } |
| | | // , { field: 'é¨é¨', title: 'é¨é¨', width: 200 } |
| | | // , { field: 'è°æ´åå ', title: 'è°æ´åå ', width: 115 } |
| | | // , { field: 'æè¦', title: 'æè¦', width: 200 } |
| | | // , { field: 'å
é¨åæ®å·', title: 'å
é¨åæ®å·', width: 115 } |
| | | // , { field: '夿³¨', title: '夿³¨', width: 200 } |
| | | // , { field: 'hsubid', title: 'hsubid', width: 200, hide: true } |
| | | // , { field: 'å
³èæ°é', title: 'å
³èæ°é', width: 200 } |
| | | // , { field: 'è¡å
³é人', title: 'è¡å
³é人', width: 200 } |
| | | // , { field: 'å
³éç±»å', title: 'å
³éç±»å', width: 200 } |
| | | // , { field: '表ä½å¤æ³¨', title: '表ä½å¤æ³¨', width: 200 } |
| | | // , { field: 'HMaterID', title: 'HMaterID', width: 200, hide: true } |
| | | // , { field: '模å
·ä»£ç ', title: 'å¨å
·ä»£ç ', width: 200 } |
| | | // , { field: '模å
·', title: 'å¨å
·', width: 200 } |
| | | // , { field: 'HPropertyID', title: 'HPropertyID', width: 200, hide: true } |
| | | // , { field: 'è¾
å©å±æ§ä»£ç ', title: 'è¾
å©å±æ§ä»£ç ', width: 200 } |
| | | // , { field: 'è¾
å©å±æ§', title: 'è¾
å©å±æ§', width: 200 } |
| | | // , { field: 'HSecUnitID', title: 'HSecUnitID', width: 200, hide: true } |
| | | // , { field: 'è¾
å©è®¡éåä½ä»£ç ', title: 'è¾
å©è®¡éåä½ä»£ç ', width: 200 } |
| | | // , { field: 'è¾
å©è®¡éåä½', title: 'è¾
å©è®¡éåä½', width: 200 } |
| | | // , { field: 'æ¢ç®ç', title: 'æ¢ç®ç', width: 200 } |
| | | // , { field: 'Hunitid', title: 'Hunitid', width: 200, hide: true } |
| | | // , { field: '计éåä½ä»£ç ', title: '计éåä½ä»£ç ', width: 200 } |
| | | // , { field: '计éåä½', title: '计éåä½', width: 200 } |
| | | // , { field: '设计寿å½', title: '设计寿å½', width: 200 } |
| | | // , { field: 'åå©ä½å¯¿å½', title: 'åå©ä½å¯¿å½', width: 200 } |
| | | // , { field: 'æ°å©ä½å¯¿å½', title: 'æ°å©ä½å¯¿å½', width: 200 } |
| | | // , { field: 'å¶å人', title: 'å¶å人', width: 200 } |
| | | // , { field: 'å¶åæ¥æ', title: 'å¶åæ¥æ', width: 200, templet: "<div>{{d.å¶åæ¥æ ==null ?'':layui.util.toDateString(d.å¶åæ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | // , { field: 'å®¡æ ¸äºº', title: 'å®¡æ ¸äºº', width: 200 } |
| | | // , { field: 'å®¡æ ¸æ¥æ', title: 'å®¡æ ¸æ¥æ', width: 200, templet: "<div>{{d.å®¡æ ¸æ¥æ ==null ? '':layui.util.toDateString(d.å®¡æ ¸æ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | // , { field: 'ä¿®æ¹äºº', title: 'ä¿®æ¹äºº', width: 200 } |
| | | // , { field: 'ä¿®æ¹æ¥æ', title: 'ä¿®æ¹æ¥æ', width: 200, templet: "<div>{{d.ä¿®æ¹æ¥æ ==null ?'':layui.util.toDateString(d.ä¿®æ¹æ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | // , { field: 'å
³é人', title: 'å
³é人', width: 200 } |
| | | // , { field: 'å
³éæ¥æ', title: 'å
³éæ¥æ', width: 200, templet: "<div>{{d.å
³éæ¥æ ==null ?'':layui.util.toDateString(d.å
³éæ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | // , { field: 'ä½åºäºº', title: 'ä½åºäºº', width: 200 } |
| | | // , { field: 'ä½åºæ¥æ', title: 'ä½åºæ¥æ', width: 200, templet: "<div>{{d.ä½åºæ¥æ ==null ?'':layui.util.toDateString(d.ä½åºæ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | // , { field: 'æºå主å
ç ', title: 'æºå主å
ç ', width: 200, hide: true } |
| | | // , { field: 'æºååå
ç ', title: 'æºååå
ç ', width: 200, hide: true } |
| | | // , { field: 'æºååå·', title: 'æºååå·', width: 200 } |
| | | // , { field: 'æºåç±»å', title: 'æºåç±»å', width: 200 } |
| | | // ]] |
| | | //}; |
| | | |
| | | var option = { |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , height: 'full-50' |
| | | , page: true |
| | | , cellMinWidth: 90 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , limit: 50 |
| | | , cols: [[ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | ,{ field: 'hmainid', title: '忮ID', hide: true } |
| | | , { 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: 'HEmID', title: 'HEmID', width: 200, hide: true } |
| | | , { field: 'è°æ´äººä»£ç ', title: 'è°æ´äººä»£ç ', width: 200 } |
| | | , { field: 'è°æ´äºº', title: 'è°æ´äºº', width: 200 } |
| | | , { field: 'HMangerID', title: 'HEmID', width: 200, hide: true } |
| | | , { field: 'è´è´£äººä»£ç ', title: 'è´è´£äººä»£ç ', width: 200 } |
| | | , { field: 'è´è´£äºº', title: 'è´è´£äºº', width: 200 } |
| | | , { field: 'HDeptID', title: 'HDeptID', width: 200, hide: true } |
| | | , { field: 'é¨é¨ä»£ç ', title: 'é¨é¨ä»£ç ', width: 115 } |
| | | , { field: 'é¨é¨', title: 'é¨é¨', width: 200 } |
| | | , { field: 'è°æ´åå ', title: 'è°æ´åå ', width: 115 } |
| | | , { field: 'æè¦', title: 'æè¦', width: 200 } |
| | | , { field: 'å
é¨åæ®å·', title: 'å
é¨åæ®å·', width: 115 } |
| | | , { field: '夿³¨', title: '夿³¨', width: 200 } |
| | | , { field: 'hsubid', title: 'hsubid', width: 200, hide: true } |
| | | , { field: 'å
³èæ°é', title: 'å
³èæ°é', width: 200 } |
| | | , { field: 'è¡å
³é人', title: 'è¡å
³é人', width: 200 } |
| | | , { field: 'å
³éç±»å', title: 'å
³éç±»å', width: 200 } |
| | | , { field: '表ä½å¤æ³¨', title: '表ä½å¤æ³¨', width: 200 } |
| | | , { field: 'HMaterID', title: 'HMaterID', width: 200, hide: true } |
| | | , { field: '模å
·ä»£ç ', title: 'å¨å
·ä»£ç ', width: 200 } |
| | | , { field: '模å
·', title: 'å¨å
·', width: 200 } |
| | | , { field: 'HPropertyID', title: 'HPropertyID', width: 200, hide: true } |
| | | , { field: 'è¾
å©å±æ§ä»£ç ', title: 'è¾
å©å±æ§ä»£ç ', width: 200 } |
| | | , { field: 'è¾
å©å±æ§', title: 'è¾
å©å±æ§', width: 200 } |
| | | , { field: 'HSecUnitID', title: 'HSecUnitID', width: 200, hide: true } |
| | | , { field: 'è¾
å©è®¡éåä½ä»£ç ', title: 'è¾
å©è®¡éåä½ä»£ç ', width: 200 } |
| | | , { field: 'è¾
å©è®¡éåä½', title: 'è¾
å©è®¡éåä½', width: 200 } |
| | | , { field: 'æ¢ç®ç', title: 'æ¢ç®ç', width: 200 } |
| | | , { field: 'Hunitid', title: 'Hunitid', width: 200, hide: true } |
| | | , { field: '计éåä½ä»£ç ', title: '计éåä½ä»£ç ', width: 200 } |
| | | , { field: '计éåä½', title: '计éåä½', width: 200 } |
| | | , { field: '设计寿å½', title: '设计寿å½', width: 200 } |
| | | , { field: 'åå©ä½å¯¿å½', title: 'åå©ä½å¯¿å½', width: 200 } |
| | | , { field: 'æ°å©ä½å¯¿å½', title: 'æ°å©ä½å¯¿å½', width: 200 } |
| | | , { field: 'å¶å人', title: 'å¶å人', width: 200 } |
| | | , { field: 'å¶åæ¥æ', title: 'å¶åæ¥æ', width: 200, templet: "<div>{{d.å¶åæ¥æ ==null ?'':layui.util.toDateString(d.å¶åæ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | , { field: 'å®¡æ ¸äºº', title: 'å®¡æ ¸äºº', width: 200 } |
| | | , { field: 'å®¡æ ¸æ¥æ', title: 'å®¡æ ¸æ¥æ', width: 200, templet: "<div>{{d.å®¡æ ¸æ¥æ ==null ? '':layui.util.toDateString(d.å®¡æ ¸æ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | , { field: 'ä¿®æ¹äºº', title: 'ä¿®æ¹äºº', width: 200 } |
| | | , { field: 'ä¿®æ¹æ¥æ', title: 'ä¿®æ¹æ¥æ', width: 200, templet: "<div>{{d.ä¿®æ¹æ¥æ ==null ?'':layui.util.toDateString(d.ä¿®æ¹æ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | , { field: 'å
³é人', title: 'å
³é人', width: 200 } |
| | | , { field: 'å
³éæ¥æ', title: 'å
³éæ¥æ', width: 200, templet: "<div>{{d.å
³éæ¥æ ==null ?'':layui.util.toDateString(d.å
³éæ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | , { field: 'ä½åºäºº', title: 'ä½åºäºº', width: 200 } |
| | | , { field: 'ä½åºæ¥æ', title: 'ä½åºæ¥æ', width: 200, templet: "<div>{{d.ä½åºæ¥æ ==null ?'':layui.util.toDateString(d.ä½åºæ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | , { field: 'æºå主å
ç ', title: 'æºå主å
ç ', width: 200, hide: true } |
| | | , { field: 'æºååå
ç ', title: 'æºååå
ç ', width: 200, hide: true } |
| | | , { field: 'æºååå·', title: 'æºååå·', width: 200 } |
| | | , { field: 'æºåç±»å', title: 'æºåç±»å', width: 200 } |
| | | ]] |
| | | }; |
| | | var HModName = "Sc_MouldLifeChangeBillList"; |
| | | var col = []; |
| | | var titleData = ["åæ®ID", "HEmID", "HEmID", "HDeptID", "hsubid", "HMaterID", "HPropertyID", "HSecUnitID", "Hunitid", "æºå主å
ç ", "æºåç±»å","hmainid","HEmpID","HMangerID","HUnitID","HBillType"];//ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | var index = layer.load(0); |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | | DisPlay_HideColumn(); |
| | | //åå§åæ¶é´ |
| | | $("#HDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd")); |
| | | $("#HDate1").val(Format(new Date(), "yyyy-MM-dd")); |
| | | |
| | | |
| | | //头工å
·æ äºä»¶ |
| | | table.on('toolbar(mainTable)', function (obj) { |
| | |
| | | //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum", |
| | | url: GetWEBURL() + '/Sc_MouldLifeChangeBill/GetMouldLifeChangeBill', |
| | | type: "GET", |
| | | async: false, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"]}, |
| | | //success: function (data1) { |
| | | // if (data1.count == 1) { |
| | | // option.data = data1.data; |
| | | // table.render(option); |
| | | // layer.close(index); |
| | | // } else { |
| | | // layer.close(index); |
| | | // layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | // } |
| | | //}, error: function () { |
| | | // layer.close(index); |
| | | // layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | //} |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | var data = []; |
| | |
| | | , toolbar: '#toolbarDemo' |
| | | , cols: [col] |
| | | , data: data1.data |
| | | , height: 550 |
| | | , height: 800 |
| | | , page: true |
| | | , cellMinWidth: 90 |
| | | , limit: 50 |
| | |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | //åå§åè¡¨æ ¼ |
| | | DisPlay_HideColumn(); |
| | | |
| | | //éç½®æé® |
| | | form.on('submit(btnReSearch)', function (data) { |
| | | $("#HDate").val("");//å¼å§æ¥æ |
| | | $("#HDate1").val("");//ç»ææ¥æ |
| | | $("#HDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd")); |
| | | $("#HDate1").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HBillNo").val("");//åæ®å· |
| | | $("#ColContent").val(""); |
| | | $("#ColName").val("0"); |