| | |
| | | <label class="layui-form-label">é¨é¨ä»£ç </label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HNumber" id="HNumber" lay-verify="HNumber" autocomplete="off" placeholder="" class="layui-input"> |
| | | <input type="hidden" name="HUseOrgID" id="HUseOrgID" value=""> |
| | | <input type="hidden" lay-verify="HUseOrgID" id="HUseOrgID" name="HUseOrgID" value="0"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | |
| | | var month = date.getMonth() + 1; |
| | | var year = date.getFullYear(); |
| | | var shijian = year + "-" + month + "-" + day; |
| | | $("#HUseOrgID").val(sessionStorage["OrganizationID"]); |
| | | if (sessionStorage["OrganizationID"] == null || sessionStorage["OrganizationID"] == undefined || sessionStorage["OrganizationID"] == " ") { |
| | | $("#HUseOrgID").val(0); |
| | | } |
| | | else { |
| | | $("#HUseOrgID").val(sessionStorage["OrganizationID"]); |
| | | } |
| | | |
| | | //#endregion |
| | | |
| | | |
| | |
| | | |
| | | //#region ä¿åæ¹æ³ |
| | | function set_SaveBill(data) { |
| | | $("#HUseOrgID").val(sessionStorage["OrganizationID"]); |
| | | var sMainStr = JSON.stringify(data.field); |
| | | if (!$("#HNumber").val()) { |
| | | layer.msg("请è¾å
¥é¨é¨ä»£ç ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | |
| | | type: "POST", |
| | | url: GetWEBURL() + "Gy_Department/AddBill1", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | async: true, |
| | | data: { "oMain": sMainStr + ';' + sessionStorage["HUserName"] }, |
| | | data: { "oMain": sMainStr + ';' + sessionStorage["HUserName"] + ';' + sessionStorage["OrganizationID"] }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'æ°å¢ä¿å
»é¡¹ç®', |
| | | title: 'æ°å¢ç¹æ£é¡¹ç®', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'æ°å¢ä¿å
»é¡¹ç®', |
| | | title: 'æ°å¢ç»´ä¿®æ£éªé¡¹ç®', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'æ°å¢ä¿å
»é¡¹ç®', |
| | | title: 'æ°å¢ç»´ä¿®é¡¹ç®', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | |
| | | HWHID: checkStatus.data[0].HItemID, |
| | | HWHCode: checkStatus.data[0].HNumber, |
| | | HWHName: checkStatus.data[0].HName, |
| | | HSPID: "", |
| | | HSPCode: "", |
| | | HSPName: "", |
| | | }); |
| | | |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HBillNo" lay-verify="HBillNo" id="HBillNo" readonly="readonly" autocomplete="off"> |
| | | <input id="HInterID" name="HInterID" type="hidden" /> |
| | | <input id="HYear" name="HYear" type="hidden"/> |
| | | <input id="HMaker" name="HMaker" type="hidden" /><!--å¶å人--> |
| | | </div> |
| | | </div> |
| | |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | $("#HDate").val(Pub_Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HInterID").val(0); |
| | | $("#HYear").val(Pub_Format(new Date(), "yyyy")); |
| | | } |
| | | }); |
| | | } |
| | |
| | | HWHID: checkStatus.data[0].HItemID, |
| | | HWHCode: checkStatus.data[0].HNumber, |
| | | HWHName: checkStatus.data[0].HName, |
| | | HSPID: "", |
| | | HSPCode: "", |
| | | HSPName: "", |
| | | }); |
| | | |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | |
| | | |
| | | //æ°å¢ |
| | | form.on('submit(set_AddNew)', function (data) { |
| | | $("#component-form-group")[0].reset(); |
| | | layui.form.render(); |
| | | set_AddFNew(); |
| | | //$("#component-form-group")[0].reset(); |
| | | //$('#add-btn').addClass("layui-btn-disabled").attr("disabled", false); |
| | | //layui.form.render(); |
| | | //set_AddFNew(); |
| | | location.reload(); |
| | | }); |
| | | //ä¿å |
| | | form.on('submit(Saver)', function (data) { |
| | |
| | | }); |
| | | //è¡å
äºä»¶ |
| | | table.on('tool(mainTable)', function (obj) { |
| | | alert(1); |
| | | set_GridDelete(obj); //è¡å
å é¤ |
| | | set_GridCellCheck(obj); //è¡å
å¿«æ·é®çé |
| | | }); |
| | |
| | | }); |
| | | //éåº |
| | | form.on('submit(Exit)', function (data) {// |
| | | Pub_Close(1); |
| | | if (linterid == undefined) { |
| | | //å
³éé¡µç¾ |
| | | Pub_Close(2); |
| | | } |
| | | else { |
| | | //å
³éé¡µç¾ |
| | | Pub_Close(1); |
| | | } |
| | | }); |
| | | //æå°Printing |
| | | form.on("submit(view)", function (data) { |
| | |
| | | , { field: 'HWHName', title: 'æ¶æä»åºåç§°', edit: 'text', width: 100 } |
| | | , { field: 'HStockOrgID', title: 'HStockOrgID', width: 100, hide: true } |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text', width: 100 } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo' } |
| | | ]; |
| | | option = { |
| | | id: 'mainTable' |
| | |
| | | , { field: 'HSPName', title: 'ä»ä½åç§°', edit: 'text', width: 100 } |
| | | , { field: 'HStockOrgID', title: 'HStockOrgID', width: 100, hide: true } |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text', width: 100 } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo' } |
| | | |
| | | ]; |
| | | option = { |
| | |
| | | HWHID: checkStatus.data[0].HItemID, |
| | | HWHCode: checkStatus.data[0].HNumber, |
| | | HWHName: checkStatus.data[0].HName, |
| | | HSPID: "", |
| | | HSPCode: "", |
| | | HSPName: "", |
| | | }); |
| | | |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | |
| | | HWHID: checkStatus.data[0].HItemID, |
| | | HWHCode: checkStatus.data[0].HNumber, |
| | | HWHName: checkStatus.data[0].HName, |
| | | HSPID: "", |
| | | HSPCode: "", |
| | | HSPName: "", |
| | | }); |
| | | |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | |
| | | <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="HBillNo" id="HBillNo" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="HBillNo" id="HBillNo" readonly> |
| | | <input type="hidden" name="HInterID" id="HInterID"> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å¨å
·ç¼å·</label> |
| | | <label class="layui-form-label" style="width: 85px;">å¨å
·ç¼å·<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HMouldNo" id="HMouldNo" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HMouldNo" id="HMouldNo" > |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å¨å
·åç§°</label> |
| | | <label class="layui-form-label" style="width: 85px;">å¨å
·åç§°<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HName" id="HName" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HName" id="HName" > |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å¨å
·è§æ ¼</label> |
| | | <label class="layui-form-label" style="width: 85px;">å¨å
·è§æ ¼<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HModel" id="HModel" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HModel" id="HModel" > |
| | | </div> |
| | | </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="HModel2" id="HModel2" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HModel2" id="HModel2"> |
| | | </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="HDiameter" id="HDiameter" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HDiameter" id="HDiameter" > |
| | | </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="HSubjoin" id="HSubjoin" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HSubjoin" id="HSubjoin" > |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">è¾
å©å±æ§2</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HSubjoin2" id="HSubjoin2" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HSubjoin2" id="HSubjoin2" > |
| | | </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="HPICNo" id="HPICNo" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HPICNo" id="HPICNo" > |
| | | </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="HWorkMaterModel" id="HWorkMaterModel" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HWorkMaterModel" id="HWorkMaterModel" > |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">对åºERPç©æ</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HMaterNumber" id="HMaterNumber" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="text" class="layui-input" name="HMaterNumber" id="HMaterNumber" style="width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HMaterID" id="HMaterID" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHMaterList" id="btnHMaterList" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">å¨å
·åç±»</label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">å¨å
·åç±»<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HMouleTypeName" id="HMouleTypeName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="text" class="layui-input" name="HMouleTypeName" id="HMouleTypeName" style="width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HMouleTypeID" id="HMouleTypeID" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHMouleList" id="btnHMouleList" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">åä½</label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">åä½<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HUnitName" id="HUnitName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="text" class="layui-input" name="HUnitName" id="HUnitName" style="width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HUnitID" id="HUnitID" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHUnitList" id="btnHUnitList" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">åºåç¼å·</label> |
| | | <div class="layui-input-block" style="margin-left: 125px;"> |
| | | <input type="text" class="layui-input" name="HOutComNo" id="HOutComNo" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HOutComNo" id="HOutComNo" /> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">使ç¨é¨é¨</label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">使ç¨é¨é¨<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 80px;"> |
| | | <input type="text" class="layui-input" name="HDeptName" id="HDeptName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="text" class="layui-input" name="HDeptName" id="HDeptName" style="width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HDeptID" id="HDeptID" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHDeptList" id="btnHDeptList" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" ></i> |
| | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">ä¾åºå</label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">ä¾åºå<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HSupName" id="HSupName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="text" class="layui-input" name="HSupName" id="HSupName" style="width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HSupID" id="HSupID" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHSupList" id="btnHSupList" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | |
| | | <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="HMouldStatus" id="HMouldStatus" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HMouldStatus" id="HMouldStatus" > |
| | | </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="HSaveLife" id="HSaveLife" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HSaveLife" id="HSaveLife" > |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">é»è®¤ä»åº</label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">é»è®¤ä»åº<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HWHName" id="HWHName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="text" class="layui-input" name="HWHName" id="HWHName" style="width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HWHID" id="HWHID" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHWHList" id="btnHWHList" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" ></i> |
| | | <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: 85px;">çæ¬å·</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HVersion" id="HVersion" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HVersion" id="HVersion" > |
| | | </div> |
| | | </div> |
| | | <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" name="HSPName" id="HSPName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="text" class="layui-input" name="HSPName" id="HSPName" style="width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HSPID" id="HSPID" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHSPIDList" id="btnHSPIDList" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" ></i> |
| | |
| | | <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="HDesignLife" id="HDesignLife" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HDesignLife" id="HDesignLife" > |
| | | </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="HUseLife" id="HUseLife" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HUseLife" id="HUseLife" > |
| | | </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="HLeaveLife" id="HLeaveLife" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HLeaveLife" id="HLeaveLife" > |
| | | </div> |
| | | </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="HProdQty" id="HProdQty" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HProdQty" id="HProdQty" > |
| | | </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="HProdWeight" id="HProdWeight" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HProdWeight" id="HProdWeight"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ç©´æ°</label> |
| | | <label class="layui-form-label" style="width: 85px;">ç©´æ°<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HCaveQty" id="HCaveQty" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HCaveQty" id="HCaveQty" > |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">é»è®¤ä¿å
»è§ç¨</label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">é»è®¤ä¿å
»è§ç¨<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HMouldMaintainRuleInterName" id="HMouldMaintainRuleInterName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="text" class="layui-input" name="HMouldMaintainRuleInterName" id="HMouldMaintainRuleInterName" style="width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HMouldMaintainRuleInterID" id="HMouldMaintainRuleInterID" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="HMouldMaintainRuleInterList" id="HMouldMaintainRuleInterList" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | |
| | | <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="HBarCode" id="HBarCode" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HBarCode" id="HBarCode"> |
| | | </div> |
| | | </div> |
| | | <!--<div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">èæä»<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HNowSupName" id="HNowSupName" style="width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HNowSupID" id="HNowSupID" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="HNowSupList" id="HNowSupList" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | }, |
| | | success: function (d) { |
| | | ajaxReturnData = JSON.parse(JSON.stringify(d)).data; |
| | | |
| | | $("#HInterID").val(d.data[0].hmainid); |
| | | $("#HBillNo").val(d.data[0].åæ®å·); |
| | | $("#HDate").val(formatDate(d.data[0].æ¥æ)); |
| | |
| | | //$("#HSPGroupID").val(d.data[0].HSPGroupID); |
| | | $("#HSPID").val(d.data[0].HSPID); |
| | | $("#HSPName").val(d.data[0].é»è®¤ä»ä½); |
| | | $("#HBarCode").var(d.data[0].æ¡ç ç¼å·); |
| | | //$("#HBarCode").var(d.data[0].æ¡ç ç¼å·); |
| | | //$("#HInitDesignLife").val(d.data[0].HInitDesignLife); |
| | | //$("#HInitModel").val(d.data[0].HInitModel); |
| | | $("#HDesignLife").val(d.data[0].åå§è®¾è®¡å¯¿å½); |
| | |
| | | $("#HMouldDotCheckRuleInterID").val(d.data[0].HMouldDotCheckRuleInterID); |
| | | $("#HMouldMaintainRuleInterName").val(d.data[0].ä¿å
»è§ç¨åå·); |
| | | $("#HMouldMaintainRuleInterID").val(d.data[0].HMouldMaintainRuleInterID); |
| | | $("#HBarCode").val(d.data[0].æ¡ç ç¼å·); |
| | | //$("#HNowSupID").val(d.data[0].HNowSupID); |
| | | //$("#HNowSupName").val(d.data[0].èæä»); |
| | | } |
| | | |
| | | }); |
| | |
| | | layer.msg("ç©´æ°ä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | if ($("#HNowSupID").val() == '' || $("#HCaveQty").val() == null) { |
| | | layer.msg("è¯·éæ©èæä»ï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | //if ($("#HNowSupID").val() == '' || $("#HNowSupID").val() == null) { |
| | | // layer.msg("è¯·éæ©èæä»ï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return Result = false; |
| | | //} |
| | | if ($("#HMouldMaintainRuleInterID").val() == '' || $("#HMouldMaintainRuleInterID").val() == null) { |
| | | layer.msg("è¯·éæ©é»è®¤ä¿å
»è§ç¨ï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | return Result; |
| | |
| | | <label class="layui-form-label">æºåç±»å</label> |
| | | <div class="layui-input-inline"> |
| | | <select name="HMainSourceBillType" lay-filter="HMainSourceBillType" id="HMainSourceBillType"> |
| | | <option value="2" selected="selected">éè´è®¢å</option> |
| | | <option value="2" selected="selected">æ
éç»è®°å</option> |
| | | <option value="1">æå·¥å½å
¥</option> |
| | | </select> |
| | | </div> |
| | |
| | | title: 'å¨å
·æ
éç»è®°åå表', |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | content: ['../../PublicPage/PurchOrder.html', 'yes'], |
| | | content: ['../模治å
·ç®¡ç/Sc_MouldConkBookBillList.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©åæ®æ°æ®'); |
| | | } |
| | | else if (checkStatus.data.length >1) { |
| | | return layer.msg('è¯·éæ©ä¸è¡åæ®æ°æ®'); |
| | | } |
| | | //å·æ°å½åé¡µè¡¨æ ¼æ°æ®éè½½ |
| | | //var oldData = table.cache["mainTable"]; |
| | |
| | | function set_AddFNew() { |
| | | //è·åæå¤§åæ®å· |
| | | get_MAXNum(); |
| | | option.data = []; |
| | | option.data = [{ "HRepairID": 0, "HRepairCode": "", "HRepairName": " ", "HRepairExplanation": " ", "HManagerID": 0, "HManagerCode": "", "HManagerName": " ", "HMoney": 0, "HRemark": " " }]; |
| | | table.render(option); |
| | | } |
| | | //è·åæå¤§åæ®å·åé»è®¤å¼èµå¼ |
| | |
| | | //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum", |
| | | url: GetWEBURL() + '/Sb_MouldRepairWorkBill/GetMouldRepairWorkBillList', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere }, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option.data = data1.data; |
| | |
| | | console.log(checkStatus); |
| | | $("#HPlanInterName").val(checkStatus.data[0].åæ®å·); |
| | | $("#HPlanInterID").val(checkStatus.data[0].hmainid); |
| | | $.ajax({ |
| | | url: GetWEBURL() + 'Sc_MouldDotCheckBill/Sc_MouldDotCheckSubBillListByPlan', |
| | | type: "GET", |
| | | data: { "HPlanInterID": $("#HPlanInterID").val() }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | option.data = result.data; |
| | | table.render(option); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">产åå¨å
·</label> |
| | | <label class="layui-form-label">产åå¨å
·<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HMouldID" id="HMouldID" class="layui-input" value="0"> |
| | | <input type="text" name="HMouldName" id="HMouldName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HMouldID" id="HMouldID" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HMouldList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | layer.alert("æªç¥æä½ç±»åï¼", { icon: 5 }); |
| | | } |
| | | //#endregion |
| | | |
| | | //è¡¨å¤´äº§åæ¨¡å
·ä¿¡æ¯ |
| | | form.on('submit(HMouldList)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: '产åå¨å
·å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/MouldInformation.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('è¯·éæ©æ°æ®'); |
| | | } |
| | | console.log(checkStatus); |
| | | $("#HMouldName").val(checkStatus.data[0].HName); |
| | | $("#HMouldID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | |
| | | //#region 头工å
·æ äºä»¶ |
| | |
| | | , "HExplanation": data.æè¦ |
| | | , "HRemark": data.夿³¨ |
| | | , "HMouldID": data.HMouldID |
| | | , "HMouldName": data.äº§åæ¨¡å
· |
| | | , "HCycleUnit": data.卿åä½ |
| | | , "HCheckCycle": data.ä¿å
»å¨æ |
| | | , "HBeginDate": data.计åå¼å§æ¥æ |
| | |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <!--<div class="layui-inline"> |
| | | <label class="layui-form-label">ä¿å
»è®¡åå
ç <label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HPlanInterName" id="HPlanInterName" class="layui-input" value="" style="float:left;width:150px;"> |
| | |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div>--> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ä¿å
»å¼å§æ¥æ</label> |
| | | <div class="layui-input-inline"> |
| | |
| | | , "HPlanInterID": data.ä¿å
»è®¡åå
ç |
| | | , "HMouldID": data.HMouldID |
| | | , "HMouldName": data.äº§åæ¨¡å
· |
| | | |
| | | , "HMouldMaintainRuleInterID": data.HMouldMaintainRuleInterID |
| | | , "HMouldMaintainRuleInterNo": data.å¨å
·ä¿å
»è§ç¨ |
| | | }); |
| | | |
| | | } else { |
| | |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">éç½®</button> |
| | | <!--<button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">éç½®</button>--> |
| | | <div class="layui-colla-content"> |
| | | <div class="layui-inline"> |
| | |
| | | function set_ClearQuery() { |
| | | $("#HBillNo").val(""); |
| | | $("#PartModul").val(""); |
| | | $("#CheckItem").val(""); |
| | | $("#BenginHCreateDate").val(""); |
| | | $("#EndHCreateDate").val(""); |
| | | sWhere = ""; |
| | | get_Display(sWhere); |
| | | } |
| | | //æ¥è¯¢æé® |
| | | form.on('submit(btnSearch)', function (data) { |
| | |
| | | <span>æ´å¤</span> |
| | | </div> |
| | | </div> |
| | | <!--<div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®ç±»å</label> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¼å§æ¶é´</label> |
| | | <div class="layui-input-block"> |
| | | <select name="HBillType" id="HBillType"> |
| | | <option value="">ææ</option> |
| | | <option value="ZHXJ">䏿¶æ¾è´§å</option> |
| | | <option value="ZHSJ">䏿¶å½è¿å</option> |
| | | </select> |
| | | <input type="date" class="layui-input" name="BenginHCreateDate" id="BenginHCreateDate"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç»ææ¶é´</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input" name="EndHCreateDate" id="EndHCreateDate"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¶å人</label> |
| | | <label class="layui-form-label">å¨å
·ä»£ç </label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HCreateBy" id="HCreateBy"> |
| | | <input type="text" class="layui-input" name="PartModul" id="PartModul"> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">éç½®</button> |
| | | <!--<button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">éç½®</button>--> |
| | | <!--<div class="layui-colla-content"> |
| | | <div class="layui-inline"> |
| | | <div class="layui-inline"> |
| | | <span>å
¶ä»æ¡ä»¶></span> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¼å§æ¶é´</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input" name="BenginHCreateDate" id="BenginHCreateDate"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç»ææ¶é´</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input" name="EndHCreateDate" id="EndHCreateDate"> |
| | | </div> |
| | | </div> |
| | | </div>--> |
| | | <div class="layui-inline"> |
| | | <div class="layui-inline"> |
| | | <span>å
¶ä»æ¡ä»¶></span> |
| | | </div> |
| | | </div> |
| | | |
| | | </div>--> |
| | | </div> |
| | | </div> |
| | | <table class="" id="mainTable" lay-filter="mainTable"></table> |
| | |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-print"><i class="layui-icon layui-icon-print"></i>æå°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | | |
| | | |
| | | </div> |
| | | </script> |
| | | </form> |
| | |
| | | }); |
| | | //å¿«éè¿æ»¤ |
| | | function get_FastQuery(table, option) { |
| | | var index = layer.load(0); |
| | | var HBillNo = $("#HBillNo").val();//åæ®å· |
| | | var PartModul = $("#PartModul").val();//äº§åæ¨¡å
· |
| | | var BenginHCreateDate = $("#BenginHCreateDate").val();//å¼å§æ¥æ |
| | | var EndHCreateDate = $("#EndHCreateDate").val();//ç»ææ¥æ |
| | | |
| | | if (HBillNo) { |
| | | sWhere += " and åæ®å· like '%" + HBillNo + "%'"; |
| | | } |
| | | if (PartModul) { |
| | | sWhere += " and äº§åæ¨¡å
· like '%" + PartModul + "%'"; |
| | | } |
| | | if (BenginHCreateDate) { |
| | | sWhere += " and CONVERT(varchar(100),æ¥æ, 23) >= '" + BenginHCreateDate + "'"; |
| | | } |
| | | if (EndHCreateDate) { |
| | | sWhere += " and CONVERT(varchar(100),æ¥æ, 23) <= '" + EndHCreateDate + "'"; |
| | | } |
| | | |
| | | get_Display(sWhere); |
| | | sWhere = "";//è°ç¨æ¥å£åæ¸
空sWhereç¼å |
| | | } |
| | | //éç½®æé® |
| | | form.on('submit(btnReSearch)', function (data) { |
| | | set_ClearQuery(); |
| | | }); |
| | | //éç½®è¿æ»¤æ¡ä»¶ |
| | | function set_ClearQuery() { |
| | | $("#HNumber").val(""); |
| | | $("#HName").val(""); |
| | | sWhere = ""; |
| | | get_Display(sWhere); |
| | | } |
| | | |
| | | |
| | | function set_InitGrid() { |
| | | option = { |
| | | elem: '#mainTable' |
| | |
| | | , { field: 'åæ®ç±»å', title: 'åæ®ç±»å', width: 160, hide: true } |
| | | , { field: 'HMouldID', title: 'HMouldID', width: 200, hide: true } |
| | | , { field: 'äº§åæ¨¡å
·ä»£ç ', title: '产åå¨å
·ä»£ç ', width: 200 } |
| | | , { field: 'äº§åæ¨¡å
·', title: '产åå¨å
·', width: 200, hide: true } |
| | | , { 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')}}</div>" } |
| | |
| | | function set_ClearQuery() { |
| | | $("#HNumber").val(""); |
| | | $("#HName").val(""); |
| | | $("#HBillNo").val("");//åæ®å· |
| | | sWhere = ""; |
| | | get_Display(sWhere); |
| | | } |
| | |
| | | f<!DOCTYPE html> |
| | | <!DOCTYPE html> |
| | | <html xmlns="http://www.w3.org/1999/xhtml"> |
| | | <head> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <!--<script src="../../../layuiadmin/layui/layui.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/json2.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | |
| | | var HStockOrgName = $("#HStockOrgName").val(); //ç»ç» |
| | | var HBillNo = $("#HBillNo").val(); //åæ®å· |
| | | var HDept = $("#HDept").val(); //é¨é¨ä¿¡æ¯ |
| | | var HMaterNumber = $("#HMaterNumber").val(); //ç©æä»£ç |
| | | var HMaterNumber = $("#HMaterNumber").val(); //ç©æä»£ç |
| | | var HModelNumber = $("#HModelNumber").val(); //å¨å
·ä»£ç |
| | | var HWhName = $("#HWhName").val(); //ä»åºåç§° |
| | | var HSupName = $("#HSupName").val(); //徿¥åä½ |
| | | |
| | | |
| | | if (HBeginDate) { |
| | | sWhere += " and CONVERT(varchar(100),æ¥æ, 23) >= '" + HBeginDate + "'"; |
| | | } |
| | |
| | | break; |
| | | //å·æ° |
| | | case 'btn-reload': |
| | | get_Refresh(); |
| | | set_ClearQuery(); |
| | | break; |
| | | //éåºæé® |
| | | case 'btn-exit': |
| | |
| | | sWhere += " and åæ®å· like '%" + HBillNo + "%'"; |
| | | } |
| | | if (HCreateBy) { |
| | | sWhere += " and å¶å人 like '%" + HBillNo + "%'"; |
| | | sWhere += " and å¶å人 like '%" + HCreateBy + "%'"; |
| | | } |
| | | if (BenginHCreateDate) { |
| | | sWhere += " and CONVERT(varchar(100),æ¥æ, 23) >= '" + BenginHCreateDate + "'"; |
| | |
| | | $("#HCreateBy").val("");//å¶å人 |
| | | $("#BenginHCreateDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd")); |
| | | $("#EndHCreateDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#btnSearch").click(); |
| | | sWhere = ""; |
| | | get_Display(sWhere); |
| | | } |
| | | |
| | | |
| | |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Add"><i class="layui-icon layui-icon-add-1"></i>æ°å¢</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Edit"><i class="layui-icon layui-icon-edit"></i>ç¼è¾</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Delete"><i class="layui-icon layui-icon-delete"></i>å é¤</button> |
| | | |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | | |
| | | </div> |
| | | </script> |
| | |
| | | case 'btn-Delete': |
| | | set_DeleteBill(); |
| | | break; |
| | | //éåºæé® |
| | | case 'get_Exit': Pub_Close(2); |
| | | break; |
| | | }; |
| | | }); |
| | | |
| | |
| | | , "HPlanNo": data.ç¹æ£è®¡åç¼å· //ç¹æ£è®¡åç¼å· |
| | | , "HPlanName": data.ç¹æ£è®¡å //ç¹æ£è®¡åç¼å· |
| | | , "HRemark": data.è¡¨å¤´å¤æ³¨ //夿³¨ |
| | | , "HEquipDotCheckRuleInterID": data.设å¤ç¹æ£è§ç¨ID // 设å¤ç¹æ£è§ç¨ID |
| | | , "HEquipDotCheckRuleInterNo": data.设å¤ç¹æ£è§ç¨ // 设å¤ç¹æ£è§ç¨ |
| | | }); |
| | | |
| | | } else { |
| | |
| | | , { field: 'HBillType', title: 'åæ®ç±»å', width: 160 } |
| | | , { 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, templet: "<div>{{d.ç»ææ¥æ ==null ?'':layui.util.toDateString(d.ç»ææ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>"} |
| | |
| | | //è¡å
äºä»¶ |
| | | table.on('tool(mainTable)', function (obj) { |
| | | set_GridDelete(obj); //è¡å
å é¤ |
| | | set_GridCellCheck(obj); //è¡å
å¿«æ·é®çé |
| | | set_GridCellCheckMain(obj); //è¡å
å¿«æ·é®çé |
| | | }); |
| | | //è¡å
äºä»¶ |
| | | table.on('tool(mainTable1)', function (obj) { |
| | |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, fixed: 'left', event: "qwe" } |
| | | , { field: 'HMaintainItemID', title: 'ä¿å
»é¡¹ç®ID', edit: 'text', hide: true } |
| | | , { field: 'HMaintainItemNumber', title: 'ä¿å
»é¡¹ç®ä»£ç ', hide: true ,edit: 'text', event: 'HMaintainItemNumber' } |
| | | , { field: 'HMaintainItem', title: 'ä¿å
»é¡¹ç®', edit: 'text' } |
| | | , { field: 'HMaintainItemNumber', title: 'ä¿å
»é¡¹ç®ä»£ç ', hide: true ,edit: 'text' } |
| | | , { field: 'HMaintainItem', title: 'ä¿å
»é¡¹ç®', edit: 'text', event: 'HMaintainItemNumber' } |
| | | , { field: 'HMaintainPart', title: 'ä¿å
»é¨ä½', edit: 'text' } |
| | | , { field: 'HClaim', title: 'å
·ä½è¦æ±', edit: 'text' } |
| | | , { field: 'HManagerID', title: 'è´è´£äººID', edit: 'text', hide: true } |
| | |
| | | } |
| | | } |
| | | //è¡¨æ ¼è¡å
äºä»¶å¿«æ·é®çé |
| | | function set_GridCellCheck(obj) { |
| | | function set_GridCellCheckMain(obj) { |
| | | $(document).off('keydown', ".layui-table-edit").on('keydown', '.layui-table-edit', function (e) { |
| | | if (event.key == "F7") { |
| | | if (obj.event === 'HMaintainItemNumber') //ä¿å
»é¡¹ç®ä¿¡æ¯ |
| | |
| | | <div class="layui-card-header"> |
| | | <div class="layui-btn-group"> |
| | | <button type="button" id="add-btn" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Saver">ä¿å</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Exit">éåº</button> |
| | | <<button class="layui-btn layui-btn-normal" type="button" lay-submit="" lay-filter="Exit" id="Exit">éåº</button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-card-body"> |
| | |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">设å¤ç¶æ<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 125px;width:55%;"> |
| | | <div class="layui-input-block" style="margin-left: 125px;width:55%;"> |
| | | <select name="HStatus" lay-filter="aihao" id="HStatus"> |
| | | <option value="空é²" selected="selected">空é²</option> |
| | | <option value="å ç¨">å ç¨</option> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!--å
¶ä»ä¿¡æ¯--> |
| | | <!--<div class="layui-tab-content"> |
| | | <div class="layui-tab-item layui-show"> |
| | |
| | | , util = layui.util |
| | | ; |
| | | var sBillType = "3308"; |
| | | $("#HMakeSupID").val(0); |
| | | //#endregion |
| | | |
| | | //#region è¿å
¥é¡µé¢å³å è½½ |
| | |
| | | form.on('submit(Saver)', function (data) {//æäº¤ |
| | | set_btnSave(data); |
| | | }) |
| | | |
| | | |
| | | //éåºæé® |
| | | form.on('submit(Exit)', function () { |
| | | if (linterid == undefined) { |
| | | Pub_Close(2); |
| | | } |
| | | else { |
| | | Pub_Close(1); |
| | | } |
| | | }) |
| | | //设å¤ä¿å
»è§ç¨ |
| | | form.on('submit(HEquipMaintainRuleInterList)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | |
| | | } |
| | | } |
| | | |
| | | //éåºæé® |
| | | form.on('submit(Exit)', function () { |
| | | if (linterid == undefined) { |
| | | Pub_Close(2); |
| | | } |
| | | else { |
| | | Pub_Close(1); |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | function AllowLoadData() { //é空éªè¯ |
| | |
| | | if ($("#HEquipFileNo").val() == '' || $("#HEquipFileNo").val() == null) { |
| | | layer.msg("设å¤ç¼å·ä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | } |
| | | if ($("#HEquipFileNumber").val() == '' || $("#HEquipFileNumber").val() == null) { |
| | | layer.msg("设å¤ä»£ç ä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æ¶é´åä½</label> |
| | | <div class="layui-input-block" style="margin-left: 125px;"> |
| | | <input type="text" class="layui-input" name="HCycleUnit" lay-verify="HCycleUnit" style="width:100%" id="HCycleUnit" value="" onmouseover="this.title=this.value"> |
| | | <select name="HCycleUnit" lay-filter="aihao" id="HCycleUnit"> |
| | | <option value="å°æ¶" selected="selected">å°æ¶</option> |
| | | <option value="天">天</option> |
| | | <option value="æ">æ</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { |
| | | layer.close(index); |
| | | layer.msg("æäº¤æå"); |
| | | $('#btnSave').addClass("layui-btn-disabled").attr("disabled", true); |
| | | location.reload(); |
| | | if (linterid == undefined) { |
| | | layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | $('#btnSave').addClass("layui-btn-disabled").attr("disabled", true); |
| | | location.reload(); |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg("ä¿®æ¹æå", { time: 1 * 1000, icon: 1 }, function () { |
| | | $('#btnSave').addClass("layui-btn-disabled").attr("disabled", true); |
| | | Pub_Close(1); |
| | | }); |
| | | } |
| | | |
| | | } |
| | | else { |
| | | layer.close(index); |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <script type="text/html" id="barDemo"> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">å é¤</a> |
| | | </script> |
| | | <script src="../../../layuiadmin/layui/layui.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/json2.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | |
| | | "HBillNo": data.åæ®å· |
| | | , "HInterID": data.hmainid |
| | | , "HDate": formatDate(data.æ¥æ) |
| | | ,"HBeginDate":formatDate(data.计åå¼å§æ¥æ) |
| | | ,"HEndDate":formatDate(data.计åç»ææ¥æ) |
| | | ,"HCheckCycle":data.ç¹æ£å¨æ |
| | | ,"HCycleUnit":data.卿åä½ |
| | | ,"HExplanation":data.æè¦ |
| | | ,"HRemark":data.夿³¨ |
| | | , "HBeginDate": formatDate(data.计åå¼å§æ¥æ) |
| | | , "HEndDate": formatDate(data.计åç»ææ¥æ) |
| | | , "HCheckCycle": data.ç¹æ£å¨æ |
| | | , "HCycleUnit": data.卿åä½ |
| | | , "HExplanation": data.æè¦ |
| | | , "HRemark": data.夿³¨ |
| | | }); |
| | | |
| | | } else { |