tango-app-ui-manage-tickets 3.7.0-beta.77 → 3.7.0-beta.78
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.
- package/esm2022/lib/components/audit-mapping-list/audit-mapping-list.component.mjs +6 -1
- package/esm2022/lib/components/audit-retag/audit-retag.component.mjs +1 -17
- package/esm2022/lib/components/start-audit/start-audit.component.mjs +4 -1
- package/fesm2022/tango-app-ui-manage-tickets.mjs +8 -16
- package/fesm2022/tango-app-ui-manage-tickets.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -8292,6 +8292,9 @@ class StartAuditComponent {
|
|
|
8292
8292
|
insertObj.img_id = filteredData[0]?.img_id;
|
|
8293
8293
|
insertObj.img_name = filteredData[0]?.img_name;
|
|
8294
8294
|
insertObj.img_path = filteredData[0]?.img_path;
|
|
8295
|
+
insertObj.count = 1;
|
|
8296
|
+
insertObj.dropped = false;
|
|
8297
|
+
insertObj.selected = false;
|
|
8295
8298
|
insertObj.mappedid = [
|
|
8296
8299
|
{
|
|
8297
8300
|
img_id: filteredData[0]?.img_id,
|
|
@@ -9202,6 +9205,8 @@ class AuditMappingListComponent {
|
|
|
9202
9205
|
sessionStorage.setItem(Name, JSON.stringify(imageData));
|
|
9203
9206
|
var oldretag = JSON.parse(sessionStorage.getItem('retag') || '{}');
|
|
9204
9207
|
var newtag = [];
|
|
9208
|
+
splicedvalue[0].selected = false;
|
|
9209
|
+
console.log("🚀 ~ AuditMappingListComponent ~ dropforretag ~ splicedvalue:", splicedvalue);
|
|
9205
9210
|
if (Number(oldretag.length) > 0) {
|
|
9206
9211
|
newtag = [...oldretag, ...splicedvalue];
|
|
9207
9212
|
}
|
|
@@ -9218,6 +9223,9 @@ class AuditMappingListComponent {
|
|
|
9218
9223
|
mainData.count = mainData.mappedid.length;
|
|
9219
9224
|
}
|
|
9220
9225
|
});
|
|
9226
|
+
const jsonString = JSON.stringify(this.auditmappingdata);
|
|
9227
|
+
const compressedData = LZString.compress(jsonString);
|
|
9228
|
+
sessionStorage.setItem('audit', compressedData);
|
|
9221
9229
|
}
|
|
9222
9230
|
}
|
|
9223
9231
|
else if (Name != null) {
|
|
@@ -9503,7 +9511,6 @@ class AuditRetagComponent {
|
|
|
9503
9511
|
// match by event.key (preferred) OR by event.code like 'KeyJ'
|
|
9504
9512
|
return pressed === mapKey || event.code === `Key${mapKey.toUpperCase()}`;
|
|
9505
9513
|
});
|
|
9506
|
-
console.log(matched);
|
|
9507
9514
|
if (!matched)
|
|
9508
9515
|
return;
|
|
9509
9516
|
if (matched) {
|
|
@@ -9544,7 +9551,6 @@ class AuditRetagComponent {
|
|
|
9544
9551
|
this.selectedType = this.route.snapshot.paramMap.get('type');
|
|
9545
9552
|
}
|
|
9546
9553
|
ngOnInit() {
|
|
9547
|
-
console.log("*************");
|
|
9548
9554
|
this.getAuditConfig();
|
|
9549
9555
|
if (this.retagimage.length == 0) {
|
|
9550
9556
|
this.submitvalue = false;
|
|
@@ -9557,7 +9563,6 @@ class AuditRetagComponent {
|
|
|
9557
9563
|
this.$api.getAuditconfig(filedata?.filedetails?.clientId).pipe(takeUntil(this.destroy$)).subscribe({
|
|
9558
9564
|
next: (res) => {
|
|
9559
9565
|
if (res && res?.code == 200) {
|
|
9560
|
-
console.log(res.data.footfallDirectoryConfigs.taggingLimitation);
|
|
9561
9566
|
this.category = res.data.footfallDirectoryConfigs.taggingLimitation;
|
|
9562
9567
|
this.initial_data_loading();
|
|
9563
9568
|
}
|
|
@@ -9589,12 +9594,10 @@ class AuditRetagComponent {
|
|
|
9589
9594
|
this.timerService.clearTimer();
|
|
9590
9595
|
}
|
|
9591
9596
|
initial_data_loading() {
|
|
9592
|
-
console.log("------------");
|
|
9593
9597
|
if ('audit' in sessionStorage) {
|
|
9594
9598
|
let stringifydata = sessionStorage.getItem('audit') || '{}';
|
|
9595
9599
|
const decompressedData = LZString.decompress(stringifydata);
|
|
9596
9600
|
var auditdata = JSON.parse(decompressedData || '{}');
|
|
9597
|
-
console.log("🚀 ~ AuditRetagComponent ~ initial_data_loading ~ auditdata:", auditdata);
|
|
9598
9601
|
if (auditdata.length > 0) {
|
|
9599
9602
|
this.auditmappingdata = auditdata;
|
|
9600
9603
|
this.customercount = this.auditmappingdata.length;
|
|
@@ -9606,7 +9609,6 @@ class AuditRetagComponent {
|
|
|
9606
9609
|
}
|
|
9607
9610
|
this.category.map((data) => {
|
|
9608
9611
|
var count = JSON.parse(sessionStorage.getItem(data.type) || '{}');
|
|
9609
|
-
console.log("🚀 ~ AuditRetagComponent ~ initial_data_loading ~ count:", count);
|
|
9610
9612
|
data.count = count?.length;
|
|
9611
9613
|
});
|
|
9612
9614
|
if ('retag' in sessionStorage) {
|
|
@@ -9648,7 +9650,6 @@ class AuditRetagComponent {
|
|
|
9648
9650
|
sessionStorage.setItem(data?.type, JSON.stringify(data?.value && data?.value.length > 0 ? data?.value : []));
|
|
9649
9651
|
});
|
|
9650
9652
|
let customerData = res?.data?.result?.draftedData?.filter((x) => x.type === 'customer');
|
|
9651
|
-
console.log("🚀 ~ AuditRetagComponent ~ getmappingdata ~ customerData:", customerData);
|
|
9652
9653
|
this.auditmappingdata = customerData[0]?.value;
|
|
9653
9654
|
const jsonString = JSON.stringify(customerData[0]?.value);
|
|
9654
9655
|
const compressedData = LZString.compress(jsonString);
|
|
@@ -9698,7 +9699,6 @@ class AuditRetagComponent {
|
|
|
9698
9699
|
value: sessionvalue && sessionvalue.length > 0 ? sessionvalue : []
|
|
9699
9700
|
});
|
|
9700
9701
|
});
|
|
9701
|
-
console.log("🚀 ~ StartAuditComponent ~ Reviewdata ~ storedData:", storedData);
|
|
9702
9702
|
var inserobj = {
|
|
9703
9703
|
storeId: totalfile?.filedetails?.storeId,
|
|
9704
9704
|
auditId: totalfile?.auditId ? totalfile?.auditId : totalfile?.filedetails.auditId,
|
|
@@ -9748,13 +9748,11 @@ class AuditRetagComponent {
|
|
|
9748
9748
|
else {
|
|
9749
9749
|
sessionStorage.setItem('duplicate', JSON.stringify(findone));
|
|
9750
9750
|
let filedata = JSON.parse(sessionStorage.getItem('duplicate') || '{}');
|
|
9751
|
-
console.log("🚀 ~ StartAuditComponent ~ dropImage ~ filedata:", filedata);
|
|
9752
9751
|
}
|
|
9753
9752
|
this.category.map((data) => {
|
|
9754
9753
|
var count = JSON.parse(sessionStorage.getItem(data.type) || '{}');
|
|
9755
9754
|
data.count = count?.length;
|
|
9756
9755
|
});
|
|
9757
|
-
console.log("🚀 ~ AuditRetagComponent ~ dropretag ~ this.category:", this.category);
|
|
9758
9756
|
}
|
|
9759
9757
|
else {
|
|
9760
9758
|
data.count = data.count + 1,
|
|
@@ -9824,7 +9822,6 @@ class AuditRetagComponent {
|
|
|
9824
9822
|
const htmltag = event.dataTransfer.getData('text/html');
|
|
9825
9823
|
var Name = getTagNameFromHTML(htmltag);
|
|
9826
9824
|
const dropZone = event.target;
|
|
9827
|
-
// console.log(Name)
|
|
9828
9825
|
// debugger
|
|
9829
9826
|
if (Name == 'customer' || Name == 'retag') {
|
|
9830
9827
|
event.preventDefault();
|
|
@@ -9842,11 +9839,9 @@ class AuditRetagComponent {
|
|
|
9842
9839
|
}
|
|
9843
9840
|
this.retagimage = this.retagimage.filter((imgData) => imgData.img_id !== draggedImageId);
|
|
9844
9841
|
sessionStorage.setItem('retag', JSON.stringify(this.retagimage));
|
|
9845
|
-
console.log("🚀 ~ AuditRetagComponent ~ dropImage ~ findone:", findone);
|
|
9846
9842
|
if (findone.length > 0) {
|
|
9847
9843
|
data.mappedid = [...data.mappedid, ...findone[0].mappedid];
|
|
9848
9844
|
data.count = data.mappedid.length;
|
|
9849
|
-
console.log("🚀 ~ AuditRetagComponent ~ dropImage ~ data.mappedid:", data.mappedid);
|
|
9850
9845
|
if ('duplicate' in sessionStorage) {
|
|
9851
9846
|
let filedata = JSON.parse(sessionStorage.getItem('duplicate') || '{}');
|
|
9852
9847
|
filedata = [...filedata, ...findone];
|
|
@@ -9855,7 +9850,6 @@ class AuditRetagComponent {
|
|
|
9855
9850
|
else {
|
|
9856
9851
|
sessionStorage.setItem('duplicate', JSON.stringify(findone));
|
|
9857
9852
|
let filedata = JSON.parse(sessionStorage.getItem('duplicate') || '{}');
|
|
9858
|
-
console.log("🚀 ~ StartAuditComponent ~ dropImage ~ filedata:", filedata);
|
|
9859
9853
|
}
|
|
9860
9854
|
}
|
|
9861
9855
|
else {
|
|
@@ -9865,11 +9859,9 @@ class AuditRetagComponent {
|
|
|
9865
9859
|
}
|
|
9866
9860
|
});
|
|
9867
9861
|
if (Name == 'customer') {
|
|
9868
|
-
console.log(this.auditmappingdata.findIndex(({ img_id }) => img_id == draggedImageId));
|
|
9869
9862
|
this.auditmappingdata.splice(this.auditmappingdata.findIndex(({ img_id }) => img_id == draggedImageId), 1);
|
|
9870
9863
|
this.auditmappingdata.map((data) => data.selected = false);
|
|
9871
9864
|
}
|
|
9872
|
-
console.log("🚀 ~ AuditRetagComponent ~ dropImage ~ this.auditmappingdata:", this.auditmappingdata);
|
|
9873
9865
|
this.customercount = this.auditmappingdata?.length;
|
|
9874
9866
|
const jsonString = JSON.stringify(this.auditmappingdata);
|
|
9875
9867
|
const compressedData = LZString.compress(jsonString);
|