| | |
| | | .btn-title { |
| | | font-size: 16px; |
| | | } |
| | | |
| | | .layui-form-select .layui-input { |
| | | padding-right: 0px; |
| | | } |
| | | /*.table-select { |
| | | margin-top: -10px; |
| | | margin-left: -15px; |
| | |
| | | <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 type="button" id="btnSave" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="btnSave">ä¿å</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Exit">éåº</button> |
| | | <button type="button" id="btnSave" class="layui-btn layui-btn-normal" style="margin-left: 0px" lay-submit="" lay-filter="btnSave">ä¿å</button> |
| | | <button type="button" class="layui-btn layui-btn-normal" lay-submit="" style="margin-left: 0px" lay-filter="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="HBillNo" id="HBillNo" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="HBillNo" id="HBillNo" readonly> |
| | | <input type="hidden" name="HInterID" id="HInterID"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="date" class="layui-input" name="HDate" id="HDate" style="padding-left: 32px;"> |
| | | <input type="text" class="layui-input" name="HDate" id="HDate" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-inline" style="margin-left:10px;"> |
| | | <label class="layui-form-label">货主类å</label> |
| | | <div class="layui-input-block"> |
| | | <select name="HMouldOWNER" lay-filter="HMouldOWNER" id="HMouldOWNER"> |
| | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å¨å
·ç¼å·</label> |
| | | <label class="layui-form-label" style="width: 85px;">å¨å
·ç¼å·<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HMouldNo" id="HMouldNo" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HMouldNo" id="HMouldNo"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å¨å
·åç§°</label> |
| | | <label class="layui-form-label" style="width: 85px;">å¨å
·åç§°<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HName" id="HName" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HName" id="HName"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å¨å
·è§æ ¼</label> |
| | | <label class="layui-form-label" style="width: 85px;">å¨å
·è§æ ¼<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HModel" id="HModel" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HModel" id="HModel"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <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="HModel2" id="HModel2" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HModel2" id="HModel2"> |
| | | </div> |
| | | </div> |
| | | <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="HDiameter" id="HDiameter" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HDiameter" id="HDiameter"> |
| | | </div> |
| | | </div> |
| | | <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="HSubjoin" id="HSubjoin" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HSubjoin" id="HSubjoin"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">è¾
å©å±æ§2</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HSubjoin2" id="HSubjoin2" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HSubjoin2" id="HSubjoin2"> |
| | | </div> |
| | | </div> |
| | | <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="HPICNo" id="HPICNo" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HPICNo" id="HPICNo"> |
| | | </div> |
| | | </div> |
| | | <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="HWorkMaterModel" id="HWorkMaterModel" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HWorkMaterModel" id="HWorkMaterModel"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">对åºERPç©æ</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HMaterNumber" id="HMaterNumber" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HMaterID" id="HMaterID" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHMaterList" id="btnHMaterList" style="padding: 0 10px;float: left;margin-right: 3px;background-color:gainsboro;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i> |
| | | <input type="text" class="layui-input" name="HMaterNumber" id="HMaterNumber" style="width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HMaterID" id="HMaterID" style="background-color:#efefef4d;width: 60%;display: inline-block;" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHMaterList" id="btnHMaterList" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">å¨å
·åç±»</label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">å¨å
·åç±»<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HMouleTypeName" id="HMouleTypeName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="text" class="layui-input" name="HMouleTypeName" id="HMouleTypeName" style="width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HMouleTypeID" id="HMouleTypeID" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHMouleList" id="btnHMouleList" style="padding: 0 10px;float: left;margin-right: 3px;background-color:gainsboro;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHMouleList" id="btnHMouleList" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">åä½</label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">åä½<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HUnitName" id="HUnitName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="text" class="layui-input" name="HUnitName" id="HUnitName" style="width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HUnitID" id="HUnitID" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHUnitList" id="btnHUnitList" style="padding: 0 10px;float: left;margin-right: 3px;background-color:gainsboro;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHUnitList" id="btnHUnitList" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">åºåæ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="date" class="layui-input" name="HOutComDate" id="HOutComDate" style="padding-left: 32px; width:185px;"> |
| | | <input type="text" class="layui-input" name="HOutComDate" id="HOutComDate"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">åºåç¼å·</label> |
| | | <div class="layui-input-block" style="margin-left: 125px;"> |
| | | <input type="text" class="layui-input" name="HOutComNo" id="HOutComNo" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HOutComNo" id="HOutComNo" /> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">使ç¨é¨é¨</label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">使ç¨é¨é¨<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 80px;"> |
| | | <input type="text" class="layui-input" name="HDeptName" id="HDeptName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="text" class="layui-input" name="HDeptName" id="HDeptName" style="width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HDeptID" id="HDeptID" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHDeptList" id="btnHDeptList" style="padding: 0 10px;float: left;margin-right: 3px;background-color:gainsboro;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHDeptList" id="btnHDeptList" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">ä¾åºå</label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">ä¾åºå<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HSupName" id="HSupName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="text" class="layui-input" name="HSupName" id="HSupName" style="width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HSupID" id="HSupID" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHSupList" id="btnHSupList" style="padding: 0 10px;float: left;margin-right: 3px;background-color:gainsboro;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHSupList" id="btnHSupList" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <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="HMouldStatus" id="HMouldStatus" style="background-color:#efefef4d;"> |
| | | <div class="layui-inline" style="margin-left:10px;"> |
| | | <label class="layui-form-label">å¨å
·ç¶æ</label> |
| | | <div class="layui-input-block"> |
| | | <select name="HMouldStatus" lay-filter="HMouldStatus" id="HMouldStatus"> |
| | | <option value="å¨åº" selected="selected">å¨åº</option> |
| | | <option value="å¨é">å¨é</option> |
| | | <option value="丢失">丢失</option> |
| | | <option value="éå®">éå®</option> |
| | | <option value="é¢åº">é¢åº</option> |
| | | <option value="æ¥åº">æ¥åº</option> |
| | | <option value="æªå¯ç¨">æªå¯ç¨</option> |
| | | <option value="ä½åº">ä½åº</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <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="HSaveLife" id="HSaveLife" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HSaveLife" id="HSaveLife" 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> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">é»è®¤ä»åº<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HWHName" id="HWHName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="text" class="layui-input" name="HWHName" id="HWHName" style="width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HWHID" id="HWHID" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHWHList" id="btnHWHList" style="padding: 0 10px;float: left;margin-right: 3px;background-color:gainsboro;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHWHList" id="btnHWHList" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <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="HVersion" id="HVersion" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HVersion" id="HVersion"> |
| | | </div> |
| | | </div> |
| | | <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="HSPName" id="HSPName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="text" class="layui-input" name="HSPName" id="HSPName" style="width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HSPID" id="HSPID" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHSPIDList" id="btnHSPIDList" style="padding: 0 10px;float: left;margin-right: 3px;background-color:gainsboro;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHSPIDList" id="btnHSPIDList" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | |
| | | <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="HDesignLife" id="HDesignLife" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HDesignLife" id="HDesignLife"> |
| | | </div> |
| | | </div> |
| | | <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="HUseLife" id="HUseLife" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HUseLife" id="HUseLife" value="0" readonly> |
| | | </div> |
| | | </div> |
| | | <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="HLeaveLife" id="HLeaveLife" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HLeaveLife" id="HLeaveLife" value="0" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <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="HProdQty" id="HProdQty" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HProdQty" id="HProdQty" value="0" readonly> |
| | | </div> |
| | | </div> |
| | | <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="HProdWeight" id="HProdWeight" style="background-color:#efefef4d;"> |
| | | <input type="text" class="layui-input" name="HProdWeight" id="HProdWeight" value="0" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ç©´æ°<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HCaveQty" id="HCaveQty"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">é»è®¤ä¿å
»è§ç¨</label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">é»è®¤ä¿å
»è§ç¨<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HMouldMaintainRuleInterName" id="HMouldMaintainRuleInterName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="text" class="layui-input" name="HMouldMaintainRuleInterName" id="HMouldMaintainRuleInterName" style="width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HMouldMaintainRuleInterID" id="HMouldMaintainRuleInterID" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="HMouldMaintainRuleInterList" id="HMouldMaintainRuleInterList" style="padding: 0 10px;float: left;margin-right: 3px;background-color:gainsboro;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="HMouldMaintainRuleInterList" id="HMouldMaintainRuleInterList" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">é»è®¤ç¹æ£è§ç¨</label> |
| | | <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="HBarCode" id="HBarCode"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">å¶é åå<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HMouldDotCheckRuleInterName" id="HMouldDotCheckRuleInterName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HMouldDotCheckRuleInterID" id="HMouldDotCheckRuleInterID" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="HMouldDotCheckRuleInterList" id="HMouldDotCheckRuleInterList" style="padding: 0 10px;float: left;margin-right: 3px;background-color:gainsboro;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i> |
| | | <input type="text" class="layui-input" name="HMadeSupName" id="HMadeSupName" style="width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HMadeSupID" id="HMadeSupID" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHMadeSup" id="btnHMadeSup" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <!--<div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">èæä»<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HNowSupName" id="HNowSupName" style="width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HNowSupID" id="HNowSupID" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="HNowSupList" id="HNowSupList" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <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="HNextMainDate" id="HNextMainDate" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="margin-left:10px;"> |
| | | <label class="layui-form-label">å¨å
፱Ȍ</label> |
| | | <div class="layui-input-block"> |
| | | <select name="HMouldClass" lay-filter="HMouldClass" id="HMouldClass"> |
| | | <option value="模å
·" selected="selected">模å
·</option> |
| | | <option value="å·¥è£
">å·¥è£
</option> |
| | | <option value="夹å
·">夹å
·</option> |
| | | <option value="åå
·">åå
·</option> |
| | | <option value="æ£å
·">æ£å
·</option> |
| | | <option value="å¨è½¬å¨å
·">å¨è½¬å¨å
·</option> |
| | | <option value="å
¶ä»">å
¶ä»</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <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="HInitLife" id="HInitLife"> |
| | | </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="HNowWHName" id="HNowWHName" style="width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HNowWHID" id="HNowWHID" value="0" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHNowWHList" id="btnHNowWHList" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <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="HNowSPName" id="HNowSPName" style="width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HNowSPID" id="HNowSPID" value="0" style="background-color:#efefef4d;width: 60%;display: inline-block;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHNowSPList" id="btnHNowSPList" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab" lay-filter="tab-POStockInBill"> |
| | | <ul class="layui-tab-title" lay-filter="tab-all"> |
| | | <li style="padding:1px;" class="layui-this">åå¨å
·</li> |
| | | <li style="padding:1px;">ä¿å
»è§ç¨</li> |
| | | <li style="padding:1px;">ç¹æ£è§ç¨</li> |
| | | </ul> |
| | | <div class="layui-tab-content"> |
| | | <!--å表--> |
| | | <div class="layui-tab-item layui-show"> |
| | | <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table> |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-AddLine"><i class="layui-icon layui-icon-form"></i>å¢å ä¸è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-CopyLine"><i class="layui-icon layui-icon-form"></i>å¤å¶ä¸è¡</button> |
| | | </div> |
| | | </script> |
| | | </div> |
| | | <div class="layui-tab-item "> |
| | | <!--ä¿å
»è§ç¨è¯¦ç»--> |
| | | <table class="layui-hide" id="mainTableMaintainRule" lay-filter="mainTableMaintainRule"></table> |
| | | <script type="text/html" id="toolbarDemoMaintainRule"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-AddLine"><i class="layui-icon layui-icon-form"></i>å¢å ä¸è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-CopyLine"><i class="layui-icon layui-icon-form"></i>å¤å¶ä¸è¡</button> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button>--> |
| | | </div> |
| | | </script> |
| | | </div> |
| | | <div class="layui-tab-item"> |
| | | <!--ç¹æ£è§ç¨å表--> |
| | | <table class="layui-hide" id="mainTableDotCheckRule" lay-filter="mainTableDotCheckRule"></table> |
| | | <script type="text/html" id="toolbarDemoDotCheckRule"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-AddLine"><i class="layui-icon layui-icon-form"></i>å¢å ä¸è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-CopyLine"><i class="layui-icon layui-icon-form"></i>å¤å¶ä¸è¡</button> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn2"><i class="layui-icon layui-icon-form"></i>å设置</button>--> |
| | | </div> |
| | | </script> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | </div> |
| | |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../../layuiadmin/layui/lay/modules/util.js"></script> |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | |
| | | <!--对åºåå¨å
·ï¼å é¤--> |
| | | <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> |
| | | </script> |
| | | <!--//å表å é¤--> |
| | | <script type="text/html" id="barDemoMaintainRule"> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">å é¤</a> |
| | | </script> |
| | | <script type="text/html" id="barDemoDotCheckRule"> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">å é¤</a> |
| | | </script> |
| | | <!--//å¤éæ¡--> |
| | | <script type="text/html" id="HStdFlag"> |
| | | <input type="checkbox" name="checkbox" value="{{d.HStdFlag}}" lay-skin="primary" lay-filter="HStdFlag" {{ d.HStdFlag == true ? 'checked' : '' }}> |
| | | </script> |
| | | <script type="text/html" id="HStdFlag2"> |
| | | <input type="checkbox" name="checkbox" value="{{d.HStdFlag}}" lay-skin="primary" lay-filter="HStdFlag2" {{ d.HStdFlag == true ? 'checked' : '' }}> |
| | | </script> |
| | | <script> |
| | | var Stverf = ""; |
| | | //è·å页é¢è·³è½¬åæ° |
| | |
| | | , util = layui.util |
| | | ; |
| | | var sBillType = "3899"; |
| | | window.OptionData = []; |
| | | var tabIndex = 1; |
| | | var optionMaintainRule;//两个å表optionååå§åæ°æ® |
| | | var optionDotCheckRule; |
| | | var rowdataMaintainRule = [{ |
| | | "HMaintainRuleID": 0, "ä¿å
»è§ç¨åæ®å·": "", "HStdFlag": false, "HRemark": "" |
| | | , "HSourceInterID": "0" |
| | | , "HSourceEntryID": "0" |
| | | , "HSourceBillNo": "" |
| | | , "HSourceBillType": "" |
| | | }]; |
| | | var rowdataDotCheckRule = [{ |
| | | "HDotCheckRuleID": 0, "ç¹æ£è§ç¨åæ®å·": "", "HStdFlag": false, "HRemark": "" |
| | | , "HSourceInterID": "0" |
| | | , "HSourceEntryID": "0" |
| | | , "HSourceBillNo": "" |
| | | , "HSourceBillType": "" |
| | | }]; |
| | | //#endregion |
| | | |
| | | //#region è¿å
¥é¡µé¢å³å è½½ |
| | |
| | | //夿æä½ç±»å |
| | | if (OperationType == 1) {//æ æºå |
| | | Stverf = "Add"; |
| | | //åå§åå表 |
| | | get_InitGrid(); |
| | | set_AddFNew(); |
| | | } |
| | | else if (OperationType == 3) {//ç¼è¾ |
| | | Stverf = "Update"; |
| | | //åå§åå表 |
| | | get_InitGrid(); |
| | | set_EditFromGrid(); |
| | | } |
| | | else { |
| | |
| | | set_btnSave(data); |
| | | }) |
| | | |
| | | //èªå¨è®¡ç®å©ä½å¯¿å½ |
| | | $("#HUseLife").blur(function () { |
| | | var beginlife = $("#HDesignLife").val(); |
| | | var userlife = $("#HUseLife").val(); |
| | | var result = beginlife - userlife; |
| | | if (result > 0) { |
| | | $("#HLeaveLife").val(result) |
| | | } |
| | | }); |
| | | $("#HDesignLife").blur(function () { |
| | | var beginlife = $("#HDesignLife").val(); |
| | | var userlife = $("#HUseLife").val(); |
| | | var result = beginlife - userlife; |
| | | if (result > 0) { |
| | | $("#HLeaveLife").val(result) |
| | | } |
| | | }); |
| | | |
| | | //对åºErpç©æ |
| | | form.on('submit(btnHMaterList)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/PartInformation.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Material.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HMaterNumber").val(checkStatus.data[0].HNumber); |
| | | $("#HName").val(checkStatus.data[0].ç©æåç§°); |
| | | $("#HMaterNumber").val(checkStatus.data[0].ç©æä»£ç ); |
| | | $("#HMaterID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/UnitInformation.html', 'yes'], |
| | | content: ['../../../views/åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Unit.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HUnitName").val(checkStatus.data[0].HName); |
| | | $("#HUnitName").val(checkStatus.data[0].计éåä½åç§°); |
| | | $("#HUnitID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/DeptInformation.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_DepartmentList.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HDeptName").val(checkStatus.data[0].HName); |
| | | $("#HDeptName").val(checkStatus.data[0].é¨é¨åç§°); |
| | | $("#HDeptID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/SupplierInformation.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/éè´åºç¡èµæ/Gy_Supplier.html?Type=HSup', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HSupName").val(checkStatus.data[0].HName); |
| | | $("#HSupName").val(checkStatus.data[0].ä¾åºååç§°); |
| | | $("#HSupID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //å¶é åå |
| | | form.on('submit(btnHMadeSup)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'å¶é ååå表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/éè´åºç¡èµæ/Gy_Supplier.html?Type=HAccSup', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HMadeSupName").val(checkStatus.data[0].ä¾åºååç§°); |
| | | $("#HMadeSupID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/WareHouseInformation.html', 'yes'], |
| | | content: ['../../../views/åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Warehouse.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HWHName").val(checkStatus.data[0].HName); |
| | | $("#HWHName").val(checkStatus.data[0].ä»åºåç§°); |
| | | $("#HWHID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //å½åä»åº |
| | | form.on('submit(btnHNowWHList)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'ä»åºå表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../../views/åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Warehouse.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HNowWHName").val(checkStatus.data[0].ä»åºåç§°); |
| | | $("#HNowWHID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/WareLocationInformation.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_StockPlace_List.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HSPName").val(checkStatus.data[0].HName); |
| | | $("#HSPID").val(checkStatus.data[0].HItemID); |
| | | $("#HSPName").val(checkStatus.data[0].ä»ä½åç§°); |
| | | $("#HSPID").val(checkStatus.data[0].HMainID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | //å½åä»ä½ |
| | | form.on('submit(btnHNowSPList)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'ä»ä½å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_StockPlace_List.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HNowSPName").val(checkStatus.data[0].ä»ä½åç§°); |
| | | $("#HNowSPID").val(checkStatus.data[0].HMainID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/MouldMaintainRuleInterList.html', 'yes'], |
| | | content: ['Sc_MouldMaintainRuleBillList.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HMouldMaintainRuleInterName").val(checkStatus.data[0].HCheckCycle); |
| | | $("#HMouldMaintainRuleInterName").val(checkStatus.data[0].åæ®å·); |
| | | $("#HMouldMaintainRuleInterID").val(checkStatus.data[0].hmainid); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HMouldDotCheckRuleInterName").val(checkStatus.data[0].ç¹æ£å¨æ); |
| | | $("#HMouldDotCheckRuleInterName").val(checkStatus.data[0].åæ®å·); |
| | | $("#HMouldDotCheckRuleInterID").val(checkStatus.data[0].hmainid); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //èæä» |
| | | form.on('submit(HNowSupList)', function () { |
| | | var typeid = $("#HNowSupTypeID").val();//è·åèæä»ç±»å |
| | | if (typeid == 1) { |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'ä¾åºåå表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/SupplierInformation.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HNowSupName").val(checkStatus.data[0].HName); |
| | | $("#HNowSupID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | } |
| | | else if (typeid == 2) { |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: '客æ·å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/CustomerInformation.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HNowSupName").val(checkStatus.data[0].HName); |
| | | $("#HNowSupID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | } |
| | | else if (typeid == 3) { |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'é¨é¨å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/DeptInformation.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HNowSupName").val(checkStatus.data[0].HName); |
| | | $("#HNowSupID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | } |
| | | else { |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'ä»åºå表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/WareHouseInformation.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HNowSupName").val(checkStatus.data[0].HName); |
| | | $("#HNowSupID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | //头工å
·æ äºä»¶ |
| | | table.on('toolbar(mainTable)', function (obj) { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | //æ°å¢è¡è¡¨æ ¼æ°æ® |
| | | |
| | | var NewRow = { |
| | | "HMouldFileID": "0", "HMouldFileName": "", "HUnionDate": Format(new Date, "yyyy- MM - dd"), "HRemark": "", |
| | | "HSourceBillNo": 0, "HSourceBillType": 0, "HSourceInterID": 0, "HSourceEntryID": 0, |
| | | }; |
| | | switch (obj.event) { |
| | | case 'btn-AddLine': |
| | | table.cache["mainTable"].push(NewRow); |
| | | option.data = table.cache["mainTable"]; |
| | | |
| | | table.render(option); |
| | | break; |
| | | case 'btn-CopyLine': |
| | | var copydata = JSON.stringify(data); |
| | | if (data.length <= 0) { |
| | | layer.msg("è¯·éæ©éè¦å¤å¶çä¸è¡ï¼"); |
| | | } |
| | | else if (data.length > 1) { |
| | | layer.msg("åªè½éæ©å¤å¶ä¸è¡ï¼"); |
| | | } |
| | | else { |
| | | var copydata2 = copydata.substring(1, copydata.length);//å»é¤é¦è¡å符'[' |
| | | var copyrow = copydata2.substring(0, copydata2.length - 1);//å»é¤æ«å°¾å符']' |
| | | table.cache["mainTable"].push(JSON.parse(copyrow));//å°å¤å¶çè¡å¼ºè½¬æjson追å å°è¡¨æ ¼ä¸ |
| | | option.data = table.cache["mainTable"];//å°æ°æ®ç»å®å°dataä¸ |
| | | table.render(option);//å°æ°æ®æ¸²æå°è¡¨æ ¼ä¸ |
| | | } |
| | | break; |
| | | |
| | | } |
| | | }); |
| | | //ä¿å
»è§ç¨å¤´å·¥å
·æ äºä»¶ |
| | | table.on('toolbar(mainTableMaintainRule)', function (obj) { |
| | | var checkStatus = table.checkStatus('mainTableMaintainRule') |
| | | , data = checkStatus.data; |
| | | |
| | | //æ°å¢è¡è¡¨æ ¼æ°æ® |
| | | var NewRow = { |
| | | "HMaintainRuleID": 0, "ä¿å
»è§ç¨åæ®å·": "", "HStdFlag": false, "HRemark": "" |
| | | , "HSourceInterID": "0" |
| | | , "HSourceEntryID": "0" |
| | | , "HSourceBillNo": "" |
| | | , "HSourceBillType": "" |
| | | }; |
| | | switch (obj.event) { |
| | | case 'btn-AddLine': |
| | | table.cache["mainTableMaintainRule"].push(NewRow); |
| | | optionMaintainRule.data = table.cache["mainTableMaintainRule"]; |
| | | |
| | | table.render(optionMaintainRule); |
| | | //å·æ°å¤éæ¡ |
| | | //checkRefresh(); |
| | | break; |
| | | case 'btn-CopyLine': |
| | | var copydata = JSON.stringify(data); |
| | | if (data.length <= 0) { |
| | | layer.msg("è¯·éæ©éè¦å¤å¶çä¸è¡ï¼"); |
| | | } |
| | | else if (data.length > 1) { |
| | | layer.msg("åªè½éæ©å¤å¶ä¸è¡ï¼"); |
| | | } |
| | | else { |
| | | var copydata2 = copydata.substring(1, copydata.length);//å»é¤é¦è¡å符'[' |
| | | var copyrow = copydata2.substring(0, copydata2.length - 1);//å»é¤æ«å°¾å符']' |
| | | table.cache["mainTableMaintainRule"].push(JSON.parse(copyrow));//å°å¤å¶çè¡å¼ºè½¬æjson追å å°è¡¨æ ¼ä¸ |
| | | optionMaintainRule.data = table.cache["mainTableMaintainRule"];//å°æ°æ®ç»å®å°dataä¸ |
| | | table.render(optionMaintainRule);//å°æ°æ®æ¸²æå°è¡¨æ ¼ä¸ |
| | | //å·æ°å¤éæ¡ |
| | | //checkRefresh(); |
| | | } |
| | | break; |
| | | //å设置 |
| | | //case 'set_hidecolumn': |
| | | // get_hidecolumn(); |
| | | // break; |
| | | } |
| | | }); |
| | | //ç¹æ£è§ç¨å¤´å·¥å
·æ äºä»¶ |
| | | table.on('toolbar(mainTableDotCheckRule)', function (obj) { |
| | | var checkStatus = table.checkStatus('mainTableDotCheckRule') |
| | | , data = checkStatus.data; |
| | | //æ°å¢è¡è¡¨æ ¼æ°æ® |
| | | var NewRow = { |
| | | "HDotCheckRuleID": 0, "ç¹æ£è§ç¨åæ®å·": "", "HStdFlag": false, "HRemark": "" |
| | | , "HSourceInterID": "0" |
| | | , "HSourceEntryID": "0" |
| | | , "HSourceBillNo": "" |
| | | , "HSourceBillType": "" |
| | | }; |
| | | switch (obj.event) { |
| | | case 'btn-AddLine': |
| | | table.cache["mainTableDotCheckRule"].push(NewRow); |
| | | optionDotCheckRule.data = table.cache["mainTableDotCheckRule"]; |
| | | |
| | | table.render(optionDotCheckRule); |
| | | //å·æ°å¤éæ¡ |
| | | //checkRefresh(); |
| | | break; |
| | | case 'btn-CopyLine': |
| | | var copyschemedata = JSON.stringify(data); |
| | | if (data.length <= 0) { |
| | | layer.msg("è¯·éæ©éè¦å¤å¶çä¸è¡ï¼"); |
| | | } |
| | | else if (data.length > 1) { |
| | | layer.msg("åªè½éæ©å¤å¶ä¸è¡ï¼"); |
| | | } |
| | | else { |
| | | var copyschemedata2 = copyschemedata.substring(1, copyschemedata.length);//å»é¤é¦è¡å符'[' |
| | | var copyschemerow = copyschemedata2.substring(0, copyschemedata2.length - 1);//å»é¤æ«å°¾å符']' |
| | | table.cache["mainTableDotCheckRule"].push(JSON.parse(copyschemerow));//å°å¤å¶çè¡å¼ºè½¬æjson追å å°è¡¨æ ¼ä¸ |
| | | optionDotCheckRule.data = table.cache["mainTableDotCheckRule"];//å°æ°æ®ç»å®å°dataä¸ |
| | | table.render(optionDotCheckRule);//å°æ°æ®æ¸²æå°è¡¨æ ¼ä¸ |
| | | console.log(optionDotCheckRule.data); |
| | | //å·æ°å¤éæ¡ |
| | | //checkRefresh(); |
| | | } |
| | | break; |
| | | //å设置 |
| | | //case 'set_hidecolumn': |
| | | // get_hidecolumn(); |
| | | // break; |
| | | } |
| | | }); |
| | | //å表ï¼è¡å
äºä»¶ |
| | | table.on('tool(mainTable)', function (obj) { |
| | | set_GridDelete(obj); //è¡å
å é¤ |
| | | set_GridCellCheck(obj); //è¡å
å¿«æ·é®çé |
| | | |
| | | var data = obj.data; |
| | | if (obj.event == 'HUnionDate') { |
| | | var field = $(this).data('field'); |
| | | laydate.render({ |
| | | elem: this.firstChild |
| | | , show: true //ç´æ¥æ¾ç¤º |
| | | , closeStop: this |
| | | , done: function (nowDate) { |
| | | //æ¶é´éæ©å®æï¼è¡æ°æ®æ´æ° |
| | | data[field] = nowDate; |
| | | obj.update(data); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | //è¡å
äºä»¶ |
| | | table.on('tool(mainTableMaintainRule)', function (obj) { |
| | | set_GridDelete(obj); //è¡å
å é¤ |
| | | set_GridCellCheck(obj); //è¡å
å¿«æ·é®çé |
| | | }); |
| | | table.on('tool(mainTableDotCheckRule)', function (obj) { |
| | | set_GridDelete(obj); //è¡å
å é¤ |
| | | set_GridCellCheck(obj); //è¡å
å¿«æ·é®çé |
| | | }); |
| | | //#region 宿æ è®° |
| | | form.on('checkbox(HStdFlag)', function (data) { |
| | | //è·å䏿æ¡éä¸çå¼ |
| | | var elem = data.othis.parents('tr'); |
| | | var dataindex = elem.attr("data-index"); |
| | | $.each(optionMaintainRule.data, function (index, value) { |
| | | if (value.LAY_TABLE_INDEX == dataindex) { |
| | | value.HStdFlag = data.elem.checked;//æéä¸ä¸ææ¡idå¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | } |
| | | }); |
| | | }); |
| | | form.on('checkbox(HStdFlag2)', function (data) { |
| | | //è·å䏿æ¡éä¸çå¼ |
| | | var elem = data.othis.parents('tr'); |
| | | var dataindex = elem.attr("data-index"); |
| | | $.each(optionDotCheckRule.data, function (index, value) { |
| | | if (value.LAY_TABLE_INDEX == dataindex) { |
| | | value.HStdFlag = data.elem.checked;//æéä¸ä¸ææ¡idå¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | } |
| | | }); |
| | | }); |
| | | //#endregion |
| | | // çå¬Tab忢ï¼åæ¢æ¶è§¦å |
| | | element.on('tab(table)', function (data) { |
| | | // è·åè¢«åæ¢å°ç颿¿çç´¢å¼ |
| | | var index = data.index; |
| | | // æ§è¡ä¸äºæä½ï¼ä¾å¦æ¹å页é¢å
容 |
| | | tabIndex = index + 1; |
| | | }); |
| | | //#endregion |
| | | |
| | |
| | | elem: '#HOutComDate' |
| | | }); |
| | | } |
| | | |
| | | //#region å表åå§å |
| | | function get_InitGrid() { |
| | | option = { |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , totalRow: true |
| | | , cellMinWidth: 120 |
| | | , height: 400 |
| | | , cols: [[ |
| | | { type: 'checkbox', totalRowText: 'å计è¡' } |
| | | , { type: 'numbers', title: 'åºå·', style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HMouldFileID', title: 'HMouldFileID', hide: true, style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HMouldFileName', title: 'åå¨å
·', edit: 'text', event: "HMouldFileID", style: 'background-color: #f9f9f9;' } //f7 |
| | | , { field: 'HUnionDate', title: 'ç»è£
æ¥æ', width: 120, event: 'HUnionDate' } |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text' } |
| | | , { field: 'HSourceInterID', title: 'æºåå
ç ', hide: true, style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', hide: true, style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', hide: true, style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', hide: true, style: 'background-color: #f9f9f9;' } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo' } |
| | | ]] |
| | | } |
| | | |
| | | var rowdata = [ |
| | | { |
| | | "HMouldFileID": "0" |
| | | , "HMouldFileName": "" |
| | | , "HUnionDate": Format(new Date, "yyyy- MM - dd") |
| | | , "HRemark": "" |
| | | , "HSourceInterID": "0" |
| | | , "HSourceEntryID": "0" |
| | | , "HSourceBillNo": "" |
| | | , "HSourceBillType": "" |
| | | } |
| | | ]; |
| | | option.data = rowdata; |
| | | table.render(option); |
| | | optionMaintainRule = { |
| | | elem: '#mainTableMaintainRule' |
| | | , toolbar: '#toolbarDemoMaintainRule' |
| | | //, page: true |
| | | //, limit: 500 |
| | | //, limits: [50, 500, 5000, 50000] |
| | | , totalRow: true |
| | | , cellMinWidth: 120 |
| | | , height: 400 |
| | | , cols: [[ |
| | | { type: 'checkbox', totalRowText: 'å计è¡' } |
| | | , { type: 'numbers', title: 'åºå·', style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HMaintainRuleID', title: 'HMaintainRuleID', hide: true, style: 'background-color: #f9f9f9;' } |
| | | , { field: 'ä¿å
»è§ç¨åæ®å·', title: 'ä¿å
»è§ç¨åæ®å·', edit: 'text', style: 'background-color: #f9f9f9;', event: "HMaintainRuleID" } //f7 |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text' } |
| | | , { field: 'HStdFlag', title: 'é»è®¤æ è®°', templet: "#HStdFlag" }//checkbox |
| | | , { field: 'HSourceInterID', title: 'æºåå
ç ', hide: true, style: 'background-color: #f9f9f9;' } //f7 |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', hide: true, style: 'background-color: #f9f9f9;' } //f7 |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', hide: true, style: 'background-color: #f9f9f9;' } //f7 |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', hide: true, style: 'background-color: #f9f9f9;' } //f7 |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo' } |
| | | ]] |
| | | }; |
| | | optionMaintainRule.data = rowdataMaintainRule; |
| | | table.render(optionMaintainRule); |
| | | optionDotCheckRule = { |
| | | elem: '#mainTableDotCheckRule' |
| | | , toolbar: '#toolbarDemoDotCheckRule' |
| | | //, page: true |
| | | //, limit: 500 |
| | | //, limits: [50, 500, 5000, 50000] |
| | | , totalRow: true |
| | | , cellMinWidth: 120 |
| | | , height: 400 |
| | | , cols: [[ |
| | | { type: 'checkbox', totalRowText: 'å计è¡' } |
| | | , { type: 'numbers', title: 'åºå·', style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HDotCheckRuleID', title: 'HDotCheckRuleID', hide: true, style: 'background-color: #f9f9f9;' } |
| | | , { field: 'ç¹æ£è§ç¨åæ®å·', title: 'ç¹æ£è§ç¨åæ®å·', edit: 'text', style: 'background-color: #f9f9f9;', event: "HDotCheckRuleID" } //f7 |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text' } |
| | | , { field: 'HStdFlag', title: 'é»è®¤æ è®°', templet: "#HStdFlag2" }//checkbox |
| | | , { field: 'HSourceInterID', title: 'æºåå
ç ', hide: true, style: 'background-color: #f9f9f9;' } //f7 |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', hide: true, style: 'background-color: #f9f9f9;' } //f7 |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', hide: true, style: 'background-color: #f9f9f9;' } //f7 |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', hide: true, style: 'background-color: #f9f9f9;' } //f7 |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo' } |
| | | ]] |
| | | } |
| | | optionDotCheckRule.data = rowdataDotCheckRule; |
| | | table.render(optionDotCheckRule); |
| | | } |
| | | //#endregion |
| | | |
| | | //æ°å¢ |
| | | function set_AddFNew() { |
| | |
| | | }, |
| | | success: function (d) { |
| | | ajaxReturnData = JSON.parse(JSON.stringify(d)).data; |
| | | var tableSub = d.data; |
| | | $("#HInterID").val(d.data[0].hmainid); |
| | | $("#HBillNo").val(d.data[0].åæ®å·); |
| | | $("#HDate").val(formatDate(d.data[0].æ¥æ)); |
| | |
| | | //$("#HSPGroupID").val(d.data[0].HSPGroupID); |
| | | $("#HSPID").val(d.data[0].HSPID); |
| | | $("#HSPName").val(d.data[0].é»è®¤ä»ä½); |
| | | //$("#HBarCode").var(d.data[0].æ¡ç ç¼å·); |
| | | //$("#HInitDesignLife").val(d.data[0].HInitDesignLife); |
| | | //$("#HInitModel").val(d.data[0].HInitModel); |
| | | $("#HDesignLife").val(d.data[0].åå§è®¾è®¡å¯¿å½); |
| | | $("#HUseLife").val(d.data[0].使ç¨å¯¿å½); |
| | | $("#HLeaveLife").val(d.data[0].å©ä½å¯¿å½); |
| | | $("#HInitLife").val(d.data[0].ä¸çº¿åå§å寿å½); |
| | | $("#HCaveQty").val(d.data[0].ç©´æ°); |
| | | $("#HProdQty").val(d.data[0].å·²ç产æ°é); |
| | | $("#HProdWeight").val(d.data[0].å·²ç产éé); |
| | | $("#HMouldDotCheckRuleInterName").val(d.data[0].ç¹æ£å¨æ); |
| | | $("#HMouldDotCheckRuleInterName").val(d.data[0].ç¹æ£è§ç¨åå·); |
| | | $("#HMouldDotCheckRuleInterID").val(d.data[0].HMouldDotCheckRuleInterID); |
| | | $("#HMouldMaintainRuleInterName").val(d.data[0].ä¿å
»å¨æ); |
| | | $("#HMouldMaintainRuleInterName").val(d.data[0].ä¿å
»è§ç¨åå·); |
| | | $("#HMouldMaintainRuleInterID").val(d.data[0].HMouldMaintainRuleInterID); |
| | | } |
| | | $("#HBarCode").val(d.data[0].æ¡ç ç¼å·); |
| | | $("#HMadeSupID").val(d.data[0].HMadeSupID); |
| | | $("#HMadeSupName").val(d.data[0].å¶é åå); |
| | | $("#HMouldClass").val(d.data[0].å¨å
·åç±»); |
| | | //$("#HNowSupID").val(d.data[0].HNowSupID); |
| | | //$("#HNowSupName").val(d.data[0].èæä»); |
| | | $("#HNowWHID").val(d.data[0].å½åä»åºID); |
| | | $("#HNowWHName").val(d.data[0].å½åä»åº); |
| | | $("#HNowSPID").val(d.data[0].å½åä»ä½ID); |
| | | $("#HNowSPName").val(d.data[0].å½åä»ä½); |
| | | $("#HMouldStatus").val(d.data[0].模å
·ç¶æ); |
| | | |
| | | var HCycleUnit = d.data[0].卿åä½; |
| | | var HCheckCycle = d.data[0].ä¿å
»å¨æ; |
| | | |
| | | if (!(HCycleUnit == null || HCheckCycle == null)) { |
| | | calculateHNextMainDate(d.data[0].hmainid, HCycleUnit, HCheckCycle); |
| | | } |
| | | |
| | | form.render('select'); |
| | | |
| | | //å表 èµå¼ |
| | | var rowdata = []; |
| | | for (var i = 0; i < tableSub.length; i++) { |
| | | rowdata.push( |
| | | { |
| | | "HMouldFileID": tableSub[i]["HMouldFileID"], |
| | | "HMouldFileName": tableSub[i]["åå¨å
·"], |
| | | "HUnionDate": tableSub[i]["ç»è£
æ¥æ"], |
| | | "HRemark": tableSub[i]["表ä½å¤æ³¨"] |
| | | } |
| | | ); |
| | | } |
| | | option.data = rowdata; |
| | | table.render(option); |
| | | } |
| | | }); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Gy_MouldFileMain/Gy_MouldFileSubDetai", |
| | | type: "GET", |
| | | data: { |
| | | "HInterID": linterid |
| | | }, |
| | | success: function (data) { |
| | | if (data.code == 1) { |
| | | var dataMaintainRule = data.data[0]; |
| | | var dataDotCheckRule = data.data[1]; |
| | | //å表1èµå¼ |
| | | var rowdata = []; |
| | | for (var i = 0; i < dataMaintainRule.length; i++) { |
| | | rowdata.push( |
| | | { |
| | | "HMaintainRuleID": dataMaintainRule[i].HMaintainRuleID, "ä¿å
»è§ç¨åæ®å·": dataMaintainRule[i].HBillNo, "HStdFlag": dataMaintainRule[i].HStdFlag, "HRemark": dataMaintainRule[i].HRemark |
| | | , "HSourceInterID": dataMaintainRule[i].HSourceInterID |
| | | , "HSourceEntryID": dataMaintainRule[i].HSourceEntryID |
| | | , "HSourceBillNo": dataMaintainRule[i].HSourceBillNo |
| | | , "HSourceBillType": dataMaintainRule[i].HSourceBillType |
| | | } |
| | | ) |
| | | } |
| | | optionMaintainRule.data = rowdata; |
| | | table.render(optionMaintainRule); |
| | | //å表2èµå¼ |
| | | var rowdata = []; |
| | | for (var i = 0; i < dataDotCheckRule.length; i++) { |
| | | rowdata.push( |
| | | { |
| | | "HDotCheckRuleID": dataDotCheckRule[i].HDotCheckRuleID, "ç¹æ£è§ç¨åæ®å·": dataDotCheckRule[i].HBillNo, "HStdFlag": dataDotCheckRule[i].HStdFlag, "HRemark": dataDotCheckRule[i].HRemark |
| | | , "HSourceInterID": dataDotCheckRule[i].HSourceInterID |
| | | , "HSourceEntryID": dataDotCheckRule[i].HSourceEntryID |
| | | , "HSourceBillNo": dataDotCheckRule[i].HSourceBillNo |
| | | , "HSourceBillType": dataDotCheckRule[i].HSourceBillType |
| | | } |
| | | ) |
| | | } |
| | | optionDotCheckRule.data = rowdata; |
| | | table.render(optionDotCheckRule); |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | | layer.alert(result.msg, { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(ajaxLoad); |
| | | layer.alert("åçé误!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | |
| | | |
| | | //ä¿å |
| | | function set_btnSave(data) { |
| | | |
| | | |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | var user = sessionStorage["HUserName"]; |
| | | var ModRightNameAdd = 'Gy_MouldFile_Edit'; |
| | | |
| | | //è·ååè¡¨æ°æ® |
| | | var num = []; |
| | | for (var i = 0; i < table.cache["mainTable"].length; i++) { |
| | | if (table.cache["mainTable"][i] != "") { |
| | | table.cache["mainTable"][i].LAY_TABLE_INDEX = i; |
| | | num.push(table.cache["mainTable"][i]) |
| | | } |
| | | } |
| | | //ä¿å
»è§æ ¼ |
| | | var mainTableMaintainRulenum = []; |
| | | for (var i = 0; i < table.cache["mainTableMaintainRule"].length; i++) { |
| | | if (table.cache["mainTableMaintainRule"][i] != "") { |
| | | table.cache["mainTableMaintainRule"][i].LAY_TABLE_INDEX = i; |
| | | mainTableMaintainRulenum.push(table.cache["mainTableMaintainRule"][i]) |
| | | } |
| | | } |
| | | mainTableMaintainRuleStr = JSON.stringify(mainTableMaintainRulenum); |
| | | //ç¹æ£è§æ ¼ |
| | | var mainTableDotCheckRulenum = []; |
| | | for (var i = 0; i < table.cache["mainTableDotCheckRule"].length; i++) { |
| | | if (table.cache["mainTableDotCheckRule"][i] != "") { |
| | | table.cache["mainTableDotCheckRule"][i].LAY_TABLE_INDEX = i; |
| | | mainTableDotCheckRulenum.push(table.cache["mainTableDotCheckRule"][i]) |
| | | } |
| | | } |
| | | mainTableDotCheckRuleStr = JSON.stringify(mainTableDotCheckRulenum); |
| | | if (!AllowLoadData())//æ°æ®éªè¯ |
| | | { |
| | | return false; |
| | |
| | | if (Stverf == "Add") { |
| | | data.field.HMaker = sessionStorage["HUserName"];//å¶å人 |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var oMain = sMainStr + ";" + ModRightNameAdd + ";" + user; |
| | | //åè¡¨æ°æ®åºåå |
| | | var sSubStr = JSON.stringify(num); |
| | | var oMain = sMainStr + ";" + ModRightNameAdd + ";" + user + ";" + sSubStr + ";" + mainTableMaintainRuleStr + ";" + mainTableDotCheckRuleStr; |
| | | //æ°å¢ |
| | | $.ajax({ |
| | | type: "POST", |
| | |
| | | //ä¿®æ¹ |
| | | data.field.HUpDater = sessionStorage["HUserName"];//ä¿®æ¹äºº |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var oMain = sMainStr + ";" + ModRightNameAdd + ";" + user; |
| | | //åè¡¨æ°æ®åºåå |
| | | var sSubStr = JSON.stringify(num); |
| | | var oMain = sMainStr + ";" + ModRightNameAdd + ";" + user + ";" + sSubStr + ";" + mainTableMaintainRuleStr + ";" + mainTableDotCheckRuleStr; |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: GetWEBURL() + "/Gy_Mould_Edit/AddBill1", |
| | |
| | | } |
| | | }) |
| | | |
| | | //#region å表ï¼å¿«æ·é®(F7)æå¼å¼¹çª |
| | | function set_GridCellCheck(obj) { |
| | | $(document).off('keydown', ".layui-table-edit").on('keydown', '.layui-table-edit', function (e) { |
| | | if (event.key == "F7") { |
| | | //æ£æ¥é¡¹ç®å表 |
| | | if (obj.event == "HMouldFileID") { |
| | | //æå¼æ£æ¥é¡¹ç®å表 |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "æ£æ¥é¡¹ç®å表" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["90%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ["../../模治å
·ç®¡ç/模治å
·ç®¡ç/Gy_MouldFileList.html", "yes"] |
| | | , btn: ["ç¡®å®", "åæ¶"] |
| | | , btn1: function (index, laero) { |
| | | //æé®ä¸ çåè° |
| | | var iframeWindow = window["layui-layer-iframe" + index];//è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus("mainTable");//è·åéä¸çæ°æ® |
| | | |
| | | if (checkStatus.data.length != 1) { |
| | | return layer.msg("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "HMouldFileID": checkStatus.data[0].hmainid, |
| | | "HMouldFileName": checkStatus.data[0].模å
·åç§° |
| | | }) |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | , end: function () { |
| | | if (typeof (OptionData.HItemID) != "undefined") { |
| | | obj.update({ |
| | | "HMouldFileID": OptionData.HItemID, |
| | | "HMouldFileName": OptionData.模å
·åç§° |
| | | }) |
| | | OptionData = []; |
| | | } |
| | | |
| | | |
| | | } |
| | | }) |
| | | } |
| | | if (obj.event == "HMaintainRuleID") { |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'å¨å
·ä¿å
»è§ç¨', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['Sc_MouldMaintainRuleBillList.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, laero) { |
| | | //æé®ä¸ çåè° |
| | | var iframeWindow = window["layui-layer-iframe" + index];//è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus("mainTable");//è·åéä¸çæ°æ® |
| | | |
| | | if (checkStatus.data.length != 1) { |
| | | return layer.msg("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } |
| | | OptionData = checkStatus.data[0]; |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "HMaintainRuleID": OptionData.hmainid |
| | | , "ä¿å
»è§ç¨åæ®å·": OptionData.åæ®å· |
| | | }) |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | , end: function () { |
| | | if (typeof (OptionData.hmainid) != "undefined") { |
| | | obj.update({ |
| | | "HMaintainRuleID": OptionData.hmainid |
| | | , "ä¿å
»è§ç¨åæ®å·": OptionData.åæ®å· |
| | | }) |
| | | OptionData = []; |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | if (obj.event == "HDotCheckRuleID") { |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'å¨å
·ç¹æ£è§ç¨', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../å¨å
·ç¹æ£è§ç¨å/Sc_MouldDotCheckRuleBillList.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, laero) { |
| | | //æé®ä¸ çåè° |
| | | var iframeWindow = window["layui-layer-iframe" + index];//è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus("mainTable");//è·åéä¸çæ°æ® |
| | | |
| | | if (checkStatus.data.length != 1) { |
| | | return layer.msg("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } |
| | | OptionData = checkStatus.data[0]; |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "HDotCheckRuleID": OptionData.hmainid |
| | | , "ç¹æ£è§ç¨åæ®å·": OptionData.åæ®å· |
| | | |
| | | }) |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | , end: function () { |
| | | if (typeof (OptionData.hmainid) != "undefined") { |
| | | obj.update({ |
| | | "HMaintainRuleID": OptionData.hmainid |
| | | , "ç¹æ£è§ç¨åæ®å·": OptionData.åæ®å· |
| | | }) |
| | | OptionData = []; |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | obj.event = ""; |
| | | return false; |
| | | } |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | //#region å 餿å®è¡ |
| | | function set_GridDelete(obj) { |
| | | var data = obj.data; |
| | | var rowIndex = $(obj.tr).attr("data-index"); |
| | | if (obj.event === 'del') { |
| | | layer.confirm('ççå é¤è¡åï¼', function (index) { |
| | | console.log("ç´¢å¼ä¸º:" + rowIndex); |
| | | if (rowIndex === '0') { |
| | | layer.msg('é¦è¡æ æ³å é¤ï¼ï¼ï¼'); |
| | | } else { |
| | | var oldData = table.cache["mainTable"]; |
| | | oldData.splice(obj.tr.data('index'), 1) |
| | | option.data = oldData;//å°æ°æ®ç»å®å°dataä¸ |
| | | table.render(option); |
| | | for (var i = 0; i < oldData.length; i++) { |
| | | $('#HCheckResult' + (i + 1)).find("option[value='" + oldData[i].HCheckResult + "']").attr("selected", true); |
| | | } |
| | | obj.del(); |
| | | optionMaintainRule.data = table.cache["mainTableMaintainRule"];//å°æ°æ®ç»å®å°dataä¸ |
| | | table.reload(optionMaintainRule); |
| | | optionDotCheckRule.data = table.cache["mainTableDotCheckRule"]; |
| | | table.reload(optionDotCheckRule); |
| | | form.render('select'); |
| | | layer.close(index); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | //#endregion |
| | | |
| | | //夿æ¯å¦ç»å½ æªç»å½åè·³å°ç»å½é¡µ |
| | | //if (sessionStorage.login != "login") { |
| | | // layer.confirm("ç»å½å¤±æï¼è¯·éæ°ç»å½ï¼", { |
| | |
| | | // }, function () { window.location.href = "../../user/login.html"; }); |
| | | //} |
| | | |
| | | |
| | | //#region 计ç®-䏿¬¡ä¿å
»/æ ¡æ£æ¥æ |
| | | function calculateHNextMainDate(HInterID, HCycleUnit, HCheckCycle) { |
| | | var HInterID = $("#HInterID").val(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Gy_Mould_Edit/calculateHNextMainDate", |
| | | async: false, |
| | | type: "GET", |
| | | data: { |
| | | "HInterID": HInterID |
| | | }, |
| | | success: function (d) { |
| | | ajaxReturnData = JSON.parse(JSON.stringify(d)).data; |
| | | |
| | | var HDate = $("#HDate").val(); |
| | | var HEndDate = d.data[0].ä¿å
»è®°å½ç»ææ¥æ == null ? Format(new Date(HDate), "yyyy-MM-dd") : Format(new Date(d.data[0].ä¿å
»è®°å½ç»ææ¥æ), "yyyy-MM-dd"); |
| | | |
| | | if (HCycleUnit == "天") { |
| | | var time = HCheckCycle * 1000 * 60 * 60 * 24; |
| | | time += Date.parse(new Date(HEndDate)); |
| | | var HNextMainDate = Format(new Date(time), "yyyy-MM-dd"); |
| | | $("#HNextMainDate").val(HNextMainDate); |
| | | } else if (HCycleUnit == "å¨") { |
| | | var time = HCheckCycle * 7 * 1000 * 60 * 60 * 24; |
| | | time += Date.parse(new Date(HEndDate)); |
| | | var HNextMainDate = Format(new Date(time), "yyyy-MM-dd"); |
| | | $("#HNextMainDate").val(HNextMainDate); |
| | | } else if (HCycleUnit == "æ") { |
| | | var year = HEndDate.split("-")[0] * 1; |
| | | var month = HEndDate.split("-")[1] * 1; |
| | | var day = HEndDate.split("-")[2] * 1; |
| | | |
| | | if ((month + HCheckCycle) % 12 == 0) { |
| | | year += parseInt(((month + HCheckCycle) / 12 - 1)); |
| | | month = 12; |
| | | } else { |
| | | year += parseInt((month + HCheckCycle) / 12); |
| | | month = (month + HCheckCycle) % 12; |
| | | } |
| | | var HNextMainDate = year + "-" + month + "-" + day; |
| | | $("#HNextMainDate").val(HNextMainDate); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | }); |
| | | |
| | | function AllowLoadData() { //é空éªè¯ |
| | |
| | | layer.msg("é»è®¤ä»åºä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | //if ($("#HMouldOWNER").val() == '' || $("#HMouldOWNER").val() == null) { |
| | | // layer.msg("货主类åä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | if ($("#HCaveQty").val() == '' || $("#HCaveQty").val() == null) { |
| | | layer.msg("ç©´æ°ä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | //if ($("#HNowSupID").val() == '' || $("#HNowSupID").val() == null) { |
| | | // layer.msg("è¯·éæ©èæä»ï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return Result = false; |
| | | //} |
| | | //if ($("#HSaveLife").val() == '' || $("#HSaveLife").val() == null) { |
| | | // layer.msg("å®å
¨å¯¿å½ä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return Result = false; |
| | | //} |
| | | |
| | | if ($("#HMouldMaintainRuleInterID").val() == '' || $("#HMouldMaintainRuleInterID").val() == null) { |
| | | layer.msg("è¯·éæ©é»è®¤ä¿å
»è§ç¨ï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | if ($("#HMadeSupID").val() == '' || $("#HMadeSupID").val() == null) { |
| | | layer.msg("å¶é ååä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | return Result; |
| | | } |
| | | |
| | | function GetMaterValue(obj) { //ç©æ |
| | | $("#HName").val(obj[0].ç©æåç§°); |
| | | $("#HMaterNumber").val(obj[0].ç©æä»£ç ); |
| | | $("#HMaterID").val(obj[0].HItemID); |
| | | } |
| | | |
| | | function GetMouldTypeValue(obj) { //å¨å
·åç±» |
| | | $("#HMouleTypeName").val(obj[0].HName); |
| | | $("#HMouleTypeID").val(obj[0].HItemID); |
| | | } |
| | | |
| | | function GetUnitValue(obj) { //计éåä½ |
| | | $("#HUnitName").val(obj[0].计éåä½åç§°); |
| | | $("#HUnitID").val(obj[0].HItemID); |
| | | } |
| | | |
| | | function GetHDeptNameValue(obj) { //è¿åé¨é¨ |
| | | $("#HDeptID").val(obj[0].HItemID); |
| | | $("#HDeptName").val(obj[0].é¨é¨åç§°); |
| | | } |
| | | |
| | | function GetHSupNameValue(obj) { //è¿åä¾åºå |
| | | $("#HSupID").val(obj[0].HItemID);//ä¾åºåid |
| | | $("#HSupName").val(obj[0].ä¾åºååç§°);//ä¾åºååç§° |
| | | } |
| | | |
| | | function GetHWHValue(obj) { //ä»åº |
| | | $("#HWHName").val(obj[0].ä»åºåç§°); |
| | | $("#HWHID").val(obj[0].HItemID); |
| | | } |
| | | |
| | | function GetGyStockPlace(obj) { //ä»ä½ |
| | | $("#HSPName").val(obj[0].ä»ä½åç§°); |
| | | $("#HSPID").val(obj[0].HMainID); |
| | | } |
| | | |
| | | function GetMouldMaintainRuleValue(obj) { //ä¿å
»è§ç¨ |
| | | $("#HMouldMaintainRuleInterName").val(obj[0].åæ®å·); |
| | | $("#HMouldMaintainRuleInterID").val(obj[0].hmainid); |
| | | OptionData = obj[0]; |
| | | } |
| | | |
| | | function GetHAccSupNameValue(obj) { //è¿åå¶é åå |
| | | $("#HMadeSupName").val(obj[0].ä¾åºååç§°); |
| | | $("#HMadeSupID").val(obj[0].HItemID); |
| | | } |
| | | //å表å¨å
·åå»è¿å |
| | | function GetMouldFileValue(obj) { |
| | | OptionData = obj[0]; |
| | | } |
| | | function GetMouldDotCheckRuleValue(obj) { |
| | | OptionData = obj[0]; |
| | | } |
| | | </script> |
| | | </body> |
| | | </html> |