| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | <!--å¶åä¿¡æ¯--> |
| | | <div class="layui-tab-item"> |
| | | <div class="layui-form-item"> |
| | | <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="HMaker" id="HMaker" style="background-color:#efefef4d;" readonly> |
| | | <!--å¶åä¿¡æ¯--> |
| | | <div class="layui-tab-item"> |
| | | <div class="layui-form-item"> |
| | | <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="HMaker" id="HMaker" style="background-color:#efefef4d;" readonly> |
| | | </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="HChecker" id="HChecker" style="background-color:#efefef4d;" readonly> |
| | | </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="HCloseMan" id="HCloseMan" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </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="HChecker" id="HChecker" style="background-color:#efefef4d;" readonly> |
| | | <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="HMakeDate" id="HMakeDate" style="background-color:#efefef4d;" readonly> |
| | | </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="HCheckDate" id="HCheckDate" style="background-color:#efefef4d;" readonly> |
| | | </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="HCloseDate" id="HCloseDate" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </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="HCloseMan" id="HCloseMan" style="background-color:#efefef4d;" readonly> |
| | | <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="HUpDater" id="HUpDater" style="background-color:#efefef4d;" readonly> |
| | | </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="HDeleteMan" id="HDeleteMan" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </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="HMakeDate" id="HMakeDate" style="background-color:#efefef4d;" readonly> |
| | | <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="HUpDateDate" id="HUpDateDate" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </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="HCheckDate" id="HCheckDate" style="background-color:#efefef4d;" readonly> |
| | | </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="HCloseDate" id="HCloseDate" style="background-color:#efefef4d;" readonly> |
| | | </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="HUpDater" id="HUpDater" style="background-color:#efefef4d;" readonly> |
| | | </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="HDeleteMan" id="HDeleteMan" style="background-color:#efefef4d;" readonly> |
| | | </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="HUpDateDate" id="HUpDateDate" style="background-color:#efefef4d;" readonly> |
| | | </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="HDeleteDate" id="HDeleteDate" style="background-color:#efefef4d;" readonly> |
| | | <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="HDeleteDate" id="HDeleteDate" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | |
| | | </div> |
| | | |
| | | <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table> |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/WEBSController/GetMaxBillNoAndID_Json", |
| | | type: "GET", |
| | | data: { "HBillType": '1103' }, |
| | | data: { "HBillType": '1239' }, |
| | | success: function (d) { |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | |
| | | |
| | | |
| | | |
| | | //夿æ¯å¦æ°å¢ |
| | | if (linterid == null || linterid == 0) { |
| | | //è·åæå¤§åæ®å· new |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | $("#HInterID").val("0"); |
| | | $("#HBillNo").val(""); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | type: "GET", |
| | | data: { "HBillType": '1239' }, |
| | | success: function (d) { |
| | | //console.log(d.data); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | $("#HDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HSSDate").val(Format(new Date(), "yyyy-MM-dd")); //ç»ç®æ¹å¼ |
| | | } |
| | | }); |
| | | } else {//å¦æä¿®æ¹åèµ°ä¸é¢ new |
| | | $("#HInterID").val(linterid); |
| | | RoadBillMain(linterid); |
| | | } |
| | | ////夿æ¯å¦æ°å¢ |
| | | //if (linterid == null || linterid == 0) { |
| | | // //è·åæå¤§åæ®å· new |
| | | // $("#HMaker").val(sessionStorage["HUserName"]); |
| | | // $("#HInterID").val("0"); |
| | | // $("#HBillNo").val(""); |
| | | // $.ajax({ |
| | | // url: GetWEBURL() + "/Web/GetMAXNum", |
| | | // type: "GET", |
| | | // data: { "HBillType": '1239' }, |
| | | // success: function (d) { |
| | | // //console.log(d.data); |
| | | // $("#HBillNo").val(d.data[0].HBillNo); |
| | | // $("#HDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | // $("#HInterID").val(d.data[0].HInterID); |
| | | // $("#HSSDate").val(Format(new Date(), "yyyy-MM-dd")); //ç»ç®æ¹å¼ |
| | | // } |
| | | // }); |
| | | //} else {//å¦æä¿®æ¹åèµ°ä¸é¢ new |
| | | // $("#HInterID").val(linterid); |
| | | // RoadBillMain(linterid); |
| | | //} |
| | | //#endregion |
| | | //#endregion |
| | | //è·åç»ç» |
| | |
| | | , "HMaker": data.å¶å人 |
| | | , "HChecker": data.å®¡æ ¸äºº |
| | | , "HCloseMan": data.å
³é人 |
| | | , "HUpDater": data.ä¿®æ¹äºº |
| | | , "HDeleteDate": data.ä½åºäºº |
| | | , "HMakeDate": data.å¶åæ¥æ == null ? "" : Pub_Format(data.å¶åæ¥æ, "yyyy-MM-dd hh:mm:ss") |
| | | , "HCheckDate": data.å®¡æ ¸æ¥æ == null ? "" : Pub_Format(data.å®¡æ ¸æ¥æ, "yyyy-MM-dd hh:mm:ss") |
| | | , "HCloseDate": data.å
³éæ¥æ == null ? "" : Pub_Format(data.å
³éæ¥æ, "yyyy-MM-dd hh:mm:ss") |
| | |
| | | , "HDeptName": dataArray[0].é¨é¨ |
| | | , "HManagerID": dataArray[0].HManagerID |
| | | , "HManagerName": dataArray[0].主管 |
| | | , "HWHID": dataArray[0].HWHID |
| | | , "HWHName": dataArray[0].ä»åº |
| | | , "HWHID": dataArray[0].主表ä»åºID == null ? 0 : dataArray[0].主表ä»åºID |
| | | , "HWHName": dataArray[0].主表ä»åº |
| | | , "HEmpID": dataArray[0].HEmpID |
| | | , "HEmpName": dataArray[0].ä¸å¡å |
| | | , "HSupID": dataArray[0].HSupID |
| | | , "HSupName": dataArray[0].ä¾åºå |
| | | , "HSecManagerID": dataArray[0].HSecManagerID |
| | | , "HSecManagerName": dataArray[0].éªæ¶å |
| | | , "HKeeperID": dataArray[0].HKeeperID |
| | | , "HKeeperName": dataArray[0].ä¿ç®¡å |
| | | //, "HSecManagerID": dataArray[0].HSecManagerID |
| | | //, "HSecManagerName": dataArray[0].éªæ¶å |
| | | //, "HKeeperID": dataArray[0].HKeeperID |
| | | //, "HKeeperName": dataArray[0].ä¿ç®¡å |
| | | , "HCurID": dataArray[0].HCurID |
| | | , "HCurName": dataArray[0].å¸å« |
| | | , "HExRate": dataArray[0].æ±ç |
| | |
| | | , "HSecUnitID": dataArray[i].HSecUnitID |
| | | , "è¾
å©åä½": dataArray[i].è¾
å©åä½ |
| | | , "HQty": dealDoubleToFixed(dataArray[i].æ°é, 1) |
| | | , "HQtyMust": dealDoubleToFixed(dataArray[i].æ°é, 1) |
| | | , "HPrice": dealDoubleToFixed(dataArray[i].åä»·, 3) |
| | | , 'HDiscountRate': dataArray[i].ææ£ç // |
| | | , 'HRelTaxPrice': "0" |
| | |
| | | layer.msg("è¯·éæ©ä»åºï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | if ($("#HKeeperID").val() == 0) { |
| | | layer.msg("è¯·éæ©ä¿ç®¡åï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | if ($("#HSecManagerID").val() == 0) { |
| | | layer.msg("è¯·éæ©éªæ¶åï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | //if ($("#HKeeperID").val() == 0) { |
| | | // layer.msg("è¯·éæ©ä¿ç®¡åï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return; |
| | | //} |
| | | //if ($("#HSecManagerID").val() == 0) { |
| | | // layer.msg("è¯·éæ©éªæ¶åï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return; |
| | | //} |
| | | |
| | | |
| | | var num = []; |
| | |
| | | if (checkStatus.data.length == 0) { |
| | | return layer.msg("请è³å°éæ©ä¸æ¡æ°æ®!"); |
| | | } |
| | | |
| | | form.val("component-form-group", { //formTest å³ class="layui-form" æå¨å
ç´ å±æ§ lay-filter="" 对åºçå¼ |
| | | "HMainSourceInterID": "0" |
| | | , "HMainSourceEntryID": "0" |
| | | , "HMainSourceBillNo": "" |
| | | , "HMainSourceBillType": $("#BillType").val() |
| | | |
| | | , "HDeptID": checkStatus.data[0].HDeptID |
| | | , "HDeptName": checkStatus.data[0].é¨é¨ |
| | | , "HManagerID": checkStatus.data[0].HManagerID |
| | | , "HManagerName": checkStatus.data[0].主管 |
| | | , "HWHID": checkStatus.data[0].主表ä»åºID == null ? 0 : checkStatus.data[0].主表ä»åºID |
| | | , "HWHName": checkStatus.data[0].主表ä»åº |
| | | , "HEmpID": checkStatus.data[0].HEmpID |
| | | , "HEmpName": checkStatus.data[0].ä¸å¡å |
| | | , "HSupID": checkStatus.data[0].HSupID |
| | | , "HSupName": checkStatus.data[0].ä¾åºå |
| | | //, "HSecManagerID": checkStatus.data[0].HSecManagerID |
| | | //, "HSecManagerName": checkStatus.data[0].éªæ¶å |
| | | //, "HKeeperID": checkStatus.data[0].HKeeperID |
| | | //, "HKeeperName": checkStatus.data[0].ä¿ç®¡å |
| | | , "HCurID": checkStatus.data[0].HCurID |
| | | , "HCurName": checkStatus.data[0].å¸å« |
| | | , "HExRate": checkStatus.data[0].æ±ç |
| | | /*, "HAddress": data.交货å°ç¹*/ |
| | | , "HRemark": checkStatus.data[0].è¡¨å¤´å¤æ³¨ |
| | | , "HInnerBillNo": checkStatus.data[0].å
é¨åæ®å· |
| | | }); |
| | | |
| | | //layer.alert("ä½ å·²éæ©" + checkStatus.data.length + "æ¡æ°æ®"); |
| | | //è·åæ¶æéç¥å代ç |
| | | var ProcessNumber = []; |
| | |
| | | option.data.push({ |
| | | "HMaterID": checkStatus.data[j].HMaterID, "ç©æä»£ç ": checkStatus.data[j].ç©æä»£ç , "ç©æåç§°": checkStatus.data[j].ç©æåç§°, "è§æ ¼åå·": checkStatus.data[j].è§æ ¼åå·, |
| | | "HUnitID": checkStatus.data[j].HUnitID, "计éåä½": checkStatus.data[j].计éåä½, |
| | | "HQty": checkStatus.data[j].æ°é-checkStatus.data[j].å
³èæ°é,"HQtyMust": checkStatus.data[j].åºæ¶æ°é, "HPrice": checkStatus.data[j].åä»·, |
| | | "HMoney": checkStatus.data[j].éé¢, "HTaxRate": checkStatus.data[j].ç¨ç, "HTaxMoney": checkStatus.data[j].ç¨é¢,"HWHID": checkStatus.data[j].HWHID, |
| | | "HQty": checkStatus.data[j].æ°é - checkStatus.data[j].å
³èæ°é, "HQtyMust": checkStatus.data[j].æ°é - checkStatus.data[j].å
³èæ°é, "HPrice": checkStatus.data[j].åä»·, |
| | | "HMoney": (checkStatus.data[j].æ°é - checkStatus.data[j].å
³èæ°é) * Number(checkStatus.data[j].åä»·), "HTaxRate": checkStatus.data[j].ç¨ç, "HTaxMoney": checkStatus.data[j].ç¨é¢, "HWHID": checkStatus.data[j].HWHID, |
| | | "æ¶æä»åº": checkStatus.data[j].æ¶æä»åº,"HSPID": checkStatus.data[j].HSPID,"ä»ä½åç§°": checkStatus.data[j].ä»ä½åç§°,"HSecUnitID": checkStatus.data[j].HSecUnitID,"è¾
å©åä½": checkStatus.data[j].è¾
å©åä½, |
| | | "HSourceBillNo": checkStatus.data[j].åæ®å·, "HSourceBillType": checkStatus.data[j].HBillType, "HSourceInterID": checkStatus.data[j].hmainid, "HSourceEntryID": checkStatus.data[j].hsubid |
| | | }) |