| | |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , limit: 500 //æ¯é¡µé»è®¤æ¾ç¤ºçæ°é |
| | | , cellMinWidth: 120 |
| | | //, cellMinWidth: 120 |
| | | , height: 400 |
| | | , cols: [[ //表头 |
| | | { type: 'checkbox', totalRowText: 'å计è¡' } |
| | |
| | | //, { field: 'HPicNum', title: 'å¾çº¸ç¼å·', edit: 'text' } |
| | | //, { field: 'HTimeUnit', title: 'æ¶é´åä½', edit: 'text' } |
| | | //, { field: 'HUnitTime', title: 'è¿è¡æ¶é´', edit: 'text' } |
| | | //, { field: 'HWorkQty', title: 'å å·¥æ°é', edit: 'text' }//é»è®¤ |
| | | , { field: 'HWorkQty', title: 'å å·¥æ°é', edit: 'text' }//é»è®¤ |
| | | //, { field: 'HPassRate', title: 'è¯ç', edit: 'text' }//é»è®¤ |
| | | //, { field: 'HProcID_S', title: '工段', edit: 'text' } |
| | | ////, { field: 'HCenterID_S', title: '产线ä¸å¿id', hide: true }//hide: true |
| | |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'ç©æè¡¨'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_MaterialList_LSQP.html', 'yes'] |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_MaterialList.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | |
| | | $("#HUnitID").val(checkStatus.data[0].HUnitID);//计éåä½id |
| | | $("#HUnitName").val(checkStatus.data[0].HUnitName);//计éåä½åç§° |
| | | if ($("#HName").val() == "") { |
| | | $("#HName").val(checkStatus.data[0].HNumber + '/' + checkStatus.data[0].HName + '/' + checkStatus.data[0].HModel); |
| | | $("#HName").val(checkStatus.data[0].HNumber); |
| | | } |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | |
| | | data: { "sWhere": "" }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | if (result.data == "true") { |
| | | if (result.data.Gy_RoutingBill_SaveAutoLastProc == "Y") { |
| | | $("#IsProNo").val("1"); |
| | | $("input[name='checkboxIsProNo']").prop("checked", true); |
| | | form.render("checkbox"); |
| | |
| | | for (var i = 0; i < option.data.length; i++) { |
| | | if (option.data[i]["HProcNo"] == data[0]["HProcNo"]) { |
| | | tables.push(option.data[i - 1]); |
| | | data[0].LAY_CHECKED = true; |
| | | option.data[i - 1] = data[0]; |
| | | option.data[i] = tables[0]; |
| | | table.render(option); |
| | |
| | | for (var i = 0; i < option.data.length; i++) { |
| | | if (option.data[i]["HProcNo"] == data[0]["HProcNo"]) { |
| | | tables.push(option.data[i + 1]); |
| | | data[0].LAY_CHECKED = true; |
| | | option.data[i + 1] = data[0]; |
| | | option.data[i] = tables[0]; |
| | | table.render(option); |