arco-support-request 0.0.63 → 0.0.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2889,7 +2889,7 @@ class EntityTypeSetupService {
2889
2889
  let url_ = environment.ServerUrl +
2890
2890
  'entitytype/ticket/wfAction?entitytyperecid=' +
2891
2891
  EntityTypeId;
2892
- return this.http.post(url_, obj, { responseType: 'blob' });
2892
+ return this.http.post(url_, obj);
2893
2893
  }
2894
2894
  urlPostTaskWfAction(RecIds, stageId, action, comments, updateFileds, updateFieldsObject, EntityTypeId) {
2895
2895
  let updateFiledsString = JSON.stringify(updateFileds);
@@ -2905,7 +2905,7 @@ class EntityTypeSetupService {
2905
2905
  let url_ = environment.ServerUrl +
2906
2906
  'entitytype/ticket/wfAction?entitytyperecid=' +
2907
2907
  EntityTypeId;
2908
- return this.http.post(url_, obj, { responseType: 'blob' });
2908
+ return this.http.post(url_, obj);
2909
2909
  }
2910
2910
  getWfInsProcessStageComments(criteriastr, EntityTypeId, refRecId) {
2911
2911
  const wfStagelist = EntityTypeDynamic.Getwfinsprocessstagecomments(EntityTypeId, refRecId);
@@ -4785,11 +4785,17 @@ class SupportRequestDetailsComponent {
4785
4785
  this.getTaskDetails();
4786
4786
  console.log(res);
4787
4787
  }, (error) => {
4788
- var _a, _b;
4788
+ var _a, _b, _c;
4789
4789
  error.error;
4790
- if ((_a = error.error) === null || _a === void 0 ? void 0 : _a.msg) {
4790
+ if (((_a = error.error) === null || _a === void 0 ? void 0 : _a.status) == false) {
4791
4791
  let msg = JSON.parse((_b = error.error) === null || _b === void 0 ? void 0 : _b.msg);
4792
- Swal.fire(this.translatePipe.transform(msg.msg));
4792
+ if (msg && msg.msg) {
4793
+ msg = msg.msg;
4794
+ }
4795
+ else {
4796
+ msg = (_c = error.error) === null || _c === void 0 ? void 0 : _c.msg;
4797
+ }
4798
+ Swal.fire(this.translatePipe.transform(msg));
4793
4799
  }
4794
4800
  else {
4795
4801
  Swal.fire(this.translatePipe.transform(error.ExceptionMessage), this.translatePipe.transform(error.message));
@@ -5564,6 +5570,7 @@ class RequestFlowComponent {
5564
5570
  this.entityTypeSetup = entityTypeSetup;
5565
5571
  this.globalService = globalService;
5566
5572
  this.document = document;
5573
+ this.issuType = 7;
5567
5574
  this.Language = 'Eng';
5568
5575
  // @Input() CreatedByUserType;
5569
5576
  this.Channel = '3';
@@ -5654,6 +5661,17 @@ class RequestFlowComponent {
5654
5661
  }
5655
5662
  }
5656
5663
  ngOnInit() {
5664
+ if (this.PageType == "Complaint") {
5665
+ this.issuType = 2;
5666
+ }
5667
+ else if (this.PageType == "Request") {
5668
+ this.issuType = 7;
5669
+ }
5670
+ else if (this.PageType == "SelfService") {
5671
+ this.issuType = 11;
5672
+ }
5673
+ else
5674
+ this.issuType = 7;
5657
5675
  if (this.RequesterTypeId == "0000001") {
5658
5676
  this.RequesterTypeIdEn = "IndividualCustomer";
5659
5677
  }
@@ -5949,6 +5967,13 @@ class RequestFlowComponent {
5949
5967
  getListDatas(Criteria) {
5950
5968
  // alert("get");
5951
5969
  this.storeCriteria = Criteria;
5970
+ let filtervals = {
5971
+ Field: 'IssueType',
5972
+ TableAlias: '',
5973
+ Operator: '',
5974
+ Value: this.issuType,
5975
+ };
5976
+ this.Searchcriteria.Where.push(filtervals);
5952
5977
  // let SupportRequestId = localStorage.getItem("RequesterTypeId");
5953
5978
  // this.entityTypeSetup.urlGetDynamicTicket(Criteria, this.EntityTypeId)
5954
5979
  this.entityTypeSetup.getsupportRequestData(Criteria, this.RequesterTypeId, this.RequesterId, this.Source, this.StatusListValue).subscribe((res) => {
@@ -6029,6 +6054,9 @@ class RequestFlowComponent {
6029
6054
  this.IssueTypeDDL = [];
6030
6055
  this.supportService.getIssueGroupRequesterMappingByRequesterType(this.RequesterTypeId).subscribe((res) => {
6031
6056
  this.IssueTypeDDL = res;
6057
+ if (res) {
6058
+ this.IssueTypeDDL = res.filter(x => x.IssueType == this.issuType);
6059
+ }
6032
6060
  // this.IssueTypeDDL = this.IssueTypeDDL.map((x) => {
6033
6061
  // x.IssueType = x.LookupValueId;
6034
6062
  // x.IssueTypeEn = x.Description;