| | |
| | | <!--å é¤--> |
| | | <script type="text/html" id="barDemo"> |
| | | <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> |
| | | <!--<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">å é¤</a>--> |
| | | </script> |
| | | <!--è¡ä¸æéæ©(ç»æ)--> |
| | | <script type="text/html" id="HCheckResult"> |
| | |
| | | get_InitGrid(); |
| | | //è·åæ¥å·¥å°è·³è½¬æ°æ® |
| | | RoadBillEdit(HMaterID, HProcID, HSourceID, SCOrder); |
| | | Get_HNowMould(HSourceID); |
| | | //ç¦ç¨ç»ç»é项 |
| | | $('#HOrgID').attr("disabled", true); |
| | | } |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | //#region è·åæè¿ç䏿¬¡ä¸æ¨¡åèµå¼ |
| | | function Get_HNowMould(HSourceID) |
| | | { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Sc_WorkBeginDotCheckBill/Sc_WorkBeginDotCheckBill_HMould", |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HSourceID": HSourceID, "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | var tableSub = result.data; |
| | | //å表 èµå¼ |
| | | |
| | | for (var i = 0; i < option.data.length; i++) { |
| | | if (option.data[i]["HDotCheckType"] == "模å
·") { |
| | | option.data[i]["HRelationName"] = tableSub[0]["模å
·åç§°"]; |
| | | option.data[i]["HRelationID"] = tableSub[0]["HMouldID"] == null ? "0" : tableSub[0]["HMouldID"]; |
| | | } |
| | | } |
| | | var tables = option.data; |
| | | option.data = option.data; |
| | | table.render(option); |
| | | for (var i = 0; i < tables.length; i++) { |
| | | $('#HDotCheckType' + (i + 1)).find("option[value='" + tables[i]["HDotCheckType"] + "']").attr("selected", true); |
| | | } |
| | | form.render('select'); |
| | | } |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | //#endregion |
| | | |
| | | }); |