| | |
| | | </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 class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">产åè§æ ¼</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> |
| | | <input type="text" class="layui-input" name="HMaterModel2" id="HMaterModel2" onmouseover="this.title=this.value" 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="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">éåå·</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 class="layui-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">å¹
宽</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HWidth" id="HWidth" style="background-color: #efefef4d; float: left;" readonly> |
| | | <input type="text" class="layui-input" name="HWidth" id="HWidth" style="background-color: #efefef4d; float: left;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="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>--> |
| | | <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">è¾
æ°é</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">å
é</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">è¯ä½ç©æä»£ç </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"> |
| | |
| | | <option value="true">æ¯</option> |
| | | </select> |
| | | </script> |
| | | |
| | | <!--å¤éæ¡ SNè¿ç«æ§å¶--> |
| | | <script type="text/html" id="HSNCtrl"> |
| | | <div class="layui-input-block" style="margin-left: 20px;"> |
| | | <input type="checkbox" name="HSNCtrl" lay-filter="HSNCtrl" id="HSNCtrl{{d.LAY_TABLE_INDEX+1}}" lay-skin="primary"> |
| | | </div> |
| | | </script> |
| | | |
| | | <script> |
| | | |
| | | layui.config({ |
| | |
| | | "HCenterID": 0, "HCenterNumber": "", "HCenterName": "", |
| | | "HDeptID": 0, "HDeptNumber": "", "HDeptName": "", |
| | | "HSupID": 0, "HSupNumber": "", "HSupName": "", "HSupFlag": "false", |
| | | "HQty": 0, "HOutPrice": 0, "HRemark": "", "HRelationQty_In": 0, "HRelationQty_Out": 0, |
| | | "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": "" |
| | | }]; |
| | |
| | | "HCenterID": 0, "HCenterNumber": "", "HCenterName": "", |
| | | "HDeptID": 0, "HDeptNumber": "", "HDeptName": "", |
| | | "HSupID": 0, "HSupNumber": "", "HSupName": "", "HSupFlag": "false", |
| | | "HQty": 0, "HOutPrice": 0, "HRemark": "", "HRelationQty_In": 0, "HRelationQty_Out": 0, |
| | | "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": "" |
| | | }]; |
| | |
| | | $("#HMainSourceInterID").val(linterid); |
| | | $("#HMainSourceEntryID").val(HEntryID); |
| | | $("#btnRoutingBill").addClass("layui-btn-disabled").attr("disabled", true); |
| | | |
| | | |
| | | set_EditForm(linterid); |
| | | |
| | | var sWhere = "and HMaterID=" + btnHMaterID + " and HOrgID = " + sessionStorage["OrganizationID"] + " and HMainProcID=" + HproID +" and é»è®¤å·¥èº='1'"; |
| | |
| | | , { field: 'HSupNumber', title: 'ä¾åºå代ç ', edit: 'text', event: "HSupCheck" } |
| | | , { field: 'HSupName', title: 'ä¾åºå' } |
| | | , { field: 'HSupFlag', title: 'æ¯å¦å§å¤', templet: '#HSupFlag' } |
| | | , { field: 'HQty', title: 'æµè½¬å¡æ°é', totalRow: true ,edit: 'text' } |
| | | , { field: 'HQty', title: 'æµè½¬å¡æ°é', totalRow: true, edit: 'text', width:120 } |
| | | , { field: 'HSNCtrl', title: 'SNè¿ç«æ§å¶', templet: "#HSNCtrl", width: 120 } |
| | | |
| | | //, { field: 'HWorkRemark', title: 'å 工说æ', edit: 'text' } |
| | | //, { field: 'HDeptID', title: 'é¨é¨ID', hide: true } |
| | |
| | | "HCenterID": 0, "HCenterNumber": "", "HCenterName": "", |
| | | "HDeptID": 0, "HDeptNumber": "", "HDeptName": "", |
| | | "HSupID": 0, "HSupNumber": "", "HSupName": "", "HSupFlag": "false", |
| | | "HQty": 0, "HOutPrice": 0, "HRemark": "", "HRelationQty_In": 0, "HRelationQty_Out": 0, |
| | | "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": "" |
| | | }; |
| | |
| | | table.render(option); |
| | | for (var i = 1; i <= option.data.length; i++) { |
| | | $('#HSupFlag' + i + '').find("option[value='" + option.data[i - 1].HSupFlag + "']").attr("selected", true); |
| | | |
| | | //SNè¿ç«æ§å¶ |
| | | if (option.data[i - 1].HSNCtrl) { |
| | | $('#HSNCtrl' + i + '').attr("checked", true); |
| | | } |
| | | } |
| | | form.render('select'); |
| | | form.render('checkbox'); |
| | | break; |
| | | case 'btn-CopyLine': |
| | | var copydata = JSON.stringify(data); |
| | |
| | | table.render(option);//å°æ°æ®æ¸²æå°è¡¨æ ¼ä¸ |
| | | for (var i = 1; i <= option.data.length; i++) { |
| | | $('#HSupFlag' + i + '').find("option[value='" + option.data[i - 1].HSupFlag + "']").attr("selected", true); |
| | | |
| | | //SNè¿ç«æ§å¶ |
| | | if (option.data[i - 1].HSNCtrl) { |
| | | $('#HSNCtrl' + i + '').attr("checked", true); |
| | | } |
| | | |
| | | } |
| | | form.render('select'); |
| | | form.render('checkbox'); |
| | | } |
| | | break; |
| | | } |
| | |
| | | } |
| | | } |
| | | table.render(option); |
| | | |
| | | for (var i = 0; i < option.data.length; i++) { |
| | | $('#HSupFlag' + (i + 1)).find("option[value='" + (option.data[i].HSupFlag == "false" ? "false" : "true") + "']").attr("selected", true); |
| | | |
| | | if (option.data[i].HSNCtrl.toString() == "true") { |
| | | $('#HSNCtrl' + (i + 1)).attr("checked", true); |
| | | } |
| | | } |
| | | |
| | | form.render('select'); |
| | | form.render('checkbox'); |
| | | |
| | | }); |
| | | |
| | | //çå¬åå
æ ¼ç¼è¾ åå
æ ¼ç¼è¾å åæ´ |
| | |
| | | "HCenterID": data[i].HCenterID, "HCenterNumber": data[i].å·¥ä½ä¸å¿ä»£ç , "HCenterName": data[i].å·¥ä½ä¸å¿åç§°, |
| | | "HDeptID": 0, "HDeptNumber": "", "HDeptName": "", |
| | | "HSupID": data[i].HSupID, "HSupNumber": data[i].ä¾åºå代ç , "HSupName": data[i].ä¾åºå, "HSupFlag": data[i].å§å¤æ è®° == 0 ? "false" : "true", |
| | | "HQty": HLZQty, "HOutPrice": 0, "HRemark": "", "HRelationQty_In": 0, "HRelationQty_Out": 0, |
| | | "HQty": HLZQty, "HSNCtrl": data[i].SNè¿ç«æ§å¶ == 0 ? "false" : "true", "HOutPrice": 0, "HRemark": "", "HRelationQty_In": 0, "HRelationQty_Out": 0, |
| | | "HRelationQty_WWOrder": 0, "HRelationQty_Bad": 0, "HOverRate": 0, "HMaxQty": 0, |
| | | "HPassRate": 0, "HSumPassRate": 0, "HTechnologyParameter": data[i].å·¥èºåæ°, "HPicNum": data[i].å¾çº¸ç¼å·, "HProcCheckNote": data[i].æ¬å·¥åºç¡®è®¤è®°å½, |
| | | "HRelationQty_OutBad": "0" |
| | |
| | | } |
| | | option.data = Tablerow; |
| | | table.render(option); |
| | | for (var i = 1; i <= data.length; i++) { |
| | | $('#HSupFlag' + i + '').find("option[value='" + (data[i - 1].å§å¤æ è®° == "0" ? "false" : "true") + "']").attr("selected", true); |
| | | for (var i = 0; i < data.length; i++) { |
| | | $('#HSupFlag' + (i + 1)).find("option[value='" + (data[i].å§å¤æ è®° == "0" ? "false" : "true") + "']").attr("selected", true); |
| | | |
| | | if (data[i].SNè¿ç«æ§å¶) { |
| | | $('#HSNCtrl' + (i + 1)).attr("checked", true); |
| | | } |
| | | } |
| | | form.render('select'); |
| | | form.render('checkbox'); |
| | | }, |
| | | error: function (result) { |
| | | layer.close(index); |
| | |
| | | "HCenterID": 0, "HCenterNumber": "", "HCenterName": "", |
| | | "HDeptID": 0, "HDeptNumber": "", "HDeptName": "", |
| | | "HSupID": 0, "HSupNumber": "", "HSupName": "", "HSupFlag": "false", |
| | | "HQty": 0, "HOutPrice": 0, "HRemark": "", "HRelationQty_In": 0, "HRelationQty_Out": 0, |
| | | "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": "" |
| | | }]; |
| | |
| | | if (result.count == 1) { |
| | | option.data = result.data; |
| | | table.render(option); |
| | | for (var i = 0; i < result.data.length; i++) { |
| | | $('#HSupFlag' + (i + 1)).find("option[value='" + result.data[i].HSupFlag + "']").attr("selected", true); |
| | | for (var i = 0; i < option.data.length; i++) { |
| | | $('#HSupFlag' + (i + 1)).find("option[value='" + (option.data[i].HSupFlag == "false" ? "false" : "true") + "']").attr("selected", true); |
| | | |
| | | if (option.data[i].HSNCtrl) { |
| | | $('#HSNCtrl' + (i + 1)).attr("checked", true); |
| | | } |
| | | } |
| | | form.render('select'); |
| | | form.render('checkbox'); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | |
| | | "HCenterID": 0, "HCenterNumber": "", "HCenterName": "", |
| | | "HDeptID": 0, "HDeptNumber": "", "HDeptName": "", |
| | | "HSupID": 0, "HSupNumber": "", "HSupName": "", "HSupFlag": "false", |
| | | "HQty": 0, "HOutPrice": 0, "HRemark": "", "HRelationQty_In": 0, "HRelationQty_Out": 0, |
| | | "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": "" |
| | | }]; |
| | |
| | | if (result.count == 1) { |
| | | option.data = result.data; |
| | | table.render(option); |
| | | for (var i = 1; i <= option.data.length; i++) { |
| | | $('#HSupFlag' + i + '').find("option[value='" + option.data[i - 1].HSupFlag + "']").attr("selected", true); |
| | | for (var i = 0; i < data.length; i++) { |
| | | $('#HSupFlag' + (i + 1)).find("option[value='" + (data[i].å§å¤æ è®° == "0" ? "false" : "true") + "']").attr("selected", true); |
| | | |
| | | if (data[i].SNè¿ç«æ§å¶) { |
| | | $('#HSNCtrl' + (i + 1)).attr("checked", true); |
| | | } |
| | | } |
| | | form.render('select'); |
| | | form.render('checkbox'); |
| | | } |
| | | else { |
| | | layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //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å¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | } |
| | | }); |
| | | }); |
| | | //以ä¸ä¸ºlayui模å |
| | | }); |
| | | |