Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.3 fsm urc develop #86

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion web/micro-ui-internals/packages/css/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@egovernments/digit-ui-css",
"version": "1.5.8",
"version": "1.5.9",
"license": "MIT",
"main": "dist/index.css",
"engines": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const EmployeePayment = ({ stateCode, cityCode, moduleCode }) => {

return (
<React.Fragment>
<p className="breadcrumb" style={{ marginLeft: "15px" }}>
<p className="breadcrumb" style={{ marginLeft: "15px", fontSize: "14px", color: "#505a5f", marginBottom: "10px" }}>
<Link to={`/digit-ui/employee`}>{t("ES_COMMON_HOME")}</Link>
{isFsm ? <Link to={`/digit-ui/employee/fsm/home`}>/ {t("ES_TITLE_FSM")} </Link> : null}
{isFsm ? <Link to={`/digit-ui/employee/fsm/inbox`}>/ {t("ES_TITLE_INBOX")}</Link> : null}/ {link}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ const SearchApplication = ({ onSearch, type, onClose, onTabChange, isFstpOperato
</div>
</div>
{showAddMenu && (
<Menu localeKeyPrefix={"ES_FSM_ACTION_CREATE"} options={["VENDOR", "DRIVER", "VEHICLE"]} t={t} onSelect={onActionSelect} />
<Menu localeKeyPrefix={"ES_FSM_ACTION_CREATE"} options={["VENDOR", "VEHICLE", "DRIVER"]} t={t} onSelect={onActionSelect} />
)}
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,12 @@ const SelectLocalityOrGramPanchayat = ({ t, config, onSelect, userType, formData
return (
<React.Fragment>
<Timeline currentStep={1} flow="APPLY" />
<FormStep config={config} onSelect={onSubmit} isDisabled={!selectedGp} t={t}>
<FormStep
config={config}
onSelect={onSubmit}
isDisabled={propertyLocation?.code === "WITHIN_ULB_LIMITS" ? !selectedLocality : !selectedGp}
t={t}
>
{propertyLocation?.code === "WITHIN_ULB_LIMITS" ? (
<LabelFieldPair>
<CardLabel className="card-label-smaller">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const NewApplication = ({ parentUrl, heading }) => {
if (
formData?.propertyType &&
formData?.subtype &&
formData?.address?.locality?.code &&
(formData?.address?.locality?.code || formData.address.propertyLocation?.code === "FROM_GRAM_PANCHAYAT") &&
formData?.tripData?.vehicleType &&
formData?.channel &&
(formData?.tripData?.amountPerTrip || formData?.tripData?.amountPerTrip === 0)
Expand Down Expand Up @@ -103,6 +103,8 @@ export const NewApplication = ({ parentUrl, heading }) => {
const gender = data.applicationData.applicantGender;
const paymentPreference = amount === 0 ? null : data?.paymentPreference ? data?.paymentPreference : null;
const advanceAmount = amount === 0 ? null : data?.advancepaymentPreference?.advanceAmount;
const gramPanchayat = data?.address.gramPanchayat;
const village = data?.address.village;

const formData = {
fsm: {
Expand Down Expand Up @@ -133,13 +135,23 @@ export const NewApplication = ({ parentUrl, heading }) => {
pincode,
slumName: slum,
locality: {
code: localityCode,
name: localityName,
code: localityCode ? localityCode : gramPanchayat?.code,
name: localityName ? localityName : gramPanchayat?.name,
},
geoLocation: {
latitude: data?.address?.latitude,
longitude: data?.address?.longitude,
},
additionalDetails: {
gramPanchayat: {
code: gramPanchayat?.code,
name: gramPanchayat?.name,
},
village: {
code: village?.code,
name: village?.name,
},
},
},
noOfTrips,
paymentPreference,
Expand Down
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"micro-ui-internals/packages/modules/*"
],
"dependencies": {
"@egovernments/digit-ui-css": "1.5.8",
rakesh-wt-egov marked this conversation as resolved.
Show resolved Hide resolved
"@egovernments/digit-ui-css": "1.5.9",
"@egovernments/digit-ui-libraries": "1.6.1",
"@egovernments/digit-ui-module-common": "1.6.1",
"@egovernments/digit-ui-module-core": "1.6.0",
Expand Down
2 changes: 1 addition & 1 deletion web/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8"/>
<link rel="icon" href="./browser-icon.png"/>
<link href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;500;700&family=Roboto:wght@400;500;700&display=swap" rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://unpkg.com/@egovernments/digit-ui-css@1.5.8/dist/index.css"/>
<link rel="stylesheet" href="https://unpkg.com/@egovernments/digit-ui-css@1.5.9/dist/index.css"/>
<!-- <link rel="stylesheet" href="https://unpkg.com/@egovernments/digit-ui-css/dist/index.css"/> -->
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="theme-color" content="#00BCD1"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ const SelectTankSize = ({ config, onSelect, t, formData = {}, userType }) => {
const [disable, setDisable] = useState(true);
const [images, setImages] = useState(formData?.pitDetail?.images || null);
const [size, setSize] = useState();
debugger;
useEffect(() => {
if (!formData?.pitType && userType !== "employee") {
onSelect(config.key, {}, true);
Expand Down
6 changes: 3 additions & 3 deletions web/src/Customisations/fsm/pageComponents/SelectTripData.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const SelectTripData = ({ t, config, onSelect, formData = {}, userType }) => {
},
default: formData?.tripData?.amountPerTrip,
disable:
formData?.address?.propertyLocation.code === "FROM_GRAM_PANCHAYAT"
formData?.address?.propertyLocation?.code === "FROM_GRAM_PANCHAYAT"
? false
: true,
isMandatory: true,
Expand Down Expand Up @@ -132,7 +132,7 @@ const SelectTripData = ({ t, config, onSelect, formData = {}, userType }) => {
formData?.subtype &&
formData?.address &&
formData?.tripData?.vehicleType?.capacity &&
formData.address.propertyLocation.code === "WITHIN_ULB_LIMITS"
formData.address.propertyLocation?.code === "WITHIN_ULB_LIMITS"
) {
const capacity = formData?.tripData?.vehicleType.capacity;
const { slum: slumDetails } = formData.address;
Expand Down Expand Up @@ -163,7 +163,7 @@ const SelectTripData = ({ t, config, onSelect, formData = {}, userType }) => {
}
}
if (
formData?.address?.propertyLocation.code === "FROM_GRAM_PANCHAYAT" &&
formData?.address?.propertyLocation?.code === "FROM_GRAM_PANCHAYAT" &&
formData.tripData.noOfTrips &&
formData.tripData.amountPerTrip
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ const BannerPicker = (props) => {
return (
<Banner
message={GetActionMessage()}
applicationNumber={props.data?.fsm[0].applicationNo}
applicationNumber={props?.data?.fsm[0]?.applicationNo}
info={props.t("CS_FILE_DESLUDGING_APPLICATION_NO")}
successful={props.isSuccess}
successful={props?.isSuccess}
/>
);
};
Expand All @@ -48,7 +48,6 @@ const Response = ({ data, onSuccess }) => {
const [paymentPreference, setPaymentPreference] = useState(null);
const [advancePay, setAdvancePay] = useState(null);
const [zeroPay, setZeroPay] = useState(null);

const Data = mutation?.data || successData;
const localityCode = Data?.fsm?.[0].address?.locality?.code;
const slumCode = Data?.fsm?.[0].address?.slumName;
Expand Down Expand Up @@ -129,8 +128,8 @@ const Response = ({ data, onSuccess }) => {
city: city.name,
pincode,
locality: {
code: locality.code,
name: locality.name,
code: locality?.code ? locality.code : gramPanchayat?.code,
name: locality?.name ? locality?.name : gramPanchayat?.name,
},
geoLocation: {
latitude: geoLocation?.latitude,
Expand Down