@mseva/digit-ui-module-ndc 1.0.14 → 1.0.15
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/dist/index.js +18 -11
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +18 -11
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -11970,7 +11970,6 @@ const PropertyDetailsForm$1 = ({
|
|
|
11970
11970
|
}));
|
|
11971
11971
|
}
|
|
11972
11972
|
async function fetchBill(bussinessService, consumercodes, index) {
|
|
11973
|
-
setPropertyLoader(true);
|
|
11974
11973
|
if (bussinessService === "WS") {
|
|
11975
11974
|
const updated = [...propertyDetails.waterConnection];
|
|
11976
11975
|
updated[index].isLoading = true;
|
|
@@ -11986,6 +11985,7 @@ const PropertyDetailsForm$1 = ({
|
|
|
11986
11985
|
sewerageConnection: updated
|
|
11987
11986
|
}));
|
|
11988
11987
|
} else if (bussinessService === "PT") {
|
|
11988
|
+
setPropertyLoader(true);
|
|
11989
11989
|
let updated = {
|
|
11990
11990
|
...(propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.propertyBillData)
|
|
11991
11991
|
};
|
|
@@ -12121,9 +12121,14 @@ const PropertyDetailsForm$1 = ({
|
|
|
12121
12121
|
} else if ((billData === null || billData === void 0 ? void 0 : billData.businessService) === "SW") {
|
|
12122
12122
|
service = "SEWERAGE";
|
|
12123
12123
|
} else if ((billData === null || billData === void 0 ? void 0 : billData.businessService) === "PT") {
|
|
12124
|
-
service = "
|
|
12124
|
+
service = "PT";
|
|
12125
|
+
}
|
|
12126
|
+
let payUrl;
|
|
12127
|
+
if ((billData === null || billData === void 0 ? void 0 : billData.businessService) === "PT") {
|
|
12128
|
+
payUrl = "https://sdc-uat.lgpunjab.gov.in" + `/${userType}/egov-common/pay?consumerCode=${billData === null || billData === void 0 ? void 0 : billData.consumerCode}&tenantId=${billData === null || billData === void 0 ? void 0 : billData.tenantId}&businessService=${service}`;
|
|
12129
|
+
} else {
|
|
12130
|
+
payUrl = "https://sdc-uat.lgpunjab.gov.in" + `/${userType}/wns/viewBill?connectionNumber=${billData === null || billData === void 0 ? void 0 : billData.consumerCode}&tenantId=${billData === null || billData === void 0 ? void 0 : billData.tenantId}&service=${service}`;
|
|
12125
12131
|
}
|
|
12126
|
-
const payUrl = "https://sdc-uat.lgpunjab.gov.in" + `/${userType}/wns/viewBill?connectionNumber=${billData === null || billData === void 0 ? void 0 : billData.consumerCode}&tenantId=${billData === null || billData === void 0 ? void 0 : billData.tenantId}&service=${service}`;
|
|
12127
12132
|
window.open(payUrl, "_blank");
|
|
12128
12133
|
if ((billData === null || billData === void 0 ? void 0 : billData.businessService) === "WS") {
|
|
12129
12134
|
const updated = [...propertyDetails.waterConnection];
|
|
@@ -12185,13 +12190,14 @@ const PropertyDetailsForm$1 = ({
|
|
|
12185
12190
|
className: "submit-bar",
|
|
12186
12191
|
type: "button",
|
|
12187
12192
|
style: {
|
|
12188
|
-
color: "white"
|
|
12193
|
+
color: "white",
|
|
12194
|
+
fontSize: "13px"
|
|
12189
12195
|
},
|
|
12190
12196
|
onClick: () => {
|
|
12191
12197
|
var _formData$cpt6;
|
|
12192
12198
|
fetchBill("PT", formData === null || formData === void 0 ? void 0 : (_formData$cpt6 = formData.cpt) === null || _formData$cpt6 === void 0 ? void 0 : _formData$cpt6.id);
|
|
12193
12199
|
}
|
|
12194
|
-
},
|
|
12200
|
+
}, "Check Status for Property"), (formData === null || formData === void 0 ? void 0 : (_formData$cpt7 = formData.cpt) === null || _formData$cpt7 === void 0 ? void 0 : _formData$cpt7.id) && (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$prop3 = propertyDetails.propertyBillData) === null || _propertyDetails$prop3 === void 0 ? void 0 : (_propertyDetails$prop4 = _propertyDetails$prop3.billData) === null || _propertyDetails$prop4 === void 0 ? void 0 : _propertyDetails$prop4.totalAmount) > 0 && /*#__PURE__*/React.createElement("button", {
|
|
12195
12201
|
className: "submit-bar",
|
|
12196
12202
|
type: "button",
|
|
12197
12203
|
style: {
|
|
@@ -12263,12 +12269,13 @@ const PropertyDetailsForm$1 = ({
|
|
|
12263
12269
|
className: "submit-bar",
|
|
12264
12270
|
type: "button",
|
|
12265
12271
|
style: {
|
|
12266
|
-
color: "white"
|
|
12272
|
+
color: "white",
|
|
12273
|
+
fontSize: "13px"
|
|
12267
12274
|
},
|
|
12268
12275
|
onClick: () => {
|
|
12269
12276
|
fetchBill("WS", item.connectionNo, index);
|
|
12270
12277
|
}
|
|
12271
|
-
},
|
|
12278
|
+
}, "Check Status for Water"), (item === null || item === void 0 ? void 0 : item.connectionNo) && (item === null || item === void 0 ? void 0 : (_item$billData2 = item.billData) === null || _item$billData2 === void 0 ? void 0 : _item$billData2.totalAmount) > 0 && /*#__PURE__*/React.createElement("button", {
|
|
12272
12279
|
className: "submit-bar",
|
|
12273
12280
|
type: "button",
|
|
12274
12281
|
style: {
|
|
@@ -12367,17 +12374,17 @@ const PropertyDetailsForm$1 = ({
|
|
|
12367
12374
|
className: "submit-bar",
|
|
12368
12375
|
type: "button",
|
|
12369
12376
|
style: {
|
|
12370
|
-
color: "white"
|
|
12377
|
+
color: "white",
|
|
12378
|
+
fontSize: "13px"
|
|
12371
12379
|
},
|
|
12372
12380
|
onClick: () => {
|
|
12373
12381
|
fetchBill("SW", item.connectionNo, index);
|
|
12374
12382
|
}
|
|
12375
|
-
},
|
|
12383
|
+
}, "Check Status for Sewerage"), (item === null || item === void 0 ? void 0 : item.connectionNo) && (item === null || item === void 0 ? void 0 : (_item$billData5 = item.billData) === null || _item$billData5 === void 0 ? void 0 : _item$billData5.totalAmount) > 0 && /*#__PURE__*/React.createElement("button", {
|
|
12376
12384
|
className: "submit-bar",
|
|
12377
12385
|
type: "button",
|
|
12378
12386
|
style: {
|
|
12379
|
-
color: "white"
|
|
12380
|
-
padding: "3px 100px"
|
|
12387
|
+
color: "white"
|
|
12381
12388
|
},
|
|
12382
12389
|
onClick: () => {
|
|
12383
12390
|
redirectToPayBill(item === null || item === void 0 ? void 0 : item.billData, index);
|