| | |
| | | <div class="layui-form-item" style="padding-top: 10px;"> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">åæ®å·*</label> |
| | | <label class="layui-form-label" style="width: 85px;">åæ®å·<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HBillNo" lay-verify="HBillNo" id="HBillNo" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HInterID" id="HInterID" lay-verify="HInterID"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æ¥æ</label> |
| | | <label class="layui-form-label" style="width: 85px;">æ¥æ<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 120px; width:180px;"> |
| | | <input type="date" class="layui-input" lay-verify="HDate" name="HDate" id="HDate" style="padding-left: 80px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å
é¨åæ®å·<label style="color:red"> * </label></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" lay-verify="HInnerBillNo" name="HInnerBillNo" id="HInnerBillNo"> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">çç»*</label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">çç»<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" lay-verify="HGroupName" name="HGroupName" id="HGroupName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HGroupID" id="HGroupID" lay-verify="HGroupID" value="0"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">é¨é¨*</label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">é¨é¨<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <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"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">主管*</label> |
| | | <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="HEmpName" name="HEmpName" id="HEmpName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HEmpID" id="HEmpID" lay-verify="HEmpID" value="0"> |
| | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">å·¥èµç±»å*</label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">å·¥èµç±»å<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" lay-verify="HPayTypeName" name="HPayTypeName" id="HPayTypeName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HPayTypeID" id="HPayTypeID" lay-verify="HPayTypeID" value="0"> |
| | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æè¦<label style="color:red"> * </label></label> |
| | | <label class="layui-form-label" style="width: 85px;">æè¦</label> |
| | | <div class="layui-input-block" style="margin-left: 120px; width: 501px;"> |
| | | <input type="text" class="layui-input" lay-verify="HExplanation" name="HExplanation" id="HExplanation"> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">夿³¨<label style="color:red"> * </label></label> |
| | | <label class="layui-form-label" style="width: 85px;">夿³¨</label> |
| | | <div class="layui-input-block" style="margin-left: 120px; width: 501px;"> |
| | | <input type="text" class="layui-input" lay-verify="HRemark" name="HRemark" id="HRemark"> |
| | | </div> |
| | |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-AddLine"><i class="layui-icon layui-icon-form"></i>å¢å ä¸è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-CopyLine"><i class="layui-icon layui-icon-form"></i>å¤å¶ä¸è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn_up"><i class="layui-icon layui-icon-form"></i>ä¸ä¸è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn_under"><i class="layui-icon layui-icon-form"></i>ä¸ä¸è¡</button> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn_up"><i class="layui-icon layui-icon-form"></i>ä¸ä¸è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn_under"><i class="layui-icon layui-icon-form"></i>ä¸ä¸è¡</button>--> |
| | | </div> |
| | | </script> |
| | | </form> |
| | |
| | | option = { |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , page: true |
| | | , limit: 500 |
| | | , limits: [50, 500, 5000, 50000] |
| | | , page: false |
| | | , totalRow: true |
| | | , cellMinWidth: 120 |
| | | , height: 400 |
| | | , cols: [[ |
| | | { type: 'checkbox', totalRowText: 'å计è¡' } |
| | | , { type: 'numbers', title: 'åºå·', totalRow: true } |
| | | , { type: 'numbers', title: 'åºå·'} |
| | | , { field: 'RowID', title: 'è¡å·', hide: true } //è¡æ è¯ï¼ç¨äºä¸ä¸è¡ãä¸ä¸è¡è¯å«æå¨è¡ |
| | | , { field: 'HMaterID', title: 'ç©æID', hide: true } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', edit: 'text', event: "HMaterNumber" } //f7 |
| | |
| | | , { field: 'HQty', title: 'æ°é', edit: 'text' } |
| | | , { field: 'HPrice', title: '工价', edit: 'text'} |
| | | , { field: 'HPriceRate', title: 'å®é¢æµ®å¨æ¯ç', edit: 'text' } |
| | | , { field: 'HSubsidyQty', title: '补贴æ°é', edit: 'text' } |
| | | , { field: 'HSubsidyMoney', title: '补贴éé¢'} |
| | | , { field: 'HSubsidyTotal', title: '补贴å计', edit: 'text' } |
| | | , { field: 'HDeuctTotal', title: 'æ£æ¬¾å°è®¡', edit: 'text' } |
| | | , { field: 'HPackQty', title: 'å
è£
æ°é', edit: 'text' } |
| | | , { field: 'HPackPrice', title: 'å
è£
åä»·', edit: 'text' } |
| | | , { field: 'HPackMoney', title: 'å
è£
éé¢'} |
| | | , { field: 'HSubsidyQty', title: '补贴æ°é', hide: true } |
| | | , { field: 'HSubsidyMoney', title: '补贴éé¢', hide: true} |
| | | , { field: 'HSubsidyTotal', title: '补贴å计', hide: true } |
| | | , { field: 'HDeuctTotal', title: 'æ£æ¬¾å°è®¡', hide: true } |
| | | , { field: 'HPackQty', title: 'å
è£
æ°é', hide: true } |
| | | , { field: 'HPackPrice', title: 'å
è£
åä»·', hide: true } |
| | | , { field: 'HPackMoney', title: 'å
è£
éé¢', hide: true} |
| | | , { field: 'HPackMaterID', title: 'å
è£
ç±»åID', hide: true } |
| | | //, { field: 'HPackMaterNumber', title: 'å
è£
ç±»å代ç ' } //f7 |
| | | , { field: 'HPackMaterName', title: 'å
è£
ç±»å', edit: 'text', event: "HPackMaterName" } |
| | | , { field: 'HMoney', title: 'éé¢'} |
| | | , { field: 'HICMOInterID', title: 'ç产任å¡åID', edit: 'text' } |
| | | , { field: 'HICMOBillNo', title: 'ç产任å¡åå·', edit: 'text' } |
| | | , { field: 'HProcReportInterID', title: 'å·¥åºæ±æ¥åID', edit: 'text' } |
| | | , { field: 'HProcReportEntryID', title: 'å·¥åºæ±æ¥ååID', edit: 'text' } |
| | | , { field: 'HProcReportBillNo', title: 'å·¥åºæ±æ¥åå·', edit: 'text' } |
| | | , { field: 'HProcPlanInterID', title: 'å·¥åºè®¡ååID', edit: 'text' } |
| | | , { field: 'HProcPlanEntryID', title: 'å·¥åºè®¡åååID', edit: 'text' } |
| | | , { field: 'HProcPlanBillNo', title: 'å·¥åºè®¡ååå·', edit: 'text' } |
| | | , { field: 'HPackMaterName', title: 'å
è£
ç±»å', hide: true, event: "HPackMaterName" } |
| | | , { field: 'HMoney', title: 'éé¢', totalRow:true } |
| | | , { field: 'HICMOInterID', title: 'ç产任å¡åID', hide: true } |
| | | , { field: 'HICMOBillNo', title: 'ç产任å¡åå·', hide: true } |
| | | , { field: 'HProcReportInterID', title: 'å·¥åºæ±æ¥åID', hide: true } |
| | | , { field: 'HProcReportEntryID', title: 'å·¥åºæ±æ¥ååID', hide: true } |
| | | , { field: 'HProcReportBillNo', title: 'å·¥åºæ±æ¥åå·', hide: true } |
| | | , { field: 'HProcPlanInterID', title: 'å·¥åºè®¡ååID', hide: true } |
| | | , { field: 'HProcPlanEntryID', title: 'å·¥åºè®¡åååID', hide: true } |
| | | , { field: 'HProcPlanBillNo', title: 'å·¥åºè®¡ååå·', hide: true } |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text' } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ' } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ' } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·' } |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å' } |
| | | , { field: 'HRelationQty', title: 'å
³èæ°é' } |
| | | , { field: 'HRelationMoney', title: 'å
³èéé¢' } |
| | | , { field: 'HCloseMan', title: 'è¡å
³é人' } |
| | | , { field: 'HEntryCloseDate', title: 'è¡å
³éæ¶é´' } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', hide: true } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', hide: true } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', hide: true } |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', hide: true } |
| | | , { field: 'HRelationQty', title: 'å
³èæ°é', hide: true } |
| | | , { field: 'HRelationMoney', title: 'å
³èéé¢', hide: true } |
| | | , { field: 'HCloseMan', title: 'è¡å
³é人', hide: true } |
| | | , { field: 'HEntryCloseDate', title: 'è¡å
³éæ¶é´', hide: true } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo' } |
| | | ]] |
| | | } |
| | |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["90%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ["../../../views/Baseset/åºç¡èµæ/Gy_GetProductionTeamList.html?Type=HGroupID", "yes"] |
| | | , content: ["../../../views/åºç¡èµæ/å·¥èµåºç¡èµæ/Gy_Group.html?Type=HGroupID", "yes"] |
| | | , btn: ["ç¡®å®", "åæ¶"] |
| | | , btn1: function (index, laero) { |
| | | //æé®ä¸ çåè° |
| | |
| | | return layer.msg("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } |
| | | |
| | | $("#HGroupID").val(checkStatus.data[0].HItemID);//å
ç |
| | | $("#HGroupName").val(checkStatus.data[0].çç»);//åç§° |
| | | $("#HGroupID").val(checkStatus.data[0].HItemID);//çç»å
ç |
| | | $("#HGroupName").val(checkStatus.data[0].çç»åç§°);//çç»åç§° |
| | | $("#HDeptID").val(checkStatus.data[0].HDeptID);//é¨é¨ä»£ç |
| | | $("#HDeptName").val(checkStatus.data[0].é¨é¨åç§°);//é¨é¨åç§° |
| | | |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | , btn2: function (index, layero) { } |
| | |
| | | if (checkStatus.data.length != 1) { |
| | | return layer.msg("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } |
| | | var HStopFlag = checkStatus.data[0].ç¦ç¨æ è®°; |
| | | if (HStopFlag == 'Y') { |
| | | layer.msg("该工èµç±»å已被ç¦ç¨ï¼è¯·éæ°éæ©ï¼"); |
| | | return; |
| | | } |
| | | |
| | | |
| | | $("#HPayTypeID").val(checkStatus.data[0].HItemID);//å
ç |
| | | $("#HPayTypeName").val(checkStatus.data[0].å·¥èµç±»ååç§°);//åç§° |
| | |
| | | layer.msg("åæ®å·ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HInnerBillNo").val() == "") { |
| | | layer.msg("å
é¨åæ®å·ä¸è½ä¸ºç©º!"); |
| | | if ($("#HDate").val() == "") { |
| | | layer.msg("æ¥æä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HGroupName").val() == "") { |
| | | if ($("#HGroupID").val() == "0") { |
| | | layer.msg("çç»æªéæ©!"); |
| | | return false; |
| | | } |
| | | if ($("#HDeptName").val() == "") { |
| | | if ($("#HDeptID").val() == "0") { |
| | | layer.msg("é¨é¨æªéæ©!"); |
| | | return false; |
| | | } |
| | | if ($("#HEmpName").val() == "") { |
| | | layer.msg("主管æªéæ©!"); |
| | | return false; |
| | | } |
| | | if ($("#HPayTypeName").val() == "") { |
| | | if ($("#HPayTypeID").val() == "0") { |
| | | layer.msg("å·¥èµç±»åæªéæ©!"); |
| | | return false; |
| | | } |
| | |
| | | var value1_ = ["å·¥æ¶", "æ°é", "工价", "å®é¢æµ®å¨æ¯ç", "补贴æ°é", "补贴éé¢", "补贴å计", "æ£æ¬¾å°è®¡", "å
è£
æ°é", "å
è£
åä»·", "å
è£
éé¢", "éé¢"]; ////å表éè¦è¿è¡æµ®ç¹æ°éªè¯ç屿§æ¸
å对åºçå忏
å |
| | | var value2 = ["HICMOInterID", "HProcReportInterID", "HProcReportEntryID", "HProcPlanInterID", "HProcPlanEntryID"]; //å表éè¦æ´æ°æ£éªç屿§æ¸
å |
| | | var value2_ = ["ç产任å¡åID","å·¥åºæ±æ¥åID", "å·¥åºæ±æ¥ååID", "å·¥åºè®¡ååID", "å·¥åºè®¡åååID"]; //å表éè¦æ´æ°æ£éªç屿§æ¸
å对åºçå忏
å |
| | | var value3 = ["HMaterNumber", "HProcNumber", "HEmpNumber", "HPackMaterName"]; //å表éè¦è¿è¡é空æ£éªç屿§æ¸
å |
| | | var value3_ = ["ç©æ", "å·¥åº", "èå", "å
è£
æ¹å¼"]; //å表éè¦è¿è¡é空æ£éªç屿§æ¸
å对åºçå忏
å |
| | | var value3 = ["HMaterID", "HProcID", "HEmpID"]; //å表éè¦è¿è¡é空æ£éªç屿§æ¸
å |
| | | var value3_ = ["ç©æ", "å·¥åº", "èå"]; //å表éè¦è¿è¡é空æ£éªç屿§æ¸
å对åºçå忏
å |
| | | for (var i = 0; i < option.data.length; i++) { |
| | | if (option.data[i] != "") { |
| | | //é空æ£éª |
| | | for (var j = 0; j < value3.length; j++) { |
| | | temp = option.data[i][value3[j]] + ""; |
| | | if (temp == "") { |
| | | if (temp == "0") { |
| | | layer.msg("第" + (i + 1) + "è¡:" + value3_[j] + "æªéæ©!"); |
| | | return false; |
| | | } |
| | |
| | | return false; |
| | | } |
| | | } |
| | | //ç¹æ®æ£éª |
| | | temp = option.data[i]["HQty"] + ""; |
| | | if (temp == "0") { |
| | | layer.msg("第" + (i + 1) + "è¡:æ°éä¸è½ä¸º0!") |
| | | return false; |
| | | } |
| | | } |
| | | } |
| | | //#endregion |
| | | |
| | | //#region å表å
³é®å段é夿£éª |
| | | //#endregion |
| | | return true; |
| | | } |
| | |
| | | if (checkStatus.data.length != 1) { |
| | | return layer.msg("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "HMaterID": checkStatus.data[0].HItemID |
| | | , "HMaterNumber": checkStatus.data[0].HNumber |
| | | , "HMaterName": checkStatus.data[0].HName |
| | | , "HMaterModel": checkStatus.data[0].HModel |
| | | }) |
| | | |
| | | //è·å工价 |
| | | var HMaterID = checkStatus.data[0].HItemID; |
| | | var HProcID = obj.data.hasOwnProperty("HProcID") ? obj.data.HProcID + "":"0"; |
| | | var HSourceID = obj.data.hasOwnProperty("HSourceID") ? obj.data.HSourceID + "": "0"; |
| | | var HPrice = subTable_GetHPrice(HMaterID, HProcID, HSourceID); |
| | | |
| | | if (HPrice != -1) { |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "HMaterID": checkStatus.data[0].HItemID |
| | | , "HMaterNumber": checkStatus.data[0].HNumber |
| | | , "HMaterName": checkStatus.data[0].HName |
| | | , "HMaterModel": checkStatus.data[0].HModel |
| | | , "HPrice": HPrice |
| | | }) |
| | | } else { |
| | | obj.update({ |
| | | "HMaterID": checkStatus.data[0].HItemID |
| | | , "HMaterNumber": checkStatus.data[0].HNumber |
| | | , "HMaterName": checkStatus.data[0].HName |
| | | , "HMaterModel": checkStatus.data[0].HModel |
| | | }) |
| | | } |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | }) |
| | |
| | | if (checkStatus.data.length != 1) { |
| | | return layer.msg("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } |
| | | |
| | | //è·å工价 |
| | | var HMaterID = obj.data.hasOwnProperty("HMaterID") ? obj.data.HMaterID + "" : "0"; |
| | | var HProcID = checkStatus.data[0].HItemID; |
| | | var HSourceID = obj.data.hasOwnProperty("HSourceID") ? obj.data.HSourceID + "" : "0"; |
| | | var HPrice = subTable_GetHPrice(HMaterID, HProcID, HSourceID); |
| | | |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "HProcID": checkStatus.data[0].HItemID |
| | | , "HProcNumber": checkStatus.data[0].å·¥åºä»£ç |
| | | , "HProcName": checkStatus.data[0].å·¥åº |
| | | }) |
| | | if (HPrice != -1) { |
| | | obj.update({ |
| | | "HProcID": checkStatus.data[0].HItemID |
| | | , "HProcNumber": checkStatus.data[0].å·¥åºä»£ç |
| | | , "HProcName": checkStatus.data[0].å·¥åº |
| | | , "HPrice": HPrice |
| | | }) |
| | | } else { |
| | | obj.update({ |
| | | "HProcID": checkStatus.data[0].HItemID |
| | | , "HProcNumber": checkStatus.data[0].å·¥åºä»£ç |
| | | , "HProcName": checkStatus.data[0].å·¥åº |
| | | }) |
| | | } |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | }) |
| | |
| | | success: function (data1) { |
| | | if (data1.data.length != 0) { |
| | | var dataCol = [];//æ°æ®åºæ¥è¯¢åºçåæ°æ® |
| | | var titleData = ["è¡å·","ç©æID","å·¥åºID","èåID","å
è£
ç±»åID"];//ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | var titleData = ["è¡å·","ç©æID","å·¥åºID","èåID","å
è£
ç±»åID","补贴æ°é","补贴éé¢","补贴å计","æ£æ¬¾å°è®¡","å
è£
æ°é","å
è£
åä»·","å
è£
éé¢","å
è£
ç±»åID","å
è£
ç±»å","ç产任å¡åID","ç产任å¡åå·","å·¥åºæ±æ¥åID","å·¥åºæ±æ¥ååID","å·¥åºæ±æ¥åå·","å·¥åºè®¡ååID","å·¥åºè®¡åååID","å·¥åºè®¡ååå·","æºå主å
ç ","æºååå
ç ","æºååå·","æºåç±»å","å
³èæ°é","å
³èéé¢","è¡å
³é人","è¡å
³éæ¶é´"];//ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | |
| | | dataCol = data1.data[0].HGridString.split(','); |
| | | |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | //#region åè¡¨ç©æãå·¥åºå¸¦åºå·¥ä»· |
| | | function subTable_GetHPrice(HMaterID, HProcID, HSourceID) { |
| | | var HPrice; |
| | | if (HMaterID != "0" && HProcID != "0") { |
| | | $.ajax({ |
| | | type: "Get", |
| | | url: GetWEBURL() + "/Pay_SingleBalBill/get_HPrice_BaseMaterHProcHSource", |
| | | async: false, |
| | | data: { "HMaterID": HMaterID, "HProcID": HProcID, "HSourceID": HSourceID }, |
| | | success: function (res) { |
| | | if (res.count == 1) { |
| | | HPrice = res.data; |
| | | } |
| | | else { |
| | | layer.msg(res.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | HPrice = 0; |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg("é误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | HPrice = 0; |
| | | } |
| | | }); |
| | | return HPrice; |
| | | } else { |
| | | HPrice = -1; |
| | | return HPrice; |
| | | } |
| | | } |
| | | //#endregion |
| | | |
| | | //#endregion |
| | | |
| | | |