| | |
| | | <!DOCTYPE html> |
| | | <html> |
| | | <html xmlns="http://www.w3.org/1999/xhtml"> |
| | | <head> |
| | | <meta charset="utf-8" /> |
| | | <title></title> |
| | | </head> |
| | | <body> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| | | <title>设å¤ç»´ä¿®å·¥å</title> |
| | | <meta name="renderer" content="webkit"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> |
| | | <!--å¼ç¨layuiæ ·å¼æä»¶--> |
| | | <link rel="stylesheet" href="../../layuiadmin/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../layuiadmin/style/admin.css" media="all"> |
| | | <!--å¼ç¨layui jsæä»¶--> |
| | | <script src="../../layuiadmin/layui/layui.js"></script> |
| | | <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/zgqCustom/zgqCustom.js"></script> |
| | | <!--èªå®ä¹æ ·å¼--> |
| | | <style> |
| | | .maintitle { |
| | | background-color: #1492ff; |
| | | color: #fff; |
| | | padding: 5px 10px; |
| | | border: none; |
| | | border-radius: 4px; |
| | | } |
| | | |
| | | .title { |
| | | border-left: 4px solid #1492ff; |
| | | padding-left: 6px; |
| | | margin: 20px 10px 4px; |
| | | font-size: 16px; |
| | | color: #333; |
| | | } |
| | | |
| | | .buttom_box_little { |
| | | width: 60px; |
| | | height: 36px; |
| | | color: #fff; |
| | | background-color: #1492ff; |
| | | border-radius: 4px; |
| | | border: none; |
| | | margin: 10px; |
| | | } |
| | | |
| | | .layui-input { |
| | | width: 93%; |
| | | } |
| | | |
| | | .layui-inline, img { |
| | | display: block; |
| | | vertical-align: middle |
| | | } |
| | | |
| | | .layui-input, .layui-textarea { |
| | | display: inline-block; |
| | | width: 100%; |
| | | padding-left: 10px; |
| | | } |
| | | |
| | | .laydate-time-list ol { |
| | | overflow-x: hidden !important; |
| | | overflow-y: auto !important; |
| | | } |
| | | |
| | | .layui-form-label { |
| | | padding: 9px 5px; |
| | | } |
| | | |
| | | .layui-input-block { |
| | | margin-left: 85px; |
| | | min-height: 36px; |
| | | } |
| | | </style> |
| | | </head> |
| | | |
| | | <body> |
| | | <div class="layui-fluid" style="padding: 0;"> |
| | | <div class="layui-card" style="padding: 15px;background-color: #efefef;"> |
| | | <div class="layui-card-body" style="padding: 1px;"> |
| | | <form class="layui-form" action="" lay-filter="formData" id="formData" style="background-color:white;"> |
| | | <div class="maintitle">设å¤ç¹æ£è®°å½å</div> |
| | | <div class="layui-form-item" style="padding-top: 10px;"> |
| | | <div class="layui-row"> |
| | | <label class="layui-form-label" style="width: 85px;"><span style="color:red;">*</span>è®¾å¤æ¡ç </label> |
| | | <div class="layui-input-block" style="margin-left: 100px;width:46%;"> |
| | | <input type="text" name="HBarCode" id="HBarCode" lay-verify="required" placeholder="请é®å
¥åå车" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief"> |
| | | <ul class="layui-tab-title"> |
| | | <li class="layui-this">åºæ¬ä¿¡æ¯</li> |
| | | <li>å
¶ä»ä¿¡æ¯</li> |
| | | </ul> |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-tab-item layui-show"> |
| | | <div class="layui-form-item" style="padding-top: 10px;"> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">ç»´ä¿®å¼å§:</label> |
| | | <div class="layui-input-block" style="margin-left: 85px;"> |
| | | <input type="datetime" class="layui-input" name="HRepairBeginDate" id="HRepairBeginDate" placeholder="è¯·éæ©æ¥æ"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">ç»´ä¿®ç»æ:</label> |
| | | <div class="layui-input-block" style="margin-left: 85px;"> |
| | | <input type="datetime" class="layui-input" name="HRepairEndDate" id="HRepairEndDate" placeholder="è¯·éæ©æ¥æ"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">ç»´ä¿®å
容:</label> |
| | | <div class="layui-input-block" style="margin-left: 85px;"> |
| | | <textarea name="HRepairContent" id="HRepairContent" placeholder="请è¾å
¥å
容" class="layui-textarea"></textarea> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">åæ®å·:</label> |
| | | <div class="layui-input-block" style="margin-left: 85px;"> |
| | | <input type="text" class="layui-input" name="HBillNo" id="HBillNo" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HInterID" id="HInterID"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">åæ®æ¥æ:</label> |
| | | <div class="layui-input-block" style="margin-left: 85px;"> |
| | | <input type="datetime" class="layui-input" name="HDate" id="HDate" placeholder="è¯·éæ©æ¥æ" readonly disabled> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;padding: 9px 5px;">é¨é¨:</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="HDeptName" id="HDeptName" class="layui-input" style="width:80%;"> |
| | | <input type="hidden" name="HDeptID" id="HDeptID" class="layui-input"> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-primary" lay-filter="Department" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;padding: 9px 5px;">维修人:</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="HEmpName" id="HEmpName" class="layui-input" style="width:80%;"> |
| | | <input type="hidden" name="HEmpID" id="HEmpID" class="layui-input"> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-primary" lay-filter="HEmp" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;padding: 9px 5px;">维修项ç®:</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="HRepair" id="HRepair" class="layui-input" style="width:80%;"> |
| | | <input type="hidden" name="HRepairID" id="HRepairID" class="layui-input"> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-primary" lay-filter="HDotCheckItemList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></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: 85px;"> |
| | | <textarea name="HRepairExplanation" id="HRepairExplanation" placeholder="请è¾å
¥å
容" class="layui-textarea"></textarea> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;padding: 9px 5px;">è´è´£äºº:</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="HManagerName" id="HManagerName" class="layui-input" style="width:80%;"> |
| | | <input type="hidden" name="HManagerID" id="HManagerID" class="layui-input"> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-primary" lay-filter="HManager" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></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: 85px;"> |
| | | <input type="text" name="HBarName" id="HBarName" class="layui-input" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HEquipID" id="HEquipID" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">设å¤è§æ ¼:</label> |
| | | <div class="layui-input-block" style="margin-left: 85px;"> |
| | | <input type="text" name="HBarSpec" id="HBarSpec" class="layui-input" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">设å¤åå·:</label> |
| | | <div class="layui-input-block" style="margin-left: 85px;"> |
| | | <input type="text" name="HBarModel" id="HBarModel" class="layui-input" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">æ°é:</label> |
| | | <div class="layui-input-block" style="margin-left: 85px;"> |
| | | <input type="text" name="HQty" id="HQty" class="layui-input" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab-item"> |
| | | <div class="layui-form-item" style="padding-top: 10px;"> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">å建人:</label> |
| | | <div class="layui-input-block" style="margin-left: 85px;"> |
| | | <input type="text" class="layui-input" name="HMaker" id="HMaker" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">åå»ºæ¥æ:</label> |
| | | <div class="layui-input-block" style="margin-left: 85px;"> |
| | | <input type="datetime" class="layui-input" name="HMakeDate" id="HMakeDate" style="background-color:#efefef4d;" readonly disabled> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">ä¿®æ¹äºº:</label> |
| | | <div class="layui-input-block" style="margin-left: 85px;"> |
| | | <input type="text" class="layui-input" name="HUpDater" id="HUpDater" style="background-color:#efefef4d;" readonly disabled> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">ä¿®æ¹æ¥æ:</label> |
| | | <div class="layui-input-block" style="margin-left: 85px;"> |
| | | <input type="datetime" class="layui-input" name="HUpDateDate" id="HUpDateDate" style="background-color:#efefef4d;" readonly disabled> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">å®¡æ ¸äºº:</label> |
| | | <div class="layui-input-block" style="margin-left: 85px;"> |
| | | <input type="text" class="layui-input" name="HChecker" id="HChecker" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">å®¡æ ¸æ¥æ:</label> |
| | | <div class="layui-input-block" style="margin-left: 85px;"> |
| | | <input type="datetime" class="layui-input" name="HCheckDate" id="HCheckDate" style="background-color:#efefef4d;" readonly disabled> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">ä½åºäºº:</label> |
| | | <div class="layui-input-block" style="margin-left: 85px;"> |
| | | <input type="text" class="layui-input" name="HDeleteMan" id="HDeleteMan" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">ä½åºæ¥æ:</label> |
| | | <div class="layui-input-block" style="margin-left: 85px;"> |
| | | <input type="datetime" class="layui-input" name="HDeleteDate" id="HDeleteDate" style="background-color:#efefef4d;" readonly disabled> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | <div class="layer-footer" style="text-align: center;"> |
| | | <button type="button" lay-submit="" class="layui-btn buttom_box_little" lay-filter="Saver" id="Saver">æäº¤</button> |
| | | <button type="button" lay-submit="" class="layui-btn buttom_box_little" lay-filter="Add">æ°å¢</button> |
| | | <button type="button" class="layui-btn buttom_box_little" lay-filter="Cancel" id="Cancel">éåº</button> |
| | | </div> |
| | | <!--éèåæ®µ--> |
| | | <input type="hidden" name="lngBillKey" id="lngBillKey"> |
| | | <input type="hidden" name="lngBillSubKey" id="lngBillSubKey"> |
| | | |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <script> |
| | | var IsSet = ""; |
| | | layui.config({ |
| | | base: '../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index' //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'laydate', 'table', 'element'], function () { |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | | , layer = layui.layer |
| | | , table = layui.table |
| | | , form = layui.form |
| | | ,laydate = layui.laydate |
| | | , element = layui.element; |
| | | |
| | | //æ¥ææ¶é´éæ©å¨ |
| | | laydate.render({ |
| | | elem: '#HRepairBeginDate' |
| | | , type: 'datetime' |
| | | }); |
| | | laydate.render({ |
| | | elem: '#HRepairEndDate' |
| | | , type: 'datetime' |
| | | }); |
| | | laydate.render({ |
| | | elem: '#HDate' |
| | | , type: 'datetime' |
| | | }); |
| | | laydate.render({ |
| | | elem: '#HMakeDate' |
| | | , type: 'datetime' |
| | | }); |
| | | laydate.render({ |
| | | elem: '#HUpDateDate' |
| | | , type: 'datetime' |
| | | }); |
| | | laydate.render({ |
| | | elem: '#HCheckDate' |
| | | , type: 'datetime' |
| | | }); |
| | | laydate.render({ |
| | | elem: '#HDeleteDate' |
| | | , type: 'datetime' |
| | | }); |
| | | |
| | | //è¿å
¥é¡µé¢é»è®¤å
æ 卿¡å½¢ç ä¸ |
| | | $("#HBarCode").focus(); |
| | | |
| | | //åå§åºæ¬ä¿¡æ¯èµå¼ |
| | | $("#HRepairBeginDate").val(Format(new Date(), "yyyy-MM-dd hh:mm:ss")); //ç¹æ£å¼å§æ¶é´ |
| | | $("#HRepairEndDate").val(Format(new Date(), "yyyy-MM-dd hh:mm:ss")); //ç¹æ£ç»ææ¶é´ |
| | | $("#HDate").val(Format(new Date(), "yyyy-MM-dd hh:mm:ss")); //åæ®æ¥æ |
| | | $("#HMakeDate").val(Format(new Date(), "yyyy-MM-dd hh:mm:ss")); //åå»ºæ¥æ |
| | | |
| | | $("#HDeptID").val(sessionStorage["HDeptID"]); //é¨é¨ID |
| | | $("#HDeptName").val(sessionStorage["HDept"]); //é¨é¨ |
| | | $("#HEmpID").val(sessionStorage["HBillerID"]); //维修人ID |
| | | $("#HEmpName").val(sessionStorage["HUserName"]); //维修人 |
| | | $("#HManagerID").val(sessionStorage["HManagerID"]); //责任人ID |
| | | $("#HManagerName").val(sessionStorage["HManagerName"]); //责任人 |
| | | $("#HMaker").val(sessionStorage["HUserName"]); //å建人 |
| | | //模治å
·æ¡ç æ¯å¦æ«ææ è®° |
| | | var HProcExchBillNoFlag = false; |
| | | |
| | | //è·åæå¤§åæ®å· |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | type: "GET", |
| | | data: { "HBillType": '3910' }, |
| | | success: function (d) { |
| | | //console.log(d.data); |
| | | $("#HInterID").val("0"); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | } |
| | | }); |
| | | |
| | | |
| | | //æ¡å½¢ç åè½¦æ¹æ³ |
| | | $('#HBarCode').on('keydown', function (event) { |
| | | var HBarCode = $('#HBarCode').val(); |
| | | if (event.keyCode == 13) { |
| | | if (!HBarCode) { |
| | | layer.msg("æ¡å½¢ç ä¸è½ä¸ºç©ºï¼") |
| | | return; |
| | | } |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Sb_PDA_EqpRepairWorkBill/txtHBarCode_KeyDown", |
| | | type: "GET", |
| | | data: { "HBarCode": HBarCode }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | var data = result.data[0]; |
| | | form.val("formData", { //formTest å³ class="layui-form" æå¨å
ç´ å±æ§ lay-filter="" 对åºçå¼ |
| | | "HEquipID": data.HItemID, |
| | | "HBarName": data.HName, |
| | | "HBarSpec": data.HModel, |
| | | "HBarModel": data.HModel2, |
| | | "HQty": "1" |
| | | }); |
| | | $("#HBarCode").attr("readonly", "readonly");//æ¡å½¢ç åªè¯» |
| | | $("#HBarCode").css("background-color", "#efefef4d"); |
| | | |
| | | HProcExchBillNoFlag = true; |
| | | layer.close(index); |
| | | } |
| | | else { |
| | | layer.close(index); |
| | | layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.close(index); |
| | | layer.msg("æ¥å£è¯·æ±å¤±è´¥ï¼" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | |
| | | //éåº-å
³é页颿¹æ³ |
| | | $('#Cancel').on('click', function () { |
| | | layer.confirm('æ¨ç¡®å®è¦éåºåï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | parent.layui.admin.events.closeThisTabs(); //å
³éé¡µç¾ |
| | | }); |
| | | }) |
| | | |
| | | //æäº¤ |
| | | form.on('submit(Saver)', function (data) {//æäº¤ |
| | | //var tableData = data.field; |
| | | data.field.HMaker = sessionStorage["HUserName"];//å¶å人 |
| | | var oMain = JSON.stringify(data.field); |
| | | //var oMain = data.field; |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: GetWEBURL() + "/Sb_PDA_EqpRepairWorkBill/SaveGetEqpRepairWorkBillList", |
| | | //url:"http://localhost:12761/Cj_StationEntrustOutBill/AddBill", |
| | | async: true, |
| | | data: { "msg": oMain }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { |
| | | //layer.confirm(data.Message, { |
| | | // icon: 1, skin: 'layui-layer-lan', title: "温馨æç¤º", closeBtn: 0, btn: ['æ°å¢'], |
| | | // btn2: function () { |
| | | // //parent.layui.admin.events.closeThisTabs();å
³éé¡µç¾ |
| | | // //window.close();//å
³é页é¢ï¼æµè§å¨ææï¼PDAæ æ |
| | | // parent.location.href = "../../../views/index.html" |
| | | // }//å
³é |
| | | //}, function () { window.location.reload(); });//æ°å¢ |
| | | layer.close(index); |
| | | layer.msg("æäº¤æå"); |
| | | $('#Saver').removeClass("buttom_box_little"); |
| | | $('#Saver').addClass("layui-btn-disabled").attr("disabled", true); |
| | | } |
| | | else { |
| | | layer.close(index); |
| | | layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.close(index); |
| | | layer.msg("é误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | }); |
| | | //æ°å¢ |
| | | form.on('submit(Add)', function (data) { |
| | | $('#Saver').addClass("buttom_box_little"); |
| | | $('#Saver').addClass("layui-btn-disabled").attr("disabled", false); |
| | | $("#HBarCode").removeAttr("readonly");//æ¡å½¢ç æ¸
é¤åªè¯» |
| | | $("#HBarCode").removeAttr("background-color");//æ¡å½¢ç æ¸
é¤èæ¯è² |
| | | |
| | | // æ¸
空表å ï¼âformDataâæ¯è¡¨åçidï¼ |
| | | $("#formData")[0].reset(); |
| | | layui.form.render(); |
| | | |
| | | |
| | | $("#HBarCode").focus(); |
| | | //è·åæå¤§åæ®å· |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | type: "GET", |
| | | data: { "HBillType": '3903' }, |
| | | success: function (d) { |
| | | //console.log(d.data); |
| | | $("#HInterID").val("0"); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | } |
| | | }); |
| | | $("#HRepairBeginDate").val(Format(new Date(), "yyyy-MM-dd hh:mm:ss")); //ç»´ä¿®å¼å§æ¶é´ |
| | | $("#HRepairEndDate").val(Format(new Date(), "yyyy-MM-dd hh:mm:ss")); //ç»´ä¿®ç»ææ¶é´ |
| | | $("#HDate").val(Format(new Date(), "yyyy-MM-dd hh:mm:ss")); //åæ®æ¥æ |
| | | $("#HMakeDate").val(Format(new Date(), "yyyy-MM-dd hh:mm:ss")); //åå»ºæ¥æ |
| | | $("#HMaker").val(sessionStorage["HUserName"]); //å建人 |
| | | }) |
| | | //é¨é¨å¼¹çª |
| | | form.on('submit(Department)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'é¨é¨å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../Baseset/åºç¡èµæ/Gy_DepartmentList.html', 'yes'], |
| | | cancel: function (index, layero) { |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //ç»´ä¿®äººå¼¹çª |
| | | form.on('submit(HEmp)', function () { |
| | | IsSet = 0; //维修人0ï¼è´è´£äºº1 |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: '维修人å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HWorker', 'yes'], |
| | | cancel: function (index, layero) { |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //ç¹æ£é¡¹ç®å¼¹çª |
| | | form.on('submit(HDotCheckItemList)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'ç¹æ£é¡¹ç®å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../Baseset/åºç¡èµæ/Gy_CheckItemList.html', 'yes'], |
| | | cancel: function (index, layero) { |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //è´è´£äººå¼¹çª |
| | | form.on('submit(HManager)', function () { |
| | | IsSet = 1; //维修人0ï¼è´è´£äºº1 |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'è´è´£äººå表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HWorker', 'yes'], |
| | | cancel: function (index, layero) { |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //以ä¸ä¸ºlayui模å |
| | | }); |
| | | |
| | | //è¿åé¨é¨ |
| | | function GetHDeptNameValue(obj) { |
| | | $("#HDeptName").val(obj[0].HName); |
| | | $("#HDeptID").val(obj[0].HItemID); |
| | | } |
| | | //è¿å维修人ãè´è´£äºº |
| | | function GetHWorkerValue(obj) { |
| | | if (IsSet == 0) { |
| | | $("#HEmpName").val(obj[0].HName); |
| | | $("#HEmpID").val(obj[0].HItemID); |
| | | } |
| | | if (IsSet == 1) { |
| | | $("#HManagerName").val(obj[0].HName); |
| | | $("#HManagerID").val(obj[0].HItemID); |
| | | } |
| | | } |
| | | //è¿åç»´ä¿®é¡¹ç® |
| | | function GetHCheckNameValue(obj) { |
| | | $("#HRepair").val(obj[0].HName); |
| | | $("#HRepairID").val(obj[0].HItemID); |
| | | } |
| | | </script> |
| | | </body> |
| | | </html> |
| | | </html> |