From 43fdbff49764d55c7b3a19a1d6e7d8aeb62072ef Mon Sep 17 00:00:00 2001 From: buli <137736985@qq.com> Date: 星期五, 21 四月 2023 11:17:35 +0800 Subject: [PATCH] backup0421 --- force-app/main/default/lwc/quoteTrial/quoteTrial.js | 211 +++++++++++++++------------------------------------- 1 files changed, 62 insertions(+), 149 deletions(-) diff --git a/force-app/main/default/lwc/quoteTrial/quoteTrial.js b/force-app/main/default/lwc/quoteTrial/quoteTrial.js index dbdd832..27b3b9d 100644 --- a/force-app/main/default/lwc/quoteTrial/quoteTrial.js +++ b/force-app/main/default/lwc/quoteTrial/quoteTrial.js @@ -203,8 +203,7 @@ this.OnLoadSaveProduct.push(item); } }) - // var arrss = [...[], ...this.OnLoadSaveProduct];//20230214 - var arrss = [].concat(this.OnLoadSaveProduct);//20230214 + var arrss = [...[], ...this.OnLoadSaveProduct]; //鍚堝苟涓婁竴娆¤瘯绠楃殑鎶ヤ环琛� this.addOffer(arrss); //澶勭悊鎶ヤ环鏁版嵁鏀瑰姩鍚庤瘯绠楃晫闈㈢殑鍙樺寲 @@ -264,8 +263,7 @@ //鍚堝苟涓婁竴娆$殑鎶ヤ环琛� lastQuotation = []; addOffer(TrialLine) { - // this.lastQuotation = [...[], ...addOfferLogic(TrialLine)]; //鍚堝苟涓婁竴娆$殑鎶ヤ环琛岀殑閫昏緫//20230214 - this.lastQuotation = [].concat(addOfferLogic(TrialLine));//20230214 + this.lastQuotation = [...[], ...addOfferLogic(TrialLine)]; //鍚堝苟涓婁竴娆$殑鎶ヤ环琛岀殑閫昏緫 } Complate = false; //浠庢暟鎹簱鏇存柊宸蹭繚瀛樼殑鏁版嵁 鏂规 UpdateBy 2021 06 29 @@ -391,11 +389,7 @@ var newDicountData = []; newDicountData=SpecialSavesChangePartLogic(jzDataDefaultList,SaveName, SelectedData, IdStr, CompareId,DefalutQuantity,newDicountData,jzDataDiscountList); this.jzDataDefault = NewDefaultDatass; - // this.jzDataProduct = [...this.jzDataProduct, ...AddProductDatass]; //浜у搧鏄庣粏//20230213 - this.jzDataProduct =this.jzDataProduct.concat(AddProductDatass);//20230213 - console.warn('newDicountData'+ newDicountData[0].Id); - console.warn('AddProductDatass'+AddProductDatass[0]); - console.warn('this.jzDataProduct'+this.jzDataProduct[0]); + this.jzDataProduct = [...this.jzDataProduct, ...AddProductDatass]; //浜у搧鏄庣粏 //鍚堝悓浠锋牸姹囨�� this.ContractPriceCompute(); this.jzDataDiscount = newDicountData; @@ -413,8 +407,7 @@ ...jzDataProductParam } jzDataProductParam = this.countListAndNod(tempObject, result); - // arrData = [...[], jzDataProductParam];//20230214 - arrData = [].concat(jzDataProductParam);//20230214 + arrData = [...[], jzDataProductParam]; //杩斿洖鏁版嵁姣旇緝瑙勫垯 this.CompareData(result, idStr, jzDataProductParam, TypeName, jzDataDefaultToTemps, arrData, isShow); }) @@ -439,8 +432,7 @@ CompareData(list, idStr, jzDataProductParam, TypeName, jzDataDefaultToTemps, arrData, isShow) { var isChange = false; var TempsJzData = [] - // TempsJzData = [...[], ...this.jzDataDefault]; //寰呴�変骇鍝�//20230214 - TempsJzData = [].concat(this.jzDataDefault);//20230214 + TempsJzData = [...[], ...this.jzDataDefault]; //寰呴�変骇鍝� var TempsJzDataToCompare = [] TempsJzData.forEach(item => { list.forEach(element => { //淇冮攢鏂规涓绘暟鎹叧鑱斾骇鍝� @@ -483,8 +475,7 @@ newObj.element = newElement; newTempsJzDataToCompare.push(newObj); }) - // TempsJzDataToCompare = [...[], ...newTempsJzDataToCompare];//20230214 - TempsJzDataToCompare = [].concat(newTempsJzDataToCompare);//20230214 + TempsJzDataToCompare = [...[], ...newTempsJzDataToCompare]; //End if (TempsJzDataToCompare.length == list.length&&list.length!=0) { TempsJzDataToCompare.forEach(TempsItems => { @@ -516,8 +507,7 @@ //鏇存柊娆℃暟 this.updatesNums(); //鍚堝苟閲嶅浠锋牸鏀跨瓥鏂规 - // var jzarr = [...[], ...this.jzDataFixedPrice];//20230214 - var jzarr = [].concat(this.jzDataFixedPrice);//20230214 + var jzarr = [...[], ...this.jzDataFixedPrice]; this.MergeDuplicateSchemes(jzarr); //淇濆瓨鏈�澶ф鏁� this.savecount(idStr); @@ -548,8 +538,7 @@ CompareFullDataedit.push(editnum); } }); - // this.CompareFullData = [...[], ...CompareFullDataedit];//20230214 - this.CompareFullData = [].concat(CompareFullDataedit);//20230214 + this.CompareFullData = [...[], ...CompareFullDataedit]; Setmap.set(arrs.Id, object); } else { object = { @@ -562,14 +551,12 @@ for (let [k, v] of Setmap) { arr.push(v); } - // this.jzDataFixedPrice = [...[], ...arr]//20230214 - this.jzDataFixedPrice = [].concat(arr);//20230214 + this.jzDataFixedPrice = [...[], ...arr] this.ConsolidationProgramProducts(arr); } //褰掑苟鐩稿悓浠锋牸鏀跨瓥鏂规鐨勪骇鍝� ConsolidationProgramProducts(arrSchemes) { - // var jzdataList = [...[], ...this.jzDataProduct];//20230214 - var jzdataList = [].concat(this.jzDataProduct);//20230214 + var jzdataList = [...[], ...this.jzDataProduct]; this.jzDataProduct = PriceConsolidation(arrSchemes, jzdataList); } //淇濆瓨鏈�澶ф鏁� @@ -588,10 +575,8 @@ //鏇挎崲listprice鍗曚环 ReplacementUnitPrice() { var ifTrade = this.QuoteData[0].Opportunity.Trade__c; //鍐呭璐� - // var arr = [...[], ...this.jzDataProduct];//20230214 - var arr = [].concat(this.jzDataProduct);//20230214 - // this.jzDataProduct = [...[], ...ReplacementUnitPriceLogic(arr, ifTrade)]; //鏇挎崲listprice鍗曚环閫昏緫//20230214 - this.jzDataProduct = [].concat(ReplacementUnitPriceLogic(arr, ifTrade));//20230214 + var arr = [...[], ...this.jzDataProduct]; + this.jzDataProduct = [...[], ...ReplacementUnitPriceLogic(arr, ifTrade)]; //鏇挎崲listprice鍗曚环閫昏緫 //鍚堝悓浠锋牸姹囨�� this.ContractPriceCompute(); } @@ -678,8 +663,7 @@ newArrsTemp6.push(itsss); } }); - // newArrsTemp5 = [...[], ...newArrsTemp6];//20230214 - newArrsTemp5 = [].concat(newArrsTemp6);//20230214 + newArrsTemp5 = [...[], ...newArrsTemp6]; this.jzDataDefault = newArrsTemp5; } this.jzDataProduct = arrProductTemp; @@ -747,8 +731,7 @@ newArrsTemp6.push(itsss); } }); - // newArrsTemp5 = [...[], ...newArrsTemp6];//20230214 - newArrsTemp5 = [].concat(newArrsTemp6);//20230214 + newArrsTemp5 = [...[], ...newArrsTemp6]; this.jzDataDefault = newArrsTemp5; } this.jzDataProduct = arrProductTemp; @@ -757,8 +740,7 @@ } } }); - // this.jzDataFixedPrice = [...[], ...arrTemp];//20230214 - this.jzDataFixedPrice = [].concat(arrTemp);//20230214 + this.jzDataFixedPrice = [...[], ...arrTemp]; } } @@ -839,14 +821,11 @@ } } }); - this.jzDataDiscount = [...[], ...arrTemp1];//20230214 - // this.jzDataDiscount = [].concat(arrTemp1);//20230214 - console.warn('this.jzDataDiscountceshi1234567890'+this.jzDataDiscount); + this.jzDataDiscount = [...[], ...arrTemp1]; } //涓�鑸姌鎵f洿鏀硅繃鍚堝悓浠锋牸璁$畻 updateCommonlyDiscountLogic(Id,JxsType,GuaranteeDiscount__c_Input,NormalDiscount__c_Input,Category__c,jzDataDiscount) { //todu13 - console.warn('jzDataDiscount'+jzDataDiscount); this.updateIdStr("1"); var arrProductTemp = this.jzDataProduct; // PromotionId 浜у搧鏄庣粏 this.jzDataProduct=updateCDLogic(Id,JxsType,GuaranteeDiscount__c_Input,NormalDiscount__c_Input,Category__c,jzDataDiscount,arrProductTemp); @@ -855,23 +834,14 @@ //璁$畻涓�鑸姌鎵i潪瀵硅薄鍝佹姌鎵� ComouteProductDiscount(Id,Category__c,GuaranteeDiscount__c_Input, NormalDiscount__c_Input,GuaranteeDiscount_H_Money__c, NormalDiscount_H_Money__c, item) { //todu12 - console.warn('this.jzDataDiscountxxx1'+this.jzDataDiscount); this.updateIdStr("2"); var arrTemp1 = this.jzDataDiscount; //鎶樻墸鏀跨瓥 - console.warn('this.jzDataDiscountxxx2'+this.jzDataDiscount); this.updateIdStr("1"); var arrProductTemp = this.jzDataProduct; // PromotionId 浜у搧鏄庣粏 var reslut=ReverseCalculationModifyDiscountLogic(arrTemp1,arrProductTemp,Id,Category__c,GuaranteeDiscount__c_Input, NormalDiscount__c_Input,GuaranteeDiscount_H_Money__c, NormalDiscount_H_Money__c, item); - // var ceshi = arrTempsss;//20230214 - // this.jzDataDiscount=[...[], ...ceshi];//20230214 - this.jzDataDiscount=[...[], ...arrTempsss];//20230214 - // this.jzDataDiscount=[].concat(arrTempsss);//20230214 - // console.warn('ceshi'+ceshi); - console.warn('this.jzDataDiscountxxx3+++'+this.jzDataDiscount); - var ceshi2 = arrProductTempsss; - this.jzDataProduct =[...[], ...ceshi2];//20230214 - // this.jzDataProduct=[].concat(arrProductTempsss);//20230214 + this.jzDataDiscount=[...[], ...arrTempsss]; + this.jzDataProduct =[...[], ...arrProductTempsss]; return reslut; } //todu @@ -888,10 +858,7 @@ //鍒犻櫎浠锋牸璁$畻 delectComputeData(item) { //item 浜у搧鏄庣粏鐨勪竴鏉℃暟鎹� var sum = this.ComputeListPrice(item.PromotionId); - // var jzProductarry = [...[], ...this.jzDataProduct];//20230214 - var jzProductarry = [].concat(this.jzDataProduct);//20230214 - console.warn('ceshiasdfasdfsdfasdjzProductarry'+arrss); - console.warn('sfgssgfgthis.jzDataProduct'+this.jzDataProduct); + var jzProductarry = [...[], ...this.jzDataProduct]; jzProductarry.forEach(japdt => { //japdt浜у搧鏄庣粏 if (item.PromotionId == japdt.PromotionId) { japdt.AgencySubtotal__c = japdt.AgencySubtotal__c + item.AgencySubtotal__c * (japdt.ListPrice * japdt.Quantity / sum); @@ -900,8 +867,7 @@ japdt.AgencyUnitPrice__c = Math.round(japdt.AgencyUnitPrice__c * 100) / 100; } }); - // this.jzDataProduct = [...[], ...jzProductarry];//20230214 - this.jzDataProduct = [].concat(jzProductarry);//20230214 + this.jzDataProduct = [...[], ...jzProductarry]; //鍚堝悓浠锋牸姹囨�� this.ContractPriceCompute(); } @@ -910,8 +876,7 @@ //淇敼 浜у搧鏄庣粏 let num = parseInt(length / Quantity); let addArr = []; - // var newss = [...[], ...this.jzDataDefault];//20230214 - var newss = [].concat(this.jzDataDefault);//20230214 + var newss = [...[], ...this.jzDataDefault]; var newDataDefault = newss.map(item => { if (item == undefined) { console.warn("undefined!!"); @@ -931,8 +896,7 @@ } return item; }) - // this.jzDataProduct = [...this.jzDataProduct, ...addArr];//20230213 - this.jzDataProduct = this.jzDataProduct.concat(addArr);//20230213 + this.jzDataProduct = [...this.jzDataProduct, ...addArr]; //鍚堝悓浠锋牸姹囨�� this.ContractPriceCompute(); this.jzDataDefault = newDataDefault; @@ -969,10 +933,8 @@ } // =======鏇存柊淇冮攢鏂规娆℃暟鏁版嵁 updatesNums() { - // var jzDataFixedPriceTemp = [...[], ...this.jzDataFixedPrice];//20230214 - var jzDataFixedPriceTemp = [].concat(this.jzDataFixedPrice);//20230214 - // var jzDataDiscountTemp = [...[], ...this.jzDataDiscount];//20230214 - var jzDataDiscountTemp = [].concat(this.jzDataDiscount);//20230214 + var jzDataFixedPriceTemp = [...[], ...this.jzDataFixedPrice]; + var jzDataDiscountTemp = [...[], ...this.jzDataDiscount]; var CompareFullData = this.CompareFullData; updatesNumsLogic(jzDataFixedPriceTemp,jzDataDiscountTemp,CompareFullData); this.jzDataFixedPrice = jzDataFixedPriceTemps; @@ -981,8 +943,7 @@ // ====================== 鍒ゆ柇鏄惁涓�0 ChangeNumZeroTrueData = [] ChangeNumZeroTrue() { - // this.ChangeNumZeroTrueData = [...[], ...this.jzDataDefault];//20230214 - this.ChangeNumZeroTrueData = [].concat(this.jzDataDefault);//20230214 + this.ChangeNumZeroTrueData = [...[], ...this.jzDataDefault]; var newJzDataDefault = this.ChangeNumZeroTrueData.filter(item => { if (item.Quantity > 0) { return true; @@ -1108,8 +1069,7 @@ var falg = true; if (item.TypeName == "浠锋牸鏀跨瓥") { this.DeleteIsChangelogic(item, item.TypeName, num, list); - // var arrTemp = [...[], ...this.jzDataFixedPrice]; //浠锋牸鏀跨瓥//20230214 - var arrTemp = [].concat(this.jzDataFixedPrice);//20230214 + var arrTemp = [...[], ...this.jzDataFixedPrice]; //浠锋牸鏀跨瓥 var TempItem = {}; arrTemp.forEach(atItem => { if (atItem.Id == item.PromotionId) { @@ -1128,8 +1088,7 @@ } } else if (item.TypeName == "鎶樻墸鏀跨瓥") { this.DeleteIsChangelogic(item, item.TypeName, num, list); - // var arrTempTOName = [...[], ...this.jzDataDiscount]; //鎶樻墸鏀跨瓥//20230214 - var arrTempTOName = [].concat(this.jzDataDiscount);//20230214 + var arrTempTOName = [...[], ...this.jzDataDiscount]; //鎶樻墸鏀跨瓥 var TempItemTOName = {}; var PromotionHeadRecordId = item.recordTypeName__c; if (PromotionHeadRecordId == "Authorizer") { @@ -1214,8 +1173,7 @@ } }); if (flg) { - // this.jzDataProduct = [...[], ...jzdatas];//20230214 - this.jzDataProduct = [].concat(jzdatas);//20230214 + this.jzDataProduct = [...[], ...jzdatas]; if (TypeName == "浠锋牸鏀跨瓥") { //鍒犻櫎浠锋牸璁$畻 this.delectComputeData(item); @@ -1239,8 +1197,7 @@ } }); } - // this.jzDataDefault = [...[], ...arr];//20230214 - this.jzDataDefault = [].concat(arr);//20230214 + this.jzDataDefault = [...[], ...arr]; } } // ==================閫氱煡鏄剧ず ====================== @@ -1366,12 +1323,10 @@ newarrjdf.push(jdf); } }); - // this.jzDataFixedPrice = [...[], ...newarrjdf];//20230214 - this.jzDataFixedPrice = [].concat(newarrjdf);//20230214 + this.jzDataFixedPrice = [...[], ...newarrjdf]; }); }); - // this.jzData = [...[], ...responseObj.records];//20230214 - this.jzData = [].concat(responseObj.records);//20230214 + this.jzData = [...[], ...responseObj.records]; // this.index=this.jzData.length; this.tableIsLoding = false; }) @@ -1437,17 +1392,14 @@ if (this.index == 0) { if (this.flagall) { if (this.jzDataDefaultCopy.length < this.lastQuotation.length) { //1銆佹潯鏁板皬浜� - // this.jzDataDefault = [...[], ...this.jzDataDefaultCopy];//20230214 - this.jzDataDefault = [].concat(this.jzDataDefaultCopy);//20230214 + this.jzDataDefault = [...[], ...this.jzDataDefaultCopy]; this.jzDataProduct = []; this.jzDataFixedPrice = []; this.jzDataDiscount = []; return; } else { //2銆� - // var lastQuotation = [...[], ...this.lastQuotation];//20230214 - var lastQuotation = [].concat(this.lastQuotation);//20230214 - // var DefaultCopy = [...[], ...this.jzDataDefaultCopy];//20230214 - var DefaultCopy = [].concat(this.jzDataDefaultCopy);//20230214 + var lastQuotation = [...[], ...this.lastQuotation]; + var DefaultCopy = [...[], ...this.jzDataDefaultCopy]; var Default = []; for (var j = 0; j < DefaultCopy.length; j++) { var arrList = []; @@ -1456,8 +1408,7 @@ for (var i = 0; i < lastQuotation.length; i++) { if (DefaultCopy[j].Id == lastQuotation[i].Id) { if (DefaultCopy[j].Quantity < lastQuotation[i].Quantity) { //2-1-1 鏁伴噺灏忎簬 clear - // this.jzDataDefault = [...[], ...this.jzDataDefaultCopy];//20230214 - this.jzDataDefault = [].concat(this.jzDataDefaultCopy);//20230214 + this.jzDataDefault = [...[], ...this.jzDataDefaultCopy]; this.jzDataProduct = []; this.jzDataFixedPrice = []; this.jzDataDiscount = []; @@ -1483,15 +1434,13 @@ } } if (lastQuotation.length != 0) { //2-2 鍚堟垚鏁版嵁鏈夊墿浣� - // this.jzDataDefault = [...[], ...this.jzDataDefaultCopy];//20230214 - this.jzDataDefault = [].concat(this.jzDataDefaultCopy);//20230214 + this.jzDataDefault = [...[], ...this.jzDataDefaultCopy]; this.jzDataProduct = []; this.jzDataFixedPrice = []; this.jzDataDiscount = []; return; } - // this.jzDataDefault = [...[], ...Default];//20230214 - this.jzDataDefault = [].concat(Default);//20230214 + this.jzDataDefault = [...[], ...Default]; } } } @@ -1677,8 +1626,7 @@ CompareFullDataedit.push(editnum); } }); - // this.CompareFullData = [...[], ...CompareFullDataedit];//20230214 - this.CompareFullData = [].concat(CompareFullDataedit);//20230214 + this.CompareFullData = [...[], ...CompareFullDataedit]; // } } } else { @@ -1712,8 +1660,7 @@ } } //haha - // var newArrs = [...[], ...editnewDate];//20230214 - var newArrs = [].concat(editnewDate);//20230214 + var newArrs = [...[], ...editnewDate]; if (boolean == 1) { this.jzDataFixedPrice = newData; newArrs.forEach(item => { @@ -1723,8 +1670,7 @@ this.CloseAlert(); }, 2000); }); - // this.jzDataProduct = [...this.newArrsTemp3, ...this.newArrsTemp4];//20230213 - this.jzDataProduct = this.newArrsTemp3.concat(this.newArrsTemp4);//20230213 + this.jzDataProduct = [...this.newArrsTemp3, ...this.newArrsTemp4]; //鍚堝悓浠锋牸姹囨�� this.ContractPriceCompute(); } else if (boolean == 3) { @@ -1754,8 +1700,7 @@ if (this.jzDataFixedPrice == null || this.jzDataFixedPrice.length <= 0) { this.jzDataFixedPrice = arrs; } else { - // this.jzDataFixedPrice = [...this.jzDataFixedPrice, ...arrs];//20230213 - this.jzDataFixedPrice = this.jzDataFixedPrice.concat(arrs);//20230213 + this.jzDataFixedPrice = [...this.jzDataFixedPrice, ...arrs]; }; } //浠锋牸鏀跨瓥閫変腑 @@ -1792,12 +1737,10 @@ compareFu.push(deletId); } }); - // this.CompareFullData = [...[], ...compareFu];//20230214 - this.CompareFullData = [].concat(compareFu);//20230214 + this.CompareFullData = [...[], ...compareFu]; } } - // this.SelectedFnDataFixedPrice = [...[], ...select];//20230214 - this.SelectedFnDataFixedPrice = [].concat(select);//20230214 + this.SelectedFnDataFixedPrice = [...[], ...select]; if (fag) { //鍒犻櫎鎵�閫夋柟妗堝尮閰嶇殑浜у搧 this.DeleteChangesFn(ids, "浠锋牸鏀跨瓥"); @@ -1821,8 +1764,7 @@ compareFu.push(deletId); } }); - // this.CompareFullData = [...[], ...compareFu];//20230214 - this.CompareFullData = [].concat(compareFu);//20230214 + this.CompareFullData = [...[], ...compareFu]; if (this.SelectedFnDataFixedPrice[j].Id == this.jzDataFixedPrice[i].Id) { this.jzDataFixedPrice.splice(i, 1); // 灏嗕娇鍚庨潰鐨勫厓绱犱緷娆″墠绉伙紝鏁扮粍闀垮害鍑�1 i--; @@ -1935,8 +1877,7 @@ newarrjdf.push(jdf); } }); - // this.jzDataFixedPrice = [...[], ...newarrjdf];//20230214 - this.jzDataFixedPrice = [].concat(newarrjdf);//20230214 + this.jzDataFixedPrice = [...[], ...newarrjdf]; if (event.fag && iflag) { var newArr = []; newArr.push(item); @@ -1953,8 +1894,7 @@ } }) }) - // this.jzDataFix = [...[], ...respons];//20230214 - this.jzDataFix = [].concat(respons);//20230214 + this.jzDataFix = [...[], ...respons]; this.tableIsLodingFix = false; }) } @@ -1991,8 +1931,7 @@ if (this.jzDataDiscount == null || this.jzDataDiscount.length <= 0) { this.jzDataDiscount = arrs; } else { - // this.jzDataDiscount = [...this.jzDataDiscount, ...arrs];//20230213 - this.jzDataDiscount = this.jzDataDiscount.concat(arrs);//20230213 + this.jzDataDiscount = [...this.jzDataDiscount, ...arrs]; } } //鎶樻墸鏀跨瓥閫変腑 @@ -2329,16 +2268,14 @@ debugger if (boolean == 0) { this.jzDataDiscount = newData; - // var newArrs = [...[], ...editnewDate];//20230214 - var newArrs = [].concat(editnewDate);//20230214 + var newArrs = [...[], ...editnewDate]; newArrs.forEach(item => { // this.ComputeData(item.Id, '鎶樻墸鏀跨瓥'); //鍚堝苟鎶樻墸鏀跨瓥閲嶅鏂规 this.ConsolidatedDiscountPolicy(this.jzDataDiscount); this.ComputeDiscount(item.Id, item.NormalDiscount__c_Input, item.GuaranteeDiscount__c_Input, item.Category__c, item.JxsType); }); - // this.jzDataProduct = [...this.newArrsTemp2, ...this.newArrsTemp];//20230213 - this.jzDataProduct = this.newArrsTemp2.concat(this.newArrsTemp);//20230213 + this.jzDataProduct = [...this.newArrsTemp2, ...this.newArrsTemp]; //鍚堝悓浠锋牸姹囨�� this.ContractPriceCompute(); this.Alert("鏁版嵁淇敼鎴愬姛", false, true); @@ -2356,8 +2293,6 @@ } else if (boolean == 4) { this.jzDataDiscount = newData; var ffgg=0; - console.warn('newData'+newData); - console.warn('this.jzDataDiscount'+this.jzDataDiscount); if(boolean3){ newData2.forEach(HeTo => { //鏍规嵁鍚堝悓浠锋牸璁$畻涓�鑸姌鎵� @@ -2366,13 +2301,8 @@ ffgg=HeTo; return ; } - console.warn('HeTo'+HeTo); //鍚堝苟鎶樻墸鏀跨瓥閲嶅鏂规 - // let jzDataDiscountx = [...[], ...this.jzDataDiscount];//20230214 - let jzDataDiscountx = [].concat(this.jzDataDiscount);//20230214 - console.warn('jzDataDiscountx'+jzDataDiscountx); - console.warn('this.jzDataDiscountxxx'+this.jzDataDiscount); - this.ConsolidatedDiscountPolicy(jzDataDiscountx); + this.ConsolidatedDiscountPolicy(this.jzDataDiscount); //涓�鑸姌鎵f洿鏀硅繃鍚堝悓浠锋牸璁$畻 this.updateCommonlyDiscountLogic(HeTo.Id,HeTo.JxsType,HeTo.GuaranteeDiscount__c_Input,HeTo.NormalDiscount__c_Input,HeTo.Category__c,this.jzDataDiscount); }); @@ -2484,21 +2414,15 @@ } //鍚堝苟鎶樻墸鏀跨瓥閲嶅鏂规 ConsolidatedDiscountPolicy(SchemeSet) { - console.warn('SchemeSet'+SchemeSet); var arr = []; arr = ConsolidatedDiscountPolicyLogic(SchemeSet, arr); //鍚堝苟鎶樻墸鏀跨瓥閲嶅鏂规閫昏緫 - console.warn('arr'+arr); - // this.jzDataDiscount = [...[], ...arr];//20230214 - this.jzDataDiscount = [].concat(arr);//20230214 - console.warn('this.jzDataDiscount2'+this.jzDataDiscount); + this.jzDataDiscount = [...[], ...arr]; // this.ConsolidationProgramProducts(arr); this.ConsolidatedDiscountDetails(arr); //鍚堝苟鎶樻墸鏀跨瓥浜у搧鏄庣粏 } //鍚堝苟鎶樻墸鏀跨瓥浜у搧鏄庣粏 ConsolidatedDiscountDetails(arrSchemes) { - // var jzdataList = [...[], ...this.jzDataProduct];//20230214 - var jzdataList = [].concat(this.jzDataProduct);//20230214 - console.warn('jzdataList'+jzdataList); + var jzdataList = [...[], ...this.jzDataProduct]; this.jzDataProduct = ConsolidatedDiscountDetailsLogic(arrSchemes, jzdataList); //鍚堝苟鎶樻墸鏀跨瓥浜у搧鏄庣粏閫昏緫 } @track @@ -2538,8 +2462,7 @@ arr.push(jzdsc); } }); - // this.jzDataSpecial = [...[], ...arr];//20230214 - this.jzDataSpecial = [].concat(arr);//20230214 + this.jzDataSpecial = [...[], ...arr]; } }); }) @@ -2608,8 +2531,7 @@ } } //haha4 - // var newArrs = [...[], ...editnewDate];//20230214 - var newArrs = [].concat(editnewDate);//20230214 + var newArrs = [...[], ...editnewDate]; newArrs.forEach(item => { if (item.Quantity < item.SplitQuantity) { boolean = 2; @@ -2679,7 +2601,6 @@ this.ShowCommonly = true } //淇濆瓨浣跨敤鏁伴噺 - @track IsLoading4 = false; jzshows4 = true; IsLoadingFlag = true; @@ -2723,8 +2644,7 @@ } } //haha3 - // var newArrs = [...[], ...editnewDate];//20230214 - var newArrs = [].concat(editnewDate);//20230214 + var newArrs = [...[], ...editnewDate]; newArrs.forEach(item => { if (item.Quantity < item.SplitQuantity) { boolean = 2; @@ -2924,8 +2844,7 @@ itemTemp.typess = "鎶樻墸鏀跨瓥"; newTemp2.push(itemTemp); }); - // var data = [...newTemp, ...newTemp2];//20230213 - var data = newTemp.concat(newTemp2);//20230213 + var data = [...newTemp, ...newTemp2]; var ParamIdStr = this.ParamIdStr; var Trade__c = this.QuoteData[0].Opportunity.Trade__c; var NewData = ConsolidationScheme(data, ParamIdStr, Trade__c); @@ -3036,14 +2955,11 @@ var indexNum = 0; var jzdpdc = []; if (str == "1") { - // jzdpdc = [...[], ...this.jzDataProduct]; //淇冮攢浜у搧//20230214 - jzdpdc = [].concat(this.jzDataProduct);//20230214 + jzdpdc = [...[], ...this.jzDataProduct]; //淇冮攢浜у搧 } else if (str == "2") { - // jzdpdc = [...[], ...this.jzDataDiscount]; //鎶樻墸鏀跨瓥//20230214 - jzdpdc = [].concat(this.jzDataDiscount);//20230214 + jzdpdc = [...[], ...this.jzDataDiscount]; //鎶樻墸鏀跨瓥 } else if (str == "3") { - // jzdpdc = [...[], ...this.jzDataFixedPrice]; //浠锋牸鏀跨瓥//20230214 - jzdpdc = [].concat(this.jzDataFixedPrice);//20230214 + jzdpdc = [...[], ...this.jzDataFixedPrice]; //浠锋牸鏀跨瓥 } jzdpdc.forEach(item => { indexNum++; @@ -3054,14 +2970,11 @@ newArr.push(temp); }) if (str == "1") { - // this.jzDataProduct = [...[], ...newArr]; //淇冮攢浜у搧//20230214 - this.jzDataProduct = [].concat(newArr);//20230214 + this.jzDataProduct = [...[], ...newArr]; //淇冮攢浜у搧 } else if (str == "2") { - // this.jzDataDiscount = [...[], ...newArr]; //鎶樻墸鏀跨瓥//20230214 - this.jzDataDiscount = [].concat(newArr);//20230214 + this.jzDataDiscount = [...[], ...newArr]; //鎶樻墸鏀跨瓥 } else if (str == "3") { - // this.jzDataFixedPrice = [...[], ...newArr]; //浠锋牸鏀跨瓥//20230214 - this.jzDataFixedPrice = [].concat(newArr);//20230214 + this.jzDataFixedPrice = [...[], ...newArr]; //浠锋牸鏀跨瓥 } //TODU } -- Gitblit v1.9.1