| | |
| | | <html xmlns="http://www.w3.org/1999/xhtml"> |
| | | <head> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| | | <title>å¨å
·ç产éåºå</title> |
| | | <title>模å
·é¢ç¨éåºå</title> |
| | | <meta name="renderer" content="webkit"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> |
| | |
| | | <script src="../../../layuiadmin/Scripts/json2.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | <!--èªå®ä¹æ ·å¼--> |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | <style> |
| | | .maintitle { |
| | | background-color: #1492ff; |
| | | color: #fff; |
| | | padding: 5px 10px; |
| | | border: none; |
| | | border-radius: 4px; |
| | | } |
| | | |
| | | .title { |
| | | border-left: 4px solid #1492ff; |
| | | padding-left: 6px; |
| | | margin: 20px 10px 4px; |
| | | font-size: 16px; |
| | | color: #333; |
| | | } |
| | | |
| | | .buttom_box_little { |
| | | width: 60px; |
| | | height: 36px; |
| | | color: #fff; |
| | | background-color: #1492ff; |
| | | border-radius: 4px; |
| | | border: none; |
| | | margin: 10px; |
| | | } |
| | | |
| | | .layui-input { |
| | | width: 93%; |
| | | } |
| | | .layui-inline, img { |
| | | display: block; |
| | | vertical-align: middle |
| | | } |
| | | .layui-input, .layui-textarea { |
| | | display: inline-block; |
| | | width: 100%; |
| | | padding-left: 10px; |
| | | } |
| | | |
| | | .laydate-time-list ol { |
| | | overflow-x: hidden !important; |
| | | overflow-y: auto !important; |
| | | } |
| | | .layui-form-label { |
| | | padding: 9px 5px; |
| | | } |
| | | .layui-input-block { |
| | | margin-left: 85px; |
| | | min-height: 36px; |
| | | .layui-col-xs8 { |
| | | width: 55.666667%; |
| | | } |
| | | </style> |
| | | </head> |
| | | |
| | | <body> |
| | | <div class="layui-fluid" style="padding: 0;"> |
| | | <div class="layui-card" style="padding: 15px;background-color: #efefef;"> |
| | | <div class="layui-card-body" style="padding: 1px;"> |
| | | <form class="layui-form" action="" lay-filter="formData" id="formData" style="background-color:white;"> |
| | | <div class="maintitle">å¨å
·ç产éåºå</div> |
| | | <div class="layui-form-item" style="padding-top: 10px;"> |
| | | <div class="layui-fluid" style="padding:0"> |
| | | <div class="layui-card" style="padding: 1px"> |
| | | <div class="layui-card-body" style="padding: 0px; height:800px;"> |
| | | <form class="layui-form" action="" lay-filter="component-form-group"> |
| | | <div style="background-color:#0085E8;"> |
| | | <span style="color: white;"><i class="layui-icon layui-icon-form"></i>模å
·é¢ç¨éåºå</span> |
| | | </div> |
| | | <div class="layui-form-item" style="padding:15px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <label class="layui-form-label" style="width: 85px;"><span style="color:red;">*</span>å¨å
·æ¡ç </label> |
| | | <div class="layui-input-block" style="margin-left: 100px;width:46%;"> |
| | | <input type="text" name="HBarCode" id="HBarCode" placeholder="请é®å
¥åå车" autocomplete="off" class="layui-input"> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-primary" lay-filter="QueDin" style="width: 70px; background-color: #1492ff;color:white">ç¡®å®</button> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width: 30px;padding-left: 0px;">æ¡ç </label> |
| | | </div> |
| | | <div class="layui-col-xs7"> |
| | | <input type="text" name="HBarCode" id="HBarCode" lay-verify="HBarCode" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" lay-filter="HBarCode-BT" class="layui-btn layui_btn_sm" id="HBarCode-BT">ç¡®å®</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief"> |
| | | <ul class="layui-tab-title"> |
| | | <li class="layui-this">åºæ¬ä¿¡æ¯</li> |
| | | <li>å
¶ä»ä¿¡æ¯</li> |
| | | </ul> |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-tab-item layui-show"> |
| | | <div class="layui-form-item" style="padding-top: 10px;"> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">ä»åº:</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="HWHName" id="HWHName" class="layui-input" style="width:80%;"> |
| | | <input type="hidden" name="HWHID" id="HWHID" class="layui-input"> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-primary" lay-filter="Warehouse" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | <div class="layui-tab layui-col-xs12" style="margin-top:5px;" lay-filter="tab-Sc_MouldProdBackBill_PDA"> |
| | | <ul class="layui-tab-title" lay-filter="tab-all"> |
| | | <li lay-id="1" style="padding:1px;">åºæ¬ä¿¡æ¯</li> |
| | | <li lay-id="2" style="padding:1px;">模å
·ä¿¡æ¯</li> |
| | | </ul> |
| | | <div class="layui-tab-content"> |
| | | <!--åºæ¬ä¿¡æ¯--> |
| | | <div class="layui-tab-item"> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">ä»åº</label> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">ä»ä½:</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="HSPName" id="HSPName" class="layui-input" style="width:80%;"> |
| | | <input type="hidden" name="HSPID" id="HSPID" class="layui-input"> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-primary" lay-filter="StockPlace" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">åæ®å·:</label> |
| | | <div class="layui-input-block" style="margin-left: 85px;"> |
| | | <input type="text" class="layui-input" name="HBillNo" id="HBillNo" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HInterID" id="HInterID"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">åæ®æ¥æ:</label> |
| | | <div class="layui-input-block" style="margin-left: 85px;"> |
| | | <input type="datetime" class="layui-input" name="HDate" id="HDate" placeholder="è¯·éæ©æ¥æ" readonly disabled> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;padding: 9px 5px;">é¨é¨:</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="HDeptName" id="HDeptName" class="layui-input" style="width:80%;"> |
| | | <input type="hidden" name="HDeptID" id="HDeptID" class="layui-input"> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-primary" lay-filter="Department" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HWHName" id="HWHName" lay-verify="HWHName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();"> |
| | | <input type="hidden" name="HWHID" id="HWHID" lay-verify="HWHID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" lay-filter="HWHID-BT" class="layui-btn" id="HWHID-BT">...</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;padding: 9px 5px;">æä½å:</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" name="HManagerName" id="HManagerName" class="layui-input" style="width:80%;"> |
| | | <input type="hidden" name="HManagerID" id="HManagerID" class="layui-input"> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-primary" lay-filter="HManager" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">ä»ä½</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HStockPlaceName" id="HStockPlaceName" lay-verify="HStockPlaceName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();"> |
| | | <input type="hidden" name="HStockPlaceID" id="HStockPlaceID" lay-verify="HStockPlaceID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" lay-filter="HSpID-BT" class="layui-btn" id="HSpID-BT">...</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">å¨å
·åç§°:</label> |
| | | <div class="layui-input-block" style="margin-left: 85px;"> |
| | | <input type="text" name="HBarName" id="HBarName" class="layui-input" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HMaterID" id="HMaterID" class="layui-input"> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">ä¿ç®¡</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HKeeperName" id="HKeeperName" lay-verify="HKeeperName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();"> |
| | | <input type="hidden" name="HKeeperID" id="HKeeperID" lay-verify="HKeeperID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" lay-filter="HKeeperID-BT" class="layui-btn" id="HKeeperID-BT">...</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">å¨å
·è§æ ¼:</label> |
| | | <div class="layui-input-block" style="margin-left: 85px;"> |
| | | <input type="text" name="HBarSpec" id="HBarSpec" class="layui-input" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">éªæ¶</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HSecManagerName" id="HSecManagerName" lay-verify="HSecManagerName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();"> |
| | | <input type="hidden" name="HSecManagerID" id="HSecManagerID" lay-verify="HSecManagerID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" lay-filter="HSecManagerID-BT" class="layui-btn" id="HSecManagerID-BT">...</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">å¨å
·åå·:</label> |
| | | <div class="layui-input-block" style="margin-left: 85px;"> |
| | | <input type="text" name="HBarModel" id="HBarModel" class="layui-input" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">é¨é¨</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HDeptName" id="HDeptName" lay-verify="HDeptName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();"> |
| | | <input type="hidden" name="HDeptID" id="HDeptID" lay-verify="HDeptID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" lay-filter="HDeptID-BT" class="layui-btn" id="HDeptID-BT">...</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">æ°é:</label> |
| | | <div class="layui-input-block" style="margin-left: 85px;"> |
| | | <input type="text" name="HQty" id="HQty" value="1" class="layui-input" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">徿¥ç±»å</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <select name="HSupTypeID" id="HSupTypeID" lay-filter="HSupTypeID"> |
| | | <option value="1">ä¾åºå</option> |
| | | <option value="2">客æ·</option> |
| | | <option value="3">é¨é¨</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">å©ä½å¯¿å½:</label> |
| | | <div class="layui-input-block" style="margin-left: 85px;"> |
| | | <input type="text" name="HLeaveLife" id="HLeaveLife" class="layui-input" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">徿¥åä½</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HSupName" id="HSupName" lay-verify="HSupName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();"> |
| | | <input type="hidden" name="HSupID" id="HSupID" lay-verify="HSupID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" lay-filter="HSupID-BT" class="layui-btn" id="HSupID-BT">...</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">ç»ç»</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HStockOrgName" id="HStockOrgName" lay-verify="HStockOrgName" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled> |
| | | <input type="hidden" name="HStockOrgID" id="HStockOrgID" lay-verify="HStockOrgID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">æ¥æ</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <input name="HDate" id="HDate" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">å¶å人</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HMaker" id="HMaker" lay-verify="HMaker" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">åæ®å·</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HBillNo" id="HBillNo" lay-verify="HBillNo" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">忮ID</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HInterID" id="HInterID" lay-verify="HInterID" value="0" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab-item"> |
| | | <div class="layui-form-item" style="padding-top: 10px;"> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">å建人:</label> |
| | | <div class="layui-input-block" style="margin-left: 85px;"> |
| | | <input type="text" class="layui-input" name="HMaker" id="HMaker" style="background-color:#efefef4d;" readonly> |
| | | <!--模å
·ä¿¡æ¯--> |
| | | <div class="layui-tab-item"> |
| | | <div class="layui-form-item" style="padding: 0px; margin: 0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">å¨å
·æ¡ç </label> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">åå»ºæ¥æ:</label> |
| | | <div class="layui-input-block" style="margin-left: 85px;"> |
| | | <input type="datetime" class="layui-input" name="HMakeDate" id="HMakeDate" style="background-color:#efefef4d;" readonly disabled> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HMouldBarCode" id="HMouldBarCode" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">ä¿®æ¹äºº:</label> |
| | | <div class="layui-input-block" style="margin-left: 85px;"> |
| | | <input type="text" class="layui-input" name="HUpDater" id="HUpDater" style="background-color:#efefef4d;" readonly disabled> |
| | | <div class="layui-form-item" style="padding: 0px; margin: 0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">å¨å
·åç§°</label> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">ä¿®æ¹æ¥æ:</label> |
| | | <div class="layui-input-block" style="margin-left: 85px;"> |
| | | <input type="datetime" class="layui-input" name="HUpDateDate" id="HUpDateDate" style="background-color:#efefef4d;" readonly disabled> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">å®¡æ ¸äºº:</label> |
| | | <div class="layui-input-block" style="margin-left: 85px;"> |
| | | <input type="text" class="layui-input" name="HChecker" id="HChecker" style="background-color:#efefef4d;" readonly> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HMouldName" id="HMouldName" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">å®¡æ ¸æ¥æ:</label> |
| | | <div class="layui-input-block" style="margin-left: 85px;"> |
| | | <input type="datetime" class="layui-input" name="HCheckDate" id="HCheckDate" style="background-color:#efefef4d;" readonly disabled> |
| | | <div class="layui-form-item" style="padding: 0px; margin: 0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">å¨å
·å·</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HMouldModel" id="HMouldModel" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">ä½åºäºº:</label> |
| | | <div class="layui-input-block" style="margin-left: 85px;"> |
| | | <input type="text" class="layui-input" name="HDeleteMan" id="HDeleteMan" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 75px;">ä½åºæ¥æ:</label> |
| | | <div class="layui-input-block" style="margin-left: 85px;"> |
| | | <input type="datetime" class="layui-input" name="HDeleteDate" id="HDeleteDate" style="background-color:#efefef4d;" readonly disabled> |
| | | </div> |
| | | <div class="layui-form-item" style="padding: 10px; margin: 0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs12"> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"></div> |
| | | <table class="layui-hide" id="wl-table" lay-filter="wl-table"></table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layer-footer" style="z-index: 10; position: fixed; text-align: center; bottom: 0; width:100%; height:50px"> |
| | | <button type="button" lay-submit="" lay-filter="cmdSaver" class="layui-btn" id="cmdSaver">æäº¤</button> |
| | | <button type="button" lay-submit="" lay-filter="cmdDelete" class="layui-btn" id="cmdDelete">å é¤</button> |
| | | <button type="button" lay-submit="" lay-filter="cmdCancel" class="layui-btn" id="cmdCancel">éåº</button> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | <div class="layer-footer" style="text-align: center;"> |
| | | <button type="button" lay-submit="" class="layui-btn buttom_box_little" lay-filter="Saver" id="Saver">æäº¤</button> |
| | | <button type="button" lay-submit="" class="layui-btn buttom_box_little" lay-filter="Add">æ°å¢</button> |
| | | <button type="button" class="layui-btn buttom_box_little" lay-filter="Cancel" id="Cancel">éåº</button> |
| | | </div> |
| | | <!--éèåæ®µ--> |
| | | <input type="hidden" name="lngBillKey" id="lngBillKey"> |
| | | <input type="hidden" name="lngBillSubKey" id="lngBillSubKey"> |
| | | |
| | | <!--éèåæ®µ--> |
| | | <input type="hidden" name="HBillType" id="HBillType"> |
| | | <input type="hidden" name="HRedBlueFlag" id="HRedBlueFlag"> |
| | | <!--失败æç¤ºé³--> |
| | | <div id="" style="display:none;"> |
| | | <audio id="cs" hidden controls> |
| | | <source src="../../video/jingbao.wav" type="audio/ogg"> |
| | | </audio> |
| | | </div> |
| | | <!--æåæç¤ºé³--> |
| | | <div id="" style="display:none;"> |
| | | <audio id="cs2" hidden controls> |
| | | <source src="../../video/success.wav" type="audio/ogg"> |
| | | </audio> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <script> |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index' //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'laydate', 'table', 'element'], function () { |
| | | |
| | | //#region å
Œ
±åé |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | | , layer = layui.layer |
| | | , table = layui.table |
| | | , form = layui.form |
| | | ,laydate = layui.laydate |
| | | , laydate = layui.laydate |
| | | , element = layui.element; |
| | | var HInterID = $('#HInterID').val() |
| | | var HBillNo = $('#HBillNo').val() |
| | | var HBillType = '3803' |
| | | var HRedBlueFlag = false |
| | | var HMaker = sessionStorage["HUserName"] |
| | | var HStockOrgID = sessionStorage["OrganizationID"] //ç»ç»ID |
| | | var HSourceFlag = false //æ¯å¦å·²æ«ç æ å¿ |
| | | var OperationType = 1 //æä½ç±»åï¼1æ°å¢ã2ä»ç¼åå表ä¸è¿åï¼ |
| | | var listOption = []; |
| | | var columns = ""; |
| | | var HModName = "Sc_MouldProdBackBill_PDA"; |
| | | var ModRightName = "CE_MouldProdBack"; //模åæéåæ° |
| | | var titleData = []; //ä¸éè¦æ¾ç¤ºçåæ®µ |
| | | var params = get_UrlVars(); |
| | | var OperationType = params[params[0]] == null ? 1 : params[params[0]]; //ä»ç¼åå表ä¸è¿åæ°æ®ç±»åï¼1æ°å¢ã2ä»ç¼åå表ä¸è¿åï¼ |
| | | var HInterID_Temp = params[params[1]]; //ä»ç¼åå表ä¸è¿ååæ®ID |
| | | var HBillNo_Temp = params[params[2]]; //ä»ç¼åå表ä¸è¿ååæ®å· |
| | | |
| | | //æ¥ææ¶é´éæ©å¨ |
| | | laydate.render({ |
| | | elem: '#HDate' |
| | | , type: 'datetime' |
| | | }); |
| | | laydate.render({ |
| | | elem: '#HMakeDate' |
| | | , type: 'datetime' |
| | | }); |
| | | laydate.render({ |
| | | elem: '#HUpDateDate' |
| | | , type: 'datetime' |
| | | }); |
| | | laydate.render({ |
| | | elem: '#HCheckDate' |
| | | , type: 'datetime' |
| | | }); |
| | | laydate.render({ |
| | | elem: '#HDeleteDate' |
| | | , type: 'datetime' |
| | | }); |
| | | //#endregion |
| | | |
| | | //è¿å
¥é¡µé¢é»è®¤å
æ 卿¡å½¢ç ä¸ |
| | | $("#HBarCode").focus(); |
| | | //夿æ¯å¦ç»å½ æªç»å½åè·³å°ç»å½é¡µ |
| | | if (sessionStorage.login != "login") { |
| | | layer.confirm("ç»å½å¤±æï¼è¯·éæ°ç»å½ï¼", { |
| | | icon: 4, skin: 'layui-layer-lan', title: "温馨æç¤º", closeBtn: 0, btn: ['éæ°ç»å½'] |
| | | }, function () { window.location.href = "../../user/login_pda.html"; }); |
| | | } |
| | | |
| | | //åå§åºæ¬ä¿¡æ¯èµå¼ |
| | | $("#HDate").val(Format(new Date(), "yyyy-MM-dd hh:mm:ss")); //åæ®æ¥æ |
| | | $("#HMakeDate").val(Format(new Date(), "yyyy-MM-dd hh:mm:ss")); //åå»ºæ¥æ |
| | | $("#HMaker").val(sessionStorage["HUserName"]); //å建人 |
| | | $("#HManagerName").val(sessionStorage["HUserName"]); //æä½å |
| | | $("#HManagerID").val(sessionStorage["Czybm"]); //æä½åID |
| | | $("#HDeptName").val(sessionStorage["HDept"]); //é¨é¨ |
| | | $("#HDeptID").val(sessionStorage["HDeptID"]); //é¨é¨ID |
| | | //模治å
·æ¡ç æ¯å¦æ«ææ è®° |
| | | var HProcExchBillNoFlag = false; |
| | | //#region ç¨æ·æ¨¡åæé夿 |
| | | |
| | | //è·åæå¤§åæ®å· |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | type: "GET", |
| | | data: { "HBillType": '3803' }, |
| | | success: function (d) { |
| | | //console.log(d.data); |
| | | $("#HInterID").val("0"); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | } |
| | | }); |
| | | //æ¡å½¢ç åè½¦æ¹æ³ |
| | | $('#HBarCode').on('keydown', function (event) { |
| | | if (event.keyCode == 13) { |
| | | GetMeesageByBarCode(); |
| | | } |
| | | }); |
| | | //ç¡®å® |
| | | form.on('submit(QueDin)', function (data) { |
| | | GetMeesageByBarCode(); |
| | | }); |
| | | //ç¨æ·æ¨¡åæé夿 |
| | | CheckModRight(); |
| | | |
| | | //éåº-å
³é页颿¹æ³ |
| | | $('#Cancel').on('click', function () { |
| | | layer.confirm('æ¨ç¡®å®è¦éåºåï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | parent.layui.admin.events.closeThisTabs(); //å
³éé¡µç¾ |
| | | }); |
| | | }) |
| | | |
| | | |
| | | |
| | | |
| | | //æäº¤ |
| | | form.on('submit(Saver)', function (data) { |
| | | if (!$("#HBarCode").val()) { |
| | | layer.msg("è¯·æ«æå¨å
·æ¡ç !", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | if (!$("#HWHID").val()) { |
| | | layer.msg("è¯·éæ©ä»åº!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | if ($("#HSPID").val() == "" || $("#HSPID").val() == null) { |
| | | data.field.HSPID = "0";//åºä½ |
| | | } |
| | | data.field.HMaker = sessionStorage["HUserName"];//å¶å人 |
| | | var sMainSub = JSON.stringify(data.field); |
| | | var index = layer.load(); |
| | | function CheckModRight() { |
| | | layer.load(3); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: GetWEBURL() + "/Sc_MouldProdBackBill/MouldProdBackBill_Save", |
| | | async: true, |
| | | data: { "sMainSub": sMainSub }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { |
| | | layer.close(index); |
| | | layer.msg("æäº¤æå"); |
| | | $('#Saver').removeClass("buttom_box_little"); |
| | | $('#Saver').addClass("layui-btn-disabled").attr("disabled", true); |
| | | type: "GET", |
| | | url: GetWEBURL() + "/WEBSController/CheckModRight_Json", |
| | | async: false, //asyncç¨äºæ§å¶ï¼falseï¼åæ¥åï¼trueï¼å¼æ¥ï¼é»è®¤çæ¯trueï¼å³è¯·æ±é»è®¤çæ¯å¼æ¥è¯·æ± |
| | | data: { "ModRightName": ModRightName, "HUserName": HMaker }, |
| | | success: function (d) { |
| | | if (d.count == 1) { |
| | | } |
| | | else { |
| | | layer.close(index); |
| | | layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | layer.msg(d.Message, { |
| | | icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { parent.location.href = "../../../views/index_Mobile.html"; }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.close(index); |
| | | layer.msg("é误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | complete: function (XHR, TS) { XHR = null }//åæ¶èµæº |
| | | }); |
| | | }); |
| | | //æ°å¢ |
| | | form.on('submit(Add)', function () { |
| | | window.location.reload(); |
| | | }) |
| | | //é¨é¨å¼¹çª |
| | | form.on('submit(Department)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'é¨é¨å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../Baseset/åºç¡èµæ/Gy_DepartmentList.html', 'yes'], |
| | | cancel: function (index, layero) { |
| | | } |
| | | }); |
| | | }); |
| | | layer.closeAll("loading"); |
| | | } |
| | | //#endregion |
| | | |
| | | //è´è´£äººå¼¹çª |
| | | form.on('submit(HManager)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'è´è´£äººå表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HWorker', 'yes'], |
| | | cancel: function (index, layero) { |
| | | } |
| | | }); |
| | | }); |
| | | //失败æç¤ºé³ |
| | | function playSound() { |
| | | console.log("playSound"); |
| | | var audio = document.getElementById("cs"); |
| | | audio.play(); |
| | | audio.onended = function () { |
| | | // å½é³é¢ææ¥å®ææ¶ï¼è°ç¨ pause å设置 currentTime 为 0 ä»¥åæ¢ææ¥å¹¶éç½® |
| | | audio.pause(); |
| | | audio.currentTime = 0; |
| | | }; |
| | | } |
| | | //æåæç¤ºé³ |
| | | function playSound_OK() { |
| | | console.log("playSound_OK"); |
| | | var audio = document.getElementById("cs2"); |
| | | audio.play(); |
| | | audio.onended = function () { |
| | | // å½é³é¢ææ¥å®ææ¶ï¼è°ç¨ pause å设置 currentTime 为 0 ä»¥åæ¢ææ¥å¹¶éç½® |
| | | audio.pause(); |
| | | audio.currentTime = 0; |
| | | }; |
| | | } |
| | | |
| | | //#region åå§åçé¢ |
| | | |
| | | //ä»åº |
| | | form.on('submit(Warehouse)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'ä»åºå表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../Baseset/åºç¡èµæ/Gy_WarehouseList.html?Type=HWHID', 'yes'], |
| | | cancel: function (index, layero) { |
| | | } |
| | | }); |
| | | }); |
| | | set_ClearBill(); |
| | | |
| | | //éæ©ä»ä½ |
| | | form.on('submit(StockPlace)', function () {//éæ©ä»ä½ |
| | | var HWHID = $("#HWHID").val(); |
| | | if (HWHID == "") { |
| | | layer.msg("请å
éæ©ä»åº", { index: 0 }); |
| | | return; |
| | | function set_ClearBill() { |
| | | //表头åå§åèµå¼ï¼æ ¹æ®ç»å½ç¨æ·è·å é»è®¤ä»åºãé¨é¨ãéªæ¶ãä¿ç®¡ãç»ç»çï¼ new |
| | | $("#HWHID").val(sessionStorage["HWHID"]); |
| | | $("#HWHName").val(sessionStorage["HWHName"]); |
| | | $("#HDeptID").val(sessionStorage["HDeptID"]); |
| | | $("#HDeptName").val(sessionStorage["HDept"]); |
| | | $("#HSecManagerID").val(sessionStorage["HSecManagerID"]); |
| | | $("#HSecManagerName").val(sessionStorage["HSecManager"]); |
| | | $("#HKeeperID").val(sessionStorage["HKeeperID"]); |
| | | $("#HKeeperName").val(sessionStorage["HKeeper"]); |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | $("#HDate").val(Pub_Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HStockOrgID").val(sessionStorage["OrganizationID"]); |
| | | $("#HStockOrgName").val(sessionStorage["Organization"]); |
| | | $("#HBillType").val("3803"); |
| | | $("#HRedBlueFlag").val("false"); |
| | | if (sessionStorage["HWhSPFlag"]) { |
| | | $("#HStockPlaceID").val("0"); |
| | | $("#HStockPlaceName").val(""); |
| | | $("#HStockPlaceName").attr("disabled", "disabled"); |
| | | $('#HSpID-BT').addClass("layui-btn-disabled").attr("disabled", true);//æé®ç¦ç¨ |
| | | } |
| | | else { |
| | | $("#HStockPlaceID").val(sessionStorage["HSPID"]); |
| | | $("#HStockPlaceName").val(sessionStorage["HSPName"]); |
| | | $("#HStockPlaceName").removeAttr("disabled"); |
| | | $('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//æé®æ¢å¤æ£å¸¸ç¶æ |
| | | } |
| | | |
| | | //é»è®¤æ¾ç¤ºé¡µé¢ |
| | | element.tabChange('tab-Sc_MouldProdBackBill_PDA', '1'); |
| | | set_InitDate(); //åå§åè¡¨åæ¶é´ |
| | | set_InitGrid(); //åå§åè¡¨æ ¼ |
| | | |
| | | var data = []; |
| | | listOption.cols = [[ |
| | | { field: 'æ°é', title: 'æ°é', width: 100 } |
| | | , { field: 'å¨å
·æ¡ç ', title: 'å¨å
·æ¡ç ', width: 100 } |
| | | , { field: 'å¨å
·ä»£ç ', title: 'å¨å
·ä»£ç ', width: 100 } |
| | | , { field: 'å¨å
·åç§°', title: 'å¨å
·åç§°', width: 100 } |
| | | , { field: 'å¨å
·å·', title: 'å¨å
·å·', width: 100 } |
| | | ]]; |
| | | listOption.data = data; |
| | | table.render(listOption); |
| | | |
| | | //å
æ é»è®¤å¨æ¡ç ä½ç½®ä¸ |
| | | var pFocus = $("#HBarCode"); |
| | | pFocus.select(); |
| | | pFocus.focus(); //è·åå
æ |
| | | } |
| | | |
| | | //åå§åè¡¨åæ¶é´æä»¶ |
| | | function set_InitDate() { |
| | | //常è§ç¨æ³ |
| | | laydate.render({ |
| | | elem: '#HDate' |
| | | }); |
| | | } |
| | | //åå§åè¡¨æ ¼ |
| | | function set_InitGrid() { |
| | | listOption = { |
| | | elem: '#wl-table' |
| | | //, toolbar: '#toolbarDemo' |
| | | , totalRow: true |
| | | , height: 'full-60' |
| | | , cellMinWidth: 90 |
| | | , limit: 50 |
| | | }; |
| | | } |
| | | |
| | | //夿æ¯å¦æ°å¢ï¼è·åæå¤§åæ®å· |
| | | if (HInterID != 0) { |
| | | HSourceFlag = true; |
| | | } |
| | | //ä»ç¼åå表ç¼è¾åè½è·³è½¬è³åæ®æ¨¡å |
| | | else if (OperationType == 2) { |
| | | $("#HInterID").val(HInterID_Temp); |
| | | $("#HBillNo").val(HBillNo_Temp); |
| | | HInterID = $('#HInterID').val() |
| | | HBillNo = $('#HBillNo').val() |
| | | $("#HBarCode").select(); |
| | | $("#HBarCode").focus(); //è·åå
æ |
| | | //æ¾ç¤ºè¡¨ä½æç» |
| | | DisBillEntryList(); |
| | | HSourceFlag = true; |
| | | element.tabChange('tab-Sc_MouldProdBackBill_PDA', '2'); |
| | | } |
| | | else { |
| | | //è·åæå¤§åæ®IDãåæ®å· |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/WEBSController/GetMaxBillNoAndID_Json", |
| | | async: false, //asyncç¨äºæ§å¶ï¼falseï¼åæ¥åï¼trueï¼å¼æ¥ï¼é»è®¤çæ¯trueï¼å³è¯·æ±é»è®¤çæ¯å¼æ¥è¯·æ± |
| | | data: { "HBillType": HBillType }, |
| | | success: function (d) { |
| | | if (d.count == 1) { |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | HInterID = $('#HInterID').val() |
| | | HBillNo = $('#HBillNo').val() |
| | | } |
| | | else { |
| | | layer.msg(d.Message, { icon: 0, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }, |
| | | complete: function (XHR, TS) { XHR = null }//åæ¶èµæº |
| | | }); |
| | | HSourceFlag = false; |
| | | } |
| | | |
| | | //#endregion |
| | | |
| | | //#region åºç¡èµæéæ© |
| | | |
| | | //#region ä»åº |
| | | //æ«æä»åºæ¡ç |
| | | $('#HWHName').on('keydown', function (event) { |
| | | if (event.keyCode == 13) { |
| | | var HWHName = $('#HWHName').val() |
| | | if (HWHName == '') { |
| | | playSound(); |
| | | $("#HWHID").val("0"); |
| | | $("#HWHName").val(""); |
| | | $("#HStockPlaceID").val("0"); |
| | | $("#HStockPlaceName").val(""); |
| | | $("#HStockPlaceName").removeAttr("disabled"); |
| | | $('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//æé®æ¢å¤æ£å¸¸ç¶æ |
| | | layer.msg("ä»åºæ¡ç 为空ï¼", { |
| | | icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HWHName").select(); |
| | | $("#HWHName").focus(); |
| | | }); |
| | | return; |
| | | } |
| | | |
| | | layer.load(3); |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/WEBSController/GetWarehouse_Json", |
| | | async: false, //asyncç¨äºæ§å¶ï¼falseï¼åæ¥åï¼trueï¼å¼æ¥ï¼é»è®¤çæ¯trueï¼å³è¯·æ±é»è®¤çæ¯å¼æ¥è¯·æ± |
| | | data: { "HBarCode": HWHName, "HStockOrgID": HStockOrgID }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | $("#HWHID").val(result.data[0].HItemID); |
| | | $("#HWHName").val(result.data[0].HName); |
| | | $("#HStockPlaceID").val("0"); |
| | | $("#HStockPlaceName").val(""); |
| | | if (result.data[0].HSPFlag == 0) { |
| | | $("#HStockPlaceName").attr("disabled", "disabled"); |
| | | $('#HSpID-BT').addClass("layui-btn-disabled").attr("disabled", true);//æé®ç¦ç¨ |
| | | } |
| | | else { |
| | | $("#HStockPlaceName").removeAttr("disabled"); |
| | | $('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//æé®æ¢å¤æ£å¸¸ç¶æ |
| | | } |
| | | element.tabChange('tab-Sc_MouldProdBackBill_PDA', '1'); |
| | | //å
æ æ¾ç¤ºå°æ¡ç ä¸ |
| | | $("#HBarCode").select(); |
| | | $("#HBarCode").focus(); |
| | | } |
| | | else { |
| | | playSound(); |
| | | $("#HWHID").val("0"); |
| | | $("#HWHName").val(""); |
| | | $("#HStockPlaceID").val("0"); |
| | | $("#HStockPlaceName").val(""); |
| | | $("#HStockPlaceName").removeAttr("disabled"); |
| | | $('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//æé®æ¢å¤æ£å¸¸ç¶æ |
| | | layer.msg(result.Message, { |
| | | icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HWHName").select(); |
| | | $("#HWHName").focus(); |
| | | }); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | complete: function (XHR, TS) { XHR = null }//åæ¶èµæº |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | //ä»åºæé® |
| | | form.on('submit(HWHID-BT)', function () { |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ä»ä½å表' |
| | | , area: ['100%', '100%'] |
| | | , title: 'ä»åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_StockPlaceList.html?HWhID=' + HWHID + '&Type=HSpID', 'yes'] |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_WarehouseListNew.html?Type=HWHID&HOrgID=' + HStockOrgID + '', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | //以ä¸ä¸ºlayui模å |
| | | }); |
| | | //#endregion |
| | | |
| | | //è¿åé¨é¨ |
| | | function GetHDeptNameValue(obj) { |
| | | $("#HDeptName").val(obj[0].HName); |
| | | $("#HDeptID").val(obj[0].HItemID); |
| | | } |
| | | //è¿åè´è´£äºº |
| | | function GetHWorkerValue(obj) { |
| | | $("#HManagerName").val(obj[0].HName); |
| | | $("#HManagerID").val(obj[0].HItemID); |
| | | } |
| | | //ä»åº |
| | | function GetHWHValue(obj) { |
| | | $("#HWHName").val(obj[0].HName); |
| | | $("#HWHID").val(obj[0].HItemID); |
| | | } |
| | | //è¿åä»ä½ |
| | | function GetHSpValue(obj) { //è¿åä»ä½ |
| | | if (obj.length == 0) { |
| | | layer.msg("请å
éæ©ä»ä½", { index: 0 }); |
| | | } else { |
| | | $("#HSPName").val(obj[0].HName); |
| | | $("#HSPID").val(obj[0].HItemID); |
| | | } |
| | | } |
| | | //æ«æ¡ç |
| | | function GetMeesageByBarCode(obj) { //è¿åå·¥ä½ä¸å¿ |
| | | var HBarCode = $('#HBarCode').val();//æ¡å½¢ç ï¼æµè½¬å¡å·ï¼ï¼æ°æ®åºä¸ä¸ºåæ®å·ï¼ |
| | | if (!HBarCode) { |
| | | layer.msg("æ¡å½¢ç ä¸è½ä¸ºç©ºï¼") |
| | | return; |
| | | } |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Mj_PDA_MoudlCheckBill/txtHBarCode_KeyDown", |
| | | type: "GET", |
| | | data: { "HBarCode": HBarCode }, |
| | | success: function (result) { |
| | | if (result.data.length == 1) { |
| | | var data = result.data[0]; |
| | | $("#HMouldID").val(data.hinterid); |
| | | $("#HBarName").val(data.HName); |
| | | $("#HBarSpec").val(data.HModel); |
| | | $("#HBarModel").val(data.HModel2); |
| | | $("#HLeaveLife").val(data.HLeaveLife); |
| | | $("#HBarCode").attr("readonly", "readonly");//æ¡å½¢ç åªè¯» |
| | | $("#HBarCode").css("background-color", "#efefef4d"); |
| | | //#region ä»ä½ |
| | | //æ«æä»ä½æ¡ç |
| | | $('#HStockPlaceName').on('keydown', function (event) { |
| | | if (event.keyCode == 13) { |
| | | //ä»åºææ¬æ¡ä¸ºç©ºæ¶ï¼æ¸
空对åºID |
| | | if ($("#HWHName").val() == '') { |
| | | $("#HWHID").val("0"); |
| | | } |
| | | var sHWHID = $("#HWHID").val() |
| | | var HStockPlaceName = $('#HStockPlaceName').val() |
| | | if (HStockPlaceName == '') { |
| | | playSound(); |
| | | $("#HWHID").val("0"); |
| | | $("#HWHName").val(""); |
| | | $("#HStockPlaceID").val("0"); |
| | | $("#HStockPlaceName").val(""); |
| | | layer.msg("ä»ä½æ¡ç 为空ï¼", { |
| | | icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HStockPlaceName").select(); |
| | | $("#HStockPlaceName").focus(); |
| | | }); |
| | | return; |
| | | } |
| | | |
| | | HProcExchBillNoFlag = true; |
| | | layer.close(index); |
| | | } |
| | | else { |
| | | layer.close(index); |
| | | layer.msg("æªæ¥æ¾å°æ°æ®", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.close(index); |
| | | layer.msg("æ¥å£è¯·æ±å¤±è´¥ï¼" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | layer.load(3); |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/WEBSController/GetStockPlace_Json", |
| | | async: false, //asyncç¨äºæ§å¶ï¼falseï¼åæ¥åï¼trueï¼å¼æ¥ï¼é»è®¤çæ¯trueï¼å³è¯·æ±é»è®¤çæ¯å¼æ¥è¯·æ± |
| | | data: { "HBarCode": HStockPlaceName, "HWhID": sHWHID, "HStockOrgID": HStockOrgID }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | $("#HStockPlaceName").val(result.data[0].HName); |
| | | $("#HStockPlaceID").val(result.data[0].HItemID); |
| | | $("#HWHName").val(result.data[0].HWhName); |
| | | $("#HWHID").val(result.data[0].HWHID); |
| | | element.tabChange('tab-Sc_MouldProdBackBill_PDA', '1'); |
| | | //å
æ æ¾ç¤ºå°æ¡ç ä¸ |
| | | $("#HBarCode").select(); |
| | | $("#HBarCode").focus(); |
| | | } |
| | | else { |
| | | playSound(); |
| | | $("#HWHID").val("0"); |
| | | $("#HWHName").val(""); |
| | | $("#HStockPlaceID").val("0"); |
| | | $("#HStockPlaceName").val(""); |
| | | layer.msg(result.Message, { |
| | | icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HStockPlaceName").select(); |
| | | $("#HStockPlaceName").focus(); |
| | | }); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | complete: function (XHR, TS) { XHR = null }//åæ¶èµæº |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | //ä»ä½æé® |
| | | form.on('submit(HSpID-BT)', function () { |
| | | //ä»åºææ¬æ¡ä¸ºç©ºæ¶ï¼æ¸
空对åºID |
| | | if ($("#HWHName").val() == '') { |
| | | $("#HWHID").val("0"); |
| | | } |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'ä»ä½å表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_StockPlaceListNew.html?HWhID=' + $("#HWHID").val() + '&Type=HSpID&HOrgID=' + HStockOrgID + '', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | //#endregion |
| | | |
| | | //#region ä¿ç®¡å |
| | | //æ«æä¿ç®¡åæ¡ç |
| | | $('#HKeeperName').on('keydown', function (event) { |
| | | if (event.keyCode == 13) { |
| | | var HKeeperName = $('#HKeeperName').val() |
| | | if (HKeeperName == '') { |
| | | playSound(); |
| | | $("#HKeeperID").val("0"); |
| | | $("#HKeeperName").val(""); |
| | | layer.msg("ä¿ç®¡åæ¡ç 为空ï¼", { |
| | | icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HKeeperName").select(); |
| | | $("#HKeeperName").focus(); |
| | | }); |
| | | return; |
| | | } |
| | | |
| | | layer.load(3); |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/WEBSController/GetEmployee_Json", |
| | | async: false, //asyncç¨äºæ§å¶ï¼falseï¼åæ¥åï¼trueï¼å¼æ¥ï¼é»è®¤çæ¯trueï¼å³è¯·æ±é»è®¤çæ¯å¼æ¥è¯·æ± |
| | | data: { "HBarCode": HKeeperName }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | $("#HKeeperID").val(result.data[0].HItemID); |
| | | $("#HKeeperName").val(result.data[0].HName); |
| | | element.tabChange('tab-Sc_MouldProdBackBill_PDA', '1'); |
| | | //å
æ æ¾ç¤ºå°æ¡ç ä¸ |
| | | $("#HBarCode").select(); |
| | | $("#HBarCode").focus(); |
| | | } |
| | | else { |
| | | playSound(); |
| | | $("#HKeeperID").val("0"); |
| | | $("#HKeeperName").val(""); |
| | | layer.msg(result.Message, { |
| | | icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HKeeperName").select(); |
| | | $("#HKeeperName").focus(); |
| | | }); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | complete: function (XHR, TS) { XHR = null }//åæ¶èµæº |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | //ä¿ç®¡åæé® |
| | | form.on('submit(HKeeperID-BT)', function () { |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HKeeper', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | //#endregion |
| | | |
| | | //#region éªæ¶å |
| | | //æ«æéªæ¶åæ¡ç |
| | | $('#HSecManagerName').on('keydown', function (event) { |
| | | if (event.keyCode == 13) { |
| | | var HSecManagerName = $('#HSecManagerName').val() |
| | | if (HSecManagerName == '') { |
| | | playSound(); |
| | | $("#HSecManagerID").val("0"); |
| | | $("#HSecManagerName").val(""); |
| | | layer.msg("éªæ¶åæ¡ç 为空ï¼", { |
| | | icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HSecManagerName").select(); |
| | | $("#HSecManagerName").focus(); |
| | | }); |
| | | return; |
| | | } |
| | | |
| | | layer.load(3); |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/WEBSController/GetEmployee_Json", |
| | | async: false, //asyncç¨äºæ§å¶ï¼falseï¼åæ¥åï¼trueï¼å¼æ¥ï¼é»è®¤çæ¯trueï¼å³è¯·æ±é»è®¤çæ¯å¼æ¥è¯·æ± |
| | | data: { "HBarCode": HSecManagerName }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | $("#HSecManagerID").val(result.data[0].HItemID); |
| | | $("#HSecManagerName").val(result.data[0].HName); |
| | | element.tabChange('tab-Sc_MouldProdBackBill_PDA', '1'); |
| | | //å
æ æ¾ç¤ºå°æ¡ç ä¸ |
| | | $("#HBarCode").select(); |
| | | $("#HBarCode").focus(); |
| | | } |
| | | else { |
| | | playSound(); |
| | | $("#HSecManagerID").val("0"); |
| | | $("#HSecManagerName").val(""); |
| | | layer.msg(result.Message, { |
| | | icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HSecManagerName").select(); |
| | | $("#HSecManagerName").focus(); |
| | | }); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | complete: function (XHR, TS) { XHR = null }//åæ¶èµæº |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | //éªæ¶åæé® |
| | | form.on('submit(HSecManagerID-BT)', function () { |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HSecManager', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | //#endregion |
| | | |
| | | //#region é¨é¨ |
| | | //æ«æé¨é¨æ¡ç |
| | | $('#HDeptName').on('keydown', function (event) { |
| | | if (event.keyCode == 13) { |
| | | var HDeptName = $('#HDeptName').val() |
| | | if (HDeptName == '') { |
| | | playSound(); |
| | | $("#HDeptID").val("0"); |
| | | $("#HDeptName").val(""); |
| | | layer.msg("é¨é¨æ¡ç 为空ï¼", { |
| | | icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HDeptName").select(); |
| | | $("#HDeptName").focus(); |
| | | }); |
| | | return; |
| | | } |
| | | |
| | | layer.load(3); |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/WEBSController/GetDepartment_Json", |
| | | async: false, //asyncç¨äºæ§å¶ï¼falseï¼åæ¥åï¼trueï¼å¼æ¥ï¼é»è®¤çæ¯trueï¼å³è¯·æ±é»è®¤çæ¯å¼æ¥è¯·æ± |
| | | data: { "HBarCode": HDeptName }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | $("#HDeptID").val(result.data[0].HItemID); |
| | | $("#HDeptName").val(result.data[0].HName); |
| | | element.tabChange('tab-Sc_MouldProdBackBill_PDA', '1'); |
| | | //å
æ æ¾ç¤ºå°æ¡ç ä¸ |
| | | $("#HBarCode").select(); |
| | | $("#HBarCode").focus(); |
| | | } |
| | | else { |
| | | playSound(); |
| | | $("#HDeptID").val("0"); |
| | | $("#HDeptName").val(""); |
| | | layer.msg(result.Message, { |
| | | icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HDeptName").select(); |
| | | $("#HDeptName").focus(); |
| | | }); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | complete: function (XHR, TS) { XHR = null }//åæ¶èµæº |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | //é¨é¨æé® |
| | | form.on('submit(HDeptID-BT)', function () { |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'é¨é¨å表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_DepartmentList.html', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | //#endregion |
| | | |
| | | //#region 徿¥åä½ |
| | | //æ«æå¾æ¥å使¡ç |
| | | $('#HSupName').on('keydown', function (event) { |
| | | if (event.keyCode == 13) { |
| | | var HSupName = $('#HSupName').val() |
| | | if (HSupName == '') { |
| | | playSound(); |
| | | $("#HSupID").val("0"); |
| | | $("#HSupName").val(""); |
| | | layer.msg("徿¥å使¡ç 为空ï¼", { |
| | | icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HSupName").select(); |
| | | $("#HSupName").focus(); |
| | | }); |
| | | return; |
| | | } |
| | | |
| | | layer.load(3); |
| | | if ($("#HSupTypeID").val() == '1') { //ä¾åºå |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/WEBSController/GetSupplier_Json", |
| | | async: false, //asyncç¨äºæ§å¶ï¼falseï¼åæ¥åï¼trueï¼å¼æ¥ï¼é»è®¤çæ¯trueï¼å³è¯·æ±é»è®¤çæ¯å¼æ¥è¯·æ± |
| | | data: { "HBarCode": HSupName, "HStockOrgID": HStockOrgID }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | $("#HSupID").val(result.data[0].HItemID); |
| | | $("#HSupName").val(result.data[0].HName); |
| | | element.tabChange('tab-Sc_MouldProdBackBill_PDA', '1'); |
| | | //å
æ æ¾ç¤ºå°æ¡ç ä¸ |
| | | $("#HBarCode").select(); |
| | | $("#HBarCode").focus(); |
| | | } |
| | | else { |
| | | playSound(); |
| | | $("#HSupID").val("0"); |
| | | $("#HSupName").val(""); |
| | | layer.msg(result.Message, { |
| | | icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HSupName").select(); |
| | | $("#HSupName").focus(); |
| | | }); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | complete: function (XHR, TS) { XHR = null }//åæ¶èµæº |
| | | }); |
| | | } |
| | | else if ($("#HSupTypeID").val() == '2') { //å®¢æ· |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/WEBSController/GetCustomer_Json", |
| | | async: false, //asyncç¨äºæ§å¶ï¼falseï¼åæ¥åï¼trueï¼å¼æ¥ï¼é»è®¤çæ¯trueï¼å³è¯·æ±é»è®¤çæ¯å¼æ¥è¯·æ± |
| | | data: { "HBarCode": HSupName, "HStockOrgID": HStockOrgID }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | $("#HSupID").val(result.data[0].HItemID); |
| | | $("#HSupName").val(result.data[0].HName); |
| | | element.tabChange('tab-Sc_MouldProdBackBill_PDA', '1'); |
| | | //å
æ æ¾ç¤ºå°æ¡ç ä¸ |
| | | $("#HBarCode").select(); |
| | | $("#HBarCode").focus(); |
| | | } |
| | | else { |
| | | playSound(); |
| | | $("#HSupID").val("0"); |
| | | $("#HSupName").val(""); |
| | | layer.msg(result.Message, { |
| | | icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HSupName").select(); |
| | | $("#HSupName").focus(); |
| | | }); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | complete: function (XHR, TS) { XHR = null }//åæ¶èµæº |
| | | }); |
| | | } |
| | | else { //é¨é¨ |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/WEBSController/GetDepartment_Json", |
| | | async: false, //asyncç¨äºæ§å¶ï¼falseï¼åæ¥åï¼trueï¼å¼æ¥ï¼é»è®¤çæ¯trueï¼å³è¯·æ±é»è®¤çæ¯å¼æ¥è¯·æ± |
| | | data: { "HBarCode": HSupName }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | $("#HSupID").val(result.data[0].HItemID); |
| | | $("#HSupName").val(result.data[0].HName); |
| | | element.tabChange('tab-Sc_MouldProdBackBill_PDA', '1'); |
| | | //å
æ æ¾ç¤ºå°æ¡ç ä¸ |
| | | $("#HBarCode").select(); |
| | | $("#HBarCode").focus(); |
| | | } |
| | | else { |
| | | playSound(); |
| | | $("#HSupID").val("0"); |
| | | $("#HSupName").val(""); |
| | | layer.msg(result.Message, { |
| | | icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HSupName").select(); |
| | | $("#HSupName").focus(); |
| | | }); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | complete: function (XHR, TS) { XHR = null }//åæ¶èµæº |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | |
| | | //徿¥åä½æé® |
| | | form.on('submit(HSupID-BT)', function () { |
| | | var url = ""; |
| | | var HSourceTitle = ""; |
| | | if ($("#HSupTypeID").val() == '1') { |
| | | url = '../../../views/Baseset/åºç¡èµæ/Gy_SupplierListNew.html?HStockOrgID=' + HStockOrgID + ''; |
| | | HSourceTitle = "ä¾åºå"; |
| | | } |
| | | else if ($("#HSupTypeID").val() == '2') { |
| | | url = '../../../views/Baseset/åºç¡èµæ/Gy_CustomerListNew.html?HStockOrgID=' + HStockOrgID + ''; |
| | | HSourceTitle = "客æ·"; |
| | | } |
| | | else { |
| | | url = "../../../views/Baseset/åºç¡èµæ/Gy_DepartmentList.html?Type=HDept2"; |
| | | HSourceTitle = "é¨é¨"; |
| | | } |
| | | |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: HSourceTitle + 'å表'//æ é¢ |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: [url, 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | //#endregion |
| | | |
| | | //#region 徿¥ç±»åéæ© |
| | | form.on('select(HSupTypeID)', function (data) { |
| | | $("#HSupID").val("0"); |
| | | $("#HSupName").val(""); |
| | | $("#HSupName").select(); |
| | | $("#HSupName").focus(); |
| | | }); |
| | | //#endregion |
| | | |
| | | //#endregion |
| | | |
| | | |
| | | //#region åè½æ§ä»¶ |
| | | |
| | | //#region æäº¤ |
| | | form.on('submit(cmdSaver)', function (data) { |
| | | //ä»åºãä»ä½ãä¿ç®¡ãéªæ¶ãé¨é¨ã徿¥åä½ææ¬æ¡ä¸ºç©ºæ¶ï¼æ¸
空对åºID |
| | | if ($("#HWHName").val() == '') { |
| | | $("#HWHID").val("0"); |
| | | data.field.HWHID = $('#HWHID').val() |
| | | } |
| | | if ($("#HStockPlaceName").val() == '') { |
| | | $("#HStockPlaceID").val("0"); |
| | | data.field.HStockPlaceID = $('#HStockPlaceID').val() |
| | | } |
| | | if ($("#HKeeperName").val() == '') { |
| | | $("#HKeeperID").val("0"); |
| | | data.field.HKeeperID = $('#HKeeperID').val() |
| | | } |
| | | if ($("#HSecManagerName").val() == '') { |
| | | $("#HSecManagerID").val("0"); |
| | | data.field.HSecManagerID = $('#HSecManagerID').val() |
| | | } |
| | | if ($("#HDeptName").val() == '') { |
| | | $("#HDeptID").val("0"); |
| | | data.field.HDeptID = $('#HDeptID').val() |
| | | } |
| | | if ($("#HSupName").val() == '') { |
| | | $("#HSupID").val("0"); |
| | | data.field.HSupID = $('#HSupID').val() |
| | | } |
| | | |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = table.cache['wl-table']; |
| | | if (AllowLoadData(sSubStr) != false)//é空éªè¯ |
| | | { |
| | | layer.load(3); |
| | | $.ajax( |
| | | { |
| | | type: "POST", |
| | | url: GetWEBURL() + "/MouldController/set_SaveMouldProdBackBill_Json", |
| | | async: false, //asyncç¨äºæ§å¶ï¼falseï¼åæ¥åï¼trueï¼å¼æ¥ï¼é»è®¤çæ¯trueï¼å³è¯·æ±é»è®¤çæ¯å¼æ¥è¯·æ± |
| | | data: { "oMain": sMainStr }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäº |
| | | layer.confirm(data.Message, { |
| | | icon: 1, skin: 'layui-layer-lan', title: "温馨æç¤º", closeBtn: 0, btn: ['æ°å¢','å
³é'], |
| | | btn2: function () { |
| | | if (OperationType == 2) { |
| | | parent.location.href = "../../模治å
·ç®¡ç/模å
·ç产éåºå/Sc_MouldProdBackBill_PDA.html"; |
| | | } |
| | | else { |
| | | parent.location.href = "../../../views/index_Mobile.html"; |
| | | } |
| | | }//å
³é |
| | | } |
| | | , function () { |
| | | location.replace('Sc_MouldProdBackBill_PDA.html?OperationType=1&HInterID=0'); |
| | | });//æ°å¢ |
| | | } |
| | | else { |
| | | layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }, |
| | | complete: function (XHR, TS) { XHR = null },//åæ¶èµæº |
| | | error: function (err) { |
| | | layer.msg("é误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | layer.closeAll("loading"); |
| | | return; |
| | | } |
| | | }); |
| | | |
| | | //#endregion |
| | | |
| | | //#region å é¤ |
| | | |
| | | form.on('submit(cmdDelete)', function () { |
| | | var checkStatus = table.checkStatus('wl-table') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length == 1) { |
| | | layer.confirm("确认è¦å é¤éä¸è¡æææ«ç è®°å½ï¼å é¤åå°ä¸å¯æ¢å¤ï¼", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | var HBarCode = data[0].å¨å
·æ¡ç |
| | | |
| | | layer.load(3) |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/MouldController/set_DelMouldStockBillMain_Temp_Json", |
| | | async: false, //asyncç¨äºæ§å¶ï¼falseï¼åæ¥åï¼trueï¼å¼æ¥ï¼é»è®¤çæ¯trueï¼å³è¯·æ±é»è®¤çæ¯å¼æ¥è¯·æ± |
| | | data: { "HInterID": HInterID, "HBillType": HBillType, "HBarCode": HBarCode }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { |
| | | layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | //æ¾ç¤ºè¡¨ä½æç» |
| | | DisBillEntryList(); |
| | | }); |
| | | } |
| | | else { |
| | | playSound(); |
| | | layer.msg(data.Message, { icon: 2, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }, |
| | | complete: function (XHR, TS) { XHR = null },//åæ¶èµæº |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | layer.closeAll("loading"); |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡è®°å½ï¼è¿è¡å é¤ï¼'); |
| | | } |
| | | }); |
| | | |
| | | //#endregion |
| | | |
| | | //#region éåº |
| | | |
| | | form.on('submit(cmdCancel)', function () { |
| | | layer.confirm('æ¨ç¡®å®è¦éåºåï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | if (OperationType == 2) { |
| | | var index = parent.layer.getFrameIndex(window.name); //å
å¾å°å½åiframeå±çç´¢å¼ |
| | | parent.location.reload(); //å·æ°ç¶é¡µé¢ï¼æ³¨æä¸å®è¦å¨å
³éå½åiframeå±ä¹åæ§è¡å·æ° |
| | | parent.layer.close(index); //åæ§è¡å
³é |
| | | } |
| | | else { |
| | | parent.location.href = "../../../views/index_Mobile.html"; |
| | | } |
| | | }); |
| | | }) |
| | | |
| | | //#endregion |
| | | |
| | | //#endregion |
| | | |
| | | |
| | | //#region æ«æå¨å
·æ¡ç |
| | | |
| | | //æ«ææ¡ç |
| | | $('#HBarCode').on('keydown', function (event) { |
| | | if (event.keyCode == 13) { |
| | | GetMeesageByBarCode(); |
| | | $("#HBarCode").select(); |
| | | $("#HBarCode").focus(); //è·åå
æ |
| | | } |
| | | }); |
| | | |
| | | //æ¡ç æé® |
| | | form.on('submit(HBarCode-BT)', function (data) { |
| | | GetMeesageByBarCode(); |
| | | $("#HBarCode").select(); |
| | | $("#HBarCode").focus(); //è·åå
æ |
| | | }); |
| | | |
| | | //æ«æ¡ç |
| | | function GetMeesageByBarCode(obj) { |
| | | //ä»åºãä»ä½ææ¬æ¡ä¸ºç©ºæ¶ï¼æ¸
空对åºID |
| | | if ($("#HWHName").val() == '') { |
| | | $("#HWHID").val("0"); |
| | | } |
| | | if ($("#HStockPlaceName").val() == '') { |
| | | $("#HStockPlaceID").val("0"); |
| | | } |
| | | var sOldBarCode = $('#HBarCode').val() |
| | | var HDeleteFlag = sOldBarCode.substring(0, 1); |
| | | var sBarCode = sOldBarCode.slice(1); |
| | | var sHWHID = $("#HWHID").val() |
| | | var sHSPID = $("#HStockPlaceID").val() |
| | | var sSourceBillNo ="" |
| | | var sSourceBillType ="-1" |
| | | |
| | | if (HDeleteFlag == "*") { |
| | | if (sBarCode == "") { |
| | | playSound(); |
| | | layer.msg("è¯·æ«æè¦å é¤çæ¡ç ", { |
| | | icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HBarCode").select(); |
| | | $("#HBarCode").focus(); |
| | | }); |
| | | return; |
| | | } |
| | | else { |
| | | $('#HBarCode').val(""); |
| | | } |
| | | layer.load(3) |
| | | $.ajax( |
| | | { |
| | | type: "GET", |
| | | url: GetWEBURL() + "/MouldController/set_DelMouldStockBillMain_Temp_Json", |
| | | async: false, //asyncç¨äºæ§å¶ï¼falseï¼åæ¥åï¼trueï¼å¼æ¥ï¼é»è®¤çæ¯trueï¼å³è¯·æ±é»è®¤çæ¯å¼æ¥è¯·æ± |
| | | data: { "HInterID": HInterID, "HBillType": HBillType, "HBarCode": sBarCode }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäº |
| | | playSound_OK(); |
| | | //æ¾ç¤ºè¡¨ä½æç» |
| | | DisBillEntryList(); |
| | | } |
| | | else { |
| | | playSound(); |
| | | layer.msg(data.Message, { |
| | | icon: 5, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HBarCode").select(); |
| | | $("#HBarCode").focus(); |
| | | }); |
| | | } |
| | | }, |
| | | complete: function (XHR, TS) { XHR = null },//åæ¶èµæº |
| | | error: function (err) { |
| | | playSound(); |
| | | layer.msg('é误' + err, { |
| | | icon: 2, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HBarCode").select(); |
| | | $("#HBarCode").focus(); |
| | | }); |
| | | } |
| | | }); |
| | | layer.closeAll("loading"); |
| | | } |
| | | else { |
| | | var sBarCode = $('#HBarCode').val() |
| | | if (sBarCode == '') { |
| | | playSound(); |
| | | layer.msg("æ¡ç 为空ï¼è¯·æ«ææ¡ç ï¼", { |
| | | icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HBarCode").select(); |
| | | $("#HBarCode").focus(); |
| | | }); |
| | | return; |
| | | } |
| | | if (sBarCode != "") { |
| | | $('#HBarCode').val(""); |
| | | } |
| | | layer.load(3) |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/MouldController/Get_CheckTypeByMouldBarCode_Json", |
| | | async: false, //asyncç¨äºæ§å¶ï¼falseï¼åæ¥åï¼trueï¼å¼æ¥ï¼é»è®¤çæ¯trueï¼å³è¯·æ±é»è®¤çæ¯å¼æ¥è¯·æ± |
| | | data: { "sBarCode": sBarCode, "HInterID": HInterID, "HBillType": HBillType, "HBillNo": HBillNo, "HMaker": HMaker, "HWhID": sHWHID, "HSPID": sHSPID, "HSCWhID": 0, "HSCSPID": 0, "HRedBlueFlag": HRedBlueFlag, "HSourceBillNo": sSourceBillNo, "HSourceBillType": sSourceBillType, "HStockOrgID": HStockOrgID }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | playSound_OK(); |
| | | element.tabChange('tab-Sc_MouldProdBackBill_PDA', '2'); |
| | | //æ¾ç¤ºè¡¨ä½æç» |
| | | DisBillEntryList(); |
| | | } |
| | | else { |
| | | playSound(); |
| | | layer.msg(result.Message, { |
| | | icon: 5, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HBarCode").select(); |
| | | $("#HBarCode").focus(); |
| | | }); |
| | | } |
| | | }, |
| | | complete: function (XHR, TS) { XHR = null },//åæ¶èµæº |
| | | error: function (err) { |
| | | playSound(); |
| | | layer.msg("é误ï¼" + err, { |
| | | icon: 5, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HBarCode").select(); |
| | | $("#HBarCode").focus(); |
| | | }); |
| | | } |
| | | }); |
| | | layer.closeAll("loading"); |
| | | } |
| | | } |
| | | |
| | | //#endregion |
| | | |
| | | |
| | | //#region æ¾ç¤ºå¨å
·åè¡¨ä¿¡æ¯ |
| | | |
| | | function DisBillEntryList() { |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + '/MouldController/GetMouldBillEntryTmpList_Json', |
| | | async: false, //asyncç¨äºæ§å¶ï¼falseï¼åæ¥åï¼trueï¼å¼æ¥ï¼é»è®¤çæ¯trueï¼å³è¯·æ±é»è®¤çæ¯å¼æ¥è¯·æ± |
| | | data: { "HInterID": HInterID, "HBillNo": HBillNo, "HBillType": HBillType }, |
| | | success: function (result) { |
| | | var data = []; |
| | | var col = []; |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | //ç»ç©ºçæ°ç»èµå¼ |
| | | for (var key in result.list) { |
| | | //卿è·åå表ææåå |
| | | data.push({ "id": result.list[key].ColmCols, "name": result.list[key].ColmCols, "Type": result.list[key].ColmType }); |
| | | //è·åä¸éè¦æ¾ç¤ºçåï¼Hå¼å¤´çå䏿¾ç¤ºï¼ |
| | | var patrn = new RegExp(/^h/i); |
| | | if (patrn.test(result.list[key].ColmCols)) { |
| | | titleData[key] = result.list[key].ColmCols; |
| | | } |
| | | } |
| | | |
| | | //å¨å表左边添å å¾éæ¡ |
| | | col.push({ type: 'radio', fixed: 'left', totalRowText: 'å计' }); |
| | | for (var i = 0; i < data.length; i++) { |
| | | if ($.inArray(data[i].name, titleData) > -1) { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //éèidå |
| | | } |
| | | else { |
| | | switch (data[i].Type) { |
| | | //int |
| | | case 'DateTime': |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, templet: "<div>{{d." + data[i].name + " ==null ?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd')}}</div>", width: 200 }); |
| | | break; |
| | | default: |
| | | |
| | | if (data[i].name == 'æ°é') { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', width: 70, totalRow: true }); |
| | | } else { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', width: 200 }); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | columns = col; |
| | | listOption.cols = [columns]; |
| | | listOption.data = result.data; |
| | | listOption.totalRow = true; |
| | | table.cache['wl-table'] = null; //æ¸
ç©ºè¡¨æ ¼ç¼åæ°æ® |
| | | table.render(listOption); |
| | | |
| | | //æ¡ç ä¿¡æ¯ |
| | | $("#HMouldBarCode").val(result.data[0].HBarCode); |
| | | if ($("#HMouldBarCode").val() == '') { |
| | | $("#HMouldName").val(""); |
| | | $("#HMouldModel").val(""); |
| | | } |
| | | else { |
| | | $("#HMouldName").val(result.data[0].HMouldName); |
| | | $("#HMouldModel").val(result.data[0].HMouldNo); |
| | | } |
| | | } |
| | | else { |
| | | listOption.cols = [[ |
| | | { field: 'æ°é', title: 'æ°é', width: 100 } |
| | | , { field: 'å¨å
·æ¡ç ', title: 'å¨å
·æ¡ç ', width: 100 } |
| | | , { field: 'å¨å
·ä»£ç ', title: 'å¨å
·ä»£ç ', width: 100 } |
| | | , { field: 'å¨å
·åç§°', title: 'å¨å
·åç§°', width: 100 } |
| | | , { field: 'å¨å
·å·', title: 'å¨å
·å·', width: 100 } |
| | | ]]; |
| | | listOption.data = data; |
| | | table.render(listOption); |
| | | |
| | | //æ¡ç ä¿¡æ¯ |
| | | $("#HMouldBarCode").val(""); |
| | | $("#HMouldName").val(""); |
| | | $("#HMouldModel").val(""); |
| | | } |
| | | }, |
| | | complete: function (XHR, TS) { XHR = null }//åæ¶èµæº |
| | | }); |
| | | } |
| | | |
| | | //#endregion |
| | | |
| | | |
| | | }); |
| | | |
| | | //以ä¸ä¸ºlayui模å |
| | | //æ¤å¤æ¹æ³æ¶åå°è¢«å¤é¨é¡µé¢parent.æ¹æ³åè°ç¨çå¿
é¡»æ¾å¨Layuiæ¹æ³å¤é¨ |
| | | |
| | | //ç¹å»æé®éæ©å è¿åä»åºä¿¡æ¯ |
| | | function GetHWHValue(obj) |
| | | { |
| | | if (obj.length > 0) { |
| | | $("#HWHName").val(obj[0].HName); |
| | | $("#HWHID").val(obj[0].HItemID); |
| | | $("#HStockPlaceName").val(""); |
| | | $("#HStockPlaceID").val("0"); |
| | | if (obj[0].HSPFlag == 0) { |
| | | $("#HStockPlaceName").attr("disabled", "disabled"); |
| | | $('#HSpID-BT').addClass("layui-btn-disabled").attr("disabled", true);//æé®ç¦ç¨ |
| | | } |
| | | else { |
| | | $("#HStockPlaceName").removeAttr("disabled"); |
| | | $('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//æé®æ¢å¤æ£å¸¸ç¶æ |
| | | } |
| | | } |
| | | } |
| | | //ç¹å»æé®éæ©å è¿åä»ä½ä¿¡æ¯ |
| | | function GetHSpValue(obj) { |
| | | if (obj.length > 0) { |
| | | $("#HStockPlaceName").val(obj[0].HName); |
| | | $("#HStockPlaceID").val(obj[0].HItemID); |
| | | $("#HWHName").val(obj[0].HWhName); |
| | | $("#HWHID").val(obj[0].HWHID); |
| | | } |
| | | } |
| | | //ç¹å»æé®éæ©å è¿åä¿ç®¡ä¿¡æ¯ |
| | | function GetHKeeperValue(obj) { |
| | | if (obj.length > 0) { |
| | | $("#HKeeperName").val(obj[0].HName); |
| | | $("#HKeeperID").val(obj[0].HItemID); |
| | | } |
| | | } |
| | | //ç¹å»æé®éæ©å è¿åéªæ¶ä¿¡æ¯ |
| | | function GetHSecManagerValue(obj) { |
| | | if (obj.length > 0) { |
| | | $("#HSecManagerName").val(obj[0].HName); |
| | | $("#HSecManagerID").val(obj[0].HItemID); |
| | | } |
| | | } |
| | | //ç¹å»æé®éæ©å è¿åé¨é¨ä¿¡æ¯ |
| | | function GetHDeptNameValue(obj) { |
| | | if (obj.length > 0) { |
| | | $("#HDeptName").val(obj[0].HName); |
| | | $("#HDeptID").val(obj[0].HItemID); |
| | | } |
| | | } |
| | | //ç¹å»æé®éæ©å è¿å徿¥åä½ä¿¡æ¯ |
| | | function GetHSupValue(obj) { |
| | | if (obj.length > 0) { |
| | | $("#HSupName").val(obj[0].HName); |
| | | $("#HSupID").val(obj[0].HItemID); |
| | | } |
| | | } |
| | | //ç¹å»æé®éæ©å è¿å徿¥åä½ä¿¡æ¯ |
| | | function GetHDeptName2Value(obj) { |
| | | if (obj.length > 0) { |
| | | $("#HSupName").val(obj[0].HName); |
| | | $("#HSupID").val(obj[0].HItemID); |
| | | } |
| | | } |
| | | |
| | | //åæ®ä¸ä¼ å夿 |
| | | function AllowLoadData(sSubStr) { |
| | | if (HInterID == 0) { |
| | | layer.msg("åæ®å
ç è·å失败ï¼é误çåæ®å
ç ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | if (HBillNo == '') { |
| | | layer.msg("åæ®å·è·å失败ï¼é误çåæ®å·ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | if ($("#HKeeperID").val() == "undefined" || $("#HKeeperID").val() == '0') { |
| | | layer.msg("ä¿ç®¡å没æéæ©", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | if ($("#HSecManagerID").val() == "undefined" || $("#HSecManagerID").val() == '0') { |
| | | layer.msg("éªæ¶å没æéæ©", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | if (typeof (sSubStr) == "undefined") { |
| | | layer.msg("æ²¡ææ«ç ä¿¡æ¯ï¼è¯·å
æ«ææ¡ç ï¼ç¡®è®¤æ 误ååæäº¤ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | //夿æ¯å¦å·²æ«æå¨å
·æ¡ç |
| | | if (!typeof (sSubStr) == "undefined") { |
| | | for (var i = 0; i <= sSubStr.length - 1; i++) { |
| | | if (parseFloat(sSubStr[i].HQty) > 0) { |
| | | s = 1; |
| | | } |
| | | } |
| | | if (s == 0) { |
| | | layer.msg("æ²¡ææ«æå¨å
·æ¡ç ï¼è¯·å
æ«æå¨å
·æ¡ç ï¼ç¡®è®¤æ 误ååæäº¤ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | } |
| | | else { |
| | | return true; |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | </body> |
| | | </html> |