| | |
| | | var option = { |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , totalRow: true |
| | | , height: 500 |
| | | , limit: 500 //æ¯é¡µé»è®¤æ¾ç¤ºçæ°é |
| | | //,url: '/demo/table/user/' //æ°æ®æ¥å£ |
| | | , page: true //å¼å¯å页 |
| | | , cols: [[ //表头 |
| | | { type: 'checkbox', fixed: 'left' } |
| | | { type: 'checkbox', fixed: 'left', totalRowText: 'å计è¡'} |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, fixed: 'left', event: "qwe", width: 100 } |
| | | , { field: 'HQCCheckClassID', title: 'HQCCheckClassID', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HQCCheckClassID', title: 'HQCCheckClassID', edit: 'text', width: 100, hide: true, totalRow: true } |
| | | , { field: 'HQCCheckClassNumber', title: 'æ£éªé¡¹ç®ç±»å«', edit: 'text', event: "HQCCheckClassCheck", width: 100 } |
| | | , { field: 'HQCCheckClassName', title: 'æ£éªé¡¹ç®ç±»å«åç§°', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HQCCheckItemID', title: 'HQCCheckItemID', edit: 'text', hide: true } |
| | |
| | | if (OperationType == 1) { |
| | | $("#HMakeDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | //$("#HCheckDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | //$("#HChecker").val(sessionStorage["HUserName"]); |
| | | //$("#HUpDateDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | //$("#HUpDater").val(sessionStorage["HUserName"]); |
| | | //$("#HCloseDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | //$("#HDeleteDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | //$("#HCloseMan").val(sessionStorage["HUserName"]); |
| | | //$("#HDeleteMan").val(sessionStorage["HUserName"]); |
| | | |
| | | //åå§å è½½è¡¨æ ¼{ "ID": 0, "HWasterReasonName": " ","HBadReasonID":0,"HEmpName": " ", "HSQProcName": " ","HProcID":0, "HZRProcName": " ", "HMRBChecker": " ", "HRemark": " ", "HPSProcName": " ", "HCloseMan": " " } |
| | | option.data = [{ |
| | | "HQCCheckClassID": " ", "HQCCheckClassNumber": " ", "HQCCheckClassName": " ", "HQCCheckItemID": " ", |
| | |
| | | |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index]; |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('ck-table'); |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable'); |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | |
| | | |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('ck-table');//è·åtableçelem:"#test" |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | |
| | | |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('ck-table');//è·åtableçelem:"#test" |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | |
| | | |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('ck-table');//è·åtableçelem:"#test" |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | |
| | | |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('ck-table');//è·åtableçelem:"#test" |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | |
| | | |
| | | return [year, month, day].join('-'); |
| | | } |
| | | form.on('submit(Saver)', function (data) {//ä¿å |
| | | |
| | | //ä¿å |
| | | form.on('submit(Saver)', function (data) { |
| | | //debugger; |
| | | data.field.HMaker = sessionStorage["HUserName"];//å¶å人 |
| | | var sMainStr = JSON.stringify(data.field); |