| | |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | <script src="../../../layuiadmin/PageTitle.js"></script> |
| | | <style> |
| | | .main-btn { /*头é¨ä¸»æé®*/ |
| | | padding: 0 2px; /*è°æ´æé®å·¦å³ç©ºé大å°*/ |
| | |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="set_AbandonCancelltion" id="set_AbandonCancelltion">åä½åº</button> |
| | | </div> |
| | | <div class="layui-tab" lay-filter="tab-POStockInBill"> |
| | | <h1 style="text-align: center; padding: 10px 0;"><b>ç产订å</b></h1> |
| | | <ul class="layui-tab-title" lay-filter="tab-all"> |
| | | <li lay-id="1" style="padding:1px;" class="layui-this">åºæ¬ä¿¡æ¯</li> |
| | | <li lay-id="2" style="padding:1px;">å
¶ä»ä¿¡æ¯</li> |
| | |
| | | <div class="layui-form-item" style="padding-top: 10px;"> |
| | | <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> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HBillNo" lay-verify="HBillNo" id="HBillNo" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HInterID" id="HInterID" lay-verify="HInterID"> |
| | | <input type="hidden" name="HSTOCKINORGID" id="HSTOCKINORGID" lay-verify="HSTOCKINORGID"> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ç»ç»</label> |
| | | <div class="layui-input-block" style="margin-left: 120px; width: 185px;"> |
| | | <select name="HPRDORGID" id="HPRDORGID" lay-filter="HPRDORGID"> |
| | | <!--å¨ææ¸²æç»ç»--> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æ¥æ</label> |
| | | <label class="layui-form-label" style="width: 85px;">æ¥æ*</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="date" class="layui-input" lay-verify="HDate" name="HDate" id="HDate" style="padding-left: 80px;"> |
| | | </div> |
| | |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 60px;">éå®è®¢åç±»å</label> |
| | | <div class="layui-input-inline"> |
| | | <select name="HMainSourceBillSubType" id="HMainSourceBillSubType" lay-filter="HMainSourceBillSubType" disabled="disabled" style="width: 180px; "> |
| | | <option style="color:blue;" selected="selected" value=""></option> |
| | | <option style="color:blue;" value="0">æ®éåæ®</option> |
| | | <option style="color:blue;" value="1">è¿ä¿®åæ®</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; width: 185px;"> |
| | | <select name="HSTATUS" lay-filter="HSTATUS" id="HSTATUS"> |
| | | <option value="1">计å</option> |
| | | <option value="2">计å确认</option> |
| | | <option value="3">ä¸è¾¾</option> |
| | | <option value="4" selected>å¼å·¥</option> |
| | | <option value="5">å®å·¥</option> |
| | | <option value="6">ç»æ¡</option> |
| | | <option value="7">ç»ç®</option> |
| | | </select> |
| | | </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; width: 70px;"> |
| | | <select name="HIsStockQty_SeOrderBill" lay-filter="HIsStockQty_SeOrderBill" id="HIsStockQty_SeOrderBill"> |
| | | <option value="0" selected>å¦</option> |
| | | <option value="1">æ¯</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; width: 70px;"> |
| | | <select name="HIsStockQty" lay-filter="HIsStockQty" id="HIsStockQty"> |
| | | <option value="0" selected>å¦</option> |
| | | <option value="1">æ¯</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="HQty" lay-verify="HQty" id="HQty" style="width:70px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">计éåä½*</label> |
| | | <div class="layui-input-block" style="margin-left: 71px;"> |
| | | <input type="text" class="layui-input" lay-verify="HUnitName" name="HUnitName" id="HUnitName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HUnitID" id="HUnitID" lay-verify="HUnitID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHUnit" id="btnHUnit" 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;"> |
| | |
| | | <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" lay-verify="HCusName" name="HCusName" id="HCusName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="text" class="layui-input" lay-verify="HCusName" name="HCusName" id="HCusName" style="background-color:#efefef4d;width: 43%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HCusID" id="HCusID" lay-verify="HCusID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHCus" id="btnHCus" 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: 75px;"> |
| | | <input type="text" class="layui-input" lay-verify="HCenterName" name="HCenterName" id="HCenterName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HCenterID" id="HCenterID" lay-verify="HCenterID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHCenter" id="btnHCenter" 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: 71px;"> |
| | | <input type="text" class="layui-input" lay-verify="HDeptName" name="HDeptName" id="HDeptName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HDeptID" id="HDeptID" lay-verify="HDeptID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHDept" id="btnHDept" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHCus" id="btnHCus" style="padding: 0 10px;margin-right: 85px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </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="HQty" lay-verify="HQty" id="HQty"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ç©æç¼ç </label> |
| | | <label class="layui-form-label" style="width: 85px;">ç©æç¼ç *</label> |
| | | <div class="layui-input-block" style="margin-left: 71px;"> |
| | | <input type="text" class="layui-input" lay-verify="HMaterNumber" name="HMaterNumber" id="HMaterNumber" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HMaterID" id="HMaterID" lay-verify="HMaterID" value="0"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ç©æåç§°</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="HMaterName" lay-verify="HMaterName" id="HMaterName" style="background-color:#efefef4d;display: inline-block;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">è§æ ¼åå·</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="HModel" lay-verify="HModel" id="HModel" style="background-color:#efefef4d;display: inline-block;" readonly> |
| | | </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: 75px;"> |
| | | <input type="text" class="layui-input" lay-verify="HSourceName" name="HSourceName" id="HSourceName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HSourceID" id="HSourceID" lay-verify="HSourceID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHSource" id="btnHSource" 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: 71px;"> |
| | | <input type="text" class="layui-input" lay-verify="HUnitName" name="HUnitName" id="HUnitName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HUnitID" id="HUnitID" lay-verify="HUnitID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHUnit" id="btnHUnit" 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; width: 185px;"> |
| | | <select name="HSTATUS" lay-filter="HSTATUS" id="HSTATUS"> |
| | | <option value="1">计å</option> |
| | | <option value="2">计å确认</option> |
| | | <option value="3">ä¸è¾¾</option> |
| | | <option value="4">å¼å·¥</option> |
| | | <option value="5">å®å·¥</option> |
| | | <option value="6">ç»æ¡</option> |
| | | <option value="7">ç»ç®</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 95px;">BOM</label> |
| | | <div class="layui-input-block" style="margin-left: 80px;"> |
| | | <input type="text" class="layui-input" lay-verify="HBomName" name="HBomName" id="HBomName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HBomID" id="HBomID" lay-verify="HBomID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnBom" id="btnBom" 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="HAuxQty" lay-verify="HAuxQty" id="HAuxQty" value="0"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">è¾
å©åä½</label> |
| | | <div class="layui-input-block" style="margin-left: 80px;"> |
| | | <input type="text" class="layui-input" lay-verify="HAuxUnitName" name="HAuxUnitName" id="HAuxUnitName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HAuxUnit" id="HAuxUnit" lay-verify="HAuxUnit" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHAuxUnit" id="btnHAuxUnit" 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="HWidth" lay-verify="HWidth" id="HWidth" style="background-color:#efefef4d;display: inline-block;" readonly> |
| | | <input type="text" class="layui-input" name="HWidth" lay-verify="HWidth" id="HWidth" value="0" style="background-color:#efefef4d;display: inline-block;" 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="HWeight" lay-verify="HWeight" id="HWeight" style="background-color:#efefef4d;display: inline-block;" readonly> |
| | | <input type="text" class="layui-input" name="HWeight" lay-verify="HWeight" id="HWeight" value="0" style="background-color:#efefef4d;display: inline-block;" readonly> |
| | | </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: 75px;"> |
| | | <input type="text" class="layui-input" lay-verify="HSourceName" name="HSourceName" id="HSourceName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HSourceID" id="HSourceID" lay-verify="HSourceID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHSource" id="btnHSource" 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: 50px;">è¾
æ°é</label> |
| | | <div class="layui-input-inline" style="margin-left: 1px;"> |
| | | <input type="text" class="layui-input" name="HAuxQty" lay-verify="HAuxQty" style="width:70px" id="HAuxQty" value="0"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="margin-left:-140px;"> |
| | | <label class="layui-form-label" style="width: 30px;">è¾
å©åä½</label> |
| | | <div class="layui-input-inline" style="margin-left: 1px;margin-top:10px;"> |
| | | <input type="text" class="layui-input" lay-verify="HAuxUnitName" name="HAuxUnitName" id="HAuxUnitName" style="background-color:#efefef4d;width: 30%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HAuxUnit" id="HAuxUnit" lay-verify="HAuxUnit" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHAuxUnit" id="btnHAuxUnit" style="padding: 0 10px;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="margin-left:-100px;"> |
| | | <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="HColorRemark" lay-verify="HColorRemark" id="HColorRemark"> |
| | | </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="HRemark_New" lay-verify="HRemark_New" id="HRemark_New"> |
| | | </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="HWidth_New" lay-verify="HWidth_New" id="HWidth_New" value="0"> |
| | | </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="HWeight_New" lay-verify="HWeight_New" id="HWeight_New" style="display: inline-block;" value="0"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 50px;">è¾
æ°é2</label> |
| | | <div class="layui-input-inline" style="margin-left: 1px;"> |
| | | <input type="text" class="layui-input" name="HAuxQty2" lay-verify="HAuxQty2" style="width:70px" id="HAuxQty2" value="0"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="margin-left:-140px;"> |
| | | <label class="layui-form-label" style="width: 30px;">è¾
å©åä½2</label> |
| | | <div class="layui-input-inline" style="margin-left: 1px;margin-top:10px;"> |
| | | <input type="text" class="layui-input" lay-verify="HAuxUnitName2" name="HAuxUnitName2" id="HAuxUnitName2" style="background-color:#efefef4d;width: 30%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HAuxUnit2" id="HAuxUnit2" lay-verify="HAuxUnit2" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHAuxUnit2" id="btnHAuxUnit2" style="padding: 0 10px;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="HCusMaterNumber" lay-verify="HCusMaterNumber" id="HCusMaterNumber" style="display: inline-block;"> |
| | | </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="HCusMaterName" lay-verify="HCusMaterName" id="HCusMaterName" style="display: inline-block;"> |
| | | </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="HCusModel" lay-verify="HCusModel" id="HCusModel" style="display: inline-block;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">计åå¼å·¥æ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 115px;"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">计åå¼å®å·¥æ</label> |
| | | <label class="layui-form-label" style="width: 85px;">计åå®å·¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="date" class="layui-input" lay-verify="HPlanEndDate" name="HPlanEndDate" id="HPlanEndDate" style="padding-left: 80px;"> |
| | | </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" lay-verify="HBeginDate" name="HBeginDate" id="HBeginDate" style="padding-left: 80px;"> |
| | | </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" lay-verify="HEndDate" name="HEndDate" id="HEndDate" style="padding-left: 80px;"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline" style="width: 56%;"> |
| | | <label class="layui-form-label" style="width: 85px;">夿³¨</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="HRemark" id="HRemark" lay-verify="HRemark" placeholder="请è¾å
¥å
容" onmouseover="this.title=this.value"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ç»ç»*</label> |
| | | <div class="layui-input-block" style="margin-left: 120px; width: 505px;"> |
| | | <select name="HPRDORGID" id="HPRDORGID" lay-filter="HPRDORGID"> |
| | | <!--å¨ææ¸²æç»ç»--> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline" style="width: 56%;"> |
| | | <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="HRemark3" id="HRemark3" lay-verify="HRemark3" placeholder="请è¾å
¥å
容" onmouseover="this.title=this.value"> |
| | | </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="HOrderPickRemark" lay-verify="HOrderPickRemark" id="HOrderPickRemark" style="display: inline-block;"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </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: 75px;"> |
| | | <input type="text" class="layui-input" lay-verify="HCenterName" name="HCenterName" id="HCenterName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HCenterID" id="HCenterID" lay-verify="HCenterID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHCenter" id="btnHCenter" 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: 95px;">BOM</label> |
| | | <div class="layui-input-block" style="margin-left: 80px;"> |
| | | <input type="text" class="layui-input" lay-verify="HBomName" name="HBomName" id="HBomName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HBomID" id="HBomID" lay-verify="HBomID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnBom" id="btnBom" 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" lay-verify="HBeginDate" name="HBeginDate" id="HBeginDate" style="padding-left: 80px;"> |
| | | </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" lay-verify="HEndDate" name="HEndDate" id="HEndDate" style="padding-left: 80px;"> |
| | | </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: 71px;"> |
| | | <input type="text" class="layui-input" lay-verify="HDeptName" name="HDeptName" id="HDeptName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HDeptID" id="HDeptID" lay-verify="HDeptID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHDept" id="btnHDept" 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="HPlanOrderProcNo" id="HPlanOrderProcNo" value="" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <!--éèåæ®µ--> |
| | | <div class="layui-row" style="display:none;"> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="hidden" name="HSourceInterID" id="HSourceInterID" lay-verify="HSourceInterID" value="0"> |
| | | <input type="hidden" name="HSourceEntryID" id="HSourceEntryID" lay-verify="HSourceEntryID" value="0"> |
| | | <input type="hidden" name="HSourceBillNo" id="HSourceBillNo" lay-verify="HSourceBillNo" value=""> |
| | | <input type="hidden" name="HSourceBillType" id="HSourceBillType" lay-verify="HSourceBillType" value=""> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | var option = []; |
| | | var num = 0; |
| | | |
| | | var HIsStockQtyTemp = "0"; //è®°å½æ¯å¦ååºåå¼ |
| | | //#endregion |
| | | |
| | | //#region è¿å
¥é¡µé¢å³å è½½ |
| | | |
| | | //#region ã卿è·å模ååç§°ã |
| | | var HModuleType = "3710"; |
| | | //éè¿åæ®ç±»åï¼ä»æ°æ®åºå¨æè·ååæ®æ¨¡åå½å,å¼ç¨jsæä»¶ PageTitle.js |
| | | var HPageTitle = get_PageTitle(HModuleType) == "" ? $("h1").html() : get_PageTitle(HModuleType); |
| | | $("h1").html('<b>' + HPageTitle + '</b>'); |
| | | //#endregion |
| | | |
| | | //åå§å |
| | | set_ClearBill(); |
| | |
| | | } |
| | | }); |
| | | } |
| | | else {//å¦æä¿®æ¹åèµ°ä¸é¢ |
| | | else if (OperationType == 2) { |
| | | RoadBillMain(linterid); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | type: "GET", |
| | | data: { "HBillType": '3710' }, |
| | | success: function (d) { |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | } |
| | | }); |
| | | } |
| | | else if (OperationType == 3) {//å¦æä¿®æ¹åèµ°ä¸é¢ |
| | | //ç¦ç¨ç»ç»é项 |
| | | $("#HPRDORGID").attr("disabled", true); |
| | | $("#HDate").attr("disabled", true); |
| | | RoadBillMain(linterid); |
| | | } |
| | | else if (OperationType == 4) { //éå®è®¢å䏿¨ç产订å-页é¢åå§å |
| | | setInit_PushBill(); |
| | | } |
| | | HfBtn(); |
| | | |
| | | $('#HIsStockQty_SeOrderBill').prop('disabled', true); |
| | | //#endregion |
| | | |
| | | //#region 触åäºä»¶ï¼å
æ¬form.on(){}æ ¼å¼çææç¹å»äºä»¶ãéæ©äºä»¶ç |
| | |
| | | get_btnHAuxUnit(); |
| | | }); |
| | | |
| | | //éæ©è¾
å©åä½2æé® |
| | | form.on('submit(btnHAuxUnit2)', function () { |
| | | get_btnHAuxUnit2(); |
| | | }); |
| | | |
| | | //éæ©BOMæé® |
| | | form.on('submit(btnBom)', function () { |
| | | get_btnBom(); |
| | |
| | | |
| | | //ä¿åæäº¤ |
| | | form.on('submit(btnSave)', function (data) {//æäº¤ |
| | | //#region 夿æºåç¶æ |
| | | var HSourceBillData = ""; |
| | | var HSourceBillData = getSourceBillStatus_SeOrderBill(); //è·åæºåæ°æ® |
| | | if (HSourceBillData != "none") { |
| | | if (HSourceBillData.length == 0) { |
| | | if ($("#HSourceInterID").val() != 0) { |
| | | layer.alert("ä¿å失败!æªæ¥è¯¢å°æºååæ®!", { icon: 5 }); |
| | | return; |
| | | } |
| | | } else if (HSourceBillData[0]["ç¶æ"] != "å·²å®¡æ ¸") { |
| | | layer.alert("ä¿å失败!æºååæ®ç¶ææªä¸º'å·²å®¡æ ¸'ç¶æ!", { icon: 5 }); |
| | | return; |
| | | } |
| | | } else { |
| | | return; |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | |
| | | if (AllowLoadData(data)) { |
| | | set_AddNew(data); |
| | | } |
| | |
| | | $("#HSTOCKINORGID").val(data.value); |
| | | }); |
| | | |
| | | //#region æ¯å¦ååºå䏿å表çå¬ |
| | | form.on('select(HIsStockQty)', function (data) { |
| | | var HIsStockQtyTemp1 = $("#HIsStockQty").val(); |
| | | $("#HIsStockQty").val(HIsStockQtyTemp); |
| | | form.render("select"); |
| | | layer.confirm("ç¡®å®è¦ä¿®æ¹æ¯å¦ååºåå?", function (index) { |
| | | var wait = layer.load(); |
| | | $("#HIsStockQty").val(HIsStockQtyTemp1); |
| | | HIsStockQtyTemp = $("#HIsStockQty").val(); |
| | | form.render("select"); |
| | | layer.close(wait); |
| | | layer.closeAll(); |
| | | }) |
| | | }); |
| | | //#endregion |
| | | //#endregion |
| | | |
| | | //#region æ¤é¡µé¢ææçæ¹æ³ |
| | |
| | | $("#HSeOrderBillNo").val(checkStatus.data[0].åæ®å·); |
| | | $("#HSeOrderEntryID").val(checkStatus.data[0].hsubid); |
| | | |
| | | $("#HSourceInterID").val(checkStatus.data[0].hmainid); |
| | | $("#HSourceEntryID").val(checkStatus.data[0].hsubid); |
| | | $("#HSourceBillNo").val(checkStatus.data[0].åæ®å·); |
| | | $("#HSourceBillType").val("1401"); |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'ä¸å¡å'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_EmployeeList.html', 'yes'] |
| | | , content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_EmployeeList.html?type=HEmp', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HCusID").val(checkStatus.data[0].HItemID); |
| | | $("#HCusName").val(checkStatus.data[0].客æ·åç§°); |
| | | //$("#HCusID").val(checkStatus.data[0].HItemID); |
| | | //$("#HCusName").val(checkStatus.data[0].客æ·åç§°); |
| | | |
| | | getCustomerByCusID(checkStatus.data[0].HItemID); |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: "ç产车é´å表" //æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_DepartmentList.html', 'yes'] |
| | | , content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_DepartmentList.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HDeptID").val(checkStatus.data[0].HItemID); |
| | | $("#HDeptName").val(checkStatus.data[0].HName); |
| | | $("#HDeptName").val(checkStatus.data[0].é¨é¨åç§°); |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'å·¥ä½ä¸å¿'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_WorkCenterList.html', 'yes'] |
| | | , content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_WorkCenter.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HCenterID").val(checkStatus.data[0].HItemID); |
| | | $("#HCenterName").val(checkStatus.data[0].å·¥ä½ä¸å¿); |
| | | $("#HCenterName").val(checkStatus.data[0].å·¥ä½ä¸å¿åç§°); |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | |
| | | $("#HModel").val(checkStatus.data[0].è§æ ¼åå·); |
| | | $("#HUnitID").val(checkStatus.data[0].HUnitID);//计éåä½id |
| | | $("#HUnitName").val(checkStatus.data[0].计éåä½åç§°);//计éåä½åç§° |
| | | $("#HWidth").val(checkStatus.data[0].HWidth);//å¹
宽 |
| | | $("#HWeight").val(checkStatus.data[0].HWeight);//å
é |
| | | $("#HWidth").val(checkStatus.data[0].å¹
宽);//å¹
宽 |
| | | $("#HWeight").val(checkStatus.data[0].å
é);//å
é |
| | | $("#HColorRemark").val(checkStatus.data[0].æè²è¦æ±);//æè²è¦æ± |
| | | $("#HRemark").val(checkStatus.data[0].夿³¨);//夿³¨ |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: "计éåä½å表" //æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_UnitList.html', 'yes'] |
| | | , content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Unit.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HUnitID").val(checkStatus.data[0].HItemID); |
| | | $("#HUnitName").val(checkStatus.data[0].HName); |
| | | $("#HUnitName").val(checkStatus.data[0].计éåä½åç§°); |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: "计éåä½å表" //æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_UnitList.html', 'yes'] |
| | | , content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Unit.html?type=AuxiliaryUnit', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HAuxUnit").val(checkStatus.data[0].HItemID); |
| | | $("#HAuxUnitName").val(checkStatus.data[0].HName); |
| | | $("#HAuxUnitName").val(checkStatus.data[0].计éåä½åç§°); |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | |
| | | //è¾
å©åä½2 |
| | | function get_btnHAuxUnit2() { |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: "计éåä½å表" //æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Unit.html?type=AuxiliaryUnit2', '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('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HAuxUnit2").val(checkStatus.data[0].HItemID); |
| | | $("#HAuxUnitName2").val(checkStatus.data[0].计éåä½åç§°); |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | |
| | | }) |
| | | } |
| | | |
| | | //#region 䏿¨é¡µé¢åå§å |
| | | function setInit_PushBill() { |
| | | //çæå¹¶è®¾ç½®ä¸»è¡¨çå
ç ååæ®å· |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | type: "GET", |
| | | data: { "HBillType": '3710' }, |
| | | success: function (d) { |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | } |
| | | }); |
| | | |
| | | //æ¥è¯¢ éå®è®¢å æ¯å¦åå¨ |
| | | var ajaxLoad = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Xs_SeOrderBill/loadXs_SeOrderBill_InitICMO", |
| | | async: false, |
| | | type: "GET", |
| | | data: { |
| | | "HInterID": linterid |
| | | , "HEntryID": HEntryID |
| | | }, |
| | | success: function (result) { |
| | | if (result.code == 1) { // 说æéªè¯æåäºï¼ |
| | | var data = result.data[0]; |
| | | |
| | | form.val("formData", { //formTest å³ class="layui-form" æå¨å
ç´ å±æ§ lay-filter="" 对åºçå¼ |
| | | "HSeOrderBillNo": data.åæ®å· |
| | | , "HSeOrderInterID": data.hmainid |
| | | , "HSeOrderEntryID": data.hsubid |
| | | |
| | | , "HSourceInterID": data.hmainid |
| | | , "HSourceEntryID": data.hsubid |
| | | , "HSourceBillNo": data.åæ®å· |
| | | , "HSourceBillType": "1401" |
| | | , "HMainSourceBillSubType": data.HBillSubType |
| | | |
| | | , "HPlanOrderProcNo": data.åæ®å· |
| | | |
| | | , "HEmpID": data.HEmpID |
| | | , "HEmpName": data.ä¸å¡å |
| | | , "HCusID": data.HCusID |
| | | , "HCusName": data.å®¢æ· |
| | | , "HQty": data.æ°é |
| | | , "HMaterID": data.HMaterID |
| | | , "HMaterNumber": data.ç©æä»£ç |
| | | , "HMaterName": data.ç©æåç§° |
| | | , "HModel": data.è§æ ¼åå· |
| | | , "HUnitID": data.HUnitID |
| | | , "HUnitName": data.计éåä½ |
| | | , "HWidth": data.å¹
宽 |
| | | , "HWeight": data.å
é |
| | | , "HColorRemark": data.æè²è¦æ± |
| | | , "HRemark": data.ç½å¯è¦æ± |
| | | , "HRemark3": data.è¡¨å¤´å¤æ³¨ |
| | | , "HCusMaterNumber": data.客æ·ç©æç¼ç |
| | | , "HCusModel": data.客æ·è§æ ¼åå· |
| | | , "HCusMaterName": data.客æ·ç©æåç§° |
| | | , "HIsStockQty": data.æ¯å¦ååºå == "Y" ? 1 : 0 |
| | | , "HIsStockQty_SeOrderBill": data.æ¯å¦ååºå == "Y" ? 1 : 0 |
| | | }); |
| | | |
| | | HIsStockQtyTemp = data.æ¯å¦ååºå == "Y" ? 1 : 0; |
| | | |
| | | //ç¦æ¢ä¿®æ¹éå®è®¢åå· |
| | | $('#btnHSeOrder').prop('disabled', true); |
| | | //$('#HIsStockQty').prop('disabled', true); |
| | | $('#HIsStockQty_SeOrderBill').prop('disabled', true); |
| | | $('#btnHCus').prop('disabled', true); |
| | | $('#btnHMater').prop('disabled', true); |
| | | $('#btnHUnit').prop('disabled', true); |
| | | $('#HMainSourceBillSubType').prop('disabled', true); |
| | | //$('#HCusMaterNumber').prop('disabled', true); |
| | | //$('#HCusModel').prop('disabled', true); |
| | | //$('#HCusMaterName').prop('disabled', true); |
| | | |
| | | layer.close(ajaxLoad); |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | | layer.alert(result.msg, { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(ajaxLoad); |
| | | layer.alert("åçé误!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | //ä¿åHMaker |
| | | function set_AddNew(data) { |
| | | |
| | |
| | | ////$('#set_CancelCloseBill').removeClass("layui-btn-disabled").attr("disabled", false); |
| | | //$('#set_CancelltionBill').removeClass("layui-btn-disabled").attr("disabled", false); |
| | | ////$('#set_AbandonCancelltion').removeClass("layui-btn-disabled").attr("disabled", false); |
| | | |
| | | |
| | | } |
| | | else { |
| | | layer.close(index); |
| | |
| | | , "HSeOrderBillNo": d.data[0].æºååå· |
| | | , "HSeOrderInterID": d.data[0].æºå主å
ç |
| | | , "HSeOrderEntryID": d.data[0].æºååå
ç |
| | | , "HMainSourceBillSubType": d.data[0].HMainSourceBillSubType |
| | | |
| | | , "HSourceInterID": d.data[0].HSourceInterID |
| | | , "HSourceEntryID": d.data[0].HSourceEntryID |
| | | , "HSourceBillNo": d.data[0].HSourceBillNo |
| | | , "HSourceBillType": d.data[0].HSourceBillType |
| | | |
| | | , "HEmpID": d.data[0].HEmpID |
| | | , "HEmpName": d.data[0].ä¸å¡å |
| | | , "HCusID": d.data[0].HEntryCusID |
| | |
| | | , "HUnitID": d.data[0].HUnitID |
| | | , "HUnitName": d.data[0].计éåä½ |
| | | , "HSTATUS": HSTATUS |
| | | , "HIsStockQty": d.data[0].HIsStockQty |
| | | , "HIsStockQty_SeOrderBill": d.data[0].HIsStockQty_SeOrderBill ? 1 : 0 |
| | | , "HBomID": d.data[0].HBomID |
| | | , "HBomName": d.data[0].BOMåç¼ç |
| | | , "HPlanBeginDate": Format(new Date(d.data[0].计åå¼å·¥æ¥æ), "yyyy-MM-dd") |
| | |
| | | , "HBeginDate": Format(new Date(d.data[0].æè¿å¼å·¥æ¥æ), "yyyy-MM-dd") |
| | | , "HEndDate": Format(new Date(d.data[0].æè¿å®å·¥æ¥æ), "yyyy-MM-dd") |
| | | , "HRemark": d.data[0].è¡¨å¤´å¤æ³¨ |
| | | , "HRemark3": d.data[0].åºé¨å¤æ³¨ |
| | | , "HAuxQty": d.data[0].HAuxQty |
| | | , "HAuxUnit": d.data[0].HAuxUnit |
| | | , "HAuxUnitName": d.data[0].HAuxUnitName |
| | | |
| | | , "HAuxQty2": d.data[0].HAuxQty2 |
| | | , "HAuxUnit2": d.data[0].HAuxUnit2 |
| | | , "HAuxUnitName2": d.data[0].HAuxUnitName2 |
| | | |
| | | , "HWidth": d.data[0].HWidth |
| | | , "HWeight": d.data[0].HWeight |
| | | , "HColorRemark": d.data[0].æè²è¦æ± |
| | | , "HCusMaterName": d.data[0].客æ·ç©æåç§° |
| | | , "HCusModel": d.data[0].客æ·è§æ ¼åå· |
| | | , "HCusMaterNumber": d.data[0].客æ·ç©æç¼ç |
| | | , "HOrderPickRemark": d.data[0].订åå
è£
夿³¨ |
| | | , "HWidth_New": d.data[0].ç产å¹
宽 |
| | | , "HWeight_New": d.data[0].ç产å
é |
| | | , "HRemark_New": d.data[0].çäº§è§æ ¼ |
| | | //å
¶ä»ä¿¡æ¯ |
| | | , "hmakers": d.data[0].å¶å人 |
| | | , "hmakedate": d.data[0].å¶åæ¥æ == null ? "" : Format(new Date(d.data[0].å¶åæ¥æ), "yyyy-MM-dd") |
| | | , "hchecker": d.data[0].å®¡æ ¸äºº |
| | | , "hcheckdate": d.data[0].å®¡æ ¸æ¥æ == null ? "" : Format(new Date(d.data[0].å®¡æ ¸æ¥æ), "yyyy-MM-dd") |
| | | , "hupdater": d.data[0].ä¿®æ¹äºº |
| | | , "hupdatedate": d.data[0].ä¿®æ¹æ¥æ == null ? "" : Format(new Date(d.data[0].ä¿®æ¹æ¥æ), "yyyy-MM-dd") |
| | | , "hdeleteman": d.data[0].ä½åºäºº |
| | | , "hdeletedate": d.data[0].ä½åºæ¥æ == null ? "" : Format(new Date(d.data[0].ä½åºæ¥æ), "yyyy-MM-dd") |
| | | , "hmakers": OperationType == 2 ? "" : d.data[0].å¶å人 |
| | | , "hmakedate": OperationType == 2 ? "" : d.data[0].å¶åæ¥æ == null ? "" : Format(new Date(d.data[0].å¶åæ¥æ), "yyyy-MM-dd") |
| | | , "hchecker": OperationType == 2 ? "" : d.data[0].å®¡æ ¸äºº |
| | | , "hcheckdate": OperationType == 2 ? "" : d.data[0].å®¡æ ¸æ¥æ == null ? "" : Format(new Date(d.data[0].å®¡æ ¸æ¥æ), "yyyy-MM-dd") |
| | | , "hupdater": OperationType == 2 ? "" : d.data[0].ä¿®æ¹äºº |
| | | , "hupdatedate": OperationType == 2 ? "" : d.data[0].ä¿®æ¹æ¥æ == null ? "" : Format(new Date(d.data[0].ä¿®æ¹æ¥æ), "yyyy-MM-dd") |
| | | , "hdeleteman": OperationType == 2 ? "" : d.data[0].ä½åºäºº |
| | | , "hdeletedate": OperationType == 2 ? "" : d.data[0].ä½åºæ¥æ == null ? "" : Format(new Date(d.data[0].ä½åºæ¥æ), "yyyy-MM-dd") |
| | | , "HPlanOrderProcNo": d.data[0].HPlanOrderProcNo |
| | | }); |
| | | form.render('select'); |
| | | |
| | | |
| | | HIsStockQtyTemp = d.data[0].HIsStockQty; |
| | | |
| | | if (d.data[0].æºå主å
ç != 0 && d.data[0].HSourceBillType=="1401") { |
| | | $('#btnHSeOrder').prop('disabled', true); |
| | | //$('#HIsStockQty').prop('disabled', true); |
| | | $('#HIsStockQty_SeOrderBill').prop('disabled', true); |
| | | $('#btnHCus').prop('disabled', true); |
| | | $('#btnHMater').prop('disabled', true); |
| | | $('#btnHUnit').prop('disabled', true); |
| | | $('#HMainSourceBillSubType').prop('disabled', true); |
| | | } |
| | | } |
| | | }) |
| | | } |
| | |
| | | //é空éªè¯ |
| | | function AllowLoadData(data) { |
| | | |
| | | if ($("#HBillNo").val() == "") { |
| | | layer.msg("åæ®å·ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | |
| | | if ($("#HCusID").val() == "0" || $("#HCusName").val() == "") { |
| | | layer.msg("客æ·ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | |
| | | if ($("#HMaterNumber").val() == "") { |
| | | layer.msg("ç©æç¼ç 没æéæ©"); |
| | | return false; |
| | | } |
| | | |
| | | if ($("#HMaterName").val() == "") { |
| | | layer.msg("ç©æåç§°ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | |
| | | if ($("#HModel").val() == "") { |
| | | layer.msg("è§æ ¼åå·ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | |
| | | //if ($("#HSourceName").val() == "") { |
| | | // layer.msg("çäº§èµæºæ²¡æéæ©"); |
| | | // return false; |
| | |
| | | return false; |
| | | } |
| | | |
| | | |
| | | var HQty = $('#HQty').val(); |
| | | if (HQty.substring(HQty.length - 1, HQty.length) == ".") { |
| | | layer.msg("计åç产æ°éçç»å°¾ä¸è½æ¯.ï¼"); |
| | | return; |
| | | } else { |
| | | var ref = /^[0-9]+\.?[0-9]*$/; |
| | | if (!ref.test(HQty)) { |
| | | layer.msg("计åç产æ°éè¯·è¾æ£ç¡®å
¥æ°åï¼"); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | var HAuxQty = $('#HAuxQty').val(); |
| | | if (HAuxQty.substring(HAuxQty.length - 1, HAuxQty.length) == ".") { |
| | | layer.msg("è¾
æ°éçç»å°¾ä¸è½æ¯.ï¼"); |
| | | return; |
| | | } else { |
| | | var ref = /^[0-9]+\.?[0-9]*$/; |
| | | if (!ref.test(HAuxQty)) { |
| | | layer.msg("è¾
æ°éè¯·è¾æ£ç¡®å
¥æ°åï¼"); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | //if ($("#HDeptName").val() == "") { |
| | | // layer.msg("çäº§è½¦é´æ²¡æéæ©"); |
| | | // return false; |
| | | //} |
| | | |
| | | if ($("#HMainCenterIDName").val() == "") { |
| | | layer.msg("å·¥ä½ä¸å¿æ²¡æéæ©"); |
| | | return false; |
| | | } |
| | | //if ($("#HMainCenterIDName").val() == "") { |
| | | // layer.msg("å·¥ä½ä¸å¿æ²¡æéæ©"); |
| | | // return false; |
| | | //} |
| | | |
| | | //if ($("#BomName").val() == "") { |
| | | // layer.msg("BOM没æéæ©"); |
| | | // return false; |
| | | //} |
| | | |
| | | |
| | | |
| | | return true; |
| | | } |
| | |
| | | return vars; |
| | | } |
| | | |
| | | |
| | | //#region è·åæºå-éå®è®¢ååæ®ç¶æ |
| | | function getSourceBillStatus_SeOrderBill() { |
| | | var HSourceBillData = "none"; |
| | | var sWhere = " and hmainid = " + $("#HSourceInterID").val(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Xs_SeOrderBill/list', |
| | | async: false, |
| | | type: "GET", |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | HSourceBillData = data1.data; |
| | | } else { |
| | | layer.alert(data1.code + "æºååæ®ç¶æå¤æå¤±è´¥ï¼", { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | return HSourceBillData; |
| | | } |
| | | //#endregion |
| | | //#endregion |
| | | |
| | | }); |
| | | |
| | | function GetHSupValue(obj) //è¿åå®¢æ· |
| | | { |
| | | //$("#HCusName").val(obj[0].HName); |
| | | //$("#HCusID").val(obj[0].HItemID); |
| | | //æ ¹æ®å®¢æ·è·åç¸å
³ä¿¡æ¯ |
| | | getCustomerByCusID(obj[0].HItemID); |
| | | } |
| | | |
| | | //#region æ ¹æ®å®¢æ·è·åå¸å«ãæ±çãç»ç®æ¹å¼ã客æ·ä¿¡ç¨é¢åº¦ãè系人ãèç³»çµè¯ |
| | | function getCustomerByCusID(HCusID) { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Xs_SeOrderBill/getCustomerByCusID", |
| | | async: false, |
| | | type: "GET", |
| | | data: { |
| | | "HCusID": HCusID |
| | | }, |
| | | success: function (result) { |
| | | if (result.code == 1) { // 说æéªè¯æåäºï¼ |
| | | var data = result.data[0]; |
| | | |
| | | $("#HCusID").val(data.HCusID); |
| | | $("#HCusName").val(data.HCusName); |
| | | //$("#HCurID").val(data.HCurID); |
| | | //$("#HCurName").val(data.HCurName); |
| | | //$("#HExRate").val(data.HExRate); |
| | | //$("#HSSID").val(data.HSSID); |
| | | //$("#HSSName").val(data.HSSName); |
| | | //$("#HCreditRating_Now").val(data.HCreditRating_Now); |
| | | //$("#HLinkMan").val(data.HLinkMan); |
| | | //$("#HLinkPhone").val(data.HLinkPhone); |
| | | |
| | | //subHTaxRate = data.HTaxRate; |
| | | |
| | | } else { |
| | | layer.alert(result.msg, { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("åçé误!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | //计éåä½ |
| | | function GetUnitValue(obj) { |
| | | $("#HUnitID").val(obj[0].HItemID); |
| | | $("#HUnitName").val(obj[0].计éåä½åç§°); |
| | | } |
| | | //ä¸å¡å |
| | | function GetHEmpValue(obj) { |
| | | $("#HEmpID").val(obj[0].HItemID); |
| | | $("#HEmpName").val(obj[0].èååç§°); |
| | | } |
| | | //å®¢æ· |
| | | function GetHCusNameValue(obj) { |
| | | $("#HCusID").val(obj[0].HItemID); |
| | | $("#HCusName").val(obj[0].客æ·åç§°); |
| | | } |
| | | //ç©æ |
| | | function GetMaterValue(obj) { |
| | | $("#HMaterID").val(obj[0].HItemID); |
| | | $("#HMaterNumber").val(obj[0].ç©æä»£ç ); |
| | | $("#HMaterName").val(obj[0].ç©æåç§°); |
| | | $("#HModel").val(obj[0].è§æ ¼åå·); |
| | | $("#HUnitID").val(obj[0].HUnitID);//计éåä½id |
| | | $("#HUnitName").val(obj[0].计éåä½åç§°);//计éåä½åç§° |
| | | $("#HWidth").val(obj[0].å¹
宽);//å¹
宽 |
| | | $("#HWeight").val(obj[0].å
é);//å
é |
| | | $("#HColorRemark").val(obj[0].æè²è¦æ±);//æè²è¦æ± |
| | | $("#HRemark").val(obj[0].夿³¨);//夿³¨ |
| | | } |
| | | //è¾
å©è®¡éåä½ |
| | | function GetAuxiliaryUnitValue(obj) { |
| | | $("#HAuxUnit").val(obj[0].HItemID); |
| | | $("#HAuxUnitName").val(obj[0].计éåä½åç§°); |
| | | } |
| | | |
| | | //è¾
å©è®¡éåä½2 |
| | | function GetAuxiliaryUnit2Value(obj) { |
| | | $("#HAuxUnit2").val(obj[0].HItemID); |
| | | $("#HAuxUnitName2").val(obj[0].计éåä½åç§°); |
| | | } |
| | | |
| | | //å·¥ä½ä¸å¿ |
| | | function GetWorkCenterValue(obj) { |
| | | $("#HCenterID").val(obj[0].HItemID); |
| | | $("#HCenterName").val(obj[0].å·¥ä½ä¸å¿åç§°); |
| | | } |
| | | //bom |
| | | function GetICBomValue(obj) { |
| | | $("#HBomID").val(obj[0].hmainid); |
| | | $("#HBomName").val(obj[0].åæ®å·); |
| | | } |
| | | //çäº§è½¦é´ |
| | | function GetHDeptNameValue(obj) { |
| | | $("#HDeptID").val(obj[0].HItemID); |
| | | $("#HDeptName").val(obj[0].é¨é¨åç§°); |
| | | } |
| | | </script> |
| | | </body> |
| | | </html> |