| | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">模å
·ç¼ç </label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" lay-verify="HMouldNumber" name="HMouldNumber" id="HMouldNumber" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HMouldID" id="HMouldID" lay-verify="HMouldID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchHMould" id="btnSearchHMould" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">模å
·åç§°</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HMouldName" lay-verify="HMouldName" id="HMouldName" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">模å
·åå·</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HMouldModel" lay-verify="HMouldModel" id="HMouldModel" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">夿³¨</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HRemark" id="HRemark" lay-verify="HRemark" style=" width: 500px;"> |
| | |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region éæ©æ¨¡å
·æé® |
| | | form.on('submit(btnSearchHMould)', function () { |
| | | get_checkSearchHMould(); |
| | | }); |
| | | //#endregion |
| | | |
| | | // ä¿åæäº¤ |
| | | form.on('submit(btnSave)', function (data) {//æäº¤ |
| | | |
| | |
| | | |
| | | //æ°å¢è¡è¡¨æ ¼æ°æ® |
| | | var NewRow = { |
| | | "HTechParamID": "", |
| | | "HTechParamID": 0, |
| | | "HTechParamNumber": "", |
| | | "HTechParamName": "", |
| | | "HTechParamUnitID": "", |
| | | "HTechParamUnitID": 0, |
| | | "HTechParamUnitName": "", |
| | | "HStd": "0", |
| | | "HMax": "0", |
| | |
| | | , { field: 'HTechParamUnitName', title: 'å·¥èºåæ°åä½åç§°', edit: 'text', event: "HTechParamUnitName" } //f7 |
| | | , { field: 'HStd', title: 'æ åå¼', edit: 'text', totalRow: true } |
| | | , { field: 'HMax', title: 'ä¸é', edit: 'text', totalRow: true } |
| | | , { field: 'HMin', title: 'ä¸é', edit: 'text', totalRow: true } |
| | | , { field: 'HDataForm', title: 'é鿥æº', templet: '#HDataForm-select' } |
| | | , { field: 'HDataUnit', title: 'ééæ¶é´åä½', templet: '#HDataUnit-select' } |
| | | , { field: 'HDataTimes', title: 'éé卿é¢ç', edit: 'text', totalRow: true } |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | //#region 模å
·éæ©é¡µé¢ |
| | | function get_checkSearchHMould() { |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'å·¥åºè¡¨'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../模治å
·ç®¡ç/模治å
·ç®¡ç/Gy_MouldFileList.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HMouldID").val(checkStatus.data[0].hmainid); |
| | | $("#HMouldNumber").val(checkStatus.data[0].模å
·ç¼å·); |
| | | $("#HMouldName").val(checkStatus.data[0].模å
·åç§°); |
| | | $("#HMouldModel").val(checkStatus.data[0].模å
·åå·); |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | //#region å表ï¼å¿«æ·é®(F7)æå¼å¼¹çª |
| | | function set_GridCellCheck(obj) { |
| | | $(document).off('keydown', ".layui-table-edit").on('keydown', '.layui-table-edit', function (e) { |
| | | if (event.key == "F7") { |
| | | //å·¥èºåæ° |
| | | if (obj.event == "HTechParamNumber") { |
| | | //æå¼å¨å
·ç®¡çå°çªä½ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: '模å
·å表', |
| | | title: 'å·¥èºå表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | obj.update({ |
| | | "HTechParamID": checkStatus.data[0].HItemID, |
| | | "HTechParamNumber": checkStatus.data[0].å·¥èºåæ°ä»£ç , |
| | | "HTechParamName": checkStatus.data[0].å·¥èºåæ°åç§°, |
| | | |
| | | }); |
| | | table.cache["mainTable"].splice(0, 1); |
| | | for (var rowData of checkStatus.data) { |
| | | var NewRow = { |
| | | "HTechParamID": rowData.HItemID, |
| | | "HTechParamNumber": rowData.å·¥èºåæ°ä»£ç , |
| | | "HTechParamName": rowData.å·¥èºåæ°åç§°, |
| | | "HTechParamUnitID": 0, |
| | | "HTechParamUnitName": "", |
| | | "HStd": "0", |
| | | "HMax": "0", |
| | | "HMin": "0", |
| | | "HDataForm": "æå·¥å½å
¥", |
| | | "HDataUnit": "ç§", |
| | | "HDataTimes": "0", |
| | | "HSourceBillNo": "0", |
| | | "HSourceBillType": "0", |
| | | "HSourceEntryID": "0", |
| | | "HSourceInterID": "0" |
| | | }; |
| | | table.cache["mainTable"].push(NewRow); |
| | | } |
| | | option.data = table.cache["mainTable"]; |
| | | table.render(option); |
| | | |
| | | //for (var i = 0; i < checkStatus.data.length; i++) { |
| | | // option.data.push({ |
| | | // "HTechParamID": checkStatus.data[i].HItemID, |
| | | // "HTechParamNumber": checkStatus.data[i].å·¥èºåæ°ä»£ç , |
| | | // "HTechParamName": checkStatus.data[i].å·¥èºåæ°åç§°, |
| | | // }) |
| | | //} |
| | | |
| | | |
| | | //obj.update({ |
| | | // "HTechParamID": checkStatus.data[0].HItemID, |
| | | // "HTechParamNumber": checkStatus.data[0].å·¥èºåæ°ä»£ç , |
| | | // "HTechParamName": checkStatus.data[0].å·¥èºåæ°åç§°, |
| | | |
| | | //}); |
| | | //table.render(option); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , end: function () { |
| | |
| | | , "HEquipNumber": tableMain[0]["设å¤ä»£ç "] |
| | | , "HEquipName": tableMain[0]["设å¤åç§°"] |
| | | , "HEquipModel": tableMain[0]["设å¤åå·"] |
| | | , "HMouldID": tableMain[0]["HMouldID"] |
| | | , "HMouldNumber": tableMain[0]["模å
·ä»£ç "] |
| | | , "HMouldName": tableMain[0]["模å
·åç§°"] |
| | | , "HMouldModel": tableMain[0]["模å
·åå·"] |
| | | , "HDeptID": tableMain[0]["HDeptID"] |
| | | , "HDeptName": tableMain[0]["é¨é¨"] |
| | | , "HWorkCenterID": tableMain[0]["HWorkCenterID"] |