| | |
| | | </div> |
| | | <div class="layui-form-item" style="padding:15px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <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 class="layui-row"> |
| | | <div class="layui-col-xs6"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:30px;padding-left:0px;">æ°é</label> |
| | | <label class="layui-form-label" style="width: 30px;padding-left: 0px;">æ¡ç </label> |
| | | </div> |
| | | <div class="layui-col-xs7"> |
| | | <div class="layui-col-xs9"> |
| | | <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> |
| | | <div class="layui-col-xs6"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width: 30px; margin-left: 8px; padding-left: 0px;">æ°é</label> |
| | | </div> |
| | | <div class="layui-col-xs5"> |
| | | <input type="number" name="HQty" id="HQty" lay-verify="HQty" onkeyup="if(!this.value.match(/^[\+\-]?\d*?\.?\d*?$/)){if(!this.t_value>0){this.value=''}else{this.value=this.t_value;}}else this.t_value=this.value;if(this.value.match(/^(?:[\+\-]?\d+(?:\.\d+)?)?$/))this.o_value=this.value" autocomplete="off" class="layui-input" onfocus="this.select();"> |
| | | </div> |
| | | <div class="layui-col-xs4"> |
| | | <button type="button" lay-submit="" lay-filter="HBarCode-BT" class="layui-btn" id="HBarCode-BT" style="width: 45px; margin-left: 8px;padding-left:12px">OK</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row" style="margin-top: 5px; margin-bottom: 0px;"> |
| | | <div class="layui-col-xs6"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:30px;padding-left:0px;">ä»åº</label> |
| | | </div> |
| | | <div class="layui-col-xs6"> |
| | | <input type="text" name="HSCWHName" id="HSCWHName" lay-verify="HSCWHName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();"> |
| | | <input type="hidden" name="HSCWHID" id="HSCWHID" lay-verify="HSCWHID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs3"> |
| | | <button type="button" lay-submit="" lay-filter="HSCWHID-BT" class="layui-btn" id="HSCWHID-BT" style="width: 30px; margin-left: 8px;padding-left:8px">...</button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs6"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:30px;padding-left:0px;">ä»ä½</label> |
| | | </div> |
| | | <div class="layui-col-xs6"> |
| | | <input type="text" name="HOutStockPlaceName" id="HOutStockPlaceName" lay-verify="HOutStockPlaceName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();"> |
| | | <input type="hidden" name="HOutStockPlaceID" id="HOutStockPlaceID" lay-verify="HOutStockPlaceID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs3"> |
| | | <button type="button" lay-submit="" lay-filter="HSCSpID-BT" class="layui-btn" id="HSCSpID-BT" style="width: 30px; margin-left: 8px;padding-left:8px">...</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">æºååå·</label> |
| | | </div> |
| | | <div class="layui-col-xs7"> |
| | | <input type="text" name="HSourceBillNo" id="HSourceBillNo" lay-verify="HSourceBillNo" 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="HSourceBillNo-BT" class="layui-btn" id="HSourceBillNo-BT">ç¡®å®</button> |
| | | <div class="layui-col-xs9"> |
| | | <div class="layui-col-xs8"> |
| | | <input type="text" name="HSourceBillNo" id="HSourceBillNo" lay-verify="HSourceBillNo" 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="cmdHSourceBillNo" class="layui-btn" id="cmdHSourceBillNo" style="width: 45px; margin-left: 10px; padding-left: 12px"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-2px;"></i> |
| | | </button> |
| | | </div> |
| | | <div class="layui-col-xs2" style="float: right;"> |
| | | <button type="button" lay-submit="" lay-filter="HSourceBillNo-BT" class="layui-btn" id="HSourceBillNo-BT" style="width: 45px; margin-left: -5px;padding-left:12px">OK</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-row" style="margin-top: 5px; margin-bottom: 0px;"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width: 70px; padding-left: 0px;">å
è¿å
åºä»</label> |
| | | </div> |
| | | <div class="layui-col-xs7"> |
| | | <input type="text" name="HFIFOWHName" id="HFIFOWHName" lay-verify="HFIFOWHName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();"> |
| | | <input type="hidden" name="HFIFOWHID" id="HFIFOWHID" lay-verify="HFIFOWHID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" lay-filter="HFIFOWHID-BT" class="layui-btn" id="HFIFOWHID-BT" style="padding:0 26.5px">...</button> |
| | | <div class="layui-col-xs9"> |
| | | <div class="layui-col-xs10" style="padding-right: 15px;"> |
| | | <input type="text" name="HFIFOWHName" id="HFIFOWHName" lay-verify="HFIFOWHName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();"> |
| | | <input type="hidden" name="HFIFOWHID" id="HFIFOWHID" lay-verify="HFIFOWHID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" lay-filter="HFIFOWHID-BT" class="layui-btn" id="HFIFOWHID-BT" style="width: 45px; margin-left: -5px; padding-left: 12px">...</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">è°æ¨ç±»å</label> |
| | | </div> |
| | | <div class="layui-col-xs9"> |
| | | <select name=" HStockStyle" id="HStockStyle"disabled> |
| | | <select name=" HStockStyle" id="HStockStyle" disabled> |
| | | <option value="ç»ç»å
è°æ¨">ç»ç»å
è°æ¨</option> |
| | | <option value="è·¨ç»ç»è°æ¨">è·¨ç»ç»è°æ¨</option> |
| | | </select> |
| | |
| | | <div class="layui-tab-item"> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <div class="layui-col-xs2" style="margin-left:-10px"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">è°å
¥ä»åº</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10" style="margin-left:10px"> |
| | | <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-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <div class="layui-col-xs2" style="margin-left:-10px"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">è°å
¥ä»ä½</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10" style="margin-left:10px"> |
| | | <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-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="HSCWHName" id="HSCWHName" lay-verify="HSCWHName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();"> |
| | | <input type="hidden" name="HSCWHID" id="HSCWHID" lay-verify="HSCWHID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" lay-filter="HSCWHID-BT" class="layui-btn" id="HSCWHID-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"> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HOutStockPlaceName" id="HOutStockPlaceName" lay-verify="HOutStockPlaceName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();"> |
| | | <input type="hidden" name="HOutStockPlaceID" id="HOutStockPlaceID" lay-verify="HOutStockPlaceID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" lay-filter="HSCSpID-BT" class="layui-btn" id="HSCSpID-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"> |
| | | <div class="layui-col-xs2" style="margin-left:-10px"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">è°åºç»ç»</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <select name=" HStockOutOrgID" id="HStockOutOrgID"disabled> |
| | | <div class="layui-col-xs10" style="margin-left:10px"> |
| | | <select name=" HStockOutOrgID" id="HStockOutOrgID" disabled> |
| | | <!--å¨ææ¸²æç»ç»--> |
| | | </select> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <div class="layui-col-xs2" style="margin-left:-10px"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">è°å
¥ç»ç»</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <select name=" HStockInOrgID" id="HStockInOrgID"disabled> |
| | | <div class="layui-col-xs10" style="margin-left:10px"> |
| | | <select name=" HStockInOrgID" id="HStockInOrgID" disabled> |
| | | <!--å¨ææ¸²æç»ç»--> |
| | | </select> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="layui-form-item" style="padding: 0px; margin: 0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <div class="layui-col-xs2" style="margin-left:-10px"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">è°å
¥ä»åº</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10" style="margin-left:10px"> |
| | | <input type="text" name="HWHName_B" id="HWHName_B" 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"> |
| | | <div class="layui-col-xs2" style="margin-left:-10px"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">è°å
¥ä»ä½</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10" style="margin-left:10px"> |
| | | <input type="text" name="HSPName_B" id="HSPName_B" 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"> |
| | | <div class="layui-col-xs2" style="margin-left:-10px"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">è°åºä»åº</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10" style="margin-left:10px"> |
| | | <input type="text" name="HSCWHName_B" id="HSCWHName_B" 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"> |
| | | <div class="layui-col-xs2" style="margin-left:-10px"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">è°åºä»ä½</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10" style="margin-left:10px"> |
| | | <input type="text" name="HSCSPName_B" id="HSCSPName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled> |
| | | </div> |
| | | </div> |
| | |
| | | <input type="hidden" name="HBillType" id="HBillType"> |
| | | <input type="hidden" name="HBillerID" id="HBillerID"> |
| | | <input type="hidden" name="HRedBlueFlag" id="HRedBlueFlag"> |
| | | <input type="hidden" name="HSourceBillListCtl" id="HSourceBillListCtl"> |
| | | <!--失败æç¤ºé³--> |
| | | <div id="" style="display:none;"> |
| | | <audio id="cs" hidden controls> |
| | |
| | | $("#HStockOutOrgID").val(sessionStorage["OrganizationID"]); |
| | | $("#HBillType").val("1250"); |
| | | $("#HRedBlueFlag").val("false"); |
| | | if (sessionStorage["HSCWHSPFlag"]) { |
| | | if (sessionStorage["HSCWHID"] != 0 && sessionStorage["HSCWHSPFlag"]) { |
| | | $("#HStockPlaceID").val("0"); |
| | | $("#HStockPlaceName").val(""); |
| | | $("#HStockPlaceName").attr("disabled", "disabled"); |
| | |
| | | $("#HStockPlaceName").removeAttr("disabled"); |
| | | $('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//æé®æ¢å¤æ£å¸¸ç¶æ |
| | | } |
| | | if (sessionStorage["HWhSPFlag"]) { |
| | | if (sessionStorage["HWHID"] != 0 && sessionStorage["HWhSPFlag"]) { |
| | | $("#HOutStockPlaceID").val("0"); |
| | | $("#HOutStockPlaceName").val(""); |
| | | $("#HOutStockPlaceName").attr("disabled", "disabled"); |
| | |
| | | }) |
| | | //#endregion |
| | | |
| | | //#region çå¬ç½æ ¼è¡¨ä½äºä»¶ |
| | | table.on('tool(wl-table)', function (obj) { |
| | | var data = obj.data; |
| | | |
| | | //ç©æä»£ç è¶
龿¥ |
| | | if (obj.event == 'ç©æä»£ç ') { //æ£æ¥ obj.event æ¯å¦çäºå符串 'ç©æä»£ç 'ã妿çäºï¼åæ§è¡ifå¾ªç¯ |
| | | var HMaterNumber = data.ç©æä»£ç .toString(); //声æåéHMaterNumber 为 data.ç©æä»£ç |
| | | layer.open({ //ä½¿ç¨ layerçopenæå¼å¼¹åº å± |
| | | type: 2 //表示弹åºå±çå
容æ¯ä¸ä¸ª iframe |
| | | , area: ['100%', '100%'] |
| | | , title: 'åæ¶åºåä¿¡æ¯' //设置弹åºå±çååååé |
| | | , closeBtn: 1 //æ¾ç¤ºå
³éæé® |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: false //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: '../../WMSæ«ç 模å/åºåæ¥è¯¢/KF_ICInventoryByCLD_PDA.html?OperationType=2&HMaterNumber=' + HMaterNumber //设置 iframe ç URLï¼URL ä¸å
å«äºæ¥è¯¢åæ°ï¼æ¥è°ç¨æéè¦çå¼ |
| | | , resize: false, //æ¯å¦å
è®¸ç¨æ·è°æ´å¼¹åºå¤§å° |
| | | end: function () { //å½å
³éæ¶è°ç¨ |
| | | } |
| | | , cancel: function () { //ç¹å»åæ¶æ¶ä½¿ç¨åè° |
| | | } |
| | | }) |
| | | } |
| | | }); |
| | | //#endregion |
| | | |
| | | //夿æ¯å¦æ°å¢ï¼è·åæå¤§åæ®å· |
| | | if (HInterID != 0) { |
| | | HSourceFlag = true; |
| | |
| | | //æ¾ç¤ºè¡¨ä½æç» |
| | | DisBillEntryList(); |
| | | HSourceFlag = true; |
| | | element.tabChange('tab-Kf_MoveStockStepOutBill_PDA', '2'); |
| | | element.tabChange('tab-Kf_MoveStockStepOutBill_PDA', '3'); |
| | | } |
| | | else { |
| | | //è·åæå¤§åæ®IDãåæ®å· |
| | |
| | | $("#HOutStockPlaceName").removeAttr("disabled"); |
| | | $('#HSCSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//æé®æ¢å¤æ£å¸¸ç¶æ |
| | | } |
| | | element.tabChange('tab-Kf_MoveStockStepOutBill_PDA', '2'); |
| | | //å
æ æ¾ç¤ºå°æ¡ç ä¸ |
| | | $("#HBarCode").select(); |
| | | $("#HBarCode").focus(); |
| | |
| | | $("#HOutStockPlaceID").val(result.data[0].HItemID); |
| | | $("#HSCWHName").val(result.data[0].HWhName); |
| | | $("#HSCWHID").val(result.data[0].HWHID); |
| | | element.tabChange('tab-Kf_MoveStockStepOutBill_PDA', '2'); |
| | | //å
æ æ¾ç¤ºå°æ¡ç ä¸ |
| | | $("#HBarCode").select(); |
| | | $("#HBarCode").focus(); |
| | |
| | | //#endregion |
| | | |
| | | |
| | | //#region æºåéæ© |
| | | |
| | | form.on('submit(cmdHSourceBillNo)', function () { |
| | | var HSourceTitle = ""; |
| | | var HSourceBillType = $("#HMainSourceBillType").val() |
| | | if (HSourceBillType == '1402') { |
| | | HSourceTitle = "åè´§éç¥å"; |
| | | } |
| | | else if (HSourceBillType == '1243') { |
| | | HSourceTitle = "è°æ¨ç³è¯·å"; |
| | | } |
| | | |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: HSourceTitle + 'å表'//æ é¢ |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/å
Œ
±é¡µé¢/Kf_SourceBillEditDlg_PDA.html?HBillType =' + HBillType + '&HSourceBillType =' + HSourceBillType + '&HStockOrgID =' + HStockOrgID, 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | , end: function () { |
| | | if ($("#HSourceBillListCtl").val() == '1') { |
| | | GetMeesageBySourceBillNo(); |
| | | $("#HSourceBillListCtl").val("0"); //ç¨äºåºåæºåå表çé¢å
³éç¶æï¼1为è¿åï¼0为éåºï¼ |
| | | } |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | //#endregion |
| | | |
| | | |
| | | //#region æ«ææºåæ¡ç |
| | | |
| | | //æ«ææºåæ¡ç |
| | |
| | | //客æ·ä¸å¯ç¼è¾ |
| | | $("#HSupName").attr("disabled", "disabled"); |
| | | $('#HSupID-BT').addClass("layui-btn-disabled").attr("disabled", true);//æé®ç¦ç¨ |
| | | element.tabChange('tab-Kf_MoveStockStepOutBill_PDA', '2'); |
| | | element.tabChange('tab-Kf_MoveStockStepOutBill_PDA', '3'); |
| | | $("#HBarCode").select(); |
| | | $("#HBarCode").focus(); |
| | | //è°å
¥è°åºç»ç»ä¸ç»å
¥ç»ç»ä¸åæ¶ï¼æ¸
空è°å
¥è°åºä»åºä»ä½æ°æ® |
| | |
| | | layer.load(3) |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/WEBSController/get_BarCode_MoveStock_Json", |
| | | url: GetWEBURL() + "/WEBSController/get_BarCode_MoveStock_New_Json", |
| | | async: false, //asyncç¨äºæ§å¶ï¼falseï¼åæ¥åï¼trueï¼å¼æ¥ï¼é»è®¤çæ¯trueï¼å³è¯·æ±é»è®¤çæ¯å¼æ¥è¯·æ± |
| | | data: { "sBarCode": sBarCode, "HInterID": HInterID, "HBillType": HBillType, "HBillNo": HBillNo, "HMaker": HMaker, "HWhID": sHWHID, "HSPID": sHSPID, "HSCWHID": sHSCWHID, "HSCSPID": sHSCSPID, "HQty": sHQty, "SourceFlag": HSourceFlag, "HSourceBillNo": sSourceBillNo, "HSourceBillType": sSourceBillType, "HStockInOrgID": HStockInOrgID, "HStockOutOrgID": HStockOutOrgID, "HScanStyle": "", "HCustom1": "", "HCustom2": "" }, |
| | | success: function (result) { |
| | |
| | | $("#HOutStockPlaceName").removeAttr("disabled"); |
| | | $('#HSCSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//æé®æ¢å¤æ£å¸¸ç¶æ |
| | | } |
| | | element.tabChange('tab-Kf_MoveStockStepOutBill_PDA', '2'); //è·³è½¬é¡µç¾ |
| | | return;//ç»æ |
| | | } |
| | | else if (result.data.hBarTypeField == 'ä»ä½æ¡ç ') { |
| | |
| | | $("#HOutStockPlaceID").val(result.data.hSPIDField); |
| | | $("#HSCWHName").val(result.data.hWhNameField); |
| | | $("#HSCWHID").val(result.data.hWhIDField); |
| | | element.tabChange('tab-Kf_MoveStockStepOutBill_PDA', '2');//è·³è½¬é¡µç¾ |
| | | return;//ç»æ |
| | | } |
| | | else if (result.data.hBarTypeField == 'é¨é¨æ¡ç ') { |
| | |
| | | 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 { |
| | | } else if (data[i].name == 'ç©æä»£ç ') { |
| | | col.push({ |
| | | field: data[i].id, title: data[i].name, align: 'left', sort: true, width: 120, event: 'ç©æä»£ç ', event: 'ç©æä»£ç ', templet: function (d) { |
| | | return '<span style="color: blue;">' + d.ç©æä»£ç + '</span>' |
| | | }, style: 'cursor: pointer;' |
| | | }); |
| | | } 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 }); |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'left', sort: true, templet: "<div>{{d." + data[i].name + " ==null ?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd')}}</div>", width: 120 }); |
| | | break; |
| | | default: |
| | | |
| | | if (data[i].name == 'æ°é' || data[i].name == 'æºåæ°é' || data[i].name == 'æ¡ç 个æ°') { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', totalRow: true }); |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'left', totalRow: true }); |
| | | } else if (data[i].name == 'ç©æåç§°' || data[i].name == 'è§æ ¼åå·') { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'left', width: 180 }); |
| | | } else { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center' }); |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'left', width: 150 }); |
| | | } |
| | | } |
| | | } |
| | |
| | | $("#HSupID").val(obj[0].HItemID); |
| | | } |
| | | } |
| | | //ç¹å»æé®éæ©å è¿åæºååå· |
| | | function GetHSourceBillValue(obj) { |
| | | if (obj.length > 0) { |
| | | $("#HSourceBillNo").val(obj[0].åæ®å·); |
| | | $("#HSourceBillListCtl").val("1"); |
| | | } |
| | | } |
| | | |
| | | //åæ®ä¸ä¼ å夿 |
| | | function AllowLoadData(sSubStr) { |