@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.js
CHANGED
|
@@ -11986,7 +11986,6 @@ const PropertyDetailsForm$1 = _ref => {
|
|
|
11986
11986
|
var _formData$cpt, _formData$cpt$details, _formData$cpt3, _Digit, _Digit$ComponentRegis, _formData$cpt4, _formData$cpt5, _propertyDetails$prop, _propertyDetails$prop2, _formData$cpt7, _propertyDetails$prop3, _propertyDetails$prop4, _formData$cpt8, _propertyDetails$prop6, _propertyDetails$prop7, _propertyDetails$wate, _propertyDetails$sewe;
|
|
11987
11987
|
const fetchBill = function (bussinessService, consumercodes, index) {
|
|
11988
11988
|
try {
|
|
11989
|
-
setPropertyLoader(true);
|
|
11990
11989
|
if (bussinessService === "WS") {
|
|
11991
11990
|
const updated = [...propertyDetails.waterConnection];
|
|
11992
11991
|
updated[index].isLoading = true;
|
|
@@ -12000,6 +11999,7 @@ const PropertyDetailsForm$1 = _ref => {
|
|
|
12000
11999
|
sewerageConnection: updated
|
|
12001
12000
|
}));
|
|
12002
12001
|
} else if (bussinessService === "PT") {
|
|
12002
|
+
setPropertyLoader(true);
|
|
12003
12003
|
let updated = _extends({}, propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.propertyBillData);
|
|
12004
12004
|
updated.isLoading = true;
|
|
12005
12005
|
setPropertyDetails(prev => _extends({}, prev, {
|
|
@@ -12257,9 +12257,14 @@ const PropertyDetailsForm$1 = _ref => {
|
|
|
12257
12257
|
} else if ((billData === null || billData === void 0 ? void 0 : billData.businessService) === "SW") {
|
|
12258
12258
|
service = "SEWERAGE";
|
|
12259
12259
|
} else if ((billData === null || billData === void 0 ? void 0 : billData.businessService) === "PT") {
|
|
12260
|
-
service = "
|
|
12260
|
+
service = "PT";
|
|
12261
|
+
}
|
|
12262
|
+
let payUrl;
|
|
12263
|
+
if ((billData === null || billData === void 0 ? void 0 : billData.businessService) === "PT") {
|
|
12264
|
+
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);
|
|
12265
|
+
} else {
|
|
12266
|
+
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);
|
|
12261
12267
|
}
|
|
12262
|
-
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);
|
|
12263
12268
|
window.open(payUrl, "_blank");
|
|
12264
12269
|
if ((billData === null || billData === void 0 ? void 0 : billData.businessService) === "WS") {
|
|
12265
12270
|
const updated = [...propertyDetails.waterConnection];
|
|
@@ -12316,13 +12321,14 @@ const PropertyDetailsForm$1 = _ref => {
|
|
|
12316
12321
|
className: "submit-bar",
|
|
12317
12322
|
type: "button",
|
|
12318
12323
|
style: {
|
|
12319
|
-
color: "white"
|
|
12324
|
+
color: "white",
|
|
12325
|
+
fontSize: "13px"
|
|
12320
12326
|
},
|
|
12321
12327
|
onClick: () => {
|
|
12322
12328
|
var _formData$cpt6;
|
|
12323
12329
|
fetchBill("PT", formData === null || formData === void 0 ? void 0 : (_formData$cpt6 = formData.cpt) === null || _formData$cpt6 === void 0 ? void 0 : _formData$cpt6.id);
|
|
12324
12330
|
}
|
|
12325
|
-
}, "
|
|
12331
|
+
}, "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__default.createElement("button", {
|
|
12326
12332
|
className: "submit-bar",
|
|
12327
12333
|
type: "button",
|
|
12328
12334
|
style: {
|
|
@@ -12393,12 +12399,13 @@ const PropertyDetailsForm$1 = _ref => {
|
|
|
12393
12399
|
className: "submit-bar",
|
|
12394
12400
|
type: "button",
|
|
12395
12401
|
style: {
|
|
12396
|
-
color: "white"
|
|
12402
|
+
color: "white",
|
|
12403
|
+
fontSize: "13px"
|
|
12397
12404
|
},
|
|
12398
12405
|
onClick: () => {
|
|
12399
12406
|
fetchBill("WS", item.connectionNo, index);
|
|
12400
12407
|
}
|
|
12401
|
-
}, "
|
|
12408
|
+
}, "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__default.createElement("button", {
|
|
12402
12409
|
className: "submit-bar",
|
|
12403
12410
|
type: "button",
|
|
12404
12411
|
style: {
|
|
@@ -12495,17 +12502,17 @@ const PropertyDetailsForm$1 = _ref => {
|
|
|
12495
12502
|
className: "submit-bar",
|
|
12496
12503
|
type: "button",
|
|
12497
12504
|
style: {
|
|
12498
|
-
color: "white"
|
|
12505
|
+
color: "white",
|
|
12506
|
+
fontSize: "13px"
|
|
12499
12507
|
},
|
|
12500
12508
|
onClick: () => {
|
|
12501
12509
|
fetchBill("SW", item.connectionNo, index);
|
|
12502
12510
|
}
|
|
12503
|
-
}, "
|
|
12511
|
+
}, "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__default.createElement("button", {
|
|
12504
12512
|
className: "submit-bar",
|
|
12505
12513
|
type: "button",
|
|
12506
12514
|
style: {
|
|
12507
|
-
color: "white"
|
|
12508
|
-
padding: "3px 100px"
|
|
12515
|
+
color: "white"
|
|
12509
12516
|
},
|
|
12510
12517
|
onClick: () => {
|
|
12511
12518
|
redirectToPayBill(item === null || item === void 0 ? void 0 : item.billData, index);
|