| | |
| | | <div class="layui-tab" lay-filter="tab-POStockInBill"> |
| | | <h1 style="text-align:center;" id="BT_GXLZK"><b>å·¥åºæµè½¬å¡</b></h1> |
| | | <ul class="layui-tab-title" lay-filter="tab-all"> |
| | | <li lay-id="1" style="padding:1px;" class="layui-this">åºæ¬ä¿¡æ¯</li> |
| | | <li lay-id="2" style="padding:1px;">ç¾æ¯ä¿¡æ¯</li> |
| | | <li lay-id="3" style="padding:1px;">å
¶ä»ä¿¡æ¯</li> |
| | | <li lay-id="4" style="padding:1px;">æ£ç§»ç¥¨ä¿¡æ¯</li> |
| | | <li lay-id="5" style="padding:1px;">å¶åä¿¡æ¯</li> |
| | | <li lay-id="1" style="padding:1px;" class="layui-this">åºæ¬ä¿¡æ¯</li> |
| | | <li lay-id="2" style="padding:1px;">ç¾æ¯ä¿¡æ¯</li> |
| | | <li lay-id="3" style="padding:1px;">å
¶ä»ä¿¡æ¯</li> |
| | | <li lay-id="4" style="padding:1px;">æ£ç§»ç¥¨ä¿¡æ¯</li> |
| | | <li lay-id="5" style="padding:1px;">å¶åä¿¡æ¯</li> |
| | | </ul> |
| | | <div class="layui-tab-content"> |
| | | <!--åºæ¬ä¿¡æ¯--> |
| | |
| | | <label class="layui-form-label" id="BT_HDate">æ¥æ</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="datetime" class="layui-input" name="HDate" id="HDate" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HBillType" id="HBillType" lay-verify="HBillType" value=""> |
| | | <input type="hidden" name="HBillSubType" id="HBillSubType" lay-verify="HBillSubType" value=""> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | |
| | | </div> |
| | | </div> |
| | | <!--<div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">订åè·è¸ªå·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HOrderProcNO" id="HOrderProcNO" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div>--> |
| | | <label class="layui-form-label">订åè·è¸ªå·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HOrderProcNO" id="HOrderProcNO" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div>--> |
| | | <!--<div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">å¾å·çæ¬</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HPicNumVer" id="HPicNumVer" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div>--> |
| | | <label class="layui-form-label">å¾å·çæ¬</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HPicNumVer" id="HPicNumVer" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | |
| | | <input type="text" class="layui-input" name="HMaterName2" id="HMaterName2" onmouseover="this.title=this.value" style="float: left; background-color: #efefef4d; display: inline-block;" readonly> |
| | | <input type="hidden" name="HMaterID2" id="HMaterID2" value="0"> |
| | | <!--<button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchMater2" id="btnSearchMater2" style="width: 40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button>--> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button>--> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label" id="BT_HMaterModel2">产åè§æ ¼</label> |
| | | <label class="layui-form-label" id="BT_HMaterModel2">产åè§æ ¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HMaterModel2" id="HMaterModel2" onmouseover="this.title=this.value" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <!--<div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">æ»è£
å¾å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HPicNumAssemble" id="HPicNumAssemble" onmouseover="this.title=this.value" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div>--> |
| | | <label class="layui-form-label">æ»è£
å¾å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HPicNumAssemble" id="HPicNumAssemble" onmouseover="this.title=this.value" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | |
| | | </div> |
| | | </div> |
| | | <!--<div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">æè´¨</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HMaterTexture" id="HMaterTexture"> |
| | | </div> |
| | | </div>--> |
| | | <label class="layui-form-label">æè´¨</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HMaterTexture" id="HMaterTexture"> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <!--<div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">计åå¼å·¥æ¥æ</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="date" class="layui-input" name="HPlanBeginDate" id="HPlanBeginDate" style="padding-left: 32px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">计åå®å·¥æ¥æ</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="date" class="layui-input" name="HPlanEndDate" id="HPlanEndDate" style="padding-left: 32px;"> |
| | | </div> |
| | | </div>--> |
| | | <label class="layui-form-label">计åå¼å·¥æ¥æ</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="date" class="layui-input" name="HPlanBeginDate" id="HPlanBeginDate" style="padding-left: 32px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">计åå®å·¥æ¥æ</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="date" class="layui-input" name="HPlanEndDate" id="HPlanEndDate" style="padding-left: 32px;"> |
| | | </div> |
| | | </div>--> |
| | | |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label" id="BT_textBox2">éåå·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="textBox2" id="textBox2" style="float: left; background-color: #efefef4d; display: inline-block;" readonly> |
| | | <!--<button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchICMOBill" id="btnSearchICMOBill" style="width: 40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button>--> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button>--> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | |
| | | </div> |
| | | |
| | | <!--<div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">æåç¼å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HProductNum" id="HProductNum" onmouseover="this.title=this.value"> |
| | | </div> |
| | | </div>--> |
| | | <label class="layui-form-label">æåç¼å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HProductNum" id="HProductNum" onmouseover="this.title=this.value"> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | |
| | | <div class="layui-row"> |
| | | <!--<div class="layui-col-xs6 layui-inline"> |
| | | <label class="layui-form-label" style="width:12.5%">夿³¨</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HRemark" id="HRemark" placeholder="请è¾å
¥å
容" onmouseover="this.title=this.value" style="width:610px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">æ¥è®¡åå·¥åéåå·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HWorkBillSortNo" id="HWorkBillSortNo" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchWorkBillSort" id="btnSearchWorkBillSort" style="width: 40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div>--> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label" id="BT_HAuxQty">è¾
æ°é</label> |
| | | <div class="layui-input-inline"> |
| | |
| | | </div> |
| | | </div> |
| | | <!--<div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">è¡¥æåå </label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HExplanation" id="HExplanation" placeholder="请è¾å
¥å
容" onmouseover="this.title=this.value"> |
| | | </div> |
| | | </div>--> |
| | | <label class="layui-form-label">è¡¥æåå </label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HExplanation" id="HExplanation" placeholder="请è¾å
¥å
容" onmouseover="this.title=this.value"> |
| | | </div> |
| | | </div>--> |
| | | <!--<div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">è¡¥ææ è®°</label> |
| | | <div class="layui-input-block"> |
| | | <input type="checkbox" name="HBLFlag" id="HBLFlag" lay-skin="primary" title="" checked=""> |
| | | </div> |
| | | </div>--> |
| | | <label class="layui-form-label">è¡¥ææ è®°</label> |
| | | <div class="layui-input-block"> |
| | | <input type="checkbox" name="HBLFlag" id="HBLFlag" lay-skin="primary" title="" checked=""> |
| | | </div> |
| | | </div>--> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label" id="BT_HWeight">å
é</label> |
| | | <div class="layui-input-inline"> |
| | |
| | | </div> |
| | | </div> |
| | | <!--<div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">项ç®ç¼å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HProjectNum" id="HProjectNum" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div>--> |
| | | <label class="layui-form-label">项ç®ç¼å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HProjectNum" id="HProjectNum" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div>--> |
| | | |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label" id="BT_HSupName">å§å¤å å·¥åä½</label> |
| | | <label class="layui-form-label" id="BT_HSupName">å§å¤å å·¥åä½</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HSupName" id="HSupName" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> |
| | | <input type="hidden" name="HSupID" id="HSupID" value="0"> |
| | |
| | | <input type="text" class="layui-input" name="HICMOEntryID" id="HICMOEntryID" value="0" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label" id="BT_HMaterTexture">æè´¨</label> |
| | | <div class="layui-input-inline"> |
| | |
| | | </div> |
| | | </div> |
| | | <!--<div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">æµè½¬å¡ç±»å</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HWorkTypeName" id="HWorkTypeName" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> |
| | | <input type="hidden" name="HWorkTypeID" id="HWorkTypeID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchHWorkType" id="btnSearchHWorkType" style="width: 40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div>--> |
| | | <label class="layui-form-label">æµè½¬å¡ç±»å</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HWorkTypeName" id="HWorkTypeName" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> |
| | | <input type="hidden" name="HWorkTypeID" id="HWorkTypeID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchHWorkType" id="btnSearchHWorkType" style="width: 40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | |
| | | </div> |
| | | </div> |
| | | <!--<div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">çæ¬</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HVerNum" id="HVerNum" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">çæ¬</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HVerNum" id="HVerNum" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div>--> |
| | | <label class="layui-form-label">çæ¬</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HVerNum" id="HVerNum" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">çæ¬</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HVerNum" id="HVerNum" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div>--> |
| | | <div class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label" id="BT_HXTNumber">è¯ä½ç©æä»£ç </label> |
| | | <div class="layui-input-inline"> |
| | |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HSeOrderBillNo" id="HSeOrderBillNo"> |
| | | <!--<input type="hidden" class="layui-input" name="HSeOrderEntryID" id="HSeOrderEntryID"> |
| | | <input type="hidden" class="layui-input" name="HSeOrderInterID" id="HSeOrderInterID">--> |
| | | <input type="hidden" class="layui-input" name="HSeOrderInterID" id="HSeOrderInterID">--> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | <li class="layui-this">å·¥èºæµç¨</li> |
| | | <li>å¨å
·æ¸
å</li> |
| | | <li>å·¥èºåæ°æ¸
å</li> |
| | | <li>è¿å·¥å
³èä¿¡æ¯</li> |
| | | </ul> |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-tab-item layui-show"> |
| | |
| | | <!--å·¥èºåæ°æ¸
å--> |
| | | <table class="layui-hide" id="mainTable3" lay-filter="mainTable3"></table> |
| | | </div> |
| | | <div class="layui-tab-item"> |
| | | <!--è¿å·¥å
³èä¿¡æ¯--> |
| | | <table class="layui-hide" id="mainTable4" lay-filter="mainTable4"></table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-AddLine" id="BT_AddLine"><i class="layui-icon layui-icon-form"></i>å¢å ä¸è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-CopyLine" id="BT_CopyLine"><i class="layui-icon layui-icon-form"></i>å¤å¶ä¸è¡</button> |
| | | </div> |
| | | </script> |
| | | <script type="text/html" id="toolbarDemo4"> |
| | | <div class="layui-btn-container"> |
| | | |
| | | </div> |
| | | </script> |
| | | <input id="HItemID" name="HItemID" type="hidden" /> |
| | |
| | | type: "GET", |
| | | data: { "HBillType": '3772' }, |
| | | success: function (d) { |
| | | //console.log(d.data); |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | $("#HDate").val(Pub_Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HMakeDate").val(Pub_Format(new Date(), "yyyy-MM-dd hh:mm:ss")); |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | $("#HBillType").val(3772); |
| | | $("#HBillSubType").val(3772); |
| | | } |
| | | }); |
| | | option.data = [{ |
| | | "HProcNo": "", "HProcID": 0, "HProcNumber": "", "HProcName": "", "HWorkRemark": "", |
| | | "HCenterID": 0, "HCenterNumber": "", "HCenterName": "", |
| | | "HDeptID": 0, "HDeptNumber": "", "HDeptName": "", |
| | | "HSupID": 0, "HSupNumber": "", "HSupName": "", "HSupFlag": "false", |
| | | "HQty": 0, "HSNCtrl": false, "HOutPrice": 0, "HRemark": "", "HRelationQty_In": 0, "HRelationQty_Out": 0, |
| | | "HRelationQty_WWOrder": 0, "HRelationQty_Bad": 0, "HOverRate": 0, "HMaxQty": 0, |
| | | "HPassRate": 0, "HSumPassRate": 0, "HTechnologyParameter": "", "HPicNum": "", "HProcCheckNote": "", |
| | | "HRoutingBillMainID": 0, "HRoutingBillEntryID": 0 |
| | | }]; |
| | | table.render(option); |
| | | //option.data = [{ |
| | | // "HProcNo": "", "HProcID": 0, "HProcNumber": "", "HProcName": "", "HWorkRemark": "", |
| | | // "HCenterID": 0, "HCenterNumber": "", "HCenterName": "", |
| | | // "HDeptID": 0, "HDeptNumber": "", "HDeptName": "", |
| | | // "HSupID": 0, "HSupNumber": "", "HSupName": "", "HSupFlag": "false", |
| | | // "HQty": 0, "HSNCtrl": false, "HOutPrice": 0, "HRemark": "", "HRelationQty_In": 0, "HRelationQty_Out": 0, |
| | | // "HRelationQty_WWOrder": 0, "HRelationQty_Bad": 0, "HOverRate": 0, "HMaxQty": 0, |
| | | // "HPassRate": 0, "HSumPassRate": 0, "HTechnologyParameter": "", "HPicNum": "", "HProcCheckNote": "", |
| | | // "HRoutingBillMainID": 0, "HRoutingBillEntryID": 0 |
| | | //}]; |
| | | //table.render(option); |
| | | } |
| | | else if (OperationType == 2) {//ææºåæ°å¢ |
| | | $("#HItemID").val(linterid);//ä¿®æ¹æ¶ä¸»è¡¨ID |
| | | $("#HEntryID").val(HEntryID);//ä¿®æ¹æ¶å表ID |
| | | |
| | | //夿çäº§è®¢åæ¯å¦å®¡æ ¸ |
| | | $.ajax({ |
| | | type: "get", |
| | | url: GetWEBURL() + "/LEMS/ICMOBillCheck", |
| | | data: { "hmainid": linterid, "HEntryID": HEntryID, "OrganizationID": sessionStorage["OrganizationID"] }, |
| | | async: false, |
| | | success: function (result) { |
| | | if (result.count == 0) { // 说æéªè¯æåäºï¼ |
| | | layer.alert(result.Message, { icon: 5 }); |
| | | } else { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNumPDA", |
| | | type: "GET", |
| | | data: { "HBillType": '3772' }, |
| | | success: function (d) { |
| | | //console.log(d.data); |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | $("#HDate").val(Pub_Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HMakeDate").val(Pub_Format(new Date(), "yyyy-MM-dd hh:mm:ss")); |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | } |
| | | }); |
| | | |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Sc_WorkBillSortBill/Sc_WorkBillSortBillList", |
| | | type: "GET", |
| | | data: { "sWhere": " and æºå主å
ç ='" + linterid + "' and æºååå
ç ='" + HEntryID + "' ", "user": sessionStorage["HUserName"] }, |
| | | success: function (d) { |
| | | if (d.data[0] != null) { |
| | | $("#HWorkBillSortNo").val(d.data[0].åæ®å·); |
| | | } |
| | | } |
| | | }) |
| | | //çæå¹¶è®¾ç½®ä¸»è¡¨çå
ç ååæ®å· |
| | | createBillNo(); |
| | | //夿çäº§è®¢åæ¯å¦å®¡æ ¸ 䏿¯è¿å·¥ç³è¯·å å¨å»å¤æ |
| | | if (HSouceBillType != "3796") { |
| | | GetICMOBillIsAuto(linterid, HEntryID); //çäº§è®¢åæ¯å¦å®¡æ ¸ |
| | | GetICMOBillValue(linterid, HEntryID); //æ¥è¯¢ç产订åä¿¡æ¯ |
| | | } else { |
| | | get_Display4(linterid); //æ ¹æ®è¿å·¥ç³è¯·åè¿è¡æ¥è¯¢ |
| | | } |
| | | |
| | | |
| | | |
| | | GetICMOBillValue(linterid, HEntryID); |
| | | option.data = [{ |
| | | "HProcNo": "", "HProcID": 0, "HProcNumber": "", "HProcName": "", "HWorkRemark": "", |
| | | "HCenterID": 0, "HCenterNumber": "", "HCenterName": "", |
| | | "HDeptID": 0, "HDeptNumber": "", "HDeptName": "", |
| | | "HSupID": 0, "HSupNumber": "", "HSupName": "", "HSupFlag": "false", |
| | | "HQty": 0, "HSNCtrl": false, "HOutPrice": 0, "HRemark": "", "HRelationQty_In": 0, "HRelationQty_Out": 0, |
| | | "HRelationQty_WWOrder": 0, "HRelationQty_Bad": 0, "HOverRate": 0, "HMaxQty": 0, |
| | | "HPassRate": 0, "HSumPassRate": 0, "HTechnologyParameter": "", "HPicNum": "", "HProcCheckNote": "", |
| | | "HRoutingBillMainID": 0, "HRoutingBillEntryID": 0 |
| | | }]; |
| | | table.render(option); |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | } |
| | | else if (OperationType == 3) {//ç¼è¾ |
| | | $("#HItemID").val(linterid);//ä¿®æ¹æ¶ä¸»è¡¨ID |
| | | $("#btnRoutingBill").addClass("layui-btn-disabled").attr("disabled", true); |
| | | set_EditFromGrid(); |
| | | |
| | | } |
| | | else if (OperationType == 4) {//å¤å¶ |
| | | set_EditFromGrid(); |
| | |
| | | , elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , page: false |
| | | //, cellMinWidth: 120 |
| | | , totalRow: true |
| | | , height: 400 |
| | | , cols: [columns] |
| | |
| | | |
| | | } |
| | | }; |
| | | |
| | | option.data = [{ |
| | | "HProcNo": "", "HProcID": 0, "HProcNumber": "", "HProcName": "", "HWorkRemark": "", |
| | | "HCenterID": 0, "HCenterNumber": "", "HCenterName": "", |
| | | "HDeptID": 0, "HDeptNumber": "", "HDeptName": "", |
| | | "HSupID": 0, "HSupNumber": "", "HSupName": "", "HSupFlag": "false", |
| | | "HQty": 0, "HSNCtrl": false, "HOutPrice": 0, "HRemark": "", "HRelationQty_In": 0, "HRelationQty_Out": 0, |
| | | "HRelationQty_WWOrder": 0, "HRelationQty_Bad": 0, "HOverRate": 0, "HMaxQty": 0, |
| | | "HPassRate": 0, "HSumPassRate": 0, "HTechnologyParameter": "", "HPicNum": "", "HProcCheckNote": "", |
| | | "HRoutingBillMainID": 0, "HRoutingBillEntryID": 0 |
| | | }]; |
| | | table.render(option); |
| | | |
| | | //è¿å·¥å
³èä¿¡æ¯åå§å |
| | | option4 = { |
| | | elem: '#mainTable4' |
| | | , toolbar: '#toolbarDemo4' |
| | | , limit: 100 |
| | | , totalRow: true |
| | | , cellMinWidth: 120 |
| | | , height: 400 |
| | | , cols: [[ |
| | | { type: 'checkbox', totalRowText: 'å计è¡' } |
| | | , { type: 'numbers', title: 'åºå·', style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HProcExchInterID', title: 'è¿å·¥å·¥åºæµè½¬å¡ID', style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HProcExchEntryID', title: 'è¿å·¥å·¥åºæµè½¬å¡åID', style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HProcExchBillNo', title: 'è¿å·¥å·¥åºæµè½¬å¡å·', style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HICMOInterID', title: 'è¿å·¥ä»»å¡åID', style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HICMOEntryID', title: 'è¿å·¥ä»»å¡ååID', style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HICMOBillNo', title: 'è¿å·¥ä»»å¡åå·', style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HStationOutInterID', title: 'è¿å·¥åºç«åID', style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HStationOutBillNo', title: 'è¿å·¥åºç«åå·', style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text' } |
| | | , { field: 'HSourceInterID', title: 'æºåå
ç ', hide: true, style: 'background-color: #f9f9f9;' } //f7 |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', hide: true, style: 'background-color: #f9f9f9;' } //f7 |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', hide: true, style: 'background-color: #f9f9f9;' } //f7 |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', hide: true, style: 'background-color: #f9f9f9;' } //f7 |
| | | ]] |
| | | } |
| | | |
| | | var rowdata = [ |
| | | { |
| | | |
| | | "HProcExchInterID": "0" |
| | | , "HProcExchEntryID": "0" |
| | | , "HProcExchBillNo": "" |
| | | , "HICMOInterID": "0" |
| | | , "HICMOEntryID": "0" |
| | | , "HICMOBillNo": "" |
| | | , "HStationOutInterID": "0" |
| | | , "HStationOutBillNo": "" |
| | | , "HRemark": "è¿å·¥" |
| | | , "HSourceInterID": "0" |
| | | , "HSourceEntryID": "0" |
| | | , "HSourceBillNo": "" |
| | | , "HSourceBillType": "" |
| | | } |
| | | ]; |
| | | option4.data = rowdata; |
| | | table.render(option4); |
| | | |
| | | } |
| | | |
| | |
| | | }); |
| | | }); |
| | | |
| | | |
| | | |
| | | //éåº |
| | | form.on('submit(Cancel)', function () { |
| | | if (linterid == undefined) { |
| | | //å
³éé¡µç¾ |
| | | Pub_Close(2); |
| | | } |
| | | else { |
| | | //å
³éé¡µç¾ |
| | | Pub_Close(1); |
| | | } |
| | | }) |
| | | |
| | | //çå¬åå
æ ¼ç¼è¾ åå
æ ¼ç¼è¾å åæ´ |
| | | table.on('edit(mainTable)', function (obj) { |
| | |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | //æå° |
| | | form.on('submit(btn_print)', function () {//产å |
| | | |
| | |
| | | }) |
| | | }); |
| | | |
| | | //è¡éæ©å¤çï¼æ¯å¦å§å¤ï¼ |
| | | form.on('select(HSupFlag)', function (data) { |
| | | //è·å䏿æ¡éä¸çå¼ |
| | | var elem = data.othis.parents('tr'); |
| | | var dataindex = elem.attr("data-index"); |
| | | $.each(option.data, function (index, value) { |
| | | if (value.LAY_TABLE_INDEX == dataindex) { |
| | | value.HSupFlag = data.value;//æéä¸ä¸ææ¡idå¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //SNè¿ç«æ§å¶ |
| | | form.on('checkbox(HSNCtrl)', function (data) { |
| | | //è·å䏿æ¡éä¸çå¼ |
| | | var elem = data.othis.parents('tr'); |
| | | var dataindex = elem.attr("data-index"); |
| | | $.each(option.data, function (index, value) { |
| | | if (value.LAY_TABLE_INDEX == dataindex) { |
| | | value.HSNCtrl = data.elem.checked;//æéä¸ä¸ææ¡idå¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | function getRoutingBill(HBillNo) { |
| | | var HRoutType = ""; |
| | | if (HSouceBillType == "3772") { |
| | |
| | | if (table.cache["mainTable"][i] != "") { |
| | | table.cache["mainTable"][i].LAY_TABLE_INDEX = i; |
| | | sSubTable.push(table.cache["mainTable"][i]) |
| | | } |
| | | } |
| | | } |
| | | var sSubTable2 = []; |
| | | for (var i = 0; i < table.cache["mainTable4"].length; i++) { |
| | | if (table.cache["mainTable4"][i] != "") { |
| | | table.cache["mainTable4"][i].LAY_TABLE_INDEX = i; |
| | | sSubTable2.push(table.cache["mainTable4"][i]) |
| | | } |
| | | } |
| | | for (var i = 0; i < sSubTable.length; i++) { |
| | | if (!sSubTable[i].HProcNo) { |
| | |
| | | data.field.HMaterName2 = data.field.HMaterName2.replace("\"", "â").replace(";", "ï¼"); |
| | | data.field.HMaterNumber = data.field.HMaterNumber.replace("\"", "â").replace(";", "ï¼"); |
| | | data.field.HMaterName = data.field.HMaterName.replace("\"", "â").replace(";", "ï¼"); |
| | | |
| | | |
| | | //var HBLFlag = data.field.HBLFlag; |
| | | //HBLFlag == "on" ? data.field.HBLFlag = 'true' : data.field.HBLFlag = 'false';//å°æ°ç»åå¹¶æå符串 |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = JSON.stringify(sSubTable); |
| | | var sSubStr2 = JSON.stringify(sSubTable2); //è¿å·¥ç³è¯· |
| | | var flag = "xz"; |
| | | if (OperationType == 3) { |
| | | flag = "xg"; |
| | | } |
| | | var sMainSub = sMainStr + ';' + sSubStr + ";" + sessionStorage["HUserName"] + ";" + flag + ";" + HSouceBillType; |
| | | var sMainSub = sMainStr + ';' + sSubStr + ";" + sessionStorage["HUserName"] + ";" + flag + ";" + HSouceBillType + ";" + sSubStr2; |
| | | var index = layer.load(); |
| | | |
| | | $.ajax({ |
| | |
| | | data: { "sMainSub": sMainSub }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | if (data.count == 1) { |
| | | layer.msg(get_MessageError(data.Message, sessionStorage["HTranSlate"]), { icon: 1 }); |
| | | $('#set_SaveBill').addClass("layui-btn-disabled").attr("disabled", true); |
| | | if (data.Verify == "Y") //èªå¨å®¡æ ¸ |
| | | { |
| | |
| | | }); |
| | | }); |
| | | |
| | | //éèå设置 |
| | | function get_HideColumn() { |
| | | var colName = ""; |
| | | for (var i = 1; i < option.cols[0].length - 1; i++) { |
| | | colName += option.cols[0][i]["title"] + ","; |
| | | } |
| | | |
| | | colName = encodeURI(colName.substring(0, colName.length - 1));//对 URI è¿è¡ç¼ç |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "éèå设置" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["50%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ['../../åºç¡èµæ/éèå设置/Gy_GridView_Hide.html?HModName=' + HModName + '&colName=' + colName, "yes"] |
| | | , btn: ["ç¡®å®", "åæ¶"] |
| | | , btn1: function (index, laero) { |
| | | //å·æ°è¡¨æ ¼æ°æ® |
| | | DisPlay_HideColumn(); |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | }) |
| | | } |
| | | |
| | | |
| | | //æ¾ç¤ºåæ°æ® |
| | | function DisPlay_HideColumn() { |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HModName": HModName, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.data.length != 0) { |
| | | |
| | | |
| | | var dataCol = [];//æ°æ®åºæ¥è¯¢åºçåæ°æ® |
| | | var titleData = ["å·¥åºID", "å·¥ä½ä¸å¿ID","é¨é¨ID","ä¾åºåID"];//ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | |
| | | dataCol = data1.data[0].HGridString.split(','); |
| | | |
| | | for (var i = 0; i < option.cols[0].length - 2; i++) { |
| | | var dataCols = dataCol[i].split('|'); |
| | | //éèå |
| | | if (dataCols[1] == 1) { |
| | | option.cols[0][i + 1]["hide"] = true; |
| | | } |
| | | //设置å
容åä½å¤§å° |
| | | if (data1.data[0].HFontSize != 0) { |
| | | option.cols[0][i + 1]["style"] = "font-size:" + data1.data[0].HFontSize + "px;"; |
| | | } else { |
| | | option.cols[0][i + 1]["style"] = "font-size:100%"; |
| | | } |
| | | //设置å宽 |
| | | if (dataCols[3] > 0) { |
| | | option.cols[0][i + 1]["width"] = dataCols[3]; |
| | | } |
| | | //æ¾ç¤ºå |
| | | if (dataCols[1] == 0 && $.inArray(option.cols[0][i + 1]["title"], titleData) == -1) { |
| | | option.cols[0][i + 1]["hide"] = false; |
| | | } |
| | | //å使å¨ä½ç½®(å·¦ å±
ä¸ å³) |
| | | switch (dataCols[2]) { |
| | | case "L": |
| | | option.cols[0][i + 1]["align"] = "left"; |
| | | break; |
| | | case "M": |
| | | option.cols[0][i + 1]["align"] = "center"; |
| | | break; |
| | | case "R": |
| | | option.cols[0][i + 1]["align"] = "right"; |
| | | break; |
| | | } |
| | | } |
| | | |
| | | //åæ¶å»ç»å |
| | | for (var i = 1; i < option.cols[0].length - 1; i++) { |
| | | if (option.cols[0][i]["fixed"] != null) { |
| | | option.cols[0][i]["fixed"] = null; |
| | | } |
| | | else { |
| | | break; |
| | | } |
| | | } |
| | | //å»ç»å |
| | | if (data1.data[0].HFixCols != 0) { |
| | | for (var i = 0; i < data1.data[0].HFixCols; i++) { |
| | | if ($.inArray(option.cols[0][i + 1]["title"], titleData) != -1) { |
| | | data1.data[0].HFixCols += 1; |
| | | } |
| | | option.cols[0][i + 1]["fixed"] = "left"; |
| | | } |
| | | } |
| | | table.render(option); |
| | | } else { |
| | | table.render(option); |
| | | } |
| | | }, error: function () { |
| | | layer.alert(get_MessageError("[0000-1-002]æ¥å£è¯·æ±å¤±è´¥!", sessionStorage["HTranSlate"]), { icon: 5 }); |
| | | } |
| | | }) |
| | | } |
| | | |
| | | |
| | | //éåº |
| | | form.on('submit(Cancel)', function () { |
| | | if (linterid == undefined) { |
| | | //å
³éé¡µç¾ |
| | | Pub_Close(2); |
| | | } |
| | | else { |
| | | //å
³éé¡µç¾ |
| | | Pub_Close(1); |
| | | } |
| | | }) |
| | | |
| | | //ç¼è¾æ¹æ³ |
| | | function set_EditFromGrid() { |
| | | set_EditForm(linterid); //ç¼è¾è·å表头 |
| | | set_EditGrid(linterid); //ç¼è¾è·åè¡¨ä½ |
| | | set_EditGrid1(linterid); //ç¼è¾è·åè¡¨ä½ è¿å·¥ |
| | | get_DisplayHMainID(linterid); //ç¼è¾è·å表ä½(å¨å
·æ¸
å) |
| | | get_Display3(linterid); //ç¼è¾è·å表ä½(å·¥èºåæ°æ¸
å) |
| | | |
| | | //option.data = [{ |
| | | // "HProcNo": "", "HProcID": 0, "HProcNumber": "", "HProcName": "", "HWorkRemark": "", |
| | | // "HCenterID": 0, "HCenterNumber": "", "HCenterName": "", |
| | | // "HDeptID": 0, "HDeptNumber": "", "HDeptName": "", |
| | | // "HSupID": 0, "HSupNumber": "", "HSupName": "", "HSupFlag": "false", |
| | | // "HQty": 0, "HSNCtrl": "false", "HOutPrice": 0, "HRemark": "", "HRelationQty_In": 0, "HRelationQty_Out": 0, |
| | | // "HRelationQty_WWOrder": 0, "HRelationQty_Bad": 0, "HOverRate": 0, "HMaxQty": 0, |
| | | // "HPassRate": 0, "HSumPassRate": 0, "HTechnologyParameter": "", "HPicNum": "", "HProcCheckNote": "", |
| | | // "HRoutingBillMainID": 0, "HRoutingBillEntryID": 0,"HSourceID":0 |
| | | //}]; |
| | | //table.render(option); |
| | | } |
| | | |
| | | //ç¼è¾è·å表头 |
| | | function set_EditForm(linterid) { |
| | | //æ¥è¯¢æ£éªæ¹æ¡åæ¯å¦åå¨ |
| | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | // ç¼è¾è·åè¡¨å¤´æ¶æ¶é´æ ¼å¼ç«æ£æ¹å¼ |
| | | function formatDate(date) { |
| | | var d = new Date(date), |
| | |
| | | |
| | | return [year, month, day].join('-'); |
| | | } |
| | | |
| | | // ç¼è¾è·åè¡¨ä½ |
| | | function set_EditGrid(linterid) { |
| | | $("#HInterID").val(linterid);//ä¿®æ¹æ¶ä¸»è¡¨ID |
| | |
| | | }); |
| | | } |
| | | |
| | | // ç¼è¾è·åè¡¨ä½ |
| | | function set_EditGrid1(linterid) { |
| | | $("#HInterID").val(linterid);//ä¿®æ¹æ¶ä¸»è¡¨ID |
| | | //ç¼è¾å è½½æ°æ® |
| | | $.ajax({ |
| | | url: GetWEBURL() + 'Sc_ProcessExchangeBill/GetProcessExchangeBillSub_Back', |
| | | type: "GET", |
| | | data: { "HInterID": linterid }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | option.data = result.data; |
| | | table.render(option); |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(index0); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //è¾
å©åä½ |
| | | function get_btnHAuxUnit() { |
| | | layer.open({ |
| | |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | |
| | | //è¾
å©åä½2 |
| | | function get_btnHAuxUnit2() { |
| | | layer.open({ |
| | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //#region æ¥è¯¢ (å¨å
·æ¸
å) |
| | | function get_DisplayHMainID(linterid) { |
| | | var ajaxLoad = layer.load(); |
| | |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | //#region æ¥è¯¢ è¿å·¥ç³è¯·å |
| | | function get_Display4(linterid) { |
| | | var ajaxLoad = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_ProcessExchangeBill/GetProcExchangeWorkBackList', |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HInterID": linterid }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | |
| | | var rowdata = []; |
| | | for (var i = 0; i < data1.data.length; i++) { |
| | | rowdata.push( |
| | | { |
| | | "HSourceInterID": data1.data[i].hmainid, |
| | | "HSourceEntryID": 1, |
| | | "HSourceBillNo": data1.data[i].åæ®å·, |
| | | "HSourceBillType": data1.data[i].HBillType, |
| | | "HProcExchInterID": data1.data[i].æµè½¬å¡ä¸»å
ç , |
| | | "HProcExchEntryID": data1.data[i].æµè½¬å¡åå
ç , |
| | | "HProcExchBillNo": data1.data[i].æµè½¬å¡å·, |
| | | "HICMOInterID": data1.data[i].HICMOInterID, |
| | | "HICMOEntryID": data1.data[i].HICMOEntryID, |
| | | "HICMOBillNo": data1.data[i].ç产订åå·, |
| | | "HStationOutInterID": data1.data[i].åºç«åID, |
| | | "HStationOutBillNo": data1.data[i].åºç«åå· |
| | | } |
| | | ) |
| | | } |
| | | option4.data = rowdata; |
| | | table.render(option4); |
| | | |
| | | var sumReworkQty = 0; |
| | | |
| | | // ç»ä¸å¤çï¼ä¸ç®¡æ¯æ°ç»è¿æ¯åæ¡ï¼é½è½¬ææ°ç»æ¹ä¾¿éå |
| | | var dataList = Array.isArray(data1.data) ? data1.data : [data1.data]; |
| | | // åç¬¬ä¸æ¡æ°æ®ç»è¡¨åèµå¼ï¼å¤æ¡åªåç¬¬ä¸æ¡ï¼ç¬¦åä¸å¡å¸¸è§é»è¾ï¼ |
| | | var firstData = dataList.length > 0 ? dataList[0] : {}; |
| | | |
| | | // é»è®¤å½åæ¶é´ï¼YYYY-MM-DD æ ¼å¼ï¼ |
| | | var nowDate = new Date().toISOString().slice(0, 10); |
| | | |
| | | // ç´¯å è¿å·¥æ°é |
| | | sumReworkQty = dataList.reduce((total, item) => { |
| | | return total + (parseFloat(item.è¿å·¥æ°é) || 0); |
| | | }, 0); |
| | | |
| | | // 表åèµå¼ï¼å
¨é¨åäºé»è®¤å¼å¤çï¼åä¸å°èªå¨ä¸º 0 / ''ï¼ |
| | | $("#HICMOInterID").val(firstData.HICMOInterID || 0); |
| | | $("#HICMOEntryID").val(firstData.HICMOEntryID || 0); |
| | | $("#HICMOBillNo").val(firstData.ç产订åå· || ''); |
| | | $("#textBox2").val(firstData.ç产订åå· || ''); |
| | | $("#HMainSourceBillSubType").val(''); |
| | | $("#HOrderProcNO").val(''); |
| | | $("#HMaterID").val(firstData.HMaterID || 0); |
| | | $("#HMaterName").val(firstData.产ååç§° || ''); |
| | | $("#HMaterID2").val(firstData.HMaterID || 0); |
| | | $("#HMaterName2").val(firstData.产ååç§° || ''); |
| | | $("#HMaterNumber").val(firstData.产å代ç || ''); |
| | | $("#HMaterNumber2").val(firstData.产å代ç || ''); |
| | | $("#HMaterModel").val(firstData.è§æ ¼åå· || ''); |
| | | $("#HMaterModel2").val(firstData.è§æ ¼åå· || ''); |
| | | $("#HBatchNo").val(''); |
| | | $("#HUnitID").val(firstData.HUnitID || 0); |
| | | $("#HUnitName").val(firstData.åä½ || ''); |
| | | $("#HUnitNumber").val(firstData.åä½ä»£ç || ''); |
| | | $("#HPlanQty").val(firstData.è®¢åæ°é || 0); |
| | | $("#HQty").val(sumReworkQty); |
| | | $("#HprocExQty").val(sumReworkQty); |
| | | $("#HPlanBeginDate").val(firstData.计åå¼å·¥æ¥æ || nowDate); |
| | | $("#HPlanEndDate").val(firstData.计åå®å·¥æ¥æ || nowDate); |
| | | $("#HWorkShopID").val(sessionStorage["HDeptID"] || 0); |
| | | $("#HWorkShopName").val(sessionStorage["HDept"] || ''); |
| | | $("#HProdMaterCode").val(''); |
| | | $("#HSeOrderBillNo").val(''); |
| | | $("#HCusShortName").val(''); |
| | | $("#HCusNeedMaterial").val(''); |
| | | |
| | | // è¿éä¿®å¤äºé误 new data() â new Date() |
| | | $("#HPlanSendGoodsDate").val(new Date()); |
| | | $("#HBillSubType").val('3772-1'); |
| | | |
| | | $("#HProdMaterName").val(''); |
| | | $("#HCusName").val(''); |
| | | $("#HWorkRemark").val(''); |
| | | $("#HImportNote").val(''); |
| | | $("#HPicNumVer").val(''); |
| | | $("#HPicNumAssemble").val(''); |
| | | $("#HMaterTexture").val(''); |
| | | $("#HProductNum").val(''); |
| | | $("#HVerNum").val(''); |
| | | $("#HCusNumber").val(''); |
| | | $("#HPickLabel").val(''); |
| | | $("#HPickLabelNumber").val(''); |
| | | $("#HXTNumber").val(''); |
| | | $("#HXTModel").val(''); |
| | | $("#HWidth").val('0'); |
| | | $("#HWeight").val('0'); |
| | | $("#HAuxUnitName").val(''); |
| | | $("#HAuxUnit").val('0'); |
| | | $("#HAuxUnitName2").val(''); |
| | | $("#HAuxUnit2").val('0'); |
| | | $("#HRemark2").val(''); |
| | | $("#HEmpID").val(sessionStorage["HEmpID"] || ''); |
| | | $("#HEmpName").val(sessionStorage["HEmpName"] || ''); |
| | | $("#HCusID").val(0); |
| | | $("#HCusNames").val(''); |
| | | $("#HColorRemark").val(''); |
| | | $("#HRemark3").val(''); |
| | | $("#HWidth_New").val('0'); |
| | | $("#HWeight_New").val('0'); |
| | | $("#HRemark_New").val('0'); |
| | | $("#HHeight").val('0'); |
| | | $("#HInches").val('0'); |
| | | $("#HAl1Long").val('0'); |
| | | $("#HDensity").val(''); |
| | | $("#HTela").val(''); |
| | | $("#HUnderTela").val(''); |
| | | $("#HSizing").val(''); |
| | | $("#HPlanOrderProcNo").val(''); |
| | | $("#HBLFlag").val(false); |
| | | $("input[name='isHBLFlag']").prop("checked", false); |
| | | form.render("checkbox"); |
| | | |
| | | btnHMaterID = firstData.HMaterID || 0; |
| | | HLZQty = data1.data.æµè½¬å¡æ°é; |
| | | |
| | | layer.close(ajaxLoad); |
| | | |
| | | var sWhere = "and HMaterID=" + btnHMaterID + " and HOrgID = " + sessionStorage["OrganizationID"] + " and é»è®¤å·¥èº='1' and HMainProcID=0 "; |
| | | |
| | | getRoutingBillList(sWhere); |
| | | |
| | | |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(ajaxLoad); |
| | | layer.alert(get_MessageError("[0000-1-002]æ¥å£è¯·æ±å¤±è´¥!", sessionStorage["HTranSlate"]), { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | //夿çäº§è®¢åæ¯å¦å®¡æ ¸ 以忥工åå· |
| | | function GetICMOBillIsAuto(linterid, HEntryID) { |
| | | $.ajax({ |
| | | type: "get", |
| | | url: GetWEBURL() + "/LEMS/ICMOBillCheck", |
| | | data: { "hmainid": linterid, "HEntryID": HEntryID, "OrganizationID": sessionStorage["OrganizationID"] }, |
| | | async: false, |
| | | success: function (result) { |
| | | if (result.count == 0) { // 说æéªè¯æåäºï¼ |
| | | layer.alert(result.Message, { icon: 5 }); |
| | | } else { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Sc_WorkBillSortBill/Sc_WorkBillSortBillList", |
| | | type: "GET", |
| | | data: { "sWhere": " and æºå主å
ç ='" + linterid + "' and æºååå
ç ='" + HEntryID + "' ", "user": sessionStorage["HUserName"] }, |
| | | success: function (d) { |
| | | if (d.data[0] != null) { |
| | | $("#HWorkBillSortNo").val(d.data[0].åæ®å·); |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | |
| | | } |
| | | |
| | | //è¿åç产任å¡å |
| | | function GetICMOBillValue(hmainid, HEntryID) { |
| | |
| | | }) |
| | | } |
| | | |
| | | //è¡éæ©å¤çï¼æ¯å¦å§å¤ï¼ |
| | | form.on('select(HSupFlag)', function (data) { |
| | | //è·å䏿æ¡éä¸çå¼ |
| | | var elem = data.othis.parents('tr'); |
| | | var dataindex = elem.attr("data-index"); |
| | | $.each(option.data, function (index, value) { |
| | | if (value.LAY_TABLE_INDEX == dataindex) { |
| | | value.HSupFlag = data.value;//æéä¸ä¸ææ¡idå¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //SNè¿ç«æ§å¶ |
| | | form.on('checkbox(HSNCtrl)', function (data) { |
| | | //è·å䏿æ¡éä¸çå¼ |
| | | var elem = data.othis.parents('tr'); |
| | | var dataindex = elem.attr("data-index"); |
| | | $.each(option.data, function (index, value) { |
| | | if (value.LAY_TABLE_INDEX == dataindex) { |
| | | value.HSNCtrl = data.elem.checked;//æéä¸ä¸ææ¡idå¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //å·¥åºæµè½¬å¡å®¡æ ¸ |
| | | function set_CheckBill(num) { |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_ProcessExchangeBill/CheckSc_ProcessExchangeBill', |
| | | type: "GET", |
| | | data: { "HInterID": $("#HInterID").val(), "Type": num, "user": sessionStorage["HUserName"], "HBillSubType": "3772" }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { icon: 1 }); |
| | | layer.close(wait); |
| | | if (result.count == 1) { |
| | | layer.msg(get_MessageError("[0000-1-029]å®¡æ ¸æå!", sessionStorage["HTranSlate"]), { icon: 1 }); |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | layer.close(wait); |
| | |
| | | }); |
| | | } |
| | | |
| | | |
| | | |
| | | //#region çæåæ®å· |
| | | function createBillNo() { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNumPDA", |
| | | type: "GET", |
| | | data: { "HBillType": '3772' }, |
| | | success: function (d) { |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | $("#HDate").val(Pub_Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HMakeDate").val(Pub_Format(new Date(), "yyyy-MM-dd hh:mm:ss")); |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | //éèå设置 |
| | | function get_HideColumn() { |
| | | var colName = ""; |
| | | for (var i = 1; i < option.cols[0].length - 1; i++) { |
| | | colName += option.cols[0][i]["title"] + ","; |
| | | } |
| | | |
| | | colName = encodeURI(colName.substring(0, colName.length - 1));//对 URI è¿è¡ç¼ç |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "éèå设置" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["50%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ['../../åºç¡èµæ/éèå设置/Gy_GridView_Hide.html?HModName=' + HModName + '&colName=' + colName, "yes"] |
| | | , btn: ["ç¡®å®", "åæ¶"] |
| | | , btn1: function (index, laero) { |
| | | //å·æ°è¡¨æ ¼æ°æ® |
| | | DisPlay_HideColumn(); |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //æ¾ç¤ºåæ°æ® |
| | | function DisPlay_HideColumn() { |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HModName": HModName, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.data.length != 0) { |
| | | |
| | | |
| | | var dataCol = [];//æ°æ®åºæ¥è¯¢åºçåæ°æ® |
| | | var titleData = ["å·¥åºID", "å·¥ä½ä¸å¿ID", "é¨é¨ID", "ä¾åºåID"];//ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | |
| | | dataCol = data1.data[0].HGridString.split(','); |
| | | |
| | | for (var i = 0; i < option.cols[0].length - 2; i++) { |
| | | var dataCols = dataCol[i].split('|'); |
| | | //éèå |
| | | if (dataCols[1] == 1) { |
| | | option.cols[0][i + 1]["hide"] = true; |
| | | } |
| | | //设置å
容åä½å¤§å° |
| | | if (data1.data[0].HFontSize != 0) { |
| | | option.cols[0][i + 1]["style"] = "font-size:" + data1.data[0].HFontSize + "px;"; |
| | | } else { |
| | | option.cols[0][i + 1]["style"] = "font-size:100%"; |
| | | } |
| | | //设置å宽 |
| | | if (dataCols[3] > 0) { |
| | | option.cols[0][i + 1]["width"] = dataCols[3]; |
| | | } |
| | | //æ¾ç¤ºå |
| | | if (dataCols[1] == 0 && $.inArray(option.cols[0][i + 1]["title"], titleData) == -1) { |
| | | option.cols[0][i + 1]["hide"] = false; |
| | | } |
| | | //å使å¨ä½ç½®(å·¦ å±
ä¸ å³) |
| | | switch (dataCols[2]) { |
| | | case "L": |
| | | option.cols[0][i + 1]["align"] = "left"; |
| | | break; |
| | | case "M": |
| | | option.cols[0][i + 1]["align"] = "center"; |
| | | break; |
| | | case "R": |
| | | option.cols[0][i + 1]["align"] = "right"; |
| | | break; |
| | | } |
| | | } |
| | | |
| | | //åæ¶å»ç»å |
| | | for (var i = 1; i < option.cols[0].length - 1; i++) { |
| | | if (option.cols[0][i]["fixed"] != null) { |
| | | option.cols[0][i]["fixed"] = null; |
| | | } |
| | | else { |
| | | break; |
| | | } |
| | | } |
| | | //å»ç»å |
| | | if (data1.data[0].HFixCols != 0) { |
| | | for (var i = 0; i < data1.data[0].HFixCols; i++) { |
| | | if ($.inArray(option.cols[0][i + 1]["title"], titleData) != -1) { |
| | | data1.data[0].HFixCols += 1; |
| | | } |
| | | option.cols[0][i + 1]["fixed"] = "left"; |
| | | } |
| | | } |
| | | table.render(option); |
| | | } else { |
| | | table.render(option); |
| | | } |
| | | }, error: function () { |
| | | layer.alert(get_MessageError("[0000-1-002]æ¥å£è¯·æ±å¤±è´¥!", sessionStorage["HTranSlate"]), { icon: 5 }); |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //以ä¸ä¸ºlayui模å |
| | | }); |
| | | |