| | |
| | | <div class="layui-card-body" style="padding: 1px;"> |
| | | <form class="layui-form" action="" lay-filter="formData" style="background-color:white;"> |
| | | <div style="padding: 10px;"> |
| | | <button class="layui-btn layuiadmin-btn-order main-btn" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch"> |
| | | <i class="layui-icon layui-icon-print layuiadmin-button-btn"><span class="btn-title">é¢è§</span></i> |
| | | </button> |
| | | <button class="layui-btn layuiadmin-btn-order main-btn" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch"> |
| | | <i class="layui-icon layui-icon-add-1 layuiadmin-button-btn"><span class="btn-title">æ°å¢</span></i> |
| | | </button> |
| | | <button class="layui-btn layuiadmin-btn-order main-btn" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch"> |
| | | <i class="layui-icon layui-icon-edit layuiadmin-button-btn"><span class="btn-title">ä¿®æ¹</span></i> |
| | | </button> |
| | | <button class="layui-btn layuiadmin-btn-order main-btn" type="button" lay-submit="" lay-filter="btnSave" id="btnSave"> |
| | | <i class="layui-icon layui-icon-delete layuiadmin-button-btn"><span class="btn-title">ä¿å</span></i> |
| | | </button> |
| | | <!--<button class="layui-btn layuiadmin-btn-order main-btn" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch"> |
| | | <i class="layui-icon layui-icon-print layuiadmin-button-btn"><span class="btn-title">é¢è§</span></i> |
| | | </button>--> |
| | | <!--<button class="layui-btn layuiadmin-btn-order main-btn" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch"> |
| | | <i class="layui-icon layui-icon-edit layuiadmin-button-btn"><span class="btn-title">ä¿®æ¹</span></i> |
| | | </button>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-submit="" lay-filter="btn-AddNew" id="btn-AddNew">æ°å¢</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-submit="" lay-filter="btnSave" id="btnSave">ä¿å</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-submit="" lay-filter="btn-Exit" id="btn-Exit">éåº</button> |
| | | </div> |
| | | <div class="layui-tab" lay-filter="tab-POStockInBill"> |
| | | <ul class="layui-tab-title" lay-filter="tab-all"> |
| | |
| | | <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="HICMOQty" id="HICMOQty"> |
| | | <input type="text" class="layui-input" name="HICMOQty" id="HICMOQty" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | <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="HProcExchQty" id="HProcExchQty"> |
| | | <input type="text" class="layui-input" name="HProcExchQty" id="HProcExchQty" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <input type="hidden" name="HFirstCheckEmp" id="HFirstCheckEmp" value="0"> |
| | | </div> |
| | | </div> |
| | | </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" name="HQCCheckProjectName" id="HQCCheckProjectName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchCheckProject" id="btnSearchCheckProject" style="padding: 0 10px;float: left;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <input type="hidden" name="HQCCheckProjectID" id="HQCCheckProjectID" value="0"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-CopyLine"><i class="layui-icon layui-icon-form"></i>å¤å¶ä¸è¡</button> |
| | | </div> |
| | | </script> |
| | | <!--éèåæ®µ--> |
| | | <input type="hidden" name="HMainSourceBillType" id="HMainSourceBillType"> |
| | | <input type="hidden" name="HMainSourceInterID" id="HMainSourceInterID" value="0"> |
| | | <input type="hidden" name="HMainSourceEntryID" id="HMainSourceEntryID" value="1"> |
| | | <input type="hidden" name="HMainSourceBillNo" id="HMainSourceBillNo"> |
| | | </form> |
| | | </div> |
| | | </div> |
| | |
| | | <!--<a class="layui-btn layui-btn-xs" lay-event="edit">ç¼è¾</a>--> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">å é¤</a> |
| | | </script> |
| | | <!--è¡ä¸æéæ©--> |
| | | <script type="text/html" id="inputSel"> |
| | | <select name="HCloseType" lay-filter="HCloseType"> |
| | | <!--è¡ä¸æéæ©(ç»è®º)--> |
| | | <script type="text/html" id="HResult"> |
| | | <select name="HResult" lay-filter="HResult" id="HResult{{d.LAY_TABLE_INDEX+1}}"> |
| | | <option value="">è¯·éæ©</option> |
| | | <option value="true">æ¯</option> |
| | | <option value="false">å¦</option> |
| | | <option value="åæ ¼">åæ ¼</option> |
| | | <option value="ä¸åæ ¼">ä¸åæ ¼</option> |
| | | </select> |
| | | </script> |
| | | <script src="../../../layuiadmin/layui/layui.js"></script> |
| | |
| | | } else { |
| | | var OperationType = params[params[0]];//æä½ç±»å |
| | | var linterid = params[params[1]];//æºåid |
| | | var HSouceBillType = params[params[2]];//æºåid |
| | | } |
| | | /*åºå®ä»£ç ï¼æ¯å¼ åæ®é½è¦begin*/ |
| | | |
| | |
| | | if (OperationType == 1) { |
| | | $("#HInterID").val(""); |
| | | $("#HBillNo").val(""); |
| | | $('#btnSave').addClass("layui-btn-disabled").attr("disabled", true);//ææºåæ¶ä¿åæé®ç¦ç¨ |
| | | //è·åæå¤§åæ®å· |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | |
| | | else if (OperationType == 2) { |
| | | $("#HInterID").val(""); |
| | | $("#HBillNo").val(""); |
| | | $('#btn-AddNew').addClass("layui-btn-disabled").attr("disabled", true);//ææºåæ¶æ°å¢æé®ç¦ç¨ |
| | | $('#btnSearchSource').addClass("layui-btn-disabled").attr("disabled", true);//ææºåæ¶çäº§èµæºæé®ç¦ç¨ |
| | | $('#btnSearchICMOBill').addClass("layui-btn-disabled").attr("disabled", true);//ææºåæ¶ä»»å¡åå·æé®ç¦ç¨ |
| | | $('#btnSearchMater').addClass("layui-btn-disabled").attr("disabled", true);//ææºåæ¶äº§åå
ç æé®ç¦ç¨ |
| | | $('#btnSearchProcExch').addClass("layui-btn-disabled").attr("disabled", true);//ææºåæ¶æµè½¬å¡å·æé®ç¦ç¨ |
| | | //è·åæå¤§åæ®å· |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | } |
| | | }); |
| | | //æ ¹æ®æºåidè·åæºåä¿¡æ¯ |
| | | LoadingInformation(); |
| | | if (HSouceBillType == 3722) { |
| | | //æ ¹æ®æºåidè·åæºåä¿¡æ¯ |
| | | LoadingInformation2(); |
| | | } else if (HSouceBillType == 3790) { |
| | | //æ ¹æ®æºåidè·åæºåä¿¡æ¯ |
| | | LoadingInformation(); |
| | | } else { |
| | | layer.alert("æºåç±»åæ æï¼", { icon: 5 }); |
| | | } |
| | | } |
| | | else if (OperationType == 3) { |
| | | RoadBillMain(linterid); |
| | |
| | | $("#HSourceName").val(data.çäº§èµæº); |
| | | $("#HSourceID").val(data.HSourceID); |
| | | $("#HMaterID").val(data.HMaterID); |
| | | $("#HMainSourceBillNo").val(data.åæ®å·); |
| | | $("#HMainSourceBillType").val(data.HBillType); |
| | | $("#HMainSourceInterID").val(data.HInterID); |
| | | } else { |
| | | layer.alert(result.Message, { icon: 5 }); |
| | | } |
| | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //æ ¹æ®æºåidè·åæºåä¿¡æ¯ |
| | | function LoadingInformation2() { |
| | | var wait = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/QC_FirstPieceCheckBill/get_ICMOBillStatus_Tmp", |
| | | type: "GET", |
| | | data: { "HInterID": linterid, "HEntryID": 0, "HBillType": HSouceBillType }, |
| | | success: function (result) { |
| | | var data = result.data[0]; |
| | | if (result.count == 1) { |
| | | $("#HProcExchBillNo").val(data.å·¥åºæµè½¬å¡å·); |
| | | $("#HProcExchInterID").val(data.HProcExchInterID); |
| | | $("#HProcExchEntryID").val(data.HProcExchEntryID); |
| | | $("#HProcExchQty").val(data.æµè½¬å¡æ°é); |
| | | $("#HICMOBillNo").val(data.ä»»å¡å); |
| | | $("#HICMOInterID").val(data.HICMOInterID); |
| | | $("#HICMOQty").val(data.HICMOQty); |
| | | $("#HSourceName").val(data.çäº§èµæº); |
| | | $("#HSourceID").val(data.HSourceID); |
| | | $("#HMaterID").val(data.HMaterID); |
| | | $("#HMainSourceBillNo").val(data.åæ®å·); |
| | | $("#HMainSourceBillType").val(data.HBillType); |
| | | $("#HMainSourceInterID").val(data.HInterID); |
| | | } else { |
| | | layer.alert(result.Message, { icon: 5 }); |
| | | } |
| | | layer.close(wait); |
| | | }, error: function () { |
| | | layer.close(wait); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //头工å
·æ äºä»¶ |
| | | table.on('toolbar(mainTable)', function (obj) { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | |
| | | //æ°å¢è¡è¡¨æ ¼æ°æ® |
| | | var NewRow = { |
| | | "HQCCheckItemID": "", "æ£éªé¡¹ç®": "", "HQCStd": "", "HUnit": "", "HQCNote": "", "HResult": "", |
| | | "HMax": "", "HMin": "", "HAvg": "", "HRemark": "", "HSourceInterID": "", |
| | | "HSourceEntryID": "", "HSourceBillNo": "", "HSourceBillType": "", "HRelationQty": "", "HRelationMoney": "", |
| | | "HCloseMan": "", "HEntryCloseDate": "", "HCloseType": "" |
| | | "HMax": "", "HMin": "", "HAvg": "", "HRemark": "" |
| | | }; |
| | | switch (obj.event) { |
| | | case 'btn-AddLine': |
| | | table.cache["mainTable"].push(NewRow); |
| | | option.data = table.cache["mainTable"]; |
| | | table.render(option); |
| | | for (var i = 1; i <= option.data.length; i++) { |
| | | $('#HResult' + i + '').find("option[value='" + option.data[i - 1].HResult + "']").attr("selected", true); |
| | | } |
| | | form.render('select'); |
| | | break; |
| | | case 'btn-CopyLine': |
| | | var copydata = JSON.stringify(data); |
| | |
| | | table.cache["mainTable"].push(JSON.parse(copyrow));//å°å¤å¶çè¡å¼ºè½¬æjson追å å°è¡¨æ ¼ä¸ |
| | | option.data = table.cache["mainTable"];//å°æ°æ®ç»å®å°dataä¸ |
| | | table.render(option);//å°æ°æ®æ¸²æå°è¡¨æ ¼ä¸ |
| | | //layer.alert(copyrow); |
| | | for (var i = 1; i <= option.data.length; i++) { |
| | | $('#HResult' + i + '').find("option[value='" + option.data[i - 1].HResult + "']").attr("selected", true); |
| | | } |
| | | form.render('select'); |
| | | } |
| | | break; |
| | | } |
| | | }); |
| | | |
| | | //éåºæé® |
| | | form.on('submit(btn-Exit)', function (data) { |
| | | get_Exit(); |
| | | }); |
| | | |
| | | //æ°å¢æé® |
| | | form.on('submit(btn-AddNew)', function (data) { |
| | | window.location.reload(); |
| | | }); |
| | | |
| | | |
| | | //éåº |
| | | function get_Exit() { |
| | | if (OperationType == 1) { |
| | | parent.layui.admin.events.closeThisTabs(); |
| | | } else if (OperationType == 2) { |
| | | var index = parent.layer.getFrameIndex(window.name); |
| | | parent.layer.close(index); |
| | | } else if (OperationType == 3) { |
| | | var index = parent.layer.getFrameIndex(window.name); |
| | | parent.layer.close(index); |
| | | } |
| | | } |
| | | |
| | | //è¡å
äºä»¶ |
| | | table.on('tool(mainTable)', function (obj) { |
| | |
| | | |
| | | //ä¿å |
| | | function set_SaveBill(data) { |
| | | //if ($("#HICMOQty").val() == "" || $("#HICMOQty").val() <= 0) { |
| | | // layer.msg("ä»»å¡åæ°éä¸è½ä¸ºç©ºä¸ä¸è½å°äºçäº0ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return; |
| | | //} |
| | | //if ($("#HProcExchQty").val() == "" || $("#HProcExchQty").val() <= 0) { |
| | | // layer.msg("æµè½¬å¡æ°éä¸è½ä¸ºç©ºä¸ä¸è½å°äºçäº0ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return; |
| | | //} |
| | | //if ($("#HFirstCheckEmp").val() == 0) { |
| | | // layer.msg("æ£éªåæªéæ©ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return; |
| | | //} |
| | | //var sSubTable = table.cache['mainTable']; |
| | | //for (var i = 0; i < sSubTable.length; i++) { |
| | | // if (!sSubTable[i].HQCCheckItemID) { |
| | | // var indexRow = i + 1; |
| | | // layer.msg("第" + indexRow + "è¡ï¼æ£éªé¡¹ç®ä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return; |
| | | // } |
| | | // if (!sSubTable[i].HSourceInterID) { |
| | | // var indexRow = i + 1; |
| | | // layer.msg("第" + indexRow + "è¡ï¼æºå主å
ç ä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return; |
| | | // } |
| | | // if (!sSubTable[i].HSourceEntryID) { |
| | | // var indexRow = i + 1; |
| | | // layer.msg("第" + indexRow + "è¡ï¼æºååå
ç ä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return; |
| | | // } |
| | | // if (!sSubTable[i].HRelationQty) { |
| | | // var indexRow = i + 1; |
| | | // layer.msg("第" + indexRow + "è¡ï¼å
³èæ°éä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return; |
| | | // } |
| | | // if (!sSubTable[i].HRelationMoney) { |
| | | // var indexRow = i + 1; |
| | | // layer.msg("第" + indexRow + "è¡ï¼å
³èéé¢ä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return; |
| | | // } |
| | | // if (!sSubTable[i].HEntryCloseDate) { |
| | | // var indexRow = i + 1; |
| | | // layer.msg("第" + indexRow + "è¡ï¼å
³éæ¶é´ä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return; |
| | | // } |
| | | //} |
| | | if ($("#HICMOQty").val() == "" || $("#HICMOQty").val() <= 0) { |
| | | layer.msg("ä»»å¡åæ°éä¸è½ä¸ºç©ºä¸ä¸è½å°äºçäº0ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | if ($("#HProcExchQty").val() == "" || $("#HProcExchQty").val() <= 0) { |
| | | layer.msg("æµè½¬å¡æ°éä¸è½ä¸ºç©ºä¸ä¸è½å°äºçäº0ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | if ($("#HFirstCheckEmp").val() == 0) { |
| | | layer.msg("æ£éªåæªéæ©ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | var sSubTable = table.cache['mainTable']; |
| | | for (var i = 0; i < sSubTable.length; i++) { |
| | | if (!sSubTable[i].HQCCheckItemID) { |
| | | var indexRow = i + 1; |
| | | layer.msg("第" + indexRow + "è¡ï¼æ£éªé¡¹ç®ä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | } |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = JSON.stringify(table.cache['mainTable']); |
| | | var sMainSub = sMainStr + ';' + sSubStr + ';' + OperationType; |
| | |
| | | // console.log(d.data); |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | $("#HSourceBillNo").val(d.data[0].HSourceBillNo); |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //è¡¨å¤´ä¿¡æ¯æ£éªæ¹æ¡å¼¹çª |
| | | form.on('submit(btnSearchCheckProject)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'æ£éªæ¹æ¡å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../../views/Baseset/åºç¡èµæ/Gy_QCCheckProjectListView.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('ck-table');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HQCCheckProjectID").val(checkStatus.data[0].HItemID); |
| | | $("#HQCCheckProjectName").val(checkStatus.data[0].æ¹æ¡åç§°); |
| | | get_CheckItem(); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | function get_CheckItem() { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetCheckItemByCheckProjectID", |
| | | type: "GET", |
| | | data: { "CheckProjectID": $("#HQCCheckProjectID").val()}, |
| | | success: function (result) { |
| | | option.data = result.data; |
| | | table.render(option); |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //表头信æ¯å·¥åºæµè½¬å¡å¼¹çª |
| | | form.on('submit(btnSearchProcExch)', function () { |
| | |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | | function set_InitGrid() { |
| | | $("#HDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HMakeDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | //åå§è¡¨æ ¼æ°æ® |
| | | rowdata = [{ |
| | | "HQCCheckItemID": "", "æ£éªé¡¹ç®": "", "HQCStd": "", "HUnit": "", "HQCNote": "", "HResult": "", |
| | | "HMax": "", "HMin": "", "HAvg": "", "HRemark": "", "HSourceInterID": "", |
| | | "HSourceEntryID": "", "HSourceBillNo": "", "HSourceBillType": "", "HRelationQty": "", "HRelationMoney": "", |
| | | "HCloseMan": "", "HEntryCloseDate": "", "HCloseType": "" |
| | | "HMax": "", "HMin": "", "HAvg": "", "HRemark": "" |
| | | }]; |
| | | option = { |
| | | elem: '#mainTable' |
| | |
| | | , { field: 'HQCStd', title: 'æ£éªæ å', edit: 'text' } |
| | | , { field: 'HUnit', title: 'åä½', edit: 'text' } |
| | | , { field: 'HQCNote', title: 'æ£éªè®°å½', edit: 'text' } |
| | | , { field: 'HResult', title: 'ç»è®º', edit: 'text' } |
| | | , { field: 'HResult', title: 'ç»è®º', templet: '#HResult' } |
| | | , { field: 'HMax', title: 'æå¤§å¼', edit: 'text' } |
| | | , { field: 'HMin', title: 'æå°å¼', edit: 'text' } |
| | | , { field: 'HAvg', title: 'å¹³åå¼', edit: 'text', totalRow: true } |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text' } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', edit: 'text' } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', edit: 'text' } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·' } |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å' } |
| | | , { field: 'HRelationQty', title: 'å
³èæ°é', edit: 'text' } |
| | | , { field: 'HRelationMoney', title: 'å
³èéé¢', edit: 'text' } |
| | | , { field: 'HCloseMan', title: 'è¡å
³é人' } |
| | | , { field: 'HEntryCloseDate', title: 'å
³éæ¶é´', edit: 'text' } |
| | | , { field: 'HCloseType', title: 'æå·¥å
³é', templet: '#inputSel' } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo' } |
| | | ]] |
| | | ,done: function (res, curr, count) { |
| | | , done: function (res, curr, count) { |
| | | option.data = res.data; |
| | | //廿䏿æ¡å¤±ç¦äºä»¶å¦åå¨ä¸ææ¡éè¾å
¥å¼ |
| | | $('.layui-form-select').find('input').unbind("blur"); |
| | |
| | | var dataIndex = $cr.attr("data-index"); |
| | | $.each(option.data, function (index, value) { |
| | | if (value.LAY_TNDEX == dataIndex) { |
| | | $cr.find('input').val(value.HCloseType); |
| | | $cr.find('input').val(value.HResult); |
| | | } |
| | | }); |
| | | }); |
| | |
| | | table.render(option); |
| | | } |
| | | |
| | | |
| | | form.on('select(HCloseType)', function (data) { |
| | | //è¡éæ©å¤çï¼ç»è®ºï¼ |
| | | form.on('select(HResult)', function (data) { |
| | | //è·å䏿æ¡éä¸çå¼ |
| | | var elem = data.othis.parents('tr'); |
| | | var dataindex = elem.attr("data-index"); |
| | | $.each(option.data, function (index, value) { |
| | | if (value.LAY_TABLE_INDEX == dataindex) { |
| | | value.HCloseType = data.value;//æéä¸ä¸ææ¡idå¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | value.HResult = data.value;//æéä¸ä¸ææ¡idå¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | } |
| | | }); |
| | | }); |