| | |
| | | <input type="hidden" name="HSTOCKINORGID" id="HSTOCKINORGID" lay-verify="HSTOCKINORGID"> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æ¥æ*</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æ¯å¦ååºå</label> |
| | | <div class="layui-input-block" style="margin-left: 120px; width: 185px;"> |
| | | <select name="HIsStockQty" lay-filter="HIsStockQty" id="HIsStockQty"> |
| | | <option value="0" selected>å¦</option> |
| | | <option value="1">æ¯</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ç产车é´</label> |
| | | <div class="layui-input-block" style="margin-left: 71px;"> |
| | | <input type="text" class="layui-input" lay-verify="HDeptName" name="HDeptName" id="HDeptName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HDeptID" id="HDeptID" lay-verify="HDeptID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHDept" id="btnHDept" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-inline" style="width: 51%;"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">客æ·</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" lay-verify="HCusName" name="HCusName" id="HCusName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HCusID" id="HCusID" lay-verify="HCusID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHCus" id="btnHCus" style="padding: 0 10px; float: right; margin-right: 210px;"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHCus" id="btnHCus" style="padding: 0 10px; float: right; margin-right: 85px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <!--<div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">çäº§èµæº</label> |
| | | <div class="layui-input-block" style="margin-left: 75px;"> |
| | | <input type="text" class="layui-input" lay-verify="HSourceName" name="HSourceName" id="HSourceName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HSourceID" id="HSourceID" lay-verify="HSourceID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHSource" id="btnHSource" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div>--> |
| | | <label class="layui-form-label" style="width: 85px;">çäº§èµæº</label> |
| | | <div class="layui-input-block" style="margin-left: 75px;"> |
| | | <input type="text" class="layui-input" lay-verify="HSourceName" name="HSourceName" id="HSourceName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HSourceID" id="HSourceID" lay-verify="HSourceID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHSource" id="btnHSource" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div>--> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">计éåä½*</label> |
| | | <div class="layui-input-block" style="margin-left: 71px;"> |
| | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æè²è¦æ±</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HColorRemark" lay-verify="HColorRemark" id="HColorRemark" style="background-color:#efefef4d;display: inline-block;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">计åå¼å·¥æ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 115px;"> |
| | | <input type="date" class="layui-input" lay-verify="HPlanBeginDate" name="HPlanBeginDate" id="HPlanBeginDate" style="padding-left: 80px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">计åå¼å®å·¥æ</label> |
| | | <label class="layui-form-label" style="width: 85px;">计åå®å·¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="date" class="layui-input" lay-verify="HPlanEndDate" name="HPlanEndDate" id="HPlanEndDate" style="padding-left: 80px;"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">客æ·ç©æåç§°</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HCusMaterName" lay-verify="HCusMaterName" id="HCusMaterName" style="display: inline-block;" > |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">客æ·è§æ ¼åå·</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HCusModel" lay-verify="HCusModel" id="HCusModel" style="display: inline-block;"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline" style="width: 56%;"> |
| | | <label class="layui-form-label" style="width: 85px;">夿³¨</label> |
| | | <label class="layui-form-label" style="width: 85px;">ç½å¯è¦æ±</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HRemark" id="HRemark" lay-verify="HRemark" placeholder="请è¾å
¥å
容" onmouseover="this.title=this.value"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">订åå
è£
夿³¨</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HOrderPickRemark" lay-verify="HOrderPickRemark" id="HOrderPickRemark" style="display: inline-block;"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline" style="width: 56%;"> |
| | | <label class="layui-form-label" style="width: 85px;">åºé¨å¤æ³¨</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HRemark3" id="HRemark3" lay-verify="HRemark3" placeholder="请è¾å
¥å
容" onmouseover="this.title=this.value"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <!--å
¶ä»ä¿¡æ¯--> |
| | | <div class="layui-tab-item"> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ç产车é´</label> |
| | | <div class="layui-input-block" style="margin-left: 71px;"> |
| | | <input type="text" class="layui-input" lay-verify="HDeptName" name="HDeptName" id="HDeptName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HDeptID" id="HDeptID" lay-verify="HDeptID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHDept" id="btnHDept" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <!--éèåæ®µ--> |
| | | <div class="layui-row" style="display:none;"> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="hidden" name="HSourceInterID" id="HSourceInterID" lay-verify="HSourceInterID" value="0"> |
| | | <input type="hidden" name="HSourceEntryID" id="HSourceEntryID" lay-verify="HSourceEntryID" value="0"> |
| | | <input type="hidden" name="HSourceBillNo" id="HSourceBillNo" lay-verify="HSourceBillNo" value=""> |
| | | <input type="hidden" name="HSourceBillType" id="HSourceBillType" lay-verify="HSourceBillType" value=""> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | } |
| | | }); |
| | | } |
| | | else {//å¦æä¿®æ¹åèµ°ä¸é¢ |
| | | else if (OperationType == 2) { |
| | | RoadBillMain(linterid); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | type: "GET", |
| | | data: { "HBillType": '3710' }, |
| | | success: function (d) { |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | } |
| | | }); |
| | | } |
| | | else if (OperationType == 3) {//å¦æä¿®æ¹åèµ°ä¸é¢ |
| | | //ç¦ç¨ç»ç»é项 |
| | | $("#HPRDORGID").attr("disabled", true); |
| | | $("#HDate").attr("disabled", true); |
| | | RoadBillMain(linterid); |
| | | } |
| | | else if (OperationType == 4) { //éå®è®¢å䏿¨ç产订å-页é¢åå§å |
| | | setInit_PushBill(); |
| | | } |
| | | HfBtn(); |
| | | |
| | |
| | | |
| | | //ä¿åæäº¤ |
| | | form.on('submit(btnSave)', function (data) {//æäº¤ |
| | | //#region 夿æºåç¶æ |
| | | var HSourceBillData = ""; |
| | | var HSourceBillData = getSourceBillStatus_SeOrderBill(); //è·åæºåæ°æ® |
| | | if (HSourceBillData != "none") { |
| | | if (HSourceBillData.length == 0) { |
| | | if ($("#HSourceInterID").val() != 0) { |
| | | layer.alert("ä¿å失败!æªæ¥è¯¢å°æºååæ®!", { icon: 5 }); |
| | | return; |
| | | } |
| | | } else if (HSourceBillData[0]["ç¶æ"] != "å·²å®¡æ ¸") { |
| | | layer.alert("ä¿å失败!æºååæ®ç¶ææªä¸º'å·²å®¡æ ¸'ç¶æ!", { icon: 5 }); |
| | | return; |
| | | } |
| | | } else { |
| | | return; |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | |
| | | if (AllowLoadData(data)) { |
| | | set_AddNew(data); |
| | | } |
| | |
| | | $("#HSeOrderBillNo").val(checkStatus.data[0].åæ®å·); |
| | | $("#HSeOrderEntryID").val(checkStatus.data[0].hsubid); |
| | | |
| | | $("#HSourceInterID").val(checkStatus.data[0].hmainid); |
| | | $("#HSourceEntryID").val(checkStatus.data[0].hsubid); |
| | | $("#HSourceBillNo").val(checkStatus.data[0].åæ®å·); |
| | | $("#HSourceBillType").val("1401"); |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: '客æ·'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../åºç¡èµæ/éå®åºç¡èµæ/Gy_Customer.html', 'yes'] |
| | | , content: ['../../BaseSet/åºç¡èµæ/Gy_CustomerList.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HCusID").val(checkStatus.data[0].HItemID); |
| | | $("#HCusName").val(checkStatus.data[0].客æ·åç§°); |
| | | //$("#HCusID").val(checkStatus.data[0].HItemID); |
| | | //$("#HCusName").val(checkStatus.data[0].客æ·åç§°); |
| | | |
| | | getCustomerByCusID(checkStatus.data[0].HItemID); |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | |
| | | $("#HModel").val(checkStatus.data[0].è§æ ¼åå·); |
| | | $("#HUnitID").val(checkStatus.data[0].HUnitID);//计éåä½id |
| | | $("#HUnitName").val(checkStatus.data[0].计éåä½åç§°);//计éåä½åç§° |
| | | $("#HWidth").val(checkStatus.data[0].HWidth);//å¹
宽 |
| | | $("#HWeight").val(checkStatus.data[0].HWeight);//å
é |
| | | $("#HWidth").val(checkStatus.data[0].å¹
宽);//å¹
宽 |
| | | $("#HWeight").val(checkStatus.data[0].å
é);//å
é |
| | | $("#HColorRemark").val(checkStatus.data[0].æè²è¦æ±);//æè²è¦æ± |
| | | $("#HRemark").val(checkStatus.data[0].夿³¨);//夿³¨ |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | |
| | | }) |
| | | } |
| | | |
| | | //#region 䏿¨é¡µé¢åå§å |
| | | function setInit_PushBill() { |
| | | //çæå¹¶è®¾ç½®ä¸»è¡¨çå
ç ååæ®å· |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | type: "GET", |
| | | data: { "HBillType": '3710' }, |
| | | success: function (d) { |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | } |
| | | }); |
| | | |
| | | //æ¥è¯¢ éå®è®¢å æ¯å¦åå¨ |
| | | var ajaxLoad = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Xs_SeOrderBill/loadXs_SeOrderBill_InitICMO", |
| | | async: false, |
| | | type: "GET", |
| | | data: { |
| | | "HInterID": linterid |
| | | , "HEntryID": HEntryID |
| | | }, |
| | | success: function (result) { |
| | | if (result.code == 1) { // 说æéªè¯æåäºï¼ |
| | | var data = result.data[0]; |
| | | |
| | | form.val("formData", { //formTest å³ class="layui-form" æå¨å
ç´ å±æ§ lay-filter="" 对åºçå¼ |
| | | "HSeOrderBillNo": data.åæ®å· |
| | | , "HSeOrderInterID": data.hmainid |
| | | , "HSeOrderEntryID": data.hsubid |
| | | |
| | | , "HSourceInterID": data.hmainid |
| | | , "HSourceEntryID": data.hsubid |
| | | , "HSourceBillNo": data.åæ®å· |
| | | , "HSourceBillType": "1401" |
| | | |
| | | , "HEmpID": data.HEmpID |
| | | , "HEmpName": data.ä¸å¡å |
| | | , "HCusID": data.HCusID |
| | | , "HCusName": data.å®¢æ· |
| | | , "HQty": data.æ°é |
| | | , "HMaterID": data.HMaterID |
| | | , "HMaterNumber": data.ç©æä»£ç |
| | | , "HMaterName": data.ç©æåç§° |
| | | , "HModel": data.è§æ ¼åå· |
| | | , "HUnitID": data.HUnitID |
| | | , "HUnitName": data.计éåä½ |
| | | , "HWidth": data.å¹
宽 |
| | | , "HWeight": data.å
é |
| | | , "HRemark": data.è¡¨å¤´å¤æ³¨ |
| | | }); |
| | | |
| | | layer.close(ajaxLoad); |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | | layer.alert(result.msg, { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(ajaxLoad); |
| | | layer.alert("åçé误!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | //ä¿åHMaker |
| | | function set_AddNew(data) { |
| | | |
| | |
| | | ////$('#set_CancelCloseBill').removeClass("layui-btn-disabled").attr("disabled", false); |
| | | //$('#set_CancelltionBill').removeClass("layui-btn-disabled").attr("disabled", false); |
| | | ////$('#set_AbandonCancelltion').removeClass("layui-btn-disabled").attr("disabled", false); |
| | | |
| | | |
| | | } |
| | | else { |
| | | layer.close(index); |
| | |
| | | , "HSeOrderBillNo": d.data[0].æºååå· |
| | | , "HSeOrderInterID": d.data[0].æºå主å
ç |
| | | , "HSeOrderEntryID": d.data[0].æºååå
ç |
| | | |
| | | , "HSourceInterID": d.data[0].HSourceInterID |
| | | , "HSourceEntryID": d.data[0].HSourceEntryID |
| | | , "HSourceBillNo": d.data[0].HSourceBillNo |
| | | , "HSourceBillType": d.data[0].HSourceBillType |
| | | |
| | | , "HEmpID": d.data[0].HEmpID |
| | | , "HEmpName": d.data[0].ä¸å¡å |
| | | , "HCusID": d.data[0].HEntryCusID |
| | |
| | | , "HUnitID": d.data[0].HUnitID |
| | | , "HUnitName": d.data[0].计éåä½ |
| | | , "HSTATUS": HSTATUS |
| | | , "HIsStockQty": d.data[0].HIsStockQty |
| | | , "HBomID": d.data[0].HBomID |
| | | , "HBomName": d.data[0].BOMåç¼ç |
| | | , "HPlanBeginDate": Format(new Date(d.data[0].计åå¼å·¥æ¥æ), "yyyy-MM-dd") |
| | |
| | | , "HBeginDate": Format(new Date(d.data[0].æè¿å¼å·¥æ¥æ), "yyyy-MM-dd") |
| | | , "HEndDate": Format(new Date(d.data[0].æè¿å®å·¥æ¥æ), "yyyy-MM-dd") |
| | | , "HRemark": d.data[0].è¡¨å¤´å¤æ³¨ |
| | | , "HRemark3": d.data[0].åºé¨å¤æ³¨ |
| | | , "HAuxQty": d.data[0].HAuxQty |
| | | , "HAuxUnit": d.data[0].HAuxUnit |
| | | , "HAuxUnitName": d.data[0].HAuxUnitName |
| | | , "HWidth": d.data[0].HWidth |
| | | , "HWeight": d.data[0].HWeight |
| | | , "HColorRemark": d.data[0].æè²è¦æ± |
| | | , "HCusMaterName": d.data[0].客æ·ç©æåç§° |
| | | , "HCusModel": d.data[0].客æ·è§æ ¼åå· |
| | | , "HOrderPickRemark": d.data[0].订åå
è£
夿³¨ |
| | | //å
¶ä»ä¿¡æ¯ |
| | | , "hmakers": d.data[0].å¶å人 |
| | | , "hmakedate": d.data[0].å¶åæ¥æ == null ? "" : Format(new Date(d.data[0].å¶åæ¥æ), "yyyy-MM-dd") |
| | | , "hchecker": d.data[0].å®¡æ ¸äºº |
| | | , "hcheckdate": d.data[0].å®¡æ ¸æ¥æ == null ? "" : Format(new Date(d.data[0].å®¡æ ¸æ¥æ), "yyyy-MM-dd") |
| | | , "hupdater": d.data[0].ä¿®æ¹äºº |
| | | , "hupdatedate": d.data[0].ä¿®æ¹æ¥æ == null ? "" : Format(new Date(d.data[0].ä¿®æ¹æ¥æ), "yyyy-MM-dd") |
| | | , "hdeleteman": d.data[0].ä½åºäºº |
| | | , "hdeletedate": d.data[0].ä½åºæ¥æ == null ? "" : Format(new Date(d.data[0].ä½åºæ¥æ), "yyyy-MM-dd") |
| | | , "hmakers": OperationType == 2 ? "" : d.data[0].å¶å人 |
| | | , "hmakedate": OperationType == 2 ? "" : d.data[0].å¶åæ¥æ == null ? "" : Format(new Date(d.data[0].å¶åæ¥æ), "yyyy-MM-dd") |
| | | , "hchecker": OperationType == 2 ? "" : d.data[0].å®¡æ ¸äºº |
| | | , "hcheckdate": OperationType == 2 ? "" : d.data[0].å®¡æ ¸æ¥æ == null ? "" : Format(new Date(d.data[0].å®¡æ ¸æ¥æ), "yyyy-MM-dd") |
| | | , "hupdater": OperationType == 2 ? "" : d.data[0].ä¿®æ¹äºº |
| | | , "hupdatedate": OperationType == 2 ? "" : d.data[0].ä¿®æ¹æ¥æ == null ? "" : Format(new Date(d.data[0].ä¿®æ¹æ¥æ), "yyyy-MM-dd") |
| | | , "hdeleteman": OperationType == 2 ? "" : d.data[0].ä½åºäºº |
| | | , "hdeletedate": OperationType == 2 ? "" : d.data[0].ä½åºæ¥æ == null ? "" : Format(new Date(d.data[0].ä½åºæ¥æ), "yyyy-MM-dd") |
| | | }); |
| | | form.render('select'); |
| | | |
| | | |
| | | } |
| | | }) |
| | | } |
| | |
| | | return false; |
| | | } |
| | | |
| | | if ($("#HCusID").val() == "0" || $("#HCusName").val() == "") { |
| | | layer.msg("客æ·ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | |
| | | if ($("#HMaterNumber").val() == "") { |
| | | layer.msg("ç©æç¼ç 没æéæ©"); |
| | | return false; |
| | |
| | | return false; |
| | | } |
| | | |
| | | |
| | | var HQty = $('#HQty').val(); |
| | | if (HQty.substring(HQty.length - 1, HQty.length) == ".") { |
| | | layer.msg("计åç产æ°éçç»å°¾ä¸è½æ¯.ï¼"); |
| | | return; |
| | | } else { |
| | | var ref = /^[0-9]+\.?[0-9]*$/; |
| | | if (!ref.test(HQty)) { |
| | | layer.msg("计åç产æ°éè¯·è¾æ£ç¡®å
¥æ°åï¼"); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | var HAuxQty = $('#HAuxQty').val(); |
| | | if (HAuxQty.substring(HAuxQty.length - 1, HAuxQty.length) == ".") { |
| | | layer.msg("è¾
æ°éçç»å°¾ä¸è½æ¯.ï¼"); |
| | | return; |
| | | } else { |
| | | var ref = /^[0-9]+\.?[0-9]*$/; |
| | | if (!ref.test(HAuxQty)) { |
| | | layer.msg("è¾
æ°éè¯·è¾æ£ç¡®å
¥æ°åï¼"); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | //if ($("#HDeptName").val() == "") { |
| | | // layer.msg("çäº§è½¦é´æ²¡æéæ©"); |
| | | // return false; |
| | |
| | | // layer.msg("BOM没æéæ©"); |
| | | // return false; |
| | | //} |
| | | |
| | | |
| | | |
| | | return true; |
| | | } |
| | |
| | | return vars; |
| | | } |
| | | |
| | | |
| | | //#region è·åæºå-éå®è®¢ååæ®ç¶æ |
| | | function getSourceBillStatus_SeOrderBill() { |
| | | var HSourceBillData = "none"; |
| | | var sWhere = " and hmainid = " + $("#HSourceInterID").val(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Xs_SeOrderBill/list', |
| | | async: false, |
| | | type: "GET", |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | HSourceBillData = data1.data; |
| | | } else { |
| | | layer.alert(data1.code + "æºååæ®ç¶æå¤æå¤±è´¥ï¼", { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | return HSourceBillData; |
| | | } |
| | | //#endregion |
| | | //#endregion |
| | | |
| | | }); |
| | | |
| | | function GetHSupValue(obj) //è¿åå®¢æ· |
| | | { |
| | | //$("#HCusName").val(obj[0].HName); |
| | | //$("#HCusID").val(obj[0].HItemID); |
| | | //æ ¹æ®å®¢æ·è·åç¸å
³ä¿¡æ¯ |
| | | getCustomerByCusID(obj[0].HItemID); |
| | | } |
| | | |
| | | //#region æ ¹æ®å®¢æ·è·åå¸å«ãæ±çãç»ç®æ¹å¼ã客æ·ä¿¡ç¨é¢åº¦ãè系人ãèç³»çµè¯ |
| | | function getCustomerByCusID(HCusID) { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Xs_SeOrderBill/getCustomerByCusID", |
| | | async: false, |
| | | type: "GET", |
| | | data: { |
| | | "HCusID": HCusID |
| | | }, |
| | | success: function (result) { |
| | | if (result.code == 1) { // 说æéªè¯æåäºï¼ |
| | | var data = result.data[0]; |
| | | |
| | | $("#HCusID").val(data.HCusID); |
| | | $("#HCusName").val(data.HCusName); |
| | | //$("#HCurID").val(data.HCurID); |
| | | //$("#HCurName").val(data.HCurName); |
| | | //$("#HExRate").val(data.HExRate); |
| | | //$("#HSSID").val(data.HSSID); |
| | | //$("#HSSName").val(data.HSSName); |
| | | //$("#HCreditRating_Now").val(data.HCreditRating_Now); |
| | | //$("#HLinkMan").val(data.HLinkMan); |
| | | //$("#HLinkPhone").val(data.HLinkPhone); |
| | | |
| | | //subHTaxRate = data.HTaxRate; |
| | | |
| | | } else { |
| | | layer.alert(result.msg, { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("åçé误!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | </script> |
| | | </body> |