| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ä¾åºå</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HSupName" id="HSupName" style="float:left;width:150px;"> |
| | | <input type="hidden" class="layui-input" name="HSupID" id="HSupID" style="float:left;width:150px;"> |
| | | <input type="text" class="layui-input" name="HSellSupName" id="HSellSupName" style="float:left;width:150px;"> |
| | | <input type="hidden" class="layui-input" name="HSellSupID" id="HSellSupID" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HSupList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HSupName").val(checkStatus.data[0].HName); |
| | | $("#HSupID").val(checkStatus.data[0].HItemID); |
| | | $("#HSellSupName").val(checkStatus.data[0].HName); |
| | | $("#HSellSupID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | |
| | | $("#HEquipFileTypeID").val(d.data[0].HEquipFileTypeID); |
| | | $("#HEquipFileTypeName").val(d.data[0].设å¤ç±»å); |
| | | $("#HOutComDate").val(d.data[0].设å¤åºåæ¥æ); |
| | | |
| | | $("#HSupID").val(d.data[0].HSupID); |
| | | $("#HSupName").val(d.data[0].ä¾åºå); |
| | | $("#HSupID").val(d.data[0].HSupID); |
| | | $("#HSupName").val(d.data[0].å¶é å); |
| | | $("#HSellSupID").val(d.data[0].HSupID); |
| | | $("#HSellSupName").val(d.data[0].ä¾åºå); |
| | | $("#HMakeSupID").val(d.data[0].HMakeSupID); |
| | | $("#HMakeSupName").val(d.data[0].å¶é å); |
| | | $("#HDeptID").val(d.data[0].HDeptID); |
| | | $("#HDeptName").val(d.data[0].使ç¨é¨é¨); |
| | | $("#HUseEmpID").val(d.data[0].HUseEmpID); |
| | |
| | | }); |
| | | } |
| | | else { |
| | | |
| | | //ä¿®æ¹ |
| | | data.field.HUpDater = sessionStorage["HUserName"];//ä¿®æ¹äºº |
| | | var sMainStr = JSON.stringify(data.field); |
| | |
| | | layer.msg("è¯·éæ©åä½ï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | if ($("#HSupID").val() == '' || $("#HSupID").val() == null) { |
| | | if ($("#HSellSupID").val() == '' || $("#HSellSupID").val() == null) { |
| | | layer.msg("è¯·éæ©ä¾åºåï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |