| | |
| | | }); |
| | | function TSLoad() { |
| | | $("#topleft").html(""); |
| | | var HUserName = "Admin" //sessionStorage["HUserName"]; //默认当前登录人员 |
| | | var HUserName = sessionStorage["HUserName"]; //默认当前登录人员 |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/ReportPlatForm/SearchGetLineBindBillList", |
| | | type: "GET", |
| | |
| | | data: { "HSourceID": HSourceID }, |
| | | dataType: "json",//数据类型可以为 text xml json script jsonp |
| | | success: function (data) { |
| | | |
| | | |
| | | var LoadData1 = data.data.h_p_JIT_GetWorkBillListInfoBySource; |
| | | var LoadData2 = data.data.h_p_JIT_GetWorkBillListInfoBySource1; |
| | | if (LoadData1.length > 0) //工单列表数据 |
| | |
| | | html1 += '<div class="layui-col-sm12 layui-col-md12">'; |
| | | html1 += '<dl class="topright">;' |
| | | html1 += '<dt>'; |
| | | html1 += '<img src="../layuiadmin/layui/images/device.png" onError="this.src="../ layuiadmin/layui/images/erro.png";">'; |
| | | html1 += '<img src="../layuiadmin/layui/images/device.png" onError="this.src="../layuiadmin/layui/images/erro.png";">' |
| | | html1 += '</dt>'; |
| | | html1 += '<dd>'; |
| | | html1 += '<h1><span>当前设备:</span><span>' + LoadData2[i].HSourceName + '</span></h1>'; |
| | |
| | | layer.alert("请选择工单列表", { icon: 5 }); |
| | | return false; |
| | | } |
| | | if (WorkStaus(HSourceID1, workcode, HSourceInterID, "汇报")) { |
| | | layer.alert("单据状态不满足完工条件!", { icon: 5 }); |
| | | return false; |
| | | } |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //加上边框 |
| | |
| | | sWhere = " where HSourceID='" + HSourceID1 + "' and HICMOBillNo='" + workcode + "' and HInterID='" + HSourceInterID +"' and hicmostatus not in('1')"; //停工挂起状态 |
| | | break; |
| | | case "汇报": |
| | | html1 = ''; |
| | | sWhere = " where HSourceID='" + HSourceID1 + "' and HICMOBillNo='" + workcode + "' and HInterID='" + HSourceInterID + "' and hicmostatus not in('1')"; //汇报状态 |
| | | break; |
| | | case "报检申请": |
| | | |
| | |
| | | flag = false; |
| | | } |
| | | }); |
| | | console.log(flag); |
| | | |
| | | return flag; |
| | | } |
| | | </script> |
| | |
| | | </ul> |
| | | <div class="layui-tab-content content3"> |
| | | <div class="layui-tab-item layui-show"> |
| | | <div class="layui-row layui-col-space10" id="btomleft"> |
| | | <div class="layui-row layui-col-space10" id="btomleft" style="height:600px;display:block;overflow-y:auto;"> |
| | | |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row layui-col-space10" onclick="OpenInSpection(event,this)"> |
| | | <div class="layui-col-sm12 layui-col-md4"> |
| | | <div class="layui-row layui-col-space10"> |
| | | <div class="layui-col-sm12 layui-col-md4" onclick="OpenInSpection(event,this)"> |
| | | <div class="cnt bottomright"> |
| | | <span class="layui-icon layui-icon-release imgicon"></span> |
| | | <span class="imgtitle">报检申请</span> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row layui-col-space10" onclick="OpenStop(event,this)"> |
| | | <div class="layui-col-sm12 layui-col-md4"> |
| | | <div class="layui-row layui-col-space10"> |
| | | <div class="layui-col-sm12 layui-col-md4" onclick="OpenStop(event,this)"> |
| | | <div class="cnt bottomright"> |
| | | <span class="layui-icon layui-icon-play imgicon"></span> |
| | | <span class="imgtitle">停工</span> |