Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-LayUI
| | |
| | | <File Include="views/PlateBinding.html"> |
| | | <publishTime>04/28/2024 08:36:23</publishTime> |
| | | </File> |
| | | <File Include="views/PlateBinding.html"> |
| | | <publishTime>04/26/2024 12:59:07</publishTime> |
| | | </File> |
| | | <File Include="views/PublicPage/AreaInformation.html"> |
| | | <publishTime>08/27/2021 14:42:06</publishTime> |
| | | </File> |
| | |
| | | <File Include="views/WMSæ«ç 模å/ç产补æ/Kf_MateReplenishOutBill_PDA.html"> |
| | | <publishTime>04/28/2024 08:36:23</publishTime> |
| | | </File> |
| | | <File Include="views/WMSæ«ç 模å/ç产补æ/Kf_MateReplenishOutBillList_PDA.html"> |
| | | <publishTime>04/26/2024 12:59:07</publishTime> |
| | | </File> |
| | | <File Include="views/WMSæ«ç 模å/ç产补æ/Kf_MateReplenishOutBill_PDA.html"> |
| | | <publishTime>04/26/2024 12:59:07</publishTime> |
| | | </File> |
| | | <File Include="views/WMSæ«ç 模å/çäº§è°æ¨/Kf_MoveStockBillList_PDA.html"> |
| | | <publishTime>04/28/2024 08:42:16</publishTime> |
| | | </File> |
| | |
| | | </File> |
| | | <File Include="views/ä»å管ç/ç产å
¥åºå/Kf_ProductInBillList.html"> |
| | | <publishTime>04/28/2024 08:36:23</publishTime> |
| | | </File> |
| | | <File Include="views/ä»å管ç/ç产å
¥åºå/Kf_ProductInBillList.html"> |
| | | <publishTime>04/26/2024 12:59:07</publishTime> |
| | | </File> |
| | | <File Include="views/å
Œ
±é¡µé¢/Kf_BarCodeEditDlg.html"> |
| | | <publishTime>04/15/2024 13:00:47</publishTime> |
| | |
| | | <File Include="views/车é´ç®¡ç/å·¥åºåºç«æ±æ¥å/Cj_StationOutBill_CurrentWork.html"> |
| | | <publishTime>04/28/2024 08:36:24</publishTime> |
| | | </File> |
| | | <File Include="views/车é´ç®¡ç/å·¥åºåºç«æ±æ¥å/Cj_StationOutBill_CodingReport.html"> |
| | | <publishTime>04/26/2024 12:59:07</publishTime> |
| | | </File> |
| | | <File Include="views/车é´ç®¡ç/å·¥åºåºç«æ±æ¥å/Cj_StationOutBill_CurrentWork.html"> |
| | | <publishTime>04/26/2024 12:59:07</publishTime> |
| | | </File> |
| | | <File Include="views/车é´ç®¡ç/å·¥åºåºç«æ±æ¥å/Cj_StationOutBill_QiaoYi.html"> |
| | | <publishTime>04/15/2024 13:00:49</publishTime> |
| | | </File> |
| | |
| | | <File Include="views/项ç®ç®¡ç/åºç¡å»ºæ¨¡/Add_Edit_Gy_TaskClass.html"> |
| | | <publishTime>04/28/2024 08:36:24</publishTime> |
| | | </File> |
| | | <File Include="views/项ç®ç®¡ç/åºç¡å»ºæ¨¡/Add_Edit_Gy_ProjectClass.html"> |
| | | <publishTime>04/26/2024 12:59:07</publishTime> |
| | | </File> |
| | | <File Include="views/项ç®ç®¡ç/åºç¡å»ºæ¨¡/Add_Edit_Gy_TaskClass.html"> |
| | | <publishTime>04/26/2024 12:59:07</publishTime> |
| | | </File> |
| | | <File Include="views/项ç®ç®¡ç/åºç¡å»ºæ¨¡/Gy_ProjectClass.html"> |
| | | <publishTime>04/26/2024 12:59:07</publishTime> |
| | | </File> |
| | | <File Include="views/项ç®ç®¡ç/åºç¡å»ºæ¨¡/Gy_TaskClass.html"> |
| | | <publishTime>04/26/2024 12:59:07</publishTime> |
| | | </File> |
| | | <File Include="views/项ç®ç®¡ç/å·¥ä½ä»»å¡/PM_WorkTaskBill.html"> |
| | | <publishTime>04/15/2024 13:00:49</publishTime> |
| | | </File> |
| | |
| | | <Content Include="views\项ç®ç®¡ç\å¨è®¡å\PM_WorkReportWeekBillMainList.html" /> |
| | | <Content Include="views\项ç®ç®¡ç\å¨è®¡å\PM_WorkTaskWeekBillList.html" /> |
| | | <Content Include="views\项ç®ç®¡ç\å¨è®¡å\PM_WorkTaskWeekBill.html" /> |
| | | <Content Include="views\项ç®ç®¡ç\åºç¡å»ºæ¨¡\Gy_ProjectClass.html" /> |
| | | <Content Include="views\项ç®ç®¡ç\åºç¡å»ºæ¨¡\Gy_TaskClass.html" /> |
| | | <Content Include="views\项ç®ç®¡ç\å·¥ä½ä»»å¡\PM_WorkTaskMoneyBillList.html" /> |
| | | <Content Include="views\项ç®ç®¡ç\å·¥ä½ä»»å¡\PM_WorkTaskMoneyBill.html" /> |
| | | <Content Include="views\项ç®ç®¡ç\å·¥ä½ä»»å¡\PM_WorkTaskReportBillList.html" /> |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| | | <PropertyGroup> |
| | | <NameOfLastUsedPublishProfile>C:\Users\86130\Desktop\æºäºè¿æ\MES-WEB-LayUI\WebTM\Properties\PublishProfiles\JFTM.pubxml</NameOfLastUsedPublishProfile> |
| | | <NameOfLastUsedPublishProfile>D:\æºäºè¿æ\MES\MES-WEB-LayUI\WebTM\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile> |
| | | <ProjectView>ProjectFiles</ProjectView> |
| | | <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig> |
| | | <LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig> |
| | | <UseIISExpress>true</UseIISExpress> |
| | | <Use64BitIISExpress /> |
| | | <IISExpressSSLPort /> |
| | |
| | | <VisualStudio> |
| | | <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}"> |
| | | <WebProjectProperties> |
| | | <StartPageUrl>views/user/login.html</StartPageUrl> |
| | | <StartAction>SpecificPage</StartAction> |
| | | <StartPageUrl> |
| | | </StartPageUrl> |
| | | <StartAction>CurrentPage</StartAction> |
| | | <AspNetDebugging>True</AspNetDebugging> |
| | | <SilverlightDebugging>False</SilverlightDebugging> |
| | | <NativeDebugging>False</NativeDebugging> |
| | |
| | | <StartWorkingDirectory> |
| | | </StartWorkingDirectory> |
| | | <EnableENC>True</EnableENC> |
| | | <AlwaysStartWebServerOnDebug>True</AlwaysStartWebServerOnDebug> |
| | | <AlwaysStartWebServerOnDebug>False</AlwaysStartWebServerOnDebug> |
| | | </WebProjectProperties> |
| | | </FlavorProperties> |
| | | </VisualStudio> |
| | |
| | | //#region ä¿åæ¹æ³ |
| | | function set_SaveBill(data) { |
| | | |
| | | |
| | | if ($("#HSupID").val() == 0) { |
| | | layer.msg("è¯·éæ©ä¾åºåï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | if ($("#HEmpID").val() == 0) { |
| | | layer.msg("è¯·éæ©ä»ç®¡åï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | if ($("#HManagerID").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 ($("#HDeptID").val() == 0) { |
| | | layer.msg("è¯·éæ©é¨é¨ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | | } |
| | | if ($("#HWHID").val() == 0) { |
| | | layer.msg("è¯·éæ©è°å
¥ä»åºï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | , end: function () { |
| | | //if (OptionData.length>0) { |
| | | // OptionData = []; |
| | | //} |
| | | if (OptionData.length > 0) { |
| | | obj.update({ |
| | | "HMaterID": OptionData.HItemID |
| | | , "ç©æä»£ç ": OptionData.ç©æä»£ç |
| | |
| | | , "HUnitID": OptionData.HUnitID |
| | | , "计éåä½": OptionData.计éåä½åç§° |
| | | }) |
| | | OptionData = []; |
| | | } |
| | | |
| | | |
| | | } |
| | | }) |
| | |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | , end: function () { |
| | | //if (OptionData.length > 0) { |
| | | // OptionData = []; |
| | | //} |
| | | if (OptionData.length > 0) { |
| | | obj.update({ |
| | | "HWHID": OptionData.HItemID |
| | | , "è°å
¥ä»åº": OptionData.ä»åºåç§° |
| | | }) |
| | | OptionData = []; |
| | | } |
| | | |
| | | |
| | | } |
| | | }) |
| | |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | , end: function () { |
| | | //if (OptionData.length > 0) { |
| | | // OptionData = []; |
| | | //} |
| | | if (optiondata.length > 0) { |
| | | obj.update({ |
| | | "HSCWHID": OptionData.HItemID |
| | | , "è°åºä»åº": OptionData.ä»åºåç§° |
| | | }) |
| | | optiondata = []; |
| | | } |
| | | |
| | | |
| | | } |
| | | }) |
| | |
| | | |
| | | //OledbXMLReportData.GenOneRecordset(this, "select * from Customers order by CustomerID"); |
| | | //SqlXMLReportData.GenOneRecordset(this, "select * from h_v_Kf_POStockInBillList_K3 where hmainid=1781"); |
| | | SqlXMLReportData.GenOneRecordset(this, "select * from h_v_IF_SeOrderBillList where hmainid=" + Request.Params["linterid"]); |
| | | SqlXMLReportData.GenOneRecordset(this, "select * from h_v_IF_SeOrderBillList where hmainid=" + Request.Params["linterid"] + " order by hsubid asc"); |
| | | } |
| | | </script> |
| | | </head> |
| | |
| | | , { field: 'HWidth', title: 'é¨å¹
', sort: true } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', sort: true } |
| | | , { field: 'ç产任å¡åæ°é', title: 'çäº§è®¢åæ°é', totalRow: true, sort: true, totalRow: true } |
| | | , { field: 'æµè½¬å¡æ°é', title: 'æµè½¬å¡æ°é', totalRow: true, sort: true, totalRow: true } |
| | | , { field: 'ç产å
¥åºæ°é', title: 'ç产å
¥åºæ°é', totalRow: true, sort: true, totalRow: true } |
| | | , { field: 'æ¥åºæ°é', title: 'æ¥åºæ°é', totalRow: true, sort: true, totalRow: true } |
| | | , { field: '计éåä½', title: '计éåä½', sort: true } |
| | | , { field: 'æ¯å¦ä¸æ¨çææµè½¬å¡', title: 'æ¯å¦ä¸æ¨çææµè½¬å¡', sort: true } |
| | | , { field: 'æ¯å¦ååºå', title: 'æ¯å¦ååºå', sort: true } |
| | |
| | | |
| | | //å è½½ç½æ ¼ |
| | | function get_Display(sWhere) { |
| | | sWhere += " order by æ¥æ desc "; |
| | | sWhere += " order by å¶åæ¥æ desc "; |
| | | //卿å-ç¼åå表 |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/ColorRecord/ColorRecordList", |
| | |
| | | Organization += '<option style="color:blue;" value="' + data[i].ID + '">' + data[i].Name + '</option>'; |
| | | } |
| | | $("#HOrgID").append(Organization); |
| | | if (OperationType == 1 || OperationType == 4) { |
| | | if (OperationType == 1 || OperationType == 4 || OperationType == null) { |
| | | HOrgIDBar = sessionStorage["OrganizationID"]; |
| | | } |
| | | $("#HOrgID").val(HOrgIDBar); |
| | |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | //#endregion |
| | | |
| | |
| | | //夿æ¯å¦æ°å¢ |
| | | if (linterid == null || linterid == 0) { |
| | | //è·åæå¤§åæ®å· new |
| | | OptionData = 1; |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | $("#HInterID").val("0"); |
| | | $("#HBillNo").val(""); |
| | |
| | | var HSumMoney = newHSumMoney * 1; //éé¢ |
| | | var HDiscountRate = $("#HDiscountRate").val() * 1; //æ´åææ£ |
| | | var HRelSumMoney = HSumMoney * HDiscountRate * 0.01; //ææ£åéé¢ |
| | | HRelSumMoney = dealDoubleToFixed(HRelSumMoney, 2); |
| | | |
| | | var HGiftRate = $("#HGiftRate").val() * 1; //èµ éæ¯ä¾ |
| | | var HGiftMoney = HSumMoney * HGiftRate * 0.01; |
| | | HGiftMoney = dealDoubleToFixed(HGiftMoney, 2); |
| | | |
| | | $("#HSumMoney").val(HSumMoney); |
| | | $("#HDiscountRate").val(HDiscountRate); |
| | |
| | | var HSumMoney = $("#HSumMoney").val() * 1; //éé¢ |
| | | var HDiscountRate = newHDiscountRate * 1; //æ´åææ£ |
| | | var HRelSumMoney = HSumMoney * HDiscountRate * 0.01; //ææ£åéé¢ |
| | | HRelSumMoney = dealDoubleToFixed(HRelSumMoney, 2); |
| | | |
| | | $("#HSumMoney").val(HSumMoney); |
| | | $("#HDiscountRate").val(HDiscountRate); |
| | |
| | | var HSumMoney = $("#HSumMoney").val() * 1; //éé¢ |
| | | var HGiftRate = $("#HGiftRate").val() * 1; //èµ éæ¯ä¾ |
| | | var HGiftMoney = HSumMoney * HGiftRate * 0.01; |
| | | HGiftMoney = dealDoubleToFixed(HGiftMoney, 2); |
| | | |
| | | $("#HGiftMoney").val(HGiftMoney); |
| | | }); |
| | |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | //#region å¤çå°æ°æ¾ç¤ºä½æ°ï¼dataï¼éè¦å¤ççæ°æ®ï¼numï¼æ°æ®çç±»å(å¦1:æ°éï¼2:éé¢ï¼3:åä»·)ï¼ |
| | | function dealDoubleToFixed(data, num) { |
| | | //ç¨äºè®¾ç½®å°æ°ä½æ° |
| | | var dotLength = 0; |
| | | |
| | | if (num == 1) { //彿°æ®ä¸ºæ°éæ¶ï¼æå¤ä¿ç6ä½å°æ° |
| | | //设置æå¤ä¿ç6ä½å°æ° |
| | | dotLength = 6; |
| | | } else if (num == 2) { //彿°æ®ä¸ºé颿¶ï¼æå¤ä¿ç2ä½å°æ° |
| | | //设置æå¤ä¿ç2ä½å°æ° |
| | | dotLength = 2; |
| | | } else if (num == 3) { //彿°æ®ä¸ºåä»·æ¶ï¼æå¤ä¿ç4ä½å°æ° |
| | | //设置æå¤ä¿ç4ä½å°æ° |
| | | dotLength = 4; |
| | | } |
| | | |
| | | //夿æ¯å¦åå¨å°æ°ç¹åå
¶ç´¢å¼ä½ç½® |
| | | data = data + ""; |
| | | var index = data.indexOf("."); |
| | | |
| | | //å¤çæ°æ®å¹¶è¿å |
| | | if (index < 0) { |
| | | return data * 1; |
| | | } else { |
| | | //è·åå°æ°ä½æ° |
| | | var length = data.length - index - 1; |
| | | if (length <= dotLength) { |
| | | return data * 1; |
| | | } else { |
| | | data = data * 1; |
| | | return data.toFixed(dotLength); |
| | | } |
| | | } |
| | | } |
| | | //#endregion |
| | | </script> |
| | | </body> |
| | | </html> |
| | |
| | | var HSumMoney = newHSumMoney * 1; //éé¢ |
| | | var HDiscountRate = $("#HDiscountRate").val() * 1; //æ´åææ£ |
| | | var HRelSumMoney = HSumMoney * HDiscountRate * 0.01; //ææ£åéé¢ |
| | | HRelSumMoney = dealDoubleToFixed(HRelSumMoney, 2); |
| | | |
| | | var HGiftRate = $("#HGiftRate").val() * 1; //èµ éæ¯ä¾ |
| | | var HGiftMoney = HSumMoney * HGiftRate * 0.01; |
| | | HGiftMoney = dealDoubleToFixed(HGiftMoney,2); |
| | | |
| | | $("#HSumMoney").val(HSumMoney); |
| | | $("#HDiscountRate").val(HDiscountRate); |
| | |
| | | var HSumMoney = $("#HSumMoney").val() * 1; //éé¢ |
| | | var HDiscountRate = newHDiscountRate * 1; //æ´åææ£ |
| | | var HRelSumMoney = HSumMoney * HDiscountRate * 0.01; //ææ£åéé¢ |
| | | HRelSumMoney = dealDoubleToFixed(HRelSumMoney, 2); |
| | | |
| | | $("#HSumMoney").val(HSumMoney); |
| | | $("#HDiscountRate").val(HDiscountRate); |
| | |
| | | var HSumMoney = $("#HSumMoney").val() * 1; //éé¢ |
| | | var HGiftRate = $("#HGiftRate").val() * 1; //èµ éæ¯ä¾ |
| | | var HGiftMoney = HSumMoney * HGiftRate * 0.01; |
| | | HGiftMoney = dealDoubleToFixed(HGiftMoney,2); |
| | | |
| | | $("#HGiftMoney").val(HGiftMoney); |
| | | }); |
| | |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | //#region å¤çå°æ°æ¾ç¤ºä½æ°ï¼dataï¼éè¦å¤ççæ°æ®ï¼numï¼æ°æ®çç±»å(å¦1:æ°éï¼2:éé¢ï¼3:åä»·)ï¼ |
| | | function dealDoubleToFixed(data, num) { |
| | | //ç¨äºè®¾ç½®å°æ°ä½æ° |
| | | var dotLength = 0; |
| | | |
| | | if (num == 1) { //彿°æ®ä¸ºæ°éæ¶ï¼æå¤ä¿ç6ä½å°æ° |
| | | //设置æå¤ä¿ç6ä½å°æ° |
| | | dotLength = 6; |
| | | } else if (num == 2) { //彿°æ®ä¸ºé颿¶ï¼æå¤ä¿ç2ä½å°æ° |
| | | //设置æå¤ä¿ç2ä½å°æ° |
| | | dotLength = 2; |
| | | } else if (num == 3) { //彿°æ®ä¸ºåä»·æ¶ï¼æå¤ä¿ç4ä½å°æ° |
| | | //设置æå¤ä¿ç4ä½å°æ° |
| | | dotLength = 4; |
| | | } |
| | | |
| | | //夿æ¯å¦åå¨å°æ°ç¹åå
¶ç´¢å¼ä½ç½® |
| | | data = data + ""; |
| | | var index = data.indexOf("."); |
| | | |
| | | //å¤çæ°æ®å¹¶è¿å |
| | | if (index < 0) { |
| | | return data * 1; |
| | | } else { |
| | | //è·åå°æ°ä½æ° |
| | | var length = data.length - index - 1; |
| | | if (length <= dotLength) { |
| | | return data * 1; |
| | | } else { |
| | | data = data * 1; |
| | | return data.toFixed(dotLength); |
| | | } |
| | | } |
| | | } |
| | | //#endregion |
| | | </script> |
| | | </body> |
| | | </html> |
| | |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">éå®è®¢åç±»å</label> |
| | | <div class="layui-input-inline"> |
| | |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç»ç®æ¹å¼<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-inline" style="display:none;"> |
| | | <label class="layui-form-label">é宿¹å¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HSellSName" id="HSellSName" class="layui-input" value="" style="float: left; width: 150px; background-color: #efefef4d;" readonly> |
| | |
| | | "è§æ ¼åå·": "", |
| | | "HUnitID": "0", |
| | | "计éåä½": "", |
| | | "HWHID": "", |
| | | "HWHID": "0", |
| | | "ä»åº":"", |
| | | "HQty": "0", |
| | | "HPrice": "0", |
| | |
| | | "HisStockGoods": "false", |
| | | "HOutStockQty": "0", |
| | | "HInvoiceQty": "0", |
| | | "HRemark_TL": "", |
| | | "HRemark_SJG": "", |
| | | "HRemark": "", |
| | | "HCusMaterNumber": "", |
| | | "HCusModel": "", |
| | |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 100, style: 'background-color:#efefef4d;' } |
| | | , { field: 'HUnitID', title: 'HUnitID', width: 100, hide: true, style: 'background-color:#efefef4d;' } |
| | | , { field: '计éåä½', title: '计éåä½', width: 100, style: 'background-color:#efefef4d;' }//f7 |
| | | , { field: 'HRemark_TL', title: 'ææ', width: 100, edit: 'text' } |
| | | , { field: 'HRemark_SJG', title: 'æ·±å å·¥', width: 100, edit: 'text' } |
| | | , { field: 'HWHID ', title: 'HWHID ', width: 100, hide: true } |
| | | , { field: 'ä»åº', title: 'ä»åº', width: 100, style: 'background-color:#efefef4d;' ,edit: 'text' ,event: "HWHID" }//f7 |
| | | , { field: 'HisStockGoods', title: 'æ¯å¦ååºå', width: 120, templet: '#HisStockGoods' } |
| | |
| | | "è§æ ¼åå·": "", |
| | | "HUnitID": "0", |
| | | "计éåä½": "", |
| | | "HWHID": "", |
| | | "HWHID": "0", |
| | | "ä»åº":"", |
| | | "HQty": "0", |
| | | "HPrice": "0", |
| | |
| | | "HisStockGoods": "false", |
| | | "HOutStockQty": "0", |
| | | "HInvoiceQty": "0", |
| | | "HRemark_TL": "", |
| | | "HRemark_SJG": "", |
| | | "HRemark": "", |
| | | "HCusMaterNumber": "", |
| | | "HCusModel": "", |
| | |
| | | "HDate": formatDate(result.data[i]["äº¤è´§æ¥æ"]), |
| | | "HOutStockQty": result.data[i]["åºåºæ°é"], |
| | | "HInvoiceQty": result.data[i]["å¼ç¥¨æ°é"], |
| | | "HRemark_TL": result.data[i]["ææ"], |
| | | "HRemark_SJG": result.data[i]["æ·±å å·¥"], |
| | | "HRemark": result.data[i]["表ä½å¤æ³¨"], |
| | | "HCusMaterNumber": result.data[i]["客æ·ç©æç¼ç "], |
| | | "HCusModel": result.data[i]["客æ·è§æ ¼åå·"], |
| | |
| | | "è§æ ¼åå·": "", |
| | | "HUnitID": "0", |
| | | "计éåä½": "", |
| | | "HWHID": "", |
| | | "HWHID": "0", |
| | | "ä»åº": "", |
| | | "HQty": "0", |
| | | "HPrice": "0", |
| | |
| | | "HisStockGoods": "false", |
| | | "HOutStockQty": "0", |
| | | "HInvoiceQty": "0", |
| | | "HRemark_TL": "", |
| | | "HRemark_SJG": "", |
| | | "HRemark": "", |
| | | "HCusMaterNumber": "", |
| | | "HCusModel": "", |
| | |
| | | "è§æ ¼åå·": "", |
| | | "HUnitID": "0", |
| | | "计éåä½": "", |
| | | "HWHID": "", |
| | | "HWHID": "0", |
| | | "ä»åº": "", |
| | | "HQty": "0", |
| | | "HPrice": "0", |
| | |
| | | "HisStockGoods": "false", |
| | | "HOutStockQty": "0", |
| | | "HInvoiceQty": "0", |
| | | "HRemark_TL": "", |
| | | "HRemark_SJG": "", |
| | | "HRemark": "", |
| | | "HCusMaterNumber": "", |
| | | "HCusModel": "", |
| | |
| | | //æ¥è¯¢æ¡ä»¶ |
| | | var sWhere = ""; |
| | | var option = []; |
| | | var HModName = "Xs_SeOrderBill"; |
| | | var HModName = "Xs_SeOrderBillList"; |
| | | var HBillType = "1401"; |
| | | |
| | | |
| | |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', sort: true } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', sort: true } |
| | | , { field: 'æ°é', title: 'æ°é', sort: true, totalRow: true } |
| | | , { field: 'ç产å
¥åºæ°é', title: 'ç产å
¥åºæ°é', sort: true, totalRow: true } |
| | | , { field: 'æ¥åºæ°é', title: 'æ¥åºæ°é', sort: true, totalRow: true } |
| | | , { field: 'å©ä½è®¢é', title: 'å©ä½è®¢é', sort: true, totalRow: true } |
| | | , { field: 'å
³èæ°é', title: 'éå®åºåºå
³èæ°é', sort: true, totalRow: true } |
| | | , { field: 'HUnitID', title: 'HUnitID', hide: true, sort: true } |
| | | //, { field: '计éåä½ä»£ç ', title: '计éåä½ä»£ç ', sort: true } |
| | | , { field: '计éåä½', title: '计éåä½', sort: true } |
| | |
| | | , { field: 'éé¢', title: 'éé¢', sort: true, totalRow: true } |
| | | , { field: 'ä»·ç¨å计', title: 'ä»·ç¨å计', sort: true, totalRow: true } |
| | | , { field: 'è¡¨å¤´å¤æ³¨', title: 'è¡¨å¤´å¤æ³¨', sort: true } |
| | | , { field: 'å©ä½è®¢é', title: 'å©ä½è®¢é', sort: true, totalRow: true } |
| | | , { field: 'å
³èæ°é', title: 'éå®åºåºå
³èæ°é', sort: true, totalRow: true } |
| | | , { field: 'ææ', title: 'ææ', sort: true } |
| | | , { field: 'æ·±å å·¥', title: 'æ·±å å·¥', sort: true } |
| | | , { field: 'æªå
³èæ°é', title: 'éå®åºåºæªå
³èæ°é', sort: true, totalRow: true } |
| | | , { field: 'ç产å
³èæ°é', title: 'ç产å
³èæ°é', sort: true, totalRow: true } |
| | | , { field: 'ç产æªå
³èæ°é', title: 'ç产æªå
³èæ°é', sort: true, totalRow: true } |
| | |
| | | //, { field: 'ç»ç®æ¹å¼ä»£ç ', title: 'ç»ç®æ¹å¼ä»£ç ', width: 125, sort: true } |
| | | //, { field: 'ç»ç®æ¹å¼', title: 'ç»ç®æ¹å¼', width: 125, sort: true } |
| | | //, { field: 'ç»ç®æ¥æ', title: 'ç»ç®æ¥æ', width: 170, sort: true } |
| | | , { field: 'HCurID', title: 'HCurID', hide: true, sort: true } |
| | | //, { field: 'å¸å«ä»£ç ', title: 'å¸å«ä»£ç ', sort: true } |
| | | , { field: 'å¸å«', title: 'å¸å«', hide: true, sort: true } |
| | | , { field: 'æ±ç', title: 'æ±ç', hide: true, sort: true } |
| | | , { field: 'HDeptID', title: 'HDeptID', hide: true, sort: true } |
| | | //, { field: 'é¨é¨ä»£ç ', title: 'é¨é¨ä»£ç ', width: 125, sort: true } |
| | | , { field: 'é¨é¨', title: 'é¨é¨', width: 125, hide: true,sort: true } |
| | | //, { field: 'é宿¹å¼', title: 'é宿¹å¼', sort: true } |
| | | , { field: 'HManagerID', title: 'HManagerID', hide: true, sort: true } |
| | | //, { field: '主管代ç ', title: '主管代ç ', sort: true } |
| | | , { field: '主管', title: '主管', hide: true, sort: true } |
| | | , { field: '主ä»åºid', title: '主ä»åºid', hide: true, sort: true } |
| | | , { field: '主ä»åº', title: '主ä»åº', hide: true, sort: true } |
| | | //, { field: 'HCurID', title: 'HCurID', hide: true, sort: true } |
| | | ////, { field: 'å¸å«ä»£ç ', title: 'å¸å«ä»£ç ', sort: true } |
| | | //, { field: 'å¸å«', title: 'å¸å«', hide: true, sort: true } |
| | | //, { field: 'æ±ç', title: 'æ±ç', hide: true, sort: true } |
| | | //, { field: 'HDeptID', title: 'HDeptID', hide: true, sort: true } |
| | | ////, { field: 'é¨é¨ä»£ç ', title: 'é¨é¨ä»£ç ', width: 125, sort: true } |
| | | //, { field: 'é¨é¨', title: 'é¨é¨', width: 125, hide: true,sort: true } |
| | | ////, { field: 'é宿¹å¼', title: 'é宿¹å¼', sort: true } |
| | | //, { field: 'HManagerID', title: 'HManagerID', hide: true, sort: true } |
| | | ////, { field: '主管代ç ', title: '主管代ç ', sort: true } |
| | | //, { field: '主管', title: '主管', hide: true, sort: true } |
| | | //, { field: '主ä»åºid', title: '主ä»åºid', hide: true, sort: true } |
| | | //, { field: '主ä»åº', title: '主ä»åº', hide: true, sort: true } |
| | | //, { field: 'æè¦', title: 'æè¦', sort: true } |
| | | //, { field: 'æ¹å·', title: 'æ¹å·', sort: true } |
| | | //, { field: 'ç¨é¢', title: 'ç¨é¢', sort: true } |
| | |
| | | get_needClose_Bar = 1; |
| | | |
| | | //ä¸ºè¿æ»¤æ¡ä»¶å¢å æåº |
| | | sWhere_Bak += " and å©ä½è®¢é>0 and å©ä½è®¢é<=500 and å
³é人='' and è¡å
³é人='' and ç¶æ = 'å·²å®¡æ ¸' order by åæ®å· desc"; |
| | | sWhere_Bak += " and å©ä½è®¢é>0 and å©ä½è®¢é<=1000 and å
³é人='' and è¡å
³é人='' and ç¶æ = 'å·²å®¡æ ¸' order by åæ®å· desc"; |
| | | |
| | | //è·åæåºåçæ°æ®å¹¶éæ°æ¸²æ |
| | | var ajaxLoad = layer.load(); |
| | |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | if (get_needClose_Bar == 0) { |
| | | $("#btnSearch").trigger('click'); |
| | | //$("#btnSearch").trigger('click'); |
| | | } else if (get_needClose_Bar == 1) { |
| | | $("#get_needClose").trigger('click'); |
| | | } |
| | |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | if (get_needClose_Bar == 0) { |
| | | $("#btnSearch").trigger('click'); |
| | | //$("#btnSearch").trigger('click'); |
| | | } else if (get_needClose_Bar == 1) { |
| | | $("#get_needClose").trigger('click'); |
| | | } |
| | |
| | | function get_Refresh() { |
| | | $("#btnSearch").trigger('click'); |
| | | } |
| | | |
| | | //#region åå»è¿åæ°æ® |
| | | table.on('rowDouble(mainTable)', function (obj) { |
| | | var data = []; |
| | | data.push(obj.data); |
| | | parent.GetTaskClassValue(data); |
| | | var index = parent.layer.getFrameIndex(window.name); |
| | | parent.layer.close(index); |
| | | }); |
| | | |
| | | //#endregion |
| | | |
| | | |
| | | //æ°å¢ |
| | | function set_AddNew() { |
| | | layer.open({ |
| | |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <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="HTaskClassName" name="HTaskClassName" id="HTaskClassName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HTaskClassID" id="HTaskClassID" lay-verify="HTaskClassID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchHTaskClass" id="btnSearchHTaskClass" 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"> |
| | | <div class="layui-inline"> |
| | |
| | | get_checkSearchHCopyEmp(); |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region éæ©æ´¾å人æé® |
| | | form.on('submit(btnSearchHTaskClass)', function () { |
| | | get_checkSearchHTaskClass(); |
| | | }); |
| | | //#endregion |
| | | |
| | | //#endregion |
| | | |
| | | |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | //#region ä»»å¡ç±»å«éæ©é¡µé¢ |
| | | function get_checkSearchHTaskClass() { |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'å工表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../项ç®ç®¡ç/åºç¡å»ºæ¨¡/Gy_TaskClass.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HTaskClassID").val(checkStatus.data[0].HItemID); |
| | | $("#HTaskClassName").val(checkStatus.data[0].ä»»å¡ç±»å«åç§°); |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | , end: function () { } |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | //#region æä»¶ä¸ä¼ |
| | | function PicUpload() { |
| | | //å¤å¾çä¸ä¼ |
| | |
| | | , "HRemark": tableMain[0]["HRemark"] |
| | | , "HOrgID": tableMain[0]["HOrgID"] |
| | | , "HOrderLevID": tableMain[0]["HOrderLevID"] |
| | | , "HTaskClassID": tableMain[0]["HTaskClassID"] |
| | | , "HTaskClassName": tableMain[0]["HTaskClassName"] |
| | | |
| | | , "HMainSourceInterID": tableMain[0]["HMainSourceInterID"] |
| | | , "HMainSourceEntryID": tableMain[0]["HMainSourceEntryID"] |
| | |
| | | function GetHReceiveValue(obj) { |
| | | $("#HReceiveEmp").val(obj[0].èååç§°);//æ¥æ¶äººåç§° |
| | | } |
| | | //ä»»å¡ç±»å« |
| | | function GetTaskClassValue(obj) { |
| | | $("#HTaskClassID").val(obj[0].HItemID); |
| | | $("#HTaskClassName").val(obj[0].ä»»å¡ç±»å«åç§°); |
| | | } |
| | | </script> |
| | | </body> |
| | | </html> |
| | |
| | | </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="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"> |
| | |
| | | //æ°å¢è¡è¡¨æ ¼æ°æ® |
| | | |
| | | var NewRow = { |
| | | "HProMoneyID": "", "HProMoneyName": "", "HQty": "0", "HPrice": "0", "HMoney": "0", |
| | | "HProMoneyID": "0", "HProMoneyName": "", "HQty": "0", "HPrice": "0", "HMoney": "0", |
| | | "HSourceBillNo": 0, "HSourceBillType": 0, "HSourceInterID": 0, "HSourceEntryID": 0, |
| | | }; |
| | | switch (obj.event) { |
| | |
| | | } |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "HProMoneyID": checkStatus.data[0].HItemID |
| | | , "HProMoneyName": checkStatus.data[0].项ç®è´¹ç¨åç§° |
| | | "HProMoneyID": checkStatus.data[0].HItemID, |
| | | "HProMoneyName": checkStatus.data[0].项ç®è´¹ç¨åç§° |
| | | }) |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | , end: function () { |
| | | if (OptionData.length>0) { |
| | | obj.update({ |
| | | "HProMoneyID": OptionData.HItemID |
| | | , "HProMoneyName": OptionData.项ç®è´¹ç¨åç§° |
| | | "HProMoneyID": OptionData.HItemID, |
| | | "HProMoneyName": OptionData.项ç®è´¹ç¨åç§° |
| | | }) |
| | | OptionData = []; |
| | | } |
| | | |
| | | } |
| | | }) |
| | | } |
| | |
| | | layer.msg("æ¥æä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | |
| | | if ($("#HWorkTaskName").val() == "") { |
| | | layer.msg("ä»»å¡åç§°ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HWorkTaskNumber").val() == "") { |
| | | layer.msg("ä»»å¡ä»£ç ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HProNumber").val() == "") { |
| | | layer.msg("项ç®ä»£ç ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HProName").val() == "") { |
| | | layer.msg("项ç®åç§°ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HCusName").val() == "") { |
| | | layer.msg("客æ·ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | return true; |
| | | } |
| | | //#endregion |
| | |
| | | var HModName = "PM_WorkTaskBillList"; |
| | | |
| | | //ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | var titleData = ["HInterID", "HBillStatus", "HProjectID", "HWorkTaskID", "HCusID", "HOrgID","HEntryID"]; |
| | | var titleData = ["HInterID", "HBillStatus", "HProjectID", "HWorkTaskID", "HCusID", "HOrgID", "HEntryID","HProMoneyID"]; |
| | | //#endregion |
| | | |
| | | //#region ãè¿æ»¤æ¹æ¡ã |
| | |
| | | </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="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"> |
| | |
| | | </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;"> |
| | | <input type="text" class="layui-input" lay-verify="HSumMoney" name="HSumMoney" id="HSumMoney"> |
| | | </div> |
| | |
| | | </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;"> |
| | | <input type="text" class="layui-input" lay-verify="HMoney" name="HMoney" id="HMoney" value="0"> |
| | | </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;"> |
| | | <input type="text" class="layui-input" lay-verify="HConWorkDays" name="HConWorkDays" id="HConWorkDays" value="0" style="width:190px;"> |
| | | </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="HPMTeamName" name="HPMTeamName" id="HPMTeamName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HPMTeamID" id="HPMTeamID" lay-verify="HPMTeamID" value="0"> |
| | |
| | | |
| | | //#region éæ©å®¢æ·æé® |
| | | form.on('submit(btnSearchHCusID)', function () { |
| | | get_checkSearchHSendEmp(); |
| | | get_checkSearchHCus(); |
| | | }); |
| | | //#endregion |
| | | |
| | |
| | | }) |
| | | } |
| | | //#endregion |
| | | //#region 客æ·éæ©é¡µé¢ |
| | | function get_checkSearchHCus() { |
| | | var HOrgID = $("#HOrgID").val(); |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: '客æ·è¡¨'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../åºç¡èµæ/éå®åºç¡èµæ/Gy_Customer.html?openType=2&HOrgID=' + HOrgID, 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HCusID").val(checkStatus.data[0].HItemID);//客æ·id |
| | | $("#HCusName").val(checkStatus.data[0].客æ·åç§°);//客æ·åç§° |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | , end: function () { } |
| | | }) |
| | | } |
| | | //#endregion |
| | | //#region äº¤ä»æ¹éæ©é¡µé¢ |
| | | function get_checkSearchHPMTeam() { |
| | | var HOrgID = $("#HOrgID").val(); |
| | |
| | | layer.msg("åæ®å·ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HProID").val() == "0") { |
| | | if ($("#HProjecID").val() == "0") { |
| | | layer.msg("项ç®ä»£ç 没æéæ©!"); |
| | | return false; |
| | | } |
| | |
| | | layer.msg("æ¥æä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | |
| | | if ($("#HManagerID").val() == "0") { |
| | | layer.msg("管çåä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HWorkEmpID").val() == "0") { |
| | | layer.msg("宿½æ
å½ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HPMEmpID").val() == "0") { |
| | | layer.msg("项ç®ç»çä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HPMTeamID").val() == "0") { |
| | | layer.msg("äº¤ä»æ¹ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HCusID").val() == "0") { |
| | | layer.msg("客æ·ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HSumMoney").val() == "") { |
| | | layer.msg("ååæ»éé¢ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HMoney").val() == "") { |
| | | layer.msg("ç»ç®éé¢ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HConWorkDays").val() == "") { |
| | | layer.msg("ååé¢ä¼°äººå¤©ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | return true; |
| | | } |
| | | //#endregion |
| | |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: '项ç®ç±»å«è¡¨'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_ProjectClass.html', 'yes'] |
| | | , content: ['../../项ç®ç®¡ç/åºç¡å»ºæ¨¡/Gy_ProjectClass.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | |
| | | </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="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"> |
| | |
| | | </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="HPMTeamName" name="HPMTeamName" id="HPMTeamName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HPMTeamID" id="HPMTeamID" lay-verify="HPMTeamID" 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="HPMEmpName" name="HPMEmpName" id="HPMEmpName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HPMEmpID" id="HPMEmpID" lay-verify="HPMEmpID" 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="HWorkEmpName" name="HWorkEmpName" id="HWorkEmpName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HWorkEmpID" id="HWorkEmpID" lay-verify="HWorkEmpID" value="0"> |
| | |
| | | layer.msg("åæ®å·ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HProID").val() == "0") { |
| | | if ($("#HProjecID").val() == "0") { |
| | | layer.msg("项ç®ä»£ç 没æéæ©!"); |
| | | return false; |
| | | } |
| | |
| | | layer.msg("æ¥æä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HManagerID").val() == "0") { |
| | | layer.msg("管çåä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HWorkEmpID").val() == "0") { |
| | | layer.msg("宿½æ
å½ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HPMEmpID").val() == "0") { |
| | | layer.msg("项ç®ç»çä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HPMTeamID").val() == "0") { |
| | | layer.msg("äº¤ä»æ¹ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HCusID").val() == "0") { |
| | | layer.msg("客æ·ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | |
| | | return true; |
| | | } |
| | |
| | | </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="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"> |
| | |
| | | |
| | | <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="HPMTeamName" name="HPMTeamName" id="HPMTeamName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HPMTeamID" id="HPMTeamID" lay-verify="HPMTeamID" value="0"> |
| | |
| | | |
| | | //#region éæ©å®¢æ·æé® |
| | | form.on('submit(btnSearchHCusID)', function () { |
| | | get_checkSearchHSendEmp(); |
| | | get_checkSearchHCus(); |
| | | }); |
| | | //#endregion |
| | | |
| | |
| | | }) |
| | | } |
| | | //#endregion |
| | | //#region 客æ·éæ©é¡µé¢ |
| | | function get_checkSearchHCus() { |
| | | var HOrgID = $("#HOrgID").val(); |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: '客æ·è¡¨'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../åºç¡èµæ/éå®åºç¡èµæ/Gy_Customer.html?openType=2&HOrgID=' + HOrgID, 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HCusID").val(checkStatus.data[0].HItemID);//客æ·id |
| | | $("#HCusName").val(checkStatus.data[0].客æ·åç§°);//客æ·åç§° |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | , end: function () { } |
| | | }) |
| | | } |
| | | //#endregion |
| | | //#region 管çåéæ©é¡µé¢ |
| | | function get_checkSearchHManager() { |
| | | var HOrgID = $("#HOrgID").val(); |
| | |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | , end: function () { |
| | | if (optiondata.length>0) { |
| | | obj.update({ |
| | | "HProMoneyID": optiondata.HItemID |
| | | , "HProMoneyName": optiondata.项ç®è´¹ç¨åç§° |
| | | }) |
| | | } |
| | | optiondata = []; |
| | | } |
| | | }) |
| | | } |
| | |
| | | layer.msg("åæ®å·ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HProID").val() == "0") { |
| | | if ($("#HProjecID").val() == "0") { |
| | | layer.msg("项ç®ä»£ç 没æéæ©!"); |
| | | return false; |
| | | } |
| | |
| | | layer.msg("æ¥æä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | |
| | | if($("#HManagerID").val() == "0") { |
| | | layer.msg("管çåä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HWorkEmpID").val() == "0") { |
| | | layer.msg("宿½æ
å½ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HPMEmpID").val() == "0") { |
| | | layer.msg("项ç®ç»çä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HPMTeamID").val() == "0") { |
| | | layer.msg("äº¤ä»æ¹ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HCusID").val() == "0") { |
| | | layer.msg("客æ·ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | return true; |
| | | } |
| | | //#endregion |
| | |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | , end: function () { |
| | | if (OptionData.length>0) { |
| | | obj.update({ |
| | | "HMaterID": OptionData.HItemID |
| | | , "ç©æä»£ç ": OptionData.ç©æä»£ç |
| | |
| | | , "HUnitID": OptionData.HUnitID |
| | | , "计éåä½": OptionData.计éåä½åç§° |
| | | }) |
| | | OptionData = []; |
| | | } |
| | | |
| | | |
| | | } |
| | | }) |
| | |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | , end: function () { |
| | | //if (OptionData.length > 0) { |
| | | // OptionData = []; |
| | | //} |
| | | if (OptionData.length > 0) { |
| | | obj.update({ |
| | | "HWHID": OptionData.HItemID |
| | | , "è°å
¥ä»åº": OptionData.ä»åºåç§° |
| | | }) |
| | | OptionData = []; |
| | | } |
| | | |
| | | |
| | | } |
| | | }) |
| | |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | , end: function () { |
| | | //if (OptionData.length > 0) { |
| | | // OptionData = []; |
| | | //} |
| | | if (OptionData.length > 0) { |
| | | obj.update({ |
| | | "HSCWHID": OptionData.HItemID |
| | | , "è°åºä»åº": OptionData.ä»åºåç§° |
| | | }) |
| | | OptionData = []; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | } |
| | | //æ°æ®æ ¡éªåæ ¼ï¼éç®è®°å½ |
| | | var HQty = obj.data.HQty * 1; //æ°é |
| | | var HTaxRate = obj.data.HTaxRate * 0.01; //ç¨ç |
| | | var HTaxRate = (obj.data.HTaxRate !== undefined ? value * 0.01 : 0 ) * 0.01; //ç¨ç |
| | | var HTaxPrice = value * 1; //å«ç¨åä»·=åä»·*(1+ç¨ç) |
| | | var HPrice = HTaxPrice / (1 + HTaxRate); //åä»·=å«ç¨åæ®/(1+ç¨ç) |
| | | |
| | |
| | | , { field: 'ä¸å¡å', title: 'ä¸å¡å', width: 200, sort: true } |
| | | , { field: 'ä»¶æ°', title: 'ä»¶æ°', totalRow: true, width: 200, sort: true } |
| | | , { field: 'æ°é', title: 'æ°é', totalRow: true, width: 200, sort: true } |
| | | , { field: 'å·²å
³èæ°é', title: 'å·²å
³èæ°é', totalRow: true, width: 200, sort: true } |
| | | //, { field: 'å·²å
³èæ°é', title: 'å·²å
³èæ°é', totalRow: true, width: 200, sort: true } |
| | | , { field: 'åä»·', title: 'åä»·', width: 200, sort: true, totalRow: true} |
| | | , { field: 'ç¨ç', title: 'ç¨ç', width: 200, sort: true, totalRow: true } |
| | | , { field: 'å«ç¨åä»·', title: 'å«ç¨åä»·', width: 200, sort: true, totalRow: true } |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table> |
| | | <script type="text/html" id="toolbarDemo"> |